PageSourceSearch

https://profisealabs.com/cabinet/static/js/App-B3uEhegP.js

js profisealabs.com collected 2026-09-25 18:32:49 UTC 2,003,291 bytes, 390 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/NewAssistantChat-yFTwQkT3.js","static/js/index-ChxFcAuc.js","static/js/vendor-core-C0v-OB8t.js","static/js/vendor-ant-ui-DEh1p71x.js","static/assets/index-Dmlzhud-.css","static/js/clsx-B-dksMZM.js","static/js/index-DGCMLrOs.js","static/assets/NewAssistantChat-CKm7t6w2.css","static/js/UiKit-CPajq-Ye.js","static/js/SmartButton-CnQIBwZ7.js","static/assets/SmartButton-i8dQr4TX.css","static/js/FilterButton-PitBYpW3.js","static/js/FilterCounter-B4SDiFw2.js","static/assets/FilterCounter-CxKf_POU.css","static/assets/FilterButton-5GiBw2c9.css","static/js/OptionsButton-DLU5ZjPP.js","static/assets/UiKit-CQINXpS9.css","static/js/ReportsContainer-qPJPWy4Z.js","static/js/useFetchBillingMeta-91YmEFeW.js","static/js/useGetNotSavedCredsAlertData-DzUjlWI9.js","static/js/CabinetSidebar-Bg1HsDj7.js","static/assets/CabinetSidebar-BYk4ewTQ.css","static/js/BlockHeader-BPNKvwRz.js","static/js/main-CxDBJ_bI.js","static/js/billing-logic-new-BSwZ4aT4.js","static/js/ZeroData-DBydzwCr.js","static/js/chart-helper-DYTxCj5J.js","static/assets/ZeroData-c5ZzqwFi.css","static/js/points-positions-helper
1-DuRrFoTF.js","static/assets/billing-logic-new-Sa1emF9W.css","static/js/WithPermissions-C5txAMwH.js","static/js/useCloudUsageWidget-DFs7jdw8.js","static/js/useCartesianChartTooltipAnimation-D2B5nJD9.js","static/assets/useCartesianChartTooltipAnimation-BAG8FS0i.css","static/js/main-BGOiMh3z.js","static/js/generateCategoricalChart-ByDr2nag.js","static/js/string-trim-Bi9ZIObz.js","static/js/index-DLOfAXWE.js","static/js/Bar-B_CWKteN.js","static/js/BarChart-BSg6SV1j.js","static/js/useStateReactive-Cr7HMeBb.js","static/js/ProgressiveLoadingBlock-4jF65QSR.js","static/js/Area-O-lZdqhg.js","static/js/AreaChart-C92Wmgbz.js","static/assets/useCloudUsageWidget-C1Ke2Qn1.css","static/js/DataGridWrapper-DB4Ll7ok.js","static/js/bundle-iSx7ragC.js","static/js/BlockContent-DLwhzrem.js","static/js/ResourcesFooterActions-C1SuaLu8.js","static/js/ArrowToggleSmall-DNFk1NsT.js","static/js/gear-BynBejKH.js","static/js/ResourcesFooterPanel-DHl6HlEP.js","static/assets/ResourcesFooterPanel-B4DW3pGm.css","static/assets/ResourcesFooterActions-DNwO3Qcg.css","static/js/useDebounce-DPZL502a.js","static/js/useDebouncedCallback-BA5LXvRQ.js","static/js/Filter-oV7e0bjH.js","static/js/FilterBlock-DaHffiXh.js","static/js/filter-reset-fuWTjxWT.js","static/assets/FilterBlock-rmONK57r.css","static/js/SelectedItem-Bwn-L4U8.js","static/assets/SelectedItem-qar9UhFX.css","static/js/CustomSelectOption-CNy0WMKq.js","static/js/remove-new-DcZ13HUf.js","static/assets/Filter-W4n5QFyK.css","static/js/ResourcesNotFound-B55wSFvs.js","static/assets/ResourcesNotFound-CKj2pDFq.css","static/js/usePrevious-C2OZYJc_.js","static/js/Radio-CuOBtoku.js","static/assets/Radio-Bb3ucg3z.css","static/js/useMultiQuickFiltersResponsive-MKJ4wwy2.js","
1static/js/useWindowSize-CqXTfVK3.js","static/js/SuspendWrapper-aNaSCXAp.js","static/js/SuspendGrid-CvFzAp7P.js","static/assets/SuspendGrid-DAUkXZaN.css","static/js/SwitchSelectWithIcons-C2z12vRX.js","static/js/SwitchSelect.module-BauwmYHM.js","static/assets/SwitchSelect-wA0fSV5F.css","static/assets/DataGridWrapper-BoWxRJh7.css","static/js/ellipsis-B26IhoeT.js","static/js/jspdf.es.min-B2afZhZY.js","static/js/FormHorizontalFieldGroup-CJ0Vs0dE.js","static/assets/FormHorizontalFieldGroup-8TobvoeV.css","static/js/SwitchSelect-CK9-NzUo.js","static/js/MultiSelect-DZ6KFKFv.js","static/js/MultiSelect.module-BECQvzmO.js","static/assets/MultiSelect-B5I_omDj.css","static/js/error--ZqkRPjj.js","static/js/useMultiSelectSearch-D-e6Rr16.js","static/js/useUpdateEffect-BlLiOYTi.js","static/js/useCloseReactjsPopupOnWindowScroll-v8NojzGu.js","static/js/useFetchSavingRecommendationsSavings-CWsE1Vda.js","static/js/useGetCurrentEnvsBySupportedProviders-BapMAVIE.js","static/js/useFetchSavingRecommendations-BxDMwIAA.js","static/js/SmartSavingsCategories-DAxze9Gu.js","static/js/DoughnutChart-BGzWuKNC.js","static/assets/DoughnutChart-Zx_7nXj0.css","static/js/InfoPopup-CKWnTEHG.js","static/assets/InfoPopup-DGFxyIoU.css","static/js/main-LudzyX-x.js","static/js/EmptyValueSvg-D0zJeqRN.js","static/js/warning-CYFZKKw7.js","static/js/main-YLvGAO75.js","static/js/main-BAS4d6YV.js","static/js/useGetEnvsData-DkXREWrz.js","static/assets/SmartSavingsCategories-5BxBPr4L.css","static/js/Line-DDPtFytf.js","static/js/defaultLocale-CAElww4u.js","static/js/react-spring_web.modern-EiE6eSwC.js","static/js/PieChart-BKzFzq4Z.js","static/js/string-B6fdYHAA.js","static/js/useSuspendData-pMNLaCul.js","static/js/usePieChartByRegions-s2WUoIuY.js","static/js/functions-helper
1-B9VZvDZU.js","static/assets/usePieChartByRegions-CPRXfxFP.css","static/js/warning-big-CU17VDSL.js","static/js/ArrowToggle-I5Xd091q.js","static/js/ContentHeader-DYQSgsX5.js","static/assets/ContentHeader-Bx69_Rk8.css","static/js/ContentHeaderRow-B8wWmUvl.js","static/js/arrow-right-DDg_zZKH.js","static/js/IdCell-Dnx0lfGF.js","static/js/cloud-account-id-sdtu5-xp.js","static/assets/IdCell-eZoZQzyo.css","static/assets/ReportsContainer-ULzrnWNa.css","static/js/AnalyticsContainer-CW6q_tsG.js","static/js/useFetchBillingFilters-rdLQeTsl.js","static/js/BillingBanner-DAsH0ZTw.js","static/js/analytics-request-helper-gpcfeydt.js","static/js/download-B7UesnTL.js","static/js/Tabs-Dm4tiL1P.js","static/js/main-Bgx8rRqW.js","static/js/useGetCurInfo-DeD-FDz0.js","static/assets/BillingBanner-L6cjeG-l.css","static/js/MultiSelectByKeys-BAf3_TF2.js","static/assets/MultiSelectByKeys-D-QbcpB1.css","static/js/PulsatingCircleAlarm-C5WCZoxH.js","static/assets/PulsatingCircleAlarm-CHvkkZt1.css","static/js/SavingRecommendationsCards-B3NkF3BW.js","static/js/main-BMfLWWeI.js","static/assets/SavingRecommendationsCards-CELktgvh.css","static/js/useHandlePageNumberAndItemsPerPage-DYiljME7.js","static/assets/useHandlePageNumberAndItemsPerPage-CHhDV1sg.css","static/js/ResourcesItemCol-5jfHCxUW.js","static/assets/ResourcesItemCol-DxGhcXiJ.css","static/js/NotesDetailsItem-3w1oAuVo.js","static/js/MoreActionsContextMenu-DLKxtG4W.js","static/assets/MoreActionsContextMenu-C7YTUBBJ.css","static/js/Textarea-BT-hrAbI.js","static/assets/NotesDetailsItem-DeIN_7Ow.css","static/js/exist-note-BIP_YNa2.js","static/js/SavingRecommendationInsight-CEsnaWxf.js","static/assets/SavingRecommendationInsight-CRkdZn9D.css","static/js/useFetchRegionsCost-CIXZB8dV.js","static/js/DateRangePickerAnt-CninTygm.js","static/js/BillingCurIsNotAvailableYet-DFC-D6ko.js","static/js/AMManualPopup-CDckMpCt.js","static/assets/AMManualPopup-BBNIiNc7.css","static/js/Details-BX-bDB-E.js","static/assets/Details-deAJd_a1.css","static/js/EksInsightsManual-Bwo3D-nv.js","static/js/CodeBlock-GR_VrOKS.js","static/assets/CodeBlock-COr9g1vS.css","static/assets/EksInsightsManual-Dk55AMPD.css","static/js/features-allowed-model-D4Fj7ooN.js","static/assets/AnalyticsContainer-BNT3Lf13.css","static/js/AnalyticsContainer-C0C-NsmE.js","static/js/BillingSummary-DI1U_DRN.js","static/js/BudgetBarChart-BFYBiZkH.js","static/assets/AntDesignChartsStyles-Coe817MK.css","static/js/ViewOnButton-BHIU9lLg.js","static/js/useSelectEnvironments-B2dYbMFq.js","static/js/useOnWheel-Dhim5Zd2.js","static/assets/ViewOnButton-DHziRCLs.css","static/assets/BillingSummary-D8X9WJ0J.css","static/assets/AnalyticsContainer-C0P4M5Me.css","static/js/TeamManagementContainer-B1WIi5oR.js","static/js/ExistingAccountModal-f4DmADMZ.js","static/js/modals.module-D4X2lNEL.js","static/assets/modals-DZhbrR6n.css","static/js/Access-DwCwB3Rf.js","static/js/ArrowsClockwise.es-CIpgC8uZ.js","static/js/useGetTeamManagementData-D0SBg4X0.js","static/js/useFetchData-Bf7kksLq.js","static/js/ViewManagementItemStats-CT_i7nDV.js","static/assets/ViewManagementItemStats-BCRPCShA.css","static/js/MoreButtonPopup-BpYp1wu4.js","static/js/MoreIcon-BcXnU8dH.js","static/assets/MoreButtonPopup-Dr0vxv2T.css","static/js/Table-BuN9yxpd.js","static/js/ColumnsPlusRight.es-CDX_8H7O.js","static/js/objectWithoutPropertiesLoose-GaTtslse.js","static/assets/Table-DK_xtVH2.css","static/js/UserFullNameWithIcon-CKhu-oaX.js","static/js/TooltipWrapper-1bRfOjhT.js","static/assets/UserFullNameWithIcon-D7QJVk8J.css","static/js/PencilSimple.es-DlI7xOtQ.js","static/js/EmptyList-wO9_IS7o.js","static/js/ViewManagementItems-CGnkKe86.js","static/assets/ViewManagementItems-CyomPdQs.css","static/js/useOnOrganizationChange-jZM-k-XC.js","static/assets/Access-CNd2EST_.css","static/js/Accounts-6mA8OUFB.js","static/js/ViewManagementItemTitle-nQpNg8U0.js","static/assets/ViewManagementItemTitle-Z0bPHZNy.css","static/js/TeamManagementGrid-B90cEXHs.js","static/js/AppDataGridCheckboxFormatter-CK_HNlaT.js","static/js/FlexLite-BkOlW_UL.js","static/assets/TeamManagementGrid-Bfv28gVP.css","static/js/useHandleIdQueryParams-KLbnM-N6.js","static/assets/Accounts-DVaazFOV.css","static/js/AddEditAccountsSet-B7X-qUgz.js","static/js/TeamManagementDetails-DPTtUzEL.js","static/assets/TeamManagementDetails-D_ZmU8O0.css","static/js/use
1NameField-DqjJlXHb.js","static/js/InviteUser-Bd7MlGn6.js","static/js/team-details-helper-DebN71sT.js","static/js/AddEditGroup-CgzpZQwJ.js","static/js/Roles-0hzjjaIf.js","static/js/AddItemModal-DwYxyT6f.js","static/assets/AddItemModal-CDeB8NIK.css","static/assets/Roles-D_MSZTIc.css","static/js/AddEditRole-_n52KWXz.js","static/assets/AddEditRole-CgxuvIXW.css","static/js/UsersAndGroups-Cx3hmoZ_.js","static/assets/UsersAndGroups-BvZkXip5.css","static/js/UsersGroupsTabRedirect-DplX0CwR.js","static/js/WasteWrapper-DsuH5uqy.js","static/js/useDownloadExcel-BG7OCO5G.js","static/js/useFetchCommonWasteSavings-B7rRIF97.js","static/js/main-D8m7GiKC.js","static/js/SaveAsExcelButton-BdPnMIX1.js","static/assets/SaveAsExcelButton-5YRRg70p.css","static/js/ResourcesModalAssets-CkZfZR7Y.js","static/assets/ResourcesModalAssets-CP8afO5P.css","static/js/useGetEnvsNames-DkrC7b6h.js","static/js/CloudviewNotesDetails-sy7QLTZ-.js","static/js/AccountCell-CVfVBbEp.js","static/js/BaseCellLite-jA9EDo0o.js","static/assets/BaseCellLite-CucR8T-N.css","static/js/ResourceTypeCell-CZKlz4bD.js","static/js/TextCellWithTooltip-HD7bBTl8.js","static/assets/WasteWrapper-myCK0GOU.css","static/js/LogsContainer-Dl73TqNL.js","static/js/ResourcesBody-0w_9pRQQ.js","static/assets/LogsContainer-IfXtTxhm.css","static/js/RightsizingContainer-Eobnrifv.js","static/js/useFetchCommonRightsizingSavings-3_jz3Y_V.js","static/js/useKubernetesViewItemsData-BVm8-NBE.js","static/js/useFetchKubernetesViewData-BVq5giRq.js","static/js/useGetConnectableClusters-bsTNsFnS.js","static/js/useGetYourAccount-B6GsZmzw.js","static/assets/useGetConnectableClusters-D_JJ_bvF.css","static/js/EstSavingsCell-Cjbw6u5O.js","static/js/CellWithArrow-BPqWi0HQ.js","static/assets/CellWithArrow-Bn_6-0zz.css","static/js/PolicyResources-llhIauDp.js","static/assets/PolicyResources-Car7P_a4.css","static/js/main-CfBCMBfW.js","static/js/LoaderWithText-DHZRkzoD.js","static/assets/LoaderWithText-D7C_VLio.css","static/js/InfoWidget-Bk3vfGsl.js","static/assets/InfoWidget-BH6UAn_s.css","static/assets/RightsizingContainer-BusBsgJh.css","static/js/SpotsContainer-CMDCls_P.js","static/js/main-mk8DkDcF.js","static/js/useGetSelectedEnvProvider-bYhIq7zA.js","static/js/warning-BPEYnS7M.js","static/js/useGetEnvData-Dp9_t_y3.js","static/assets/SpotsContainer-CoknBpKD.css","static/js/CloudmapWrapperReactFlow-BQTAhF5t.js","static/js/drilldown-animated-DZbJNOGw.js","static/js/useGetSuggestionsInfo-Cqfaeb-G.js","static/js/resource-state-loader-BTenpKow.js","static/js/DetailedPopup-DuYCGMnL.js","static/js/OrganizationLabel-CGD3oIY2.js","static/assets/OrganizationLabel-BTzABHfM.css","static/assets/DetailedPopup-DGfFoUl8.css","static/js/BoolBadge-M9-ll75Y.js","static/assets/useGetSuggestionsInfo-DPfJi7wA.css","static/js/CustomSelectPopup-C2J2KYZm.js","static/assets/CustomSelectPopup-m0iz5lgs.css","static/js/pdf-BiyJSIMQ.js","static/assets/drilldown-animated-DFXs95Dc.css","static/assets/CloudmapWrapperReactFlow-Cf3JyKsu.css","static/js/CloudnetWrapper-Dz6h2SFy.js","static/js/stackblur-es-BJ-Piou1.js","static/js/useGetRegionsByPriority-BbQRf0rN.js","static/js/SelectArrowInitiator-ZLbwAkcU.js","static/assets/SelectArrowInitiator-CuNt-urb.css","static/assets/CloudnetWrapper-DMM12YNo.css","static/js/CloudsitterContainer-Dfik06wt.js","
1static/js/useHideCabinetEnvSelector-DsdEQkke.js","static/assets/CloudsitterContainer-CDzutt6m.css","static/js/ReservationContainer-h_GcrYDA.js","static/js/CostCell-CkYpJrkF.js","static/js/useUnisaveStatus-CJlWB6Yy.js","static/js/InfoCardsList-CF3jq9-k.js","static/js/InfoCard-90LohAi_.js","static/assets/InfoCard-BKMILtqg.css","static/js/checked-fW8ajwwX.js","static/assets/ReservationContainer-DbpwGS1f.css","static/js/AMContainer-X2tifmhS.js","static/js/AccountManager-ChinDeZa.js","static/js/main-CHOeGYJB.js","static/js/insights-types-DzMzUzlF.js","static/js/import-account-creds-nbUiPd5M.js","static/js/Loader-vOuSLdxa.js","static/assets/Loader-BKlLw8na.css","static/js/main-B_G75NJ-.js","static/js/AMRemove-CBt-QH7_.js","static/assets/AMRemove-DLDHvalG.css","static/assets/AccountManager-sBYof5r6.css","static/js/CloudlistContainer-BFimlXjl.js","static/assets/CloudlistContainer-hAsmhx-N.css","static/js/SmartSavings-CLVnJqoB.js","static/js/useSavingsData-B6OecSyx.js","static/assets/SmartSavings-DQ9ml3YE.css","static/js/DashboardContainer-XpC3_LLw.js","static/js/ReadDocButton-Cayxv7Vg.js","static/assets/ReadDocButton-CqOj7yje.css","static/js/arrow-top-right-Dk0lKR2r.js","static/assets/DashboardContainer-D2WPja6Z.css","static/js/IconsKit-BatYbTmx.js","static/assets/IconsKit-DonxALie.css","static/js/SavingsContainer-Db0QqXQk.js","static/js/useGetEnvName-Cnxmz0Ec.js","static/assets/SavingsContainer-BhZyaQmW.css","static/js/TeamContainer-CyzyCxGz.js","static/js/main-Dou4za7t.js","static/assets/TeamContainer-Cd_HlICn.css","static/js/KubernetesViewContainer-DoTcnq40.js","static/js/refresh-BI-LdH59.js","static/js/CloudLoader-czquIfzp.js","static/js/Property-ocvDcD6I.js","static/assets/Property-DCPHr7L6.css","static/js/main-BpzNEzGg.js","static/assets/KubernetesViewContainer-_tfaHb8-.css","static/js/CostMonitoringContainer-BWNis9TG.js","static/js/useOrgPermissions-DaGSbddx.js","static/js/useGetDetailedOrganization-B4dNGqLA.js","static/assets/CostMonitoringContainer-Cly6ke2U.css","static/js/BudgetDetailsWrapper-mgWYhVHC.js","static/assets/BudgetDetailsWrapper-DY0-mV7i.css","static/js/InsightsContainer-mc9g82_0.js","static/assets/InsightsContainer-ClHN6rNB.css","static/js/MyAccountContainer-BEZHNcDS.js","static/js/slack-DHf6lZcb.js","static/assets/MyAccountContainer-BfM5yBUL.css","static/js/DeleteAccountContainer-DqDV8zGY.js","static/assets/DeleteAccountContainer-2DnZxErq.css","static/js/PaymentMarketplaceCallback-BJf7AF2d.js","static/js/PaymentDetailsWrapper-LSMeJMQQ.js","static/js/useGetBluesnapToken-CV9HwTw5.js","static/assets/useGetBluesnapToken-Dz458UGA.css","static/js/PlanLabel-BhFHsysK.js","static/assets/PlanLabel-Gi9Z8NVp.css","static/js/useGetCurrentBillingInfo-CYzTuJe2.js","static/assets/PaymentDetailsWrapper-CiUC5W4T.css","static/js/PaymentDetailsSuccessWrapper-D1jGMUWs.js","static/assets/PaymentDetailsSuccessWrapper-DYPAqBS3.css","static/js/UpgradeToPremiumWrapper-B2woNQF3.js","static/assets/UpgradeToPremiumWrapper-CpiHAont.css","static/js/OrganizationBillingTab-BnqpkWsR.js","static/js/pencil-BVoRgUju.js","static/assets/OrganizationBillingTab-NLcScB4E.css","static/js/OrganizationLabelsWrapper-D7-zomr5.js","static/js/useFetchVirtualAccountsData-EOQdt4Vc.js","static/js/trash-dark-BkBC2aL7.js","static/js/OrganizationOwnerWrapper-ZC-pNUZk.js","static/assets/OrganizationLabelsWrapper-DGesyzMh.css","static/js/OrganizationNotifications-BjmZUwVf.js","static/js/SlackManageModal-B3mnvm4h.js","static/assets/SlackManageModal-BWElQ91m.css","static/assets/OrganizationNotifications-Cg23nt7O.css","static/js/OrganizationSettings-fGOiWnPr.js","static/assets/OrganizationSettings-C8xhr_qj.css","static/js/OrganizationVirtualEnvs-snkqJkbM.js","static/assets/OrganizationVirtualEnvs-DPWGtntx.css","static/js/OrganizationWrapper-DgIWX10j.js","static/assets/OrganizationWrapper-DBe-lMsT.css","static/js/TeamDetailsContainer-Be0BGYay.js","static/js/AMAddAws-NNS-pwGy.js","static/js/withBackBtn-BONWhaYS.js","static/js/Tile-CiDHTeq5.js","static/assets/Tile-DebHNSkS.css","static/assets/AMAddAws-DDUkUalp.css","static/js/AMAddAwsMultiple-BoLv8KvV.js","static/js/aws-connect-CNqsGt_d.js","static/js/AMAddUpdatePolicyModal-DBRmXt8q.js","static/assets/AMAddUpdatePolicyModal-uIWDdFXJ.css","static/assets/AMAddAwsMultiple-D9I8dlsk.css","static/js/AMAddAzure-BeiWw3hv.js","static/assets/AMAddAzure-Wnz9mZJG.css","static/js/AMAddChooseCloud-BQBBv3BS.js","static/assets/AMAddChooseCloud-Bs-pksvB.css","static/js/AMAddUpdateAwsKey-CW-XIlge.js","static/js/aws-C7r99lL2.js","static/js/useSubmitAMAddUpdate-Boq0UmoD.js","static/assets/AMAddUpdateAwsKey-DaZdMP_T.css","static/js/AMAddUpdateAwsRole-B8WdX72M.js","static/assets/AMAddUpdateAwsRole-2wdpLbfc.css","static/js/AMAddUpdateAzureSubscription-COKRrkIS.js","static/js/AMAddUpdateAzureTenantForm-B_bHA6_i.js","static/js/index-Be87oYsD.js","static/js/remove-DA-faswS.js","static/js/FormObserver-DciaNEU-.js","static/assets/AMAddUpdateAzureTenantForm-SdQ8kdS4.css","static/assets/AMAddUpdateAzureSubscription-BJtJPVvV.css","static/js/AMAddUpdateAzureTenant-BJ-gCKLY.js","static/js/AMAddUpdateGcp-_oOKbB-u.js","static/assets/AMAddUpdateGcp-C274DBG2.css","static/js/AMAddUpdateOci-BwkyLfjF.js","static/assets/AMAddUpdateOci-B5Ly5JhQ.css","static/js/AMAddUpdateCoralogix-DR8mf--b.js","
1static/assets/AMAddUpdateCoralogix-A_P1KSIu.css","static/js/AMSettingsUpdate-DrdrFPNh.js","static/js/AMSettingsWrapper-noxoU4l1.js","static/assets/AMSettingsWrapper-C0PP438n.css"])))=>i.map(i=>d[i]);
2import{n as UM,B as ps,c as Ny,h as Fo,j as w,P as ka,a as qe,u as ti,b as Ot,d as en,L as Zn,e as YM,g as mee,r as pe,T as ca,f as XM,s as Lt,i as Zt,k as vee,l as yee,N as yi,m as Ic,o as Gi,p as xee,q as bee,S as Bg,C as zg,R as Cee,t as ff,v as ha,w as wee,x as _ee,y as See,z as Oee,A as X4,D as q4,E as Eee,F as vp,G as kee,H as w0,I as Cl,J as qM,K as ZM,_ as st,M as Aee,O as $ee,Q as KM,U as jo,V as wl,W as JM,X as oa,Y as ol,Z as z8,$ as hS,a0 as Tee,a1 as Vg,a2 as Wg,a3 as pS,a4 as Pee,a5 as gS,a6 as jr,a7 as Mee,a8 as Z4,a9 as Nee,aa as Iee,ab as K4,ac as V8,ad as QM,ae as W8,af as Lee,ag as mS,ah as Ye,ai as Ree,aj as vS,ak as yS,al as xS,am as jee,an as eN,ao as tN,ap as nN,aq as rN,ar as Dee,as as iN,at as bS,au as Fee,av as Bee,aw as zee,ax as Vee,ay as Wee,az as aN,aA as Hee,aB as Gee,aC as oN,aD as Uee,aE as Yee,aF as Xee,aG as CS,aH as Oh,aI as yp,aJ as qee,aK as Zee,aL as Kee,aM as sN,aN as Jee,aO as wS,aP as Qee,aQ as pg,aR as Jr,aS as u1,aT as lN,aU as ete,aV as q2,aW as tte,aX as cN,aY as nte,aZ as rte,a_ as ite,a$ as uN,b0 as gg,b1 as fN,b2 as dN,b3 as ate,b4 as ote,b5 as hN,b6 as Iy,b7 as Z0,b8 as pN,b9 as ste,ba as lte,bb as nh,bc as cte,bd as Ly,be as ute,bf as fte,bg as dte,bh as hte,bi as _S,bj as K0,bk as pte,bl as gte,bm as mte,bn as vte,bo as yte,bp as xte,bq as bte,br as Cte,bs as wte,bt as _te,bu as gN,bv as Ry,bw as Ste,bx as Hg,by as Ote,bz as Ete,bA as kte,bB as Ate,bC as $te,bD as rh,bE as Tte,bF as SS,bG as Pte,bH as Mte,bI as Nte}from"./index-ChxFcAuc.js";import{a as P,R as Xe,g as xp,d as ni,O as Wi,e as xi,k as Z2,c as mN,l as fs,m as Ite,n as Fe,o as Lte}from"./vendor-core-C0v-OB8t.js";import{a as _0,_ as Rte,b as vN,c as jte,s as OS,e as Dte,f as yN,B as Gr,h as Fte,i as xN,R as Bte,j as Gg,k as zte,l as Vte,D as C3,m as bN,n as H8,o as Wte,M as w3,F as pn,T as Wo,q as _3,I as CN,u as Hte,v as bp,w as Gte,x as Pi,y as Ute,z as Yte,P as G8,E as U8,G as Xte,H as S3,J as wN,K as qte,L as Zte,N as Kte,O as Jte,Q as Qte,U as ene,V as _N,W as tne,X as SN,Y as ON,Z as nne,t as EN,d as $r,$ as rne,a0 as Y8,a1 as ih,a2 as kN,a3 as ES,a4 as ine,a5 as ane,a6 as one,a7 as sne,a8 as kS,a9 as jy,S as AS,aa as lne,ab as cne,ac as une,ad as fne,ae as Ug,af as AN,ag as Gt,ah as Rt,ai as Te,aj as Pe,ak as jt,al as Tt,am as Je,an as St,ao as Pu,g as vc,ap as Ac,aq as df,ar as Mi,as as dne}from"./vendor-ant-ui-DEh1p71x.js";const $N=e=>e==null?void 0:e.find(t=>t.self),UUe=e=>Object.keys(e).map(n=>e[+n]).reduce((n,r)=>{const i=r&&$N(r);return i&&n.push(i),n},[]),YUe=e=>{if(e!=null&&e.given_name||e!=null&&e.family_name){let t="";return e!=null&&e.given_name&&(t+=e==null?void 0:e.given_name[0]),e!=null&&e.family_name&&(t+=e==null?void 0:e.family_name[0]),t}return""},Eu=(e,t)=>e.some(n=>n.codename===t),hne=(e,t,n,r,i)=>{const a=t&&Eu(t.permissions,e),o=n===null;if(r)return!0;if(a){if(o)return!0;if(i)return!0}return!1},Dy=(e,t)=>{e(n=>n.some(r=>r.codename===t)?n.filter(r=>r.codename!==t):[...n,{codename:t}])},TN=(e,t,n)=>{var r;return e!==void 0&&t!==void 0&&((r=n[e])==null?void 0:r.find(i=>t===i.id))||null},XUe=e=>e.given_name&&e.family_name?`${e.given_name} ${e.family_name}`:"-",[pne,gne]=["Unknown","User"],mne=e=>{const t=(e==null?void 0:e.given_name)||pne,n=(e==null?void 0:e.family_name)||gne;return`${t[0]}${n[0]}`.toUpperCase()},PN=(e,t,n,r)=>{const i=UM();let a,o=t,s=t,l=1;return r||e==="estimated"?l=.2:e==="savings"?(o=`url(#${i})`,a=w.jsxs("pattern",{id:i,patternUnits:"userSpaceOnUse",width:"4",height:"4",children:[w.jsx("rect",{width:4,height:4,x:0,y:0,fill:n}),w.jsx("path",{fillOpacity:.3,d:`M-1,1 l2,-2
3		M0,4 l4,-4
4		M3,5 l2,-2`,stroke:t})]})):e==="credits"&&(o=`url(#${i})`,a=w.jsxs("pattern",{id:i,patternUnits:"userSpaceOnUse",width:"4",height:"4",children:[w.jsx("rect",{width:4,height:4,x:0,y:0,fill:n,fillOpacity:0}),w.jsx("circle",{cx:4,cy:4,r:2,fill:t,fillOpacity:1})]})),{fill:o,fillOpacity:l,pattern:a,stroke:s}},qUe=(e,t,n,r,i)=>e===ps.groupByAll?r.reduce((a,o)=>{var l;const s=n.byId[o];if(s){const c=s==null?void 0:s.name;a[c]=((l=t[o])==null?void 0:l.color)||"#000000"}return a},{}):i,ZUe=(e,t)=>{const n={},r=[];return t&&e.forEach(i=>
4{const a=t[i];a&&(n[i]=a,r.push(a))}),e.filter(i=>!n[i]).forEach((i,a)=>{let o=0;for(;r.includes(Ny[o])&&(o++,o!==Ny.length-1););const s=Ny[o];n[i]=s,r.push(s)}),n},KUe=e=>Fo(e).format("D MMM YYYY");function ah(){return ah=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ah.apply(this,arguments)}var vne=function(t,n){n===void 0&&(n=!0),P.useEffect(function(){if(n){var r=function(a){a.key==="Escape"&&t(a)};return document.addEventListener("keyup",r),function(){n&&document.removeEventListener("keyup",r)}}},[t,n])},yne=function(t,n){n===void 0&&(n=!0),P.useEffect(function(){if(n){var r=function(){t()};return window.addEventListener("resize",r),function(){n&&window.removeEventListener("resize",r)}}},[t,n])},xne=function(t,n,r){r===void 0&&(r=!0),P.useEffect(function(){if(r){var i=function(o){var s=Array.isArray(t)?t:[t],l=!1;s.forEach(function(c){if(!c.current||c.current.contains(o.target)){l=!0;return}}),o.stopPropagation(),l||n(o)};return document.addEventListener("mousedown",i),document.addEventListener("touchstart",i),function(){r&&(document.removeEventListener("mousedown",i),document.removeEventListener("touchstart",i))}}},[t,n,r])},bne=function(t,n){n===void 0&&(n=!0),P.useEffect(function(){if(n){var r=function(a){if(a.keyCode===9){var o,s=t==null||(o=t.current)===null||o===void 0?void 0:o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),l=Array.prototype.slice.call(s);if(l.length===1){a.preventDefault();return}var c=l[0],u=l[l.length-1];a.shiftKey&&document.activeElement===c?(a.preventDefault(),u.focus()):document.activeElement===u&&(a.preventDefault(),c.focus())}};return document.addEventListener("keydown",r),function(){n&&document.removeEventListener("keydown",r)}}},[t,n])},Cne=typeof window<"u"?P.useLayoutEffect:P.useEffect,f1={popupContent:{tooltip:{position:"absolute",zIndex:999},modal:{position:"relative",margin:"auto"}},popupArrow:{height:"8px",width:"16px",position:"absolute",background:"transparent",color:"#FFF",zIndex:-1},overlay:{tooltip:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",zIndex:999},modal:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",display:"flex",zIndex:999}}},wne=["top left","top center","top right","right top","right center","right bottom","bottom left","bottom center","bottom right","left top","left center","left bottom"],_ne=function(t,n,r,i,a){var o=a.offsetX,s=a.offsetY,l=i?8:0,c=r.split(" "),u=t.top+t.height/2,f=t.left+t.width/2,d=n.height,h=n.width,p=u-d/2,g=f-h/2,v="",y="0%",x="0%";switch(c[0]){case"top":p-=d/2+t.height/2+l,v="rotate(180deg)  translateX(50%)",y="100%",x="50%";break;case"bottom":p+=d/2+t.height/2+l,v="rotate(0deg) translateY(-100%) translateX(-50%)",x="50%";break;case"left":g-=h/2+t.width/2+l,v=" rotate(90deg)  translateY(50%) translateX(-25%)",x="100%",y="50%";break;case"right":g+=h/2+t.width/2+l,v="rotate(-90deg)  translateY(-150%) translateX(25%)",y="50%";break}switch(c[1]){case"top":p=t.top,y=t.height/2+"px";break;case"bottom":p=t.top-d+t.height,y=d-t.height/2+"px";break;case"left":g=t.left,x=t.width/2+"px";break;case"right":g=t.left-h+t.width,x=h-t.width/2+"px";break}return p=c[0]==="top"?p-s:p+s,g=c[0]==="left"?g-o:g+o,{top:p,left:g,transform:v,arrowLeft:x,arrowTop:y}},Sne=function(t){var n={top:0,left:0,width:window.innerWidth,height:window.innerHeight};if(typeof t=="string"){var r=document.querySelector(t);r!==null&&(n=r.getBoundingClientRect())}return n},One=function(t,n,r,i,a,o){var s=a.offsetX,l=a.offsetY,c={arrowLeft:"0%",arrowTop:"0%",left:0,top:0,transform:"rotate(135deg)"},u=0,f=Sne(o),d=Array.isArray(r)?r:[r];for((o||Array.isArray(r))&&(d=[].concat(d,wne));u<d.length;){c=_ne(t,n,d[u],i,{offsetX:s,offsetY:l});var h={top:c.top,left:c.left,width:n.width,height:n.height};if(h.top<=f.top||h.left<=f.left||h.top+h.height>=f.top+f.height||h.left+h.width>=f.left+f.width)u++;else break}return c},Ene=0,kne=function(){var t=document.getElementById("popup-root");return t===null&&(t=document.createElement("div"),t.setAttribute("id","popup-root"),document.body.appendChild(t)),t},MN=P.forwardRef(function(e,t){var n=e.trigger,r=n===void 0?null:n,i=e.onOpen,a=i===void 0?function(){}:i,o=e.onClose,s=o===void 0?function(){}:o,l=e.defaultOpen,c=l===void 0?!1:l,u=e.open,f=u===void 0?void 0:u,d=e.disabled,h=d===void 0?!1:d,p=e.nested,g=p===void 0?!1:p,v=e.closeOnDocumentClick,y=v===void 0?!0:v,x=e.repositionOnResize,C=x===void 0?!0:x,_=e.closeOnEscape,S=_===void 0?!0:_,O=e.on,E=O===void 0?["click"]:O,k=e.contentStyle,$=k===void 0?{}:k,T=e.arrowStyle,M=T===void 0?{}:T,R=e.overlayStyle,N=R===void 0?{}:R,D=e.className,F=D===void 0?"":D,V=e.position,z=V===void 0?"bottom center"
4:V,B=e.modal,G=B===void 0?!1:B,Y=e.lockScroll,K=Y===void 0?!1:Y,Q=e.arrow,ne=Q===void 0?!0:Q,oe=e.offsetX,ae=oe===void 0?0:oe,ce=e.offsetY,fe=ce===void 0?0:ce,le=e.mouseEnterDelay,be=le===void 0?100:le,Ce=e.mouseLeaveDelay,$e=Ce===void 0?100:Ce,Me=e.keepTooltipInside,Le=Me===void 0?!1:Me,je=e.children,Ge=P.useState(f||c),nt=Ge[0],Ze=Ge[1],Ue=P.useRef(null),Qe=P.useRef(null),Pt=P.useRef(null),nn=P.useRef(null),At=P.useRef("popup-"+ ++Ene),ct=G?!0:!r,sn=P.useRef(0);Cne(function(){return nt?(nn.current=document.activeElement,bi(),Mr(),Qn()):Fn(),function(){clearTimeout(sn.current)}},[nt]),P.useEffect(function(){typeof f=="boolean"&&(f?Dt():Ct())},[f,h]);var Dt=function(tt){nt||h||(Ze(!0),setTimeout(function(){return a(tt)},0))},Ct=function(tt){var ir;!nt||h||(Ze(!1),ct&&((ir=nn.current)===null||ir===void 0||ir.focus()),setTimeout(function(){return s(tt)},0))},Jt=function(tt){tt==null||tt.stopPropagation(),nt?Ct(tt):Dt(tt)},zt=function(tt){clearTimeout(sn.current),sn.current=setTimeout(function(){return Dt(tt)},be)},cn=function(tt){tt==null||tt.preventDefault(),Jt()},Yt=function(tt){clearTimeout(sn.current),sn.current=setTimeout(function(){return Ct(tt)},$e)},Qn=function(){ct&&K&&(document.getElementsByTagName("body")[0].style.overflow="hidden")},Fn=function(){ct&&K&&(document.getElementsByTagName("body")[0].style.overflow="auto")},Mr=function(){var tt,ir=Qe==null||(tt=Qe.current)===null||tt===void 0?void 0:tt.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),zn=Array.prototype.slice.call(ir)[0];zn==null||zn.focus()};P.useImperativeHandle(t,function(){return{open:function(){Dt()},close:function(){Ct()},toggle:function(){Jt()}}});var bi=function(){if(!(ct||!nt)&&!(!(Ue!=null&&Ue.current)||!(Ue!=null&&Ue.current)||!(Qe!=null&&Qe.current))){var tt=Ue.current.getBoundingClientRect(),ir=Qe.current.getBoundingClientRect(),zn=One(tt,ir,z,ne,{offsetX:ae,offsetY:fe},Le);if(Qe.current.style.top=zn.top+window.scrollY+"px",Qe.current.style.left=zn.left+window.scrollX+"px",ne&&Pt.current){var ii,Xr;Pt.current.style.transform=zn.transform,Pt.current.style.setProperty("-ms-transform",zn.transform),Pt.current.style.setProperty("-webkit-transform",zn.transform),Pt.current.style.top=((ii=M.top)===null||ii===void 0?void 0:ii.toString())||zn.arrowTop,Pt.current.style.left=((Xr=M.left)===null||Xr===void 0?void 0:Xr.toString())||zn.arrowLeft}}};vne(Ct,S),bne(Qe,nt&&ct),yne(bi,C),xne(r?[Qe,Ue]:[Qe],Ct,y&&!g);var ga=function(){for(var tt={key:"T",ref:Ue,"aria-describedby":At.current},ir=Array.isArray(E)?E:[E],zn=0,ii=ir.length;zn<ii;zn++)switch(ir[zn]){case"click":tt.onClick=Jt;break;case"right-click":tt.onContextMenu=cn;break;case"hover":tt.onMouseEnter=zt,tt.onMouseLeave=Yt;break;case"focus":tt.onFocus=zt,tt.onBlur=Yt;break}if(typeof r=="function"){var Xr=r(nt);return!!r&&Xe.cloneElement(Xr,tt)}return!!r&&Xe.cloneElement(r,tt)},Ma=function(){var tt=ct?f1.popupContent.modal:f1.popupContent.tooltip,ir={className:"popup-content "+(F!==""?F.split(" ").map(function(zn){return zn+"-content"}).join(" "):""),style:ah({},tt,$,{pointerEvents:"auto"}),ref:Qe,onClick:function(ii){ii.stopPropagation()}};return!G&&E.indexOf("hover")>=0&&(ir.onMouseEnter=zt,ir.onMouseLeave=Yt),ir},Na=function(){return Xe.createElement("div",Object.assign({},Ma(),{key:"C",role:ct?"dialog":"tooltip",id:At.current}),ne&&!ct&&Xe.createElement("div",{ref:Pt,style:f1.popupArrow},Xe.createElement("svg",{"data-testid":"arrow",className:"popup-arrow "+(F!==""?F.split(" ").map(function(tt){return tt+"-arrow"}).join(" "):""),viewBox:"0 0 32 16",style:ah({position:"absolute"},M)},Xe.createElement("path",{d:"M16 0l16 16H0z",fill:"currentcolor"}))),je&&typeof je=="function"?je(Ct,nt):je)},Fs=!(E.indexOf("hover")>=0),Ci=ct?f1.overlay.modal:f1.overlay.tooltip,Bs=[Fs&&Xe.createElement("div",{key:"O","data-testid":"overlay","data-
4popup":ct?"modal":"tooltip",className:"popup-overlay "+(F!==""?F.split(" ").map(function(Bn){return Bn+"-overlay"}).join(" "):""),style:ah({},Ci,N,{pointerEvents:y&&g||ct?"auto":"none"}),onClick:y&&g?Ct:void 0,tabIndex:-1},ct&&Na()),!ct&&Na()];return Xe.createElement(Xe.Fragment,null,ga(),nt&&_0.createPortal(Bs,kne()))});const Ane=e=>{const t=Fo().format("YYYY-MM-DD");return e.trial_end!==null&&e.trial_end<t&&(e.plan===ka.trial||e.plan===ka.bronze)},$ne=e=>{const n=Fo().format("YYYY-MM-DD");return e.trial_end!==null&&e.trial_end>=n&&Fo(e.trial_end).diff(Fo(),"days")<=14&&e.plan===ka.trial},Tne=e=>Fo(e).add(1,"day").format("MMM D, YYYY"),Pne="animated_vCKkp",Mne="wrapper_9zsrI",$S={animated:Pne,wrapper:Mne},Nne="popup_nwDIK",Ine="animated_Ytk-h",TS={popup:Nne,animated:Ine},Lne=({children:e,animated:t})=>w.jsx("div",{className:qe(TS.popup,t&&TS.animated),children:e}),Rne=({children:e,className:t,style:n,noWrapper:r,animated:i})=>{const a=w.jsx("div",{onWheel:o=>o.stopPropagation(),className:qe($S.wrapper,"scrollbar",t,i&&$S.animated),style:n,children:e});return r?a:w.jsx(Lne,{animated:i,children:a})},jne="wrapper_adJ5p",Dne="checkboxBlock_k1X05",Fne="checkbox_qvgyx",Bne="checkmark_dOz5A",zne="checked_IVJRb",Vne="disabled_PEVdG",Wne="checkmarkError_FvWGx",Hne="text_XGBB7",Gne="textError_onuQn",rs={wrapper:jne,checkboxBlock:Dne,checkbox:Fne,checkmark:Bne,checked:zne,disabled:Vne,checkmarkError:Wne,text:Hne,textError:Gne},Une=({checked:e,onChange:t,disabled:n,topStyle:r,style:i,className:a,name:o,text:s,error:l})=>w.jsx("div",{className:a,style:r,children:w.jsxs("div",{className:rs.wrapper,children:[w.jsxs("label",{className:qe(rs.checkboxBlock),style:i,children:[w.jsx("input",{checked:e,onChange:t,type:"checkbox",className:rs.checkbox,disabled:n,name:o}),w.jsx("div",{className:qe(rs.checkmark,e&&rs.checked,n&&rs.disabled,l&&!e&&rs.checkmarkError)})]}),w.jsx("p",{className:qe(rs.text,l&&!e&&rs.textError,n&&rs.disabled),children:s})]})}),Yne="wrapper_2MluR",Xne={wrapper:Yne},qne=(e,t,n,r)=>{P.useEffect(()=>{const i=a=>{var o;e.current&&!e.current.contains(a.target)&&!((o=document.querySelector("#popup-root"))!=null&&o.contains(a.target))&&n(a)};return document.addEventListener(t||"mousedown",i),()=>{document.removeEventListener(t||"mousedown",i)}},[e,...r])},NN=({style:e,className:t,callEvent:n,children:r,callback:i,dependencies:a})=>{const o=P.useRef(null);return qne(o,n,i,a||[]),w.jsx("div",{ref:o,style:e,className:qe(t,Xne.wrapper),children:r})},Zne="wrapperPadding_YhXM9",Kne="wrapper_4r2-F",Jne="content_tOoa4",Qne="scrollable_2jQtk",K2={wrapperPadding:Zne,wrapper:Kne,content:Jne,scrollable:Qne};function IN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rte(e,t)}var Fy={exports:{}},By,PS;function ere(){if(PS)return By;PS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return By=e,By}var zy,MS;function tre(){if(MS)return zy;MS=1;var e=ere();function t(){}function n(){}return n.resetWarningCache=t,zy=function(){function r(o,s,l,c,u,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},zy}var NS;function nre(){return NS||(NS=1,Fy.exports=tre()()),Fy.exports}var rre=nre();const Be=xp(rre);function ire(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function are(e,t){e.classList?e.classList.add(t):ire(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}
vendor: 4,479 bytes, line 4
4function IS(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ore(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=IS(e.className,t):e.setAttribute("class",IS(e.className&&e.className.baseVal||"",t))}const LS={disabled:!1},LN=Xe.createContext(null);var RN=function(t){return t.scrollTop},N1="unmounted",ku="exited",Au="entering",y0="entered",J4="exiting",Rl=function(e){IN(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=i,s=o&&!o.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=ku,a.appearStatus=Au):l=y0:r.unmountOnExit||r.mountOnEnter?l=N1:l=ku,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===N1?{status:ku}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Au&&o!==y0&&(a=Au):(o===Au||o===y0)&&(a=J4)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Au){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:_0.findDOMNode(this);o&&RN(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ku&&this.setState({status:N1})},n.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[_0.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||LS.disabled){this.safeSetState({status:y0},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Au},function(){a.props.onEntering(c,u),a.onTransitionEnd(d,function(){a.safeSetState({status:y0},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:_0.findDOMNode(this);if(!a||LS.disabled){this.safeSetState({status:ku},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:J4},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:ku},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:_0.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===N1)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=vN(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Xe.createElement(LN.Provider,{value:null},typeof o=="function"?o(i,s):Xe.cloneElement(Xe.Children.only(o),s))},t}(Xe.Component);Rl.contextType=LN;Rl.propTypes={};function t0(){}Rl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:t0,onEntering:t0,onEntered:t0,onExit:t0,onExiting:t0,onExited:t0};Rl.UNMOUNTED=N1;Rl.EXITED=ku;Rl.ENTERING=Au;Rl.ENTERED=y0;Rl.EXITING=J4;var sre=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return are(t,r)})},Vy=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return ore(t,r)})},X8=function(e){IN(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];
4return r=e.call.apply(e,[this].concat(a))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(s,l){var c=r.resolveArguments(s,l),u=c[0],f=c[1];r.removeClasses(u,"exit"),r.addClass(u,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(s,l)},r.onEntering=function(s,l){var c=r.resolveArguments(s,l),u=c[0],f=c[1],d=f?"appear":"enter";r.addClass(u,d,"active"),r.props.onEntering&&r.props.onEntering(s,l)},r.onEntered=function(s,l){var c=r.resolveArguments(s,l),u=c[0],f=c[1],d=f?"appear":"enter";r.removeClasses(u,d),r.addClass(u,d,"done"),r.props.onEntered&&r.props.onEntered(s,l)},r.onExit=function(s){var l=r.resolveArguments(s),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(s)},r.onExiting=function(s){var l=r.resolveArguments(s),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(s)},r.onExited=function(s){var l=r.resolveArguments(s),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(s)},r.resolveArguments=function(s,l){return r.props.nodeRef?[r.props.nodeRef.current,s]:[s,l]},r.getClassNames=function(s){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",f=c?""+u+s:l[s],d=c?f+"-active":l[s+"Active"],h=c?f+"-done":l[s+"Done"];return{baseClassName:f,activeClassName:d,doneClassName:h}},r}var n=t.prototype;return n.addClass=function(i,a,o){var s=this.getClassNames(a)[o+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;a==="appear"&&o==="done"&&c&&(s+=" "+c),o==="active"&&i&&RN(i),s&&(this.appliedClasses[a][o]=s,sre(i,s))},n.removeClasses=function(i,a){var o=this.appliedClasses[a],s=o.base,l=o.active,c=o.done;this.appliedClasses[a]={},s&&Vy(i,s),l&&Vy(i,l),c&&Vy(i,c)},n.render=function(){var i=this.props;i.classNames;var a=vN(i,["classNames"]);return Xe.createElement(Rl,jte({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Xe.Component);X8.defaultProps={classNames:""};X8.propTypes={};const jN=({children:e,isOpened:t=!1,onClick:n,width:r,maxWidth:i,minWidth:a,height:o,maxHeight:s,style:l,contentStyle:c,top:u,right:f,bottom:d,left:h,withoutWrapper:p,timeout:g=300})=>{const v=P.useRef(null),[y,x]=P.useState(!1),C=P.useRef(null);P.useEffect(()=>{const S=C.current;S&&S.children&&S.children.length&&S.children[0].clientHeight>S.clientHeight&&x(!0)},[e]);const _=()=>w.jsx("div",{style:{...s&&{maxHeight:s},...o&&{height:o},...c},className:qe(K2.content,y&&K2.scrollable,y&&"scrollbar"),ref:C,children:e});return w.jsx(X8,{nodeRef:v,classNames:"cstPopupComponentAnimation",timeout:g,in:t,unmountOnExit:!0,children:w.jsx("div",{ref:v,className:K2.wrapperPadding,style:{to
4p:u,right:f,bottom:d,left:h,minWidth:a,...i&&{maxWidth:i},...r&&{width:r},...l},onClick:n,children:p?_():w.jsxs("div",{className:qe(K2.wrapper),children:[" ",_()]})})})},lre=({initiatorElement:e,popupContent:t,popupWidth:n,popupMaxHeight:r,popupPosition:i,className:a,alerterStyle:o,initialOpened:s=!1,closeOnScroll:l=!1})=>{const[c,u]=P.useState(s),{top:f,right:d,bottom:h,left:p}=i,g=()=>{u(!1)};return P.useEffect(()=>{if(l&&c)return window.addEventListener("wheel",g),()=>{window.removeEventListener("wheel",g)}},[c]),w.jsxs(NN,{className:a,style:{position:"relative",...o},callback:()=>u(!1),dependencies:[],children:[e(()=>u(v=>!v),c),w.jsx(jN,{isOpened:c,style:{width:n},top:`calc(100% + ${f})`,bottom:`calc(100% + ${h})`,right:d,left:p,maxHeight:r||"220px",children:t(()=>u(!1),c)})]})},cre=({fillColor:e="#fff"})=>w.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M6.99992 12.3333C4.05992 12.3333 1.66659 9.93992 1.66659 6.99992C1.66659 4.05992 4.05992 1.66659 6.99992 1.66659C9.93992 1.66659 12.3333 4.05992 12.3333 6.99992C12.3333 9.93992 9.93992 12.3333 6.99992 12.3333ZM6.99992 0.333252C6.12444 0.333252 5.25753 0.50569 4.4487 0.840722C3.63986 1.17575 2.90493 1.66682 2.28587 2.28587C1.03563 3.53612 0.333252 5.23181 0.333252 6.99992C0.333252 8.76803 1.03563 10.4637 2.28587 11.714C2.90493 12.333 3.63986 12.8241 4.4487 13.1591C5.25753 13.4941 6.12444 13.6666 6.99992 13.6666C8.76803 13.6666 10.4637 12.9642 11.714 11.714C12.9642 10.4637 13.6666 8.76803 13.6666 6.99992C13.6666 6.12444 13.4941 5.25753 13.1591 4.4487C12.8241 3.63986 12.333 2.90493 11.714 2.28587C11.0949 1.66682 10.36 1.17575 9.55114 0.840722C8.7423 0.50569 7.8754 0.333252 6.99992 0.333252ZM7.66659 3.66659H6.33325V6.33325H3.66659V7.66659H6.33325V10.3333H7.66659V7.66659H10.3333V6.33325H7.66659V3.66659Z",fill:e})}),ure="option_XzTsQ",fre="optionContent_kUcw-",dre="optionIcon_OFbwY",hre="active_6qMey",pre="disabled_eVx6z",gre="arrow_gAA3j",mre="activeIcon_M-6tg",rc={option:ure,optionContent:fre,optionIcon:dre,active:hre,disabled:pre,arrow:gre,activeIcon:mre},vre=e=>P.createElement("svg",{width:10,height:6,viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.07573 0.575737C1.31004 0.341423 1.68994 0.341423 1.92426 0.575737L4.99999 3.65147L8.07573 0.575737C8.31004 0.341423 8.68994 0.341423 8.92426 0.575737C9.15857 0.810052 9.15857 1.18995 8.92426 1.42427L5.42426 4.92427C5.18994 5.15858 4.81004 5.15858 4.57573 4.92427L1.07573 1.42427C0.841415 1.18995 0.841415 0.810052 1.07573 0.575737Z",fill:"#4A5765"})),DN=e=>P.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"#6CAE3E",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M14 4.66668L5.99998 12.6667L2.33331 9.00002L3.27331 8.06002L5.99998 10.78L13.06 3.72668L14 4.66668Z"})),Q4=({renderIcon:e,value:t,label:n,active:r,disabled:i,onClick:a,arrow:o,spanClassName:s,className:l,renderRight:c,removeWhitespace:u,style:f})=>{const{variables:d}=ti();return w.jsxs("div",{onClick:()=>!i&&a(t),className:qe(rc.option,r&&rc.active,i&&rc.disabled,!u&&rc.whitespace,l),style:f,children:[w.jsxs("div",{className:rc.optionContent,children:[e&&w.jsx("div",{className:rc.optionIcon,children:e()}),w.jsx("span",{className:s,children:n})]}),c&&c(),o&&w.jsx(vre,{className:rc.arrow}),!o&&r&&w.jsx("div",{className:rc.activeIcon,children:w.jsx(DN,{fill:d["--colorsBrandPrimaryColorPrimary"]})})]})},yre="4.8.0",xre={g:"LottieFiles AE 3.5.7",a:"",k:"",d:"",tc:""},bre=30,Cre=0,wre=80,_re=128,Sre=128,Ore="no-info",Ere=0,kre=[],Are=JSON.parse('[{"ddd":0,"ind":1,"ty":3,"nm":"▽ desktop","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[64,56,0],"ix":2},"a":{"a":0,"k":[54,44,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Rectangle 925","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[92,47,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-8,-3],[8,-3],[8,3],[-8,3]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":3,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"st","c":{"a":0,"k":[0.690196096897,0.698039233685,0.741176486015,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 925","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Rectangle 924","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[92,37,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-8,-3],[8,-3],[8,3],[-8,3]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":3,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"st","c":{"a":0,"k":[0.690196096897,0.698039233685,0.741176486015,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 924","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Rectangle 926","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[20,6,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[12,0],[-12,0]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":0,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"st","c":{"a":0,"k":[0.690196096897,0.698039233685,0.741176486015,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 926","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Rectangle 923","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[92,27,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-8,-3],[8,-3],[8,3],[-8,3]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":3,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"st","c":{"a":0,"k":[0.690196096897,0.698039233685,0.741176486015,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 923","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Rectangle 928","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,47,0],"ix":2},"a":{"a":0,"k":[-34,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.196,"y":1},"o":{"x":0.5,"y":0}
vendor: 12,228 bytes, line 4
4,"t":9,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-34,-3],[2.5,-3],[2.5,3],[-34,3]],"c":true}]},{"i":{"x":0.196,"y":1},"o":{"x":0.786,"y":0},"t":33,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-34,-3],[34,-3],[34,3],[-34,3]],"c":true}]},{"i":{"x":0.475,"y":1},"o":{"x":0.786,"y":0},"t":37,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-34,-3],[34,-3],[34,3],[-34,3]],"c":true}]},{"t":61,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-34,-3],[2.5,-3],[2.5,3],[-34,3]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":3,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"st","c":{"a":0,"k":[0.690196096897,0.698039233685,0.741176486015,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 920","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Rectangle 927","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,37,0],"ix":2},"a":{"a":0,"k":[-34,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.196,"y":1},"o":{"x":0.5,"y":0},"t":5,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-34,-3],[2.5,-3],[2.5,3],[-34,3]],"c":true}]},{"i":{"x":0.196,"y":1},"o":{"x":0.786,"y":0},"t":29,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-34,-3],[34,-3],[34,3],[-34,3]],"c":true}]},{"i":{"x":0.475,"y":1},"o":{"x":0.786,"y":0},"t":33,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-34,-3],[34,-3],[34,3],[-34,3]],"c":true}]},{"t":57,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-34,-3],[2.5,-3],[2.5,3],[-34,3]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":3,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"st","c":{"a":0,"k":[0.690196096897,0.698039233685,0.741176486015,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 920","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"Rectangle 920","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,27,0],"ix":2},"a":{"a":0,"k":[-34,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.196,"y":1},"o":{"x":0.5,"y":0},"t":0,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-34,-3],[2.5,-3],[2.5,3],[-34,3]],"c":true}]},{"i":{"x":0.196,"y":1},"o":{"x":0.786,"y":0},"t":24,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-34,-3],[34,-3],[34,3],[-34,3]],"c":true}]},{"i":{"x":0.475,"y":1},"o":{"x":0.786,"y":0},"t":28,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-34,-3],[34,-3],[34,3],[-34,3]],"c":true}]},{"t":52,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-34,-3],[2.5,-3],[2.5,3],[-34,3]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":3,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"st","c":{"a":0,"k":[0.690196096897,0.698039233685,0.741176486015,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 920","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Rectangle 919","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[54,6,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-54,-6],[54,-6],[54,6],[-54,6]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"st","c":{"a":0,"k":[0.690196096897,0.698039233685,0.741176486015,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 919","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Rectangle 918","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[54,52,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[22.552,36],[54,36],[54,-36],[-54,-36],[-54,36],[-21.621,36]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"st","c":{"a":0,"k":[0.690196096897,0.698039233685,0.741176486015,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 918","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":3,"nm":"▽ glass","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[64.627,87.981,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":40,"s":[64.627,100.481,0],"to":[0,0,0],"ti":[0,0,0]},{"t":80,"s":[64.627,87.981,0]}],"ix":2},"a":{"a":0,"k":[22.627,22.981,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"Line 189","parent":11,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[23,23,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[-100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[8.485,0],[-8.485,0]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.690196096897,0.698039233685,0.741176486015,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":45,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Line 189","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"Line 188","parent":11,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[23,23,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[8.485,0],[-8.485,0]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.690196096897,0.698039233685,0.741176486015,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":45,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Line 188","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":14,"ty":4,"nm":"Line 187","parent":11,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[38.891,40.305,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-8,0],[8,0]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.690196096897,0.698039233685,0.741176486015,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":45,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Line 187","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":15,"ty":4,"nm":"Ellipse 1154","parent":11,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[22.627,22.627,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-8.989,0],[0,-8.989],[8.989,0],[0,8.989]],"o":[[8.989,0],[0,8.989],[-8.989,0],[0,-8.989]],"v":[[0,-16],[16,0],[0,16],[-16,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.690196096897,0.698039233685,0.741176486015,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":-45,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1154","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0}]'),$re=[],Tre={v:yre,meta:xre,fr:bre,ip:Cre,op:wre,w:_re,h:Sre,nm:Ore,ddd:Ere,assets:kre,layers:Are,markers:$re},Pre=()=>{const e=Ot(o=>o.payment.preEstimatedBill),t=en(),[n,r]=P.useState(null),i=P.useMemo(()=>e[t.id],[e,t.id]),a=P.useMemo(()=>i,[i]);return P.useEffect(()=>{if(a&&a.loadingState===Zn.isLoaded&&a.data){const o=a.data.reduce((s,l)=>s+(l.spending||0),0);r(o)}},[a]),{preEstimatedBill:a,estConsumptionTotal:n}},Mre=e=>{const{estConsumptionTotal:t}=Pre(),n=ni(),r=(e==null?void 0:e.data)&&YM[e.data.pricing_model],i=t!==null&&r?mee(t,r):null;return{moveToPaymentsDetailsPage:()=>{var o;
4n(pe.paymentDetails,{state:{plan:r,price:i,specialPrice:((o=e==null?void 0:e.data)==null?void 0:o.fixed_price)||null}})}}},Nre=()=>{const e=Ot(r=>r.payment.specialOffer),t=en(),n=P.useMemo(()=>e[t.id],[e,t.id]);return{specialOffers:e,currentOrgSpecialOffer:n}},FN=()=>{const{currentOrgSpecialOffer:e}=Nre(),{moveToPaymentsDetailsPage:t}=Mre(e),n=e==null?void 0:e.data,r=(e==null?void 0:e.data)&&YM[e.data.pricing_model];return{isSpecialOfferExist:n,paymentPlan:r,moveToPaymentsDetailsPage:t,currentOrgSpecialOffer:e}},BN=()=>{const e=ni(),{moveToPaymentsDetailsPage:t,isSpecialOfferExist:n}=FN();return{handleUpgrade:P.useCallback(()=>{n?t():e(pe.paymentUpgradeToPremium)},[n,t])}},Ire="/cabinet/static/assets/amazon-logo-CUgmYzgN.svg",Lre="/cabinet/static/assets/amazon-logo-dark-CUnyfwjp.svg",Rre="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.9608%208.24582L18.0468%206.19164L18.1855%205.32658C14.3849%201.92172%208.34176%202.30763%204.91426%206.13163C3.9627%207.19334%203.25582%208.51724%202.87988%209.88454L3.62707%209.78114L7.79988%209.10349L8.12238%208.77944C9.97863%206.77235%2013.1164%206.50184%2015.2596%208.20981L15.9608%208.24582Z'%20fill='%23EA4335'/%3e%3cpath%20d='M21.0187%209.82448C20.5387%208.08512%2019.5543%206.5221%2018.1856%205.32652L15.2578%208.20976C16.4943%209.205%2017.1984%2010.7034%2017.1684%2012.2756V12.7871C18.6075%2012.7871%2019.7746%2013.9356%2019.7746%2015.3537C19.7746%2016.7708%2018.6075%2017.8916%2017.1684%2017.8916H11.9493L11.4365%2018.4391V21.5171L11.9493%2022H17.1684C20.9118%2022.0286%2023.97%2019.0928%2023.999%2015.4063C24.0178%2013.1712%2022.8984%2011.0764%2021.0187%209.82448Z'%20fill='%234285F4'/%3e%3cpath%20d='M6.7377%2022H11.9493V17.8907H6.7377C6.36645%2017.8907%206.00644%2017.8123%205.66895%2017.6599L4.92926%2017.8833L2.82832%2019.9375L2.64551%2020.6364C3.82395%2021.5135%205.26113%2022.0056%206.7377%2022Z'%20fill='%2334A853'/%3e%3cpath%20d='M6.73794%208.67142C2.9945%208.69266%20-0.022375%2011.6996%200.00012504%2015.3861C0.0123125%2017.4448%200.989188%2019.3827%202.64575%2020.6374L5.66919%2017.66C4.35763%2017.0765%203.7745%2015.5559%204.367%2014.2643C4.9595%2012.9727%206.50356%2012.3985%207.81419%2012.982C8.39263%2013.2386%208.85481%2013.6947%209.11638%2014.2643L12.1398%2011.2869C10.8536%209.63158%208.85482%208.66312%206.73794%208.67142Z'%20fill='%23FBBC05'/%3e%3c/svg%3e",jre="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.66538%201.00014H9.80652L5.50766%2013.6508C5.46349%2013.7808%205.37937%2013.8938%205.26715%2013.9738C5.15493%2014.0538%205.02026%2014.0969%204.8821%2014.0969H1.65929C1.50136%2014.0969%201.34866%2014.0406%201.229%2013.9382C1.10933%2013.8359%201.03065%2013.6942%201.00728%2013.5391C0.991769%2013.4363%201.00112%2013.3313%201.03457%2013.2328L5.03975%201.44624C5.08391%201.3162%205.16804%201.20319%205.28027%201.12314C5.39251%201.04308%205.5272%201.00002%205.66538%201V1.00014Z'%20fill='url(%23paint0_linear_25753_112478)'/%3e%3cpath%20d='M11.6636%209.50537H5.14105C5.0804%209.50528%205.02114%209.52338%204.97099%209.55733C4.92084%209.59127%204.88213%209.63948%204.85992%209.69565C4.83767%209.75181%204.83293%209.81334%204.8463%209.87222C4.85968%209.93111%204.89055%209.98461%204.93491%2010.0258L9.12616%2013.9205C9.24819%2014.0338%209.40883%2014.0968%209.57569%2014.0968H13.269L11.6636%209.50537Z'%20fill='%230078D4'/%3e%3cpath%20d='M5.65908%201C5.51955%200.999477%205.38349%201.04333%205.2708%201.12515C5.15811%201.20697%205.07468%201.32248%205.0327%201.4548L1.03859%2013.222C1.00295%2013.3209%200.991769%2013.4268%201.006%2013.5309C1.02023%2013.6349%201.05944%2013.7341%201.12033%2013.8199C1.18122%2013.9057%201.26199%2013.9756%201.35582%2014.0239C1.44964%2014.0721%201.55376%2014.0971%201.65938%2014.0969H4.96162C5.08458%2014.075%205.19951%2014.021%205.29466%2013.9405C5.38982%2013.86%205.46181%2013.7559%205.50329%2013.6387L6.29986%2011.3046L9.14507%2013.9433C9.26429%2014.0413%209.41384%2014.0956%209.56856%2014.0969H13.2689L11.646%209.48532L6.91499%209.48643L9.81053%201H5.65908Z'%20fill='url(%23paint1_linear_25753_112478)'/%3e%3cpath%20d='M10.9696%201.44548C10.9256%201.31561%2010.8418%201.20276%2010.73%201.12283C10.6182%201.04291%2010.484%200.999942%2010.3463%201H5.74
4194C5.87959%200.999984%206.01377%201.04296%206.12559%201.12288C6.2374%201.2028%206.32121%201.31563%206.3652%201.44548L10.3611%2013.2325C10.3945%2013.3311%2010.4038%2013.4361%2010.3884%2013.5389C10.3729%2013.6417%2010.3331%2013.7394%2010.2723%2013.8239C10.2113%2013.9083%2010.1311%2013.9771%2010.0382%2014.0246C9.94525%2014.0721%209.84232%2014.0968%209.73788%2014.0969H14.3424C14.4468%2014.0968%2014.5498%2014.072%2014.6427%2014.0245C14.7356%2013.9771%2014.8158%2013.9083%2014.8767%2013.8238C14.9376%2013.7394%2014.9774%2013.6417%2014.9928%2013.5389C15.0083%2013.436%2014.9989%2013.331%2014.9655%2013.2325L10.9696%201.44548Z'%20fill='url(%23paint2_linear_25753_112478)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_25753_112478'%20x1='7.1747'%20y1='1.97067'%20x2='2.92642'%20y2='14.6071'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23114A8B'/%3e%3cstop%20offset='1'%20stop-color='%230669BC'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_25753_112478'%20x1='8.50863'%20y1='7.85135'%20x2='7.51612'%20y2='8.18884'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-opacity='0.3'/%3e%3cstop%20offset='0.071'%20stop-opacity='0.2'/%3e%3cstop%20offset='0.321'%20stop-opacity='0.1'/%3e%3cstop%20offset='0.623'%20stop-opacity='0.05'/%3e%3cstop%20offset='1'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_25753_112478'%20x1='7.993'%20y1='1.60247'%20x2='12.6659'%20y2='14.1079'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%233CCBF4'/%3e%3cstop%20offset='1'%20stop-color='%232892DF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Dre="data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1760_85756)'%3e%3cpath%20d='M43.7662%2012C54.9418%2012%2064%2020.8651%2064%2031.8026C64%2042.7539%2054.9418%2051.619%2043.7662%2051.619L20.2385%2051.6098C9.06286%2051.6098%200%2042.7493%200%2031.8026C0%2020.8651%209.06286%2012%2020.2385%2012H43.7662ZM43.2345%2018.9862H20.7655C13.5284%2018.9862%207.66061%2024.7243%207.66061%2031.8026C7.66061%2038.8901%2013.5284%2044.6329%2020.7655%2044.6329H43.2345C50.4716%2044.6329%2056.3441%2038.8901%2056.3441%2031.8026C56.3441%2024.7243%2050.4716%2018.9862%2043.2345%2018.9862Z'%20fill='%23C74634'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1760_85756'%3e%3crect%20width='64'%20height='64'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Fre="data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='32'%20cy='32'%20r='23'%20stroke='%234BDE80'%20stroke-width='6'/%3e%3ccircle%20cx='32'%20cy='32'%20r='15'%20fill='%2386EFAC'/%3e%3c/svg%3e",zN=()=>{const{theme:e}=ti(),t={aws:e===ca.light?Ire:Lre,gcp:Rre,azure:jre,oci:Dre,coralogix:Fre},n=P.useCallback(r=>r?t[r]:"",[e]);return{dict:t,getCloudLogoByProvider:n}},Bre="noInformationWrapper_4Izyf",zre="large_-TSMp",Vre="noInformationTitle_bnvRT",Wre="noInformationDescription_C8q3B",Hre="small_QIY0L",Gre="img_UnpOR",d1={noInformationWrapper:Bre,large:zre,noInformationTitle:Vre,noInformationDescription:Wre,small:Hre,img:Gre},VN=e=>P.createElement("svg",{width:152,height:100,viewBox:"0 0 152 100",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("g",{opacity:.2},P.createElement("path",{d:"M14.32 81L14.32 95H12.18L4.46 85.52L4.46 95H1.88L1.88 81H4.02L11.74 90.48L11.74 81H14.32ZM22.6314 95.14C21.5514 95.14 20.5781 94.9067 19.7114 94.44C18.8447 93.9733 18.1647 93.3267 17.6714 92.5C17.1914 91.66 16.9514 90.7133 16.9514 89.66C16.9514 88.6067 17.1914 87.6667 17.6714 86.84C18.1647 86.0133 18.8447 85.3667 19.7114 84.9C20.5781 84.4333 21.5514 84.2 22.6314 84.2C23.7247 84.2 24.7047 84.4333 25.5714 84.9C26.4381 85.3667 27.1114 86.0133 27.5914 86.84C28.0847 87.6667 28.3314 88.6067 28.3314 89.66C28.3314 90.7133 28.0847 91.66 27.5914 92.5C27.1114 93.3267 26.4381 93.9733 25.5714 94.44C24.7047 94.9067 23.7247 95.14 22.6314 95.14ZM22.6314 93C23.5514 93 24.3114 92.6933 24.9114 92.08C25.5114 91.4667 25.8114 90.66 25.8114 89.66C25.8114 88.66 25.5114 87.8533 24.9114 87.24C24.3114 86.6267 23.5514 86.32 22.6314 86.32C21.7114 86.32 20.9514 86.6267 20.3514 87.24C19.7647 87.8533 19.4714 88.66 19.4714 89.66C19.4714 90.66 19.7647 91.4667 20.3514 92.08C20.9514 92.6933 21.7114 93 22.6314 93ZM42.1694 84.2C43.2094 84.2 44.136 84.4267 44.9494 84.88C45.776 85.3333 46.4227 85.9733 46.8894 86.8
4C47.356 87.6267 47.5894 88.58 47.5894 89.66C47.5894 90.74 47.356 91.7 46.8894 92.54C46.4227 93.3667 45.776 94.0067 44.9494 94.46C44.136 94.9133 43.2094 95.14 42.1694 95.14C41.436 95.14 40.7627 95.0133 40.1494 94.76C39.5494 94.5067 39.0427 94.1267 38.6294 93.62V95H36.2494V80.16H38.7494V85.62C39.176 85.1533 39.676 84.8 40.2494 84.56C40.836 84.32 41.476 84.2 42.1694 84.2ZM41.8894 93C42.8094 93 43.5627 92.6933 44.1494 92.08C44.7494 91.4667 45.0494 90.66 45.0494 89.66C45.0494 88.66 44.7494 87.8533 44.1494 87.24C43.5627 86.6267 42.8094 86.32 41.8894 86.32C41.2894 86.32 40.7494 86.46 40.2694 86.74C39.7894 87.0067 39.4094 87.3933 39.1294 87.9C38.8494 88.4067 38.7094 88.9933 38.7094 89.66C38.7094 90.3267 38.8494 90.9133 39.1294 91.42C39.4094 91.9267 39.7894 92.32 40.2694 92.6C40.7494 92.8667 41.2894 93 41.8894 93ZM49.9603 84.32H52.4603V95H49.9603V84.32ZM51.2203 82.56C50.767 82.56 50.387 82.42 50.0803 82.14C49.7736 81.8467 49.6203 81.4867 49.6203 81.06C49.6203 80.6333 49.7736 80.28 50.0803 80C50.387 79.7067 50.767 79.56 51.2203 79.56C51.6736 79.56 52.0536 79.7 52.3603 79.98C52.667 80.2467 52.8203 80.5867 52.8203 81C52.8203 81.44 52.667 81.8133 52.3603 82.12C52.067 82.4133 51.687 82.56 51.2203 82.56ZM55.7416 80.16H58.2416V95H55.7416V80.16ZM61.5228 80.16H64.0228V95H61.5228V80.16ZM67.3041 84.32H69.8041V95H67.3041V84.32ZM68.5641 82.56C68.1107 82.56 67.7307 82.42 67.4241 82.14C67.1174 81.8467 66.9641 81.4867 66.9641 81.06C66.9641 80.6333 67.1174 80.28 67.4241 80C67.7307 79.7067 68.1107 79.56 68.5641 79.56C69.0174 79.56 69.3974 79.7 69.7041 79.98C70.0107 80.2467 70.1641 80.5867 70.1641 81C70.1641 81.44 70.0107 81.8133 69.7041 82.12C69.4107 82.4133 69.0307 82.56 68.5641 82.56ZM79.1453 84.2C80.492 84.2 81.572 84.5933 82.3853 85.38C83.1986 86.1667 83.6053 87.3333 83.6053 88.88V95H81.1053V89.2C81.1053 88.2667 80.8853 87.5667 80.4453 87.1C80.0053 86.62 79.3786 86.38 78.5653 86.38C77.6453 86.38 76.9186 86.66 76.3853 87.22C75.852 87.7667 75.5853 88.56 75.5853 89.6V95H73.0853V84.32H75.4653V85.7C75.8786 85.2067 76.3986 84.8333 77.0253 84.58C77.652 84.3267 78.3586 84.2 79.1453 84.2ZM97.4744 84.32V93.38C97.4744 97.14 95.5544 99.02 91.7144 99.02C90.6877 99.02 89.7144 98.8867 88.7944 98.62C87.8744 98.3667 87.1144 97.9933 86.5144 97.5L87.6344 95.62C88.101 96.0067 88.6877 96.3133 89.3944 96.54C90.1144 96.78 90.841 96.9 91.5744 96.9C92.7477 96.9 93.6077 96.6333 94.1544 96.1C94.701 95.5667 94.9744 94.7533 94.9744 93.66V93.1C94.5477 93.5667 94.0277 93.92 93.4144 94.16C92.801 94.4 92.1277 94.52 91.3944 94.52C90.381 94.52 89.461 94.3067 88.6344 93.88C87.821 93.44 87.1744 92.8267 86.6944 92.04C86.2277 91.2533 85.9944 90.3533 85.9944 89.34C85.9944 88.3267 86.2277 87.4333 86.6944 86.66C87.1744 85.8733 87.821 85.2667 88.6344 84.84C89.461 84.4133 90.381 84.2 91.3944 84.2C92.1677 84.2 92.8677 84.3267 93.4944 84.58C94.1344 84.8333 94.6677 85.22 95.0944 85.74V84.32H97.4744ZM91.7744 92.4C92.721 92.4 93.4944 92.12 94.0944 91.56C94.7077 90.9867 95.0144 90.2467 95.0144 89.34C95.0144 88.4467 94.7077 87.72 94.0944 87.16C93.4944 86.6 92.721 86.32 91.7744 86.32C90.8144 86.32 90.0277 86.6 89.4144 87.16C88.8144 87.72 88.5144 88.4467 88.5144 89.34C88.5144 90.2467 88.8144 90.9867 89.4144 91.56C90.0277 92.12 90.8144 92.4 91.7744 92.4ZM116.748 80.16V95H114.348V93.62C113.935 94.1267 113.422 94.5067 112.808 94.76C112.208 95.0133 111.542 95.14 110.808 95.14C109.782 95.14 108.855 94.9133 108.028 94.46C107.215 94.0067 106.575 93.3667 106.108 92.54C105.642 91.7 105.408 90.74 105.408 89.66C105.408 88.58 105.642 87.6267 106.108 86.8C106.575 85.9733 107.215 85.3333 108.028 84.88C108.855 84.4267 109.782 84.2 110.808 84.2C111.515 84.2 112.162 84.32 112.748 84.56C113.335 84.8 113.835 85.16 114.248 85.64V80.16H116.748ZM111.108 93C111.708 93 112.248 92.8667 112.728 92.6C113.208 92.32 113.588 91.9267 113.868 91.42C114.148 90.9133 114.288 90.3267 114.288 89.66C114.288 88.9933 114.148 88.4067 113.868 87.9C113.588 87.3933 113.208 87.0067 112.728 86.74C112.248 86.46 111.708 86.32 111.108 86.32C110.508 86.32 109.968 86.46 109.488 86.74C109.008 87.0067 108.628 87.3933 108.348 87.9C108.068 88.4067 107.928 88.9933 107.928 89.66C107.928 90.3267 108.068 90.9133 108.348 91.42C108.628 91.9267 109.008 92.32 109.488 92.6C109.968 92.8667 110.508 93 111.108 93ZM124.099 84.2C125.672 84.2 126.872 84.58 127.699 85.34C128.539 86.0867 128.959 87.22 128.959 88.74V95H126.599V93.7C126.292 94.1667 125.852 94.5267 125.279 94.78C124.719 95.02 124.039 95.14 123.239 95.14C122.439 95.14 121.739 95.0067 121.139 94.74C120.539 94.46 120.072 94.08 119.739 93.6C119.419 93.1067 119.259 92.5533 119.259 91.94C119.259 90.98 119.612 90.2133 120.319 89.64C121.039 89.0533 122.166 88.76 123.699 88.76H126.459V88.6C126.459 87.8533 126.232 87.28 125.779 86.88C125.339 86.48 124.679 86.28 123.799 86.28C123.199 86.28 122.606 86.3733 122.019 86.56C121.446 86.7467 120.959 87.
40067 120.559 87.34L119.579 85.52C120.139 85.0933 120.812 84.7667 121.599 84.54C122.386 84.3133 123.219 84.2 124.099 84.2ZM123.759 93.32C124.386 93.32 124.939 93.18 125.419 92.9C125.912 92.6067 126.259 92.1933 126.459 91.66V90.42H123.879C122.439 90.42 121.719 90.8933 121.719 91.84C121.719 92.2933 121.899 92.6533 122.259 92.92C122.619 93.1867 123.119 93.32 123.759 93.32ZM138.587 94.42C138.294 94.66 137.934 94.84 137.507 94.96C137.094 95.08 136.654 95.14 136.187 95.14C135.014 95.14 134.107 94.8333 133.467 94.22C132.827 93.6067 132.507 92.7133 132.507 91.54V86.4H130.747V84.4H132.507V81.96H135.007V84.4H137.867V86.4H135.007V91.48C135.007 92 135.134 92.4 135.387 92.68C135.641 92.9467 136.007 93.08 136.487 93.08C137.047 93.08 137.514 92.9333 137.887 92.64L138.587 94.42ZM144.724 84.2C146.297 84.2 147.497 84.58 148.324 85.34C149.164 86.0867 149.584 87.22 149.584 88.74V95H147.224V93.7C146.917 94.1667 146.477 94.5267 145.904 94.78C145.344 95.02 144.664 95.14 143.864 95.14C143.064 95.14 142.364 95.0067 141.764 94.74C141.164 94.46 140.697 94.08 140.364 93.6C140.044 93.1067 139.884 92.5533 139.884 91.94C139.884 90.98 140.237 90.2133 140.944 89.64C141.664 89.0533 142.791 88.76 144.324 88.76H147.084V88.6C147.084 87.8533 146.857 87.28 146.404 86.88C145.964 86.48 145.304 86.28 144.424 86.28C143.824 86.28 143.231 86.3733 142.644 86.56C142.071 86.7467 141.584 87.0067 141.184 87.34L140.204 85.52C140.764 85.0933 141.437 84.7667 142.224 84.54C143.011 84.3133 143.844 84.2 144.724 84.2ZM144.384 93.32C145.011 93.32 145.564 93.18 146.044 92.9C146.537 92.6067 146.884 92.1933 147.084 91.66V90.42H144.504C143.064 90.42 142.344 90.8933 142.344 91.84C142.344 92.2933 142.524 92.6533 142.884 92.92C143.244 93.1867 143.744 93.32 144.384 93.32Z"}),P.createElement("g",{clipPath:"url(#clip0)"},P.createElement("path",{d:"M100.251 19.1897C100.006 18.9481 99.6842 18.8209 99.3362 18.8209C98.9882 18.8209 98.6659 18.9608 98.421 19.1897C98.1761 19.4313 98.0472 19.7493 98.0472 20.0926C98.0472 20.436 98.189 20.7539 98.421 20.9955C98.6659 21.2371 98.9882 21.3643 99.3362 21.3643C99.6842 21.3643 100.006 21.2244 100.251 20.9955C100.496 20.7539 100.625 20.436 100.625 20.0926C100.625 19.7493 100.496 19.4186 100.251 19.1897Z"}),P.createElement("path",{d:"M99.3491 16.3411C100.058 16.3411 100.638 15.7689 100.638 15.0694V3.81505C100.638 1.71677 98.898 0 96.7712 0H49.8668C47.7401 0 46 1.71677 46 3.81505V61.2824C46 63.3807 47.7401 65.0975 49.8668 65.0975H96.7712C98.898 65.0975 100.638 63.3807 100.638 61.2824V55.5726C100.638 54.8731 100.058 54.3009 99.3491 54.3009C98.6402 54.3009 98.0601 54.8731 98.0601 55.5726V61.2824C98.0601 61.9818 97.4801 62.5541 96.7712 62.5541H49.8668C49.1579 62.5541 48.5779 61.9818 48.5779 61.2824V3.81505C48.5779 3.11562 49.1579 2.54337 49.8668 2.54337H96.7712C97.4801 2.54337 98.0601 3.11562 98.0601 3.81505V15.0694C98.0601 15.7689 98.6273 16.3411 99.3491 16.3411Z"}),P.createElement("path",{d:"M91.6155 23.7932V16.7989C91.6155 16.0995 91.0354 15.5273 90.3265 15.5273H82.7991V8.66017C82.7991 7.96075 82.2191 7.38849 81.5102 7.38849H72.681C71.9721 7.38849 71.3921 7.96075 71.3921 8.66017V16.2903H63.8647C63.1557 16.2903 62.5757 16.8625 62.5757 17.562V24.429H56.3115C55.6026 24.429 55.0226 25.0013 55.0226 25.7007V32.5678C55.0226 33.2672 55.6026 33.8395 56.3115 33.8395H78.2492C78.507 32.9493 78.8679 32.0973 79.2932 31.2961H73.9699V9.93185H80.2084V23.1319C80.2084 23.8314 80.7884 24.4036 81.4973 24.4036C82.2062 24.4036 82.7863 23.8314 82.7863 23.1319V18.0579H89.0247V24.0603L91.6155 23.7932ZM62.5757 31.2834H57.6004V26.9597H62.5886V31.2834H62.5757ZM71.3921 31.2834H65.1536V18.8209H71.3921V31.2834Z"}),P.createElement("path",{d:"M89.927 55.687H54.2492C53.5403 55.687 52.9603 56.2593 52.9603 56.9587C52.9603 57.6581 53.5403 58.2304 54.2492 58.2304H89.927C90.6359 58.2304 91.2159 57.6581 91.2159 56.9587C91.2159 56.2593 90.6359 55.687 89.927 55.687Z"}),P.createElement("path",{d:"M73.3126 48.5656H65.3212C64.6122 48.5656 64.0322 49.1378 64.0322 49.8373C64.0322 50.5367 64.6122 51.1089 65.3212 51.1089H73.3126C74.0215 51.1089 74.6015 50.5367 74.6015 49.8373C74.6015 49.1378 74.0344 48.5656 73.3126 48.5656Z"}),P.createElement("path",{d:"M78.9581 48.9344C78.7132 48.6927 78.391 48.5656 78.043 48.5656C77.695 48.5656 77.3727 48.7055 77.1278 48.9344C76.8829 49.176 76.754 49.4939 76.754 49.8373C76.754 50.1806 76.8958 50.4985 77.1278 50.7402C77.3727 50.9818 77.695 51.1089 78.043 51.1089C78.3781 51.1089 78.7132 50.9691 78.9581 50.7402C79.203 50.4985 79.3319 50.1806 79.3319 49.8373C79.3319 49.4939 79.1901 49.176 78.9581 48.9344Z"}),P.createElement("path",{d:"M73.3126 41.4442H65.3212C64.6122 41.4442 64.0322 42.0164 64.0322 42.7158C64.0322 43.4153 64.6122 43.9875 65.3212 43.9875H73.3126C74.0215 43.9875 74.601
45 43.4153 74.6015 42.7158C74.6015 42.0164 74.0344 41.4442 73.3126 41.4442Z"}),P.createElement("path",{d:"M57.0849 44.687C56.2342 44.687 55.5381 44.1147 55.5381 43.4153C55.5381 42.7159 56.2342 42.1436 57.0849 42.1436C57.9356 42.1436 58.6316 42.7159 58.6316 43.4153C58.6316 44.1147 59.2116 44.687 59.9205 44.687C60.6294 44.687 61.2095 44.1147 61.2095 43.4153C61.2095 41.7239 60.0236 40.2997 58.3738 39.791C58.3609 39.1043 57.7938 38.5447 57.0849 38.5447C56.376 38.5447 55.8088 39.1043 55.7959 39.791C54.1461 40.2869 52.9603 41.7239 52.9603 43.4153C52.9603 45.5136 54.8034 47.2303 57.0849 47.2303C57.9356 47.2303 58.6316 47.8026 58.6316 48.502C58.6316 49.2014 57.9356 49.7737 57.0849 49.7737C56.2342 49.7737 55.5381 49.2014 55.5381 48.502C55.5381 47.8026 54.9581 47.2303 54.2492 47.2303C53.5403 47.2303 52.9603 47.8026 52.9603 48.502C52.9603 50.1806 54.1461 51.6176 55.7959 52.1263V52.2026C55.7959 52.902 56.376 53.4743 57.0849 53.4743C57.7938 53.4743 58.3738 52.902 58.3738 52.2026V52.1263C60.0236 51.6304 61.2095 50.1934 61.2095 48.502C61.2095 46.391 59.3534 44.687 57.0849 44.687Z"}),P.createElement("path",{d:"M81.8324 27.888C76.3029 33.3435 76.3029 42.1945 81.8324 47.65C87.362 53.1055 96.333 53.1055 101.863 47.65C107.392 42.1945 107.392 33.3435 101.863 27.888C96.333 22.4325 87.362 22.4325 81.8324 27.888ZM83.6498 29.6811C87.8647 25.5227 94.5285 25.2302 99.0784 28.8291L82.7862 44.9031C79.1385 40.4141 79.4221 33.8395 83.6498 29.6811ZM100.045 45.8569C95.8303 50.0153 89.1665 50.3078 84.6165 46.7089L100.909 30.6349C104.543 35.1112 104.26 41.6858 100.045 45.8569Z"}))),P.createElement("defs",null,P.createElement("clipPath",{id:"clip0"},P.createElement("rect",{width:60,height:65.0847,fill:"white",transform:"translate(46)"})))),Ure={small:{width:100,height:100},large:{width:128,height:128}},WN=({title:e,size:t="large",des:n,noBillingData:r,style:i})=>w.jsxs("div",{className:qe(d1.noInformationWrapper,d1[t]),style:i,children:[r?w.jsx("div",{className:d1.img,children:w.jsx(VN,{})}):w.jsx(XM,{src:Tre,autoplay:!0,loop:!0,style:{...Ure[t],display:"flex",alignItems:"center",justifyContent:"center"}}),w.jsx("p",{className:d1.noInformationTitle,children:e}),n&&w.jsx("p",{className:d1.noInformationDescription,children:n})]}),Yre=()=>{const e=Ot(l=>l.app.antNotifications,Lt),t=Zt();OS.config({top:96,duration:30});const[n,r]=OS.useNotification(),[i,a]=Dte.useMessage(),o=({notificationData:l,buttons:c,type:u})=>{l.notificationType==="notification"?n[u]({...l.defaulMessageProps,btn:c&&w.jsx(yN,{children:c.map(f=>w.jsx(Gr,{type:"link",onClick:f.onClick,children:f.text}))})}):l.notificationType==="message"&&i[u]({...l.defaulMessageProps})};P.useEffect(()=>{const l=Object.keys(e);l.length&&l.forEach(c=>{o(e[c]),t(vee(c))})},[e]);const s=P.useCallback(l=>{t(yee(l))},[]);return{notificationContextHolder:r,messageContextHolder:a,showNotification:s}},HN=e=>{const t=new URLSearchParams(e),n=t.get("date"),r=t.get("environment_id"),i=t.get("organization_id"),a=t.get("anomaly_monitor_id"),o=t.get("team_id");return n!==null&&(r!==null||o!==null)&&i!==null&&a!==null?{date:n,envId:r,orgId:i,anomalyMonitorId:a,teamId:o}:null},Xre="/cabinet/static/assets/coming-soon-mZoFYVxj.png",qre="wrapper_WQUeY",Zre={wrapper:qre},Kre=({children:e,text:t,className:n})=>w.jsx("div",{className:qe(Zre.wrapper,n),children:t||e}),Jre="wrapper_Ooumz",Qre="img_zIHrR",eie="des_mrXQD",tie="button_vgiMW",J2={wrapper:Jre,img:Qre,des:eie,button:tie},nie=()=>{const e=ni(),t=()=>e(pe.dashboard);return w.jsxs("div",{className:J2.wrapper,children:[w.jsx("img",{className:J2.img,src:Xre,alt:""}),w.jsx(Kre,{text:"Coming soon"}),w.jsx("div",{className:J2.des,children:"Sorry, this feature is not supported yet"}),w.jsx(yi,{onClick:t,size:"medium",text:"Go to dashboard",type:"blue",className:J2.button})]})},dl=({providers:e,children:t,allEnvironments:n})=>{const r=Ic(),i=Ot(s=>s.aws.entities.environments,Lt),a=n?i.allIds:r;return(a.length?a.every(s=>{var c;const l=(c=i.byId[s])==null?void 0:c.provider;return!e.includes(l)}):!1)?w.jsx(nie,{}):t},rie="wrapper_42dqK",iie="title_8c2I3",aie="des_FmncV",oie="small_r8204",sie="big_N0431",lie="buttonsWrapper_PQFwS",cie="buttonVerticalDirection_cSL9o",zi={wrapper:rie,title:iie,des:aie,small:oie,big:sie,buttonsWrapper:lie,buttonVerticalDirection:cie},GN=()=>{const{organizationMembersByOrgId:e,currentOrgId:t}=Ot(s=>({organizationMembersByOrgId:s.organizations.organizationMembersByOrgId,currentOrgId:s.organizations.currentId}),Lt),n=P.useMemo(()=>{const s={};return Object.entries(e).forEach(([l,c])=>{var u;s[Number(l)]=(u=c.data)==null?void 0:u.find(f=>f.self)}
4),s},[e]),r=P.useMemo(()=>{const s={};return Object.entries(e).forEach(([l,c])=>{var u;s[Number(l)]=((u=c.data)==null?void 0:u.reduce((f,d)=>(f[Number(d.id)]=d,f),{}))||{}}),s},[e]),i=P.useCallback(({orgId:s})=>{var l;return(l=e[s])==null?void 0:l.data},[e]),a=({orgId:s})=>n[s],o=P.useCallback(({orgId:s,orgMemberId:l})=>{var c;return(c=r[s])==null?void 0:c[l]},[r]);return{currentOrgId:t,organizationMembersByOrgId:e,getMeInOrganizationMembers:a,getOrganizationMembers:i,getMemberInOrganizationMembers:o,meInOrganizationsByOrgId:n}},uie="loaderWrapper_r7fHm",fie={loaderWrapper:uie},die=()=>w.jsx("div",{className:Gi.loadingWrapper,children:w.jsx("p",{className:Gi.loadingText,children:"Loading..."})}),UN=()=>{const e=Zt(),{selectedEnvIds:t,environments:n,refreshingEnvs:r}=Ot(y=>({selectedEnvIds:y.aws.selectedEnvIds,environments:y.aws.entities.environments,refreshingEnvs:y.aws.refreshingEnvs}),Lt),{environments:i}=en(),[a,o]=P.useState(!1),[s,l]=P.useState(null),[c,u]=P.useState([]),[f,d]=P.useState(!1),[h,p]=P.useState(!1),g=P.useMemo(()=>!!(t!=null&&t.some(y=>c.includes(y))),[t,c]);return P.useEffect(()=>{p(!a||g)},[a,g]),P.useEffect(()=>{const x=Object.keys(r.envs).map(S=>+S).filter(S=>r.envs[S]).filter(S=>{var O;return(O=n.byId[S])==null?void 0:O.saved_credentials}),C=t&&x.filter(S=>t.includes(+S));l(C);const _=C!==null&&C.map(S=>r.envs[+S]).indexOf(!0)!==-1;o(_)},[t,n,r,i]),P.useEffect(()=>{n.loadingState===Zn.isLoaded&&d(!0)},[n]),{onRefresh:async()=>{if(s!=null&&s.length){const y=s;u(x=>[...x,...y]),await e(xee(y)),u(x=>x.filter(C=>!y.includes(C)))}},envRefreshIsRequesting:g,isStateLoaded:f,isDisableButton:h}},hie=()=>{const{onRefresh:e,isDisableButton:t}=UN();return w.jsxs("div",{className:Gi.loadingText,children:[w.jsx(XM,{src:bee,autoplay:!0,loop:!0,style:{width:128,height:128,display:"flex",alignItems:"center",justifyContent:"center"}}),t?w.jsxs("div",{children:[w.jsx("p",{className:Gi.title,children:"Something went wrong."}),w.jsxs("p",{className:Gi.text,children:["Please contact ",w.jsx("a",{href:`mailto:${Bg}`,children:Bg})]})]}):w.jsxs(w.Fragment,{children:[w.jsxs("div",{children:[" ",w.jsx("p",{className:Gi.title,children:"Something went wrong."}),w.jsx("p",{className:Gi.text,children:"Please refresh your account."})]}),w.jsx(yi,{onClick:e,text:"Refresh now",size:"medium",type:"blue",disabled:t})]})]})},pie=()=>w.jsxs("div",{className:Gi.loadingWrapper,children:[w.jsx("p",{className:Gi.loadingText,children:"This may Take a While..."}),w.jsx("div",{className:Gi.snippet,"data-title":".dot-pulse",children:w.jsx("div",{className:Gi.stage,children:w.jsx("div",{className:Gi.dotPulse})})})]}),RS={takeWhile:1e4,reloadPage:6e4},gl={loading:"loading",takeWhile:"take while",reloadPage:"reload page",refreshAccount:"refresh account"},Q2="reloadPageCounter",gie=()=>{const e=Ic(),[t,n]=P.useState(gl.loading),r=()=>+(window.localStorage.getItem(Q2)||0),i=a=>{window.localStorage.setItem(Q2,a.toString())};return P.useEffect(()=>{n(gl.loading);const a=setTimeout(()=>{n(gl.takeWhile)},RS.takeWhile),o=setTimeout(()=>{r()===0?(i(1),window.location.reload()):r()===1?(n(gl.reloadPage),i(2)):r()===2&&(n(gl.refreshAccount),i(3),localStorage.removeItem(Q2))},RS.reloadPage);return()=>{clearTimeout(a),clearTimeout(o)}},[e]),P.useEffect(()=>()=>{r()===3&&localStorage.removeItem(Q2)},[]),t},q8=({style:e,styleWrapper:t})=>{const n=gie();return w.jsx("div",{className:fie.loaderWrapper,style:t,children:w.jsxs(w.Fragment,{children:[n===gl.loading&&w.jsxs(w.Fragment,{children:[w.jsx(zg,{withText:!0,style:e}),w.jsx(die,{})]}),n===gl.takeWhile&&w.jsxs(w.Fragment,{children:[w.jsx(zg,{withText:!0,style:e}),w.jsx(pie,{})]}),n===gl.reloadPage&&w.jsx(Cee,{}),n===gl.refreshAccount&&w.jsx(hie,{})]})})},YN=({handleRequestAccessClick:e,requestedPermissions:t,noMissingPermissions:n,noAccessViewOptions:r,height:i,noOrgPermissions:a})=>{const{is_org_admin:o,is_owner:s,new_teams_opt_in:l}=en(),c=ni(),u=P.useCallback(()=>{c(pe.accountManager)},[]),f=(r==null?void 0:r.size)==="big",d=(r==null?void 0:r.direction)==="vertical",{getOrganizationMembers:h}=GN(),p=en(),g=P.useMemo(()=>{const y=h({orgId:p.id});return y==null?void 0:y.find(C=>C.is_owner)},[p,h]),v=()=>a?g?w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:zi.title,children:["You don't have ",f&&w.jsx("br",{})," organization permissions for this service"]}),w.jsxs("div",{className:zi.des,children:["Please contact the organization owner,"," ",w.jsxs("b",{children:[g.given_name," ",g.family_name," (",w.jsx("a",{href:`mailto:${g.email}`,children:g.email}),")"]}),", to request access."]})]}):w.jsx(q8,{style:{height:"100%"}}):l&&(o||s)?w.jsxs(w.Fragment,{children:[w.jsx("div",{className:zi.title,children:"You need to reconnect your account."}),w.jsx("div",{className:zi.des,children:"Please reconnect your account to get access to this service."}),w.jsx("div",{className:qe(zi.buttonsWrapper,d&&zi.buttonVerticalDirection),children:w.jsx(Gr,{onClick:u,type:"primary",size:"large",className:zi.goToAccountManagerButton,children:"Go To Account Manager"})})]}):n&&t&&Object.keys(t).length?Object.keys(t).map(y=>w.jsxs("div",{className:zi.title,children:[y,": ",t[y].message]},y)):w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:zi.title,children:["You don’t have ",!f&&w.jsx("br",{})," an access for this service"]}),w.jsx("div",{className:zi.des,children:"You can request your admin permissions or add own credentials"}),w.jsxs("div",{className:qe(zi.buttonsWrapper,d&&zi.buttonVerticalDirection),children:[w.jsx(Gr,{type:"primary",size:"large",onClick:e,children:"Request An Access"}),w.jsx(Gr,{size:"large",onClick:u,children:"Go To Account Manager"})]})]});return w.jsx("div",{className:qe(f?zi.big:zi.small,zi.wrapper),style:{padding:r==null?void 0:r.padding,height:i},children:v()})},mie=({requiredOrgPermissions:e,children:t,fallback:n,noAccessBlockHeight:r})=>{const i=en(),a=Ot(s=>s.app.orgPermissions[i.id]);return P.useMemo(()=>
4{if(i.is_org_admin||i.is_owner)return!0;if(!a||!a.length)return!1;const s=new Set(a.map(l=>l.codename));return e.some(l=>s.has(l))},[i.is_org_admin,i.is_owner,a,e])?n?w.jsx(w.Fragment,{children:n}):t?w.jsx(w.Fragment,{children:t}):w.jsx(Wi,{}):w.jsx(YN,{noAccessViewOptions:{size:"big"},noMissingPermissions:!1,height:r,noOrgPermissions:!0})},Z8=(e,t)=>{const n=Zt(),{environments:r,permissions:i}=ff(u=>({environments:u.aws.entities.environments,permissions:u.app.permissions}),Lt),[a,o]=P.useState({}),[s,l]=P.useState(!0);P.useEffect(()=>{let u=!0;const f=ha(e.byEnvs).map(d=>+d).reduce((d,h)=>{const p=r.byId[h];if(p){const{name:g}=p,{missingPermissionsCodes:v,requestedPermissionsCodes:y}=e.byEnvs[h],x=t?v.filter(_=>!wee(_)):v,C=i.envs[h];x.length&&(u=!1),C&&y.forEach(_=>{const S=_ee(_);C.data[S].request.status!==See.notRequested&&(d[g]=C.data[S].request)})}return d},{});o(f),l(u)},[e,r,i]);const c=P.useCallback(async()=>{n(Oee(e.byEnvs))},[e.byEnvs]);return{requestedPermissions:a,noMissingPermissions:s,requestPermissionsCallback:c}},vie="wrapper_MkCdq",yie="header_9GMVi",xie="headerClickable_nZDiH",bie="headerItem_lzcyX",Cie="icon_tYdqX",wie="arrowWrapper_SEtM8",_ie="arrow_KelcH",Sie="arrowUp_Y7ydH",Oie="details_j6sw3",Eie="actionButton_7V7RC",is={wrapper:vie,header:yie,headerClickable:xie,headerItem:bie,icon:Cie,arrowWrapper:wie,arrow:_ie,arrowUp:Sie,details:Oie,actionButton:Eie},kie="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.1083%202.5H6.89167L2.5%206.89167V13.1083L6.89167%2017.5H13.1083L17.5%2013.1083V6.89167L13.1083%202.5Z'%20fill='%23FF6D7E'/%3e%3cpath%20d='M9.16669%2010.8334H10.8334V5.83337H9.16669V10.8334Z'%20fill='white'/%3e%3cpath%20d='M10.8334%2012.5H9.16669V14.1667H10.8334V12.5Z'%20fill='white'/%3e%3c/svg%3e",Aie="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%201.66663C8.90566%201.66663%207.82202%201.88217%206.81098%202.30096C5.79993%202.71975%204.88127%203.33358%204.10745%204.1074C2.54465%205.67021%201.66667%207.78982%201.66667%209.99996C1.66667%2012.2101%202.54465%2014.3297%204.10745%2015.8925C4.88127%2016.6663%205.79993%2017.2802%206.81098%2017.699C7.82202%2018.1177%208.90566%2018.3333%2010%2018.3333C12.2101%2018.3333%2014.3298%2017.4553%2015.8926%2015.8925C17.4554%2014.3297%2018.3333%2012.2101%2018.3333%209.99996C18.3333%208.90561%2018.1178%207.82198%2017.699%206.81093C17.2802%205.79988%2016.6664%204.88122%2015.8926%204.1074C15.1187%203.33358%2014.2001%202.71975%2013.189%202.30096C12.178%201.88217%2011.0944%201.66663%2010%201.66663Z'%20fill='%234E80EE'/%3e%3cpath%20d='M10.8333%207.50004H9.16666V5.83337H10.8333M10.8333%2014.1667H9.16666V9.16671H10.8333'%20fill='white'/%3e%3c/svg%3e",$ie="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.833374%2017.5003H19.1667L10%201.66699L0.833374%2017.5003Z'%20fill='%23F2C94C'/%3e%3cpath%20d='M9.16663%2011.6667H10.8333V7.5H9.16663V11.6667Z'%20fill='%234A5765'/%3e%3cpath%20d='M9.16663%2015H10.8333V13.3333H9.16663V15Z'%20fill='%234A5765'/%3e%3c/svg%3e",Tie="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='%23FF6D7E'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.75333%2014.7933L7.66666%2012.24C8.71333%2011.8533%209.69333%2011.3333%2010.6%2010.7266L8.75333%2014.7933ZM3.76%208.33331L1.20667%207.24665L5.27333%205.39998C4.66666%206.30665%204.14666%207.28665%203.76%208.33331ZM14.4067%201.59331C14.4067%201.59331%2011.1067%200.179314%207.33333%203.95331C5.87333%205.41331%205%207.01998%204.43333%208.42665C4.24666%208.92665%204.37333%209.47332%204.74%209.84665L6.16%2011.26C6.52666%2011.6333%207.07333%2011.7533%207.57333%2011.5666C9%2011.02%2010.5867%2010.1266%2012.0467%208.66665C15.82%204.89331%2014.4067%201.59331%2014.4067%201.59331ZM9.69333%206.30665C9.17333%205.78665%209.17333%204.93998%209.69333%204.41998C10.2133%203.89998%2011.06%203.89998%2011.58%204.41998C12.0933%204.93998%2012.1%205.78665%2011.58%206.3066
45C11.06%206.82665%2010.2133%206.82665%209.69333%206.30665ZM4.16%2014.6666L6.58666%2012.24C6.36%2012.18%206.14%2012.08%205.94%2011.94L3.22%2014.6666H4.16ZM1.33333%2014.6666H2.27333L5.45333%2011.4933L4.50666%2010.5533L1.33333%2013.7266V14.6666ZM1.33333%2012.78L4.06%2010.06C3.92%209.85998%203.82%209.64665%203.76%209.41331L1.33333%2011.84V12.78Z'/%3e%3c/svg%3e",Pie=e=>P.createElement("svg",{width:13,height:8,viewBox:"0 0 13 8",fill:"#23A2FF",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M2.115 0.544997L6.705 5.125L11.295 0.544998L12.705 1.955L6.705 7.955L0.705002 1.955L2.115 0.544997Z"})),K8=P.createContext({});function J8(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const Q8=typeof window<"u",XN=Q8?P.useLayoutEffect:P.useEffect,O3=P.createContext(null);function ex(e,t){e.indexOf(t)===-1&&e.push(t)}function tx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Al=(e,t,n)=>n>t?t:n<e?e:n;let nx=()=>{};const $l={},qN=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ZN(e){return typeof e=="object"&&e!==null}const KN=e=>/^0[^.\s]+$/u.test(e);function rx(e){let t;return()=>(t===void 0&&(t=e()),t)}const ro=e=>e,Mie=(e,t)=>n=>t(e(n)),Cp=(...e)=>e.reduce(Mie),Eh=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class ix{constructor(){this.subscriptions=[]}add(t){return ex(this.subscriptions,t),()=>tx(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ss=e=>e*1e3,eo=e=>e/1e3;function JN(e,t){return t?e*(1e3/t):0}const QN=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Nie=1e-7,Iie=12;function Lie(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=QN(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Nie&&++s<Iie);return o}function wp(e,t,n,r){if(e===t&&n===r)return ro;const i=a=>Lie(a,0,1,e,n);return a=>a===0||a===1?a:QN(i(a),t,r)}const eI=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tI=e=>t=>1-e(1-t),nI=wp(.33,1.53,.69,.99),ax=tI(nI),rI=eI(ax),iI=e=>(e*=2)<1?.5*ax(e):.5*(2-Math.pow(2,-10*(e-1))),ox=e=>1-Math.sin(Math.acos(e)),aI=tI(ox),oI=eI(ox),Rie=wp(.42,0,1,1),jie=wp(0,0,.58,1),sI=wp(.42,0,.58,1),Die=e=>Array.isArray(e)&&typeof e[0]!="number",lI=e=>Array.isArray(e)&&typeof e[0]=="number",Fie={linear:ro,easeIn:Rie,easeInOut:sI,easeOut:jie,circIn:ox,circInOut:oI,circOut:aI,backIn:ax,backInOut:rI,backOut:nI,anticipate:iI},Bie=e=>typeof e=="string",jS=e=>{if(lI(e)){nx(e.length===4);const[t,n,r,i]=e;return wp(t,n,r,i)}else if(Bie(e))return Fie[e];return e},e5=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function zie(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),e()),u(s)}const c={schedule:(u,f=!1,d=!1)=>{const p=d&&i?n:r;return f&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{r.delete(u),o.delete(u)},process:u=>{if(s=u,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,c.process(u))}};return c}const Vie=40;function cI(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=e5.reduce((C,_)=>(C[_]=zie(a),C),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:f,preRender:d,render:h,postRender:p}=o,g=()=>{const C=$l.useManualTiming?i.timestamp:performance.now();n=!1,$l.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(C-i.timestamp,Vie),1)),i.timestamp=C,i.isProcessing=!0,s.process(i),l.process(i),c.process(i),u.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:e5.reduce((C,_)=>{const S=o[_];return C[_]=(O,E=!1,k=!1)=>(n||v(),S.schedule(O,E,k)),C},{}),cancel:C=>{for(let _=0;_<e5.length;_++)o[e5[_]].cancel(C)},state:i,steps:o}}const{schedule:sr,cancel:$c,state:gi,steps:Wy}=cI(typeof requestAnimationFrame<"u"?requestAnimationFrame:ro,!0);let mg;function Wie(){mg=void 0}const ua={now:()=>(mg===void 0&&ua.set(gi.isProcessing||$l.useManualTiming?gi.timestamp:performance.now()),mg),set:e=>{mg=e,queueMicrotask(Wie)}},uI=e=>t=>typeof t=="string"&&t.startsWith(e),fI=uI("--"),Hie=uI("var(--"),sx=e=>Hie(e)?Gie.test(e.split("/*")[0].trim()):!1,Gie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ed={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},kh={...Ed,transform:e=>Al(0,1,e)},t5={...Ed,default:1},oh=e=>Math.round(e*1e5)/1e5,lx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Uie(e){return e==null}const Yie=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cx=(e,t)=>n=>!!(typeof n=="string"&&Yie.test(n)&&n.startsWith(e)||t&&!Uie(n)&&Object.prototype.hasOwnProperty.call(n,t)),dI=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(lx);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},Xie=e=>Al(0,255,e),Hy={...Ed,transform:e=>Math.round(Xie(e))},Iu={test:cx("rgb","red"),parse:dI("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Hy.transform(e)+", "+Hy.transform(t)+", "+Hy.transform(n)+", "+oh(kh.transform(r))+")"};function qie(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
vendor: 18,375 bytes, line 4
4a:i?parseInt(i,16)/255:1}}const e6={test:cx("#"),parse:qie,transform:Iu.transform},_p=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),uc=_p("deg"),Os=_p("%"),bt=_p("px"),Zie=_p("vh"),Kie=_p("vw"),DS={...Os,parse:e=>Os.parse(e)/100,transform:e=>Os.transform(e*100)},S0={test:cx("hsl","hue"),parse:dI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Os.transform(oh(t))+", "+Os.transform(oh(n))+", "+oh(kh.transform(r))+")"},Lr={test:e=>Iu.test(e)||e6.test(e)||S0.test(e),parse:e=>Iu.test(e)?Iu.parse(e):S0.test(e)?S0.parse(e):e6.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Iu.transform(e):S0.transform(e),getAnimatableNone:e=>{const t=Lr.parse(e);return t.alpha=0,Lr.transform(t)}},Jie=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Qie(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(lx))==null?void 0:t.length)||0)+(((n=e.match(Jie))==null?void 0:n.length)||0)>0}const hI="number",pI="color",eae="var",tae="var(",FS="${}",nae=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ah(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(nae,l=>(Lr.test(l)?(r.color.push(a),i.push(pI),n.push(Lr.parse(l))):l.startsWith(tae)?(r.var.push(a),i.push(eae),n.push(l)):(r.number.push(a),i.push(hI),n.push(parseFloat(l))),++a,FS)).split(FS);return{values:n,split:s,indexes:r,types:i}}function gI(e){return Ah(e).values}function mI(e){const{split:t,types:n}=Ah(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const s=n[o];s===hI?a+=oh(i[o]):s===pI?a+=Lr.transform(i[o]):a+=i[o]}return a}}const rae=e=>typeof e=="number"?0:Lr.test(e)?Lr.getAnimatableNone(e):e;function iae(e){const t=gI(e);return mI(e)(t.map(rae))}const Tc={test:Qie,parse:gI,createTransformer:mI,getAnimatableNone:iae};function Gy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function aae({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=Gy(l,s,e+1/3),a=Gy(l,s,e),o=Gy(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Yg(e,t){return n=>n>0?t:e}const vr=(e,t,n)=>e+(t-e)*n,Uy=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},oae=[e6,Iu,S0],sae=e=>oae.find(t=>t.test(e));function BS(e){const t=sae(e);if(!t)return!1;let n=t.parse(e);return t===S0&&(n=aae(n)),n}const zS=(e,t)=>{const n=BS(e),r=BS(t);if(!n||!r)return Yg(e,t);const i={...n};return a=>(i.red=Uy(n.red,r.red,a),i.green=Uy(n.green,r.green,a),i.blue=Uy(n.blue,r.blue,a),i.alpha=vr(n.alpha,r.alpha,a),Iu.transform(i))},t6=new Set(["none","hidden"]);function lae(e,t){return t6.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function cae(e,t){return n=>vr(e,t,n)}function ux(e){return typeof e=="number"?cae:typeof e=="string"?sx(e)?Yg:Lr.test(e)?zS:dae:Array.isArray(e)?vI:typeof e=="object"?Lr.test(e)?zS:uae:Yg}function vI(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>ux(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function uae(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ux(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function fae(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const dae=(e,t)=>{const n=Tc.createTransformer(t),r=Ah(e),i=Ah(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?t6.has(e)&&!i.values.length||t6.has(t)&&!r.values.length?lae(e,t):Cp(vI(fae(r,i),i.values),n):Yg(e,t)};function yI(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?vr(e,t,n):ux(e)(e,t)}const hae=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>sr.update(t,n),stop:()=>$c(t),now:()=>gi.isProcessing?gi.timestamp:ua.now()}},xI=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Xg=2e4;function fx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Xg;)t+=n,r=e.next(t);return t>=Xg?1/0:t}function pae(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(fx(r),Xg);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:eo(i)}}const gae=5;function bI(e,t,n){const r=Math.max(t-gae,0);return JN(n-e(r),t-r)}const Cr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Yy=.001;function mae({duration:e=Cr.duration,bounce:t=Cr.bounce,velocity:n=Cr.velocity,mass:r=Cr.mass}){let i,a,o=1-t;o=Al(Cr.minDamping,Cr.maxDamping,o),e=Al(Cr.minDuration,Cr.maxDuration,eo(e)),o<1?(i=c=>{const u=c*o,f=u*e,d=u-n,h=n6(c,o),p=Math.exp(-f);return Yy-d/h*p},a=c=>{const f=c*o*e,d=f*n+n,h=Math.pow(o,2)*Math.pow(c,2)*e,p=Math.exp(-f),g=n6(Math.pow(c,2),o);return(-i(c)+Yy>0?-1:1)*((d-h)*p)/g}):(i=c=>{const u=Math.exp(-c*e),f=(c-n)*e+1;return-Yy+u*f},a=c=>{const u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});const s=5/e,l=yae(i,a,s);if(e=Ss(e),isNaN(l))return{stiffness:Cr.stiffness,damping:Cr.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const vae=12;function yae(e,t,n){let r=n;for(let i=1;i<vae;i++)r=r-e(r)/t(r);return r}function n6(e,t){return e*Math.sqrt(1-t*t)}const xae=["duration","bounce"],bae=["stiffness","damping","mass"];function VS(e,t){return t.some(n=>e[n]!==void 0)}function Cae(e){let t={velocity:Cr.velocity,stiffness:Cr.stiffness,damping:Cr.damping,mass:Cr.mass,isResolvedFromDuration:!1,...e};if(!VS(e,bae)&&VS(e,xae))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Al(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Cr.mass,stiffness:i,damping:a}}else{const n=mae(e);t={...t,...n,mass:Cr.mass},t.isResolvedFromDuration=!0}return t}function qg(e=Cr.visualDuration,t=Cr.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:c,mass:u,duration:f,velocity:d,isResolvedFromDuration:h}=Cae({...n,velocity:-eo(n.velocity||0)}),p=d||0,g=c/(2*Math.sqrt(l*u)),v=o-a,y=eo(Math.sqrt(l/u)),x=Math.abs(v)<5;r||(r=x?Cr.restSpeed.granular:Cr.restSpeed.default),i||(i=x?Cr.restDelta.granular:Cr.restDelta.default);let C;if(g<1){const S=n6(y,g);C=O=>{const E=Math.exp(-g*y*O);return o-E*((p+g*y*v)/S*Math.sin(S*O)+v*Math.cos(S*O))}}else if(g===1)C=S=>o-Math.exp(-y*S)*(v+(p+y*v)*S);else{const S=y*Math.sqrt(g*g-1);C=O=>{const E=Math.exp(-g*y*O),k=Math.min(S*O,300);return o-E*((p+g*y*v)*Math.sinh(k)+S*v*Math.cosh(k))/S}}const _={calculatedDuration:h&&f||null,next:S=>{const O=C(S);if(h)s.done=S>=f;else{let E=S===0?p:0;g<1&&(E=S===0?Ss(p):bI(C,S,O));const k=Math.abs(E)<=r,$=Math.abs(o-O)<=i;s.done=k&&$}return s.value=s.done?o:O,s},toString:()=>{const S=Math.min(fx(_),Xg),O=xI(E=>_.next(S*E).value,S,30);return S+"ms "+O},toTransition:()=>{}};return _}qg.applyToOptions=e=>{const t=pae(e,100,qg);return e.ease=t.ease,e.duration=Ss(t.duration),e.type="keyframes",e};function r6({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:c=.5,restSpeed:u}){const f=e[0],d={done:!1,value:f},h=k=>s!==void 0&&k<s||l!==void 0&&k>l,p=k=>s===void 0?l:l===void 0||Math.abs(s-k)<Math.abs(l-k)?s:l;let g=n*t;const v=f+g,y=o===void 0?v:o(v);y!==v&&(g=y-f);const x=k=>-g*Math.exp(-k/r),C=k=>y+x(k),_=k=>{const $=x(k),T=C(k);d.done=Math.abs($)<=c,d.value=d.done?y:T};let S,O;const E=k=>{h(d.value)&&(S=k,O=qg({keyframes:[d.value,p(d.value)],velocity:bI(C,k,d.value),damping:i,stiffness:a,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:k=>{let $=!1;return!O&&S===void 0&&($=!0,_(k),E(k)),S!==void 0&&k>=S?O.next(k-S):(!$&&_(k),d)}}}function wae(e,t,n){const r=[],i=n||$l.mix||yI,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||ro:t;s=Cp(l,s)}r.push(s)}return r}function _ae(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(nx(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=wae(t,r,i),l=s.length,c=u=>{if(o&&u<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const d=Eh(e[f],e[f+1],u);return s[f](d)};return n?u=>c(Al(e[0],e[a-1],u)):c}function Sae(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Eh(0,t,r);e.push(vr(n,1,i))}}function Oae(e){const t=[0];return Sae(t,e.length-1),t}function Eae(e,t){return e.map(n=>n*t)}function kae(e,t){return e.map(()=>t||sI).splice(0,e.length-1)}function sh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Die(r)?r.map(jS):jS(r),a={done:!1,value:t[0]},o=Eae(n&&n.length===t.length?n:Oae(t),e),s=_ae(o,t,{ease:Array.isArray(i)?i:kae(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const Aae=e=>e!==null;function dx(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(Aae),s=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}const $ae={decay:r6,inertia:r6,tween:sh,keyframes:sh,spring:qg};function CI(e){typeof e.type=="string"&&(e.type=$ae[e.type])}class hx{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Tae=e=>e/100;class px extends hx{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==ua.now()&&this.tick(ua.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;CI(t);const{type:n=sh,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t;let{keyframes:s}=t;const l=n||sh;l!==sh&&typeof s[0]!="number"&&(this.mixKeyframes=Cp(Tae,yI(s[0],s[1])),s=[0,100]);const c=l({...t,keyframes:s});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=fx(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:f,repeatType:d,repeatDelay:h,type:p,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let C=this.currentTime,_=r;if(f){const k=Math.min(this.currentTime,i)/s;let $=Math.floor(k),T=k%1;!T&&k>=1&&(T=1),T===1&&$--,$=Math.min($,f+1),!!($%2)&&(d==="reverse"?(T=1-T,h&&(T-=h/s)):d==="mirror"&&(_=o)),C=Al(0,1,T)*s}const S=x?{done:!1,value:u[0]}:_.next(C);a&&(S.value=a(S.value));let{done:O}=S;!x&&l!==null&&(O=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return E&&p!==r6&&(S.value=dx(u,this.options,v,this.speed)),g&&g(S.value),E&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return eo(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+eo(t)}get time(){return eo(this.currentTime)}set time(t){var n;t=Ss(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ua.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=eo(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=hae,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ua.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Pae(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Lu=e=>e*180/Math.PI,i6=e=>{const t=Lu(Math.atan2(e[1],e[0]));return a6(t)},Mae={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:i6,rotateZ:i6,skewX:e=>Lu(Math.atan(e[1])),skewY:e=>Lu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},a6=e=>(e=e%360,e<0&&(e+=360),e),WS=i6,HS=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),GS=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Nae={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:HS,scaleY:GS,scale:e=>(HS(e)+GS(e))/2,rotateX:e=>a6(Lu(Math.atan2(e[6],e[5]))),rotateY:e=>a6(Lu(Math.atan2(-e[2],e[0]))),rotateZ:WS,rotate:WS,skewX:e=>Lu(Math.atan(e[4])),skewY:e=>Lu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function o6(e){return e.includes("scale")?1:0}function s6(e,t){if(!e||e==="none")return o6(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Nae,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Mae,i=s}if(!i)return o6(t);const a=r[t],o=i[1].split(",").map(Lae);return typeof a=="function"?a(o):o[a]}const Iae=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return s6(n,t)};function Lae(e){return parseFloat(e.trim())}const kd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ad=new Set(kd),US=e=>e===Ed||e===bt,Rae=new Set(["x","y","z"]),jae=kd.filter(e=>!Rae.has(e));function Dae(e){const t=[];return jae.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const zu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>s6(t,"x"),y:(e,{transform:t})=>s6(t,"y")};zu.translateX=zu.x;zu.translateY=zu.y;const Vu=new Set;let l6=!1,c6=!1,u6=!1;function wI(){if(c6){const e=Array.from(Vu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Dae(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var s;(s=r.getValue(a))==null||s.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}c6=!1,l6=!1,Vu.forEach(e=>e.complete(u6)),Vu.clear()}function _I(){Vu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(c6=!0)})}function Fae(){u6=!0,_I(),wI(),u6=!1}class gx{constructor(t,n,r,i,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Vu.add(this),l6||(l6=!0,sr.read(_I),sr.resolveKeyframes(wI))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const s=r.readValue(n,o);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=o),i&&a===void 0&&i.set(t[0])}Pae(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Vu.delete(this)}cancel(){this.state==="scheduled"&&(Vu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Bae=e=>e.startsWith("--");function zae(e,t,n){Bae(t)?e.style.setProperty(t,n):e.style[t]=n}const Vae=rx(()=>window.ScrollTimeline!==void 0),Wae={};function Hae(e,t){const n=rx(e);return()=>Wae[t]??n()}const SI=Hae(()=>{try{document.createElement("div").animate({opacity:0}
4,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),I1=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,YS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:I1([0,.65,.55,1]),circOut:I1([.55,0,1,.45]),backIn:I1([.31,.01,.66,-.59]),backOut:I1([.33,1.53,.69,.99])};function OI(e,t){if(e)return typeof e=="function"?SI()?xI(e,t):"ease-out":lI(e)?I1(e):Array.isArray(e)?e.map(n=>OI(n,t)||YS.easeOut):YS[e]}function Gae(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const f=OI(s,i);Array.isArray(f)&&(u.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"};return c&&(d.pseudoElement=c),e.animate(u,d)}function EI(e){return typeof e=="function"&&"applyToOptions"in e}function Uae({type:e,...t}){return EI(e)&&SI()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Yae extends hx{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=t,nx(typeof t.type!="string");const c=Uae(t);this.animation=Gae(n,r,i,c,a),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const u=dx(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(u):zae(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return eo(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+eo(t)}get time(){return eo(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ss(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Vae()?(this.animation.timeline=t,ro):n(this)}}const kI={anticipate:iI,backInOut:rI,circInOut:oI};function Xae(e){return e in kI}function qae(e){typeof e.ease=="string"&&Xae(e.ease)&&(e.ease=kI[e.ease])}const XS=10;class Zae extends Yae{constructor(t){qae(t),CI(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new px({...o,autoplay:!1}),l=Ss(this.finishedTime??this.time);n.setWithVelocity(s.sample(l-XS).value,s.sample(l).value,XS),s.stop()}}const qS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tc.test(e)||e==="0")&&!e.startsWith("url("));function Kae(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Jae(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=qS(i,t),s=qS(a,t);return!o||!s?!1:Kae(e)||(n==="spring"||EI(n))&&r}function f6(e){e.duration=0,e.type="keyframes"}const Qae=new Set(["opacity","clipPath","filter","transform"]),eoe=rx(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function toe(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return eoe()&&n&&Qae.has(n)&&(n!=="transform"||!c)&&!l&&!r&&i!=="mirror"&&a!==0&&o!=="inertia"}const noe=40;class roe extends hx{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:
4o="loop",keyframes:s,name:l,motionValue:c,element:u,...f}){var p;super(),this.stop=()=>{var g,v;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=ua.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,name:l,motionValue:c,element:u,...f},h=(u==null?void 0:u.KeyframeResolver)||gx;this.keyframeResolver=new h(s,(g,v,y)=>this.onKeyframesResolved(g,v,d,!y),l,c,u),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:o,velocity:s,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=ua.now(),Jae(t,a,o,s)||(($l.instantAnimations||!l)&&(u==null||u(dx(t,r,n))),t[0]=t[t.length-1],f6(r),r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>noe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!c&&toe(d)?new Zae({...d,element:d.motionValue.owner.current}):new px(d);h.finished.then(()=>this.notifyFinished()).catch(ro),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Fae()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const ioe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function aoe(e){const t=ioe.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function AI(e,t,n=1){const[r,i]=aoe(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return qN(o)?parseFloat(o):o}return sx(i)?AI(i,t,n+1):i}function mx(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const $I=new Set(["width","height","top","left","right","bottom",...kd]),ooe={test:e=>e==="auto",parse:e=>e},TI=e=>t=>t.test(e),PI=[Ed,bt,Os,uc,Kie,Zie,ooe],ZS=e=>PI.find(TI(e));function soe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||KN(e):!0}const loe=new Set(["brightness","contrast","saturate","opacity"]);function coe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(lx)||[];if(!r)return e;const i=n.replace(r,"");let a=loe.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const uoe=/\b([a-z-]*)\(.*?\)/gu,d6={...Tc,getAnimatableNone:e=>{const t=e.match(uoe);return t?t.map(coe).join(" "):e}},KS={...Ed,transform:Math.round},foe={rotate:uc,rotateX:uc,rotateY:uc,rotateZ:uc,scale:t5,scaleX:t5,scaleY:t5,scaleZ:t5,skew:uc,skewX:uc,skewY:uc,distance:bt,translateX:bt,translateY:bt,translateZ:bt,x:bt,y:bt,z:bt,perspective:bt,transformPerspective:bt,opacity:kh,originX:DS,originY:DS,originZ:bt},vx={borderWidth:bt,borderTopWidth:bt,borderRightWidth:bt,borderBottomWidth:bt,borderLeftWidth:bt,borderRadius:bt,radius:bt,borderTopLeftRadius:bt,borderTopRightRadius:bt,borderBottomRightRadius:bt,borderBottomLeftRadius:bt,width:bt,maxWidth:bt,height:bt,maxHeight:bt,top:bt,right:bt,bottom:bt,left:bt,padding:bt,paddingTop:bt,paddingRight:bt,paddingBottom:bt,paddingLeft:bt,margin:bt,marginTop:bt,marginRight:bt,marginBottom:bt,marginLeft:bt,backgroundPositionX:bt,backgroundPositionY:bt,...foe,zIndex:KS,fillOpacity:kh,strokeOpacity:kh,numOctaves:KS},doe={...vx,color:Lr,backgroundColor:Lr,outlineColor:Lr,fill:Lr,stroke:Lr,borderColor:Lr,borderTopColor:Lr,borderRightColor:Lr,borderBottomColor:Lr,borderLeftColor:Lr,filter:d6,WebkitFilter:d6},MI=e=>doe[e];function NI(e,t){let n=MI(e);return n!==d6&&(n=Tc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 12,962 bytes, lines 4-12
4const hoe=new Set(["auto","none","0"]);function poe(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!hoe.has(a)&&Ah(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=NI(n,i)}class goe extends gx{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),sx(c))){const u=AI(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!$I.has(r)||t.length!==2)return;const[i,a]=t,o=ZS(i),s=ZS(a);if(o!==s)if(US(o)&&US(s))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else zu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||soe(t[i]))&&r.push(i);r.length&&poe(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=zu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var s;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,o=r[a];r[a]=zu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function moe(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const II=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function LI(e){return ZN(e)&&"offsetHeight"in e}const JS=30,voe=e=>!isNaN(parseFloat(e));class yoe{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const i=ua.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ua.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=voe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ix);const r=this.events[t].add(n);return t==="change"?()=>{r(),sr.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ua.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>JS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,JS);return JN(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function J0(e,t){return new yoe(e,t)}const{schedule:yx}=cI(queueMicrotask,!1),ko={x:!1,y:!1};function RI(){return ko.x||ko.y}function xoe(e){return e==="x"||e==="y"?ko[e]?null:(ko[e]=!0,()=>{ko[e]=!1}):ko.x||ko.y?null:(ko.x=ko.y=!0,()=>{ko.x=ko.y=!1})}function jI(e,t){const n=moe(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function QS(e){return!(e.pointerType==="touch"||RI())}function boe(e,t,n={}){const[r,i,a]=jI(e,n),o=s=>{if(!QS(s))return;const{target:l}=s,c=t(l,s);if(typeof c!="function"||!l)return;const u=f=>{QS(f)&&(c(f),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return r.forEach(s=>{s.addEventListener("pointerenter",o,i)}),a}const DI=(e,t)=>t?e===t?!0:DI(e,t.parentElement):!1,xx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Coe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function woe(e){return Coe.has(e.tagName)||e.tabIndex!==-1}const vg=new WeakSet;function eO(e){return t=>{t.key==="Enter"&&e(t)}}function Xy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _oe=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=eO(()=>{if(vg.has(n))return;Xy(n,"down");const i=eO(()=>{Xy(n,"up")}),a=()=>Xy(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function tO(e){return xx(e)&&!RI()}function Soe(e,t,n={}){const[r,i,a]=jI(e,n),o=s=>{const l=s.currentTarget;if(!tO(s))return;vg.add(l);const c=t(l,s),u=(h,p)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),vg.has(l)&&vg.delete(l),tO(h)&&typeof c=="function"&&c(h,{success:p})},f=h=>{u(h,l===window||l===document||n.useGlobalTarget||DI(l,h.target))},d=h=>{u(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",o,i),LI(s)&&(s.addEventListener("focus",c=>_oe(c,i)),!woe(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function FI(e){return ZN(e)&&"ownerSVGElement"in e}function Ooe(e){return FI(e)&&e.tagName==="svg"}const Ni=e=>!!(e&&e.getVelocity),Eoe=[...PI,Lr,Tc],koe=e=>Eoe.find(TI(e)),bx=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function nO(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Aoe(...e){return t=>{let n=!1;const r=e.map(i=>{const a=nO(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():nO(e[i],null)}}}}function $oe(...e){return P.useCallback(Aoe(...e),e)}class Toe extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=LI(r)&&r.offsetWidth||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Poe({children:e,isPresent:t,anchorX:n,root:r}){const i=P.useId(),a=P.useRef(null),o=P.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=P.useContext(bx),l=$oe(a,e==null?void 0:e.ref);return P.useInsertionEffect(()=>{const{width:c,height:u,top:f,left:d,right:h}=o.current;if(t||!a.current||!c||!u)return;const p=n==="left"?`left: ${d}`:`right: ${h}`;a.current.dataset.motionPopId=i;const g=document.createElement("style");s&&(g.nonce=s);const v=r??document.head;return v.appendChild(g),g.sheet&&g.sheet.insertRule(`
5          [data-motion-pop-id="${i}"] {
6            position: absolute !important;
7            width: ${c}px !important;
8            height: ${u}px !important;
9            ${p}px !important;
10            top: ${f}px !important;
11          }
12        `),()=>{v.contains(g)&&v.removeChild(g)}},[t]),w.jsx(Toe,{isPresent:t,childRef:a,sizeRef:o,children:P.cloneElement(e,{ref:l})})}const Moe=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,root:l})=>{const c=J8(Noe),u=P.useId();let f=!0,d=P.useMemo(()=>(f=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:h=>{c.set(h,!0);for(const p of c.values())if(!p)return;r&&r()},register:h=>(c.set(h,!1),()=>c.delete(h))}),[n,c,r]);return a&&f&&(d={...d}),P.useMemo(()=>{c.forEach((h,p)=>c.set(p,!1))},[n]),P.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),o==="popLayout"&&(e=w.jsx(Poe,{isPresent:n,anchorX:s,root:l,children:e})),w.jsx(O3.Provider,{value:d,children:e})};function Noe(){return new Map}function BI(e=!0){const t=P.useContext(O3);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=P.useId();P.useEffect(()=>{if(e)return i(a)},[e]);const o=P.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const n5=e=>e.key||"";function rO(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const Ioe=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1,anchorX:s="left",root:l})=>{const[c,u]=BI(o),f=P.useMemo(()=>rO(e),[e]),d=o&&!c?[]:f.map(n5),h=P.useRef(!0),p=P.useRef(f),g=J8(()=>new Map),[v,y]=P.useState(f),[x,C]=P.useState(f);XN(()=>{h.current=!1,p.current=f;for(let O=0;O<x.length;O++){const E=n5(x[O]);d.includes(E)?g.delete(E):g.get(E)!==!0&&g.set(E,!1)}},[x,d.length,d.join("-")]);const _=[];if(f!==v){let O=[...f];for(let E=0;E<x.length;E++){const k=x[E],$=n5(k);d.includes($)||(O.splice(E,0,k),_.push(k))}return a==="wait"&&_.length&&(O=_),C(rO(O)),y(f),null}const{forceRender:S}=P.useContext(K8);return w.jsx(w.Fragment,{children:x.map(O=>{const E=n5(O),k=o&&!c?!1:f===x||d.includes(E),$=()=>{if(g.has(E))g.set(E,!0);else return;let T=!0;g.forEach(M=>{M||(T=!1)}),T&&(S==null||S(),C(p.current),o&&(u==null||u()),r&&r())};return w.jsx(Moe,{isPresent:k,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:k?void 0:$,anchorX:s,children:O},E)})})},zI=P.createContext({strict:!1}),iO={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Q0={};for(const e in iO)Q0[e]={isEnabled:t=>iO[e].some(n=>!!t[n])};function Loe(e){for(const t in e)Q0[t]={...Q0[t],...e[t]}}const Roe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Zg(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Roe.has(e)}let VI=e=>!Zg(e);function joe(e){typeof e=="function"&&(VI=t=>t.startsWith("on")?!Zg(t):e(t))}try{joe(require("@emotion/is-prop-valid").default)}catch{}function Doe(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(VI(i)||n===!0&&Zg(i)||!t&&!Zg(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const E3=P.createContext({});function k3(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $h(e){return typeof e=="string"||Array.isArray(e)}const Cx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wx=["initial",...Cx];function A3(e){return k3(e.animate)||wx.some(t=>$h(e[t]))}function WI(e){return!!(A3(e)||e.variants)}function Foe(e,t){if(A3(e)){const{initial:n,animate:r}=e;return{initial:n===!1||$h(n)?n:void 0,animate:$h(r)?r:void 0}}return e.inherit!==!1?t:{}}function Boe(e){const{initial:t,animate:n}=Foe(e,P.useContext(E3));return P.useMemo(()=>({initial:t,animate:n}),[aO(t),aO(n)])}function aO(e){return Array.isArray(e)?e.join(" "):e}function oO(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const h1={correct:(e,t)=>
vendor: 4,086 bytes, line 12
12{if(!t.target)return e;if(typeof e=="string")if(bt.test(e))e=parseFloat(e);else return e;const n=oO(e,t.target.x),r=oO(e,t.target.y);return`${n}% ${r}%`}},zoe={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Tc.parse(e);if(i.length>5)return r;const a=Tc.createTransformer(e),o=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;const c=vr(s,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),a(i)}},h6={borderRadius:{...h1,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:h1,borderTopRightRadius:h1,borderBottomLeftRadius:h1,borderBottomRightRadius:h1,boxShadow:zoe};function HI(e,{layout:t,layoutId:n}){return Ad.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!h6[e]||e==="opacity")}const Voe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Woe=kd.length;function Hoe(e,t,n){let r="",i=!0;for(let a=0;a<Woe;a++){const o=kd[a],s=e[o];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(o.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||n){const c=II(s,vx[o]);if(!l){i=!1;const u=Voe[o]||o;r+=`${u}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _x(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const l in t){const c=t[l];if(Ad.has(l)){o=!0;continue}else if(fI(l)){i[l]=c;continue}else{const u=II(c,vx[l]);l.startsWith("origin")?(s=!0,a[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=Hoe(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:c="50%",originZ:u=0}=a;r.transformOrigin=`${l} ${c} ${u}`}}const Sx=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function GI(e,t,n){for(const r in t)!Ni(t[r])&&!HI(r,n)&&(e[r]=t[r])}function Goe({transformTemplate:e},t){return P.useMemo(()=>{const n=Sx();return _x(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Uoe(e,t){const n=e.style||{},r={};return GI(r,n,e),Object.assign(r,Goe(e,t)),r}function Yoe(e,t){const n={},r=Uoe(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Xoe={offset:"stroke-dashoffset",array:"stroke-dasharray"},qoe={offset:"strokeDashoffset",array:"strokeDasharray"};function Zoe(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?Xoe:qoe;e[a.offset]=bt.transform(-r);const o=bt.transform(t),s=bt.transform(n);e[a.array]=`${o} ${s}`}function UI(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,c,u){if(_x(e,s,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&Zoe(f,i,a,o,!1)}const YI=()=>({...Sx(),attrs:{}}),XI=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Koe(e,t,n,r){const i=P.useMemo(()=>{const a=YI();return UI(a,t,XI(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};GI(a,e.style,e),i.style={...a,...i.style}}return i}const Joe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ox(e){return typeof e!="string"||e.includes("-")?!1:!!(Joe.indexOf(e)>-1||/[A-Z]/u.test(e))}function Qoe(e,t,n,{latestValues:r},i,a=!1){const s=(Ox(e)?Koe:Yoe)(t,r,i,e),l=Doe(t,typeof e=="string",a),c=e!==P.Fragment?{...l,...s,ref:n}:{},{children:u}=t,f=P.useMemo(()=>Ni(u)?u.get():u,[u]);return P.createElement(e,{...c,children:f})}function sO(e){const t=[{},{}];
vendor: 4,538 bytes, line 12
12return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ex(e,t,n,r){if(typeof t=="function"){const[i,a]=sO(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=sO(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function yg(e){return Ni(e)?e.get():e}function ese({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:tse(n,r,i,e),renderState:t()}}function tse(e,t,n,r){const i={},a=r(e,{});for(const d in a)i[d]=yg(a[d]);let{initial:o,animate:s}=e;const l=A3(e),c=WI(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const f=u?s:o;if(f&&typeof f!="boolean"&&!k3(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const p=Ex(e,d[h]);if(p){const{transitionEnd:g,transition:v,...y}=p;for(const x in y){let C=y[x];if(Array.isArray(C)){const _=u?C.length-1:0;C=C[_]}C!==null&&(i[x]=C)}for(const x in g)i[x]=g[x]}}}return i}const qI=e=>(t,n)=>{const r=P.useContext(E3),i=P.useContext(O3),a=()=>ese(e,t,r,i);return n?a():J8(a)};function kx(e,t,n){var a;const{style:r}=e,i={};for(const o in r)(Ni(r[o])||t.style&&Ni(t.style[o])||HI(o,e)||((a=n==null?void 0:n.getValue(o))==null?void 0:a.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const nse=qI({scrapeMotionValuesFromProps:kx,createRenderState:Sx});function ZI(e,t,n){const r=kx(e,t,n);for(const i in e)if(Ni(e[i])||Ni(t[i])){const a=kd.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const rse=qI({scrapeMotionValuesFromProps:ZI,createRenderState:YI}),ise=Symbol.for("motionComponentSymbol");function O0(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ase(e,t,n){return P.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):O0(n)&&(n.current=r))},[t])}const Ax=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ose="framerAppearId",KI="data-"+Ax(ose),JI=P.createContext({});function sse(e,t,n,r,i){var g,v;const{visualElement:a}=P.useContext(E3),o=P.useContext(zI),s=P.useContext(O3),l=P.useContext(bx).reducedMotion,c=P.useRef(null);r=r||o.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,f=P.useContext(JI);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&lse(c.current,n,i,f);const d=P.useRef(!1);P.useInsertionEffect(()=>{u&&d.current&&u.update(n,s)});const h=n[KI],p=P.useRef(!!h&&!((g=window.MotionHandoffIsComplete)!=null&&g.call(window,h))&&((v=window.MotionHasOptimisedAnimation)==null?void 0:v.call(window,h)));return XN(()=>{u&&(d.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),p.current&&u.animationState&&u.animationState.animateChanges())}),P.useEffect(()=>{u&&(!p.current&&u.animationState&&u.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)==null||y.call(window,h)}),p.current=!1),u.enteringChildren=void 0)}),u}function lse(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:QI(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&O0(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function QI(e){if(e)return e.options.allowProjection!==!1?e.projection:QI(e.parent)}function qy(e,{forwardMotionProps:t=!1}={},n,r){n&&Loe(n);const i=Ox(e)?rse:nse;function a(s,l){let c;const u={...P.useContext(bx),...s,layoutId:cse(s)},{isStatic:f}=u,d=Boe(s),h=i(s,f);if(!f&&Q8){use();const p=fse(u);c=p.MeasureLayout,d.visualElement=sse(e,h,u,r,p.ProjectionNode)}return w.jsxs(E3.Provider,{value:d,children:[c&&d.visualElement?w.jsx(c,{visualElement:d.visualElement,...u}):null,Qoe(e,s,ase(h,d.visualElement,l),h,f,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=P.forwardRef(a);return o[ise]=e,o}function cse({layoutId:e}){const t=P.useContext(K8).id;return t&&e!==void 0?t+"-"+e:e}function use(e,t){P.useContext(zI).strict}function fse(e){const{drag:t,layout:n}=Q0;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
vendor: 19,177 bytes, line 12
12function dse(e,t){if(typeof Proxy>"u")return qy;const n=new Map,r=(a,o)=>qy(a,o,e,t),i=(a,o)=>r(a,o);return new Proxy(i,{get:(a,o)=>o==="create"?r:(n.has(o)||n.set(o,qy(o,void 0,e,t)),n.get(o))})}function eL({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hse({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pse(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Zy(e){return e===void 0||e===1}function p6({scale:e,scaleX:t,scaleY:n}){return!Zy(e)||!Zy(t)||!Zy(n)}function $u(e){return p6(e)||tL(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tL(e){return lO(e.x)||lO(e.y)}function lO(e){return e&&e!=="0%"}function Kg(e,t,n){const r=e-n,i=t*r;return n+i}function cO(e,t,n,r,i){return i!==void 0&&(e=Kg(e,i,r)),Kg(e,n,r)+t}function g6(e,t=0,n=1,r,i){e.min=cO(e.min,t,n,r,i),e.max=cO(e.max,t,n,r,i)}function nL(e,{x:t,y:n}){g6(e.x,t.translate,t.scale,t.originPoint),g6(e.y,n.translate,n.scale,n.originPoint)}const uO=.999999999999,fO=1.0000000000001;function gse(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&k0(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,nL(e,o)),r&&$u(a.latestValues)&&k0(e,a.latestValues))}t.x<fO&&t.x>uO&&(t.x=1),t.y<fO&&t.y>uO&&(t.y=1)}function E0(e,t){e.min=e.min+t,e.max=e.max+t}function dO(e,t,n,r,i=.5){const a=vr(e.min,e.max,i);g6(e,t,n,a,r)}function k0(e,t){dO(e.x,t.x,t.scaleX,t.scale,t.originX),dO(e.y,t.y,t.scaleY,t.scale,t.originY)}function rL(e,t){return eL(pse(e.getBoundingClientRect(),t))}function mse(e,t,n){const r=rL(e,n),{scroll:i}=t;return i&&(E0(r.x,i.offset.x),E0(r.y,i.offset.y)),r}const hO=()=>({translate:0,scale:1,origin:0,originPoint:0}),A0=()=>({x:hO(),y:hO()}),pO=()=>({min:0,max:0}),Vr=()=>({x:pO(),y:pO()}),m6={current:null},iL={current:!1};function vse(){if(iL.current=!0,!!Q8)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>m6.current=e.matches;e.addEventListener("change",t),t()}else m6.current=!1}const yse=new WeakMap;function xse(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Ni(i))e.addValue(r,i);else if(Ni(a))e.addValue(r,J0(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,J0(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const gO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class bse{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gx,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=ua.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,sr.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=A3(n),this.isVariantNode=WI(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const h=f[d];l[d]!==void 0&&Ni(h)&&h.set(l[d])}}mount(t){var n;this.current=t,yse.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),iL.current||vse(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:m6.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),$c(this.notifyUpdate),$c(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Ad.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&sr.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Q0){const n=Q0[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Vr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<gO.length;r++){const i=gO[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=xse(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=J0(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(qN(r)||KN(r))?r=parseFloat(r):!koe(r)&&Tc.test(n)&&(r=NI(t,n)),this.setBaseTarget(t,Ni(r)?r.get():r)),Ni(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Ex(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ni(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ix),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){yx.render(this.render)}}class aL extends bse{constructor(){super(...arguments),this.KeyframeResolver=goe}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ni(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function oL(e,{style:t,vars:n},r,i){const a=e.style;let o;for(o in t)a[o]=t[o];i==null||i.applyProjectionStyles(a,r);for(o in n)a.setProperty(o,n[o])}function Cse(e){return window.getComputedStyle(e)}class wse extends aL{constructor(){super(...arguments),this.type="html",this.renderInstance=oL}readValueFromInstance(t,n){var r;if(Ad.has(n))return(r=this.projection)!=null&&r.isProjecting?o6(n):Iae(t,n);{const i=Cse(t),a=(fI(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return rL(t,n)}build(t,n,r){_x(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return kx(t,n,r)}}const sL=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function _se(e,t,n,r){oL(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(sL.has(i)?i:Ax(i),t.attrs[i])}class Sse extends aL{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Vr}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ad.has(n)){const r=MI(n);return r&&r.default||0}return n=sL.has(n)?n:Ax(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ZI(t,n,r)}build(t,n,r){UI(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){_se(t,n,r,i)}mount(t){this.isSVGTag=XI(t.tagName),super.mount(t)}}const Ose=(e,t)=>Ox(e)?new Sse(t):new wse(t,{allowProjection:e!==P.Fragment});function R0(e,t,n){const r=e.getProps();return Ex(r,t,n!==void 0?n:r.custom,e)}const v6=e=>Array.isArray(e);function Ese(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,J0(n))}function kse(e){return v6(e)?e[e.length-1]||0:e}function Ase(e,t){const n=R0(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const s=kse(a[o]);Ese(e,o,s)}}function $se(e){return!!(Ni(e)&&e.add)}function y6(e,t){const n=e.getValue("willChange");if($se(n))return n.add(t);if(!n&&$l.WillChange){const r=new $l.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function lL(e){return e.props[KI]}const Tse=e=>e!==null;function Pse(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Tse),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Mse={type:"spring",stiffness:500,damping:25,restSpeed:10},Nse=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ise={type:"keyframes",duration:.8},Lse={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Rse=(e,{keyframes:t})=>t.length>2?Ise:Ad.has(e)?e.startsWith("scale")?Nse(t[1]):Mse:Lse;function jse({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const $x=(e,t,n,r={},i,a)=>o=>{const s=mx(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Ss(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:d=>{t.set(d),s.onUpdate&&s.onUpdate(d)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};jse(s)||Object.assign(u,Rse(e,u)),u.duration&&(u.duration=Ss(u.duration)),u.repeatDelay&&(u.repeatDelay=Ss(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(f6(u),u.delay===0&&(f=!0)),($l.instantAnimations||$l.skipAnimations)&&(f=!0,f6(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,f&&!a&&t.get()!==void 0){const d=Pse(u.keyframes,s);if(d!==void 0){sr.update(()=>{u.onUpdate(d),u.onComplete()});return}}return s.isSync?new px(u):new roe(u)};function Dse({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function cL(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const u in s){const f=e.getValue(u,e.latestValues[u]??null),d=s[u];if(d===void 0||c&&Dse(c,u))continue;const h={delay:n,...mx(a||{},u)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===p&&!h.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const y=lL(e);if(y){const x=window.MotionHandoffAnimation(y,u,sr);x!==null&&(h.startTime=x,g=!0)}}y6(e,u),f.start($x(u,f,d,e.shouldReduceMotion&&$I.has(u)?{type:!1}:h,e,g));const v=f.animation;v&&l.push(v)}return o&&Promise.all(l).then(()=>{sr.update(()=>{o&&Ase(e,o)})}),l}function uL(e,t,n,r=0,i=1){const a=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n=="function"?n(a,o):i===1?a*r:s-a*r}function x6(e,t,n={}){var l;const r=R0(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(cL(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=i;return Fse(e,t,c,u,f,d,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[c,u]=s==="beforeChildren"?[a,o]:[o,a];return c().then(()=>u())}else return Promise.all([a(),o(n.delay)])}function Fse(e,t,n=0,r=0,i=0,a=1,o){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(x6(l,t,{...o,delay:n+(typeof r=="function"?0:r)+uL(e.variantChildren,l,r,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function Bse(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>x6(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=x6(e,t,n);else{const i=typeof t=="function"?R0(e,t,n.custom):t;r=Promise.all(cL(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function fL(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const zse=wx.length;function dL(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?dL(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<zse;n++){const r=wx[n],i=e.props[r];($h(i)||i===!1)&&(t[r]=i)}return t}const Vse=[...Cx].reverse(),Wse=Cx.length;function Hse(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Bse(e,n,r)))}function Gse(e){let t=Hse(e),n=mO(),r=!0;const i=l=>(c,u)=>{var d;const f=R0(e,u,l==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:p,...g}=f;c={...c,...g,...p}}return c};function a(l){t=l(e)}function o(l){const{props:c}=e,u=dL(e.parent)||{},f=[],d=new Set;let h={},p=1/0;for(let v=0;v<Wse;v++){const y=Vse[v],x=n[y],C=c[y]!==void 0?c[y]:u[y],_=$h(C),S=y===l?x.isActive:null;S===!1&&(p=v);let O=C===u[y]&&C!==c[y]&&_;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),x.protectedKeys={...h},!x.isActive&&S===null||!C&&!x.prevProp||k3(C)||typeof C=="boolean")continue;const E=Use(x.prevProp,C);let k=E||y===l&&x.isActive&&!O&&_||v>p&&_,$=!1;const T=Array.isArray(C)?C:[C];let M=T.reduce(i(y),{});S===!1&&(M={});const{prevResolvedValues:R={}}=x,N={...R,...M},D=z=>{k=!0,d.has(z)&&($=!0,d.delete(z)),x.needsAnimating[z]=!0;const B=e.getValue(z);B&&(B.liveStyle=!1)};for(const z in N){const B=M[z],G=R[z];if(h.hasOwnProperty(z))continue;let Y=!1;v6(B)&&v6(G)?Y=!fL(B,G):Y=B!==G,Y?B!=null?D(z):d.add(z):B!==void 0&&d.has(z)?D(z):x.protectedKeys[z]=!0}x.prevProp=C,x.prevResolvedValues=M,x.isActive&&(h={...h,...M}),r&&e.blockInitialAnimation&&(k=!1);const F=O&&E;k&&(!F||$)&&f.push(...T.map(z=>{const B={type:y};if(typeof z=="string"&&r&&!F&&e.manuallyAnimateOnMount&&e.parent){const{parent:G}=e,Y=R0(G,z);if(G.enteringChildren&&Y){const{delayChildren:K}=Y.transition||{};B.delay=uL(G.enteringChildren,e,K)}}return{animation:z,options:B}}))}if(d.size){const v={};if(typeof c.initial!="boolean"){const y=R0(e,Array.isArray(c.initial)?c.initial[0]:c.initial);y&&y.transition&&(v.transition=y.transition)}d.forEach(y=>{const x=e.getBaseTarget(y),C=e.getValue(y);C&&(C.liveStyle=!0),v[y]=x??null}),f.push({animation:v})}let g=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function s(l,c){var f;if(n[l].isActive===c)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(d=>{var h;return(h=d.animationState)==null?void 0:h.setActive(l,c)}),n[l].isActive=c;const u=o(l);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=mO()}}}function Use(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fL(t,e):!1}function pu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mO(){return{animate:pu(!0),whileInView:pu(),whileHover:pu(),whileTap:pu(),whileDrag:pu(),whileFocus:pu(),exit:pu()}}class Lc{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Yse extends Lc{constructor(t){super(t),t.animationState||(t.animationState=Gse(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();k3(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}
vendor: 10,829 bytes, line 12
12let Xse=0;class qse extends Lc{constructor(){super(...arguments),this.id=Xse++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Zse={animation:{Feature:Yse},exit:{Feature:qse}};function Th(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Sp(e){return{point:{x:e.pageX,y:e.pageY}}}const Kse=e=>t=>xx(t)&&e(t,Sp(t));function lh(e,t,n,r){return Th(e,t,Kse(n),r)}const hL=1e-4,Jse=1-hL,Qse=1+hL,pL=.01,ele=0-pL,tle=0+pL;function Yi(e){return e.max-e.min}function nle(e,t,n){return Math.abs(e-t)<=n}function vO(e,t,n,r=.5){e.origin=r,e.originPoint=vr(t.min,t.max,e.origin),e.scale=Yi(n)/Yi(t),e.translate=vr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Jse&&e.scale<=Qse||isNaN(e.scale))&&(e.scale=1),(e.translate>=ele&&e.translate<=tle||isNaN(e.translate))&&(e.translate=0)}function ch(e,t,n,r){vO(e.x,t.x,n.x,r?r.originX:void 0),vO(e.y,t.y,n.y,r?r.originY:void 0)}function yO(e,t,n){e.min=n.min+t.min,e.max=e.min+Yi(t)}function rle(e,t,n){yO(e.x,t.x,n.x),yO(e.y,t.y,n.y)}function xO(e,t,n){e.min=t.min-n.min,e.max=e.min+Yi(t)}function Jg(e,t,n){xO(e.x,t.x,n.x),xO(e.y,t.y,n.y)}function Xa(e){return[e("x"),e("y")]}const gL=({current:e})=>e?e.ownerDocument.defaultView:null,bO=(e,t)=>Math.abs(e-t);function ile(e,t){const n=bO(e.x,t.x),r=bO(e.y,t.y);return Math.sqrt(n**2+r**2)}class mL{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Jy(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=ile(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!p)return;const{point:g}=d,{timestamp:v}=gi;this.history.push({...g,timestamp:v});const{onStart:y,onMove:x}=this.handlers;h||(y&&y(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Ky(h,this.transformPagePoint),sr.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Jy(d.type==="pointercancel"?this.lastMoveEventInfo:Ky(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,y),g&&g(d,y)},!xx(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const s=Sp(t),l=Ky(s,this.transformPagePoint),{point:c}=l,{timestamp:u}=gi;this.history=[{...c,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,Jy(l,this.history)),this.removeListeners=Cp(lh(this.contextWindow,"pointermove",this.handlePointerMove),lh(this.contextWindow,"pointerup",this.handlePointerUp),lh(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$c(this.updatePoint)}}function Ky(e,t){return t?{point:t(e.point)}:e}function CO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Jy({point:e},t){return{point:e,delta:CO(e,vL(t)),offset:CO(e,ale(t)),velocity:ole(t,.1)}}function ale(e){return e[0]}function vL(e){return e[e.length-1]}function ole(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=vL(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ss(t)));)n--;if(!r)return{x:0,y:0};const a=eo(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function sle(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?vr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?vr(n,e,r.max):Math.min(e,n)),e}function wO(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function lle(e,{top:t,left:n,bottom:r,right:i}){return{x:wO(e.x,n,i),y:wO(e.y,t,r)}}function _O(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function cle(e,t){return{x:_O(e.x,t.x),y:_O(e.y,t.y)}}function ule(e,t){let n=.5;const r=Yi(e),i=Yi(t);return i>r?n=Eh(t.min,t.max-r,e.min):r>i&&(n=Eh(e.min,e.max-i,t.min)),Al(0,1,n)}function fle(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const b6=.35;function dle(e=b6){return e===!1?e=0:e===!0&&(e=b6),{x:SO(e,"left","right"),y:SO(e,"top","bottom")}}function SO(e,t,n){return{min:OO(e,t),max:OO(e,n)}}function OO(e,t){return typeof e=="number"?e:e[t]||0}const hle=new WeakMap;class ple{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Vr(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=f=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Sp(f).point)},o=(f,d)=>{const{drag:h,dragPropagation:p,onDragStart:g}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xoe(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xa(y=>{let x=this.getAxisMotionValue(y).get()||0;if(Os.test(x)){const{projection:C}=this.visualElement;if(C&&C.layout){const _=C.layout.layoutBox[y];_&&(x=Yi(_)*(parseFloat(x)/100))}}this.originPoint[y]=x}),g&&sr.postRender(()=>g(f,d)),y6(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:g,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:y}=d;if(p&&this.currentDirection===null){this.currentDirection=gle(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,y),this.updateAxis("y",d.point,y),this.visualElement.render(),v&&v(f,d)},l=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Xa(f=>{var d;return this.getAnimationState(f)==="paused"&&((d=this.getAxisMotionValue(f).animation)==null?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new mL(t,{onSessionStart:a,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:gL(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&sr.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!r5(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=sle(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,i=this.constraints;t&&O0(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=lle(r.layoutBox,t):this.constraints=!1,this.elastic=dle(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Xa(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=fle(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!O0(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=mse(r,i.root,this.visualElement.getTransformPagePoint());let o=cle(i.layout.layoutBox,a);if(n){const s=n(hse(o));this.hasMutatedConstraints=!!s,s&&(o=eL(s))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Xa(u=>{if(!r5(u,n,this.currentDirection))return;let f=l&&l[u]||{};o&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?t[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return y6(this.visualElement,t),r.start($x(t,r,0,n,this.visualElement,!1))}stopAnimation(){Xa(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Xa(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Xa(n=>{const{drag:r}=this.getProps();if(!r5(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[n];a.set(t[n]-vr(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!O0(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Xa(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const l=s.get();i[o]=ule({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),X
vendor: 4,225 bytes, line 12
12a(o=>{if(!r5(o,t,null))return;const s=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];s.set(vr(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;hle.set(this.visualElement,this);const t=this.visualElement.current,n=lh(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();O0(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),sr.read(r);const o=Th(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Xa(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=b6,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function r5(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function gle(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class mle extends Lc{constructor(t){super(t),this.removeGroupControls=ro,this.removeListeners=ro,this.controls=new ple(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ro}unmount(){this.removeGroupControls(),this.removeListeners()}}const EO=e=>(t,n)=>{e&&sr.postRender(()=>e(t,n))};class vle extends Lc{constructor(){super(...arguments),this.removePointerDownListener=ro}onPointerDown(t){this.session=new mL(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gL(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:EO(t),onStart:EO(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&sr.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=lh(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const xg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Qy=!1;class yle extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),Qy&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),xg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,Qy=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||sr.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),yx.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Qy=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function yL(e){const[t,n]=BI(),r=P.useContext(K8);return w.jsx(yle,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(JI),isPresent:t,safeToRemove:n})}function xle(e,t,n){const r=Ni(e)?e:J0(e);return r.start($x("",r,t,n)),r.animation}const ble=(e,t)=>e.depth-t.depth;class Cle{constructor(){this.children=[],this.isDirty=!1}add(t){ex(this.children,t),this.isDirty=!0}remove(t){tx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ble),this.isDirty=!1,this.children.forEac
vendor: 5,143 bytes, line 12
12h(t)}}function wle(e,t){const n=ua.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&($c(r),e(a-t))};return sr.setup(r,!0),()=>$c(r)}const xL=["TopLeft","TopRight","BottomLeft","BottomRight"],_le=xL.length,kO=e=>typeof e=="string"?parseFloat(e):e,AO=e=>typeof e=="number"||bt.test(e);function Sle(e,t,n,r,i,a){i?(e.opacity=vr(0,n.opacity??1,Ole(r)),e.opacityExit=vr(t.opacity??1,0,Ele(r))):a&&(e.opacity=vr(t.opacity??1,n.opacity??1,r));for(let o=0;o<_le;o++){const s=`border${xL[o]}Radius`;let l=$O(t,s),c=$O(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||AO(l)===AO(c)?(e[s]=Math.max(vr(kO(l),kO(c),r),0),(Os.test(c)||Os.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=vr(t.rotate||0,n.rotate||0,r))}function $O(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Ole=bL(0,.5,aI),Ele=bL(.5,.95,ro);function bL(e,t,n){return r=>r<e?0:r>t?1:n(Eh(e,t,r))}function TO(e,t){e.min=t.min,e.max=t.max}function _o(e,t){TO(e.x,t.x),TO(e.y,t.y)}function PO(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function MO(e,t,n,r,i){return e-=t,e=Kg(e,1/n,r),i!==void 0&&(e=Kg(e,1/i,r)),e}function kle(e,t=0,n=1,r=.5,i,a=e,o=e){if(Os.test(t)&&(t=parseFloat(t),t=vr(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=vr(a.min,a.max,r);e===a&&(s-=t),e.min=MO(e.min,t,n,s,i),e.max=MO(e.max,t,n,s,i)}function NO(e,t,[n,r,i],a,o){kle(e,t[n],t[r],t[i],t.scale,a,o)}const Ale=["x","scaleX","originX"],$le=["y","scaleY","originY"];function IO(e,t,n,r){NO(e.x,t,Ale,n?n.x:void 0,r?r.x:void 0),NO(e.y,t,$le,n?n.y:void 0,r?r.y:void 0)}function LO(e){return e.translate===0&&e.scale===1}function CL(e){return LO(e.x)&&LO(e.y)}function RO(e,t){return e.min===t.min&&e.max===t.max}function Tle(e,t){return RO(e.x,t.x)&&RO(e.y,t.y)}function jO(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wL(e,t){return jO(e.x,t.x)&&jO(e.y,t.y)}function DO(e){return Yi(e.x)/Yi(e.y)}function FO(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Ple{constructor(){this.members=[]}add(t){ex(this.members,t),t.scheduleRender()}remove(t){if(tx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Mle(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:f,rotateY:d,skewX:h,skewY:p}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),p&&(r+=`skewY(${p}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const e9=["","X","Y","Z"],Nle=1e3;let Ile=0;function t9(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function _L(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=lL(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",sr,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&_L(r)}function SL({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=Ile++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 10,579 bytes, line 12
12{this.projectionUpdateScheduled=!1,this.nodes.forEach(jle),this.nodes.forEach(zle),this.nodes.forEach(Vle),this.nodes.forEach(Dle)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Cle)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ix),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const l=this.eventHandlers.get(o);l&&l.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=FI(o)&&!Ooe(o),this.instance=o;const{layoutId:s,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let u,f=0;const d=()=>this.root.updateBlockedByResize=!1;sr.read(()=>{f=window.innerWidth}),e(o,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,u&&u(),u=wle(d,250),xg.hasAnimatedSinceResize&&(xg.hasAnimatedSinceResize=!1,this.nodes.forEach(VO)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||Yle,{onLayoutAnimationStart:g,onLayoutAnimationComplete:v}=c.getProps(),y=!this.targetLayout||!wL(this.targetLayout,h),x=!f&&d;if(this.options.layoutRoot||this.resumeFrom||x||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...mx(p,"layout"),onPlay:g,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(u,x)}else f||VO(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$c(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Wle),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_L(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(BO);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(zO);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ble),this.nodes.forEach(Lle),this.nodes.forEach(Rle)):this.nodes.forEach(zO),this.clearAllSnapshots();const s=ua.now();gi.delta=Al(0,1e3/60,s-gi.timestamp),gi.timestamp=s,gi.isProcessing=!0,Wy.update.process(gi),Wy.preRender.process(gi),Wy.render.process(gi),gi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,yx.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Fle),this.sharedNodes.forEach(Hle)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,sr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){sr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yi(this.snapshot.measuredBox.x)&&!Yi(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Vr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!CL(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(s||$u(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return o&&(l=this.removeTransform(l)),Xle(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return Vr();const s=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(qle))){const{scroll:u}=this.root;u&&(E0(s.x,u.offset.x),E0(s.y,u.offset.y))}return s}removeElementScroll(o){var l;const s=Vr();if(_o(s,o),(l=this.scroll)!=null&&l.wasRoot)return s;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:f,options:d}=u;u!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&_o(s,o),E0(s.x,f.offset.x),E0(s.y,f.offset.y))}return s}applyTransform(o,s=!1){const l=Vr();_o(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&k0(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),$u(u.latestValues)&&k0(l,u.latestValues)}return $u(this.latestValues)&&k0(l,this.latestValues),l}removeTransform(o){const s=Vr();_o(s,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!$u(c.latestValues))continue;p6(c.latestValues)&&c.updateSnapshot();const u=Vr(),f=c.measurePageBox();_o(u,f),IO(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return $u(this.latestValues)&&IO(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==gi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var h;const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=gi.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Vr(),this.targetWithTransforms=Vr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rle(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):_o(this.target,this.layout.layoutBox),nL(this.target,this.targetDelta)):_o(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||p6(this.parent.latestValues)||tL(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,s,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Vr(),this.relativeTargetOrigin=Vr(),Jg(this.relativeTargetOrigin,s,l),_o(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const o=this.getLead(),s=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&
vendor: 5,279 bytes, line 12
12(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===gi.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;_o(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;gse(this.layoutCorrected,this.treeScale,this.path,s),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Vr());const{target:h}=o;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(PO(this.prevProjectionDelta.x,this.projectionDelta.x),PO(this.prevProjectionDelta.y,this.projectionDelta.y)),ch(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!FO(this.projectionDelta.x,this.prevProjectionDelta.x)||!FO(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var s;if((s=this.options.visualElement)==null||s.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=A0(),this.projectionDelta=A0(),this.projectionDeltaWithTransform=A0()}setAnimationOrigin(o,s=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=A0();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const d=Vr(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=h!==p,v=this.getStack(),y=!v||v.members.length<=1,x=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(Ule));this.animationProgress=0;let C;this.mixTargetDelta=_=>{const S=_/1e3;WO(f.x,o.x,S),WO(f.y,o.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jg(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Gle(this.relativeTarget,this.relativeTargetOrigin,d,S),C&&Tle(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Vr()),_o(C,this.relativeTarget)),g&&(this.animationValues=u,Sle(u,c,this.latestValues,S,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var s,l,c;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&($c(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=sr.update(()=>{xg.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=J0(0)),this.currentAnimation=xle(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Nle),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=o;if(!(!s||!l||!c)){if(this!==o&&this.layout&&c&&OL(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Vr();const f=Yi(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const d=Yi(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}_o(s,l),k0(s,u),ch(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Ple),this.sharedNodes.get(o).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 4,220 bytes, line 12
12resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&t9("z",o,c,this.animationValues);for(let u=0;u<e9.length;u++)t9(`rotate${e9[u]}`,o,c,this.animationValues),t9(`skew${e9[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=yg(s==null?void 0:s.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=yg(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!$u(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=Mle(this.projectionDeltaWithTransform,this.treeScale,u);l&&(f=l(u,f)),o.transform=f;const{x:d,y:h}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${h.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in h6){if(u[p]===void 0)continue;const{correct:g,applyTo:v,isCSSVariable:y}=h6[p],x=f==="none"?u[p]:g(u[p],c);if(v){const C=v.length;for(let _=0;_<C;_++)o[v[_]]=x}else y?this.options.visualElement.renderState.vars[p]=x:o[p]=x}this.options.layoutId&&(o.pointerEvents=c===this?yg(s==null?void 0:s.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(BO),this.root.sharedNodes.clear()}}}function Lle(e){e.updateLayout()}function Rle(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=t.source!==e.layout.source;a==="size"?Xa(f=>{const d=o?t.measuredBox[f]:t.layoutBox[f],h=Yi(d);d.min=r[f].min,d.max=d.min+h}):OL(a,t.layoutBox,r)&&Xa(f=>{const d=o?t.measuredBox[f]:t.layoutBox[f],h=Yi(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=A0();ch(s,r,t.layoutBox);const l=A0();o?ch(l,e.applyTransform(i,!0),t.measuredBox):ch(l,r,t.layoutBox);const c=!CL(s);let u=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const p=Vr();Jg(p,t.layoutBox,d.layoutBox);const g=Vr();Jg(g,r,h.layoutBox),wL(p,g)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=p,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function jle(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Dle(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Fle(e){e.clearSnapshot()}function BO(e){e.clearMeasurements()}function zO(e){e.isLayoutDirty=!1}function Ble(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function VO(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zle(e){e.resolveTargetDelta()}function Vle(e){e.calcProjection()}
vendor: 5,001 bytes, line 12
12function Wle(e){e.resetSkewAndRotation()}function Hle(e){e.removeLeadSnapshot()}function WO(e,t,n){e.translate=vr(t.translate,0,n),e.scale=vr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function HO(e,t,n,r){e.min=vr(t.min,n.min,r),e.max=vr(t.max,n.max,r)}function Gle(e,t,n,r){HO(e.x,t.x,n.x,r),HO(e.y,t.y,n.y,r)}function Ule(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Yle={duration:.45,ease:[.4,0,.1,1]},GO=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),UO=GO("applewebkit/")&&!GO("chrome/")?Math.round:ro;function YO(e){e.min=UO(e.min),e.max=UO(e.max)}function Xle(e){YO(e.x),YO(e.y)}function OL(e,t,n){return e==="position"||e==="preserve-aspect"&&!nle(DO(t),DO(n),.2)}function qle(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Zle=SL({attachResizeListener:(e,t)=>Th(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),n9={current:void 0},EL=SL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!n9.current){const e=new Zle({});e.mount(window),e.setOptions({layoutScroll:!0}),n9.current=e}return n9.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Kle={pan:{Feature:vle},drag:{Feature:mle,ProjectionNode:EL,MeasureLayout:yL}};function XO(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&sr.postRender(()=>a(t,Sp(t)))}class Jle extends Lc{mount(){const{current:t}=this.node;t&&(this.unmount=boe(t,(n,r)=>(XO(this.node,r,"Start"),i=>XO(this.node,i,"End"))))}unmount(){}}class Qle extends Lc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Cp(Th(this.node.current,"focus",()=>this.onFocus()),Th(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function qO(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&sr.postRender(()=>a(t,Sp(t)))}class ece extends Lc{mount(){const{current:t}=this.node;t&&(this.unmount=Soe(t,(n,r)=>(qO(this.node,r,"Start"),(i,{success:a})=>qO(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const C6=new WeakMap,r9=new WeakMap,tce=e=>{const t=C6.get(e.target);t&&t(e)},nce=e=>{e.forEach(tce)};function rce({root:e,...t}){const n=e||document;r9.has(n)||r9.set(n,{});const r=r9.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(nce,{root:e,...t})),r[i]}function ice(e,t,n){const r=rce(t);return C6.set(e,n),r.observe(e),()=>{C6.delete(e),r.unobserve(e)}}const ace={some:0,all:1};class oce extends Lc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:ace[i]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=c?u:f;d&&d(l)};return ice(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(sce(t,n))&&this.startObserver()}unmount(){}}function sce({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const lce={inView:{Feature:oce},tap:{Feature:ece},focus:{Feature:Qle},hover:{Feature:Jle}},cce={layout:{ProjectionNode:EL,MeasureLayout:yL}},uce={...Zse,...lce,...Kle,...cce},fce=dse(uce,Ose);var Tx=(e=>(e[e.critical=0]="critical",e[e.warning=1]="warning",e[e.info=2]="info",e[e.upgrade=3]="upgrade",e))(Tx||{});const dce=e=>e===0?kie:e===1?$ie:e===3?Tie:e===2?Aie:null,hce=e=>{if(e===0||e===3)return"#FF6D7E";if(e===1)return"#F2C94C";if(e===2)return"#4E80EE"},pce=({severity:e,theme:t=0})=>{if(t===0){if(e===0||e===3)return"#FFF0F2";if(e===1)return"#FCF4DB";if(e===2)return"#EEF2FC"}else{if(e===0||e===3)return"#41394B";if(e===1)return"#3B3C45";if(e===2)return"#2F354E"}},kL=({className:e,style:t,children:n,renderDetails:r,severity:i=2,actionButton:a,alignImg:o,showIcon:s=!0})=>{const{theme:l}=ti(),c=dce(i),u=hce(i),f=pce({severity:i,theme:l}),[d,h]=P.useState(!1),p=P.useCallback(()=>
12w.jsxs("span",{style:{color:u,cursor:"pointer"},onClick:a.onClick,className:is.actionButton,children:[" ",a.text]}),[a,u]);return w.jsxs("div",{className:qe(is.wrapper,e),style:Object.assign({},t,{borderLeft:`4px solid ${u}`,backgroundColor:f}),children:[w.jsxs("div",{className:qe(is.header,r&&is.headerClickable),onClick:()=>r&&h(g=>!g),children:[w.jsxs("div",{className:qe(is.headerItem),style:{alignItems:o},children:[c&&s&&w.jsx("img",{className:is.icon,src:c,alt:""}),w.jsxs("div",{children:[n,a&&a.sameLine&&p()]}),a&&!a.sameLine&&p()]}),r&&w.jsx("span",{className:is.arrowWrapper,children:w.jsx(Pie,{className:qe(is.arrow,d&&is.arrowUp)})})]}),w.jsx(Ioe,{initial:!1,children:r&&d&&w.jsx(fce.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},style:{overflow:"hidden"},className:is.details,children:r()})})]})},gce=({state:e,data:t})=>{const[n,r]=P.useState(!1),i=ni();P.useCallback(()=>r(h=>!h),[]);const{requestPermissionsCallback:a}=Z8(e),{is_org_admin:o,is_owner:s,new_teams_opt_in:l}=en(),c=t.length===1,u=P.useRef(null),[f,d]=P.useState("auto");return P.useEffect(()=>{r(!1)},[c]),P.useLayoutEffect(()=>{var h;d((n?(h=u.current)==null?void 0:h.scrollHeight:20)+"px")},[n]),P.useCallback(()=>l&&(o||s)?w.jsx("a",{style:{color:"#F6B400"},onClick:()=>i(pe.accountManager),children:"Reconnect account"}):w.jsxs("a",{style:{color:"#F6B400"},onClick:a,children:["Request an access"," "]}),[l,o,s,a]),t.reduce((h,p)=>{const g=h.find(v=>v.message===p.message);return g?h.map(v=>v.envName===g.envName?{...v,envName:v.envName+", "+p.envName}:v):[...h,p]},[]),null},mce=(e,t)=>{if(e){const n=Object.keys(e.byEnvs).map(r=>+r).filter(r=>t.byId[r]).filter(r=>{const{missingPermissionsCodes:i,requestedPermissionsCodes:a}=e.byEnvs[r];return i.length!==0||a.length!==0}).map(r=>{const i=t.byId[r],a=i.name,{missingPermissionsCodes:o,requestedPermissionsCodes:s}=e.byEnvs[r],l=ZO(i.provider,o),c=ZO(i.provider,s);let u="";if(l.length){u+="You don’t have ";const f=X4(l);ha(f).forEach((d,h,p)=>{const{view:g,edit:v}=f[d];d==="architecture"?u+="cloudview ":u+=`${d} `,g&&(u+="view"),g&&v&&(u+="/"),v&&(u+="edit"),h!==p.length-1&&(u+=h===p.length-2?" & ":", ")}),u+=" permissions for"}if(c.length){l.length?u+=". Request was sent for: ":u+="Requested ";const f=X4(c);ha(f).forEach((d,h,p)=>{const{view:g,edit:v}=f[d];u+=`${d} `,g&&(u+="view"),g&&v&&(u+="/"),v&&(u+="edit"),h!==p.length-1&&(u+=h===p.length-2?" & ":", ")}),u+=" for:"}return{envName:a,message:u}}).filter(r=>!!r.message.length);if(n.length)return n}return null},ZO=(e,t)=>{const n=i=>{const a=X4([i]);return new Set([...q4[e],...ha(a)]).size===q4[e].length};return t.filter(i=>n(i))},vce=e=>{const t=Ot(i=>i.aws.entities.environments,Lt),[n,r]=P.useState(null);return P.useEffect(()=>{r(mce(e,t))},[e,t]),{data:n}},fc=({children:e,requiredPermission:t,showWarning:n=!0,permissionsWarningStyle:r,noAccessBlockHeight:i,allOrganizationEnvs:a=!1})=>{const o=Ic(),s=xi(),{environments:l}=en(),c=P.useMemo(()=>a?l:Eee.some(v=>s.pathname.includes(v))?o:[o[0]],[s,o,a,l]),{state:u}=vp(t,c),{requestedPermissions:f,noMissingPermissions:d,requestPermissionsCallback:h}=Z8(u,!0),{data:p}=vce(u);return u!==null?u.view?w.jsxs(w.Fragment,{children:[n&&p&&w.jsx("div",{style:{marginBottom:"5px",...r},children:w.jsx(gce,{state:u,data:p})}),e?e(u):w.jsx(Wi,{})]}):w.jsx(YN,{noAccessViewOptions:{size:"big"},handleRequestAccessClick:h,noMissingPermissions:d,requestedPermissions:f,height:i}):null},ic=({providers:e,requiredPermission:t,allEnvironments:n,orgPermissions:r})=>{const i=e&&t?w.jsx(dl,{providers:e,allEnvironments:n,children:w.jsx(fc,{requiredPermission:t,showWarning:!1,allOrganizationEnvs:n,children:()=>w.jsx(Wi,{})})}):e?w.jsx(dl,{providers:e,allEnvironments:n,children:w.jsx(Wi,{})}):t?w.jsx(fc,{showWarning:!1,requiredPermission:t,allOrganizationEnvs:n,children:()=>w.jsx(Wi,{})}):w.jsx(Wi,{});return r?w.jsx(mie,{requiredOrgPermissions:r,fallback:i,children:w.jsx(Wi,{})}):i},w6="assistant-shown",Px=()=>{const e=Ot(l=>l.assistant,Lt),t=Zt(),n=en(),r=P.useCallback(async l=>await t(kee({orgId:n.id,data:l})),[n.id]),i=P.useCallback(()=>{t(w0.clearChat({orgId:n.id}))},[n.id]),a=P.useCallback(l=>{var f;const u=(typeof l=="boolean"?l:void 0)??((f=e[n.id])==null?void 0:f.shown)??localStorage.getItem(w6)!=="false";t(w0.toggleShown({orgId:n.id,currentShown:u}))},[n.id,e]),o=P.useCallback(l=>{t(w0.setAssistantChatData({orgId:n.id,data:l}))},[n.id]),s=P.useCallback(l=>{t(w0.addMessageToChat({orgId:n.id,message:l}))},[n.id]);return P.useMemo(()=>({assistant:e[n.id],makePrompt:r,toggleAssistantShown:a,clearChat:i,setChatData:o,addMessage:s}),[e,n.id])},yce=new Map([["bold",P.createElement(P.Fragment,null,P.createElement("path",{d:"M244,104H219.21L175.82,44.24a20,20,0,0,0-31.61-.94L131.39,58.16c-.1.11-.2.23-.29.35a4,4,0,0,1-6.2,0c-.09-.12-.19-.24-.29-.35L111.79,43.3a20,20,0,0,0-31.61.94L36.79,104H12a12,12,0,0,0,0,24H244a12,12,0,0,0,0-24ZM96.62,62.45l9.69,11.24a28,28,0,0,0,43.38,0l9.69-11.24L189.55,104H66.45ZM180,140a40.07,40.07,0,0,0-38.16,28H114.16a40,40,0,1,0,0,24h27.68A40,40,0,1,0,180,140ZM76,196a16,16,0,1,1,16-16A16,16,0,0,1,76,196Zm104,0a16,16,0,1,1,16-16A16,16,0,0,1,180,196Z"}))],["duotone",P.createElement(P.Fragment,null,P.createElement("path",{d:"M104,180a28,28,0,1,1-28-28A28,28,0,0,1,104,180Zm76-28a28,28,0,1,0,28,28A28,28,0,0,0,180,152ZM166.11,51.29a8,8,0,0,0-12.7-.29L140.47,66a16,16,0,0,1-24.94,0L102.59,51a8,8,0,0,0-12.7.29L40,120H216Z",opacity:"0.2"}),P.createElement("path",{d:"M248,112H220.08l-47.5-65.41a16,16,0,0,0-25.31-.72l-12.85,14.9-.2.23a7.95,7.95,0,0,1-12.44,0l-.2-.23-12.85-14.9a16,16,0,0,0-25.31.72L35.92,112H8a8,8,0,0,0,0,16H248a8,8,0,0,0,0-16ZM96.34,56l.19.24,12.85,14.89a24,24,0,0,0,37.24,0l12.85-14.89c.06-.08.1-.16.17-.24l40.66,56H55.69ZM180,144a36,36,0,0,0-35.77,32H111.77a36,36,0,1,0-1.83,16h36.12A36,36,0,1,0,180,144ZM76,200a20,20,0,1,1,20-20A20,20,0,0,1,76,200Zm104,0a20,20,0,1,1,20-20A20,20,0,0,1,180,200Z"}))],["fill",P.createElement(P.Fragment,null,P.createElement("path",{d:"M256,120a8,8,0,0,1-8,8H8a8,8,0,0,1,0-16H35.92l47.5-65.41a16,16,0,0,1,25.31-.72l12.85,14.9.2.23a7.95,7.95,0,0,0,12.44,0l.2-.23,12.85-14.9a16,16,0,0,1,25.31.72L220.08,112H248A8,8,0,0,1,256,120Zm-76,24a36,36,0,0,0-35.77,32H111.77a36,36,0,1,0-1.83,16h36.12A36,36,0,1,0,180,144Z"}))],["light",P.createElement(P.Fragment,null,P.createElement("path",{d:"M248,114H219.06L171,47.77a14,14,0,0,0-22.16-.61L135.93,62.08a1.15,1.15,0,0,0-.14.17,10,10,0,0,1-15.58,0,1.15,1.15,0,0,0-.14-.17L107.2,47.16A14,14,0,0,0,85,47.77L36.94,114H8a6,6,0,0,0,0,12H248a6,6,0,0,0,0-12ZM94.75,54.82a2,2,0,0,1,3.15-.07l.15.17,12.86,14.92A21.88,21.88,0,0,0,128,78h0a21.88,21.88,0,0,0,17.09-8.16L158,54.92l.15-.17a2,2,0,0,1,3.15.07l43,59.18H51.77ZM180,146a34,34,0,0,0-33.94,32H109.94a34,34,0,1,0-1.44,12h39A34,34,0,1,0,180,146ZM76,202a22,22,0,1,1,22-22A22,22,0,0,1,76,202Zm104,0a22,22,0,1,1,22-22A22,22,0,0,1,180,202Z"}))],["regular",P.createElement(P.Fragment,null,P.createElement("path",{d:"M248,112H220.08l-47.5-65.41a16,16,0,0,0-25.31-.72l-12.85,14.9-.2.23a7.95,7.95,0,0,1-12.44,0l-.2-.23-12.85-14.9a16,16,0,0,0-25.31.72L35.92,112H8a8,8,0,0,0,0,16H248a8,8,0,0,0,0-16ZM96.34,56l.19.23,12.85,14.89a24,24,0,0,0,37.24,0l12.85-14.89c.06-.08.1-.15.17-.23l40.66,56H55.69ZM180,144a36,36,0,0,0-35.77,32H111.77a36,36,0,1,0-1.83,16h36.12A36,36,0,1,0,180,144ZM76,200a20,20,0,1,1,20-20A20,20,0,0,1,76,200Zm104,0a20,20,0,1,1,20-20A20,20,0,0,1,180,200Z"}))],["thin",P.createElement(P.Fragment,null,P.createElement("path",{d:"M248,116H218L169.35,49a12,12,0,0,0-19-.51L137.45,63.38l-.1.12a12,12,0,0,1-18.7,0l-.1-.12L10
125.66,48.44a12,12,0,0,0-19,.51L38,116H8a4,4,0,0,0,0,8H248a4,4,0,0,0,0-8ZM93.13,53.65A4,4,0,0,1,96.26,52a4,4,0,0,1,3.2,1.5l.1.12,12.89,14.94A19.86,19.86,0,0,0,128,76h0a19.86,19.86,0,0,0,15.55-7.44l12.89-14.94.1-.12a4.06,4.06,0,0,1,3.2-1.5,4,4,0,0,1,3.13,1.65L208.15,116H47.85ZM180,148a32,32,0,0,0-32,32H108a32,32,0,1,0-1,8h42a32,32,0,1,0,31-40ZM76,204a24,24,0,1,1,24-24A24,24,0,0,1,76,204Zm104,0a24,24,0,1,1,24-24A24,24,0,0,1,180,204Z"}))]]),xce=new Map([["bold",P.createElement(P.Fragment,null,P.createElement("path",{d:"M232.49,55.51l-32-32a12,12,0,0,0-17,0l-96,96A12,12,0,0,0,84,128v32a12,12,0,0,0,12,12h32a12,12,0,0,0,8.49-3.51l96-96A12,12,0,0,0,232.49,55.51ZM192,49l15,15L196,75,181,60Zm-69,99H108V133l56-56,15,15Zm105-7.43V208a20,20,0,0,1-20,20H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28h67.43a12,12,0,0,1,0,24H52V204H204V140.57a12,12,0,0,1,24,0Z"}))],["duotone",P.createElement(P.Fragment,null,P.createElement("path",{d:"M200,88l-72,72H96V128l72-72Z",opacity:"0.2"}),P.createElement("path",{d:"M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"}))],["fill",P.createElement(P.Fragment,null,P.createElement("path",{d:"M224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Zm5.66-58.34-96,96A8,8,0,0,1,128,168H96a8,8,0,0,1-8-8V128a8,8,0,0,1,2.34-5.66l96-96a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,229.66,69.66Zm-17-5.66L192,43.31,179.31,56,200,76.69Z"}))],["light",P.createElement(P.Fragment,null,P.createElement("path",{d:"M228.24,59.76l-32-32a6,6,0,0,0-8.48,0l-96,96A6,6,0,0,0,90,128v32a6,6,0,0,0,6,6h32a6,6,0,0,0,4.24-1.76l96-96A6,6,0,0,0,228.24,59.76ZM125.51,154H102V130.49l66-66L191.51,88ZM200,79.51,176.49,56,192,40.49,215.51,64ZM222,128v80a14,14,0,0,1-14,14H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34h80a6,6,0,0,1,0,12H48a2,2,0,0,0-2,2V208a2,2,0,0,0,2,2H208a2,2,0,0,0,2-2V128a6,6,0,0,1,12,0Z"}))],["regular",P.createElement(P.Fragment,null,P.createElement("path",{d:"M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"}))],["thin",P.createElement(P.Fragment,null,P.createElement("path",{d:"M226.83,61.17l-32-32a4,4,0,0,0-5.66,0l-96,96A4,4,0,0,0,92,128v32a4,4,0,0,0,4,4h32a4,4,0,0,0,2.83-1.17l96-96A4,4,0,0,0,226.83,61.17ZM126.34,156H100V129.66l68-68L194.34,88ZM200,82.34,173.66,56,192,37.66,218.34,64ZM220,128v80a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36h80a4,4,0,0,1,0,8H48a4,4,0,0,0-4,4V208a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4V128a4,4,0,0,1,8,0Z"}))]]),bce=P.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Mx=P.forwardRef((e,t)=>{const{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:l,...c}=e,{color:u="currentColor",size:f,weight:d="regular",mirrored:h=!1,...p}=P.useContext(bce);return P.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:i??f,height:i??f,fill:r??u,viewBox:"0 0 256 256",transform:o||h?"scale(-1, 1)":void 0,...p,...c},!!n&&P.createElement("title",null,n),s,l.get(a??d))});Mx.displayName="IconBase";const AL=P.forwardRef((e,t)=>P.createElement(Mx,{ref:t,...e,weights:yce}));AL.displayName="DetectiveIcon";const $L=P.forwardRef((e,t)=>P.createElement(Mx,{ref:t,...e,weights:xce}));$L.displayName="NotePencilIcon";const Cce=$L,bg={getThreads:(e,t)=>Cl({method:"get",url:`/organizations/${e}/assistant/threads`,withCredentials:!0,headers:{Authorization:`Bearer ${t}`}})(),getThreadMessages:(e,t,n)=>Cl({method:"get",url:`/organizations/${e}/assistant/threads/${t}/messages`,withCredentials:!0,headers:{Authorization:`Bearer ${n}`}})(),updateThreadTitle:(e,t,n,r)=>Cl({method:"patch",url:`/organizations/${e}/assistant/threads/${t}`,withCredentials:!0,headers:{Authorization:`Bearer ${r}`},data:{title:n}})(),deleteThread:(e,t,n)=>Cl({method:"delete",url:`/organizations/${e}/assistant/threads/${t}`,withCredentials:!0,headers:{Authorization:`Bearer ${n}`}})()},wce="new_assistant_chat_thread_id",KO="new_assistant_chat_thread_id";function L1(e,t){return`${wce}:${e??"none"}:${t??"none"}`}function _6(e){try{return localStorage.getItem(e)}catch{return null}}function Cg(e,t){try{localStorage.setItem(e,t)}catch{}}function _ce(e){try{localStorage.removeItem(e)}catch{}}function i9(e,t){const n=L1(e,t),r=_6(n);if(r)return r;const i=crypto.randomUUID();return Cg(n,i),i}function Sce(e){const{user:t}=qM(),n=(t==null?void 0:t.sub)??null,[r,i]=P.useState([]),[a,o]=P.useState(!0),[s,l]=P.useState(()=>(_6(KO)&&!_6(L1(e,n))&&_ce(KO),i9(e,n))),c=P.useRef(null),u=P.useRef(null),{getToken:f}=ZM(),d=P.useRef(f);d.current=f;const h=P.useRef(s);h.current=s;const p=P.useRef(e),g=P.useRef(n);g.current=n;const v=P.useRef(n);P.useEffect(()=>{p.current!==e&&(p.current=e,i([]),o(!0),l(i9(e,g.current)))},[e]),P.useEffect(()=>{v.current!==n&&(v.current=n,i([]),o(!0),l(i9(p.current,n)))},[n]);const y=P.useCallback(async()=>{var k;return((k=await d.current())==null?void 0:k.access_token)??""},[]),x=P.useCallback(async()=>
12{if(!e)return;const k=await y(),$=await bg.getThreads(e,k);$.ok&&i($.data),o(!1)},[e,y]);P.useEffect(()=>{x()},[x]);const C=P.useCallback(()=>{const k=crypto.randomUUID();Cg(L1(p.current,g.current),k),l(k),i($=>[{thread_id:k,title:null,created_at:new Date().toISOString(),last_active_at:new Date().toISOString(),mode:null},...$])},[]),_=P.useCallback(k=>{Cg(L1(p.current,g.current),k),l(k)},[]),S=P.useCallback(async(k,$)=>{i(R=>R.map(N=>N.thread_id===k?{...N,title:$}:N));const T=await y();(await bg.updateThreadTitle(e,k,$,T)).ok||x()},[e,y,x]),O=P.useCallback(async k=>{let $=null;i(M=>{const R=M.filter(N=>N.thread_id!==k);if(k===h.current){const N=crypto.randomUUID();return Cg(L1(p.current,g.current),N),l(N),$={thread_id:N,title:null,created_at:new Date().toISOString(),last_active_at:new Date().toISOString(),mode:null},[$,...R]}return R});const T=await y();await bg.deleteThread(e,k,T)},[e,y]),E=P.useCallback(()=>{c.current&&clearTimeout(c.current),u.current&&clearTimeout(u.current),c.current=setTimeout(()=>{x(),u.current=setTimeout(x,7e3)},8e3)},[x]);return P.useEffect(()=>()=>{c.current&&clearTimeout(c.current),u.current&&clearTimeout(u.current)},[]),{threads:r,threadsLoading:a,activeThreadId:s,createThread:C,selectThread:_,renameThread:S,deleteThread:O,refreshThreads:x,scheduleRefreshForTitle:E}}const Oce="panel_aGPIo",Ece="open_LxOc6",kce="header_M8cb3",Ace="title_xX7MC",$ce="iconBtn_4jQ2J",Tce="closeBtn_eC2Ji",Pce="content_zaKne",Mce="searchRow_9wLVV",Nce="searchInput_Tlr-3",Ice="searchBtn_Fc2QF",Lce="actions_bBH6w",Rce="actionBtn_m7dWZ",jce="divider_K-zhl",Dce="listSection_GPxGP",Fce="sectionLabel_EgqZT",Bce="list_tl8Yu",zce="threadItem_cGM4I",Vce="threadActions_RsvHc",Wce="active_EOrcV",Hce="threadTitle_YuAta",Gce="renameInput_jU7NQ",Uce="spinnerWrap_Eqzoe",Yce="emptyLabel_uDUJO",Xce="menuItem_DQibz",qce="danger_lemhg",kn={panel:Oce,open:Ece,header:kce,title:Ace,iconBtn:$ce,closeBtn:Tce,content:Pce,searchRow:Mce,searchInput:Nce,searchBtn:Ice,actions:Lce,actionBtn:Rce,divider:jce,listSection:Dce,sectionLabel:Fce,list:Bce,threadItem:zce,threadActions:Vce,active:Wce,threadTitle:Hce,renameInput:Gce,spinnerWrap:Uce,emptyLabel:Yce,menuItem:Xce,danger:qce},Zce=({isOpen:e,isLoading:t=!1,threads:n,activeThreadId:r,onBack:i,onCloseDrawer:a,onNewChat:o,onSelectThread:s,onRenameThread:l,onDeleteThread:c})=>{const[u,f]=P.useState(""),[d,h]=P.useState(null),[p,g]=P.useState(""),v=P.useRef(null),y=n.filter(O=>(O.title??"New chat").toLowerCase().includes(u.toLowerCase())),x=O=>{h(O.thread_id),g(O.title??""),setTimeout(()=>{var E;return(E=v.current)==null?void 0:E.focus()},0)},C=O=>{const E=p.trim();E&&l(O,E),h(null)},_=()=>{o(),i()},S=O=>{s(O),i()};return w.jsxs("div",{className:`${kn.panel} ${e?kn.open:""}`,children:[w.jsxs("div",{className:kn.header,children:[w.jsx("button",{className:kn.iconBtn,onClick:i,title:"Back",children:w.jsx(Fte,{})}),w.jsx("span",{className:kn.title,children:"Kai"}),w.jsxs("button",{className:kn.closeBtn,onClick:a,children:[w.jsx(xN,{}),"Close AI"]})]}),w.jsxs("div",{className:kn.content,children:[w.jsxs("div",{className:kn.searchRow,children:[w.jsx("input",{className:kn.searchInput,placeholder:"Search chats...",value:u,onChange:O=>f(O.target.value)}),w.jsx("button",{className:kn.searchBtn,children:w.jsx(Bte,{})})]}),w.jsx("div",{className:kn.actions,children:w.jsxs("button",{className:kn.actionBtn,onClick:_,children:[w.jsx(Gg,{}),w.jsx("span",{children:"New chat"})]})}),w.jsx("div",{className:kn.divider}),w.jsxs("div",{className:kn.listSection,children:[w.jsx("p",{className:kn.sectionLabel,children:"Chats"}),t?w.jsx("div",{className:kn.spinnerWrap,children:w.jsx(zte,{})}):w.jsxs("div",{className:kn.list,children:[y.map(O=>{const E=O.thread_id===r,k=d===O.thread_id,$=O.title??"New chat",T=[{key:"rename",label:w.jsxs("span",{className:kn.menuItem,children:[w.jsx(Gg,{}),"Rename"]})},{type:"divider"},{key:"delete",label:w.jsxs("span",{className:`${kn.menuItem} ${kn.danger}`,children:[w.jsx(H8,{}),"Delete"]})}];return w.jsxs("div",{className:`${kn.threadItem} ${E?kn.active:""}`,onClick:()=>!k&&S(O.thread_id),children:[k?w.jsx("input",{ref:v,className:kn.renameInput,value:p,onChange:M=>g(M.target.value),onKeyDown:M=>{M.key==="Enter"&&C(O.thread_id),M.key==="Escape"&&h(null)},onBlur:()=>C(O.thread_id),onClick:M=>M.stopPropagation()}):w.jsx("span",{className:kn.threadTitle,children:$}),w.jsx("div",{className:kn.threadActions,onClick:M=>M.stopPropagation(),children:k?w.jsx("button",{className:kn.iconBtn,onClick:()=>C(O.thread_id),children:w.jsx(Vte,{})}):w.jsx(C3,{menu:{items:T,onClick:({key:M})=>{M==="rename"&&x(O),M==="delete"&&c(O.thread_id)}},trigger:["click"],overlayClassName:kn.dropdownOverlay,children:w.jsx("button",{className:kn.iconBtn,children:w.jsx(bN,{})})})})]},O.thread_id)}),y.length===0&&w.jsx("p",{className:kn.emptyLabel,children:"No chats found"})]})]})]})]})},Kce="drawer_0HaQd",Jce="open_3-Kkx",Qce="inner_aJdRS",eue="header_P71Tm",tue="title_Xfmha",nue="headerActions_JK5g1",rue="iconBtn_7Xnxy",iue="body_VPw1K",aue="renameInput_veI6f",oue="menuItem_7uQlz",sue="menuItemDanger_GgsiS",lue="loader_itjSj",hi={drawer:Kce,open:Jce,inner:Qce,header:eue,title:tue,headerActions:nue,iconBtn:rue,body:iue,renameInput:aue,menuItem:oue,menuItemDanger:sue,loader:lue},cue=P.lazy(()=>st(()=>import("./NewAssistantChat-yFTwQkT3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),uue=[{key:"rename",label:w.jsxs("span",{className:hi.menuItem,children:[w.jsx(Gg,{}),"Rename"]})},{type:"divider"},{key:"delete",label:w.jsxs("span",{className:`${hi.menuItem} ${hi.menuItemDanger}`,children:[w.jsx(H8,{}),"Delete"]})}],fue=({isOpen:e,onClose:t})=>{const{theme:n}=ti(),r=n===ca.dark,a=en().id,{threads:o,threadsLoading:s,activeThreadI
12d:l,createThread:c,selectThread:u,renameThread:f,deleteThread:d,refreshThreads:h,scheduleRefreshForTitle:p}=Sce(a),{getToken:g}=ZM(),[v,y]=P.useState([]),[x,C]=P.useState(!0);P.useEffect(()=>{if(!a)return;let D=!1;return C(!0),(async()=>{try{const V=await g();if(D)return;const z=(V==null?void 0:V.access_token)??"",B=await bg.getThreadMessages(a,l,z);if(D)return;const G=B.ok?B.data.filter(Y=>Y.role==="user"||Y.role==="assistant").map(Y=>({id:Y.id,role:Y.role,content:Y.parts.flatMap(K=>K.type==="text"?[{type:"text",text:K.text??""}]:K.type==="thinking"?[{type:"reasoning",text:K.thinking??""}]:K.type==="tool-call"?[{type:"tool-call",toolCallId:K.id??"",toolName:K.name??"",args:K.args??{},result:K.result??void 0,isError:!!K.isError}]:[])})).filter(Y=>Y.content.length>0):[];y(G)}catch{D||y([])}finally{D||C(!1)}})(),()=>{D=!0}},[l,a]);const[_,S]=P.useState(!1),[O,E]=P.useState(!1),[k,$]=P.useState(""),T=P.useRef(null),M=o.find(D=>D.thread_id===l),R=()=>{$((M==null?void 0:M.title)??""),E(!0),setTimeout(()=>{var D;return(D=T.current)==null?void 0:D.focus()},0)},N=()=>{const D=k.trim();D&&f(l,D),E(!1)};return w.jsx("div",{className:`${hi.drawer} ${r?"dark":""} ${e?hi.open:""}`,children:w.jsxs("div",{className:hi.inner,children:[w.jsxs("div",{className:hi.header,children:[w.jsx("button",{className:hi.iconBtn,title:"Chat history",onClick:()=>{S(!0),h()},children:w.jsx(Wte,{})}),O?w.jsx("input",{ref:T,className:hi.renameInput,value:k,onChange:D=>$(D.target.value),onKeyDown:D=>{D.key==="Enter"&&N(),D.key==="Escape"&&E(!1)},onBlur:N}):w.jsx("span",{className:hi.title,children:(M==null?void 0:M.title)||"Kai"}),w.jsxs("div",{className:hi.headerActions,children:[w.jsx("button",{className:hi.iconBtn,title:"New chat",onClick:c,children:w.jsx(Cce,{size:16})}),w.jsx(C3,{menu:{items:uue,onClick:({key:D})=>{D==="rename"&&R(),D==="delete"&&d(l)}},trigger:["click"],children:w.jsx("button",{className:hi.iconBtn,title:"More options",children:w.jsx(bN,{style:{transform:"rotate(90deg)"}})})}),w.jsx("button",{className:hi.iconBtn,onClick:t,title:"Close",children:w.jsx(xN,{})})]})]}),w.jsx("div",{className:hi.body,children:x?w.jsx("div",{className:hi.loader,children:"Loading…"}):w.jsx(P.Suspense,{fallback:w.jsx("div",{className:hi.loader,children:"Loading…"}),children:w.jsx(cue,{orgId:a,activeThreadId:l,initialMessages:v,scheduleRefreshForTitle:p},l)})}),w.jsx(Zce,{isOpen:_,isLoading:s,threads:o,activeThreadId:l,onBack:()=>S(!1),onCloseDrawer:t,onNewChat:c,onSelectThread:u,onRenameThread:f,onDeleteThread:d})]})})},Nx=Xe.createContext({data:[],setData:()=>{}}),due=()=>{const[e,t]=P.useState([]);return{value:{data:e,setData:t}}},hue=5e3,$3=()=>{const{setData:e}=P.useContext(Nx),t=()=>e([]),n=i=>e(a=>a.filter(o=>o.id!==i));return{showNotification:({text:i,status:a,duration:o=hue})=>{const s=UM();e(l=>[...l,{id:s,text:i,status:a,duration:o}]),window.setTimeout(()=>{n(s)},o)},dismissNotificationById:n,dismissAllNotifications:t}},QUe=Aee.map(e=>e.RegionName),eYe="us-east-1",tYe=5*60*1e3,i5="stackset_onboarding_session",pue=1e4,gue=()=>{const e=Zt(),t=Ot(a=>a.organizations.currentId??0),{showNotification:n}=$3(),r=P.useRef(null),i=P.useRef(!1);P.useEffect(()=>{if(!t)return;const a=async()=>{var c;if(i.current)return;const o=sessionStorage.getItem(i5);if(!o)return;let s;try{s=JSON.parse(o)}catch{sessionStorage.removeItem(i5);return}const l=(c=s==null?void 0:s.sessionData)==null?void 0:c.bulk_session_id;if(l){i.current=!0;try{const u=await $ee.getStackSetStatus({organizationId:t,sessionId:l});if(u.status===410){sessionStorage.removeItem(i5);return}if(u.ok&&u.data.completed){const f=u.data.account_states??[],d=f.filter(p=>p.status==="connected").length,h=f.filter(p=>p.status==="failed").length;await e(KM()),await e(jo.getOrganizations()),sessionStorage.removeItem(i5),h===0&&d>0?n({status:wl.good,text:`${d} account${d===1?"":"s"} successfully added.`}):h>0&&n({status:wl.bad,text:`Onboarding finished with ${h} failed account${h===1?"":"s"}.`})}}catch{}finally{i.current=!1}}};return a(),r.current=setInterval(a,pue),()=>{r.current&&clearInterval(r.current),r.current=null}},[t,e,n])};var wg=(e=>(e[e.onTrialWithPaidPlan=0]="onTrialWithPaidPlan",e[e.trialAlmostExpired=1]="trialAlmostExpired",e[e.trialExpired=2]="trialExpired",e))(wg||{});const TL=e=>{let t=null;return Ane(e)?t=2:$ne(e)&&(e.payment_plan!==null?t=0:t=1),t},mue=()=>{const e=xi();return P.useMemo(()=>JM(e),[e])},vue="headerTitle_GUcWc",yue="headerWrapper_7GiEj",JO={headerTitle:vue,headerWrapper:yue},PL=P.createContext(void 0),xue=({children:e})=>{const[t,n]=P.useState(null);return w.jsx(PL.Provider,{value:{headerContent:t,setHeaderContent:n},children:e})},bue=()=>{const e=P.useContext(PL);if(!e)throw new Error("useCabinetContentHeader must be used within a CabinetContentHeaderProvider");return e},Cue=({envIds:e,billingType:t})=>{const{billing:{filter:n,options:r}}=Ot(o=>({billing:o.billingNew[t]}),Lt),i=P.useCallback(o=>{const s=o||n.savedFilters;return Object.keys(s).reduce((l,c)=>{const u=s[c];return!u||!u.length||e==null||e.forEach(f=>{var h,p;const d=(p=(h=n.filtersData[(r==null?void 0:r.billing_source)||oa.default])==null?void 0:h.data)==null?void 0:p.find(g=>"environment_id"in g?g.environment_id===f:g.organization_id===f);u.forEach(g=>{var v,y;if(l[f]||(l[f]={}),g.length===1){const x=`${c}:${g[0]}`;(v=d==null?void 0:d.data)!=null&&v[c]&&(l[f][c]||(l[f][c]=[]),l[f][c].push(g[0])),(y=d==null?void 0:d.data)!=null&&y[x]&&(l[f][x]=d==null?void 0:d.data[x])}else{const[x,C]=g;l[f][`${c}:${x}`]||(l[f][`${c}:${x}`]=[]),l[f][`${c}:${x}`].push(C)}})}),l},{})},[n.filtersData,e,n.savedFilters,r==null?void 0:r.billing_source]),a=P.useMemo(()=>i(),[i]);return{getFiltersByEnvId:i,filtersByEnvId:a}},No={total:"Total",monthly:"Monthly",weekly:"Weekly",daily:"Daily",hourly:"Hourly"},nYe={t:No.total,m:No.monthly,w:No.weekly,d:No.daily,h:No.hourly},rYe={bar:"Graph",sankey:"sankey"},Ti={groupByAll:"Accounts",groupBy:{costAndSavings:"CostAndSavings",service:"Service",linkedAccount:"LinkedAccount",virtualEnvironment:"Virtual
12Environment",resourceId:"ResourceId",detailedResource:"DetailedResource"},granularity:No,requestGranularity:{[No.total]:"t",[No.monthly]:"m",[No.weekly]:"w",[No.daily]:"d",[No.hourly]:"h"},xAxis:{timePeriod:"Time period"}},iYe=ha(Ti.granularity).map(e=>Ti.granularity[e]),aYe={costExplorerDisabled:"COST_EXPLORER_DISABLED",curDisabled:"CUR_DISABLED"};var wue=(e=>(e.usd="usd",e.eur="eur",e))(wue||{});const oYe={[pe.billingSummary]:{activeTab:ol.summary,billingSource:oa.default},[pe.billingSpp]:{activeTab:ol.spp,billingSource:oa.organizationCurV2},[pe.billingDetailed]:{activeTab:ol.detailed,billingSource:oa.default},[pe.billingSummaryCostExplorer]:{activeTab:ol.summaryCostExplorer,billingSource:oa.costExplorer},[pe.billingDetailedCostExplorer]:{activeTab:ol.detailedCostExplorer,billingSource:oa.costExplorer},[pe.billingSummaryKubernetes]:{activeTab:ol.summaryKubernetes,billingSource:oa.kubernetes},[pe.billingDetailedKubernetes]:{activeTab:ol.detailedKubernetes,billingSource:oa.kubernetes},[pe.billingSummaryCurV2]:{activeTab:ol.summaryCurV2,billingSource:oa.curV2},[pe.billingDetailedCurV2]:{activeTab:ol.detailedCurV2,billingSource:oa.curV2}},_ue=e=>{const t=z8.getState().virtualEnvs,n=t.groups.reduce((r,i)=>{const o=t.labelsByGroupId[i.id].find(s=>s.id===+e);return o||r},void 0);return(n==null?void 0:n.name)||`${e}`},sYe=e=>{const t=z8.getState().virtualEnvs;return t.groups.reduce((r,i)=>{const a=t.labelsByGroupId[i.id],o=a==null?void 0:a.find(s=>s.id===+e);return o||r},void 0)},Sue=e=>z8.getState().virtualEnvs.groups.find(n=>n.id===+e),QO={label:Ti.xAxis.timePeriod,value:Ti.xAxis.timePeriod},Oue=({selectedGroupBy:e,billingSource:t,billingType:n,orgId:r})=>{var S,O;const{groupByCombinations:i,environments:a,selectedGroupBy:o}=Ot(E=>{var k;return{groupByCombinations:E.billingNew[n].groupByCombinations,environments:E.aws.entities.environments,selectedGroupBy:(k=E.billingNew[n].options)==null?void 0:k.groupBy}},Lt),s=P.useMemo(()=>n==="environments"?Ti.groupByAll:Ti.groupBy.linkedAccount,[n]),l=e!==void 0?e:o,c=Zt(),u=Ic(),{environments:f}=en();P.useEffect(()=>{var E;if(n==="organizations"){const k=i[t];k!=null&&k.data||c(hS({envIds:[],orgId:r,billingSource:t,billingType:n}))}if(n==="environments"){const $=f.filter(T=>a.byId[T]&&!a.byId[T].broken).filter(T=>{var M,R;return!((R=(M=i[t])==null?void 0:M.data)!=null&&R.some(N=>"environment_id"in N?N.environment_id===T:!1))});$.length&&((E=i[t])==null?void 0:E.loadingState)!==Zn.isLoading&&c(hS({envIds:$,billingSource:t,billingType:n,orgId:r}))}},[f,t,a.byId,n,r]);const d=P.useMemo(()=>{var $;if(n==="organizations"){const T=i[t];if(T!=null&&T.data)return[T.data[0].data]}const E=new Set(u);return((($=i[t])==null?void 0:$.data)||[]).reduce((T,M)=>("environment_id"in M&&E.has(M.environment_id)&&T.push(M.data),T),[])},[(S=i[t])==null?void 0:S.data,u,t]),h=P.useMemo(()=>Tee(d),[d]),{gb1Keys:p,gb2ArraysByGb1:g}=P.useMemo(()=>(h||[]).reduce((E,k)=>(E.gb2ArraysByGb1[k[0]||s]?E.gb2ArraysByGb1[k[0]||s].push(k[1]):E.gb2ArraysByGb1[k[0]||s]=[k[1]],E.gb1Keys.push(k[0]),E),{gb1Keys:[],gb2ArraysByGb1:{}}),[h,s]),v=P.useMemo(()=>[...new Set(p||[])].sort((E,k)=>Vg({a:E,b:k})),[p]),y=P.useMemo(()=>[...new Set(g[l||""])].sort((E,k)=>Vg({a:E,b:k})),[g,l]),x=P.useCallback((E,k)=>{const{keysOptionsWithChildren:$,singleKeysOptions:T}=E.reduce((R,N)=>{var D;if(N!=null&&N.includes(":")){const{mainKey:F,subKey:V}=Wg(N),z=F===Ti.groupBy.virtualEnvironment&&((D=Sue(V))==null?void 0:D.name)||V;R.keysOptionsWithChildren[F]?R.keysOptionsWithChildren[F].push({value:V,label:z}):R.keysOptionsWithChildren[F]=[{value:V,label:z}]}else n==="organizations"&&N&&R.singleKeysOptions.push({value:N,label:N}),n==="environments"&&R.singleKeysOptions.push({value:N||Ti.groupByAll,label:N||Ti.groupByAll});return R},{singleKeysOptions:[],keysOptionsWithChildren:{}});if(k&&!l){const R=k.filter(N=>N.value!==l);return[QO,...R]}const M=[...ha($).map(R=>({value:R,label:R,children:$[R]})),...T];return k&&M.unshift(QO),M},[l,y,n]),C=P.useMemo(()=>x(v),[v,x]),_=P.useMemo(()=>x(y,C),[y,C,x]);return{gb1Options:C,gb2Options:_,isGbDataLoading:((O=i[t])==null?void 0:O.loadingState)!==Zn.isLoaded}},Eue=({open:e,deleteQueryId:t,savedQueries:n,selectedQueryId:r,handleClear:i,onCancel:a,billingType:
12o})=>{const s=Zt(),{id:l}=en(),[c,u]=P.useState(!1),f=P.useMemo(()=>{var g;return(g=n==null?void 0:n.find(v=>v.id===t))==null?void 0:g.name},[t,n]),[d,h]=P.useState(f);P.useEffect(()=>(f&&h(f),()=>{h("")}),[f]);const p=async()=>{if(u(!0),t){const g=await s(pS({orgId:l,id:t,billingType:o}));pS.fulfilled.match(g)&&g.payload.ok&&r===t&&i(),a()}u(!1)};return w.jsx(w3,{title:`You are going to delete report ${d}`,closable:{"aria-label":"Custom Close Button"},open:e,onOk:p,onCancel:a,centered:!0,zIndex:99999,footer:[w.jsx(Gr,{onClick:a,disabled:c,children:"Cancel"},"cancel"),w.jsx(Gr,{type:"primary",danger:!0,onClick:p,loading:c,children:"Delete"},"delete")]})},kue=({option:e,onDeleteClick:t})=>{const n=e.data.disabled;return w.jsxs(pn,{justify:"space-between",children:[w.jsxs("div",{style:{maxWidth:165},className:"ellipsis",children:[n&&w.jsx(Wo,{title:"This report is not compatible with the current selected environments",children:w.jsx(_3,{})})," ",e.label]}),w.jsx("div",{style:{cursor:"pointer"},onClick:r=>{r.stopPropagation(),t(e.data.value)},children:w.jsx(H8,{style:{color:"#dc4446"}})})]})},Aue=({modalType:e,onCancel:t,savedQueries:n,selectedQueryId:r,billingType:i})=>{const a=Zt(),{id:o}=en(),s=n==null?void 0:n.find(y=>y.id===r),[l,c]=P.useState(""),[u,f]=P.useState(!1);P.useEffect(()=>{r&&e===x0.saveChanges&&c((s==null?void 0:s.name)||"")},[r,e]);const{filter:{savedFilters:d},options:h}=Ot(y=>y.billingNew[i],Lt),p=P.useMemo(()=>u||!(n!=null&&n.some(y=>y.name===l.trim()&&e===x0.saveAsNew)),[l,n,u,r]),g=()=>{c(""),t()},v=async()=>{if(f(!0),h){const y=Object.fromEntries(Object.entries(d).filter(([C,_])=>_.length)),x={name:l,query:{filters:y||{},granularity:h==null?void 0:h.granularity,groupBy:h==null?void 0:h.groupBy,xAxis:h==null?void 0:h.xAxis,estimated:h==null?void 0:h.estimated,includeCredits:h==null?void 0:h.includeCredits,metric:h==null?void 0:h.metric}};if(e===x0.saveChanges)l===(s==null?void 0:s.name)&&delete x.name,await a(Pee({orgId:o,id:r,data:x,billingType:i}));else{const C=await a(gS({orgId:o,data:x,billingType:i}));gS.fulfilled.match(C)&&C.payload.ok&&a(jr.setSelectedQuery({data:C.payload.data.id,billingType:i}))}}f(!1),g()};return w.jsx(w3,{title:e===x0.saveChanges?"Update Report":"Save Report",closable:{"aria-label":"Custom Close Button"},open:!!e,onOk:v,onCancel:g,centered:!0,zIndex:99999,destroyOnHidden:!0,footer:[w.jsx(Gr,{onClick:g,disabled:u,children:"Cancel"},"cancel"),w.jsx(Gr,{type:"primary",onClick:v,disabled:!p||!l.trim(),loading:u,children:"Save"},"save")],children:w.jsxs("div",{style:{position:"relative"},children:[w.jsx("p",{children:e===x0.saveChanges?"You can change the name of the report":"Enter a name for your saved report"}),w.jsx(CN,{style:{marginTop:8,paddingRight:p?0:28},placeholder:"Enter a name",value:l,onChange:y=>c(y.target.value),status:p?"":"error",disabled:u,maxLength:255}),!p&&w.jsx("div",{style:{position:"absolute",top:35,right:10},children:w.jsx(Wo,{title:"Report with this name already exists. Please enter a different name.",children:w.jsx(Hte,{style:{color:"#dc4446"}})})})]})})},$ue={groupBy:"",xAxis:"",metric:Mee.unblendedCost,granularity:"m",estimated:!0,includeCredits:!0};var x0=(e=>(e.saveChanges="saveChanges",e.saveAsNew="saveAsNew",e))(x0||{});const Tue=({billingType:e})=>{const{billing:{savedQueries:t,options:n,selectedQuery:r}}=Ot(C=>({billing:C.billingNew[e]}),Lt),i=P.useMemo(()=>n?"envIds"in n?n.envIds:n.organizationIds:null,[n]),a=Zt(),[o,s]=P.useState(null),[l,c]=P.useState(null),{id:u}=en(),{gb1Options:f,gb2Options:d}=Oue({billingSource:oa.default,selectedGroupBy:"",billingType:e,orgId:u}),{getFiltersByEnvId:h}=Cue({envIds:i||[],billingType:e}),p=C=>{var S;const _=(S=t.data)==null?void 0:S.find(O=>O.id===C);if(_){const{query:{estimated:O,filters:E,granularity:k,groupBy:$,includeCredits:T,metric:M,xAxis:R}}=_;a(jr.setSelectedGroupByFilters({data:null,billingType:e})),a(jr.setSelectedFilters({data:E,billingType:e})),a(jr.setBillingOptions({options:{estimated:O,granularity:k,groupBy:$,includeCredits:T,metric:M,xAxis:R},billingType:e})),a(jr.setSelectedQuery({data:C,billingType:e}))}},g=()=>{a(jr.setSelectedQuery({data:null,billingType:e})),a(jr.setSelectedGroupByFilters({data:null,billingType:e})),a(jr.setSelectedFilters({data:{},billingType:e})),a(jr.setBillingOptions({options:$ue,billingType:e}))},v=P.useMemo(()=>{var _;return(_=t.data)==null?void 0:_.map(S=>{const O=!S.query.groupBy||f.find(N=>{var z;const{mainKey:D,subKey:F,hasSubKey:V}=Wg(S.query.groupBy);return V?N.value===D&&((z=N.children)==null?void 0:z.find(B=>B.value===F)):N.value===S.query.groupBy}),E=!S.query.xAxis||S.query.xAxis===ps.groupByAll||d.find(N=>{var z;const{mainKey:D,subKey:F,hasSubKey:V}=Wg(S.query.xAxis);return V?N.value===D&&((z=N.children)==null?void 0:z.find(B=>B.value===F)):N.value===S.query.xAxis}),k=h(S.query.filters),$=i==null?void 0:i.reduce((N,D)=>{const F=Object.keys(k[D]||{});return N.push(...F),N},[]),M=(()=>{const N=ha(S.query.filters),D=new Set(N);if(D.has(ps.groupBy.virtualEnvironment)||D.has(ps.groupBy.tag)){const F=N.reduce((V,z)=>{if(z!==ps.groupBy.virtualEnvironment&&z!==ps.groupBy.tag)V.push(z);else{const B=S.query.filters[z].map(G=>`${z}:${G[0]}`);V.push(...B)}return V},[]);return new Set($).size===F.length}return new Set($).size===Object.keys(S.query.filters).length})(),R=!O||!E||!M;return{value:S.id,label:S.name,disabled:R}}).sort((S,O)=>S.disabled&&!O.disabled?1:!S.disabled&&O.disabled?-1:Vg({a:S.label,b:O.label}))},[t.data,f,d,i,h]),x={items:[{label:"Save changes",key:"saveChanges",onClick:()=>s("saveChanges")}
12,{label:"Save as new",key:"saveAsNew",onClick:()=>s("saveAsNew")}]};switch(window.location.pathname){case pe.billingSummary:return!!(i!=null&&i.length)&&w.jsxs("div",{children:[w.jsx(bp,{value:r,style:{width:216},popupMatchSelectWidth:!0,onSelect:p,options:v,placeholder:"Select a report",loading:t.loadingState!==Zn.isLoaded,optionRender:C=>w.jsx(kue,{option:C,onDeleteClick:c})}),r&&w.jsx(Gr,{style:{marginLeft:8},type:"text",onClick:g,children:"Clear"}),r?w.jsx(C3,{menu:x,children:w.jsx(Gr,{type:"primary",style:{marginLeft:8},children:w.jsxs(yN,{children:["Save report",w.jsx(Gte,{})]})})}):w.jsx(Gr,{style:{marginLeft:8},type:"primary",onClick:()=>s("saveAsNew"),children:"Save report"}),w.jsx(Aue,{modalType:o,savedQueries:t.data,selectedQueryId:r,onCancel:()=>s(null),billingType:e}),w.jsx(Eue,{open:!!l,deleteQueryId:l,savedQueries:t.data,selectedQueryId:r,handleClear:g,onCancel:()=>c(null),billingType:e})]});default:return null}},Pue=({children:e})=>{const t=mue(),{onBackBtnClick:n,titleWarning:r,detailedModeActive:i}=Ot(s=>({onBackBtnClick:s.cabinet.onBackBtnClick,titleWarning:s.cabinet.titleWarning,detailedModeActive:s.billingNew.environments.detailedModeActive}),Lt),a=xi(),{headerContent:o}=bue();return w.jsxs(pn,{align:"center",justify:"space-between",className:JO.headerWrapper,children:[t?w.jsx(pn,{gap:4,align:"center",children:w.jsx(Pi.Title,{style:{cursor:n?"pointer":"default",marginBottom:0},onClick:()=>n&&n(),level:4,className:JO.headerTitle,children:w.jsxs(pn,{gap:8,align:"center",children:[n&&w.jsx(Ute,{}),t,r&&w.jsx(Wo,{title:r,placement:"rightTop",children:w.jsx(_3,{style:{fontSize:14,color:"var(--colorsBrandPrimaryColorPrimary)",marginTop:2}})})]})})}):w.jsx("span",{}),o,a.pathname===pe.billingSummary&&!i&&w.jsx(Tue,{billingType:"environments"}),e]})},Mue="wrapper_f0znQ",Nue="title_Herc1",Iue="description_5YIoe",Lue="icon_-6Ue1",Rue="close_sjOnv",jue="action_R9oLd",n0={wrapper:Mue,title:Nue,description:Iue,icon:Lue,close:Rue,action:jue},Due=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M15.8337 5.34166L14.6587 4.16666L10.0003 8.825L5.34199 4.16666L4.16699 5.34166L8.82533 10L4.16699 14.6583L5.34199 15.8333L10.0003 11.175L14.6587 15.8333L15.8337 14.6583L11.1753 10L15.8337 5.34166Z"})),Fue=({onClose:e,renderIcon:t,title:n,description:r,actionButton:i,onActionClick:a})=>w.jsxs("div",{className:n0.wrapper,children:[t&&w.jsx("div",{className:n0.icon,children:t}),e&&w.jsx("div",{className:n0.close,onClick:e,children:w.jsx(Due,{})}),w.jsx("div",{className:n0.title,children:n}),w.jsx("div",{className:n0.description,children:r}),i&&w.jsx("div",{className:n0.action,onClick:a,children:i})]}),Bue=e=>P.createElement("svg",{width:10,height:13,viewBox:"0 0 10 13",fill:"#23A2FF",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M0.333496 0.102539V12.1025H4.3335V9.76921H5.66683V12.1025H9.66683V0.102539H0.333496ZM1.66683 1.43587H3.00016V2.76921H1.66683V1.43587ZM4.3335 1.43587H5.66683V2.76921H4.3335V1.43587ZM7.00016 1.43587H8.3335V2.76921H7.00016V1.43587ZM1.66683 4.10254H3.00016V5.43587H1.66683V4.10254ZM4.3335 4.10254H5.66683V5.43587H4.3335V4.10254ZM7.00016 4.10254H8.3335V5.43587H7.00016V4.10254ZM1.66683 6.76921H3.00016V8.10254H1.66683V6.76921ZM4.3335 6.76921H5.66683V8.10254H4.3335V6.76921ZM7.00016 6.76921H8.3335V8.10254H7.00016V6.76921ZM1.66683 9.43587H3.00016V10.7692H1.66683V9.43587ZM7.00016 9.43587H8.3335V10.7692H7.00016V9.43587Z"})),zue=e=>P.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M2.66656 7.3333V8.66664H10.6666L6.9999 12.3333L7.94656 13.28L13.2266 7.99997L7.94656 2.71997L6.9999 3.66664L10.6666 7.3333H2.66656Z"})),Vue="action_CBNls",Wue={action:Vue},eE="organizationClosed",Hue=1,Gue=({})=>{ni();const[e,t]=P.useState(!(+(localStorage.getItem(eE)||NaN)>Fo.now()));return e?w.jsx(Fue,{title:"Create your organization",description:"Organizations are shared environments where teams can work with cloud accounts",onClose:()=>{localStorage.setItem(eE,`${Fo().add(Hue,"days").valueOf()}`),t(!1)},actionButton:w.jsxs("div",{className:Wue.action,children:["Try now ",w.jsx(zue,{})]}),renderIcon:w.jsx(Bue,{})}):null},lYe=(e,t)=>
12{let n=e.length>1,r=!0,i=[];if(e.forEach(a=>{n&&!a.checked&&(n=!1),r&&a.checked&&(r=!1),a.checked&&i.push(a.name)}),i=i.sort((a,o)=>a.toLowerCase()<o.toLowerCase()?-1:a.toLowerCase()>o.toLowerCase()?1:0),e.length===0)return(t==null?void 0:t.emptyLabel)||"Empty";if(n)return(t==null?void 0:t.allSelectedLabel)||"All";if(r)return(t==null?void 0:t.noSelectedLabel)||"Not selected";{const a=(t==null?void 0:t.maxLength)||50;let o="",s=0;for(let l=0;l<i.length;l++){let c=i[l];if(t!=null&&t.isVirtualEnvs&&(c=_ue(c)),l===0&&c.length>a||i.length===1)return Qg(c,a);s+=c.length,o+=c,l!==i.length-1&&(o+=", ")}return Qg(o,a)}},Qg=(e,t)=>e.length<=t?e:e.substr(0,t-3)+"...",cYe=(e,t)=>{const n=e.groups.find(r=>r.id===+t);return(n==null?void 0:n.name)||null},T3=()=>{const e=ff(t=>t.auth.accountData,Lt);return(e==null?void 0:e.email.endsWith("@profisealabs.com"))||!1},Uue=/./g,tE="incognitoMode",Ix=()=>{const e=Ot(a=>a.app.incognitoMode,Lt),t=Zt(),n=T3(),r=P.useCallback(a=>e?a.replaceAll(Uue,"*"):a,[e]);P.useEffect(()=>{const a=localStorage.getItem(tE);a&&n&&t(Z4.setIncognitoMode(a==="true"))},[n]);const i=P.useCallback(()=>{t(Z4.setIncognitoMode(!e)),localStorage.setItem(tE,String(!e))},[e]);return{incognitoMode:n?e:!1,applyIncognitoMask:r,toggleIncognitoMode:i}},Yue="194px",nE=({width:e=Yue,isMenuCollapsed:t})=>{const{organizations:n,envsDataById:r,organizationsData:i,accountData:a}=Ot(O=>({organizations:O.organizations.items,envsDataById:O.aws.entities.environments.byId,organizationsData:O.organizations,accountData:O.auth.accountData}),Lt),o=Zt(),s=ni(),{applyIncognitoMask:l}=Ix(),c=en(),u=T3(),[f,d]=P.useState(""),h=P.useCallback(O=>{const E=localStorage.getItem("selectedEnvIds"),k=E||null,$=k==null?void 0:k.split(",").map(F=>+F);c&&Nee(c.id,$||[]);const T=Iee(O.id),M=T&&T.length?T:O.environments;o(K4.changeCurrentOrganization(O));const D=(Array.isArray(M)?M:[M]).toSorted((F,V)=>r[F].name<r[V].name?-1:1)[0];u&&console.log("OrganizationSelector",D?[D]:[]),o(V8(D?[D]:[]))},[c,r,u]),p=P.useMemo(()=>a==null?void 0:a.email.includes("@profisealabs.com"),[a==null?void 0:a.email]),g=P.useCallback((O,E)=>O+(E&&p?`(${E})`:""),[p]),v=P.useMemo(()=>n.filter(O=>g(O.name,O.domain).toLowerCase().includes(f.toLowerCase())),[n,f,g]),y=P.useMemo(()=>v.map(O=>({label:l(O.name),value:O.id,item:O})),[v,l]),{getOrganizationMembers:x}=GN(),C=P.useMemo(()=>{const O=x({orgId:c.id});return O==null?void 0:O.find(k=>k.is_owner)},[c,x]),_=P.useMemo(()=>C?w.jsxs(w.Fragment,{children:["Please contact the organization owner,"," ",w.jsxs("b",{children:[C.given_name," ",C.family_name," (",w.jsx("a",{href:`mailto:${C.email}`,children:C.email}),")"]}),", to request access."]}):null,[C]),S=P.useMemo(()=>c.is_owner||c.is_org_admin?w.jsx(Yte,{onClick:()=>{s(pe.myOrganizationSettings)},style:{color:"var(--color-text)"}}):_?w.jsx(G8,{icon:!1,styles:{root:{width:380}},trigger:"hover",title:"You don't have permission to edit this organization.",description:_,okText:"Contact owner",showCancel:!1,onConfirm:()=>{window.open(`mailto:${C==null?void 0:C.email}`,"_blank")},children:w.jsx(pn,{style:{minWidth:16,height:16},align:"center",children:w.jsx(_3,{style:{color:"var(--color-text)"}})})}):w.jsx(QM,{style:{width:16,height:16}}),[c,_]);return w.jsxs(pn,{align:"center",gap:8,style:{flex:t?0:1,minWidth:0,width:t?0:"100%",maxWidth:t?0:void 0,overflow:t?"hidden":void 0,transition:"0.3s"},children:[w.jsx(bp,{style:{width:t?0:e,opacity:t?0:1,borderRadius:8,transition:"0.3s",pointerEvents:t?"none":void 0},placeholder:"Select organization",styles:{popup:{root:{marginTop:"30px"}}},value:c==null?void 0:c.id,onSelect:(O,{item:E})=>{h(E)},popupRender:O=>w.jsxs(w.Fragment,{children:[w.jsx(W8,{placeholder:"Search",value:f,onChange:E=>d(E)}),w.jsx(U8,{style:{margin:"8px 0",width:"100%"}}),O,i.creationAccess.data&&w.jsx(Gr,{icon:w.jsx(Xte,{}),onClick:()=>{s(pe.myOrganizationCreateNew)},style:{width:"100%",marginTop:"8px",borderRadius:8},children:"New organization"})]}),optionRender:({data:{item:O}})=>{const E=g(O.name,O.domain),k=Qg(E,25);return E.length!==k.length?w.jsx(Wo,{placement:"right",title:E,children:l(k)}):l(E)},options:y}),!t&&S]})},Xue="selectorWrapper_iXjqM",que="avatar_4RRyA",ML={selectorWrapper:Xue,avatar:que},Zue=({isMenuCollapsed:e})=>{const t=en(),n=P.useMemo(()=>Lee(t.name),[t.name]);return w.jsxs(Kue,{isMenuCollapsed:e,children:[w.jsx(S3,{placement:"rightTop",arrow:!1,content:w.jsx(nE,{width:190}),open:e?void 0:!1,children:w.jsx(pn,{children:w.jsx(Jue,{children:n})})}),w.jsx(nE,{isMenuCollapsed:e})]})},Kue=P.memo(({isMenuCollapsed:e,children:t})=>w.jsx(pn,{align:"center",gap:e?0:8,className:ML.selectorWrapper,justify:e?"center":void 0,children:t})),Jue=P.memo(({children:e})=>w.jsx(wN,{className:ML.avatar,children:e})),Que=P.memo(Zue),efe=e=>P.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M4.08847 13.2119C3.33774 13.6887 2.38486 13.0217 2.57573 12.1531L3.36 8.58421L0.674559 6.13347C0.0325623 5.54758 0.39211 4.47806 1.25766 4.39897L4.76 4.07895L6.07201 0.811261C6.40788 -0.0252751 7.59212 -0.0252761 7.92799 0.81126L9.24 4.07895L12.7423 4.39897C13.6079 4.47806 13.9674 5.54758 13.3254 6.13347L10.64 8.58421L11.4243 12.1531C11.6151 13.0217 10.6623 13.6887 9.91153 13.2119L7 11.3632L4.08847 13.2119Z",fill:"#1D39C4"})),tfe=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M13 20.3632L10.0885 22.2119C9.33774 22.6887 8.38486 22.0217 8.57573 21.1531L9.36 17.5842L6.67456 15.1335C6.03256 14.5476 6.39211 13.4781 7.25766 13.399L10.76 13.0789L12.072 9.81126C12.4079 8.97472 13.5921 8.97472 13.928 9.81126L14.581 11.4377",stroke:"#2ED47A",strokeLinecap:"round",strokeLinejoin:"round"}),P.createElement("path",{d:"M16.0885 22.2119C15.3377 22.6887 14.3849 22.0217 14.5757 21.1531L15.36 17.5842L12.6746 15.1335C12.0326 14.5476 12.3921 13.4781 13.2577 13.399L16.76 13.0789L18.072 9.81126C18.4079 8.97472 19.5921 8.97472 19.928 9.81126L21.24 13.0789L24.7423 13.399C25.6079 13.4781 25.9674 14.5476 25.3254 15.1335L22.64 17.5842L23.4243 21.1531C23.6151 22.0217 22.6623 22.6887 21.9115 22.2119L19 20.3632L16.0885 22.2119Z",fill:"#2ED47A"})),nfe=e=>P.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5332 21.0113C11.9054 21.8985 9.93374 20.4596 10.3421 18.6012L10.995 15.6301L9.60507 14.3617C9.42138 14.194 9.2675 14.012 9.14191 13.8201L8.19339 16.1825L5.41105 16.4368C4.5455 16.5158 4.18595 17.5854 4.82795 18.1713L6.96839 20.1246L6.34662 22.9541C6.15575 23.8226 7.10863 24.4896 7.85936 24.0129L10.1534 22.5562L12.4474 24.0129C13.1982 24.4896 14.151 23.8226 13.9602 22.9541L13.5332 21.0113Z",fill:"url(#paint0_linear_24256_15672)"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4674 21.0114C20.0953 21.8986 22.0669 20.4597 21.6585 18.6013L21.0056 15.6302L22.3956 14.3617C22.5793 14.1941 22.7332 14.0121 22.8588 13.8202L23.8073 16.1826L26.5896 16.4368C27.4552 16.5159 27.8147 17.5854 27.1727 18.1713L25.0323 20.1247L25.6541 22.9541C25.8449 23.8227 24.892 24.4897 24.1413 24.0129L21.8473 22.5563
12L19.5533 24.0129C18.8025 24.4897 17.8496 23.8227 18.0405 22.9541L18.4674 21.0114Z",fill:"url(#paint1_linear_24256_15672)"}),P.createElement("g",{filter:"url(#filter0_di_24256_15672)"},P.createElement("path",{d:"M13.0885 19.7119C12.3377 20.1887 11.3849 19.5217 11.5757 18.6531L12.36 15.0842L9.67456 12.6335C9.03256 12.0476 9.39211 10.9781 10.2577 10.899L13.76 10.5789L15.072 7.31126C15.4079 6.47472 16.5921 6.47472 16.928 7.31126L18.24 10.5789L21.7423 10.899C22.6079 10.9781 22.9674 12.0476 22.3254 12.6335L19.64 15.0842L20.4243 18.6531C20.6151 19.5217 19.6623 20.1887 18.9115 19.7119L16 17.8632L13.0885 19.7119Z",fill:"white"}),P.createElement("path",{d:"M15.5361 7.49805C15.7041 7.07978 16.2959 7.07978 16.4639 7.49805L17.7764 10.7656C17.8464 10.9395 18.0076 11.06 18.1943 11.0771L21.6973 11.3965C22.1297 11.4363 22.3089 11.9708 21.9883 12.2637L19.3027 14.7148C19.1709 14.8352 19.1131 15.017 19.1514 15.1914L19.9355 18.7607C20.0308 19.1949 19.555 19.5281 19.1797 19.29L16.2676 17.4414C16.1243 17.3505 15.9468 17.3389 15.7949 17.4072L15.7324 17.4414L12.8203 19.29C12.445 19.5281 11.9692 19.1949 12.0645 18.7607L12.8486 15.1914C12.8869 15.017 12.8291 14.8352 12.6973 14.7148L10.0117 12.2637C9.69105 11.9708 9.87031 11.4363 10.3027 11.3965L13.8057 11.0771C13.9924 11.06 14.1536 10.9395 14.2236 10.7656L15.5361 7.49805Z",stroke:"url(#paint2_linear_24256_15672)",strokeLinejoin:"round"})),P.createElement("defs",null,P.createElement("filter",{id:"filter0_di_24256_15672",x:6.34729,y:4.68384,width:21.3054,height:21.187,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},P.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),P.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),P.createElement("feOffset",{dx:1,dy:2}),P.createElement("feGaussianBlur",{stdDeviation:2}),P.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),P.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.598958 0 0 0 0 0.469502 0 0 0 0 0.119745 0 0 0 0.25 0"}),P.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_24256_15672"}),P.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_24256_15672",result:"shape"}),P.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),P.createElement("feOffset",{dx:1,dy:2}),P.createElement("feGaussianBlur",{stdDeviation:2}),P.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:-1,k3:1}),P.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.900845 0 0 0 0 0.852586 0 0 0 0 0.722199 0 0 0 1 0"}),P.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect2_innerShadow_24256_15672"})),P.createElement("linearGradient",{id:"paint0_linear_24256_15672",x1:7.16811,y1:16.2925,x2:12.2776,y2:24.2108,gradientUnits:"userSpaceOnUse"},P.createElement("stop",{stopColor:"white"}),P.createElement("stop",{offset:1,stopColor:"white",stopOpacity:.8})),P.createElement("linearGradient",{id:"paint1_linear_24256_15672",x1:24.8325,y1:16.2925,x2:19.7231,y2:24.2108,gradientUnits:"userSpaceOnUse"},P.createElement("stop",{stopColor:"white"}),P.createElement("stop",{offset:1,stopColor:"white",stopOpacity:.8})),P.createElement("linearGradient",{id:"paint2_linear_24256_15672",x1:12.5,y1:8,x2:19.5,y2:20.5,gradientUnits:"userSpaceOnUse"},P.createElement("stop",{stopColor:"white"}),P.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})))),rfe=e=>P.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M3.84835 8.69153C3.88669 8.51703 3.82902 8.33532 3.69705 8.21489L1.0116 5.76415C0.690606 5.4712 0.87038 4.93644 1.30315 4.8969L4.8055 4.57687C4.99243 4.55979 5.15405 4.43945 5.224 4.26525L6.536 0.99756C6.70394 0.579291 7.29606 0.579292 7.464 0.997559L8.776 4.26525C8.84595 4.43945 9.00757 4.55979 9.1945 4.57687L12.6968 4.8969C13.1296 4.93644 13.3094 5.4712 12.9884 5.76415L10.303 8.21489C10.171 8.33532 10.1133 8.51703 10.1517 8.69153L10.9359 12.2604C11.0314 12.6947 10.5549 13.0282 10.1796 12.7899L7.26802 10.9411C7.10444 10.8372 6.89556 10.8372 6.73198 10.9411L3.82045 12.7899C3.44508 13.0282 2.96864 12.6947 3.06407 12.2604L3.84835 8.69153Z",stroke:"#722ED1",strokeLinejoin:"round"})),rE=({plan:e,styles:t,size:n=32})=>{const r=uh[e].icon,{designToken:i}=ti(),a=i[uh[e].color];return w.jsx(pn,{align:"center",justify:"center",style:{...t,width:n,height:n,borderRadius:"50%",border:`1px solid ${a}`,background:e===ka.gold?a:i.colorBgElevated},children:w.jsx(r,{width:n-10,height:n-10})})},ife="collapsedWrapper_KzSup",afe="expandedWrapper_F-sP0",ofe="planText_FwK9Z",sfe="ownerCursor_c3TqI",p1={collapsedWrapper:ife,expandedWrapper:afe,planText:ofe,ownerCursor:sfe},iE=[{label:"inform",plan:ka.bronze},{label:"optimize",plan:ka.silver},{label:"operate",plan:ka.gold}],uh={[ka.trial]:{label:"Trial",icon:rfe,color:"purple-6"},[ka.bronze]:{label:"Inform",icon:efe,color:"geekblue-7"},[ka.silver]:{label:"Optimize",icon:tfe,color:"green-6"},[ka.gold]:{label:"Operate",icon:nfe,color:"gold-6"}},lfe={color:"rgba(255, 255, 255, 0.85)",borderRadius:30,position:"absolute",right:16,top:"-50%",transform:"translateY(50%)",padding:"0 10px",fontSize:"12px",transition:"0.3s"},cfe={position:"absolute",left:16,top:-1,transition:"0.3s",zIndex:1},ufe={height:30,position:"relative",borderRadius:30,transition:"0.3s",overflow:"hidden"},ffe=({isMenuCollapsed:e})=>{const{is_owner:t,plan:n}=en(),{handleUpgrade:r}=BN(),i=()=>{t&&r()},{designToken:a}=ti(),o=a[uh[n].color],s=iE.findIndex(l=>l.plan===n);return e?w.jsx("div",{className:qe(p1.collapsedWrapper,t&&p1.ownerCursor),onClick:i,children:w.jsx(S3,{trigger:"hover",placement:"right",content:uh[n].label,children:w.jsx(pn,{children:w.jsx(rE,{plan:n})})})}):w.jsxs("div",{className:qe(p1.expandedWrapper,t&&p1.ownerCursor),onClick:i,children:[w.jsx(rE,{plan:n,styles:cfe}),w.jsx(pn,{align:"center",justify:"center",style:{...ufe,border:`1px solid ${a.colorBorder}`},gap:4,children:iE.map((l,c)=>{const f=c>s?a.colorTextDisabled:a.colorText;return w.jsx(Pi.Text,{className:p1.planText,style:{fontSize:a.fontSize,color:f,borderBottom:`1px solid ${f}`},children:uh[l.plan].label},c)})}),n===ka.trial&&w.jsx(Pi.Text,{style:{...lfe,background:o},children:"Trial"})]})},dfe=e=>P.createElement("svg",{width:90,height:26,viewBox:"0 0 90 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12.7846 9.02917C12.7846 9.79822 12.6611 10.4861 12.4142 11.1C12.1778 11.6997 11.691 12.2041 10.9537 12.6134C10.2128 13.0226 9.14746 13.2272 7.75047 13.2272C6.35348 13.2272 5.28104 13.0226 4.52963 12.6134C3.78881 12.2041 3.29845 11.6997 3.05151 11.1C2.81515 10.4861 2.69873 9.79822 2.69873 9.02917V2.56633H0V9.08561C0 11.3081 0.617356 12.9556 1.84854 14.0386C3.09384 15.1075 5.0588 15.6402 7.74694 15.6402C10.4351 15.6402 12.3824 15.1004 13.6277 14.0209C14.873 12.9414 15.4939 11.2975 15.4939 9.08561V2.56633H12.781V9.02917H12.7846Z",fill:"#242E3D"}),P.createElement("path",{d:"M30.9596 5.68135C29.9506 4.80647 28.5183 4.3655 26.6628 4.3655C25.2552 4.3655 24.0557 4.59833 23.0715 5.06752C22.0873 5.53671 21.2512 6.21404 20.5703 7.10303V4.72533H17.981V15.2768H20.5703V11.0823C20.5703 9.64301 21.0395 8.54941 21.9779 7.80505C22.9304 7.05011 24.1969 6.66912 25.7808 6.66912C27.3648 6.66912 28.3631 6.99367 28.984 7.64278C29.6049 8.29188 29.9189 9.29377 29.9189 10.6484V15.2768H32.5082V9.91112C32.4977 7.96733 31.9791 6.55623 30.9596 5.67782V5.68135Z",fill:"#242E3D"}),P.createElement("path",{d:"M37.6588 0.873032H35.0694V3.39537H37.6588V0.873032Z",fill:"#242E3D"}),P.createElement("path",{d:"M37.6588 4.72538H35.0694V15.2769H37.6588V4.72538Z",fill:"#242E3D"}),P.createElement("path",{d:"M51.3782 9.26554C50.5915 9.11032 49.4309 8.96568 47.8928 8.83163L47.2401 8.77871C45.9137 8.66935 44.9577 8.56705 44.3685 8.4718C43.7829 8.37655 43.3808 8.26014 43.1726 8.12961C42.9715 7.99908 42.8728 7.798 42.8728 7.53695C42.8728 7.16653 43.1479 6.88431 43.7018 6.69028C44.2662 6.48568 45.2328 6.38337 46.6087 6.38337C47.6423 6.38337 48.4501 6.4257 49.0393 6.51037C49.639 6.58092 50.0835 6.72203 50.3763 6.92312C50.6691 7.12772 50.8349 7.42053 50.8702 7.80505H53.6536C53.5477 6.49626 52.9022 5.59668 51.7168 5.1028C50.5421 4.60891 48.9123 4.3655 46.8203 4.3655C44.7284 4.3655 43.1056 4.61597 41.9062 5.12044C40.7103 5.61432 40.1105 6.47862 40.1105 7.71333C40.1105 8.49297 40.3469 9.09268 40.8161 9.51249C41.2959 9.92171 41.9838 10.2145 42.8763 10.3944C43.7794 10.5638 45.06 10.7049 46.7145 10.8283C48.1468 10.9377 49.1486 11.0329 49.7237 11.1176C50.3093 11.2023 50.7044 11.3222 50.9019 11.4774C51.1136 11.6221 51.2194 11.8549 51.2194 12.1795C51.2194 12.5287 51.1206 12.7968 50.9196 12.9908C50.7185 13.1708 50.334 13.3083 49.7589 13.4036C49.1945 13.4988 48.3514 13.5482 47.2225 13.5482C46.0936 13.5482 45.1199 13.4883 44.4391 13.3683C43.7582 13.2378 43.2643 13.0367 42.961 12.7757C42.654 12.5111 42.4812 12.1583 42.43
1218 11.7138H39.666C39.7119 13.2131 40.4174 14.2467 41.7792 14.8112C43.1409 15.365 45.0141 15.6402 47.3953 15.6402C49.579 15.6402 51.223 15.3827 52.3271 14.8676C53.4419 14.3526 53.9993 13.4142 53.9993 12.0595C53.9993 11.2058 53.7594 10.5708 53.2761 10.151C52.7963 9.7171 52.1613 9.42429 51.3747 9.26907L51.3782 9.26554Z",fill:"#242E3D"}),P.createElement("path",{d:"M65.8243 4.72534L58.73 9.69594V0.873032H56.1406V15.2768H58.73V12.7227L61.4781 10.7931L66.477 15.2768H70.1564L63.5383 9.35375L70.1564 4.72534H65.8243Z",fill:"#242E3D"}),P.createElement("path",{d:"M82.2213 4.90524C81.2582 4.54541 80.027 4.3655 78.5242 4.3655C77.3495 4.3655 76.2241 4.45722 75.1446 4.63713C74.0757 4.80647 72.968 5.06399 71.818 5.40971L72.5764 7.40995C73.6665 7.0607 74.6649 6.82081 75.5715 6.69029C76.4746 6.55976 77.3495 6.49273 78.1961 6.49273C79.3003 6.49273 80.2916 6.6797 81.1736 7.05011C82.0661 7.40995 82.5282 8.10139 82.5635 9.12091C80.722 8.59174 78.9193 8.32716 77.159 8.32716C75.3986 8.32716 73.8358 8.61997 72.6858 9.2091C71.5357 9.78412 70.9607 10.7225 70.9607 12.0172C70.9607 14.3949 72.587 15.5837 75.8396 15.5837C77.0249 15.5837 78.1679 15.4391 79.2721 15.1534C80.3763 14.8641 81.4734 14.4619 82.5635 13.9469V15.2804H85.1529V9.87937C85.1423 8.52119 84.8883 7.4417 84.3944 6.63737C83.9146 5.83304 83.1914 5.25802 82.2284 4.90877L82.2213 4.90524ZM82.5564 12.1442C81.5934 12.4934 80.5562 12.7968 79.4414 13.0614C78.3267 13.3119 77.3918 13.4389 76.6404 13.4389C75.6421 13.4389 74.9012 13.3366 74.4215 13.132C73.9523 12.9274 73.7159 12.5322 73.7159 11.9431C73.7159 10.8742 74.9365 10.3415 77.3777 10.3415C79.0569 10.3415 80.782 10.5885 82.5529 11.0788V12.1407L82.5564 12.1442Z",fill:"#242E3D"}),P.createElement("path",{d:"M90 0.873032H87.4106V3.39537H90V0.873032Z",fill:"#242E3D"}),P.createElement("path",{d:"M90 4.72538H87.4106V15.2769H90V4.72538Z",fill:"#242E3D"}),P.createElement("path",{d:"M0 25.0462V19.7131H2.04159C2.427 19.7131 2.7473 19.7739 3.0025 19.8954C3.25943 20.0152 3.45126 20.1792 3.578 20.3876C3.70646 20.5959 3.7707 20.832 3.7707 21.0959C3.7707 21.3129 3.72903 21.4986 3.6457 21.6531C3.56237 21.8059 3.4504 21.93 3.30978 22.0255C3.16916 22.121 3.01204 22.1896 2.83844 22.2312V22.2833C3.02767 22.2937 3.20909 22.3519 3.38269 22.4578C3.55803 22.562 3.70126 22.7095 3.81236 22.9005C3.92347 23.0915 3.97902 23.3223 3.97902 23.5932C3.97902 23.8692 3.91219 24.1175 3.77851 24.3379C3.64483 24.5567 3.44345 24.7294 3.17436 24.8561C2.90528 24.9829 2.56675 25.0462 2.15878 25.0462H0ZM0.966111 24.239H2.00514C2.35582 24.239 2.60841 24.1721 2.76292 24.0385C2.91917 23.9031 2.99729 23.7295 2.99729 23.5177C2.99729 23.3597 2.95823 23.2173 2.8801 23.0906C2.80198 22.9621 2.69088 22.8614 2.54678 22.7885C2.40269 22.7139 2.23082 22.6765 2.03118 22.6765H0.966111V24.239ZM0.966111 21.9813H1.92181C2.08847 21.9813 2.23863 21.9509 2.37231 21.8901C2.50599 21.8276 2.61102 21.7399 2.6874 21.6271C2.76553 21.5125 2.80459 21.3771 2.80459 21.2209C2.80459 21.0143 2.73167 20.8441 2.58584 20.7105C2.44175 20.5768 2.22735 20.51 1.94264 20.51H0.966111V21.9813Z",fill:"#242E3D"}),P.createElement("path",{d:"M5.92153 19.7131H7.01264L8.31728 22.0724H8.36936L9.674 19.7131H10.7651L8.82507 23.0567V25.0462H7.86157V23.0567L5.92153 19.7131Z",fill:"#242E3D"}),P.createElement("path",{d:"M16.2015 25.0462V19.7131H18.2014C18.6111 19.7131 18.9549 19.7895 19.2326 19.9423C19.5121 20.095 19.7231 20.3051 19.8654 20.5724C20.0095 20.8381 20.0816 21.1401 20.0816 21.4787C20.0816 21.8207 20.0095 22.1245 19.8654 22.3901C19.7213 22.6557 19.5087 22.8649 19.2274 23.0177C18.9462 23.1687 18.5998 23.2442 18.1884 23.2442H16.8629V22.45H18.0582C18.2978 22.45 18.4939 22.4083 18.6467 22.325C18.7995 22.2417 18.9123 22.1271 18.9853 21.9813C19.0599 21.8354 19.0972 21.6679 19.0972 21.4787C19.0972 21.2894 19.0599 21.1228 18.9853 20.9787C18.9123 20.8346 18.7986 20.7226 18.6441 20.6428C18.4913 20.5612 18.2943 20.5204 18.053 20.5204H17.1676V25.0462H16.2015Z",fill:"#242E3D"}),P.createElement("path",{d:"M22.3873 25.0462V19.7131H24.3873C24.797 19.7131 25.1407 19.7843 25.4185 19.9266C25.698 20.069 25.9089 20.2686 26.0513 20.5256C26.1954 20.7808 26.2674 21.0785 26.2674 21.4188C26.2674 21.7608 26.1945 22.0576 26.0487 22.3
12094C25.9046 22.5594 25.6919 22.7529 25.4107 22.8901C25.1294 23.0255 24.784 23.0932 24.3742 23.0932H22.9498V22.2911H24.244C24.4836 22.2911 24.6798 22.2582 24.8326 22.1922C24.9853 22.1245 25.0982 22.0264 25.1711 21.8979C25.2457 21.7677 25.2831 21.608 25.2831 21.4188C25.2831 21.2295 25.2457 21.0681 25.1711 20.9344C25.0964 20.799 24.9827 20.6966 24.83 20.6271C24.6772 20.556 24.4801 20.5204 24.2388 20.5204H23.3535V25.0462H22.3873ZM25.1425 22.6297L26.4627 25.0462H25.3846L24.0878 22.6297H25.1425Z",fill:"#242E3D"}),P.createElement("path",{d:"M33.3888 22.3797C33.3888 22.9543 33.2811 23.4465 33.0659 23.8562C32.8523 24.2642 32.5607 24.5766 32.1909 24.7936C31.8229 25.0107 31.4053 25.1192 30.9383 25.1192C30.4713 25.1192 30.0529 25.0107 29.6832 24.7936C29.3151 24.5749 29.0235 24.2616 28.8082 23.8536C28.5947 23.4439 28.4879 22.9526 28.4879 22.3797C28.4879 21.805 28.5947 21.3137 28.8082 20.9058C29.0235 20.4961 29.3151 20.1827 29.6832 19.9657C30.0529 19.7487 30.4713 19.6402 30.9383 19.6402C31.4053 19.6402 31.8229 19.7487 32.1909 19.9657C32.5607 20.1827 32.8523 20.4961 33.0659 20.9058C33.2811 21.3137 33.3888 21.805 33.3888 22.3797ZM32.4174 22.3797C32.4174 21.9752 32.3541 21.634 32.2274 21.3563C32.1024 21.0768 31.9288 20.8658 31.7065 20.7235C31.4843 20.5794 31.2283 20.5073 30.9383 20.5073C30.6484 20.5073 30.3923 20.5794 30.1701 20.7235C29.9479 20.8658 29.7734 21.0768 29.6467 21.3563C29.5217 21.634 29.4592 21.9752 29.4592 22.3797C29.4592 22.7842 29.5217 23.1262 29.6467 23.4057C29.7734 23.6834 29.9479 23.8944 30.1701 24.0385C30.3923 24.1808 30.6484 24.252 30.9383 24.252C31.2283 24.252 31.4843 24.1808 31.7065 24.0385C31.9288 23.8944 32.1024 23.6834 32.2274 23.4057C32.3541 23.1262 32.4174 22.7842 32.4174 22.3797Z",fill:"#242E3D"}),P.createElement("path",{d:"M35.7688 25.0462V19.7131H39.1853V20.523H36.7349V21.9708H38.9509V22.7807H36.7349V25.0462H35.7688Z",fill:"#242E3D"}),P.createElement("path",{d:"M42.4982 19.7131V25.0462H41.5321V19.7131H42.4982Z",fill:"#242E3D"}),P.createElement("path",{d:"M47.9093 21.1792C47.885 20.9518 47.7826 20.7747 47.6021 20.648C47.4232 20.5212 47.1906 20.4579 46.9042 20.4579C46.7028 20.4579 46.53 20.4882 46.386 20.549C46.2419 20.6098 46.1316 20.6922 46.0552 20.7964C45.9789 20.9006 45.9398 21.0195 45.9381 21.1532C45.9381 21.2643 45.9632 21.3606 46.0136 21.4422C46.0657 21.5238 46.136 21.5932 46.2245 21.6505C46.313 21.7061 46.4111 21.753 46.5188 21.7912C46.6264 21.8293 46.7349 21.8615 46.8443 21.8875L47.3443 22.0125C47.5456 22.0594 47.7392 22.1227 47.925 22.2026C48.1125 22.2825 48.28 22.3831 48.4275 22.5047C48.5769 22.6262 48.6949 22.7729 48.7817 22.9448C48.8685 23.1166 48.9119 23.318 48.9119 23.5489C48.9119 23.8614 48.8321 24.1366 48.6723 24.3744C48.5126 24.6105 48.2817 24.7954 47.9796 24.9291C47.6793 25.061 47.3156 25.127 46.8885 25.127C46.4736 25.127 46.1134 25.0627 45.8079 24.9343C45.504 24.8058 45.2662 24.6183 45.0943 24.3718C44.9242 24.1253 44.8322 23.8249 44.8183 23.4708H45.7688C45.7827 23.6565 45.84 23.811 45.9407 23.9343C46.0413 24.0576 46.1724 24.1496 46.3339 24.2103C46.4971 24.2711 46.6793 24.3015 46.8807 24.3015C47.0908 24.3015 47.2748 24.2702 47.4328 24.2077C47.5925 24.1435 47.7175 24.055 47.8078 23.9421C47.8981 23.8275 47.9441 23.6939 47.9458 23.5411C47.9441 23.4022 47.9033 23.2876 47.8234 23.1974C47.7435 23.1053 47.6316 23.029 47.4875 22.9682C47.3451 22.9057 47.1785 22.8501 46.9875 22.8015L46.3807 22.6453C45.9415 22.5324 45.5943 22.3614 45.3391 22.1323C45.0857 21.9014 44.9589 21.595 44.9589 21.213C44.9589 20.8988 45.044 20.6237 45.2141 20.3876C45.386 20.1515 45.6195 19.9683 45.9146 19.8381C46.2097 19.7062 46.5439 19.6402 46.9172 19.6402C47.2956 19.6402 47.6272 19.7062 47.9119 19.8381C48.1984 19.9683 48.4232 20.1497 48.5864 20.3824C48.7496 20.6132 48.8338 20.8789 48.839 21.1792H47.9093Z",fill:"#242E3D"}),P.createElement("path",{d:"M51.2398 25.0462V19.7131H54.7084V20.523H52.2059V21.9708H54.5288V22.7807H52.2059V24.2364H54.7293V25.0462H51.2398Z",fill:"#242E3D"}),P.createElement("path",{d:"M57.8456 25.0462H56.8144L58.6919 19.7131H59.8846L61.7647 25.0462H60.7335L59.3091 20.8068H59.2674L57.8456 25.0462ZM57.8794 22.9552H60.6918V23.7312H57.8794V22.9552Z",fill:"#242E3D"}),P.createElement("path",{d:"M67.2193 25.0462V19.7131H68.1854V24.2364H70.5343V25.0462H67.2193Z",fill:"#242E3D"}),P.createElement("path",{d:"M73.7248 25.0462H72.6936L74.5711 19.7131H75.7638L77.6439 25.0462H76.6127L75.1883 20.8068H75.1466L73.7248 25.0462ZM73.7587 22.9552H76.5711V23.7312H73.7587V22.9552Z",fill:"#242E3D"}),P.createElement("path",{d:"M79.813 25.0462V19.7131H81.8546C82.24 19.7131 82.5603 19.7739 82.8155 19.8954C83.0724 20.0152 83.2643 20.1792 83.391 20.3876C83.5195 20.5959 83.5837 20.832 83.5837 21.0959C83.5837 21.3129 83.542 21.4986 83.4587 21.6531C83.3754 21.8059 83.2634 21.93 83.1228 22.0255C82.9822 22.121 82.825 22.1896 82.6514 22.2312V22.2833C82.8407 22.2937 83.0221 22.3519 83.1957 22.4578C83.371 22.562 83.5143 22.7095 83.6254 22.9005C83.7365 23.0915 83.792 23.3223 83.792 23.5932C83.792 23.8692 83.7252 24.1175 83.5915 24.3379C83.4578 24.556
127 83.2564 24.7294 82.9874 24.8561C82.7183 24.9829 82.3797 25.0462 81.9718 25.0462H79.813ZM80.7791 24.239H81.8181C82.1688 24.239 82.4214 24.1721 82.5759 24.0385C82.7322 23.9031 82.8103 23.7295 82.8103 23.5177C82.8103 23.3597 82.7712 23.2173 82.6931 23.0906C82.615 22.9621 82.5039 22.8614 82.3598 22.7885C82.2157 22.7139 82.0438 22.6765 81.8442 22.6765H80.7791V24.239ZM80.7791 21.9813H81.7348C81.9015 21.9813 82.0516 21.9509 82.1853 21.8901C82.319 21.8276 82.424 21.7399 82.5004 21.6271C82.5785 21.5125 82.6176 21.3771 82.6176 21.2209C82.6176 21.0143 82.5447 20.8441 82.3988 20.7105C82.2547 20.5768 82.0403 20.51 81.7556 20.51H80.7791V21.9813Z",fill:"#242E3D"}),P.createElement("path",{d:"M88.9974 21.1792C88.9731 20.9518 88.8707 20.7747 88.6901 20.648C88.5113 20.5212 88.2787 20.4579 87.9923 20.4579C87.7909 20.4579 87.6181 20.4882 87.4741 20.549C87.33 20.6098 87.2197 20.6922 87.1433 20.7964C87.0669 20.9006 87.0279 21.0195 87.0261 21.1532C87.0261 21.2643 87.0513 21.3606 87.1017 21.4422C87.1537 21.5238 87.2241 21.5932 87.3126 21.6505C87.4011 21.7061 87.4992 21.753 87.6069 21.7912C87.7145 21.8293 87.823 21.8615 87.9324 21.8875L88.4324 22.0125C88.6337 22.0594 88.8273 22.1227 89.0131 22.2026C89.2005 22.2825 89.3681 22.3831 89.5156 22.5047C89.6649 22.6262 89.783 22.7729 89.8698 22.9448C89.9566 23.1166 90 23.318 90 23.5489C90 23.8614 89.9201 24.1366 89.7604 24.3744C89.6007 24.6105 89.3698 24.7954 89.0677 24.9291C88.7674 25.061 88.4037 25.127 87.9766 25.127C87.5617 25.127 87.2015 25.0627 86.8959 24.9343C86.5921 24.8058 86.3543 24.6183 86.1824 24.3718C86.0123 24.1253 85.9203 23.8249 85.9064 23.4708H86.8569C86.8708 23.6565 86.9281 23.811 87.0288 23.9343C87.1294 24.0576 87.2605 24.1496 87.422 24.2103C87.5852 24.2711 87.7674 24.3015 87.9688 24.3015C88.1789 24.3015 88.3629 24.2702 88.5209 24.2077C88.6806 24.1435 88.8056 24.055 88.8959 23.9421C88.9861 23.8275 89.0322 23.6939 89.0339 23.5411C89.0322 23.4022 88.9914 23.2876 88.9115 23.1974C88.8316 23.1053 88.7197 23.029 88.5756 22.9682C88.4332 22.9057 88.2666 22.8501 88.0756 22.8015L87.4688 22.6453C87.0296 22.5324 86.6824 22.3614 86.4272 22.1323C86.1737 21.9014 86.047 21.595 86.047 21.213C86.047 20.8988 86.1321 20.6237 86.3022 20.3876C86.4741 20.1515 86.7076 19.9683 87.0027 19.8381C87.2978 19.7062 87.632 19.6402 88.0053 19.6402C88.3837 19.6402 88.7153 19.7062 89 19.8381C89.2865 19.9683 89.5113 20.1497 89.6745 20.3824C89.8377 20.6132 89.9219 20.8789 89.9271 21.1792H88.9974Z",fill:"#242E3D"})),hfe="data:image/svg+xml,%3csvg%20width='64'%20height='28'%20viewBox='0%200%2064%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M64%2011.9849C59.585%2016.3999%2052.4255%2016.3999%2047.999%2011.9849L39.9985%2019.9854L31.9981%2011.9849L39.9985%203.98445C44.4212%20-0.430527%2051.5807%20-0.430527%2055.9995%203.98445L64%2011.9849Z'%20fill='%230098D6'%20/%3e%3cpath%20d='M48.0029%2011.9854C52.4217%2016.4042%2059.5851%2016.4042%2064.0001%2011.9854C59.5813%207.56656%2052.4179%207.56656%2048.0029%2011.9854Z'%20fill='%230087BC'%20/%3e%3cpath%20d='M32.0019%2011.9849L24.0015%2019.9854L16.001%2011.9849C11.586%2016.3999%204.42646%2016.3999%201.52588e-05%2011.9849L8.0005%203.98445C12.4231%20-0.430527%2019.5827%20-0.430527%2024.0015%203.98445L32.0019%2011.9849Z'%20fill='%2300B5ED'%20/%3e%3cpath%20d='M40.0023%2019.9866L33.1371%2026.8595C32.5141%2027.4826%2031.4973%2027.4826%2030.8742%2026.8595L24.0014%2019.9866L16.0009%2011.9862C20.4235%207.57118%2027.583%207.57118%2032.0019%2011.9862L40.0023%2019.9866Z'%20fill='%2300A2E2'%20/%3e%3c/svg%3e",pfe=e=>P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",id:"Layer_2",viewBox:"0 0 772.01 229.31",...e},P.createElement("g",{id:"Layer_1-2","data-name":"Layer_1"},P.createElement("g",null,P.createElement("path",{d:"M176.63,80.73c3.59-6.96,8.47-12.32,14.63-16.08,6.16-3.75,13.05-5.63,20.66-5.63,6.64,0,12.46,1.34,17.44,4.02,4.98,2.68,8.98,6.06,11.98,10.13v-12.7h22.67v89.06h-22.67v-13.02c-2.89,4.18-6.89,7.64-11.98,10.37-5.09,2.73-10.96,4.1-17.6,4.1-7.5,0-14.34-1.93-20.5-5.79-6.16-3.86-11.04-9.3-14.63-16.32-3.59-7.02-5.39-15.08-5.39-24.19s1.79-16.99,5.39-23.95ZM238.12,90.94c-2.15-3.91-5.04-6.91-8.68-9-3.65-2.09-7.56-3.13-11.74-3.13s-8.04,1.02-11.57,3.05c-3.54,2.04-6.41,5.01-8.6,8.92-2.2,3.91-3.3,8.55-3.3,13.91s1.1,10.05,3.3,14.07c2.2,4.02,5.09,7.1,8.68,9.24,3.59,2.14,7.42,3.21,11.49,3.21s8.09-1.04,11.74-3.13c3.64-2.09,6.54-5.09,8.68-9,2.14-3.91,3.21-8.6,3.21-14.07s-1.07-10.15-3.21-14.07Z"}),P.createElement("path",{d:"M423.08,69.23c6.7,6.7,10.05,16.05,10.05,28.05v52.25h-22.51v-49.19c0-6.97-1.77-12.3-5.3-16-3.54-3.7-8.36-5.55-14.47-5.55s-10.96,1.85-14.55,5.55c-3.59,3.7-5.39,9.03-5.39,16v49.19h-22.51v-49.19c0-6.97-1.77-12.3-5.31-16-3.54-3.7-8.36-5.55-14.47-5.55s-11.12,1.85-14.71,5.55c-3.59,3.7-5.39,9.03-5.39,16v49.19h-22.51V60.47h22.51v10.77c2.89-3.75,6.62-6.7,11.17-8.84,4.55-2.14,9.57-3.22,15.03-3.22,6.97,0,13.18,1.47,18.65,4.42,5.47,2.95,9.7,7.15,12.7,12.62,2.89-5.14,7.1-9.27,12.62-12.38,5.52-3.11,11.49-4.66,17.92-4.66,10.93,0,19.75,3.35,26.45,10.05Z"}),P.createElement("path",{d:"M591.55,69.23c6.7,6.7,10.05,16.05,10.05,28.05v52.25h-22.51v-49.19c0-6.97-1.77-12.3-5.3-16-3.54-3.7-8.36-5.55-14.47-5.55s-10.96,1.85-14.55,5.55c-3.59,3.7-5.39,9.03-5.39,16v49.19h-22.51v-49.19c0-6.97-1.77-12.3-5.3-16-3.54-3.7-8.36-5.55-14.47-5.55s-11.12,1.85-14.71,5.55c-3.59,3.7-5.38,9.03-5.38,16v49.19h-22.51V60.47h22.51v10.77c2.89-3.75,6.62-6.7,11.17-8.84,4.55-2.14,9.57-3.22,15.03-3.22,6.96,0,13.18,1.47,18.65,4.42,5.47,2.95,9.7,7.15,12.7,12.62,2.89-5.14,7.1-9.27,12.62-12.38,5.52-3.11,11.49-4.66,17.92-4.66,10.93,0,19.75,3.35,26.45,10.05Z"}),P.createElement("path",{d:"M705.13,111.76h-65.11c.54,6.43,2.79,11.47,6.75,15.11,3.96,3.65,8.84,5.47,14.63,5.47,8.36,0,14.31-3.59,17.84-10.77h24.27c-2.57,8.58-7.5,15.62-14.79,21.14-7.29,5.52-16.24,8.28-26.85,8.28-8.58,0-16.26-1.9-23.07-5.71-6.81-3.8-12.11-9.19-15.92-16.16-3.8-6.97-5.71-15-5.71-24.11s1.87-17.31,5.63-24.28c3.75-6.96,9-12.32,15.75-16.08,6.75-3.75,14.52-5.63,23.31-5.63s16.05,1.82,22.75,5.47c6.7,3.64,11.9,8.82,15.59,15.51,3.7,6.7,5.55,14.39,5.55,23.07,0,3.21-.22,6.11-.64,8.68ZM682.46,96.64c-.11-5.79-2.2-10.42-6.27-13.91-4.07-3.48-9.06-5.22-14.95-5.22-5.57,0-10.26,1.69-14.07,5.06-3.81,3.38-6.14,8.07-6.99,14.07h42.28Z"}
12),P.createElement("path",{d:"M756.01,63.21c4.66-2.68,9.99-4.02,16-4.02v23.63h-5.95c-7.07,0-12.41,1.66-16,4.98-3.59,3.32-5.38,9.11-5.38,17.36v44.37h-22.51V60.47h22.51v13.83c2.89-4.71,6.67-8.41,11.33-11.09Z"})),P.createElement("g",null,P.createElement("polygon",{points:"216.9 0 115.46 101.44 96.37 82.35 178.72 0 216.9 0"}),P.createElement("polygon",{points:"116.95 99.95 38.18 178.72 0 178.72 78.77 99.95 116.95 99.95"}),P.createElement("polygon",{points:"168.34 151.4 130.15 151.4 97.76 119.01 116.85 99.91 168.34 151.4"}),P.createElement("polygon",{points:"116.85 99.92 116.82 99.95 78.7 99.95 25.21 46.46 63.39 46.46 116.85 99.92"})),P.createElement("text",{transform:"translate(133.05 206.03)",style:{fontFamily:"Poppins-Medium, Poppins",fontSize:"39.99px",fontWeight:500}},P.createElement("tspan",{x:0,y:0},"Your Engineering Partner")))),gfe=4,mfe=({route:e,isSidebar:t,isSidebarCollapsed:n})=>{const r=en(),{variables:i}=ti(),a=r.reseller&&r.reseller.id===gfe&&t;return w.jsx("a",{className:mS.imgLinkWrapper,href:e,style:{justifyContent:n?"center":void 0,padding:n?"0":void 0},children:a?w.jsx(pfe,{fill:i["--text-primary-text"],height:35}):w.jsxs(w.Fragment,{children:[w.jsx("img",{width:35,src:hfe,alt:""}),w.jsx(dfe,{width:n?0:90,style:{opacity:n?0:1},className:mS.svgLogoText})]})})},vfe=P.memo(mfe),yfe="menu_VZwsV",xfe="submenuSelected_EprXS",bfe="submenu_ViwEp",R1={menu:yfe,submenuSelected:xfe,submenu:bfe},Cfe="wrapper_lxcnx",wfe="white_BsQ-u",_fe="orange_4aIUI",Sfe="violet_u4fqe",Ofe="red_ei3N6",aE={wrapper:Cfe,white:wfe,orange:_fe,violet:Sfe,red:Ofe},Efe=({text:e,predefinedColor:t,className:n,style:r})=>w.jsx("button",{type:"button",className:qe(aE.wrapper,t&&aE[t],n),style:r,children:e}),kfe={background:"rgba(59, 130, 246, 0.15)",color:"#3B82F6"},oE=({className:e,style:t})=>w.jsx(Efe,{text:"Beta",className:e,style:{...kfe,...t}}),Afe=[{key:pe.dashboard,label:"Dashboard",icon:w.jsx(qte,{})},{key:pe.reports,label:"Reports",icon:w.jsx(Zte,{})},{key:"Cloudview",label:"Cloudview",icon:w.jsx(Kte,{}),type:"submenu",children:[{key:pe.k8sView,label:"Cloudk8s",extra:w.jsx(oE,{})},{key:pe.cloudlist,label:"Cloudlist"},{key:pe.cloudmap,label:"Cloudmap"},{key:pe.cloudnet,label:"Cloudnet"}]},{key:"Cloudcosts",label:"Cloudcosts",type:"submenu",icon:w.jsx(Jte,{}),children:[{key:pe.smartSavings,label:"FinOps Report"},{key:pe.billingSummary,label:"Costs overview"},{key:pe.aiCostOverview,label:"Costs analysis",extra:w.jsx(oE,{})},{key:pe.costMonitoring,label:"Costs monitoring"},{key:pe.waste,label:"Waste"},{key:pe.rightsizing,label:"Rightsizing"},{key:pe.cloudsitter,label:"Cloudsitter"},{key:pe.spots,label:"Spots"},{key:pe.reservation,label:"Reservation"},{key:pe.savings,label:"Savings"}]},{key:"Cloudguard",label:"Cloudguard",type:"submenu",icon:w.jsx(Qte,{}),children:[{key:pe.insightsSecurity,label:"Security"},{key:pe.insightsPerformance,label:"Performance"}]},{key:"TeamManagement",label:"Team Management",type:"submenu",icon:w.jsx(ene,{}),children:[{key:pe.teamManagementAccess,label:"Access to Accounts"},{key:pe.teamManagementAccounts,label:"Accounts management"},{key:pe.teamManagementUsersGroups,label:"Users & Groups"},{key:pe.teamManagementRoles,label:"Roles"}]},{key:pe.teams,label:"Members",icon:w.jsx(_N,{})},{key:pe.logs,label:"Logs",icon:w.jsx(tne,{})},{key:pe.accountManager,label:"Account manager",icon:w.jsx(SN,{})}],$fe={[pe.dashboard]:[Ye.oci],[pe.reports]:[Ye.oci],[pe.k8sView]:[Ye.oci],[pe.reports]:[Ye.oci],[pe.reports]:[Ye.oci],[pe.rightsizing]:[Ye.gcp,Ye.oci],[pe.waste]:[Ye.oci],[pe.cloudsitter]:[Ye.oci],[pe.spots]:[Ye.azure,Ye.oci],[pe.reservation]:[Ye.azure,Ye.oci],[pe.savings]:[Ye.oci],[pe.insightsSecurity]:[Ye.gcp,Ye.azure,Ye.oci],[pe.insightsPerformance]:[Ye.gcp,Ye.azure,Ye.oci]},Tfe=()=>{const e=en();return P.useMemo(()=>{const t=new Set([]),n=new Set([]);if(!e.is_owner&&!e.is_org_admin&&t.add(pe.myOrganizationSettings),!e.new_teams_opt_in||!e.is_owner&&!e.is_org_admin){const r=Object.values(pe).filter(i=>i.includes(Ree));n.add("TeamManagement"),r.forEach(i=>t.add(i))}return{hiddenRoutes:t,hiddenCategories:n}},[e])},sE=["Cloudview","Cloudcosts","Cloudguard","TeamManagement"],Pfe=({isMenuCollapsed:e})=>{const{environments:t,is_org_admin:n,is_owner:r}=en(),{theme:i}=ti(),{hiddenCategories:a,hiddenRoutes:o}=Tfe(),s=Ot(k=>k.aws.entities.environments.byId,Lt),l=Afe,[c,u]=P.useState(sE),f=P.useRef(sE);P.useEffect(()=>{e?f.current=c:u(f.current)},[e]);const d=P.useCallback(k=>{const $=$fe[k];return $?t.length?!(t!=null&&t.some(T=>{var M;return!$.includes((M=s[T])==null?void 0:M.provider)})):!1:o.size?o.has(k):!1},[t,s,o]),h=P.useCallback(k=>{const $=k?d(String(k.key)):!1;return{...k,disabled:$}},[d]),p=P.useMemo(()=>l.filter(T=>
12!a.has(String(T==null?void 0:T.key))&&!o.has(String(T==null?void 0:T.key))).map(T=>{if(T){if(T.type==="submenu"&&T.children){const M=T.children.map(h);return{...T,children:M,popupClassName:"sidebarMenuPopup"}}return h(T)}return T}).map(T=>({...T,className:R1.submenu})),[l,h,a]),g=xi(),v=P.useCallback(()=>{const k=T=>vS.has(T)&&g.pathname.includes(T),$=p.flatMap(T=>(T==null?void 0:T.type)==="submenu"?T.children:[T]).find(T=>{var M;return k(String(T==null?void 0:T.key))||(T==null?void 0:T.type)==="submenu"&&((M=T==null?void 0:T.children)==null?void 0:M.some(R=>k(String(R==null?void 0:R.key))))});return String($==null?void 0:$.key)||pe.dashboard},[g,p]),[y,x]=P.useState(v);P.useEffect(()=>{x(v())},[v]);const C=ni(),_=k=>{x(k.key),vS.has(k.key)&&C(k.key)},S=P.useMemo(()=>[y],[y]),O=k=>{u(k)},E=P.useMemo(()=>e?p.map(k=>(k==null?void 0:k.type)==="submenu"&&(k!=null&&k.children)&&k.children.some(T=>String(T==null?void 0:T.key)===y)?{...k,className:`${R1.submenu} ${R1.submenuSelected}`}:k):p,[p,e,y]);return w.jsx(ON,{theme:i===ca.dark?"dark":"light",onClick:_,style:{overflow:"auto"},openKeys:e?void 0:c,onOpenChange:O,selectedKeys:S,mode:"inline",items:E,className:R1.menu})},Mfe=P.memo(Pfe),Nfe=()=>{const{theme:e}=ti(),{toggleAssistantShown:t}=Px(),n=P.useMemo(()=>[{key:"sub1",icon:w.jsx(nne,{}),label:"Help & Support",popupClassName:"sidebarMenuPopup",children:[{key:"1-1",label:"Documentation",onClick:()=>{window.open("https://uniskai-help.profisealabs.com/en/","_blank")}},{key:"1-2",label:"Chat Support",onClick:t},{key:"1-3",label:"Email Support",onClick:()=>{window.open("mailto:[email protected]","_blank")}}]}],[t]);return w.jsx(ON,{mode:"vertical",items:n,className:R1.menu,theme:e===ca.dark?"dark":"light"})},Ife=P.memo(Nfe),lE=e=>P.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M8.36238 11.5347C8.32454 11.4495 8.29757 11.375 8.27921 11.3117C8.40501 11.2932 8.50454 11.2297 8.6015 11.1526C8.68305 11.0877 8.8441 10.9593 8.99998 10.8332C9.15585 10.9593 9.31691 11.0877 9.39846 11.1526C9.49524 11.2295 9.59443 11.293 9.71997 11.3116C9.7016 11.3748 9.67462 11.4494 9.63675 11.5346C9.55428 11.7203 9.43725 11.9191 9.30736 12.1031C9.20092 12.254 9.09301 12.3848 8.99934 12.4832C8.90574 12.3848 8.79794 12.254 8.69159 12.1033C8.56178 11.9192 8.4448 11.7205 8.36238 11.5347Z",fill:"white"}),P.createElement("path",{d:"M7.30368 10.7056C7.38167 10.5967 7.45952 10.488 7.5638 10.4009C7.54476 10.3105 7.52314 10.2168 7.49876 10.1209C7.29987 10.2984 7.03753 10.4062 6.75 10.4062C6.12868 10.4062 5.625 9.90257 5.625 9.28125C5.625 8.75374 5.98806 8.31103 6.47794 8.18937C6.2313 7.98605 5.94871 7.875 5.62215 7.875C5.51512 7.875 5.36914 7.93079 5.23281 8.24159C5.09591 8.55368 5.03119 9.01517 5.0771 9.51059C5.12287 10.0044 5.27252 10.4659 5.49692 10.7874C5.71254 11.0962 5.97267 11.25 6.28939 11.25C6.63841 11.25 6.85501 11.1519 7.00378 11.0421C7.12879 10.9498 7.21632 10.8276 7.30368 10.7056Z",fill:"white"}),P.createElement("path",{d:"M10.5012 10.1209C10.4768 10.2168 10.4552 10.3105 10.4362 10.4009C10.5404 10.488 10.6183 10.5967 10.6963 10.7056C10.7836 10.8276 10.8712 10.9498 10.9962 11.0421C11.145 11.1519 11.3616 11.25 11.7106 11.25C12.0273 11.25 12.2874 11.0962 12.503 10.7874C12.7274 10.466 12.8771 10.0044 12.9228 9.51059C12.9688 9.01517 12.904 8.55368 12.7671 8.24159C12.6308 7.93079 12.4848 7.875 12.3778 7.875C12.0512 7.875 11.7687 7.98604 11.522 8.18936C12.0119 8.31101 12.375 8.75373 12.375 9.28125C12.375 9.90257 11.8713 10.4062 11.25 10.4062C10.9624 10.4062 10.7001 10.2984 10.5012 10.1209Z",fill:"white"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.40436 2.00998C7.57881 1.79507 7.82939 1.6875 8.113 1.6875H9.88702C10.1706 1.6875 10.4212 1.79507 10.5956 2.00997C10.7314 2.17722 10.7868 2.37475 10.8126 2.46681L10.8146 2.47406C10.8174 2.48411 10.8201 2.49417 10.8229 2.50424C10.8306 2.53232 10.8383 2.56042 10.8468 2.58827C11.9687 2.92432 13.0163 3.37682 13.842 4.09312C14.6581 4.80113 15.2292 5.7424 15.4663 7.00412C15.5539 7.04779 15.6564 7.12334 15.7336 7.22932C15.8333 7.36627 15.8909 7.53355 15.943 7.69315C16.0002 7.86862 16.0597 8.0889 16.1137 8.33795C16.2214 8.83474 16.3125 9.47132 16.3125 10.125C16.3125 10.5656 16.2711 11.0376 16.2117 11.4478C16.154 11.8469 16.0733 12.2299 15.9803 12.4754C15.7845 12.9927 15.3159 13.2121 14.8119 13.3289C14.4143 13.4213 14.3106 13.4587 14.2455 13.5495C13.0486 15.2197 11.1499 16.3125 9.00009 16.3125C6.85027 16.3125 4.9516 15.2197 3.75471 13.5495C3.68957 13.4586 3.58576 13.4213 3.18781 13.3289C2.68354 13.2121 2.21472 12.9925 2.01901 12.4748C1.9262 12.2293 1.84561 11.8464 1.78798 11.4473C1.72875 11.0373 1.68745 10.5653 1.6875 10.1249C1.68758 9.47171 1.77849 8.83552 1.88594 8.33895C1.9398 8.09001 1.99919 7.86981 2.05632 7.69436C2.10826 7.53483 2.16576 7.36763 2.26525 7.23066C2.34273 7.12399 2.44597 7.04804 2.53392 7.0043C2.77107 5.74264 3.3422 4.80135 4.1583 4.09328C4.9839 3.37697 6.03136 2.9244 7.15321 2.58833C7.16168 2.56046 7.16938 2.53236 7.17709 2.50427C7.17985 2.4942 7.18261 2.48414 7.18541 2.47408L7.18744 2.46683C7.21324 2.37477 7.26859 2.17723 7.40436 2.00998ZM5.62215 6.75C4.89509 6.75 4.43635 7.25671 4.20257 7.78966C3.96936 8.32132 3.89855 8.98483 3.95691 9.61441C4.01541 10.2456 4.20983 10.9091 4.57449 11.4314C4.94793 11.9663 5.52186 12.375 6.28939 12.375C6.73133 12.375 7.09553 12.2765 7.39462 12.1205C7.50369 12.3426 7.63606 12.5586 7.77225 12.7517C7.93425 12.9814 8.11233 13.1938 8.28052 13.3555C8.47588 13.5433 8.71542 13.7242 8.99927 13.7242C9.2831 13.7242 9.52265 13.5434 9.71804 13.3556C9.88628 13.1939 10.0644 12.9815 10.2265 12.7518C10.3629 12.5586 10.4954 12.3424 10.6046 12.1201C10.9038 12.2764 11.2683 12.375 11.7106 12.375C12.4781 12.375 13.052 11.9663 13.4255 11.4314C13.7901 10.909 13.9845 10.2456 14.043 9.61441C14.1014 8.98483 14.0306 8.32132 13.7974 7.78966C13.5636 7.25671 13.1049 6.75 12.3778 6.75C11.1874 6.75 10.4312 7.54002 9.98465 8.34645C9.73043 8.8055 9.55321 9.30653 9.43232 9.76122C9.1623 9.62304 8.83766 9.62304 8.56764 9.76122C8.44674 9.30653 8.26952 8.80549 8.0153 8.34645C7.56872 7.54002 6.81256 6.75 5.62215 6.75Z",fill:"white"})),Lfe="collapsedButton_zc7zT",Rfe="expandedButton_5sD0A",cE={collapsedButton:Lfe,expandedButton:Rfe},jfe=({isCollapsed:e})=>{const{toggleAssistantShown:t}=Px(),n=en(),r=n.plan===ka.bronze,i=!(n!=null&&n.id)||r,a=r?"Upgrade to Optimize or Operate plan to use AI Assistant":"Uniskai AI Assistant",s={background:`linear-gradient(90deg, ${yS.light.colorsBaseGeekblue6} 0%, ${yS.light.colorsBaseBlue6}
12 100%)`,...i&&{opacity:.4}};return e?w.jsx(Wo,{title:a,placement:"right",children:w.jsx(Gr,{icon:w.jsx(lE,{}),shape:"circle",className:cE.collapsedButton,style:s,onClick:t,disabled:i})}):w.jsx(Wo,{title:r?a:void 0,placement:"right",children:w.jsx(Gr,{iconPosition:"end",className:cE.expandedButton,style:s,size:"large",onClick:t,disabled:i,children:w.jsxs(pn,{gap:5,align:"center",justify:"center",style:{overflow:"hidden"},children:[w.jsx(lE,{})," ",w.jsx(Pi.Text,{style:{color:"white"},children:"Uniskai AI Assistant"})]})})})},Dfe=P.memo(jfe),Ffe="wrapper_Grfo-",Bfe="icon_iJzb1",zfe="text_ag5rO",Vfe="textCopied_vwcXV",a5={wrapper:Ffe,icon:Bfe,text:zfe,textCopied:Vfe},Wfe=e=>P.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"#4A5765",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12.6666 14H5.33325V4.66669H12.6666V14ZM12.6666 3.33335H5.33325C4.97963 3.33335 4.64049 3.47383 4.39044 3.72388C4.14039 3.97393 3.99992 4.31306 3.99992 4.66669V14C3.99992 14.3536 4.14039 14.6928 4.39044 14.9428C4.64049 15.1929 4.97963 15.3334 5.33325 15.3334H12.6666C13.0202 15.3334 13.3593 15.1929 13.6094 14.9428C13.8594 14.6928 13.9999 14.3536 13.9999 14V4.66669C13.9999 4.31306 13.8594 3.97393 13.6094 3.72388C13.3593 3.47383 13.0202 3.33335 12.6666 3.33335ZM10.6666 0.666687H2.66659C2.31296 0.666687 1.97382 0.807163 1.72378 1.05721C1.47373 1.30726 1.33325 1.6464 1.33325 2.00002V11.3334H2.66659V2.00002H10.6666V0.666687Z",fill:"inherit"})),NL=({value:e,text:t,color:n,className:r,style:i,confirmTooltip:a,confirmTooltipText:o})=>{const[s,l]=P.useState(!1),[c,u]=P.useState(!1),f=()=>{navigator.clipboard.writeText(e.toString()),l(!0),setTimeout(()=>l(!1),a?1500:1e3)},d=w.jsxs("div",{className:qe(a5.wrapper,r),style:i,onClick:s?void 0:h=>{h.stopPropagation(),f()},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[w.jsx(Wfe,{className:qe(a5.icon),style:{fill:s||c?"#23A2FF":n}}),t&&w.jsx("div",{style:{color:s||c?"#23A2FF":n},className:qe(a5.text,s&&a5.textCopied),children:s?"Copied":"Copy"})]});return a?w.jsx(Wo,{title:o||"Copied!",open:s,children:d}):d},uE="Connect to Uniskai MCP mcp.profisealabs.com/mcp",Hfe=({open:e,onClose:t})=>{const{variables:n}=ti();return w.jsxs(w3,{title:"Prompt for your agent",open:e,onCancel:t,footer:null,children:[w.jsx(Pi.Paragraph,{type:"secondary",children:"Copy this prompt and paste it into your AI agent to connect it to Uniskai MCP."}),w.jsx(CN,{readOnly:!0,value:uE,onFocus:r=>r.target.select(),suffix:w.jsx(NL,{value:uE,color:n["--color-icons-light"],confirmTooltip:!0})})]})},Gfe=e=>P.createElement("svg",{width:180,height:180,viewBox:"0 0 180 180",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M23.5996 85.2532L86.2021 22.6507C94.8457 14.0071 108.86 14.0071 117.503 22.6507C126.147 31.2942 126.147 45.3083 117.503 53.9519L70.2254 101.23",stroke:"currentColor",strokeWidth:11.0667,strokeLinecap:"round"}),P.createElement("path",{d:"M70.8789 100.578L117.504 53.952C126.148 45.3083 140.163 45.3083 148.806 53.952L149.132 54.278C157.776 62.9216 157.776 76.9357 149.132 85.5792L92.5139 142.198C89.6327 145.079 89.6327 149.75 92.5139 152.631L104.14 164.257",stroke:"currentColor",strokeWidth:11.0667,strokeLinecap:"round"}),P.createElement("path",{d:"M101.853 38.3013L55.553 84.6011C46.9094 93.2447 46.9094 107.258 55.553 115.902C64.1966 124.546 78.2106 124.546 86.8543 115.902L133.154 69.6025",stroke:"currentColor",strokeWidth:11.0667,strokeLinecap:"round"})),Ufe=({isCollapsed:e})=>{const[t,n]=P.useState(!1),r=e?18:20;return w.jsxs(w.Fragment,{children:[w.jsx(Wo,{title:"Connect Uniskai MCP",placement:"right",children:w.jsx(Gr,{icon:w.jsx(Gfe,{width:r,height:r}),shape:"circle",size:e?"middle":"large",onClick:()=>n(!0)})}),w.jsx(Hfe,{open:t,onClose:()=>n(!1)})]})},Yfe=P.memo(Ufe),Xfe="messageText_48bCf",qfe="triggerCollapsed_kTajm",Zfe="alertCollapsed_emvq3",a9={messageText:Xfe,triggerCollapsed:qfe,alertCollapsed:Zfe},Kfe=({isMenuCollapsed:e=!1})=>{const{token:t}=EN.useToken(),n=en();let{isSpecialOfferExist:r,paymentPlan:i}=FN();const a=Tne(n.trial_end||""),o=$r(n.created),s=n?TL(n):null,c=$r(n.trial_end).diff(o,"days")||1,{handleUpgrade:u}=BN(),{title:f,tooltipTitle:d,onButtonClick:h}=P.useMemo(()=>{let g="",v="",y=null;const x=n.is_owner&&n.environments.length&&!n.reseller;switch(s){case wg.trialAlmostExpired:g=`You are in a ${c}-day${c===1?"":"s"} trial period`,v=r&&i?w.jsxs("span",{children:[w.jsxs("b",{children:["You are currently in a ",c,"-day",c===1?"":"s"," tri
12al period."]}),w.jsx("br",{}),"To maintain access to all features,",n.is_owner?w.jsxs(w.Fragment,{children:[w.jsx("a",{href:"mailto:[email protected]",children:" contact sales"}),w.jsxs("span",{children:[" ","or upgrade your plan to ",xS[i]," with your private offer. Upgrade your plan by ",a,"."]})]}):w.jsxs("span",{children:["contact your organization’s owner to upgrade your plan by ",a]})]}):w.jsxs("span",{children:[w.jsxs("b",{children:["You are currently in a ",c,"-day",c===1?"":"s"," trial period."]}),w.jsx("br",{}),"To maintain access to all features after the trial period ends",!n.is_owner&&", contact your organization’s owner to"," upgrade your plan by"," ",a,"."]}),x&&(y=u);break;case wg.trialExpired:g="The trial period has expired",v=r&&i?w.jsxs("div",{children:[w.jsx("b",{children:"The trial period has expired"}),w.jsx("br",{}),"To maintain access to all features,",n.is_owner?w.jsxs("span",{children:[" ","upgrade your plan to ",xS[i]," with your private offer."]}):w.jsx("span",{children:"contact your organization’s owner to upgrade your plan"})]}):w.jsxs("div",{children:[w.jsx("b",{children:"The trial period has expired"}),w.jsx("br",{}),"To maintain access to all features,"," ",w.jsx("a",{href:"mailto:[email protected]",children:"contact sales"})," or"," ",n.is_owner?"upgrade your plan":"contact your organization’s owner"]}),x&&(y=u);break;case wg.onTrialWithPaidPlan:g=`You are on trial until ${$r(n.trial_end).format("MMM DD, YYYY")}`,v=w.jsxs("div",{children:[w.jsxs("b",{children:["You are on trial until ",$r(n.trial_end).format("MMM DD, YYYY")]}),w.jsx("br",{}),"After that date, you will be billed according to the plan you selected."]});break}return{title:g,tooltipTitle:v,onButtonClick:y}},[s,n,i,a,u]),p=r?"Learn more":"Upgrade now";return f&&d?w.jsx(G8,{title:d,trigger:"hover",placement:"rightTop",cancelButtonProps:{style:{display:"none"}},okText:p,okButtonProps:{style:{display:h?"block":"none",marginLeft:"auto"}},onConfirm:h||void 0,styles:{root:{width:293}},icon:!1,children:w.jsx("div",{className:qe(e&&a9.triggerCollapsed),children:w.jsx(rne,{message:w.jsx("div",{className:a9.messageText,children:f}),type:"warning",icon:w.jsx(Y8,{style:{fontSize:14,color:t.colorWarning}}),showIcon:!0,className:qe(e&&a9.alertCollapsed),style:{borderRadius:"0",border:"none"},"aria-label":e?f:void 0})})}):null},Jfe="skeletonWrapper_Hvpfv",Qfe="sidebar_ceYc3",fE={skeletonWrapper:Jfe,sidebar:Qfe},{Sider:e0e}=ih,t0e=80,n0e=({homeRoute:e,isCollapsed:t})=>{const{organizations:n,isOrganizationsLoaded:r}=Ot(i=>({organizations:i.organizations.items,isOrganizationsLoaded:i.organizations.loadingState}),Lt);return w.jsx(e0e,{trigger:null,collapsible:!0,collapsed:t,collapsedWidth:t0e,className:fE.sidebar,width:"var(--sidebar-width)",children:w.jsxs(pn,{vertical:!0,style:{height:"100%"},gap:10,children:[w.jsx(vfe,{route:e,isSidebar:!0,isSidebarCollapsed:t}),r===Zn.isLoaded?n.length>0?w.jsx(Que,{isMenuCollapsed:t}):!t&&w.jsx(Gue,{}):w.jsxs(pn,{gap:8,className:fE.skeletonWrapper,justify:t?"center":void 0,children:[w.jsx(kN.Avatar,{active:!0}),!t&&w.jsx(bp,{value:1,options:[{value:1,label:"Loading..."}],loading:!0,disabled:!0,style:{flex:1}})]}),w.jsx("div",{style:{flex:1,overflow:"auto"},children:w.jsx(Mfe,{isMenuCollapsed:t})}),w.jsxs("div",{children:[w.jsx(U8,{style:{margin:0,height:"1px"}}),w.jsx(Kfe,{isMenuCollapsed:t})]}),w.jsx(ffe,{isMenuCollapsed:t}),w.jsxs(pn,{align:"center",justify:"center",gap:8,vertical:t,style:{margin:t?0:"0 16px"},children:[w.jsx(Dfe,{isCollapsed:t}),w.jsx(Yfe,{isCollapsed:t})]}),w.jsx(Ife,{})]})})},r0e=P.memo(n0e),IL=()=>{const{environments:e,allEnvs:t,cloudlistViewMode:n}=Ot(s=>({environments:s.aws.entities.environments,allEnvs:s.aws.entities.environments.allIds,cloudlistViewMode:s.cloudlist.viewMode}),Lt),r=xi(),i=(s,l)=>t.filter(c=>{if(s.byId[c]){const{provider:u}=s.byId[c];return u===Ye[l]}}),{supportedEnvs:a,notSupportedEnvs:o}=P.useMemo(()=>{const s=r.pathname.includes(jee["AI FinOps Summary"]),l=r.pathname.includes(pe.cloudlist)&&n!=="tree",c=s||l,u=r.pathname.includes(pe.cloudlist)&&n==="tree",f=!c&&eN.some(C=>r.pathname.includes(C)),d=!c&&tN.some(C=>r.pathname.includes(C)),h=!u&&(c||nN.some(C=>r.pathname.includes(C))),p=!c&&rN.some(C=>r.pathname.includes(C)),v={gcp:f,aws:!0,azure:d,oci:h,coralogix:p},y=[],x=[];return ha(Ye).forEach(C=>{const _=Dee.some(E=>r.pathname.includes(E)),S=v[C]||_,O=i(e,C);S?y.push(...O):x.push(...O)}),{supportedEnvs:y,notSupportedEnvs:x}},[r.pathname,e,n]);return{supportedEnvs:a,notSupportedEnvs:o}},i0e=(e,t,n)=>{const r=[...new Set(e.map(p=>
12n.byId[p].provider.toLocaleUpperCase()))],i=window.location.pathname,a=eN.some(p=>i.includes(p)),o=tN.some(p=>i.includes(p)),s=nN.some(p=>i.includes(p)),l=rN.some(p=>i.includes(p)),u={gcp:a,aws:!0,azure:o,oci:s,coralogix:l},f=ha(u).filter(p=>!u[p]).map(p=>p.toLocaleUpperCase()),d=ha(Ye).filter(p=>!f.includes(p.toLocaleUpperCase())).map(p=>p.toLocaleUpperCase());return{title:"Coming soon...",description:`Unfortunately, this feature does not support ${r.join(", ")} yet. You can see ${d.join(", ")} accounts only.`}},Lx=e=>{const t=Zt(),n=Ic(),r=e||n,[i,a]=P.useState(!1),o=Ot(u=>u.team.envs,Lt);P.useEffect(()=>{i||(async()=>{const u=r.filter(f=>f&&!o[f]);u.length&&(a(!0),await t(iN(u)),a(!1))})()},[r,o]);const s=P.useMemo(()=>Object.entries(o).reduce((u,[f,d])=>(d&&(u[+f]=d.reduce((h,p)=>(h[p.id]=p,h),{})),u),{}),[o]),l=P.useMemo(()=>Object.entries(o).reduce((u,[f,d])=>(d&&(u[+f]=d.find(h=>h.self)),u),{}),[o]),c=P.useCallback((u,f)=>{var h;if(!f)return null;if(!o[u])return;const d=(h=s[u])==null?void 0:h[f];return o[u]&&!d?null:d},[s,o]);return{teams:o,loading:i,meInTeams:l,getTeamMemberData:c}},a0e=({envIds:e,isShowAccounts:t})=>{const{permissions:n,environments:r,teamEnvsData:i}=Ot(C=>({permissions:C.app.permissions,environments:C.aws.entities.environments,teamEnvsData:C.team.envs}),Lt),a=Ic(),{environments:o}=en();Lx(o);const s=P.useMemo(()=>e||a,[e,a]),[l,c]=P.useState(new Set),[u,f]=P.useState(new Set),{getPermissions:d}=vp(bS),h=P.useMemo(()=>d({requiredPermissions:bS}),[d]),{noMissingPermissions:p,requestPermissionsCallback:g}=Z8(h);P.useEffect(()=>(s.forEach(C=>{var T,M;const _=i[C],S=$N(_),O=(T=n.envs[C])==null?void 0:T.data,E=(M=r.byId[C])==null?void 0:M.provider,k=E?q4[E]:[],$=E?Bee[E]:[];O&&S&&!(S!=null&&S.is_admin)&&ha(O).forEach(R=>{if(!k.includes(R))return;const N=O[R];N.view||(f(F=>new Set([...F,C])),c(F=>new Set([...F,"view"])));const D=E===Ye.oci&&R===zee.architecture;Fee(R)&&$.includes(R)&&!N.edit&&!D&&(f(F=>new Set([...F,C])),c(F=>new Set([...F,"edit"])))})}),()=>{c(new Set),f(new Set)}),[s,n,i,r]);const v=P.useMemo(()=>Array.from(l).sort((C,_)=>C==="view"?-1:_==="view"?1:0),[l]),y=P.useMemo(()=>Array.from(u).map(C=>{var _;return(_=r.byId[C])==null?void 0:_.name}),[u,r]);return{message:P.useMemo(()=>v.length?`${p?"Requested ":"You don’t have some permissions to "}${v.join("/")}${t?` some features on this page for account${(y==null?void 0:y.length)>1?"s":""} ${y==null?void 0:y.join(", ")}`:""}.`:"",[v,y,t]),noMissingPermissions:p,requestPermissionsCallback:g}},o0e=({marginRight:e,selectedEnvIds:t,isShowAccounts:n})=>{const{message:r,noMissingPermissions:i,requestPermissionsCallback:a}=a0e({envIds:t,isShowAccounts:n}),{token:o}=EN.useToken(),s=ni(),l=P.useCallback(()=>{i?s(pe.accountManager):a()},[i,a]),c=P.useMemo(()=>w.jsxs(pn,{vertical:!0,children:[w.jsx(Pi.Title,{style:{marginBottom:4},level:5,children:"Missing Permissions"}),w.jsx(Pi.Text,{children:r})]}),[r]);return r&&w.jsx(G8,{trigger:"hover",okText:i?"You can add own credentials ":"Request Access",title:c,styles:{root:{width:320}},placement:"rightTop",onConfirm:l,showCancel:!1,children:w.jsx(Y8,{style:{fontSize:14,color:o.colorWarning,marginRight:e}})})},dE=({envIds:e,environments:t})=>{const n={};return e.forEach(r=>{const i=t.byId[r];if(i){const a=i.organization_management_account_id||i.account_id;n[a]?n[a].push(r):n[a]=[r]}}),n},s0e=e=>Object.keys(e).sort((t,n)=>e[n].length-e[t].length)[0],l0e=(e,t)=>Object.keys(t).find(n=>t[n].includes(e)),c0e=(e,t)=>Vee(e.sort((n,r)=>n-r),t.sort((n,r)=>n-r)),u0e=({environments:e,organization:t,selectedEnvIds:n,selectEnvs:r,setDisabledEnvIds:i,disabledEnvIds:a})=>{const o=xi();P.useEffect(()=>{if(o.pathname.includes(pe.reservationDetailed)||o.pathname.includes(pe.reservationInventory)){const l=dE({envIds:t.environments,environments:e}),c=dE({envIds:n||[],environments:e});if((n==null?void 0:n.length)===0)i([]);else{const u=Object.keys(c).length===1;let f=[];if(u){const d=n?l0e(n[0],l):void 0;if(d)for(const h in l)d!==h&&f.push(...l[h])}else{const d=s0e(c);if(d){const h=c[d];c0e(h,n||[])||r(h),f=t.environments.filter(p=>!h.includes(p))}}i(f)}}},[o.pathname,n,e,t.environments]),P.useEffect(()=>{!(o.pathname.includes(pe.reservationDetailed)||o.pathname.includes(pe.reservationInventory))&&a.length!==0&&i([])},[o.pathname,a])},LL=()=>{const e=P.useCallback((n,r,i,a)=>w.jsxs(pn,{vertical:!0,gap:5,style:{paddingTop:"8px"},children:[w.jsxs(pn,{gap:10,style:{padding:"0 10px"},children:[w.jsx(Gr,{type:"link",onPointerDown:o=>{o.stopPropagation(),o.preventDefault(),n()},size:"small",style:{paddingLeft:0},children:"Select All"}),w.jsx(Gr,{type:"text",size:"small",onPointerDown:o=>{o.stopPropagation(),o.preventDefault(),r()},disabled:i<1,children:"Reset"})]}),a&&a]}),[]);return{getPopupRender:P.useCallback(({onReset:n,onSelectAll:r,selectedItemsLength:i})=>a=>e(r,n,i,a),[]),popupContent:e}}
12,o5={loading:"Loading...",refreshing:"Refreshing...",someRefreshing:"Some accounts are refreshing..."},S6=290,f0e=({label:e,disabled:t,danger:n,envId:r})=>{const i=P.useMemo(()=>[r],[r]);return w.jsxs(pn,{align:"center",gap:8,style:{width:S6-90},children:[w.jsx(Pi.Text,{disabled:n||t,style:{flex:"0 1 180px",minWidth:0},children:e}),n&&w.jsx(Wo,{title:"This environment is broken",placement:"right",children:w.jsx(Y8,{style:{color:"var(--colorsBrandErrorColorError)",marginRight:18,flexShrink:0}})}),w.jsx(o0e,{selectedEnvIds:i,marginRight:18})]})},d0e=()=>{const e=Zt(),t=T3(),{getCloudLogoByProvider:n}=zN(),r=en(),{applyIncognitoMask:i}=Ix(),{selectedEnvIds:a,environments:o,environmentRefreshing:s,refreshingEnvs:l,cabinetEnvSelectorDisabled:c}=Ot(Y=>({selectedEnvIds:Y.aws.selectedEnvIds,environments:Y.aws.entities.environments,environmentRefreshing:Y.aws.environmentRefreshing,refreshingEnvs:Y.aws.refreshingEnvs,cabinetEnvSelectorDisabled:Y.app.cabinetEnvSelectorDisabled}),Lt),u=xi(),{isMultiAccountMode:f,hideEnvsSelector:d,hideRefreshButton:h}=P.useMemo(()=>({isMultiAccountMode:Hee(u.pathname+u.search),hideEnvsSelector:aN(u.pathname),hideRefreshButton:Wee(u.pathname)}),[u.pathname,u.search]);P.useEffect(()=>{if(!f&&a&&(a==null?void 0:a.length)>1){const Y=a[0];$(Y||r.environments[0]||[])}},[f,a]);const{notSupportedEnvs:p}=IL(),[g,v]=P.useState([]);P.useEffect(()=>{if(a){const Y=a.some(Q=>p.includes(Q)),K=a.filter(Q=>p.includes(Q));if(K.length){const Q=i0e(K,p,o);e(Z4.setEnvSelectorMessage(Q))}if(Y&&r){const Q=r.environments.filter(oe=>!p.includes(oe)),ne=Q.filter(oe=>a.includes(oe));ne.length!==0?$(ne):$(Q[0]||[])}}},[r,a,p]);const{onRefresh:y,envRefreshIsRequesting:x,isDisableButton:C}=UN();P.useEffect(()=>{k()},[a,o,l]);const[_,S]=P.useState(o5.loading),[O,E]=P.useState(Date.now());P.useEffect(()=>{let Y=!0;const K=setInterval(()=>{Y&&k()},1e3*60);return()=>{Y=!1,clearTimeout(K)}},[]);const k=()=>{E(Date.now())};P.useEffect(()=>{if(a&&a.length){const Y=O,Q=Object.keys(l.envs).map(ne=>+ne).filter(ne=>!l.envs[ne]);if(x)S(o5.loading);else if(a.every(ne=>Q.includes(ne)))S(o5.refreshing);else if(f&&a.length>1&&a.some(ne=>Q.includes(ne)))S(o5.someRefreshing);else if(o.byId[a[0]]){const ne=o.byId[a[0]].last_updated;let oe=window.newDate(ne);if(f&&a.length>1){let fe=null;a.forEach(le=>{const be=o.byId[le],Ce=window.newDate(be.last_updated);fe?fe>Ce&&(fe=Ce):fe=Ce}),fe&&(oe=fe)}const ae=oe.getTime(),ce=(f&&a.length>1?"The oldest account was updated":"Updated")+" "+Gee(ae,Y);S(ce)}}},[a,s,l,O,x,f]);const $=async Y=>{Array.isArray(Y)?(t&&console.log("CabinetEnvSelector",Y),await e(V8(Y))):(t&&console.log("CabinetEnvSelector",[Y]),await e(oN(Y)))};u0e({environments:o,organization:r,selectedEnvIds:a,selectEnvs:$,setDisabledEnvIds:v,disabledEnvIds:g});const T=P.useMemo(()=>[...g,...p],[g,p]),M=P.useMemo(()=>new Set(p.filter(Y=>{var K;return((K=o.byId[Y])==null?void 0:K.provider)===Ye.coralogix})),[p,o]),[R,N]=P.useState(""),D=P.useMemo(()=>{const Y=new Set(T);if(o.loadingState===Zn.isLoading)return[];const K=ne=>{const oe=o.byId[ne],ae=n(oe==null?void 0:oe.provider),ce=(oe==null?void 0:oe.broken)||Y.has(ne),fe=w.jsxs(pn,{align:"center",gap:4,style:{opacity:ce?.4:1,minWidth:0},children:[w.jsx("img",{src:ae,alt:"cloud-logo",width:16,height:16,style:{flexShrink:0}}),w.jsx(Pi.Text,{ellipsis:!0,style:{minWidth:0},children:i((oe==null?void 0:oe.name)||"")})]});return{key:ne,value:ne,envName:(oe==null?void 0:oe.name)||"",disabled:ce,label:fe,title:w.jsx(f0e,{label:fe,disabled:ce,danger:oe==null?void 0:oe.broken,envId:ne})}},Q=r.environments.filter(ne=>!M.has(ne));return Uee(Q,o).map(ne=>{const oe=ne.envIds.map(K).toSorted((ae,ce)=>Vg({a:ae.disabled,b:ce.disabled,sequence:[!1,!0]}));return{key:`provider:${ne.provider}`,value:`provider:${ne.provider}`,selectable:!1,disabled:oe.every(ae=>ae.disabled),title:w.jsxs(pn,{align:"center",gap:4,children:[w.jsx("span",{children:Yee[ne.provider]}),w.jsxs(Pi.Text,{type:"secondary",style:{fontWeight:400},children:["(",ne.envIds.length,")"]})]}),children:oe}})},[T,M,o,r.environments,i,n]),F=P.useMemo(()=>D.filter(Y=>!Y.disabled).map(Y=>Y.key),[D]),V=P.useMemo(()=>
12{if(D.length===0)return[];if(a){if(f)return a;{const Y=a[0];return Y?[Y]:[]}}},[f,a,D]),z=P.useCallback(()=>{const Q=D.flatMap(ne=>ne.children??[]).filter(ne=>ne.envName.toLowerCase().includes(R.toLowerCase())&&!ne.disabled).map(ne=>ne.value);if(N(""),Q.length){const ne=a?[...new Set([...a,...Q])]:Q;$(ne)}},[R,D,a]),{getPopupRender:B}=LL(),G=P.useMemo(()=>f?B({onSelectAll:z,onReset:()=>{N(""),$([])},selectedItemsLength:a?a.length:0}):void 0,[f,a==null?void 0:a.length,z]);return d?w.jsx("span",{}):w.jsxs(w.Fragment,{children:[w.jsx(ES,{treeData:D,treeCheckable:f,multiple:f,showCheckedStrategy:ES.SHOW_CHILD,treeDefaultExpandedKeys:F,style:{width:S6},popupMatchSelectWidth:!1,styles:{popup:{root:{zIndex:1052,width:S6}}},treeNodeLabelProp:"label",maxTagCount:"responsive",placeholder:"Please select",loading:o.loadingState===Zn.isLoading,onChange:Y=>$(Y),showSearch:!0,treeNodeFilterProp:"envName",onSearch:N,value:V,disabled:c,popupRender:G}),!h&&(a==null?void 0:a.length)!==0&&w.jsxs(w.Fragment,{children:[w.jsx(Gr,{loading:C,disabled:C,onClick:y,children:"Refresh now"}),w.jsx(Pi.Text,{style:{fontSize:12},children:_})]})]})},h0e=P.memo(d0e),p0e=()=>{const e=Zt(),{id:t}=en(),[n,r]=P.useState(!0);P.useEffect(()=>{t&&(e(Xee()),r(!1))},[t]);const i=Ot(a=>a.budgets.budgets,Lt);return n?null:i};var To=(e=>(e.budget="budget-notification",e.requestPermission="team-member-permission-request",e.updatedPermission="team-member-updated-permission",e.transferOrganizationOwnership="organization-transfer-request",e.costsAnomalyDetected="costs-anomaly-detected",e.monthlyCostsAnomalyDetected="monthly-costs-anomaly-detected",e.organizationMemberPermissionRequest="organization-member-permission-request",e))(To||{});const g0e=55,m0e=0,v0e=8,y0e=3,x0e=3,b0e=e=>e.reduce((t,n)=>{let r=n.codename.split("_")[0];return t[r]={view:`${r}_view`,edit:`${r}_edit`},t},{}),C0e=(e,t)=>{if(t===0)return 0;const r=(e-t)/t*100;return Math.max(0,r)},w0e=e=>e.length>g0e?e.substr(m0e,v0e)+" ... "+e.substr(e.length-x0e,y0e):e,_0e=(e,t)=>t.reduce((n,r)=>{const i=r.data;return i.type===To.budget?(e.length===0||e.some(a=>a.id===i.budget_id))&&n.push(r):n.push(r),n},[]),S0e=60*1e3,O0e=()=>{const e=Zt(),t=ff(n=>n.notifications.notificationsInitialData,Lt);return P.useEffect(()=>{e(CS());const n=setInterval(()=>e(CS()),S0e);return()=>clearInterval(n)},[]),{notificationsData:t}},E0e=e=>P.createElement("svg",{width:64,height:64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("mask",{id:"path-1-inside-1_8102_227427",fill:"white"},P.createElement("path",{d:"M55 47.9048V50.4286H10V47.9048L15 42.8571V27.7143C15 19.8905 20.075 13.0005 27.5 10.7795C27.5 10.5271 27.5 10.3 27.5 10.0476C27.5 8.70891 28.0268 7.42503 28.9645 6.47841C29.9021 5.5318 31.1739 5 32.5 5C33.8261 5 35.0979 5.5318 36.0355 6.47841C36.9732 7.42503 37.5 8.70891 37.5 10.0476C37.5 10.3 37.5 10.5271 37.5 10.7795C44.925 13.0005 50 19.8905 50 27.7143V42.8571L55 47.9048ZM37.5 52.9524C37.5 54.2911 36.9732 55.575 36.0355 56.5216C35.0979 57.4682 33.8261 58 32.5 58C31.1739 58 29.9021 57.4682 28.9645 56.5216C28.0268 55.575 27.5 54.2911 27.5 52.9524"})),P.createElement("path",{d:"M55 47.9048H57C57 47.3776 56.7919 46.8718 56.4209 46.4973L55 47.9048ZM55 50.4286V52.4286C56.1046 52.4286 57 51.5331 57 50.4286H55ZM10 50.4286H8C8 51.5331 8.89543 52.4286 10 52.4286V50.4286ZM10 47.9048L8.5791 46.4973C8.20812 46.8718 8 47.3776 8 47.9048H10ZM15 42.8571L16.4209 44.2646C16.7919 43.8901 17 43.3843 17 42.8571H15ZM27.5 10.7795L28.0731 12.6956C28.9199 12.4424 29.5 11.6633 29.5 10.7795H27.5ZM32.5 5V3V5ZM37.5 10.7795H35.5C35.5 11.6633 36.0801 12.4424 36.9269 12.6956L37.5 10.7795ZM50 42.8571H48C48 43.3843 48.2081 43.8901 48.5791 44.2646L50 42.8571ZM53 47.9048V50.4286H57V47.9048H53ZM55 48.4286H10V52.4286H55V48.4286ZM12 50.4286V47.9048H8V50.4286H12ZM11.4209 49.3123L16.4209 44.2646L13.5791 41.4496L8.5791 46.4973L11.4209 49.3123ZM17 42.8571V27.7143H13V42.8571H17ZM17 27.7143C17 20.7593 21.5092 14.659 28.0731 12.6956L26.9269 8.86341C18.6408 11.3419 13 19.0217 13 27.7143H17ZM29.5 10.7795C29.5 10.779 29.5 10.7785 29.5 10.778C29.5 10.7776 29.5 10.7771 29.5 10.7766C29.5 10.7761 29.5 10.7756 29.5 10.7751C29.5 10.7746 29.5 10.7741 29.5 10.7736C29.5 10.7731 29.5 10.7726 29.5 10.7721C29.5 10.7716 29.5 10.7712 29.5 10.7707C29.5 10.7702 29.5 10.7697 29.5 10.7692C29.5 10.7687 29.5 10.7682 29.5 10.7677C29.5 10.7672 29.5 10.7667 29.5 10.7662C29.5 10.7657 29.5 10.7653 29.5 10.7648C29.5 10.7643 29.5 10.7638 29.5 10.7633C29.5 10.7628 29.5 10.7623 29.5 10.7618C29.5 10.7613 29.5 10.7608 29.5 10.7603C29.5 10.7599 29.5 10.7594 29.5 10.7589C29.5 10.7584 29.5 10.7579 29.5 10.7574C29.5 10.7569 29.5 10.7564 29.5 10.7559C29.5 10.7554 29.5 10.755 29.5 10.7545C29.5 10.754 29.5 10.7535 29.5 10.753C29.5 10.7525 29.5 10.752 29.5 10.7515C29.5 10.751 29.5 10.7505 29.5 10.7501C29.5 10.7496 29.5 10.7491 29.5 10.7486C29.5 10.7481 29.5 10.7476 29.5 10.7471C29.5 10.7466 29.5 10.7461 29.5 10.7457C29.5 10.7452 29.5 10.7447 29.5 10.7442C29.5 10.7437 29.5 10.7432 29.5 10.7427C29.5 10.7422 29.5 10.7418 29.5 10.7413C29.5 10.7408 29.5 10.7403 29.5 10.7398C29.5 10.7393 29.5 10.7388 29.5 10.7383C29.5 10.7378 29.5 10.7374 29.5 10.7369C29.5 10.7364 29.5 10.7359 29.5 10.7354C29.5 10.7349 29.5 10.7344 29.5 10.7339C29.5 10.7335 29.5 10.733 29.5 10.7325C29.5 10.732 29.5 10.7315 29.5 10.731C29.5 10.7305 29.5 10.7301 29.5 10.7296C29.5 10.7291 29.5 10.7286 29.5 10.7281C29.5 10.7276 29.5 10.7271 29.5 10.7266C29.5 10.7262 29.5 10.7257 29.5 10.7252C29.5 10.7247 29.5 10.7242 29.5 10.7237C29.5 10.7232 29.5 10.7228 29.5 10.7223C29.5 10.7218 29.5 10.7213 29.5 10.7208C29.5 10.7203 29.5 10.7198 29.5 10.7194C29.5 10.7189 29.5 10.7184 29.5 10.7179C29.5 10.7174 29.5 10.7169 29.5 10.7164C29.5 10.716 29.5 10.7155 29.5 10.715C29.5 10.7145 29.5 10.714 29.5 10.7135C29.5 10.713 29.5 10.7126 29.5 10.7121C29.5 10.7116 29.5 10.7111 29.5 10.7106C29.5 10.7101 29.5 10.7096 29.5 10.7092C29.5 10.7087 29.5 10.7082 29.5 10.7077C29.5 10.7072 29.5 10.7067 29.5 10.7063C29.5 10.70
1258 29.5 10.7053 29.5 10.7048C29.5 10.7043 29.5 10.7038 29.5 10.7034C29.5 10.7029 29.5 10.7024 29.5 10.7019C29.5 10.7014 29.5 10.7009 29.5 10.7005C29.5 10.7 29.5 10.6995 29.5 10.699C29.5 10.6985 29.5 10.698 29.5 10.6976C29.5 10.6971 29.5 10.6966 29.5 10.6961C29.5 10.6956 29.5 10.6951 29.5 10.6947C29.5 10.6942 29.5 10.6937 29.5 10.6932C29.5 10.6927 29.5 10.6922 29.5 10.6918C29.5 10.6913 29.5 10.6908 29.5 10.6903C29.5 10.6898 29.5 10.6893 29.5 10.6889C29.5 10.6884 29.5 10.6879 29.5 10.6874C29.5 10.6869 29.5 10.6864 29.5 10.686C29.5 10.6855 29.5 10.685 29.5 10.6845C29.5 10.684 29.5 10.6836 29.5 10.6831C29.5 10.6826 29.5 10.6821 29.5 10.6816C29.5 10.6811 29.5 10.6807 29.5 10.6802C29.5 10.6797 29.5 10.6792 29.5 10.6787C29.5 10.6783 29.5 10.6778 29.5 10.6773C29.5 10.6768 29.5 10.6763 29.5 10.6759C29.5 10.6754 29.5 10.6749 29.5 10.6744C29.5 10.6739 29.5 10.6734 29.5 10.673C29.5 10.6725 29.5 10.672 29.5 10.6715C29.5 10.671 29.5 10.6706 29.5 10.6701C29.5 10.6696 29.5 10.6691 29.5 10.6686C29.5 10.6682 29.5 10.6677 29.5 10.6672C29.5 10.6667 29.5 10.6662 29.5 10.6658C29.5 10.6653 29.5 10.6648 29.5 10.6643C29.5 10.6638 29.5 10.6634 29.5 10.6629C29.5 10.6624 29.5 10.6619 29.5 10.6614C29.5 10.661 29.5 10.6605 29.5 10.66C29.5 10.6595 29.5 10.659 29.5 10.6586C29.5 10.6581 29.5 10.6576 29.5 10.6571C29.5 10.6566 29.5 10.6562 29.5 10.6557C29.5 10.6552 29.5 10.6547 29.5 10.6542C29.5 10.6538 29.5 10.6533 29.5 10.6528C29.5 10.6523 29.5 10.6518 29.5 10.6514C29.5 10.6509 29.5 10.6504 29.5 10.6499C29.5 10.6495 29.5 10.649 29.5 10.6485C29.5 10.648 29.5 10.6475 29.5 10.6471C29.5 10.6466 29.5 10.6461 29.5 10.6456C29.5 10.6451 29.5 10.6447 29.5 10.6442C29.5 10.6437 29.5 10.6432 29.5 10.6428C29.5 10.6423 29.5 10.6418 29.5 10.6413C29.5 10.6408 29.5 10.6404 29.5 10.6399C29.5 10.6394 29.5 10.6389 29.5 10.6385C29.5 10.638 29.5 10.6375 29.5 10.637C29.5 10.6365 29.5 10.6361 29.5 10.6356C29.5 10.6351 29.5 10.6346 29.5 10.6342C29.5 10.6337 29.5 10.6332 29.5 10.6327C29.5 10.6322 29.5 10.6318 29.5 10.6313C29.5 10.6308 29.5 10.6303 29.5 10.6299C29.5 10.6294 29.5 10.6289 29.5 10.6284C29.5 10.628 29.5 10.6275 29.5 10.627C29.5 10.6265 29.5 10.626 29.5 10.6256C29.5 10.6251 29.5 10.6246 29.5 10.6241C29.5 10.6237 29.5 10.6232 29.5 10.6227C29.5 10.6222 29.5 10.6218 29.5 10.6213C29.5 10.6208 29.5 10.6203 29.5 10.6199C29.5 10.6194 29.5 10.6189 29.5 10.6184C29.5 10.6179 29.5 10.6175 29.5 10.617C29.5 10.6165 29.5 10.616 29.5 10.6156C29.5 10.6151 29.5 10.6146 29.5 10.6141C29.5 10.6137 29.5 10.6132 29.5 10.6127C29.5 10.6122 29.5 10.6118 29.5 10.6113C29.5 10.6108 29.5 10.6103 29.5 10.6099C29.5 10.6094 29.5 10.6089 29.5 10.6084C29.5 10.608 29.5 10.6075 29.5 10.607C29.5 10.6065 29.5 10.6061 29.5 10.6056C29.5 10.6051 29.5 10.6046 29.5 10.6042C29.5 10.6037 29.5 10.6032 29.5 10.6027C29.5 10.6023 29.5 10.6018 29.5 10.6013C29.5 10.6008 29.5 10.6004 29.5 10.5999C29.5 10.5994 29.5 10.5989 29.5 10.5985C29.5 10.598 29.5 10.5975 29.5 10.597C29.5 10.5966 29.5 10.5961 29.5 10.5956C29.5 10.5951 29.5 10.5947 29.5 10.5942C29.5 10.5937 29.5 10.5932 29.5 10.5928C29.5 10.5923 29.5 10.5918 29.5 10.5913C29.5 10.5909 29.5 10.5904 29.5 10.5899C29.5 10.5894 29.5 10.589 29.5 10.5885C29.5 10.588 29.5 10.5875 29.5 10.5871C29.5 10.5866 29.5 10.5861 29.5 10.5856C29.5 10.5852 29.5 10.5847 29.5 10.5842C29.5 10.5838 29.5 10.5833 29.5 10.5828C29.5 10.5823 29.5 10.5819 29.5 10.5814C29.5 10.5809 29.5 10.5804 29.5 10.58C29.5 10.5795 29.5 10.579 29.5 10.5785C29.5 10.5781 29.5 10.5776 29.5 10.5771C29.5 10.5766 29.5 10.5762 29.5 10.5757C29.5 10.5752 29.5 10.5748 29.5 10.5743C29.5 10.5738 29.5 10.5733 29.5 10.5729C29.5 10.5724 29.5 10.5719 29.5 10.5714C29.5 10.571 29.5 10.5705 29.5 10.57C29.5 10.5696 29.5 10.5691 29.5 10.5686C29.5 10.5681 29.5 10.5677 29.5 10.5672C29.5 10.5667 29.5 10.5662 29.5 10.5658C29.5 10.5653 29.5 10.5648 29.5 10.5644C29.5 10.5639 29.5 10.5634 29.5 10.5629C29.5 10.5625 29.5 10.562 29.5 10.5615C29.5 10.561 29.5 10.5606 29.5 10.5601C29.5 10.5596 29.5 10.5592 29.5 10.5587C29.5 10.5582 29.5 10.5577 29.5 10.5573C29.5 10.5568 29.5 10.5563 29.5 10.5558C29.5 10.5554 29.5 10.5549 29.5 10.5544C29.5 10.554 29.5 10.5535 29.5 10.553C29.5 10.5525 29.5 10.5521 29.5 10.5516C29.5 10.5511 29.5 10.5507 29.5 10.5502C29.5 10.5497 29.5 10.5492 29.5 10.5488C29.5 10.5483 29.5 10.5478 29.5 10.5474C29.5 10.5469 29.5 10.5464 29.5 10.5459C29.5 10.5455 29.5 10.545 29.5 10.5445C29.5 10.5441 29.5 10.5436 29.5 10.5431C29.5 10.5426 29.5 10.5422 29.5 10.5417C29.5 10.5412 29.5 10.5408 29.5 10.5403C29.5 10.5398 29.5 10.5393 29.5 10.5389C29.5 10.5384 29.5 10.5379 29.5 10.5375C29.5 10.537 29.5 10.5365 29.5 10.536C29.5 10.5356 29.5 10.5351 29.5 10.5346C29.5 10.5342 29.5 10.5337 29.5 10.5332C29.5 10.5327 29.5 10.5323 29.5 10.5318C29.5 10.5313 29.5 10.5309 29.5 10.5304C29.5 10.5299 29.5 10.5294 29.5 10.529C29.5 10.5285 29.5 10.528 29.5 10.5276C29.5 10.5271 29.5 10.5266 29.5 10.5262C29.5 10.5257 29.5 10.5252 29.5 10.5247C29.5 10.5243 29.5 10.5238 29.5 10.5233C29.5 10.5229 29.5 10.5224 29.5 10.5219C29.5 10.5214 29.5 10.521 29.5 10.5205C29.5 10.52 29.5 10.5196 29.5 10.5191C29.5 10.5186 29.5 10.5182 29.5 10.5177C29.5 10.5172 29.5 10.5167 29.5 10.5163C29.5 10.5158 29.5 10.5153 29.5 10.5149C29.5 10.5144 29.5 10.5139 29.5 10.5135C29.5 10.513 29.5 10.5125 29.5 10.512C29.5 10.5116 29.5 10.5111 29.5 10.5106C29.5 10.5102 29.5 10.5097 29.5 10.5092C29.5 10.5087 29.5 10.5083 29.5 10.5078C29.5 10.5073 29.5 10.5069 29.5 10.5064C29.5 10.5059 29.5 10.5055 29.5 10.505C29.5 10.5045 29.5 10.5041 29.5 10.5036C29.5 10.5031 29.5 10.5026 29.5 10.5022C29.5 10.5017 29.5 10.5012 29.5 10.5008C29.5 10.5003 29.5 10.4998 29.5 10.4994C29.5 10.4989 29.5 10.4984 29.5 10.4979C29.5 10.4975 29.5 10.497 29.5 10.4965C29.5 10.4961 29.5 10.4956 29.5 10.4951C29.5 10.4947 29.5 10.4942 29.5 10.4937C29.5 10.4932 29.5 10.4928 29.5 10.4923C29.5 10.4918 29.5 10.4914 29.5 10.4909C29.5 10.4904 29.5 10.49 29.5 10.4895C29.5 10.489 29.5 10.4886 29.5 10.4881C29.5 10.4876 29.5 10.4871 29.5 10.4867C29.5 10.4862 29.5 10.4857 29.5 10.4853C29.5 10.4848 29.5 10.4843 29.5 10.4839C29.5 10.4834 29.5 10.4829 29.5 10.4825C29.5 10.482 29.5 10.4815 29.5 10.481C29.5 10.4806 29.5 10.4801 29.5 10.4796C29.5 10.4792 29.5 10.4787 29.5 10.4782C29.5 10.4778 29.5 10.4773 29.5 10.4768C29.5 10.4764 29.5 10.4759 29.5 10.4754C29.5 10.4749 29.5 10.4745 29.5 10.474C29.5 10.4735 29.5 10.4731 29.5 10.4726C29.5 10.4721 29.5 10.4717 29.5 10.4712C29.5 10.4707 29.5 10.4703 29.5 10.4698C29.5 10.4693 29.5 10.4689 29.5 10.4684C29.5 10.4679 29.5 10.4674 29.5 10.467C29.5 10.4665 29.5 10.466 29.5 10.4656C29.5 10.4651 29.5 10.4646 29.5 10.4642C29.5 10.4637 29.5 10.4632 29.5 10.4628C29.5 10.4623 29.5 10.4618 29.5 10.4614C29.5 10.4609 29.5 10.4604 29.5 10.4599C29.5 10.4595 29.5 10.459 29.5 10.4585C29.5 10.4581 29.5 10.4576 29.5 10.4571C29.5 10.4567 29.5 10.4562 29.5 10.4557C29.5 10.4553 29.5 10.4548 29.5 10.4543C29.5 10.4539 29.5 10.4534 29.5 10.4529C29.5 10.4524 29.5 10.452 29.5 10.4515C29.5 10.451 29.5 10.4506 29.5 10.4501C29.5 10.4496 29.5 10.4492 29.5 10.4487C29.5 10.4482 29.5 10.4478 29.5 10.4473C29.5 10.4468 29.5 10.4464 29.5 10.4459C29.5 10.4454 29.5 10.445 29.5 10.4445C29.5 10.444 29.5 10.4435 29.5 10.4431C29.5 10.4426 29.5 10.4421 29.5 10.4417C29.5 10.4412 29.5 10.4407 29.5 10.4403C29.5 10.4398 29.5 10.4393 29.5 10.4389C29.5 10.4384 29.5 10.4379 29.5 10.4375C29.5 10.437 29.5 10.4365 29.5 10.4361C29.5 10.4356 29.5 10.4351 29.5 10.4346C29.5 10.4342 29.5 10.4337 29.5 10.4332C29.5 10.4328 29.5 10.4323 29.5 10.4318C29.5 10.4314 29.5 10.4309 29.5 10.4304C29.5 10.43 29.5 10.4295 29.5 10.429C29.5 10.4286 29.5 10.4281 29.5 10.4276C29.5 10.4272 29.5 10.4267 29.5 10.4262C29.5 10.4257 29.5 10.4253 29.5 10.4248C29.5 10.4243 29.5 10.4239 29.5 10.4234C29.5 10.4229 29.5 10.4225 29.5 10.422C29.5 10.4215 29.5 10.4211 29.5 10.4206C29.5 10.4201 29.5 10.4197 29.5 10.4192C29.5 10.4187 29.5 10.4183 29.5 10.4178C29.5 10.4173 29.5 10.4168 29.5 10.4164C29.5 10.4159 29.5 10.4154 29.5 10.415C29.5 10.4145 29.5 10.414 29.5 10.4136C29.5 10.4131 29.5 10.4126 29.5 10.4122C29.5 10.4117 29.5 10.4112 29.5 10.4108C29.5 10.4103 29.5 10.4098 29.5 10.4094C29.5 10.4089 29.5 10.4084 29.5 10.408C29.5 10.4075 29.5 10.407 29.5 10.4065C29.5 10.4061 29.5 10.4056 29.5 10.4051C29.5 10.4047 29.5 10.4042 29.5 10.4037C29.5 10.4033 29.5 10.4028 29.5 10.4023C29.5 10.4019 29.5 10.4014 29.5 10.4009C29.5 10.4005 29.5 10.4 29.5 10.3995C29.5 10.3991 29.5 10.3986 29.5 10.3981C29.5 10.3976 29.5 10.3972 29.5 10.3967C29.5 10.3962 29.5 10.3958 29.5 10.3953C29.5 10.3948 29.5 10.3944 29.5 10.3939C29.5 10.3934 29.5 10.393 29.5 10.3925C29.5 10.392 29.5 10.3916 29.5 10.3911C29.5 10.3906 29.5 10.3902 29.5 10.3897C29.5 10.3892 29.5 10.3888 29.5 10.3883C29.5 10.3878 29.5 10.3873 29.5 10.3869C29.5 10.3864 29.5 10.3859 29.5 10.3855C29.5 10.385 29.5 10.3845 29.5 10.3841C29.5 10.3836 29.5 10.3831 29.5 10.3827C29.5 10.3822 29.5 10.3817 29.5 10.3813C29.5 10.3808 29.5 10.3803 29.5 10.3798C29.5 10.3794 29.5 10.3789 29.5 10.3784C29.5 10.378 29.5 10.3775 29.5 10.377C29.5 10.3766 29.5 10.3761 29.5 10.3756C29.5 10.3752 29.5 10.3747 29.5 10.3742C29.5 10.3738 29.5 10.3733 29.5 10.3728C29.5 10.3724 29.5 10.3719 29.5 10.3714C29.5 10.3709 29.5 10.3705 29.5 10.37C29.5 10.3695 29.5 10.3691 29.5 10.3686C29.5 10.3681 29.5 10.3677 29.5 10.3672C29.5 10.3667 29.5 10.3663 29.5 10.3658C29.5 10.3653 29.5 10.3649 29.5 10.3644C29.5 10.3639 29.5 10.3634 29.5 10.363C29.5 10.3625 29.5 10.362 29.5 10.3616C29.5 10.3611 29.5 10.3606 29.5 10.3602
12C29.5 10.3597 29.5 10.3592 29.5 10.3588C29.5 10.3583 29.5 10.3578 29.5 10.3574C29.5 10.3569 29.5 10.3564 29.5 10.3559C29.5 10.3555 29.5 10.355 29.5 10.3545C29.5 10.3541 29.5 10.3536 29.5 10.3531C29.5 10.3527 29.5 10.3522 29.5 10.3517C29.5 10.3513 29.5 10.3508 29.5 10.3503C29.5 10.3498 29.5 10.3494 29.5 10.3489C29.5 10.3484 29.5 10.348 29.5 10.3475C29.5 10.347 29.5 10.3466 29.5 10.3461C29.5 10.3456 29.5 10.3452 29.5 10.3447C29.5 10.3442 29.5 10.3438 29.5 10.3433C29.5 10.3428 29.5 10.3423 29.5 10.3419C29.5 10.3414 29.5 10.3409 29.5 10.3405C29.5 10.34 29.5 10.3395 29.5 10.3391C29.5 10.3386 29.5 10.3381 29.5 10.3376C29.5 10.3372 29.5 10.3367 29.5 10.3362C29.5 10.3358 29.5 10.3353 29.5 10.3348C29.5 10.3344 29.5 10.3339 29.5 10.3334C29.5 10.333 29.5 10.3325 29.5 10.332C29.5 10.3315 29.5 10.3311 29.5 10.3306C29.5 10.3301 29.5 10.3297 29.5 10.3292C29.5 10.3287 29.5 10.3283 29.5 10.3278C29.5 10.3273 29.5 10.3269 29.5 10.3264C29.5 10.3259 29.5 10.3254 29.5 10.325C29.5 10.3245 29.5 10.324 29.5 10.3236C29.5 10.3231 29.5 10.3226 29.5 10.3222C29.5 10.3217 29.5 10.3212 29.5 10.3207C29.5 10.3203 29.5 10.3198 29.5 10.3193C29.5 10.3189 29.5 10.3184 29.5 10.3179C29.5 10.3175 29.5 10.317 29.5 10.3165C29.5 10.316 29.5 10.3156 29.5 10.3151C29.5 10.3146 29.5 10.3142 29.5 10.3137C29.5 10.3132 29.5 10.3128 29.5 10.3123C29.5 10.3118 29.5 10.3113 29.5 10.3109C29.5 10.3104 29.5 10.3099 29.5 10.3095C29.5 10.309 29.5 10.3085 29.5 10.308C29.5 10.3076 29.5 10.3071 29.5 10.3066C29.5 10.3062 29.5 10.3057 29.5 10.3052C29.5 10.3048 29.5 10.3043 29.5 10.3038C29.5 10.3033 29.5 10.3029 29.5 10.3024C29.5 10.3019 29.5 10.3015 29.5 10.301C29.5 10.3005 29.5 10.3 29.5 10.2996C29.5 10.2991 29.5 10.2986 29.5 10.2982C29.5 10.2977 29.5 10.2972 29.5 10.2968C29.5 10.2963 29.5 10.2958 29.5 10.2953C29.5 10.2949 29.5 10.2944 29.5 10.2939C29.5 10.2935 29.5 10.293 29.5 10.2925C29.5 10.292 29.5 10.2916 29.5 10.2911C29.5 10.2906 29.5 10.2902 29.5 10.2897C29.5 10.2892 29.5 10.2887 29.5 10.2883C29.5 10.2878 29.5 10.2873 29.5 10.2869C29.5 10.2864 29.5 10.2859 29.5 10.2854C29.5 10.285 29.5 10.2845 29.5 10.284C29.5 10.2836 29.5 10.2831 29.5 10.2826C29.5 10.2821 29.5 10.2817 29.5 10.2812C29.5 10.2807 29.5 10.2803 29.5 10.2798C29.5 10.2793 29.5 10.2788 29.5 10.2784C29.5 10.2779 29.5 10.2774 29.5 10.277C29.5 10.2765 29.5 10.276 29.5 10.2755C29.5 10.2751 29.5 10.2746 29.5 10.2741C29.5 10.2737 29.5 10.2732 29.5 10.2727C29.5 10.2722 29.5 10.2718 29.5 10.2713C29.5 10.2708 29.5 10.2703 29.5 10.2699C29.5 10.2694 29.5 10.2689 29.5 10.2685C29.5 10.268 29.5 10.2675 29.5 10.267C29.5 10.2666 29.5 10.2661 29.5 10.2656C29.5 10.2652 29.5 10.2647 29.5 10.2642C29.5 10.2637 29.5 10.2633 29.5 10.2628C29.5 10.2623 29.5 10.2618 29.5 10.2614C29.5 10.2609 29.5 10.2604 29.5 10.26C29.5 10.2595 29.5 10.259 29.5 10.2585C29.5 10.2581 29.5 10.2576 29.5 10.2571C29.5 10.2566 29.5 10.2562 29.5 10.2557C29.5 10.2552 29.5 10.2548 29.5 10.2543C29.5 10.2538 29.5 10.2533 29.5 10.2529C29.5 10.2524 29.5 10.2519 29.5 10.2514C29.5 10.251 29.5 10.2505 29.5 10.25C29.5 10.2495 29.5 10.2491 29.5 10.2486C29.5 10.2481 29.5 10.2477 29.5 10.2472C29.5 10.2467 29.5 10.2462 29.5 10.2458C29.5 10.2453 29.5 10.2448 29.5 10.2443C29.5 10.2439 29.5 10.2434 29.5 10.2429C29.5 10.2424 29.5 10.242 29.5 10.2415C29.5 10.241 29.5 10.2405 29.5 10.2401C29.5 10.2396 29.5 10.2391 29.5 10.2387C29.5 10.2382 29.5 10.2377 29.5 10.2372C29.5 10.2368 29.5 10.2363 29.5 10.2358C29.5 10.2353 29.5 10.2349 29.5 10.2344C29.5 10.2339 29.5 10.2334 29.5 10.233C29.5 10.2325 29.5 10.232 29.5 10.2315C29.5 10.2311 29.5 10.2306 29.5 10.2301C29.5 10.2296 29.5 10.2292 29.5 10.2287C29.5 10.2282 29.5 10.2277 29.5 10.2273C29.5 10.2268 29.5 10.2263 29.5 10.2258C29.5 10.2254 29.5 10.2249 29.5 10.2244C29.5 10.2239 29.5 10.2235 29.5 10.223C29.5 10.2225 29.5 10.222 29.5 10.2216C29.5 10.2211 29.5 10.2206 29.5 10.2201C29.5 10.2197 29.5 10.2192 29.5 10.2187C29.5 10.2182 29.5 10.2178 29.5 10.2173C29.5 10.2168 29.5 10.2163 29.5 10.2159C29.5 10.2154 29.5 10.2149 29.5 10.2144C29.5 10.214 29.5 10.2135 29.5 10.213C29.5 10.2125 29.5 10.2121 29.5 10.2116C29.5 10.2111 29.5 10.2106 29.5 10.2101C29.5 10.2097 29.5 10.2092 29.5 10.2087C29.5 10.2082 29.5 10.2078 29.5 10.2073C29.5 10.2068 29.5 10.2063 29.5 10.2059C29.5 10.2054 29.5 10.2049 29.5 10.2044C29.5 10.204 29.5 10.2035 29.5 10.203C29.5 10.2025 29.5 10.2021 29.5 10.2016C29.5 10.2011 29.5 10.2006 29.5 10.2001C29.5 10.1997 29.5 10.1992 29.5 10.1987C29.5 10.1982 29.5 10.1978 29.5 10.1973C29.5 10.1968 29.5 10.1963 29.5 10.1958C29.5 10.1954 29.5 10.1949 29.5 10.1944C29.5 10.1939 29.5 10.1935 29.5 10.193C29.5 10.1925 29.5 10.192 29.5 10.1916C29.5 10.1911 29.5 10.1906 29.5 10.1901C29.5 10.1896 29.5 10.1892 29.5 10.1887C29.5 10.1882 29.5 10.1877 29.5 10.1873C29.5 10.1868 29.5 10.1863 29.5 10.1858C29.5 10.1853 29.5 10.1849 29.5 10.1844C29.5 10.1839 29.5 10.1834 29.5 10.183C29.5 10.1825 29.5 10.182 29.5 10.1815C29.5 10.181 29.5 10.1806 29.5 10.1801C29.5 10.1796 29.5 10.1791 29.5 10.1786C29.5 10.1782 29.5 10.1777 29.5 10.1772C29.5 10.1767 29.5 10.1763 29.5 10.1758C29.5 10.1753 29.5 10.1748 29.5 10.1743C29.5 10.1739 29.5 10.1734 29.5 10.1729C29.5 10.1724 29.5 10.1719 29.5 10.1715C29.5 10.171 29.5 10.1705 29.5 10.17C29.5 10.1695 29.5 10.1691 29.5 10.1686C29.5 10.1681 29.5 10.1676 29.5 10.1671C29.5 10.1667 29.5 10.1662 29.5 10.1657C29.5 10.1652 29.5 10.1647 29.5 10.1643C29.5 10.1638 29.5 10.1633 29.5 10.1628C29.5 10.1623 29.5 10.1619 29.5 10.1614C29.5 10.1609 29.5 10.1604 29.5 10.1599C29.5 10.1595 29.5 10.159 29.5 10.1585C29.5 10.158 29.5 10.1575 29.5 10.1571C29.5 10.1566 29.5 10.1561 29.5 10.1556C29.5 10.1551 29.5 10.1547 29.5 10.1542C29.5 10.1537 29.5 10.1532 29.5 10.1527C29.5 10.1523 29.5 10.1518 29.5 10.1513C29.5 10.1508 29.5 10.1503 29.5 10.1498C29.5 10.1494 29.5 10.1489 29.5 10.1484C29.5 10.1479 29.5 10.1474 29.5 10.147C29.5 10.1465 29.5 10.146 29.5 10.1455C29.5 10.145 29.5 10.1446 29.5 10.1441C29.5 10.1436 29.5 10.1431 29.5 10.1426C29.5 10.1421 29.5 10.1417 29.5 10.1412C29.5 10.1407 29.5 10.1402 29.5 10.1397C29.5 10.1392 29.5 10.1388 29.5 10.1383C29.5 10.1378 29.5 10.1373 29.5 10.1368C29.5 10.1364 29.5 10.1359 29.5 10.1354C29.5 10.1349 29.5 10.1344 29.5 10.1339C29.5 10.1335 29.5 10.133 29.5 10.1325C29.5 10.132 29.5 10.1315 29.5 10.131C29.5 10.1306 29.5 10.1301 29.5 10.1296C29.5 10.1291 29.5 10.1286 29.5 10.1281C29.5 10.1277 29.5 10.1272 29.5 10.1267C29.5 10.1262 29.5 10.1257 29.5 10.1252C29.5 10.1248 29.5 10.1243 29.5 10.1238C29.5 10.1233 29.5 10.1228 29.5 10.1223C29.5 10.1219 29.5 10.1214 29.5 10.1209C29.5 10.1204 29.5 10.1199 29.5 10.1194C29.5 10.1189 29.5 10.1185 29.5 10.118C29.5 10.1175 29.5 10.117 29.5 10.1165C29.5 10.116 29.5 10.1156 29.5 10.1151C29.5 10.1146 29.5 10.114
121 29.5 10.1136C29.5 10.1131 29.5 10.1126 29.5 10.1122C29.5 10.1117 29.5 10.1112 29.5 10.1107C29.5 10.1102 29.5 10.1097 29.5 10.1092C29.5 10.1088 29.5 10.1083 29.5 10.1078C29.5 10.1073 29.5 10.1068 29.5 10.1063C29.5 10.1058 29.5 10.1054 29.5 10.1049C29.5 10.1044 29.5 10.1039 29.5 10.1034C29.5 10.1029 29.5 10.1024 29.5 10.102C29.5 10.1015 29.5 10.101 29.5 10.1005C29.5 10.1 29.5 10.0995 29.5 10.099C29.5 10.0986 29.5 10.0981 29.5 10.0976C29.5 10.0971 29.5 10.0966 29.5 10.0961C29.5 10.0956 29.5 10.0951 29.5 10.0947C29.5 10.0942 29.5 10.0937 29.5 10.0932C29.5 10.0927 29.5 10.0922 29.5 10.0917C29.5 10.0912 29.5 10.0908 29.5 10.0903C29.5 10.0898 29.5 10.0893 29.5 10.0888C29.5 10.0883 29.5 10.0878 29.5 10.0873C29.5 10.0869 29.5 10.0864 29.5 10.0859C29.5 10.0854 29.5 10.0849 29.5 10.0844C29.5 10.0839 29.5 10.0834 29.5 10.0829C29.5 10.0825 29.5 10.082 29.5 10.0815C29.5 10.081 29.5 10.0805 29.5 10.08C29.5 10.0795 29.5 10.079 29.5 10.0785C29.5 10.0781 29.5 10.0776 29.5 10.0771C29.5 10.0766 29.5 10.0761 29.5 10.0756C29.5 10.0751 29.5 10.0746 29.5 10.0741C29.5 10.0737 29.5 10.0732 29.5 10.0727C29.5 10.0722 29.5 10.0717 29.5 10.0712C29.5 10.0707 29.5 10.0702 29.5 10.0697C29.5 10.0692 29.5 10.0688 29.5 10.0683C29.5 10.0678 29.5 10.0673 29.5 10.0668C29.5 10.0663 29.5 10.0658 29.5 10.0653C29.5 10.0648 29.5 10.0643 29.5 10.0639C29.5 10.0634 29.5 10.0629 29.5 10.0624C29.5 10.0619 29.5 10.0614 29.5 10.0609C29.5 10.0604 29.5 10.0599 29.5 10.0594C29.5 10.0589 29.5 10.0584 29.5 10.058C29.5 10.0575 29.5 10.057 29.5 10.0565C29.5 10.056 29.5 10.0555 29.5 10.055C29.5 10.0545 29.5 10.054 29.5 10.0535C29.5 10.053 29.5 10.0525 29.5 10.0521C29.5 10.0516 29.5 10.0511 29.5 10.0506C29.5 10.0501 29.5 10.0496 29.5 10.0491C29.5 10.0486 29.5 10.0481 29.5 10.0476H25.5C25.5 10.0481 25.5 10.0486 25.5 10.0491C25.5 10.0496 25.5 10.0501 25.5 10.0506C25.5 10.0511 25.5 10.0516 25.5 10.0521C25.5 10.0525 25.5 10.053 25.5 10.0535C25.5 10.054 25.5 10.0545 25.5 10.055C25.5 10.0555 25.5 10.056 25.5 10.0565C25.5 10.057 25.5 10.0575 25.5 10.058C25.5 10.0584 25.5 10.0589 25.5 10.0594C25.5 10.0599 25.5 10.0604 25.5 10.0609C25.5 10.0614 25.5 10.0619 25.5 10.0624C25.5 10.0629 25.5 10.0634 25.5 10.0639C25.5 10.0643 25.5 10.0648 25.5 10.0653C25.5 10.0658 25.5 10.0663 25.5 10.0668C25.5 10.0673 25.5 10.0678 25.5 10.0683C25.5 10.0688 25.5 10.0692 25.5 10.0697C25.5 10.0702 25.5 10.0707 25.5 10.0712C25.5 10.0717 25.5 10.0722 25.5 10.0727C25.5 10.0732 25.5 10.0737 25.5 10.0741C25.5 10.0746 25.5 10.0751 25.5 10.0756C25.5 10.0761 25.5 10.0766 25.5 10.0771C25.5 10.0776 25.5 10.0781 25.5 10.0785C25.5 10.079 25.5 10.0795 25.5 10.08C25.5 10.0805 25.5 10.081 25.5 10.0815C25.5 10.082 25.5 10.0825 25.5 10.0829C25.5 10.0834 25.5 10.0839 25.5 10.0844C25.5 10.0849 25.5 10.0854 25.5 10.0859C25.5 10.0864 25.5 10.0869 25.5 10.0873C25.5 10.0878 25.5 10.0883 25.5 10.0888C25.5 10.0893 25.5 10.0898 25.5 10.0903C25.5 10.0908 25.5 10.0912 25.5 10.0917C25.5 10.0922 25.5 10.0927 25.5 10.0932C25.5 10.0937 25.5 10.0942 25.5 10.0947C25.5 10.0951 25.5 10.0956 25.5 10.0961C25.5 10.0966 25.5 10.0971 25.5 10.0976C25.5 10.0981 25.5 10.0986 25.5 10.099C25.5 10.0995 25.5 10.1 25.5 10.1005C25.5 10.101 25.5 10.1015 25.5 10.102C25.5 10.1024 25.5 10.1029 25.5 10.1034C25.5 10.1039 25.5 10.1044 25.5 10.1049C25.5 10.1054 25.5 10.1058 25.5 10.1063C25.5 10.1068 25.5 10.1073 25.5 10.1078C25.5 10.1083 25.5 10.1088 25.5 10.1092C25.5 10.1097 25.5 10.1102 25.5 10.1107C25.5 10.1112 25.5 10.1117 25.5 10.1122C25.5 10.1126 25.5 10.1131 25.5 10.1136C25.5 10.1141 25.5 10.1146 25.5 10.1151C25.5 10.1156 25.5 10.116 25.5 10.1165C25.5 10.117 25.5 10.1175 25.5 10.118C25.5 10.1185 25.5 10.1189 25.5 10.1194C25.5 10.1199 25.5 10.1204 25.5 10.1209C25.5 10.1214 25.5 10.1219 25.5 10.1223C25.5 10.1228 25.5 10.1233 25.5 10.1238C25.5 10.1243 25.5 10.1248 25.5 10.1252C25.5 10.1257 25.5 10.1262 25.5 10.1267C25.5 10.1272 25.5 10.1277 25.5 10.1281C25.5 10.1286 25.5 10.1291 25.5 10.1296C25.5 10.1301 25.5 10.1306 25.5 10.131C25.5 10.1315 25.5 10.132 25.5 10.1325C25.5 10.133 25.5 10.1335 25.5 10.1339C25.5 10.1344 25.5 10.1349 25.5 10.1354C25.5 10.1359 25.5 10.1364 25.5 10.1368C25.5 10.1373 25.5 10.1378 25.5 10.1383C25.5 10.1388 25.5 10.1392 25.5 10.1397C25.5 10.1402 25.5 10.1407 25.5 10.1412C25.5 10.1417 25.5 10.1421 25.5 10.1426C25.5 10.1431 25.5 10.1436 25.5 10.1441C25.5 10.1446 25.5 10.145 25.5 10.1455C25.5 10.146 25.5 10.1465 25.5 10.147C25.5 10.1474 25.5 10.1479 25.5 10.1484C25.5 10.1489 25.5 10.1494 25.5 10.1498C25.5 10.1503 25.5 10.1508 25.5 10.1513C25.5 10.1518 25.5 10.1523 25.5 10.1527C25.5 10.1532 25.5 10.1537 25.5 10.1542C25.5 10.1547 25.5 10.1551 25.5 10.1556C25.5 10.1561 25.5 10.1566 25.5 10.1571C25.5 10.1575 25.5 10.158 25.5 10.1585C25.5 10.159 25.5 10.1595 25.5 10.1599C25.5 10.1604 25.5 10.1609 25.5 10.1614C25.5 10.1619 25.5 10.1623 25.5 10.1628C25.5 10.1633 25.5 10.1638 25.5 10.1643C25.5 10.1647 25.5 10.1652 25.5 10.1657C25.5 10.1662 25.5 10.1667 25.5 10.1671C25.5 10.1676 25.5 10.1681 25.5 10.1686C25.5 10.1691 25.5 10.1695 25.5 10.17C25.5 10.1705 25.5 10.171 25.5 10.1715C25.5 10.1719 25.5 10.1724 25.5 10.1729C25.5 10.1734 25.5 10.1739 25.5 10.1743C25.5 10.1748 25.5 10.1753 25.5 10.1758C25.5 10.1763 25.5 10.1767 25.5 10.1772C25.5 10.1777 25.5 10.1782 25.5 10.1786C25.5 10.1791 25.5 10.1796 25.5 10.1801C25.5 10.1806 25.5 10.181 25.5 10.1815C25.5 10.182 25.5 10.1825 25.5 10.183C25.5 10.1834 25.5 10.1839 25.5 10.1844C25.5 10.1849 25.5 10.1853 25.5 10.1858C25.5 10.1863 25.5 10.1868 25.5 10.1873C25.5 10.1877 25.5 10.1882 25.5 10.1887C25.5 10.1892 25.5 10.1896 25.5 10.1901C25.5 10.1906 25.5 10.1911 25.5 10.1916C25.5 10.192 25.5 10.1925 25.5 10.193C25.5 10.1935 25.5 10.1939 25.5 10.1944C25.5 10.1949 25.5 10.1954 25.5 10.1958C25.5 10.1963 25.5 10.1968 25.5 10.1973C25.5 10.1978 25.5 10.1982 25.5 10.1987C25.5 10.1992 25.5 10.1997 25.5 10.2001C25.5 10.2006 25.5 10.2011 25.5 10.2016C25.5 10.2021 25.5 10.2025 25.5 10.203C25.5 10.2035 25.5 10.204 25.5 10.2044C25.5 10.2049 25.5 10.2054 25.5 10.2059C25.5 10.2063 25.5 10.2068 25.5 10.2073C25.5 10.2078 25.5 10.2082 25.5 10.2087C25.5 10.2092 25.5 10.2097 25.5 10.2101C25.5 10.2106 25.5 10.2111 25.5 10.2116C25.5 10.2121 25.5 10.2125 25.5 10.213C25.5 10.2135 25.5 10.214 25.5 10.2144C25.5 10.2149 25.5 10.2154 25.5 10.2159C25.5 10.2163 25.5 10.2168 25.5 10.2173C25.5 10.2178 25.5 10.2182 25.5 10.2187C25.5 10.2192 25.5 10.2197 25.5 10.2201C25.5 10.2206 25.5 10.2211 25.5 10.2216C25.5 10.222 25.5 10.2225 25.5 10.223C25.5 10.2235 25.5 10.2239 25.5 10.2244C25.5 10.2249 25.5 10.2254 25.5 10.2258C25.5 10.2263 25.5 10.2268 25.5 10.2273C25.5 10.2277 25.5 10.2282 25.5 10.2287C25.5 10.2292 25.5 10.2296 25.5 10.23
1201C25.5 10.2306 25.5 10.2311 25.5 10.2315C25.5 10.232 25.5 10.2325 25.5 10.233C25.5 10.2334 25.5 10.2339 25.5 10.2344C25.5 10.2349 25.5 10.2353 25.5 10.2358C25.5 10.2363 25.5 10.2368 25.5 10.2372C25.5 10.2377 25.5 10.2382 25.5 10.2387C25.5 10.2391 25.5 10.2396 25.5 10.2401C25.5 10.2405 25.5 10.241 25.5 10.2415C25.5 10.242 25.5 10.2424 25.5 10.2429C25.5 10.2434 25.5 10.2439 25.5 10.2443C25.5 10.2448 25.5 10.2453 25.5 10.2458C25.5 10.2462 25.5 10.2467 25.5 10.2472C25.5 10.2477 25.5 10.2481 25.5 10.2486C25.5 10.2491 25.5 10.2495 25.5 10.25C25.5 10.2505 25.5 10.251 25.5 10.2514C25.5 10.2519 25.5 10.2524 25.5 10.2529C25.5 10.2533 25.5 10.2538 25.5 10.2543C25.5 10.2548 25.5 10.2552 25.5 10.2557C25.5 10.2562 25.5 10.2566 25.5 10.2571C25.5 10.2576 25.5 10.2581 25.5 10.2585C25.5 10.259 25.5 10.2595 25.5 10.26C25.5 10.2604 25.5 10.2609 25.5 10.2614C25.5 10.2618 25.5 10.2623 25.5 10.2628C25.5 10.2633 25.5 10.2637 25.5 10.2642C25.5 10.2647 25.5 10.2652 25.5 10.2656C25.5 10.2661 25.5 10.2666 25.5 10.267C25.5 10.2675 25.5 10.268 25.5 10.2685C25.5 10.2689 25.5 10.2694 25.5 10.2699C25.5 10.2703 25.5 10.2708 25.5 10.2713C25.5 10.2718 25.5 10.2722 25.5 10.2727C25.5 10.2732 25.5 10.2737 25.5 10.2741C25.5 10.2746 25.5 10.2751 25.5 10.2755C25.5 10.276 25.5 10.2765 25.5 10.277C25.5 10.2774 25.5 10.2779 25.5 10.2784C25.5 10.2788 25.5 10.2793 25.5 10.2798C25.5 10.2803 25.5 10.2807 25.5 10.2812C25.5 10.2817 25.5 10.2821 25.5 10.2826C25.5 10.2831 25.5 10.2836 25.5 10.284C25.5 10.2845 25.5 10.285 25.5 10.2854C25.5 10.2859 25.5 10.2864 25.5 10.2869C25.5 10.2873 25.5 10.2878 25.5 10.2883C25.5 10.2887 25.5 10.2892 25.5 10.2897C25.5 10.2902 25.5 10.2906 25.5 10.2911C25.5 10.2916 25.5 10.292 25.5 10.2925C25.5 10.293 25.5 10.2935 25.5 10.2939C25.5 10.2944 25.5 10.2949 25.5 10.2953C25.5 10.2958 25.5 10.2963 25.5 10.2968C25.5 10.2972 25.5 10.2977 25.5 10.2982C25.5 10.2986 25.5 10.2991 25.5 10.2996C25.5 10.3 25.5 10.3005 25.5 10.301C25.5 10.3015 25.5 10.3019 25.5 10.3024C25.5 10.3029 25.5 10.3033 25.5 10.3038C25.5 10.3043 25.5 10.3048 25.5 10.3052C25.5 10.3057 25.5 10.3062 25.5 10.3066C25.5 10.3071 25.5 10.3076 25.5 10.308C25.5 10.3085 25.5 10.309 25.5 10.3095C25.5 10.3099 25.5 10.3104 25.5 10.3109C25.5 10.3113 25.5 10.3118 25.5 10.3123C25.5 10.3128 25.5 10.3132 25.5 10.3137C25.5 10.3142 25.5 10.3146 25.5 10.3151C25.5 10.3156 25.5 10.316 25.5 10.3165C25.5 10.317 25.5 10.3175 25.5 10.3179C25.5 10.3184 25.5 10.3189 25.5 10.3193C25.5 10.3198 25.5 10.3203 25.5 10.3207C25.5 10.3212 25.5 10.3217 25.5 10.3222C25.5 10.3226 25.5 10.3231 25.5 10.3236C25.5 10.324 25.5 10.3245 25.5 10.325C25.5 10.3254 25.5 10.3259 25.5 10.3264C25.5 10.3269 25.5 10.3273 25.5 10.3278C25.5 10.3283 25.5 10.3287 25.5 10.3292C25.5 10.3297 25.5 10.3301 25.5 10.3306C25.5 10.3311 25.5 10.3315 25.5 10.332C25.5 10.3325 25.5 10.333 25.5 10.3334C25.5 10.3339 25.5 10.3344 25.5 10.3348C25.5 10.3353 25.5 10.3358 25.5 10.3362C25.5 10.3367 25.5 10.3372 25.5 10.3376C25.5 10.3381 25.5 10.3386 25.5 10.3391C25.5 10.3395 25.5 10.34 25.5 10.3405C25.5 10.3409 25.5 10.3414 25.5 10.3419C25.5 10.3423 25.5 10.3428 25.5 10.3433C25.5 10.3438 25.5 10.3442 25.5 10.3447C25.5 10.3452 25.5 10.3456 25.5 10.3461C25.5 10.3466 25.5 10.347 25.5 10.3475C25.5 10.348 25.5 10.3484 25.5 10.3489C25.5 10.3494 25.5 10.3498 25.5 10.3503C25.5 10.3508 25.5 10.3513 25.5 10.3517C25.5 10.3522 25.5 10.3527 25.5 10.3531C25.5 10.3536 25.5 10.3541 25.5 10.3545C25.5 10.355 25.5 10.3555 25.5 10.3559C25.5 10.3564 25.5 10.3569 25.5 10.3574C25.5 10.3578 25.5 10.3583 25.5 10.3588C25.5 10.3592 25.5 10.3597 25.5 10.3602C25.5 10.3606 25.5 10.3611 25.5 10.3616C25.5 10.362 25.5 10.3625 25.5 10.363C25.5 10.3634 25.5 10.3639 25.5 10.3644C25.5 10.3649 25.5 10.3653 25.5 10.3658C25.5 10.3663 25.5 10.3667 25.5 10.3672C25.5 10.3677 25.5 10.3681 25.5 10.3686C25.5 10.3691 25.5 10.3695 25.5 10.37C25.5 10.3705 25.5 10.3709 25.5 10.3714C25.5 10.3719 25.5 10.3724 25.5 10.3728C25.5 10.3733 25.5 10.3738 25.5 10.3742C25.5 10.3747 25.5 10.3752 25.5 10.3756C25.5 10.3761 25.5 10.3766 25.5 10.377C25.5 10.3775 25.5 10.378 25.5 10.3784C25.5 10.3789 25.5 10.3794 25.5 10.3798C25.5 10.3803 25.5 10.3808 25.5 10.3813C25.5 10.3817 25.5 10.3822 25.5 10.3827C25.5 10.3831 25.5 10.3836 25.5 10.3841C25.5 10.3845 25.5 10.385 25.5 10.3855C25.5 10.3859 25.5 10.3864 25.5 10.3869C25.5 10.3873 25.5 10.3878 25.5 10.3883C25.5 10.3888 25.5 10.3892 25.5 10.3897C25.5 10.3902 25.5 10.3906 25.5 10.3911C25.5 10.3916 25.5 10.392 25.5 10.3925C25.5 10.393 25.5 10.3934 25.5 10.3939C25.5 10.3944 25.5 10.3948 25.5 10.3953C25.5 10.3958 25.5 10.3962 25.5 10.3967C25.5 10.3972 25.5 10.3976 25.5 10.3981C25.5 10.3986 25.5 10.3991 25.5 10.3995C25.5 10.4 25.5 10.4005 25.5 10.4009C25.5 10.4014 25.5 10.4019 25.5 10.4023C25.5 10.4028 25.5 10.4033 25.5 10.4037C25.5 10.4042 25.5 10.4047 25.5 10.4051C25.5 10.4056 25.5 10.4061 25.5 10.4065C25.5 10.407 25.5 10.4075 25.5 10.408C25.5 10.4084 25.5 10.4089 25.5 10.4094C25.5 10.4098 25.5 10.4103 25.5 10.4108C25.5 10.4112 25.5 10.4117 25.5 10.4122C25.5 10.4126 25.5 10.4131 25.5 10.4136C25.5 10.414 25.5 10.4145 25.5 10.415C25.5 10.4154 25.5 10.4159 25.5 10.4164C25.5 10.4168 25.5 10.4173 25.5 10.4178C25.5 10.4183 25.5 10.4187 25.5 10.4192C25.5 10.4197 25.5 10.4201 25.5 10.4206C25.5 10.4211 25.5 10.4215 25.5 10.422C25.5 10.4225 25.5 10.4229 25.5 10.4234C25.5 10.4239 25.5 10.4243 25.5 10.4248C25.5 10.4253 25.5 10.4257 25.5 10.4262C25.5 10.4267 25.5 10.4272 25.5 10.4276C25.5 10.4281 25.5 10.4286 25.5 10.429C25.5 10.4295 25.5 10.43 25.5 10.4304C25.5 10.4309 25.5 10.4314 25.5 10.4318C25.5 10.4323 25.5 10.4328 25.5 10.4332C25.5 10.4337 25.5 10.4342 25.5 10.4346C25.5 10.4351 25.5 10.4356 25.5 10.4361C25.5 10.4365 25.5 10.437 25.5 10.4375C25.5 10.4379 25.5 10.4384 25.5 10.4389C25.5 10.4393 25.5 10.4398 25.5 10.4403C25.5 10.4407 25.5 10.4412 25.5 10.4417C25.5 10.4421 25.5 10.4426 25.5 10.4431C25.5 10.4435 25.5 10.444 25.5 10.4445C25.5 10.445 25.5 10.4454 25.5 10.4459C25.5 10.4464 25.5 10.4468 25.5 10.4473C25.5 10.4478 25.5 10.4482 25.5 10.4487C25.5 10.4492 25.5 10.4496 25.5 10.4501C25.5 10.4506 25.5 10.451 25.5 10.4515C25.5 10.452 25.5 10.4524 25.5 10.4529C25.5 10.4534 25.5 10.4539 25.5 10.4543C25.5 10.4548 25.5 10.4553 25.5 10.4557C25.5 10.4562 25.5 10.4567 25.5 10.4571C25.5 10.4576 25.5 10.4581 25.5 10.4585C25.5 10.459 25.5 10.4595 25.5 10.4599C25.5 10.4604 25.5 10.4609 25.5 10.4614C25.5 10.4618 25.5 10.4623 25.5 10.4628C25.5 10.4632 25.5 10.4637 25.5 10.4642C25.5 10.4646 25.5 10.4651 25.5 10.4656C25.5 10.466 25.5 10.4665 25.5 10.467C25.5 10.4674 25.5 10.4679 25.5 10.4684C25.5 10.4689 25.5 10.4693 25.5 10.4698C25.5 10.4703 25.5 10.4707 25.5 10.4712C25.5 10.4717 25.5 10.4721 25.5 10.4726C25.5 10.4731 25.5 10.4735 25.5 10.474C25.5 10.4745 25.5 10.4749 25.5 10.4754C25.5 10.4759 25.5 10.4764 25.5 10.4768C25.5 10.4773 25.5 10.4778 25.5 10.4782C25.5 10.4787 25.5 10.4792 25.5 10.4796C25.5 10.4801 25.5 10.4806 25.5 10.481C25.5 10.4815 25.5 10.482 25.5 10.4825C25.5 10.4829 25.5 10.4834 25.5 10.4839C25.5 10.4843 25.5 10.4848 25.5 10.4853C25.5 10.4857 25.5 10.4862 25.5 10.4867C25.5 10.4871 25.5 10.4876 25.5 10.4881C25.5 10.4886 25.5 10.489 25.5 10.4895C25.5 10.49 25.5 10.4904 25.5 10.4909C25.5 10.4914 25.5 10.4918 25.5 10.4923C25.5 10.4928 25.5 10.4932 25.5 10.4937C25.5 10.4942 25.5 10.4947 25.5 10.4951C25.5 10.4956 25.5 10.4961 25.5 10.4965C25.5 10.497 25.5 10.4975 25.5 10.4979C25.5 10.4984 25.5 10.4989 25.5 10.4994C25.5 10.4998 25.5 10.5003 25.5 10.5008C25.5 10.5012 25.5 10.5017 25.5 10.5022C25.5 10.5026 25.5 10.5031 25.5 10.5036C25.5 10.5041 25.5 10.5045 25.5 10.505C25.5 10.5055 25.5 10.5059 25.5 10.5064C25.5 10.5069 25.5 10.5073 25.5 10.5078C25.5 10.5083 25.5 10.5087 25.5 10.5092C25.5 10.5097 25.5 10.5102 25.5 10.5106C25.5 10.5111 25.5 10.5116 25.5 10.512C25.5 10.5125 25.5 10.513 25.5 10.5135C25.5 10.5139 25.5 10.5144 25.5 10.5149C25.5 10.5153 25.5 10.5158 25.5 10.5163C25.5 10.5167 25.5 10.5172 25.5 10.5177C25.5 10.5182 25.5 10.5186 25.5 10.5191C25.5 10.5196 25.5 10.52 25.5 10.5205C25.5 10.521 25.5 10.5214 25.5 10.5219C25.5 10.5224 25.5 10.5229 25.5 10.5233C25.5 10.5238 25.5 10.5243 25.5 10.5247C25.5 10.5252 25.5 10.5257 25.5 10.5262C25.5 10.5266 25.5 10.5271 25.5 10.5276C25.5 10.528 25.5 10.5285 25.5 10.529C25.5 10.5294 25.5 10.5299 25.5 10.5304C25.5 10.5309 25.5 10.5313 25.5 10.5318C25.5 10.5323 25.5 10.5327 25.5 10.5332C25.5 10.5337 25.5 10.5342 25.5 10.5346C25.5 10.5351 25.5 10.5356 25.5 10.536C25.5 10.5365 25.5 10.537 25.5 10.5375C25.5 10.5379 25.5 10.5384 25.5 10.5389C25.5 10.5393 25.5 10.5398 25.5 10.5403C25.5 10.5408 25.5 10.5412 25.5 10.5417C25.5 10.5422 25.5 10.5426 25.5 10.5431C25.5 10.5436 25.5 10.5441 25.5 10.5445C25.5 10.545 25.5 10.5455 25.5 10.5459C25.5 10.5464 25.5 10.5469 25.5 10.5474C25.5 10.5478 25.5 10.5483 25.5 10.5488C25.5 10.5492 25.5 10.5497 25.5 10.5502C25.5 10.5507 25.5 10.5511 25.5 10.5516C25.5 10.5521 25.5 10.5525 25.5 10.553C25.5 10.5535 25.5 10.554 25.5 10.5544C25.5 10.5549 25.5 10.5554 25.5 10.5558C25.5 10.5563 25.5 10.5568 25.5 10.5573C25.5 10.5577 25.5 10.5582 25.5 10.5587C25.5 10.5592 25.5 10.5596 25.5 10.5601C25.5 10.5606 25.5 10.561 25.5 10.5615C25.5 10.562 25.5 10.5625 25.5 10.5629C25.5 10.5634 25.5 10.5639 25.5 10.5644C25.5 10.5648 25.5 10.5653 25.5 10.5658C25.5 10.5662 25.5 10.5667 25.5 10.5672C25.5 10.5677 25.5 10.5681 25.5 10.5686C25.5 10.5691 25.5 10.5696 25.5 10.57C25.5 10.5705 25.5 10.571 25.5 10.5714C25.5 10.5719 25.5 10.5724 25.5 10.5729C25.5 10.5733 25.5 10.5738 25.5 10.5743C25.5 10.5748 25.5 10.5752 25.5 10.5757C25.5 10.5762 25.5 10.5766 25.5 10.5771C25.5 10.5776 25.5 10.5781 25.5 10.5785C25.5 10.579 25.5 10.5795 25.5 10.58C25.5 10.5804 25.5 10.5809 25.5 10.5814C25.5 10.5819 25.5 10.5823 25.5 10.5828C25.5 10.5833 25.5 10.5838 25.5 10.5842C25.5 10.5847 25.5 10.5852 25.5 10.5856C25.5 10.5861 25.5 10.5866 25.5 10.5871C25.5 10.5875 25.5 10.588 25.5 10.5885C25.5 10.589 25.5 10.5894 25.5 10.5899C25.5 10.5904 25.5 10.5909 25.5 10.5913C25.5 10.5918 25.5 10.5923 25.5 10.5928C25.5 10.5932 25.5 10.5937 25.5 10.5942C25.5 10.5947 25.5 10.5951 25.5 10.5956C25.5 10.5961 25.5 10.5966 25.5 10.597C25.5 10.5975 25.5 10.598 25.5 10.5985C25.5 10.5989 25.5 10.5994 25.5 10.5999C25.5 10.6004 25.5 10.6008 25.5 10.6013C25.5 10.6018 25.5 10.6023 25.5 10.6027C25.5 10.6032 25.5 10.6037 25.5 10.6042C25.5 10.6046 25.5 10.6051 25.5 10.6056C25.5 10.6061 25.5 10.6065 25.5 10.607C25.5 10.6075 25.5 10.608 25.5 10.6084C25.5 10.6089 25.5 10.6094 25.5 10.6099C25.5 10.6103 25.5 10.6108 25.5 10.6113C25.5 10.6118 25.5 10.6122 25.5 10.6127C25.5 10.6132 25.5 10.6137 25.5 10.6141C25.5 10.6146 25.5 10.6151 25.5 10.6156C25.5 10.616 25.5 10.6165 25.5 10.617C25.5 10.6175 25.5 10.6179 25.5 10.6184C25.5 10.6189 25.5 10.6194 25.5 10.6199C25.5 10.6203 25.5 10.6208 25.5 10.6213C25.5 10.6218 25.5 10.6222 25.5 10.6227C25.5 10.6232 25.5 10.6237 25.5 10.6241C25.5 10.6246 25.5 10.6251 25.5 10.6256C25.5 10.626 25.5 10.6265 25.5 10.627C25.5 10.6275 25.5 10.628 25.5 10.6284C25.5 10.6289 25.5 10.6294 25.5 10.6299C25.5 10.6303 25.5 10.6308 25.5 10.6313C25.5 10.6318 25.5 10.6322 25.5 10.6327C25.5 10.6332 25.5 10.6337 25.5 10.6342C25.5 10.6346 25.5 10.6351 25.5 10.6356C25.5 10.6361 25.5 10.6365 25.5 10.637C25.5 10.6375 25.5 10.638 25.5 10.6385C25.5 10.6389 25.5 10.6394 25.5 10.6399C25.5 10.6404 25.5 10.6408 25.5 10.6413C25.5 10.6418 25.5 10.6423 25.5 10.6428C25.5 10.6432 25.5 10.6437 25.5 10.6442C25.5 10.6447 25.5 10.6451 25.5 10.6456C25.5 10.6461 25.5 10.6466 25.5 10.6471C25.5 10.6475 25.5 10.648 25.5 10.6485C25.5 10.649 25.5 10.6495 25.5 10.6499C25.5 10.6504 25.5 10.6509 25.5 10.6514C25.5 10.6518 25.5 10.6523 25.5 10.6528C25.5 10.6533 25.5 10.6538 25.5 10.6542C25.5 10.6547 25.5 10.6552 25.5 10.6557C25.5 10.6562 25.5 10.6566 25.5 10.6571C25.5 10.6576 25.5 10.6581 25.5 10.6586C25.5 10.659 25.5 10.6595 25.5 10.66C25.5 10.6605 25.5 10.661 25.5 10.6614C25.5 10.6619 25.5 10.6624 25.5 10.6629C25.5 10.6634 25.5 10.6638 25.5 10.6643C25.5 10.6648 25.5 10.6653 25.5 10.6658C25.5 10.6662 25.5 10.6667 25.5 10.6672C25.5 10.6677 25.5 10.6682 25.5 10.6686C25.5 10.6691 25.5 10.6696 25.5 10.6701C25.5 10.6706 25.5 10.671 25.5 10.6715C25.5 10.672 25.5 10.6725 25.5 10.673C25.5 10.6734 25.5 10.6739 25.5 10.6744C25.5 10.6749 25.5 10.6754 25.5 10.6759C25.5 10.6763 25.5 10.6768 25.5 10.6773C25.5 10.6778 25.5 10.6783 25.5 10.6787C25.5 10.6792 25.5 10.6797 25.5 10.6802C25.5 10.6807 25.5 10.6811 25.5 10.6816C25.5 10.6821 25.5 10.6826 25.5 10.6831C25.5 10.6836 25.5 10.684 25.5 10.6845C25.5 10.685 25.5 10.6855 25.5 10.686C25.5 10.6864 25.5 10.6869 25.5 10.6874C25.5 10.6879 25.5 10.6884 25.5 10.6889C25.5 10.6893 25.5 10.6898 25.5 10.6903C25.5 10.6908 25.5 10.6913 25.5 10.6918C25.5 10.6922 25.5 10.6927 25.5 10.6932C25.5 10.6937 25.5 10.6942 25.5 10.6947C25.5 10.6951 25.5 10.6956 25.5 10.6961C25.5 10.6966 25.5 10.6971 25.5 10.6976C25.5 10.698 25.5 10.6985 25.5 10.699C25.5 10.6995 25.5 10.7 25.5 10.7005C25.5 10.7009 25.5 10.7014 25.5 10.7019C25.5 10.7024 25.5 10.7029 25.5 10.7034C25.5 10.7038 25.5 10.7043 25.5 10.7048C25.5 10.7053 25.5 10.7058 25.5 10.7063C25.5 10.7067 25.5 10.7072 25.5 10.7077C25.5 10.7082 25.5 10.7087 25.5 10.7092C25.5 10.7096 25.5 10.7101 25.5 10.7106C25.5 10.7111 25.5 10.7116 25.5 10.7121C25.5 10.7126 25.5 10.713 25.5 10.7135C25.5 10.714 25.5 10.7145 25.5 10.715C25.5 10.7155 25.5 10.716 25.5 10.7164C25.5 10.7169 25.5 10.7174 25.5 10.7179C25.5 10.7184 25.5 10.7189 25.5 10.7194C25.5 10.7198 25.5 10.7203 25.5 10.7208C25.5 10.7213 25.5 10.7218 25.5 10.7223C25.5 10.7228 25.5 10.7232 25.5 10.7237C25.5 10.7242 25.5 10.7247 25.5 10.7252C25.5 10.7257 25.5 10.7262 25.5 10.7266C25.5 10.7271 25.5 10.7276 25.5 10.7281C25.5 10.7286 25.5 10.7291 25.5 10.7296C25.5 10.7301 25.5 10.7305 25.5 10.731C25.5 10.7315 25.5 10.732 25.5 10.7325C25.5 10.733 25.5 10.7335 25.5 10.7339C25.5 10.7344 25.5 10.7349 25.5 10.7354C25.5 10.7359 25.5 10.7364 25.5 10.7369C25.5 10.7374 25.5 10.7378 25.5 10.7383C25.5 10.7388 25.5 10.7393 25.5 10.7398C25.5 10.7403 25.5 10.7408 25.5 10.7413C25.5 10.7418 25.5 10.7422 25.5 10.7427C25.5 10.7432 25.5 10.7437 25.5 10.7442C25.5 10.7447 25.5 10.7452 25.5 10.7457C25.5 10.7461 25.5 10.7466 25.5 10.7471C25.5 10.7476 25.5 10.7481 25.5 10.7486C25.5 10.7491 25.5 10.7496 25.5 10.7501C25.5 10.7505 25.5 10.751 25.5 10.7515C25.5 10.752 25.5 10.7525 25.5 10.753C25.5 10.7535 25.5 10.754 25.5 10.7545C25.5 10.755 25.5 10.7554 25.5 10.7559C25.5 10.7564 25.5 10.7569 25.5 10.7574C25.5 10.7579 25.5 10.7584 25.5 10.7589C25.5 10.7594 25.5 10.7599 25.5 10.7603C25.5 10.7608 25.5 10.7613 25.5 10.7618C25.5 10.7623 25.5 10.7628 25.5 10.7633C25.5 10.7638 25.5 10.7643 25.5 10.7648C25.5 10.7653 25.5 10.7657 25.5 10.7662C25.5 10.7667 25.5 10.7672 25.5 10.7677C25.5 10.7682 25.5 10.7687 25.5 10.7692C25.5 10.7697 25.5 10.7702 25.5 10.7707C25.5 10.7712 25.5 10.7716 25.5 10.7721C25.5 10.7726 25.5 10.7731 25.5 10.7736C25.5 10.7741 25.5 10.7746 25.5 10.7751C25.5 10.7756 25.5 10.7761 25.5 10.7766C25.5 10.7771 25.5 10.7776 25.5 10.778C25.5 10.7785 25.5 10.779 25.5 10.7795H29.5ZM29.5 10.0476C29.5 9.23325 29.8206 8.45602 30.3854 7.88591L27.5436 5.07092C26.2329 6.39403 25.5 8.18456 25.5 10.0476H29.5ZM30.3854 7.88591C30.9495 7.31644 31.7105 7 32.5 7V3C30.6373 3 28.8548 3.74717 27.5436 5.07092L30.3854 7.88591ZM32.5 7C33.2895 7 34.0505 7.31644 34.6146 7.88591L37.4564 5.07092C36.1452 3.74717 34.3627 3 32.5 3V7ZM34.6146 7.88591C35.1794 8.45602 35.5 9.23325 35.5 10.0476H39.5C39.5 8.18456 38.7671 6.39403 37.4564 5.07092L34.6146 7.88591ZM35.5 10.0476C35.5 10.0481 35.5 10.0486 35.5 10.0491C35.5 10.0496 35.5 10.0501 35.5 10.0506C35.5 10.0511 35.5 10.0516 35.5 10.0521C35.5 10.0525 35.5 10.053 35.5 10.0535C35.5 10.054 35.5 10.0545 35.5 10.055C35.5 10.0555 35.5 10.056 35.5 10.0565C35.5 10.057 35.5 10.0575 35.5 10.058C35.5 10.0584 35.5 10.0589 35.5 10.0594C35.5 10.0599 35.5 10.0604 35.5 10.0609C35.5 10.0614 35.5 10.0619 35.5 10.0624C35.5 10.0629 35.5 10.0634 35.5 10.0639C35.5 10.0643 35.5 10.0648 35.5 10.0653C35.5 10.0658 35.5 10.0663 35.5 10.0668C35.5 10.0673 35.5 10.0678 35.5 10.0683C35.5 10.0688 35.5 10.0692 35.5 10.0697C35.5 10.0702 35.5 10.0707 35.5 10.0712C35.5 10.0717 35.5 10.0722 35.5 10.0727C35.5 10.0732 35.5 10.0737 35.5 10.0741C35.5 10.0746 35.5 10.0751 35.5 10.0756C35.5 10.0761 35.5 10.0766 35.5 10.0771C35.5 10.0776 35.5 10.0781 35.5 10.0785C35.5 10.079 35.5 10.0795 35.5 10.08C35.5 10.0805 35.5 10.081 35.5 10.0815C35.5 10.082 35.5 10.0825 35.5 10.0829C35.5 10.0834 35.5 10.0839 35.5 10.0844C35.5 10.0849 35.5 10.
120854 35.5 10.0859C35.5 10.0864 35.5 10.0869 35.5 10.0873C35.5 10.0878 35.5 10.0883 35.5 10.0888C35.5 10.0893 35.5 10.0898 35.5 10.0903C35.5 10.0908 35.5 10.0912 35.5 10.0917C35.5 10.0922 35.5 10.0927 35.5 10.0932C35.5 10.0937 35.5 10.0942 35.5 10.0947C35.5 10.0951 35.5 10.0956 35.5 10.0961C35.5 10.0966 35.5 10.0971 35.5 10.0976C35.5 10.0981 35.5 10.0986 35.5 10.099C35.5 10.0995 35.5 10.1 35.5 10.1005C35.5 10.101 35.5 10.1015 35.5 10.102C35.5 10.1024 35.5 10.1029 35.5 10.1034C35.5 10.1039 35.5 10.1044 35.5 10.1049C35.5 10.1054 35.5 10.1058 35.5 10.1063C35.5 10.1068 35.5 10.1073 35.5 10.1078C35.5 10.1083 35.5 10.1088 35.5 10.1092C35.5 10.1097 35.5 10.1102 35.5 10.1107C35.5 10.1112 35.5 10.1117 35.5 10.1122C35.5 10.1126 35.5 10.1131 35.5 10.1136C35.5 10.1141 35.5 10.1146 35.5 10.1151C35.5 10.1156 35.5 10.116 35.5 10.1165C35.5 10.117 35.5 10.1175 35.5 10.118C35.5 10.1185 35.5 10.1189 35.5 10.1194C35.5 10.1199 35.5 10.1204 35.5 10.1209C35.5 10.1214 35.5 10.1219 35.5 10.1223C35.5 10.1228 35.5 10.1233 35.5 10.1238C35.5 10.1243 35.5 10.1248 35.5 10.1252C35.5 10.1257 35.5 10.1262 35.5 10.1267C35.5 10.1272 35.5 10.1277 35.5 10.1281C35.5 10.1286 35.5 10.1291 35.5 10.1296C35.5 10.1301 35.5 10.1306 35.5 10.131C35.5 10.1315 35.5 10.132 35.5 10.1325C35.5 10.133 35.5 10.1335 35.5 10.1339C35.5 10.1344 35.5 10.1349 35.5 10.1354C35.5 10.1359 35.5 10.1364 35.5 10.1368C35.5 10.1373 35.5 10.1378 35.5 10.1383C35.5 10.1388 35.5 10.1392 35.5 10.1397C35.5 10.1402 35.5 10.1407 35.5 10.1412C35.5 10.1417 35.5 10.1421 35.5 10.1426C35.5 10.1431 35.5 10.1436 35.5 10.1441C35.5 10.1446 35.5 10.145 35.5 10.1455C35.5 10.146 35.5 10.1465 35.5 10.147C35.5 10.1474 35.5 10.1479 35.5 10.1484C35.5 10.1489 35.5 10.1494 35.5 10.1498C35.5 10.1503 35.5 10.1508 35.5 10.1513C35.5 10.1518 35.5 10.1523 35.5 10.1527C35.5 10.1532 35.5 10.1537 35.5 10.1542C35.5 10.1547 35.5 10.1551 35.5 10.1556C35.5 10.1561 35.5 10.1566 35.5 10.1571C35.5 10.1575 35.5 10.158 35.5 10.1585C35.5 10.159 35.5 10.1595 35.5 10.1599C35.5 10.1604 35.5 10.1609 35.5 10.1614C35.5 10.1619 35.5 10.1623 35.5 10.1628C35.5 10.1633 35.5 10.1638 35.5 10.1643C35.5 10.1647 35.5 10.1652 35.5 10.1657C35.5 10.1662 35.5 10.1667 35.5 10.1671C35.5 10.1676 35.5 10.1681 35.5 10.1686C35.5 10.1691 35.5 10.1695 35.5 10.17C35.5 10.1705 35.5 10.171 35.5 10.1715C35.5 10.1719 35.5 10.1724 35.5 10.1729C35.5 10.1734 35.5 10.1739 35.5 10.1743C35.5 10.1748 35.5 10.1753 35.5 10.1758C35.5 10.1763 35.5 10.1767 35.5 10.1772C35.5 10.1777 35.5 10.1782 35.5 10.1786C35.5 10.1791 35.5 10.1796 35.5 10.1801C35.5 10.1806 35.5 10.181 35.5 10.1815C35.5 10.182 35.5 10.1825 35.5 10.183C35.5 10.1834 35.5 10.1839 35.5 10.1844C35.5 10.1849 35.5 10.1853 35.5 10.1858C35.5 10.1863 35.5 10.1868 35.5 10.1873C35.5 10.1877 35.5 10.1882 35.5 10.1887C35.5 10.1892 35.5 10.1896 35.5 10.1901C35.5 10.1906 35.5 10.1911 35.5 10.1916C35.5 10.192 35.5 10.1925 35.5 10.193C35.5 10.1935 35.5 10.1939 35.5 10.1944C35.5 10.1949 35.5 10.1954 35.5 10.1958C35.5 10.1963 35.5 10.1968 35.5 10.1973C35.5 10.1978 35.5 10.1982 35.5 10.1987C35.5 10.1992 35.5 10.1997 35.5 10.2001C35.5 10.2006 35.5 10.2011 35.5 10.2016C35.5 10.2021 35.5 10.2025 35.5 10.203C35.5 10.2035 35.5 10.204 35.5 10.2044C35.5 10.2049 35.5 10.2054 35.5 10.2059C35.5 10.2063 35.5 10.2068 35.5 10.2073C35.5 10.2078 35.5 10.2082 35.5 10.2087C35.5 10.2092 35.5 10.2097 35.5 10.2101C35.5 10.2106 35.5 10.2111 35.5 10.2116C35.5 10.2121 35.5 10.2125 35.5 10.213C35.5 10.2135 35.5 10.214 35.5 10.2144C35.5 10.2149 35.5 10.2154 35.5 10.2159C35.5 10.2163 35.5 10.2168 35.5 10.2173C35.5 10.2178 35.5 10.2182 35.5 10.2187C35.5 10.2192 35.5 10.2197 35.5 10.2201C35.5 10.2206 35.5 10.2211 35.5 10.2216C35.5 10.222 35.5 10.2225 35.5 10.223C35.5 10.2235 35.5 10.2239 35.5 10.2244C35.5 10.2249 35.5 10.2254 35.5 10.2258C35.5 10.2263 35.5 10.2268 35.5 10.2273C35.5 10.2277 35.5 10.2282 35.5 10.2287C35.5 10.2292 35.5 10.2296 35.5 10.2301C35.5 10.2306 35.5 10.2311 35.5 10.2315C35.5 10.232 35.5 10.2325 35.5 10.233C35.5 10.2334 35.5 10.2339 35.5 10.2344C35.5 10.2349 35.5 10.2353 35.5 10.2358C35.5 10.2363 35.5 10.2368 35.5 10.2372C35.5 10.2377 35.5 10.2382 35.5 10.2387C35.5 10.2391 35.5 10.2396 35.5 10.2401C35.5 10.2405 35.5 10.241 35.5 10.2415C35.5 10.242 35.5 10.2424 35.5 10.2429C35.5 10.2434 35.5 10.2439 35.5 10.2443C35.5 10.2448 35.5 10.2453 35.5 10.2458C35.5 10.2462 35.5 10.2467 35.5 10.2472C35.5 10.2477 35.5 10.2481 35.5 10.2486C35.5 10.2491 35.5 10.2495 35.5 10.25C35.5 10.2505 35.5 10.251 35.5 10.2514C35.5 10.2519 35.5 10.2524 35.5 10.2529C35.5 10.2533 35.5 10.2538 35.5 10.2543C35.5 10.2548 35.5 10.2552 35.5 10.2557C35.5 10.2562 35.5 10.2566 35.5 10.2571C35.5 10.2576 35.5 10.2581 35.5 10.2585C35.5 10.259 35.5 10.2595 35.5 10.26C35.5 10.2604 35.5 10.2609 35.5 10.2614C35.5 10.2618 35.5 10.2623 35.5 10.2628C35.5 10.2633 35.5 10.2637 35.5 10.2642C35.5 10.2647 35.5 10.2652 35.5 10.2656C35.5 10.2661 35.5 10.2666 35.5 10.267C35.5 10.2675 35.5 10.268 35.5 10.2685C35.5 10.2689 35.5 10.2694 35.5 10.2699C35.5 10.2703 35.5 10.2708 35.5 10.2713C35.5 10.2718 35.5 10.2722 35.5 10.2727C35.5 10.2732 35.5 10.2737 35.5 10.2741C35.5 10.2746 35.5 10.2751 35.5 10.2755C35.5 10.276 35.5 10.2765 35.5 10.277C35.5 10.2774 35.5 10.2779 35.5 10.2784C35.5 10.2788 35.5 10.2793 35.5 10.2798C35.5 10.2803 35.5 10.2807 35.5 10.2812C35.5 10.2817 35.5 10.2821 35.5 10.2826C35.5 10.2831 35.5 10.2836 35.5 10.284C35.5 10.2845 35.5 10.285 35.5 10.2854C35.5 10.2859 35.5 10.2864 35.5 10.2869C35.5 10.2873 35.5 10.2878 35.5 10.2883C35.5 10.2887 35.5 10.2892 35.5 10.2897C35.5 10.2902 35.5 10.2906 35.5 10.2911C35.5 10.2916 35.5 10.292 35.5 10.2925C35.5 10.293 35.5 10.2935 35.5 10.2939C35.5 10.2944 35.5 10.2949 35.5 10.2953C35.5 10.2958 35.5 10.2963 35.5 10.2968C35.5 10.2972 35.5 10.297
127 35.5 10.2982C35.5 10.2986 35.5 10.2991 35.5 10.2996C35.5 10.3 35.5 10.3005 35.5 10.301C35.5 10.3015 35.5 10.3019 35.5 10.3024C35.5 10.3029 35.5 10.3033 35.5 10.3038C35.5 10.3043 35.5 10.3048 35.5 10.3052C35.5 10.3057 35.5 10.3062 35.5 10.3066C35.5 10.3071 35.5 10.3076 35.5 10.308C35.5 10.3085 35.5 10.309 35.5 10.3095C35.5 10.3099 35.5 10.3104 35.5 10.3109C35.5 10.3113 35.5 10.3118 35.5 10.3123C35.5 10.3128 35.5 10.3132 35.5 10.3137C35.5 10.3142 35.5 10.3146 35.5 10.3151C35.5 10.3156 35.5 10.316 35.5 10.3165C35.5 10.317 35.5 10.3175 35.5 10.3179C35.5 10.3184 35.5 10.3189 35.5 10.3193C35.5 10.3198 35.5 10.3203 35.5 10.3207C35.5 10.3212 35.5 10.3217 35.5 10.3222C35.5 10.3226 35.5 10.3231 35.5 10.3236C35.5 10.324 35.5 10.3245 35.5 10.325C35.5 10.3254 35.5 10.3259 35.5 10.3264C35.5 10.3269 35.5 10.3273 35.5 10.3278C35.5 10.3283 35.5 10.3287 35.5 10.3292C35.5 10.3297 35.5 10.3301 35.5 10.3306C35.5 10.3311 35.5 10.3315 35.5 10.332C35.5 10.3325 35.5 10.333 35.5 10.3334C35.5 10.3339 35.5 10.3344 35.5 10.3348C35.5 10.3353 35.5 10.3358 35.5 10.3362C35.5 10.3367 35.5 10.3372 35.5 10.3376C35.5 10.3381 35.5 10.3386 35.5 10.3391C35.5 10.3395 35.5 10.34 35.5 10.3405C35.5 10.3409 35.5 10.3414 35.5 10.3419C35.5 10.3423 35.5 10.3428 35.5 10.3433C35.5 10.3438 35.5 10.3442 35.5 10.3447C35.5 10.3452 35.5 10.3456 35.5 10.3461C35.5 10.3466 35.5 10.347 35.5 10.3475C35.5 10.348 35.5 10.3484 35.5 10.3489C35.5 10.3494 35.5 10.3498 35.5 10.3503C35.5 10.3508 35.5 10.3513 35.5 10.3517C35.5 10.3522 35.5 10.3527 35.5 10.3531C35.5 10.3536 35.5 10.3541 35.5 10.3545C35.5 10.355 35.5 10.3555 35.5 10.3559C35.5 10.3564 35.5 10.3569 35.5 10.3574C35.5 10.3578 35.5 10.3583 35.5 10.3588C35.5 10.3592 35.5 10.3597 35.5 10.3602C35.5 10.3606 35.5 10.3611 35.5 10.3616C35.5 10.362 35.5 10.3625 35.5 10.363C35.5 10.3634 35.5 10.3639 35.5 10.3644C35.5 10.3649 35.5 10.3653 35.5 10.3658C35.5 10.3663 35.5 10.3667 35.5 10.3672C35.5 10.3677 35.5 10.3681 35.5 10.3686C35.5 10.3691 35.5 10.3695 35.5 10.37C35.5 10.3705 35.5 10.3709 35.5 10.3714C35.5 10.3719 35.5 10.3724 35.5 10.3728C35.5 10.3733 35.5 10.3738 35.5 10.3742C35.5 10.3747 35.5 10.3752 35.5 10.3756C35.5 10.3761 35.5 10.3766 35.5 10.377C35.5 10.3775 35.5 10.378 35.5 10.3784C35.5 10.3789 35.5 10.3794 35.5 10.3798C35.5 10.3803 35.5 10.3808 35.5 10.3813C35.5 10.3817 35.5 10.3822 35.5 10.3827C35.5 10.3831 35.5 10.3836 35.5 10.3841C35.5 10.3845 35.5 10.385 35.5 10.3855C35.5 10.3859 35.5 10.3864 35.5 10.3869C35.5 10.3873 35.5 10.3878 35.5 10.3883C35.5 10.3888 35.5 10.3892 35.5 10.3897C35.5 10.3902 35.5 10.3906 35.5 10.3911C35.5 10.3916 35.5 10.392 35.5 10.3925C35.5 10.393 35.5 10.3934 35.5 10.3939C35.5 10.3944 35.5 10.3948 35.5 10.3953C35.5 10.3958 35.5 10.3962 35.5 10.3967C35.5 10.3972 35.5 10.3976 35.5 10.3981C35.5 10.3986 35.5 10.3991 35.5 10.3995C35.5 10.4 35.5 10.4005 35.5 10.4009C35.5 10.4014 35.5 10.4019 35.5 10.4023C35.5 10.4028 35.5 10.4033 35.5 10.4037C35.5 10.4042 35.5 10.4047 35.5 10.4051C35.5 10.4056 35.5 10.4061 35.5 10.4065C35.5 10.407 35.5 10.4075 35.5 10.408C35.5 10.4084 35.5 10.4089 35.5 10.4094C35.5 10.4098 35.5 10.4103 35.5 10.4108C35.5 10.4112 35.5 10.4117 35.5 10.4122C35.5 10.4126 35.5 10.4131 35.5 10.4136C35.5 10.414 35.5 10.4145 35.5 10.415C35.5 10.4154 35.5 10.4159 35.5 10.4164C35.5 10.4168 35.5 10.4173 35.5 10.4178C35.5 10.4183 35.5 10.4187 35.5 10.4192C35.5 10.4197 35.5 10.4201 35.5 10.4206C35.5 10.4211 35.5 10.4215 35.5 10.422C35.5 10.4225 35.5 10.4229 35.5 10.4234C35.5 10.4239 35.5 10.4243 35.5 10.4248C35.5 10.4253 35.5 10.4257 35.5 10.4262C35.5 10.4267 35.5 10.4272 35.5 10.4276C35.5 10.4281 35.5 10.4286 35.5 10.429C35.5 10.4295 35.5 10.43 35.5 10.4304C35.5 10.4309 35.5 10.4314 35.5 10.4318C35.5 10.4323 35.5 10.4328 35.5 10.4332C35.5 10.4337 35.5 10.4342 35.5 10.4346C35.5 10.4351 35.5 10.4356 35.5 10.4361C35.5 10.4365 35.5 10.437 35.5 10.4375C35.5 10.4379 35.5 10.4384 35.5 10.4389C35.5 10.4393 35.5 10.4398 35.5 10.4403C35.5 10.4407 35.5 10.4412 35.5 10.4417C35.5 10.4421 35.5 10.4426 35.5 10.4431C35.5 10.4435 35.5 10.444 35.5 10.4445C35.5 10.445 35.5 10.4454 35.5 10.4459C35.5 10.4464 35.5 10.4468 35.5 10.4473C35.5 10.4478 35.5 10.4482 35.5 10.4487C35.5 10.4492 35.5 10.4496 35.5 10.4501C35.5 10.4506 35.5 10.451 35.5 10.4515C35.5 10.452 35.5 10.4524 35.5 10.4529C35.5 10.4534 35.5 10.4539 35.5 10.4543C35.5 10.4548 35.5 10.4553 35.5 10.4557C35.5 10.4562 35.5 10.4567 35.5 10.4571C35.5 10.4576 35.5 10.4581 35.5 10.4585C35.5 10.459 35.5 10.4595 35.5 10.4599C35.5 10.4604 35.5 10.4609 35.5 10.4614C35.5 10.4618 35.5 10.4623 35.5 10.4628C35.5 10.4632 35.5 10.4637 35.5 10.4642C35.5 10.4646 35.5 10.4651 35.5 10.4656C35.5 10.466 35.5 10.4665 35.5 10.467C35.5 10.4674 35.5 10.4679 35.5 10.4684C35.5 10.4689 35.5 10.4693 35.5 10.4698C35.5 10.4703 35.5 10.4707 35.5 10.4712C35.5 10.4717 35.5 10.4721 35.5 10.4726C35.5 10.4731 35.5 10.4735 35.5 10.474C35.5 10.4745 35.5 10.4749 35.5 10.4754C35.5 10.4759 35.5 10.4764 35.5 10.4768C35.5 10.4773 35.5 10.4778 35.5 10.4782C35.5 10.4787 35.5 10.4792 35.5 10.4796C35.5 10.4801 35.5 10.4806 35.5 10.481C35.5 10.4815 35.5 10.482 35.5 10.4825C35.5 10.4829 35.5 10.4834 35.5 10.4839C35.5 10.4843 35.5 10.4848 35.5 10.4853C35.5 10.4857 35.5 10.4862 35.5 10.4867C35.5 10.4871 35.5 10.4876 35.5 10.4881C35.5 10.4886 35.5 10.489 35.5 10.4895C35.5 10.49 35.5 10.4904 35.5 10.4909C35.5 10.4914 35.5 10.4918 35.5 10.4923C35.5 10.4928 35.5 10.4932 35.5 10.4937C35.5 10.4942 35.5 10.4947 35.5 10.4951C35.5 10.4956 35.5 10.4961 35.5 10.4965C35.5 10.497 35.5 10.4975 35.5 10.4979C35.5 10.4984 35.5 10.4989 35.5 10.4994C35.5 10.4998 35.5 10.5003 35.5 10.5008C35.5 10.5012 35.5 10.5017 35.5 10.5022C35.5 10.5026 35.5 10.5031 35.5 10.5036C35.5 10.5041 35.5 10.5045 35.5 10.505C35.5 10.5055 35.5 10.5059 35.5 10.5064C35.5 10.5069 35.5 10.5073 35.5 10.5078C35.5 10.5083 35.5 10.5087 35.5 10.5092C35.5 10.5097 35.5 10.5102 35.5 10.5106C35.5 10.5111 35.5 10.5116 35.5 10.512C35.5 10.5125 35.5 10.513 35.5 10.5135C35.5 10.5139 35.5 10.5144 35.5 10.5149C35.5 10.5153 35.5 10.5158 35.5 10.5163C35.5 10.5167 35.5 10.5172 35.5 10.5177C35.5 10.5182 35.5 10.5186 35.5 10.5191C35.5 10.5196 35.5 10.52 35.5 10.5205C35.5 10.521 35.5 10.5214 35.5 10.5219C35.5 10.5224 35.5 10.5229 35.5 10.5233C35.5 10.5238 35.5 10.5243 35.5 10.5247C35.5 10.5252 35.5 10.5257 35.5 10.5262C35.5 10.5266 35.5 10.5271 35.5 10.5276C35.5 10.528 35.5 10.5285 35.5 10.529C35.5 10.5294 35.5 10.5299 35.5 10.5304C35.5 10.5309 35.5 10.5313 35.5 10.5318C35.5 10.5323 35.5 10.5327 35.5 10.5332C35.5 10.5337 35.5 10.5342 35.5 10.5346C35.5 10.5351 35.5 10.5356 35.5 10.536C35.5 10.5365 35.5 10.537 35.5 10.5375C35.5 10.5379 35.5 10.5384 35.5 10.5389C35.5 10.5393 35.5 10.5398 35.5 10.5403C35.5 10.5408 35.5 10.5412 35.5 10.5417C35.5 10.5422 35.5 10.5426 35.5 10.5431C35.5 10.5436 35.5 10.5441 35.5 10.5445C35.5 10.545 35.5 10.5455 35.5 10.5459C35.5 10.5464 35.5 10.5469 35.5 10.5474C35.5 10.5478 35.5 10.5483 35.5 10.5488C35.5 10.5492 35.5 10.5497 35.5 10.5502C35.5 10.5507 35.5 10.5511 35.5 10.5516C35.5 10.5521 35.5 10.5525 35.5 10.553C35.5 10.5535 35.5 10.554 35.5 10.5544C35.5 10.5549 35.5 10.5554 35.5 10.5558C35.5 10.5563 35.5 10.5568 35.5 10.5573C35.5 10.5577 35.5 10.5582 35.5 10.5587C35.5 10.5592 35.5 10.5596 35.5 10.5601C35.5 10.5606 35.5 10.561 35.5 10.5615C35.5 10.562 35.5 10.5625 35.5 10.5629C35.5 10.5634 35.5 10.5639 35.5 10.5644C35.5 10.5648 35.5 10.5653 35.5 10.5658C35.5 10.5662 35.5 10.5667 35.5 10.5672C35.5 10.5677 35.5 10.5681 35.5 10.5686C35.5 10.5691 35.5 10.5696 35.5 10.57C35.5 10.5705 35.5 10.571 35.5 10.5714C35.5 10.5719 35.5 10.5724 35.5 10.5729C35.5 10.5733 35.5 10.5738 35.5 10.5743C35.5 10.5748 35.5 10.5752 35.5 10.5757C35.5 10.5762 35.5 10.5766 35.5 10.5771C35.5 10.5776 35.5 10.5781 35.5 10.5785C35.5 10.579 35.5 10.5795 35.5 10.58C35.5 10.5804 35.5 10.5809 35.5 10.5814C35.5 10.5819 35.5 10.5823 35.5 10.5828C35.5 10.5833 35.5 10.5838 35.5 10.5842C35.5 10.5847 35.5 10.5852 35.5 10.5856C35.5 10.5861 35.5 10.5866 35.5 10.5871C35.5 10.5875 35.5 10.588 35.5 10.5885C35.5 10.589 35.5 10.5894 35.5 10.5899C35.5 10.5904 35.5 10.5909 35.5 10.5913C35.5 10.5918 35.5 10.5923 35.5 10.5928C35.5 10.5932 35.5 10.5937 35.5 10.5942C35.5 10.5947 35.5 10.5951 35.5 10.5956C35.5 10.5961 35.5 10.5966 35.5 10.597C35.5 10.5975 35.5 10.598 35.5 10.5985C35.5 10.5989 35.5 10.5994 35.5 10.5999C35.5 10.6004 35.5 10.6008 35.5 10.6013C35.5 10.6018 35.5 10.6023 35.5 10.6027C35.5 10.6032 35.5 10.6037 35.5 10.6042C35.5 10.6046 35.5 10.6051 35.5 10.6056C35.5 10.6061 35.5 10.6065 35.5 10.607C35.5 10.6075 35.5 10.608 35.5 10.6084C35.5 10.6089 35.5 10.6094 35.5 10.6099C35.5 10.6103 35.5 10.6108 35.5 10.6113C35.5 10.6118 35.5 10.6122 35.5 10.6127C35.5 10.6132 35.5 10.6137 35.5 10.6141C35.5 10.6146 35.5 10.6151 35.5 10.6156C35.5 10.616 35.5 10.6165 35.5 10.617C35.5 10.6175 35.5 10.6179 35.5 10.6184C35.5 10.6189 35.5 10.6194 35.5 10.6199C35.5 10.6203 35.5 10.6208 35.5 10.6213C35.5 10.6218 35.5 10.6222 35.5 10.6227C35.5 10.6232 35.5 10.6237 35.5 10.6241C35.5 10.6246 35.5 10.6251 35.5 10.6256C35.5 10.626 35.5 10.6265 35.5 10.627C35.5 10.6275 35.5 10.628 35.5 10.6284C35.5 10.6289 35.5 10.6294 35.5 10.6299C35.5 10.6303 35.5 10.6308 35.5 10.6313C35.5 10.6318 35.5 10.6322 35.5 10.6327C35.5 10.6332 35.5 10.6337 35.5 10.6342C35.5 10.6346 35.5 10.6351 35.5 10.6356C35.5 10.6361 35.5 10.6365 35.5 10.637C35.5 10.6375 35.5 10.638 35.5 10.6385C35.5 10.6389 35.5 10.6394 35.5 10.6399C35.5 10.6404 35.5 10.6408 35.5 10.6413C35.5 10.6418 35.5 10.6423 35.5 10.6428C35.5 10.6432 35.5 10.6437 35.5 10.6442C35.5 10.6447 35.5 10.6451 35.5 10.6456C35.5 10.6461 35.5 10.6466 35.5 10.6471C35.5 10.6475 35.5 10.648 35.5 10.6485C35.5 10.649 35.5 10.6495 35.5 10.6499C35.5 10.6504 35.5 10.6509 35.5 10.6514C35.5 10.6518 35.5 10.6523 35.5 10.6528C35.5 10.6533 35.5 10.6538 35.5 10.6542C35.5 10.6547 35.5 10.6552 35.5 10.6557C35.5 10.6562 35.5 10.6566 35.5 10.6571C35.5 10.6576 35.5 10.6581 35.5 10.6586C35.5 10.659 35.5 10.6595 35.5 10.66C35.5 10.6605 35.5 10.661 35.5 10.6614C35.5 10.6619 35.5 10.6624 35.5 10.6629C35.5 10.6634 35.5 10.6638 35.5 10.6643C35.5 10.6648 35.5 10.6653 35.5 10.6658C35.5 10.6662 35.5 10.6667 35.5 10.6672C35.5 10.6677 35.5 10.6682 35.5 10.6686C35.5 10.6691 35.5 10.6696 35.5 10.6701C35.5 10.6706 35.5 10.671 35.5 10.6715C35.5 10.672 35.5 10.6725 35.5 10.673C35.5 10.6734 35.5 10.6739 35.5 10.6744C35.5 10.6749 35.5 10.6754 35.5 10.6759C35.5 10.6763 35.5 10.6768 35.5 10.6773C35.5 10.6778 35.5 10.6783 35.5 10.6787C35.5 10.6792 35.5 10.6797 35.5 10.6802C35.5 10.6807 35.5 10.6811 35.5 10.6816C35.5 10.6821 35.5 10.6826 35.5 10.6831C35.5 10.6836 35.5 10.684 35.5 10.6845C35.5 10.685 35.5 10.6855 35.5 10.686C35.5 10.6864 35.5 10.6869 35.5 10.6874C35.5 10.6879 35.5 10.6884 35.5 10.6889C35.5 10.6893 35.5 10.6898 35.5 10.6903C35.5 10.6908 35.5 10.6913 35.5 10.6918C35.5 10.6922 35.5 10.6927 35.5 10.6932C35.5 10.6937 35.5 10.6942 35.5 10.6947C35.5 10.6951 35.5 10.6956 35.5 10.6961C35.5 10.6966 35.5 10.6971 35.5 10.6976C35.5 10.698 35.5 10.6985 35.5 10.699C35.5 10.6995 35.5 10.7 35.5 10.7005C35.5 10.7009 35.5 10.7014 35.5 10.7019C35.5 10.7024 35.5 10.7029 35.5 10.7034C35.5 10.7038 35.5 10.7043 35.5 10.7048C35.5 10.7053 35.5 10.7058 35.5 10.7063C35.5 10.7067 35.5 10.7072 35.5 10.7077C35.5 10.7082 35.5 10.7087 35.5 10.7092C35.5 10.7096 35.5 10.7101 35.5 10.7106C35.5 10.7111 35.5 10.7116 35.5 10.7121C35.5 10.7126 35.5 10.713 35.5 10.7135C35.5 10.714 35.5 10.7145 35.5 10.715C35.5 10.7155 35.5 10.716 35.5 10.7164C35.5 10.7169 35.5 10.7174 35.5 10.7179C35.5 10.7184 35.5 10.7189 35.5 10.7194C35.5 10.7198 35.5 10.7203 35.5 10.7208C35.5 10.7213 35.5 10.7218 35.5 10.7223C35.5 10.7228 35.5 10.7232 35.5 10.7237C35.5 10.7242 35.5 10.7247 35.5 10.7252C35.5 10.7257 35.5 10.7262 35.5 10.7266C35.5 10.7271 35.5 10.7276 35.5 10.7281C35.5 10.7286 35.5 10.7291 35.5 10.7296C35.5 10.7301 35.5 10.7305 35.5 10.731C35.5 10.7315 35.5 10.732 35.5 10.7325C35.5 10.733 35.5 10.7335 35.5 10.7339C35.5 10.7344 35.5 10.7349 35.5 10.7354C35.5 10.7359 35.5 10.7364 35.5 10.7369C35.5 10.7374 35.5 10.7378 35.5 10.7383C35.5 10.7388 35.5 10.7393 35.5 10.7398C35.5 10.7403 35.5 10.7408 35.5 10.7413C35.5 10.7418 35.5 10.7422 35.5 10.7427C35.5 10.7432 35.5 10.7437 35.5 10.7442C35.5 10.7447 35.5 10.7452 35.5 10.7457C35.5 10.7461 35.5 10.7466 35.5 10.7471C35.5 10.7476 35.5 10.7481 35.5 10.7486C35.5 10.7491 35.5 10.7496 35.5 10.7501C35.5 10.7505 35.5 10.751 35.5 10.7515C35.5 10.752 35.5 10.7525 35.5 10.753C35.5 10.7535 35.5 10.754 35.5 10.7545C35.5 10.755 35.5 10.7554 35.5 10.7559C35.5 10.7564 35.5 10.7569 35.5 10.7574C35.5 10.7579 35.5 10.7584 35.5 10.7589C35.5 10.7594 35.5 10.7599 35.5 10.7603C35.5 10.7608 35.5 10.7613 35.5 10.7618C35.5 10.7623 35.5 10.7628 35.5 10.7633C35.5 10.7638 35.5 10.7643 35.5 10.7648C35.5 10.7653 35.5 10.7657 35.5 10.7662C35.5 10.7667 35.5 10.7672 35.5 10.7677C35.5 10.7682 35.5 10.7687 35.5 10.7692C35.5 10.7697 35.5 10.7702 35.5 10.7707C35.5 10.7712 35.5 10.7716 35.5 10.7721C35.5 10.7726 35.5 10.7731 35.5 10.7736C35.5 10.7741 35.5 10.7746 35.5 10.7751C35.5 10.7756 35.5 10.7761 35.5 10.7766C35.5 10.7771 35.5 10.7776 35.5 10.778C35.5 10.7785 35.5 10.779 35.5 10.7795H39.5C39.5 10.779 39.5 10.7785 39.5 10.778C39.5 10.7776 39.5 10.7771 39.5 10.7766C39.5 10.7761 39.5 10.7756 39.5 10.7751C39.5 10.7746 39.5 10.7741 39.5 10.7736C39.5 10.7731 39.5 10.7726 39.5 10.7721C39.5 10.7716 39.5 10.7712 39.5 10.7707C39.5 10.7702 39.5 10.7697 39.5 10.7692C39.5 10.7687 39.5 10.7682 39.5 10.7677C39.5 10.7672 39.5 10.7667 39.5 10.7662C39.5 10.7657 39.5 10.7653 39.5 10.7648C39.5 10.7643 39.5 10.7638 39.5 10.7633C39.5 10.7628 39.5 10.7623 39.5 10.7618C39.5 10.7613 39.5 10.7608 39.5 10.7603C39.5 10.7599 39.5 10.7594 39.5 10.7589C39.5 10.7584 39.5 10.7579 39.5 10.7574C39.5 10.7569 39.5 10.7564 39.5 10.7559C39.5 10.7554 39.5 10.755 39.5 10.7545C39.5 10.754 39.5 10.7535 39.5 10.753C39.5 10.7525 39.5 10.752 39.5 10.7515C39.5 10.751 39.5 10.7505 39.5 10.7501C39.5 10.7496 39.5 10.7491 39.5 10.7486C39.5 10.7481 39.5 10.7476 39.5 10.7471C39.5 10.7466 39.5 10.7461 39.5 10.7457C39.5 10.7452 39.5 10.7447 39.5 10.7442C39.5 10.7437 39.5 10.7432 39.5 10.7427C39.5 10.7422 39.5 10.7418 39.5 10.7413C39.5 10.7408 39.5 10.7403 39.5 10.7398C39.5 10.7393 39.5 10.7388 39.5 10.7383C39.5 10.7378 39.5 10.7374 39.5 10.7369C39.5 10.7364 39.5 10.7359 39.5 10.7354C39.5 10.7349 39.5 10.7344 39.5 10.7339C39.5 10.7335 39.5 10.733 39.5 10.7325C39.5 10.732 39.5 10.7315 39.5 10.731C39.5 10.7305 39.5 10.7301 39.5 10.7296C39.5 10.7291 39.5 10.7286 39.5 10.7281C39.5 10.7276 39.5 10.7271 39.5 10.7266C39.5 10.7262 39.5 10.7257 39.5 10.7252C39.5 10.7247 39.5 10.7242 39.5 10.7237C39.5 10.7232 39.5 10.7228 39.5 10.7223C39.5 10.7218 39.5 10.7213 39.5 10.7208C39.5 10.7203 39.5 10.7198 39.5 10.7194C39.5 10.7189 39.5 10.7184 39.5 10.7179C39.5 10.7174 39.5 10.7169 39.5 10.7164C39.5 10.716 39.5 10.7155 39.5 10.715C39.5 10.7145 39.5 10.714 39.5 10.7135C39.5 10.713 39.5 10.7126 39.5 10.7121C39.5 10.7116 39.5 10.7111 39.5 10.7106C39.5 10.7101 39.5 10.7096 39.5 10.7092C39.5 10.7087 39.5 10.7082 39.5 10.7077C39.5 10.7072 39.5 10.7067 39.5 10.7063C39.5 10.70
1258 39.5 10.7053 39.5 10.7048C39.5 10.7043 39.5 10.7038 39.5 10.7034C39.5 10.7029 39.5 10.7024 39.5 10.7019C39.5 10.7014 39.5 10.7009 39.5 10.7005C39.5 10.7 39.5 10.6995 39.5 10.699C39.5 10.6985 39.5 10.698 39.5 10.6976C39.5 10.6971 39.5 10.6966 39.5 10.6961C39.5 10.6956 39.5 10.6951 39.5 10.6947C39.5 10.6942 39.5 10.6937 39.5 10.6932C39.5 10.6927 39.5 10.6922 39.5 10.6918C39.5 10.6913 39.5 10.6908 39.5 10.6903C39.5 10.6898 39.5 10.6893 39.5 10.6889C39.5 10.6884 39.5 10.6879 39.5 10.6874C39.5 10.6869 39.5 10.6864 39.5 10.686C39.5 10.6855 39.5 10.685 39.5 10.6845C39.5 10.684 39.5 10.6836 39.5 10.6831C39.5 10.6826 39.5 10.6821 39.5 10.6816C39.5 10.6811 39.5 10.6807 39.5 10.6802C39.5 10.6797 39.5 10.6792 39.5 10.6787C39.5 10.6783 39.5 10.6778 39.5 10.6773C39.5 10.6768 39.5 10.6763 39.5 10.6759C39.5 10.6754 39.5 10.6749 39.5 10.6744C39.5 10.6739 39.5 10.6734 39.5 10.673C39.5 10.6725 39.5 10.672 39.5 10.6715C39.5 10.671 39.5 10.6706 39.5 10.6701C39.5 10.6696 39.5 10.6691 39.5 10.6686C39.5 10.6682 39.5 10.6677 39.5 10.6672C39.5 10.6667 39.5 10.6662 39.5 10.6658C39.5 10.6653 39.5 10.6648 39.5 10.6643C39.5 10.6638 39.5 10.6634 39.5 10.6629C39.5 10.6624 39.5 10.6619 39.5 10.6614C39.5 10.661 39.5 10.6605 39.5 10.66C39.5 10.6595 39.5 10.659 39.5 10.6586C39.5 10.6581 39.5 10.6576 39.5 10.6571C39.5 10.6566 39.5 10.6562 39.5 10.6557C39.5 10.6552 39.5 10.6547 39.5 10.6542C39.5 10.6538 39.5 10.6533 39.5 10.6528C39.5 10.6523 39.5 10.6518 39.5 10.6514C39.5 10.6509 39.5 10.6504 39.5 10.6499C39.5 10.6495 39.5 10.649 39.5 10.6485C39.5 10.648 39.5 10.6475 39.5 10.6471C39.5 10.6466 39.5 10.6461 39.5 10.6456C39.5 10.6451 39.5 10.6447 39.5 10.6442C39.5 10.6437 39.5 10.6432 39.5 10.6428C39.5 10.6423 39.5 10.6418 39.5 10.6413C39.5 10.6408 39.5 10.6404 39.5 10.6399C39.5 10.6394 39.5 10.6389 39.5 10.6385C39.5 10.638 39.5 10.6375 39.5 10.637C39.5 10.6365 39.5 10.6361 39.5 10.6356C39.5 10.6351 39.5 10.6346 39.5 10.6342C39.5 10.6337 39.5 10.6332 39.5 10.6327C39.5 10.6322 39.5 10.6318 39.5 10.6313C39.5 10.6308 39.5 10.6303 39.5 10.6299C39.5 10.6294 39.5 10.6289 39.5 10.6284C39.5 10.628 39.5 10.6275 39.5 10.627C39.5 10.6265 39.5 10.626 39.5 10.6256C39.5 10.6251 39.5 10.6246 39.5 10.6241C39.5 10.6237 39.5 10.6232 39.5 10.6227C39.5 10.6222 39.5 10.6218 39.5 10.6213C39.5 10.6208 39.5 10.6203 39.5 10.6199C39.5 10.6194 39.5 10.6189 39.5 10.6184C39.5 10.6179 39.5 10.6175 39.5 10.617C39.5 10.6165 39.5 10.616 39.5 10.6156C39.5 10.6151 39.5 10.6146 39.5 10.6141C39.5 10.6137 39.5 10.6132 39.5 10.6127C39.5 10.6122 39.5 10.6118 39.5 10.6113C39.5 10.6108 39.5 10.6103 39.5 10.6099C39.5 10.6094 39.5 10.6089 39.5 10.6084C39.5 10.608 39.5 10.6075 39.5 10.607C39.5 10.6065 39.5 10.6061 39.5 10.6056C39.5 10.6051 39.5 10.6046 39.5 10.6042C39.5 10.6037 39.5 10.6032 39.5 10.6027C39.5 10.6023 39.5 10.6018 39.5 10.6013C39.5 10.6008 39.5 10.6004 39.5 10.5999C39.5 10.5994 39.5 10.5989 39.5 10.5985C39.5 10.598 39.5 10.5975 39.5 10.597C39.5 10.5966 39.5 10.5961 39.5 10.5956C39.5 10.5951 39.5 10.5947 39.5 10.5942C39.5 10.5937 39.5 10.5932 39.5 10.5928C39.5 10.5923 39.5 10.5918 39.5 10.5913C39.5 10.5909 39.5 10.5904 39.5 10.5899C39.5 10.5894 39.5 10.589 39.5 10.5885C39.5 10.588 39.5 10.5875 39.5 10.5871C39.5 10.5866 39.5 10.5861 39.5 10.5856C39.5 10.5852 39.5 10.5847 39.5 10.5842C39.5 10.5838 39.5 10.5833 39.5 10.5828C39.5 10.5823 39.5 10.5819 39.5 10.5814C39.5 10.5809 39.5 10.5804 39.5 10.58C39.5 10.5795 39.5 10.579 39.5 10.5785C39.5 10.5781 39.5 10.5776 39.5 10.5771C39.5 10.5766 39.5 10.5762 39.5 10.5757C39.5 10.5752 39.5 10.5748 39.5 10.5743C39.5 10.5738 39.5 10.5733 39.5 10.5729C39.5 10.5724 39.5 10.5719 39.5 10.5714C39.5 10.571 39.5 10.5705 39.5 10.57C39.5 10.5696 39.5 10.5691 39.5 10.5686C39.5 10.5681 39.5 10.5677 39.5 10.5672C39.5 10.5667 39.5 10.5662 39.5 10.5658C39.5 10.5653 39.5 10.5648 39.5 10.5644C39.5 10.5639 39.5 10.5634 39.5 10.5629C39.5 10.5625 39.5 10.562 39.5 10.5615C39.5 10.561 39.5 10.5606 39.5 10.5601C39.5 10.5596 39.5 10.5592 39.5 10.5587C39.5 10.5582 39.5 10.5577 39.5 10.5573C39.5 10.5568 39.5 10.5563 39.5 10.5558C39.5 10.5554 39.5 10.5549 39.5 10.5544C39.5 10.554 39.5 10.5535 39.5 10.553C39.5 10.5525 39.5 10.5521 39.5 10.5516C39.5 10.5511 39.5 10.5507 39.5 10.5502C39.5 10.5497 39.5 10.5492 39.5 10.5488C39.5 10.5483 39.5 10.5478 39.5 10.5474C39.5 10.5469 39.5 10.5464 39.5 10.5459C39.5 10.5455 39.5 10.545 39.5 10.5445C39.5 10.5441 39.5 10.5436 39.5 10.5431C39.5 10.5426 39.5 10.5422 39.5 10.5417C39.5 10.5412 39.5 10.5408 39.5 10.5403C39.5 10.5398 39.5 10.5393 39.5 10.5389C39.5 10.5384 39.5 10.5379 39.5 10.5375C39.5 10.537 39.5 10.5365 39.5 10.536C39.5 10.5356 39.5 10.5351 39.5 10.5346C39.5 10.5342 39.5 10.5337 39.5 10.5332C39.5 10.5327 39.5 10.5323 39.5 10.5318C39.5 10.5313 39.5 10.5309 39.5 10.5304C39.5 10.5299 39.5 10.5294 39.5 10.529C39.5 10.5285 39.5 10.528 39.5 10.5276C39.5 10.5271 39.5 10.5266 39.5 10.5262C39.5 10.5257 39.5 10.5252 39.5 10.5247C39.5 10.5243 39.5 10.5238 39.5 10.5233C39.5 10.5229 39.5 10.5224 39.5 10.5219C39.5 10.5214 39.5 10.521 39.5 10.5205C39.5 10.52 39.5 10.5196 39.5 10.5191C39.5 10.5186 39.5 10.5182 39.5 10.5177C39.5 10.5172 39.5 10.5167 39.5 10.5163C39.5 10.5158 39.5 10.5153 39.5 10.5149C39.5 10.5144 39.5 10.5139 39.5 10.5135C39.5 10.513 39.5 10.5125 39.5 10.512C39.5 10.5116 39.5 10.5111 39.5 10.5106C39.5 10.5102 39.5 10.5097 39.5 10.5092C39.5 10.5087 39.5 10.5083 39.5 10.5078C39.5 10.5073 39.5 10.5069 39.5 10.5064C39.5 10.5059 39.5 10.5055 39.5 10.505C39.5 10.5045 39.5 10.5041 39.5 10.5036C39.5 10.5031 39.5 10.5026 39.5 10.5022C39.5 10.5017 39.5 10.5012 39.5 10.5008C39.5 10.5003 39.5 10.4998 39.5 10.4994C39.5 10.4989 39.5 10.4984 39.5 10.4979C39.5 10.4975 39.5 10.497 39.5 10.4965C39.5 10.4961 39.5 10.4956 39.5 10.4951C39.5 10.4947 39.5 10.4942 39.5 10.4937C39.5 10.4932 39.5 10.4928 39.5 10.4923C39.5 10.4918 39.5 10.4914 39.5 10.4909C39.5 10.4904 39.5 10.49 39.5 10.4895C39.5 10.489 39.5 10.4886 39.5 10.4881C39.5 10.4876 39.5 10.4871 39.5 10.4867C39.5 10.4862 39.5 10.4857 39.5 10.4853C39.5 10.4848 39.5 10.4843 39.5 10.4839C39.5 10.4834 39.5 10.4829 39.5 10.4825C39.5 10.482 39.5 10.4815 39.5 10.481C39.5 10.4806 39.5 10.4801 39.5 10.4796C39.5 10.4792 39.5 10.4787 39.5 10.4782C39.5 10.4778 39.5 10.4773 39.5 10.4768C39.5 10.4764 39.5 10.4759 39.5 10.4754C39.5 10.4749 39.5 10.4745 39.5 10.474C39.5 10.4735 39.5 10.4731 39.5 10.4726C39.5 10.4721 39.5 10.4717 39.5 10.4712C39.5 10.4707 39.5 10.4703 39.5 10.4698C39.5 10.4693 39.5 10.4689 39.5 10.4684C39.5 10.4679 39.5 10.4674 39.5 10.467C39.5 10.4665 39.5 10.466 39.5 10.4656C39.5 10.4651 39.5 10.4646 39.5 10.4642C39.5 10.4637 39.5 10.4632 39.5 10.4628C39.5 10.4623 39.5 10.4618 39.5 10.4614C39.5 10.4609 39.5 10.4604 39.5 10.4599C39.5 10.4595 39.5 10.459 39.5 10.4585C39.5 10.4581 39.5 10.4576 39.5 10.4571C39.5 10.4567 39.5 10.4562 39.5 10.4557C39.5 10.4553 39.5 10.4548 39.5 10.4543C39.5 10.4539 39.5 10.4534 39.5 10.4529C39.5 10.4524 39.5 10.452 39.5 10.4515C39.5 10.451 39.5 10.4506 39.5 10.4501C39.5 10.4496 39.5 10.4492 39.5 10.4487C39.5 10.4482 39.5 10.4478 39.5 10.4473C39.5 10.4468 39.5 10.4464 39.5 10.4459C39.5 10.4454 39.5 10.445 39.5 10.4445C39.5 10.444 39.5 10.4435 39.5 10.4431C39.5 10.4426 39.5 10.4421 39.5 10.4417C39.5 10.4412 39.5 10.4407 39.5 10.4403C39.5 10.4398 39.5 10.4393 39.5 10.4389C39.5 10.4384 39.5 10.4379 39.5 10.4375C39.5 10.437 39.5 10.4365 39.5 10.4361C39.5 10.4356 39.5 10.4351 39.5 10.4346C39.5 10.4342 39.5 10.4337 39.5 10.4332C39.5 10.4328 39.5 10.4323 39.5 10.4318C39.5 10.4314 39.5 10.4309 39.5 10.4304C39.5 10.43 39.5 10.4295 39.5 10.429C39.5 10.4286 39.5 10.4281 39.5 10.4276C39.5 10.4272 39.5 10.4267 39.5 10.4262C39.5 10.4257 39.5 10.4253 39.5 10.4248C39.5 10.4243 39.5 10.4239 39.5 10.4234C39.5 10.4229 39.5 10.4225 39.5 10.422C39.5 10.4215 39.5 10.4211 39.5 10.4206C39.5 10.4201 39.5 10.4197 39.5 10.4192C39.5 10.4187 39.5 10.4183 39.5 10.4178C39.5 10.4173 39.5 10.4168 39.5 10.4164C39.5 10.4159 39.5 10.4154 39.5 10.415C39.5 10.4145 39.5 10.414 39.5 10.4136C39.5 10.4131 39.5 10.4126 39.5 10.4122C39.5 10.4117 39.5 10.4112 39.5 10.4108C39.5 10.4103 39.5 10.4098 39.5 10.4094C39.5 10.4089 39.5 10.4084 39.5 10.408C39.5 10.4075 39.5 10.407 39.5 10.4065C39.5 10.4061 39.5 10.4056 39.5 10.4051C39.5 10.4047 39.5 10.4042 39.5 10.4037C39.5 10.4033 39.5 10.4028 39.5 10.4023C39.5 10.4019 39.5 10.4014 39.5 10.4009C39.5 10.4005 39.5 10.4 39.5 10.3995C39.5 10.3991 39.5 10.3986 39.5 10.3981C39.5 10.3976 39.5 10.3972 39.5 10.3967C39.5 10.3962 39.5 10.3958 39.5 10.3953C39.5 10.3948 39.5 10.3944 39.5 10.3939C39.5 10.3934 39.5 10.393 39.5 10.3925C39.5 10.392 39.5 10.3916 39.5 10.3911C39.5 10.3906 39.5 10.3902 39.5 10.3897C39.5 10.3892 39.5 10.3888 39.5 10.3883C39.5 10.3878 39.5 10.3873 39.5 10.3869C39.5 10.3864 39.5 10.3859 39.5 10.3855C39.5 10.385 39.5 10.3845 39.5 10.3841C39.5 10.3836 39.5 10.3831 39.5 10.3827C39.5 10.3822 39.5 10.3817 39.5 10.3813C39.5 10.3808 39.5 10.3803 39.5 10.3798C39.5 10.3794 39.5 10.3789 39.5 10.3784C39.5 10.378 39.5 10.3775 39.5 10.377C39.5 10.3766 39.5 10.3761 39.5 10.3756C39.5 10.3752 39.5 10.3747 39.5 10.3742C39.5 10.3738 39.5 10.3733 39.5 10.3728C39.5 10.3724 39.5 10.3719 39.5 10.3714C39.5 10.3709 39.5 10.3705 39.5 10.37C39.5 10.3695 39.5 10.3691 39.5 10.3686C39.5 10.3681 39.5 10.3677 39.5 10.3672C39.5 10.3667 39.5 10.3663 39.5 10.3658C39.5 10.3653 39.5 10.3649 39.5 10.3644C39.5 10.3639 39.5 10.3634 39.5 10.363C39.5 10.3625 39.5 10.362 39.5 10.3616C39.5 10.3611 39.5 10.3606 39.5 10.3602
12C39.5 10.3597 39.5 10.3592 39.5 10.3588C39.5 10.3583 39.5 10.3578 39.5 10.3574C39.5 10.3569 39.5 10.3564 39.5 10.3559C39.5 10.3555 39.5 10.355 39.5 10.3545C39.5 10.3541 39.5 10.3536 39.5 10.3531C39.5 10.3527 39.5 10.3522 39.5 10.3517C39.5 10.3513 39.5 10.3508 39.5 10.3503C39.5 10.3498 39.5 10.3494 39.5 10.3489C39.5 10.3484 39.5 10.348 39.5 10.3475C39.5 10.347 39.5 10.3466 39.5 10.3461C39.5 10.3456 39.5 10.3452 39.5 10.3447C39.5 10.3442 39.5 10.3438 39.5 10.3433C39.5 10.3428 39.5 10.3423 39.5 10.3419C39.5 10.3414 39.5 10.3409 39.5 10.3405C39.5 10.34 39.5 10.3395 39.5 10.3391C39.5 10.3386 39.5 10.3381 39.5 10.3376C39.5 10.3372 39.5 10.3367 39.5 10.3362C39.5 10.3358 39.5 10.3353 39.5 10.3348C39.5 10.3344 39.5 10.3339 39.5 10.3334C39.5 10.333 39.5 10.3325 39.5 10.332C39.5 10.3315 39.5 10.3311 39.5 10.3306C39.5 10.3301 39.5 10.3297 39.5 10.3292C39.5 10.3287 39.5 10.3283 39.5 10.3278C39.5 10.3273 39.5 10.3269 39.5 10.3264C39.5 10.3259 39.5 10.3254 39.5 10.325C39.5 10.3245 39.5 10.324 39.5 10.3236C39.5 10.3231 39.5 10.3226 39.5 10.3222C39.5 10.3217 39.5 10.3212 39.5 10.3207C39.5 10.3203 39.5 10.3198 39.5 10.3193C39.5 10.3189 39.5 10.3184 39.5 10.3179C39.5 10.3175 39.5 10.317 39.5 10.3165C39.5 10.316 39.5 10.3156 39.5 10.3151C39.5 10.3146 39.5 10.3142 39.5 10.3137C39.5 10.3132 39.5 10.3128 39.5 10.3123C39.5 10.3118 39.5 10.3113 39.5 10.3109C39.5 10.3104 39.5 10.3099 39.5 10.3095C39.5 10.309 39.5 10.3085 39.5 10.308C39.5 10.3076 39.5 10.3071 39.5 10.3066C39.5 10.3062 39.5 10.3057 39.5 10.3052C39.5 10.3048 39.5 10.3043 39.5 10.3038C39.5 10.3033 39.5 10.3029 39.5 10.3024C39.5 10.3019 39.5 10.3015 39.5 10.301C39.5 10.3005 39.5 10.3 39.5 10.2996C39.5 10.2991 39.5 10.2986 39.5 10.2982C39.5 10.2977 39.5 10.2972 39.5 10.2968C39.5 10.2963 39.5 10.2958 39.5 10.2953C39.5 10.2949 39.5 10.2944 39.5 10.2939C39.5 10.2935 39.5 10.293 39.5 10.2925C39.5 10.292 39.5 10.2916 39.5 10.2911C39.5 10.2906 39.5 10.2902 39.5 10.2897C39.5 10.2892 39.5 10.2887 39.5 10.2883C39.5 10.2878 39.5 10.2873 39.5 10.2869C39.5 10.2864 39.5 10.2859 39.5 10.2854C39.5 10.285 39.5 10.2845 39.5 10.284C39.5 10.2836 39.5 10.2831 39.5 10.2826C39.5 10.2821 39.5 10.2817 39.5 10.2812C39.5 10.2807 39.5 10.2803 39.5 10.2798C39.5 10.2793 39.5 10.2788 39.5 10.2784C39.5 10.2779 39.5 10.2774 39.5 10.277C39.5 10.2765 39.5 10.276 39.5 10.2755C39.5 10.2751 39.5 10.2746 39.5 10.2741C39.5 10.2737 39.5 10.2732 39.5 10.2727C39.5 10.2722 39.5 10.2718 39.5 10.2713C39.5 10.2708 39.5 10.2703 39.5 10.2699C39.5 10.2694 39.5 10.2689 39.5 10.2685C39.5 10.268 39.5 10.2675 39.5 10.267C39.5 10.2666 39.5 10.2661 39.5 10.2656C39.5 10.2652 39.5 10.2647 39.5 10.2642C39.5 10.2637 39.5 10.2633 39.5 10.2628C39.5 10.2623 39.5 10.2618 39.5 10.2614C39.5 10.2609 39.5 10.2604 39.5 10.26C39.5 10.2595 39.5 10.259 39.5 10.2585C39.5 10.2581 39.5 10.2576 39.5 10.2571C39.5 10.2566 39.5 10.2562 39.5 10.2557C39.5 10.2552 39.5 10.2548 39.5 10.2543C39.5 10.2538 39.5 10.2533 39.5 10.2529C39.5 10.2524 39.5 10.2519 39.5 10.2514C39.5 10.251 39.5 10.2505 39.5 10.25C39.5 10.2495 39.5 10.2491 39.5 10.2486C39.5 10.2481 39.5 10.2477 39.5 10.2472C39.5 10.2467 39.5 10.2462 39.5 10.2458C39.5 10.2453 39.5 10.2448 39.5 10.2443C39.5 10.2439 39.5 10.2434 39.5 10.2429C39.5 10.2424 39.5 10.242 39.5 10.2415C39.5 10.241 39.5 10.2405 39.5 10.2401C39.5 10.2396 39.5 10.2391 39.5 10.2387C39.5 10.2382 39.5 10.2377 39.5 10.2372C39.5 10.2368 39.5 10.2363 39.5 10.2358C39.5 10.2353 39.5 10.2349 39.5 10.2344C39.5 10.2339 39.5 10.2334 39.5 10.233C39.5 10.2325 39.5 10.232 39.5 10.2315C39.5 10.2311 39.5 10.2306 39.5 10.2301C39.5 10.2296 39.5 10.2292 39.5 10.2287C39.5 10.2282 39.5 10.2277 39.5 10.2273C39.5 10.2268 39.5 10.2263 39.5 10.2258C39.5 10.2254 39.5 10.2249 39.5 10.2244C39.5 10.2239 39.5 10.2235 39.5 10.223C39.5 10.2225 39.5 10.222 39.5 10.2216C39.5 10.2211 39.5 10.2206 39.5 10.2201C39.5 10.2197 39.5 10.2192 39.5 10.2187C39.5 10.2182 39.5 10.2178 39.5 10.2173C39.5 10.2168 39.5 10.2163 39.5 10.2159C39.5 10.2154 39.5 10.2149 39.5 10.2144C39.5 10.214 39.5 10.2135 39.5 10.213C39.5 10.2125 39.5 10.2121 39.5 10.2116C39.5 10.2111 39.5 10.2106 39.5 10.2101C39.5 10.2097 39.5 10.2092 39.5 10.2087C39.5 10.2082 39.5 10.2078 39.5 10.2073C39.5 10.2068 39.5 10.2063 39.5 10.2059C39.5 10.2054 39.5 10.2049 39.5 10.2044C39.5 10.204 39.5 10.2035 39.5 10.203C39.5 10.2025 39.5 10.2021 39.5 10.2016C39.5 10.2011 39.5 10.2006 39.5 10.2001C39.5 10.1997 39.5 10.1992 39.5 10.1987C39.5 10.1982 39.5 10.1978 39.5 10.1973C39.5 10.1968 39.5 10.1963 39.5 10.1958C39.5 10.1954 39.5 10.1949 39.5 10.1944C39.5 10.1939 39.5 10.1935 39.5 10.193C39.5 10.1925 39.5 10.192 39.5 10.1916C39.5 10.1911 39.5 10.1906 39.5 10.1901C39.5 10.1896 39.5 10.1892 39.5 10.1887C39.5 10.1882 39.5 10.1877 39.5 10.1873C39.5 10.1868 39.5 10.1863 39.5 10.1858C39.5 10.1853 39.5 10.1849 39.5 10.1844C39.5 10.1839 39.5 10.1834 39.5 10.183C39.5 10.1825 39.5 10.182 39.5 10.1815C39.5 10.181 39.5 10.1806 39.5 10.1801C39.5 10.1796 39.5 10.1791 39.5 10.1786C39.5 10.1782 39.5 10.1777 39.5 10.1772C39.5 10.1767 39.5 10.1763 39.5 10.1758C39.5 10.1753 39.5 10.1748 39.5 10.1743C39.5 10.1739 39.5 10.1734 39.5 10.1729C39.5 10.1724 39.5 10.1719 39.5 10.1715C39.5 10.171 39.5 10.1705 39.5 10.17C39.5 10.1695 39.5 10.1691 39.5 10.1686C39.5 10.1681 39.5 10.1676 39.5 10.1671C39.5 10.1667 39.5 10.1662 39.5 10.1657C39.5 10.1652 39.5 10.1647 39.5 10.1643C39.5 10.1638 39.5 10.1633 39.5 10.1628C39.5 10.1623 39.5 10.1619 39.5 10.1614C39.5 10.1609 39.5 10.1604 39.5 10.1599C39.5 10.1595 39.5 10.159 39.5 10.1585C39.5 10.158 39.5 10.1575 39.5 10.1571C39.5 10.1566 39.5 10.1561 39.5 10.1556C39.5 10.1551 39.5 10.1547 39.5 10.1542C39.5 10.1537 39.5 10.1532 39.5 10.1527C39.5 10.1523 39.5 10.1518 39.5 10.1513C39.5 10.1508 39.5 10.1503 39.5 10.1498C39.5 10.1494 39.5 10.1489 39.5 10.1484C39.5 10.1479 39.5 10.1474 39.5 10.147C39.5 10.1465 39.5 10.146 39.5 10.1455C39.5 10.145 39.5 10.1446 39.5 10.1441C39.5 10.1436 39.5 10.1431 39.5 10.1426C39.5 10.1421 39.5 10.1417 39.5 10.1412C39.5 10.1407 39.5 10.1402 39.5 10.1397C39.5 10.1392 39.5 10.1388 39.5 10.1383C39.5 10.1378 39.5 10.1373 39.5 10.1368C39.5 10.1364 39.5 10.1359 39.5 10.1354C39.5 10.1349 39.5 10.1344 39.5 10.1339C39.5 10.1335 39.5 10.133 39.5 10.1325C39.5 10.132 39.5 10.1315 39.5 10.131C39.5 10.1306 39.5 10.1301 39.5 10.1296C39.5 10.1291 39.5 10.1286 39.5 10.1281C39.5 10.1277 39.5 10.1272 39.5 10.1267C39.5 10.1262 39.5 10.1257 39.5 10.1252C39.5 10.1248 39.5 10.1243 39.5 10.1238C39.5 10.1233 39.5 10.1228 39.5 10.1223C39.5 10.1219 39.5 10.1214 39.5 10.1209C39.5 10.1204 39.5 10.1199 39.5 10.1194C39.5 10.1189 39.5 10.1185 39.5 10.118C39.5 10.1175 39.5 10.117 39.5 10.1165C39.5 10.116 39.5 10.1156 39.5 10.1151C39.5 10.1146 39.5 10.114
121 39.5 10.1136C39.5 10.1131 39.5 10.1126 39.5 10.1122C39.5 10.1117 39.5 10.1112 39.5 10.1107C39.5 10.1102 39.5 10.1097 39.5 10.1092C39.5 10.1088 39.5 10.1083 39.5 10.1078C39.5 10.1073 39.5 10.1068 39.5 10.1063C39.5 10.1058 39.5 10.1054 39.5 10.1049C39.5 10.1044 39.5 10.1039 39.5 10.1034C39.5 10.1029 39.5 10.1024 39.5 10.102C39.5 10.1015 39.5 10.101 39.5 10.1005C39.5 10.1 39.5 10.0995 39.5 10.099C39.5 10.0986 39.5 10.0981 39.5 10.0976C39.5 10.0971 39.5 10.0966 39.5 10.0961C39.5 10.0956 39.5 10.0951 39.5 10.0947C39.5 10.0942 39.5 10.0937 39.5 10.0932C39.5 10.0927 39.5 10.0922 39.5 10.0917C39.5 10.0912 39.5 10.0908 39.5 10.0903C39.5 10.0898 39.5 10.0893 39.5 10.0888C39.5 10.0883 39.5 10.0878 39.5 10.0873C39.5 10.0869 39.5 10.0864 39.5 10.0859C39.5 10.0854 39.5 10.0849 39.5 10.0844C39.5 10.0839 39.5 10.0834 39.5 10.0829C39.5 10.0825 39.5 10.082 39.5 10.0815C39.5 10.081 39.5 10.0805 39.5 10.08C39.5 10.0795 39.5 10.079 39.5 10.0785C39.5 10.0781 39.5 10.0776 39.5 10.0771C39.5 10.0766 39.5 10.0761 39.5 10.0756C39.5 10.0751 39.5 10.0746 39.5 10.0741C39.5 10.0737 39.5 10.0732 39.5 10.0727C39.5 10.0722 39.5 10.0717 39.5 10.0712C39.5 10.0707 39.5 10.0702 39.5 10.0697C39.5 10.0692 39.5 10.0688 39.5 10.0683C39.5 10.0678 39.5 10.0673 39.5 10.0668C39.5 10.0663 39.5 10.0658 39.5 10.0653C39.5 10.0648 39.5 10.0643 39.5 10.0639C39.5 10.0634 39.5 10.0629 39.5 10.0624C39.5 10.0619 39.5 10.0614 39.5 10.0609C39.5 10.0604 39.5 10.0599 39.5 10.0594C39.5 10.0589 39.5 10.0584 39.5 10.058C39.5 10.0575 39.5 10.057 39.5 10.0565C39.5 10.056 39.5 10.0555 39.5 10.055C39.5 10.0545 39.5 10.054 39.5 10.0535C39.5 10.053 39.5 10.0525 39.5 10.0521C39.5 10.0516 39.5 10.0511 39.5 10.0506C39.5 10.0501 39.5 10.0496 39.5 10.0491C39.5 10.0486 39.5 10.0481 39.5 10.0476H35.5ZM36.9269 12.6956C43.4908 14.659 48 20.7593 48 27.7143H52C52 19.0217 46.3592 11.3419 38.0731 8.86341L36.9269 12.6956ZM48 27.7143V42.8571H52V27.7143H48ZM48.5791 44.2646L53.5791 49.3123L56.4209 46.4973L51.4209 41.4496L48.5791 44.2646ZM35.5 52.9524C35.5 53.7667 35.1794 54.544 34.6146 55.1141L37.4564 57.9291C38.7671 56.606 39.5 54.8154 39.5 52.9524H35.5ZM34.6146 55.1141C34.0505 55.6836 33.2895 56 32.5 56V60C34.3627 60 36.1452 59.2528 37.4564 57.9291L34.6146 55.1141ZM32.5 56C31.7105 56 30.9495 55.6836 30.3854 55.1141L27.5436 57.9291C28.8548 59.2528 30.6373 60 32.5 60V56ZM30.3854 55.1141C29.8206 54.544 29.5 53.7667 29.5 52.9524H25.5C25.5 54.8154 26.2329 56.606 27.5436 57.9291L30.3854 55.1141Z",fill:"#CFD7DE",mask:"url(#path-1-inside-1_8102_227427)"}),P.createElement("line",{x1:22,y1:37,x2:28,y2:37,stroke:"#CFD7DE",strokeWidth:2}),P.createElement("path",{d:"M32.7303 44.5719C33.717 44.5719 34.5168 43.7723 34.5168 42.7859C34.5168 41.7996 33.717 41 32.7303 41C31.7437 41 30.9438 41.7996 30.9438 42.7859C30.9438 43.7723 31.7437 44.5719 32.7303 44.5719Z",fill:"#CFD7DE"}),P.createElement("line",{x1:37,y1:37,x2:43,y2:37,stroke:"#CFD7DE",strokeWidth:2}),P.createElement("path",{d:"M5.30337 14.3158V12H13.8989V14.3158L8.03371 21.6842H14V24H5V21.6842L10.8652 14.3158H5.30337Z",fill:"#CFD7DE"}),P.createElement("path",{d:"M19.1724 26.3425V25H23.9138V26.3425L20.7241 30.6575H24V32H19V30.6575L22.1897 26.3425H19.1724Z",fill:"#CFD7DE"}));function k0e(e=[]){const[t,n]=P.useState([]),r=P.useMemo(()=>new IntersectionObserver(([i])=>{n(a=>[...a,+i.target.id])}),[]);return P.useEffect(()=>{if(e.length)return e.forEach(i=>{r.observe(i)}),()=>{r.disconnect()}},[e,r]),[...new Set(t)]}const A0e="wrapperLoader_PH6QM",$0e="title_honIZ",T0e="loaderContainer_LT2y8",P0e="loaderIcon_7c1wK",M0e="loaderText_tiGag",N0e="loaderTime_iDIYo",ci={wrapperLoader:A0e,title:$0e,loaderContainer:T0e,loaderIcon:P0e,loaderText:M0e,loaderTime:N0e},I0e=()=>w.jsxs("div",{className:ci.wrapperLoader,children:[w.jsx("h5",{className:ci.title,children:"Recent notifications"}),w.jsxs("div",{className:ci.loaderContainer,children:[w.jsx("div",{className:qe(ci.loaderIcon,"skeleton")}),w.jsxs("div",{className:ci.wrapperLoaderText,children:[w.jsx("div",{className:qe(ci.loaderText,"skeleton")}),w.jsx("div",{className:qe(ci.loaderTime,"skeleton")})]})]}),w.jsxs("div",{className:ci.loaderContainer,children:[w.jsx("div",{className:qe(ci.loaderIcon,"skeleton")}),w.jsxs("div",{className:ci.wrapperLoaderText,children:[w.jsx("div",{className:qe(ci.loaderText,"skeleton")}),w.jsx("div",{className:qe(ci.loaderTime,"skeleton")})]})]}),w.jsxs("div",{className:ci.loaderContainer,children:[w.jsx("div",{className:qe(ci.loaderIcon,"skeleton")}),w.jsxs("div",{className:ci.wrapperLoaderText,children:[w.jsx("div",{className:qe(ci.loaderText,"skeleton")}),w.jsx("div",{className:qe(ci.loaderTime,"skeleton")})]})]})]}),L0e="blur_WVM8O",R0e="notification_KcreG",j0e="emptyNotification_HIxME",D0e="titleEmptyNotification_LG17i",F0e="title_JEEbI",B0e="anomalyContainer_T5rG-",z0e="anomalyAccountName_tO7Vv",Ru={blur:L0e,notification:R0e,emptyNotification:j0e,titleEmptyNotification:D0e,title:F0e,anomalyContainer:B0e,anomalyAccountName:z0e},V0e="notificationWrapper_v5rBK",W0e="markAsRead_1BlkI",H0e="iconClose_v3IgK",G0e="iconWrapper_BMNqF",U0e="button_E6REy",Y0e="time_eIND5",X0e="notificationText_7C4C7",Qr={notificationWrapper:V0e,markAsRead:W0e,iconClose:H0e,iconWrapper:G0e,button:U0e,time:Y0e,notificationText:X0e},q0e="close_OOjeE",Z0e={close:q0e},K0e=e=>P.createElement("svg",{width:8,height:8,viewBox:"0 0 8 8",fill:"#717171",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M7.5 1.02849L6.795 0.323486L4 3.11849L1.205 0.323486L0.5 1.02849L3.295 3.82349L0.5 6.61849L1.205 7.32349L4 4.52849L6.795 7.32349L7.5 6.61849L4.705 3.82349L7.5 1.02849Z"})),P3=({onClick:e,style:t})=>w.jsx(K0e,{onClick:e,className:Z0e.close,style:t}),g1=({commonNotificationsItem:e,setDeleteNotification:t,notificationData:n,renderText:r,renderModal:i,renderIcon:a,buttonText:o})=>{const[s,l]=P.useState(!1),[c,u]=P.useState(!1),[f,d]=P.useState(!1),h=Zt(),p=()=>{l(!1)},g=()=>{l(!1),h(yp(e.id))};return w.jsxs("div",{className:Qr.notificationWrapper,children:[w.jsxs("div",{children:[e.read_at===null&&w.jsx("div",{className:Qr.markAsRead}),w.jsx("div",{className:Qr.iconClose,children:w.jsx(P3,{onClick:()=>{d(!0),t(e.id)},style:{width:"10px",height:"10px"}})}),w.jsx("div",{className:Qr.iconWrapper,children:a()})]}),w.jsxs("div",{children:[r(),w.jsx("p",{className:Qr.time,children:Fo(e.timestamp).fromNow()}),w.jsx(yi,{className:Qr.button,text:o,submitting:c,disabled:s||f,size:"small",type:"transparent",onClick:()=>{u(!0),l(!0),h(Oh(n.id))}})]}),s&&i(p,g,n,u)]})},J0e="modalWrapper_fFJ8n",Q0e="budgetItem_pUlRD",ede="budgetInformation_doRl5",tde="information_NmoS-",nde="budgetTitle_cGEpD",rde="forecastedPercent_3o8Tp",ide="modalDe
12scription_gpKRB",ade="controlWrapper_0MGf7",ode="updateModalPermissionWrapper_j-2kz",sde="updatePermission_q-vXU",lde="updateInformation_z-Bo5",cde="regionWrapper_0prJU",ude="moreBudgets_dDJ2s",fde="loader_Apkuy",dde="anomalyTable_jmm2E",hde="anomalyItem_6c0Ep",pde="anomalyItemName_ey1di",gde="anomalyItemValue_Pre2T",mde="anomalyItemExpected_U79qN",vde="anomalyItemExtraInfo_8GlFK",yde="anomalyItemDetectedPercent_V2ZJ5",xde="anomalyItemDetectedPercentIcon_kuryP",bde="popupData_JdFhI",Cde="permissionsList_IEdBw",wde="permissionsItem_NovVA",_de="permissionsServiceName_u2cLw",Sde="permissionsItemPermissions_CNFt3",et={modalWrapper:J0e,budgetItem:Q0e,budgetInformation:ede,information:tde,budgetTitle:nde,forecastedPercent:rde,modalDescription:ide,controlWrapper:ade,updateModalPermissionWrapper:ode,updatePermission:sde,updateInformation:lde,regionWrapper:cde,moreBudgets:ude,loader:fde,anomalyTable:dde,anomalyItem:hde,anomalyItemName:pde,anomalyItemValue:gde,anomalyItemExpected:mde,anomalyItemExtraInfo:vde,anomalyItemDetectedPercent:yde,anomalyItemDetectedPercentIcon:xde,popupData:bde,permissionsList:Cde,permissionsItem:wde,permissionsServiceName:_de,permissionsItemPermissions:Sde},Ode="modal_r-bhy",Ede="modalSupTitle_WCCtr",kde="modalTitle_b4cSx",Ade="modalDescription_fYtQ3",$de="modalContent_bQNlY",Tde="modalImage_e9djE",Pde="modalField_-m1Qr",Mde="contentWrapper_N5qcn",Nde="contentWrapperWithBackButton_Otx-n",Ide="scroll_7lnzq",Lde="content_FCvh2",Rde="step_yDOae",jde="back_vDNgb",Ea={modal:Ode,modalSupTitle:Ede,modalTitle:kde,modalDescription:Ade,modalContent:$de,modalImage:Tde,modalField:Pde,contentWrapper:Mde,contentWrapperWithBackButton:Nde,scroll:Ide,content:Lde,step:Rde,back:jde},Dde=e=>P.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"#4A5765",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M10.2734 11.0533L7.22004 8L10.2734 4.94L9.33337 4L5.33337 8L9.33337 12L10.2734 11.0533Z"})),RL=({text:e="Back",onClick:t,className:n})=>w.jsx(yi,{text:e,type:"transparent",renderLeft:()=>w.jsx(Dde,{}),onClick:t,size:"small",className:n}),Fde=({children:e,maxWidth:t})=>w.jsx("h6",{className:Ea.modalSupTitle,style:{maxWidth:t},children:e}),Bde=({children:e})=>w.jsx("h3",{className:Ea.modalTitle,children:e}),zde=({children:e,style:t,className:n})=>w.jsx("div",{className:qe(Ea.modalDescription,n),style:t,children:e}),Vde=({children:e,width:t,maxWidth:n,minWidth:r,className:i,style:a})=>w.jsx("div",{className:qe(Ea.modalContent,i),style:{width:t,maxWidth:n,minWidth:r,...a},children:e}),Wde=({children:e})=>w.jsx("div",{className:Ea.modalImage,children:e}),Hde=({children:e})=>w.jsx("div",{className:Ea.modalField,children:e});class ut extends P.Component{constructor(t){super(t),this.documentOverflowRef=P.createRef()}componentDidMount(){this.documentOverflowRef.current=document.body.style.overflow,document.body.style.overflow="hidden"}componentWillUnmount(){document.body.style.overflow=this.documentOverflowRef.current}render(){const{step:t,backButtonClick:n,onClose:r,closeOnlyOnCloseButtonClick:i}=this.props;return ine.createPortal(w.jsx("div",{onClick:i?void 0:r,className:qe(Ea.modal,this.props.modalClassName),style:{zIndex:this.props.zIndex},children:w.jsxs("div",{className:qe(Ea.contentWrapper,n&&Ea.contentWrapperWithBackButton),onClick:a=>a.stopPropagation(),children:[r&&w.jsx("div",{style:{position:"absolute",top:"20px",right:"20px"},children:w.jsx(P3,{onClick:r})}),t&&w.jsxs("div",{className:Ea.step,children:["Step ",t.current,"/",t.max]}),n&&w.jsx(RL,{className:Ea.back,onClick:()=>n()}),w.jsx("div",{className:qe("scrollbar",Ea.scroll),children:w.jsx("div",{className:qe(this.props.className,Ea.content),style:{...this.props.style},children:this.props.children})})]})}),document.body)}}ut.SupTitle=Fde;ut.Title=Bde;ut.Description=zde;ut.Content=Vde;ut.Image=Wde;ut.Field=Hde;const jL=e=>P.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("g",{id:"alert-icon"},P.createElement("path",{id:"Vector",d:"M6.64959 1.57401L10.9666 9.051C11.0324 9.16502 11.0671 9.29435 11.0671 9.426C11.0671 9.55765 11.0324 9.68698 10.9666 9.801C10.9008 9.91501 10.8061 10.0097 10.6921 10.0755C10.5781 10.1413 10.4487 10.176 10.3171 10.176H1.68309C1.55144 10.176 1.4221 10.1413 1.30809 10.0755C1.19408 10.0097 1.09941 9.91501 1.03358 9.801C0.967758 9.68698 0.933105 9.5
125765 0.933105 9.426C0.933106 9.29435 0.967761 9.16502 1.03359 9.051L5.35059 1.57401C5.63909 1.07401 6.36059 1.07401 6.64959 1.57401ZM6.00009 7.5C5.86748 7.5 5.7403 7.55268 5.64653 7.64645C5.55277 7.74022 5.50009 7.8674 5.50009 8C5.50009 8.13261 5.55277 8.25979 5.64653 8.35356C5.7403 8.44733 5.86748 8.5 6.00009 8.5C6.13269 8.5 6.25987 8.44733 6.35364 8.35356C6.44741 8.25979 6.50009 8.13261 6.50009 8C6.50009 7.8674 6.44741 7.74022 6.35364 7.64645C6.25987 7.55268 6.13269 7.5 6.00009 7.5ZM6.00009 4.00001C5.87762 4.00002 5.75942 4.04498 5.6679 4.12636C5.57638 4.20774 5.51792 4.31988 5.50359 4.44151L5.50009 4.5V6.5C5.50023 6.62744 5.54903 6.75002 5.63651 6.84269C5.724 6.93536 5.84356 6.99112 5.97078 6.99859C6.098 7.00606 6.22328 6.96467 6.321 6.88287C6.41873 6.80108 6.48153 6.68505 6.49659 6.5585L6.50009 6.5V4.5C6.50009 4.3674 6.44741 4.24022 6.35364 4.14645C6.25987 4.05268 6.13269 4.00001 6.00009 4.00001Z",fill:"#F5BC22"}))),Gde=({onClose:e,deleteNotification:t,notificationData:n,setIsModalLoading:r})=>{var a,o;const i=C0e(n.forecasted_spending,n.threshold).toFixed(0);return P.useEffect(()=>{r(!1)},[]),w.jsx(w.Fragment,{children:w.jsx(ut,{onClose:e,children:w.jsx("div",{className:et.modalWrapper,children:w.jsxs(ut.Content,{width:"360px",children:[w.jsx(ut.Title,{children:w.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:10,justifyContent:"center"},children:[w.jsx(jL,{height:30,width:30}),w.jsx("span",{children:"Budget limit exceeded"})]})}),w.jsxs("div",{className:et.budgetItem,children:[w.jsxs("p",{className:et.budgetInformation,children:[w.jsx("span",{className:et.budgetTitle,children:"Budget limit"})," ",w.jsx("span",{className:et.information,children:w0e(n.budget_name)})]}),w.jsxs("p",{className:et.budgetInformation,children:[w.jsxs("span",{className:et.budgetTitle,children:["Account",((a=n.accounts)==null?void 0:a.length)&&((o=n.accounts)==null?void 0:o.length)>1&&"s"]})," ",w.jsx("span",{className:et.information,children:n.accounts.map(s=>s.name.split(",").map(l=>w.jsx("p",{children:l},l)))})]}),n.accounts.map((s,l)=>{const c=s.regions.split(",");return w.jsxs("p",{className:et.budgetInformation,children:[w.jsx("span",{className:et.budgetTitle,children:s.name})," ",w.jsx("p",{className:et.information,children:n.accounts[0].regions==="All"?w.jsx("p",{children:"All"}):w.jsx(w.Fragment,{children:c.length>3?w.jsxs(w.Fragment,{children:[c.slice(0,2).map((u,f)=>w.jsx("p",{children:u},f)),w.jsx(lre,{initiatorElement:u=>w.jsxs("p",{onClick:u,className:et.moreBudgets,children:["+",c.length-2," more"]}),popupContent:()=>w.jsx("div",{className:et.regionWrapper,children:w.jsx("p",{className:et.popupData,children:c.slice(2,c.length).map(u=>w.jsx("p",{children:u},u))})}),popupPosition:{top:"5px",right:"0"},alerterStyle:{display:"flex",justifyContent:"flex-end"}})]}):w.jsx(w.Fragment,{children:c.map((u,f)=>w.jsx("p",{children:u},f))})})})]},s.name)}),w.jsxs("p",{className:et.budgetInformation,children:[w.jsx("span",{className:et.budgetTitle,children:"Period"})," ",w.jsxs("span",{className:et.information,children:[n.verbose_period,"ly"]})]}),w.jsxs("p",{className:et.budgetInformation,children:[w.jsx("span",{className:et.budgetTitle,children:"Current limit"})," ",w.jsxs("span",{className:et.information,children:["$",n.threshold]})]}),w.jsxs("p",{className:et.budgetInformation,children:[w.jsx("span",{className:et.budgetTitle,children:"Already consumed"})," ",w.jsxs("span",{className:et.information,children:["$",n.current_spending.toFixed(0)]})]}),w.jsxs("p",{className:et.budgetInformation,children:[w.jsx("span",{className:et.budgetTitle,children:"Exceeded"})," ",w.jsxs("span",{className:et.information,children:["$",Math.abs(n.threshold-n.current_spending).toFixed(0)]})]}),w.jsxs("p",{className:et.budgetInformation,children:[w.jsxs("span",{className:et.budgetTitle,children:["Forecasted till ",Fo(n.end_date).format("DD MMM, YYYY")]})," ",w.jsxs("span",{className:et.information,children:[i!=="0"&&w.jsxs("span",{className:et.forecastedPercent,children:["+",i,"%"]})," ","$",n.forecasted_spending.toFixed(0)]})]})]}),w.jsx(ut.Field,{children:w.jsx(yi,{style:{width:"100%"},size:"medium",text:"Got it",type:"blue",onClick:t})}),w.jsx(ut.Field,{children:w.jsx(qee,{to:`${pe.budgetLimitsEdit}/${n.budget_id}${n.organization_id?`?organization_id=${n.organization_id}`:""}`,children:w.jsx(yi,{style:{width:"100%"},size:"medium",text:"Edit budget limit",type:"transparent",onClick:e})})})]})})})})},Ude=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M11.5641 16.9797H8.23079C8.23079 17.4217 8.40639 17.8456 8.71895 18.1582C9.03151 18.4708 9.45543 18.6464 9.89746 18.6464C10.3395 18.6464 10.7634 18.4708 11.076 18.1582C11.3885 17.8456 11.5641 17.4217 11.5641 16.9797Z",fill:"#CFD7DE"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.3975 16.1464V15.313L15.7308 13.6464V8.64636C15.7308 6.06303 14.0391 3.78803 11.5641 3.0547V2.81303C11.5641 2.371 11.3885 1.94708 11.076 1.63452C10.7634 1.32196 10.3395 1.14636 9.89746 1.14636C9.45543 1.14636 9.03151 1.32196 8.71895 1.63452C8.40639 1.94708 8.23079 2.371 8.23079 2.81303V3.0547C5.75579 3.78803 4.06413 6.06303 4.06413 8.64636V13.6464L2.39746 15.313V16.1464H17.3975ZM8.39746 10.9038H7.39746C7.39746 11.8154 8.13246 12.5895 9.14746 12.8492V13.9594H10.6475V12.8492C11.6625 12.5895 12.3975 11.8154 12.3975 10.9038C12.3975 9.48807 11.0775 9.15196 10.0175 8.88206C8.91746 8.61215 8.39746 8.40844 8.39746 7.84826C8.39746 7.29826 9.08246 6.82974 9.89746 6.82974C10.7125 6.82974 11.3975 7.29826 11.3975 7.84826H12.3975C12.3975 6.93669 11.6625 6.16261 10.6475 5.90289V4.7927H9.14746V5.90289C8.13246 6.16261 7.39746 6.93669 7.39746 7.84826C7.39746 9.264 8.71746 9.60011 9.77746 9.87002C10.8775 10.1399 11.3975 10.3436 11.3975 10.9038C11.3975 11.4538 10.7125 11.9223 9.89746 11.9223C9.08246 11.9223 8.39746 11.4538 8.39746 10.9038Z",fill:"#CFD7DE"})),Yde=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"#CFD7DE",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M4.16663 2.5V17.5H9.16663V14.5833H10.8333V17.5H15.8333V2.5H4.16663ZM5.83329 4.16667H7.49996V5.83333H5.83329V4.16667ZM9.16663 4.16667H10.8333V5.83333H9.16663V4.16667ZM12.5 4.16667H14.1666V5.83333H12.5V4.16667ZM5.83329 7.5H7.49996V9.16667H5.83329V7.5ZM9.16663 7.5H10.8333V9.16667H9.16663V7.5ZM12.5 7.5H14.1666V9.16667H12.5V7.5ZM5.83329 10.8333H7.49996V12.5H5.83329V10.8333ZM9.16663 10.8333H10.8333V12.5H9.16663V10.8333ZM12.5 10.8333H14.1666V12.5H12.5V10.8333ZM5.83329 14.1667H7.49996V15.8333H5.83329V14.1667ZM12.5 14.1667H14.1666V15.8333H12.5V14.1667Z"})),o9=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M10 4.58325C10.7735 4.58325 11.5154 4.89054 12.0624 5.43752C12.6094 5.9845 12.9167 6.72637 12.9167 7.49992C12.9167 8.27347 12.6094 9.01533 12.0624 9.56231C11.5154 10.1093 10.7735 10.4166 10 10.4166C9.22645 10.4166 8.48459 10.1093 7.93761 9.56231C7.39062 9.01533 7.08333 8.27347 7.08333 7.49992C7.08333 6.72637 7.39062 5.9845 7.93761 5.43752C8.48459 4.89054 9.22645 4.58325 10 4.58325ZM4.16667 6.66658C4.63333 6.66658 5.06667 6.79159 5.44167 7.01659C5.31667 8.20825 5.66667 9.39158 6.38333 10.3166C5.96667 11.1166 5.13333 11.6666 4.16667 11.6666C3.50363 11.6666 2.86774 11.4032 2.3989 10.9344C1.93006 10.4655 1.66667 9.82963 1.66667 9.16658C1.66667 8.50354 1.93006 7.86766 2.3989 7.39882C2.86774 6.92998 3.50363 6.66659 4.16667 6.66658ZM15.8333 6.66658C16.4964 6.66658 17.1323 6.92998 17.6011 7.39882C18.0699 7.86766 18.3333 8.50354 18.3333 9.16658C18.3333 9.82963 18.0699 10.4655 17.6011 10.9344C17.1323 11.4032 16.4964 11.6666 15.8333 11.6666C14.8667 11.6666 14.0333 11.1166 13.6167 10.3166C14.3333 9.39158 14.6833 8.20825 14.5583 7.01659C14.9333 6.79159 15.3667 6.66658 15.8333 6.66658ZM4.58333 15.2083C4.58333 13.4833 7.00833 12.0833 10 12.0833C12.9917 12.0833 15.4167 13.4833 15.4167 15.2083V16.6666H4.58333V15.2083ZM0 16.6666V15.4166C0 14.2583 1.575 13.2833 3.70833 12.9999C3.21667 13.5666 2.91667 14.3499 2.91667 15.2083V16.6666H0ZM20 16.6666H17.0833V15.2083C1
127.0833 14.3499 16.7833 13.5666 16.2917 12.9999C18.425 13.2833 20 14.2583 20 15.4166V16.6666Z",fill:"#CFD7DE"})),Xde=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M8.30008 9.42502C9.01675 6.75002 9.58341 5.00002 10.8334 5.00002C12.0834 5.00002 12.6501 6.75002 13.3667 9.42502C14.1667 12.4334 15.0834 15.8334 18.3334 15.8334V14.1667C16.5001 14.1667 15.8334 12.1167 14.9751 9.00002C14.2334 6.21669 13.4584 3.33335 10.8334 3.33335C8.20841 3.33335 7.43341 6.21669 6.69175 9.00002C5.85841 12.1167 5.16675 14.1667 3.33341 14.1667V1.66669H1.66675V18.3334H18.3334V16.6667H3.33341V15.8334C6.58341 15.8334 7.50008 12.4334 8.30008 9.42502Z",fill:"#CFD7DE"})),qde="des_eO2OT",Zde="emailInput_eu0Ax",Kde="inputWrapper_cL5c0",Jde="labelIsIsNotSelect_NFg3V",Qde="labelConditionWrapper_sQxwg",e1e="labelValueSelect_RSVdX",t1e="labelItem_q22Nq",n1e="labelItemControl_xn2To",r1e="addLabel_685g4",i1e="labelItemRemove_2dlW-",a1e="labelItemRemoveIcon_XYGCC",o1e="checkboxWrapper_OJZHK",s1e="checkboxText_X2V9V",l1e="checkboxTextDisabled_spz1K",c1e="permissions_I-9PC",u1e="permission_Y1pjh",f1e="permissionTitle_SvkY8",d1e="remove_zXWCI",h1e="removeText_uXdm6",p1e="fullAccess_dasAH",g1e="fullAccessIcon_fC1hb",m1e="fullAccessText_t9uYK",v1e="contentWrapper_CqqLn",y1e="row_vQJ0V",x1e="rowFlexStart_L8s7B",b1e="rowAlignCenter_-68J2",C1e="rowButtonsWrapper_WNq-e",w1e="rowTitle_6gKCx",_1e="inputError_K2e-o",m1={des:qde,emailInput:Zde,inputWrapper:Kde,labelIsIsNotSelect:Jde,labelConditionWrapper:Qde,labelValueSelect:e1e,labelItem:t1e,labelItemControl:n1e,addLabel:r1e,labelItemRemove:i1e,labelItemRemoveIcon:a1e,checkboxWrapper:o1e,checkboxText:s1e,checkboxTextDisabled:l1e,permissions:c1e,permission:u1e,permissionTitle:f1e,remove:d1e,removeText:h1e,fullAccess:p1e,fullAccessIcon:g1e,fullAccessText:m1e,contentWrapper:v1e,row:y1e,rowFlexStart:x1e,rowAlignCenter:b1e,rowButtonsWrapper:C1e,rowTitle:w1e,inputError:_1e},S1e=({environmentId:e,memberId:t,permissions:n,setPermissions:r,permissionsCodeKeys:i,classSwitchWrapper:a=""})=>{var f;const{teamEnvsData:o}=ff(d=>({teamEnvsData:d.team.envs}),Lt),s=e!==void 0?(f=o[e])==null?void 0:f.find(d=>d.self):null,l=s==null?void 0:s.is_admin,c=TN(e,t,o),u=c&&s&&s.id!==void 0&&c.inviter_id===s.id;return P.useEffect(()=>{ha(i).forEach(d=>{const h=i[d];if(h){const p=h.view,g="edit"in h?h.edit:"";Eu(n,g)&&r(y=>y.find(x=>x.codename===p)?y:[...y,{codename:p}])}})},[n]),w.jsx(w.Fragment,{children:ha(i).map(d=>{const h=i[d];if(h){const p=h.view,g="edit"in h?h.edit:"",v=Zee(d),y=!hne(p,s,c,l,u),x=s&&Eu(s.permissions,g),C=!g||y||!x,_=()=>{if(!C)return Eu(n,p)},S=()=>{const k=n.find($=>$.codename===g);Eu(n,p)&&(k!=null&&k.codename)&&Dy(r,g)},O=Eu(n,g),E=O||Eu(n,p);return w.jsxs("div",{className:m1.permission,children:[w.jsx("p",{className:m1.permissionTitle,children:v}),w.jsx("div",{className:a,children:w.jsx(Kee,{checked:E,onChange:()=>{Dy(r,p),S()},checkedFill:"#23A2FF",uncheckedFill:"rgba(34, 31, 31, 0.24)",disabled:y})}),!!g&&w.jsxs("div",{className:m1.checkboxWrapper,children:[w.jsx(Une,{disabled:!_(),checked:O,onChange:()=>Dy(r,g)}),w.jsx("p",{className:qe(m1.checkboxText,!_()&&m1.checkboxTextDisabled),children:"Edit mode"})]})]},d)}})})},O1e=e=>{const t=Zt(),n=sN(),r=e||n,{teamEnvs:i}=ff(o=>({teamEnvs:o.team.envs}),Lt);return P.useEffect(()=>{r&&!i[r]&&t(iN([r]))},[r]),{data:i[r]}},E1e=({onClose:e,notificationsData:t,commonNotificationsItem:n,setIsModalLoading:r})=>{const i=ff(v=>v.team.envs,Lt);Lx([t.environment_id]);const{variables:a}=ti(),o=a["--color-brand-black"],{data:s}=O1e(t.environment_id),l=Zt(),c=TN(t.environment_id,t.member_id,i),[u,f]=P.useState(!1),[d,h]=P.useState(t.codename_permissions||[]),p=async()=>{if(f(!0),c){const y={permissions:[...c.permissions.filter(C=>{const _=C.codename.split("_")[0];return!t.codename_permissions.find(S=>S.codename.includes(_))}),...d],virtual_environment_permissions:c.virtual_environment_permissions},x=await l(wS({envId:t.environment_id,memberId:c.id,data:y}));wS.fulfilled.match(x)&&x.payload.ok&&(f(!1),e(),l(yp(n.id)))}},g=P.useMemo(()=>b0e(t.codename_permissions),[]);return P.useEffect(()=>{r(!1)},[]),w.jsx(w.Fragment,{children:w.jsx(ut,{onClose:e,children:w.jsx("div",{className:et.modalWrapper,children:w.jsxs(ut.Content,{width:"380px",children:[w.jsx(ut.Title,{children:"Permissions request"}),w.jsx(ut.Description,{children:w.jsx("div",{className:et.modalDescription,children:w.jsxs("span",{children:[w.jsx("b",{children:t.user_name})," requested following permissions to"," ",w.jsxs("b",{children:[t.account_name," 
12(ID: ",t.account_id,")"]})]})})}),w.jsx("div",{className:et.controlWrapper,children:s===void 0?w.jsx("div",{className:et.loader,children:w.jsx(Jee,{animated:!0,fillColor:o})}):w.jsx(S1e,{environmentId:t.environment_id,memberId:t.member_id,permissions:d,setPermissions:h,permissionsCodeKeys:g})}),w.jsx(ut.Field,{children:w.jsx(yi,{style:{width:"100%"},size:"medium",text:"Accept",type:"blue",disabled:u,submitting:u,onClick:p})})]})})})})},k1e=({notificationData:e,onClose:t,deleteNotification:n,setIsModalLoading:r})=>(P.useEffect(()=>{r(!1)},[]),w.jsx(w.Fragment,{children:w.jsx(ut,{onClose:t,children:w.jsx("div",{className:et.modalWrapper,children:w.jsxs(ut.Content,{width:"380px",children:[w.jsx(ut.Title,{children:"Permissions updated"}),w.jsx(ut.Description,{children:w.jsx("div",{className:et.modalDescription,children:w.jsxs("span",{children:[w.jsx("b",{children:e.admin_name})," updated your permissions to"," ",w.jsxs("b",{children:[e.account_name," (ID:",e.account_id,")"]})]})})}),w.jsx("div",{className:et.updateModalPermissionWrapper,children:e.permissions.map(i=>w.jsx(w.Fragment,{children:w.jsxs("p",{className:et.updatePermission,children:[w.jsxs("span",{children:[i.service," "]}),w.jsx("span",{className:et.updateInformation,children:i.mode})]})}))}),w.jsx(ut.Field,{children:w.jsx(yi,{type:"blue",style:{width:"100%"},size:"medium",text:"Got it",onClick:n})})]})})})})),A1e=({commonNotificationsItem:e,setDeleteNotification:t,notificationData:n,renderText:r,renderIcon:i})=>{const[a,o]=P.useState(!1),[s,l]=P.useState(!1),[c,u]=P.useState(!1),f=Zt(),d=()=>{f(yp(e.id))},h=n.data;return w.jsxs("div",{className:Qr.notificationWrapper,children:[w.jsxs("div",{children:[e.read_at===null&&w.jsx("div",{className:Qr.markAsRead}),w.jsx("div",{className:Qr.iconClose,children:w.jsx(P3,{onClick:()=>{o(!0),t(e.id)},style:{width:"10px",height:"10px"}})}),w.jsx("div",{className:Qr.iconWrapper,children:i()})]}),w.jsxs("div",{children:[r(),w.jsx("p",{className:Qr.time,children:Fo(e.timestamp).fromNow()}),w.jsx(yi,{className:Qr.button,text:"Accept",submitting:s,disabled:a||c,size:"small",type:"blue",onClick:async()=>{l(!0),f(Oh(n.id));const p=await f(jo.acceptOwnership({transferRequestId:h.transfer_request_id,organizationId:h.organization_id}));jo.acceptOwnership.fulfilled.match(p)&&p.payload&&(d(),l(!1),window.location.reload())}}),w.jsx(yi,{className:Qr.button,text:"Decline",submitting:c,disabled:a||s,size:"small",type:"transparent",onClick:async()=>{u(!0),f(Oh(n.id));const p=await f(jo.declineOwnership({transferRequestId:h.transfer_request_id,organizationId:h.organization_id}));jo.declineOwnership.fulfilled.match(p)&&p.payload&&d(),u(!1)}})]})]})},$1e=e=>P.createElement("svg",{width:20,height:15,viewBox:"0 0 20 15",fill:"#2ED47A",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M0.418593 14.4992C0.583428 14.6122 1.21922 14.9277 1.75611 14.2495L5.3919 8.93715L9.23963 12.6483C9.44214 12.8414 9.72001 12.945 10.0026 12.912C10.2804 12.8838 10.5348 12.7378 10.6996 12.507L17.0811 3.3563L17.3118 6.41752C17.3684 7.1946 18.0983 7.32176 18.3432 7.30292C18.8707 7.26054 19.271 6.80371 19.2286 6.27152L18.8236 0.88848C18.7859 0.361007 18.3244 -0.039307 17.7922 0.00307922L12.4092 0.408103C11.8817 0.445779 11.4814 0.907318 11.5238 1.4395C11.5615 1.96697 12.0183 2.36258 12.5552 2.3249L15.6164 2.09413L9.7671 10.4772L5.90996 6.75661C5.70745 6.55881 5.42487 6.45991 5.14701 6.49288C4.86443 6.52113 4.61012 6.67184 4.44999 6.90732L0.168985 13.1616C-0.132428 13.5996 -0.0193981 14.1977 0.418593 14.4992Z"})),T1e=({notificationData:e,onClose:t,setIsModalLoading:n})=>{var h;const r=Zt(),i=ni(),a=Ot(p=>p.anomalyDetection.anomalyMonitor,Lt),{grouped_anomalies:o,anomalies_date:s,account_name:l,button_link:c,type:u}=e,f=u===To.monthlyCostsAnomalyDetected?"/m":"/d";P.useEffect(()=>{n(!1)},[]),P.useEffect(()=>{const p=HN(new URL(c).search);p&&p.envId&&r(Qee.getAnomalyMonitor({orgId:+p.orgId,envId:+p.envId,anomalyMonitorId:p.anomalyMonitorId}))},[c]);const d=()=>{const p=new URL(c);i(p.pathname+p.search),t()};return console.log((h=a.data)==null?void 0:h.detected_anomalies),w.jsx(ut,{onClose:t,children:w.jsx("div",{className:et.modalWrapper,children:w.jsxs(ut.Content,{width:"420px",children:[w.jsx(ut.Title,{children:w.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:10,justifyContent:"center"},children:[w.jsx(jL,{height:30,width:30}),w.jsx("span",{children:"Budget anomaly detected"})]})}),w.jsxs("div",{className:qe(et.anomalyTable,"scrollbar"),children:[w.jsxs("div",{className:et.anomalyItem,children:[w.jsx("div",{className:et.anomalyItemName,children:"Period"}),w.jsx("div",{className:qe(et.anomalyItemValue),children:s})]}),w.jsxs("div",{className:et.anomalyItem,children:[w.jsx("div",{className:et.anomalyItemName,children:"Account"}),w.jsx("div",{className:qe("ellipsis",et.anomalyItemValue),children:l})]}),w.jsxs("div",{className:et.anomalyItem,children:[w.jsx("div",{className:et.anomalyItemName,children:"Anomaly source"}),w.jsxs("div",{className:qe("ellipsis",et.anomalyItemValue),children:[o.affected_services_number>1&&w.jsx("span",{className:et.anomalyItemExtraInfo,children:o.affected_services_number}),o.affected_services]})]}),w.jsxs("div",{className:et.anomalyItem,children:[w.jsx("div",{className:et.anomalyItemName,children:"Actual consumption"}),w.jsx("div",{className:qe("ellipsis",et.anomalyItemValue),children:`$${o.actual_consumption}${f}`})]}),w.jsxs("div",{className:et.anomalyItem,children:[w.jsx("div",{className:et.anomalyItemName,children:"Expected consumption"}),w.jsx("div",{className:qe("ellipsis",et.anomalyItemValue,et.anomalyItemExpected),children:`$${o.expected_consumption}${f}`})]}),w.jsxs("div",{className:et.anomalyItem,children:[w.jsx("div",{className:et.anomalyItemName,children:"Detected anomaly"}),w.jsxs("div",{className:qe("ellipsis",et.anomalyItemValue),children:[w.jsxs("span",{className:et.anomalyItemExtraInfo,children:["+$",o.delta]})," ",w.jsxs("span",{className:et.anomalyItemDetectedPercent,children:[w.jsx($1e,{className:et.anomalyItemDetectedPercentIcon}),o.delta_in_percent,"%"]})]})]})]}),w.jsx(ut.Field,{children:w.jsx(yi,{style:{width:"100%"},size:"medium",text:"View billing",type:"blue",onClick:d})})]})})})},P1e="label_47rg0",M1e={label:P1e},DL=({text:e,styles:t})=>w.jsx("div",{className:M1e.label,style:t,children:w.jsx("span",{children:e})}),N1e=()=>w.jsx(DL,{text:"Edit",styles:{background:"var(--card-color-green-fill)",border:"1px solid var(--colorsBrandSuccessColorSuccess)",color:"var(--colorsBrandSuccessColorSuccess)",padding:"9px 12px"}}),I1e=()=>w.jsx(DL,{text:"View",styles:{background:"var(--btn-primary-btn-default)",border:"1px solid var(--active-elements-border-default)",color:"var(--text-primary-text)",padding:"9px 12px"}}),hE={account_id:"account_id",role_id:"role_id",member_id:"member_id",organization_id:"organization_id"}
12,L1e=({onClose:e,notificationsData:t,commonNotificationsItem:n,setIsModalLoading:r})=>{Lx();const i=ni(),a=P.useMemo(()=>Object.entries(t.codename_permissions.reduce((l,c)=>{const[u,f]=c.codename.split("_");return l[u]?l[u].push(f):l[u]=[f],l},{})),[t.codename_permissions]);P.useEffect(()=>{r(!1)},[]);const o=Zt(),s=P.useCallback(()=>{i(pe.teamManagementUsersGroups+`?tab=users&${hE.member_id}=`+t.member_id+`&${hE.organization_id}=`+t.organization_id),e(),o(yp(n.id))},[t.member_id,t.organization_id,e,n.id]);return w.jsx(w.Fragment,{children:w.jsx(ut,{onClose:e,children:w.jsx("div",{className:et.modalWrapper,children:w.jsxs(ut.Content,{width:"380px",children:[w.jsx(ut.Title,{children:"Permissions request"}),w.jsx(ut.Description,{children:w.jsx("div",{className:et.modalDescription,children:w.jsxs("span",{children:[w.jsx("b",{children:t.user_name})," requested following permissions to"," ",w.jsxs("b",{children:[t.account_name," (ID: ",t.account_id,")"]})]})})}),w.jsx("div",{className:et.controlWrapper,children:w.jsx("div",{className:et.permissionsList,children:a.map(([l,c])=>w.jsxs("div",{className:et.permissionsItem,children:[w.jsx("p",{className:et.permissionsServiceName,children:l}),w.jsx("div",{className:et.permissionsItemPermissions,children:c.map(u=>u==="view"?w.jsx(I1e,{}):w.jsx(N1e,{}))})]},l))})}),w.jsx(ut.Field,{children:w.jsx(yi,{style:{width:"100%"},size:"medium",text:"Go to Team Management",type:"blue",onClick:s})})]})})})})},R1e=({notificationData:e,setDeleteNotification:t})=>w.jsxs("div",{className:Ru.notification,children:[(()=>{if(e.data.type!==To.requestPermission)return null;const n=e.data;return w.jsx(g1,{renderIcon:()=>w.jsx(o9,{}),renderText:()=>w.jsxs("p",{className:Qr.notificationText,children:[w.jsx("b",{children:n.user_name})," requested some permissions to"," ",w.jsx("b",{children:n.account_name})]}),renderModal:(r,i,a,o)=>w.jsx(E1e,{notificationsData:n,onClose:r,commonNotificationsItem:{id:e.id,timestamp:e.timestamp,read_at:e.read_at},setIsModalLoading:o}),notificationData:e,commonNotificationsItem:{id:e.id,timestamp:e.timestamp,read_at:e.read_at},setDeleteNotification:t,buttonText:"View request"})})(),(()=>{if(e.data.type!==To.organizationMemberPermissionRequest)return null;const n=e.data;return w.jsx(g1,{renderIcon:()=>w.jsx(o9,{}),renderText:()=>w.jsxs("p",{className:Qr.notificationText,children:[w.jsx("b",{children:n.user_name})," requested some permissions to"," ",w.jsx("b",{children:n.account_name})]}),renderModal:(r,i,a,o)=>w.jsx(L1e,{notificationsData:n,onClose:r,commonNotificationsItem:{id:e.id,timestamp:e.timestamp,read_at:e.read_at},setIsModalLoading:o}),notificationData:e,commonNotificationsItem:{id:e.id,timestamp:e.timestamp,read_at:e.read_at},setDeleteNotification:t,buttonText:"View request"})})(),(()=>{if(e.data.type!==To.budget)return null;const n=e.data;return w.jsx(g1,{renderIcon:()=>w.jsx(Ude,{}),renderText:()=>w.jsxs("p",{className:Qr.notificationText,children:["One of your budgets ",n.limit_state," ",n.verbose_period,"ly set limit."]}),renderModal:(r,i,a,o)=>w.jsx(Gde,{onClose:r,deleteNotification:i,notificationData:n,setIsModalLoading:o}),notificationData:e,commonNotificationsItem:{id:e.id,timestamp:e.timestamp,read_at:e.read_at},setDeleteNotification:t,buttonText:"view details"})})(),(()=>{if(e.data.type!==To.updatedPermission)return null;const n=e.data;return w.jsx(g1,{renderIcon:()=>w.jsx(o9,{}),renderText:()=>w.jsxs("p",{className:Qr.notificationText,children:["Your permissions to ",w.jsx("b",{children:n.account_name})," were updated."," "]}),renderModal:(r,i,a,o)=>w.jsx(k1e,{notificationData:n,onClose:r,deleteNotification:i,setIsModalLoading:o}),notificationData:e,commonNotificationsItem:{id:e.id,timestamp:e.timestamp,read_at:e.read_at},setDeleteNotification:t,buttonText:"View permissions"})})(),(()=>{if(e.data.type!==To.transferOrganizationOwnership)return null;const n=e.data;return w.jsx(A1e,{renderIcon:()=>w.jsx(Yde,{}),renderText:()=>w.jsxs("p",{className:Qr.notificationText,children:[w.jsx("b",{children:n.owner_name})," has requested to transfer ownership of the organization ",w.jsx("b",{children:n.organization_name})," to you."]}),notificationData:e,commonNotificationsItem:{id:e.id,timestamp:e.timestamp,read_at:e.read_at},setDeleteNotification:t})})(),(()=>{if(e.data.type!==To.costsAnomalyDetected&&e.data.type!==To.monthlyCostsAnomalyDetected)return null;const n=e.data;return w.jsx(g1,{renderIcon:()=>w.jsx(Xde,{}),renderText:()=>{const{account_name:r}=n,i=n.type===To.monthlyCostsAnomalyDetected?"Monthly":"Daily";return w.jsxs("p",{className:Ru.anomalyContainer,children:[i," anomaly was detected in the ",w.jsxs("b",{className:qe(Ru.anomalyAccountName,"ellipsis"),children:[r," "]}),"budget."]})},notificationData:e,buttonText:"View details",commonNotificationsItem:{id:e.id,read_at:e.read_at,timestamp:e.timestamp},renderModal:(r,i,a,o)=>w.jsx(T1e,{notificationData:n,onClose:r,setIsModalLoading:o}),setDeleteNotification:t})})()]}),j1e=({notifications:e})=>{const[t,n]=P.useState(null),r=Zt(),i=P.useRef([]);P.useEffect(()=>{i.current&&(i.current=i.current.slice(0,i.current.length))},[]);const a=k0e(i.current);return P.useEffect(()=>{t!==null&&r(yp(t))},[t]),P.useEffect(()=>{const o=setTimeout(()=>{a.forEach(s=>{var l;e&&((l=e.slice(5,e==null?void 0:e.length))==null||l.forEach(c=>{c.read_at===null&&+s===c.id&&r(Oh(c.id))}))}
12),e&&e.slice(0,5).forEach(s=>{s.read_at===null&&r(Oh(s.id))})},1500);return()=>clearInterval(o)},[a]),w.jsx(w.Fragment,{children:e&&e.length!==0&&w.jsxs("div",{className:qe(Ru.blur,"scrollbar"),children:[w.jsx("h5",{className:Ru.title,children:"Recent notifications"}),w.jsx(ane,{itemLayout:"horizontal",dataSource:e,renderItem:(o,s)=>w.jsx("div",{id:String(o.id),ref:l=>{i.current&&l&&(i.current[s]=l)},children:w.jsx(R1e,{setDeleteNotification:n,notificationData:o})},o.id)})]})||(e===void 0?w.jsx(I0e,{}):w.jsxs("div",{className:Ru.emptyNotification,children:[w.jsx(E0e,{}),w.jsx("p",{className:Ru.titleEmptyNotification,children:"No notifications yet"})]}))})},D1e=P.memo(()=>{const{notificationsData:e}=O0e(),t=p0e(),n=e&&e.filter(i=>i.read_at===null),r=P.useMemo(()=>{if(t&&e)return _0e(t,e)},[e,t]);return e!==null?w.jsx(S3,{placement:"bottomRight",content:w.jsx(j1e,{notifications:r}),trigger:"click",children:w.jsx(one,{count:n==null?void 0:n.length,size:"small",color:"var(--colorsBrandErrorColorError)",style:{transform:"translate(50%,0)",cursor:"pointer"},children:w.jsx(pn,{align:"center",justify:"center",style:{padding:8,border:"1px solid rgba(217, 217, 217, 1)",borderRadius:8,cursor:"pointer"},children:w.jsx(sne,{})})})}):null}),js=e=>e.reservation.inventory,uYe=e=>js(e).commitments,fYe=e=>js(e).loadingState,dYe=e=>js(e).loadingState===Zn.error,hYe=e=>js(e).filters,pYe=e=>js(e).utilization.byCommitmentId,gYe=e=>js(e).utilization.loadingState,mYe=e=>js(e).utilization.loadingState===Zn.error,vYe=e=>js(e).costs.byCommitmentId,yYe=e=>js(e).costs.loadingState,xYe=e=>js(e).costs.loadingState===Zn.error,F1e=e=>e.reservation.scope,B1e=()=>{const e=Ot(o=>o.aws.entities.environments),{environments:t}=en(),n=P.useMemo(()=>t.filter(o=>{var s;return((s=e.byId[o])==null?void 0:s.provider)===Ye.aws}),[t,e]),r=P.useMemo(()=>{const o=new Set;return n.forEach(s=>{const l=e.byId[s];l!=null&&l.account_id&&o.add(l.account_id)}),o},[n,e.byId]),i=P.useMemo(()=>{const o=new Set;return n.forEach(l=>{var u;const c=(u=e.byId[l])==null?void 0:u.organization_management_account_id;c&&r.has(c)&&o.add(c)}),[...o].map(l=>{var h;const c=n.find(p=>{var g;return((g=e.byId[p])==null?void 0:g.account_id)===l}),u=c!==void 0?e.byId[c]:void 0,f=(h=u==null?void 0:u.children)==null?void 0:h.length,d=n.filter(p=>{var g;return((g=e.byId[p])==null?void 0:g.organization_management_account_id)===l}).length;return{id:l,type:"org",provider:"aws",name:(u==null?void 0:u.name)??l,accountCount:f??d}}).sort((l,c)=>l.name.localeCompare(c.name))},[n,e.byId,r]),a=P.useMemo(()=>n.filter(o=>{var l;const s=(l=e.byId[o])==null?void 0:l.organization_management_account_id;return!s||!r.has(s)}).map(o=>({id:e.byId[o].account_id,type:"standalone",provider:"aws",name:e.byId[o].name,accountCount:1})).sort((o,s)=>o.name.localeCompare(s.name)),[n,e.byId,r]);return{orgs:i,standalones:a}};var O6=(e=>(e.linked="linked",e.management="management",e))(O6||{});const bYe=(e,t,n,r=!1)=>{if(n===null)return null;for(const i of Object.values(e)){if(!(i!=null&&i.organization))continue;if(r){if(i.account_id===n)return t;continue}if((i.organization_management_account_id??i.account_id)===n)return t}return null},z1e=e=>{const t={};return e.allIds.forEach(n=>{var i;const r=e.byId[n];(i=r==null?void 0:r.children)==null||i.forEach(a=>{a!=null&&a.cloud_id&&(t[a.cloud_id]={name:a.name,provider:r.provider})})}),e.allIds.forEach(n=>{const r=e.byId[n];r!=null&&r.account_id&&(t[r.account_id]={name:r.name,provider:r.provider})}),t},s9="no_management_account",V1e=({analysisLevel:e,curDisabled:t,initialOrgAccountId:n})=>{var E;const r=Ot(k=>k.aws.entities.environments),{environments:i}=en(),a=P.useMemo(()=>i.filter(k=>{var $;return(($=r.byId[k])==null?void 0:$.provider)===Ye.aws}),[i,r]),o=P.useMemo(()=>t.reduce((k,$)=>(k[$.envId]=!0,k),{}),[t]),{managementAccountsById:s,managementAccountsIds:l}=P.useMemo(()=>a.reduce((k,$)=>{if(e===pg.MASTER_ACCOUNT&&o[$])return k;const T=r.byId[$],{organization_management_account_email:M,organization_management_account_id:R,type:N,name:D}=T,F=R||s9,V=N===O6.management?D:M||"No management account";return k.managementAccountsById[F]?N===O6.management&&k.managementAccountsById[F]!==V&&(k.managementAccountsById[F]=V):(k.managementAccountsById[F]=V,k.managementAccountsIds.push(F)),k},{managementAccountsById:{},managementAccountsIds:[]}),[a,e,o,r.byId]),c=P.useMemo(()=>l.map(k=>({label:s[k],value:k})),[l,s]),[u,f]=P.useState(n||((E=c[0])==null?void 0:E.value)),{state:{viewEnvIds:d}}=vp([Jr.reservation.view],a),h=P.useMemo(()=>new Set(d),[d]),p=P.useMemo(()=>z1e(r),[r]),g=P.useMemo(()=>{const k=a.find(R=>r.byId[R].account_id===u),$=k?h.has(k):!1;if(u===s9)return a.filter(R=>!r.byId[R].organization_management_account_id).map(R=>({label:r.byId[R].name,value:r.byId[R].account_id,disabled:!$&&!h.has(R)}))||[];if(!k)return[];const T=k?r.byId[k]:null;return T!=null&&T.children?[...T.children].sort((R,N)=>R.name.localeCompare(N.name)).map(R=>{var N;return{label:((N=p[R.cloud_id])==null?void 0:N.name)??R.name,value:R.cloud_id,disabled:!$}}):[]},[a,u,r.byId,h,p]),v=P.useMemo(()=>g.filter(k=>!k.disabled),[g]),y=P.useMemo(()=>!v.length,[v]),x=P.useMemo(()=>
12{if(!u||u===s9)return!1;const k=a.find(T=>r.byId[T].account_id===u);if(!k)return!1;const $=r.byId[k];return!($!=null&&$.children)||$.children.length===0},[u,a,r.byId]),C=P.useMemo(()=>[{label:"Master account",value:pg.MASTER_ACCOUNT,disabled:y&&!x},{label:"Linked account",value:pg.LINKED_ACCOUNT,disabled:x}],[y,x]),_=P.useMemo(()=>a.filter(k=>r.byId[k].organization_management_account_id===u).map(k=>({label:r.byId[k].name,value:r.byId[k].account_id,disabled:!h.has(k)})),[a,r.byId,u]),S=P.useMemo(()=>_.filter(k=>!k.disabled),[_]),O=P.useMemo(()=>y?S.map(k=>k.value):v.map(k=>k.value),[y,v,S]);return{awsEnvIds:a,managementAccount:u,setManagementAccount:f,managementAccountOptions:c,linkedAccountOptions:g,linkedAccountsOnly:y,managementAccountHasNoLinkedAccounts:x,analysisLevelOptions:C,accountsOptions:_,defaultLinkedAccounts:O}},W1e="row_T-8VH",H1e="note_cUhz1",G1e="containerSelect_az4sG",U1e="accountSelect_u5ik-",Y1e="selectHint_kzTah",X1e="optionName_pYSw8",q1e="tagFlush_5CyaP",Z1e="menuDivider_p4Xwj",Po={row:W1e,note:H1e,containerSelect:G1e,accountSelect:U1e,selectHint:Y1e,optionName:X1e,tagFlush:q1e,menuDivider:Z1e},K1e=({container:e,orgs:t,standalones:n,onPick:r})=>{const{getCloudLogoByProvider:i}=zN(),[a,o]=P.useState(""),s=P.useMemo(()=>new Map([...t,...n].map(c=>[c.id,c])),[t,n]),l=P.useMemo(()=>{const c=a.trim().toLowerCase(),u=d=>d.name.toLowerCase().includes(c),f=d=>({value:d.id,label:d.name,container:d});return[{label:"Organizations",options:t.filter(u).map(f)},{label:w.jsxs(pn,{align:"center",gap:6,children:["Standalone accounts",w.jsx(Pi.Text,{type:"secondary",className:Po.selectHint,children:"no aggregation"})]}),options:n.filter(u).map(f)}]},[t,n,a]);return w.jsx(bp,{className:Po.containerSelect,placeholder:"Select scope",value:e==null?void 0:e.id,disabled:s.size===0,options:l,onSelect:c=>{const u=s.get(c);u&&r(u)},onOpenChange:c=>{c||o("")},optionRender:c=>{const u=c.data.container;return u?w.jsxs(pn,{align:"center",gap:8,children:[w.jsx("img",{src:i(u.provider),alt:"",width:16,height:16}),w.jsx(Pi.Text,{ellipsis:!0,className:Po.optionName,children:u.name}),w.jsx(Pi.Text,{type:"secondary",className:Po.selectHint,children:u.type==="org"?`${u.accountCount} linked`:"single account"})]}):null},labelRender:()=>e?w.jsxs(pn,{align:"center",gap:6,children:[w.jsx("img",{src:i(e.provider),alt:"",width:16,height:16}),w.jsx(Pi.Text,{ellipsis:!0,className:Po.optionName,children:e.name}),e.type==="org"?w.jsxs(kS,{bordered:!1,className:Po.tagFlush,children:["ORG · ",e.accountCount]}):w.jsx(kS,{bordered:!1,color:"warning",className:Po.tagFlush,children:"STANDALONE"})]}):null,popupRender:c=>w.jsxs(w.Fragment,{children:[w.jsx(W8,{placeholder:"Search organizations & accounts…",value:a,onChange:o}),w.jsx(U8,{className:Po.menuDivider}),c]})})},J1e=({mode:e,onChange:t})=>w.jsxs(jy.Group,{value:e,buttonStyle:"solid",onChange:n=>t(n.target.value),children:[w.jsx(jy.Button,{value:"org",children:"Whole Org"}),w.jsx(jy.Button,{value:"accounts",children:"Account"})]}),pE=(e,t)=>`${(t==null?void 0:t.label)??""} ${(t==null?void 0:t.value)??""}`.toLowerCase().includes(e.toLowerCase()),Q1e=({accounts:e,selectedIds:t,onChange:n})=>{const[r,i]=P.useState(""),a=P.useCallback(()=>{const l=e.filter(c=>!c.disabled&&pE(r,c)).map(c=>c.value);i(""),l.length&&n([...new Set([...t,...l])])},[e,r,t,n]),{getPopupRender:o}=LL(),s=P.useMemo(()=>o({onSelectAll:a,onReset:()=>{i(""),n([])},selectedItemsLength:t.length}),[o,a,t.length,n]);return w.jsx(bp,{mode:"multiple",className:Po.accountSelect,placeholder:"Select accounts",options:e,value:t,onChange:n,showSearch:!0,filterOption:pE,onSearch:i,maxTagCount:"responsive",maxTagTextLength:12,notFoundContent:"No eligible accounts",popupRender:s})},ehe=()=>w.jsxs("span",{className:Po.note,children:[w.jsx(_3,{})," Standalone account — viewable only on its own."]}),the=[],nhe=()=>{const e=Zt(),t=Ot(F1e),{orgs:n,standalones:r}=B1e(),i=P.useMemo(()=>[...n,...r].find(f=>f.id===t.managementAccountId)??null,[n,r,t.managementAccountId]);P.useEffect(()=>{if(!i&&(n.length||r.length)){const f=n[0]??r[0];e(u1.setScopeContainer({managementAccountId:f.id,isStandalone:f.type==="standalone"}))}},[i,n,r,e]);const{linkedAccountOptions:a,accountsOptions:o,linkedAccountsOnly:s,defaultLinkedAccounts:l,setManagementAccount:c}=V1e({analysisLevel:pg.LINKED_ACCOUNT,curDisabled:the,initialOrgAccountId:t.managementAccountId??void 0});P.useEffect(()=>{t.managementAccountId&&c(t.managementAccountId)},[t.managementAccountId,c]);const u=s?o:a;return w.jsxs(pn,{className:Po.row,align:"center",gap:10,wrap:!0,children:[w.jsx(K1e,{container:i,orgs:n,standalones:r,onPick:f=>e(u1.setScopeContainer({managementAccountId:f.id,isStandalone:f.type==="standalone"}))}
12),!t.isStandalone&&w.jsx(J1e,{mode:t.mode,onChange:f=>{e(u1.setScopeMode(f)),f==="accounts"&&t.selectedAccountIds.length===0&&e(u1.setScopeSelectedAccounts(l))}}),!t.isStandalone&&t.mode==="accounts"&&w.jsx(Q1e,{accounts:u,selectedIds:t.selectedAccountIds,onChange:f=>e(u1.setScopeSelectedAccounts(f))}),t.isStandalone&&w.jsx(ehe,{})]})},rhe=()=>{const e=en(),{organizationMembersByOrgId:t}=Ot(r=>({organizationMembersByOrgId:r.organizations.organizationMembersByOrgId,currentOrgId:r.organizations.currentId}),Lt),n=Zt();return P.useEffect(()=>{(!t[e.id]||t[e.id].loadingState===Zn.notLoaded)&&e.id!==0&&n(jo.getOrganizationMembers({orgId:e.id}))},[e.id]),{currentOrgMembers:t[e.id]}},gE="My organization",mE="Incognito Mode",ihe=()=>{const e=ni(),{accountData:t}=Ot(y=>({accountData:y.auth.accountData}),Lt),{appLogout:n}=lN(),r=()=>n({logoutParams:{returnTo:window.location.origin}}),{theme:i,setTheme:a}=ti(),o=()=>{a(i===ca.dark?ca.light:ca.dark)},{incognitoMode:s,toggleIncognitoMode:l}=Ix();rhe();const{is_org_admin:c,is_owner:u}=en(),f=P.useMemo(()=>mne(t),[t]),d=T3(),h=P.useMemo(()=>[{label:"Profile",icon:w.jsx(SN,{}),onClick:()=>{e(`${pe.myAccount}/profile`)}},{label:gE,icon:w.jsx(_N,{}),onClick:()=>{e(pe.myOrganizationSettings)}},{label:"Dark Theme",icon:w.jsx(lne,{}),extra:w.jsx(AS,{value:i===ca.dark}),onClick:o},{label:mE,icon:w.jsx(AL,{size:14}),extra:w.jsx(AS,{value:s}),onClick:()=>l()},{type:"divider"},{label:"Log Out",icon:w.jsx(cne,{}),onClick:r}],[s,i]),p=P.useMemo(()=>({items:[{key:"user",label:`${t==null?void 0:t.given_name} ${t==null?void 0:t.family_name}`,type:"group",children:h.map((y,x)=>({...y,key:x.toString()})).filter(y=>y.label===gE?c||u:y.label===mE?d:!0)}]}),[t,i,c,u,h]),[g,v]=P.useState(!1);return w.jsx(C3,{menu:p,trigger:["click"],open:g,onOpenChange:(y,{source:x})=>{x==="trigger"&&v(C=>!C)},overlayStyle:{zIndex:1e4},children:t?w.jsx(wN,{style:{cursor:"pointer"},children:f}):w.jsx("div",{style:{height:32},children:w.jsx(kN.Avatar,{active:!0})})})},ahe=[pe.cloudlist,pe.cloudmap,pe.cloudnet,pe.billingDetailed,pe.waste],ohe=()=>{const e=xi(),{state:t}=vp([Jr.architecture.view]),n=P.useMemo(()=>ahe.some(a=>window.location.pathname.includes(a))&&t.view,[e.pathname,t.view]),r=Zt(),i=()=>{r(ete())};return n?w.jsx(pn,{align:"center",justify:"center",style:{padding:8,border:"1px solid rgba(217, 217, 217, 1)",borderRadius:8,cursor:"pointer"},onClick:i,children:w.jsx(Gg,{})}):null},she="header_hIpsA",lhe="collapseToggle_-k6GS",che="disabled_Xuyj7",l9={header:she,collapseToggle:lhe,disabled:che},uhe=({toggleCollapsed:e,isMenuCollapsed:t,isSidebarToggleDisabled:n})=>{const r=Ot(o=>o.app.hideCabinetEnvSelectorWithRefresh,Lt),{pathname:i}=xi(),a=i.includes(`${pe.reservation}/${q2.suggestions}`)||i.includes(`${pe.reservation}/${q2.inventory}`)||i.includes(`${pe.reservation}/${q2.detailed}`)||i.includes(`${pe.reservation}/${q2.purchase_analyzer}`);return w.jsx(ih.Header,{className:qe("block",l9.header),children:w.jsxs(pn,{align:"center",justify:"space-between",style:{height:"100%"},children:[w.jsxs(pn,{align:"center",gap:12,children:[w.jsx(Wo,{title:n?"Close the AI assistant to expand the sidebar":void 0,placement:"bottomLeft",children:w.jsx("div",{onClick:n?void 0:e,className:qe(l9.collapseToggle,n?l9.disabled:""),children:t?w.jsx(une,{}):w.jsx(fne,{})})}),a?w.jsx(nhe,{}):r?w.jsx("span",{}):w.jsx(h0e,{})]}),w.jsxs(pn,{align:"center",justify:"space-between",gap:20,children:[w.jsx(ohe,{}),w.jsx(D1e,{}),w.jsx(ihe,{})]})]})})},fhe=P.memo(uhe),dhe="cabinetSidebar_8wTIg",hhe="notificationOffset_HUWHU",phe="cabinetRightSideLayout_k2aN4",c9={cabinetSidebar:dhe,notificationOffset:hhe,cabinetRightSideLayout:phe},ghe=({children:e,assistantSlot:t,isMenuCollapsed:n,setIsMenuCollapsed:r,isSidebarToggleDisabled:i})=>{const a=en();gue();const s=(a?TL(a):null)!==null;return w.jsx(pn,{vertical:!0,style:{height:"100vh"},children:w.jsxs(ih,{style:{height:"100%",gap:8,padding:8,background:"transparent"},hasSider:!0,children:[w.jsx(r0e,{homeRoute:pe.home,isCollapsed:n}),t,w.jsxs(ih,{className:c9.cabinetRightSideLayout,children:[w.jsx(fhe,{isMenuCollapsed:n,toggleCollapsed:()=>r(l=>!l),isSidebarToggleDisabled:i}),w.jsxs(ih.Content,{style:{height:"100%",overflow:"auto"},children:[w.jsx(xue,{children:w.jsxs(pn,{vertical:!0,style:{height:"100%"},children:[w.jsx(Pue,{}),e]})}),w.jsx("div",{className:qe(c9.cabinetSidebar,s&&c9.notificationOffset),id:"cabinet-sidebar"})]})]})]})})},mhe=()=>{const[e,t]=P.useState(!1);return{isOpened:e,actions:{open:()=>t(!0),close:()=>t(!1),toggle:()=>t(a=>!a)}}}
12,vhe=()=>{const{setTheme:e}=ti();P.useEffect(()=>{const t=tte();t!==null&&ha(ca).some(r=>ca[r]===+t)&&e(+t)},[])},yhe=()=>w.jsx(WN,{title:"Should be refreshed"}),xhe=({showDescription:e=!0})=>w.jsx(WN,{title:"There is no information to show in here",des:e?"Please, choose one or more accounts on the top":void 0}),bhe="modal_fM8m9",Che="warningTip_HUUpW",whe="content_qMAa0",s5={modal:bhe,warningTip:Che,content:whe},u9=64,_he=({className:e,value:t,onChange:n,setError:r,placeholder:i=""})=>{const{organizations:a}=Ot(f=>({organizations:f.organizations.items}),Lt);en();const[o,s]=P.useState(!1),l=t.length>u9?`Name should be a maximum of ${u9} symbols`:"",c=o&&t.trim().length===0?"Name shouldn't be empty":"",u=l||c;return P.useEffect(()=>{r(!!u)},[!!u]),w.jsx("div",{className:qe(e),children:w.jsx(cN,{placeholder:i,value:t,type:"text",isTouched:!!u,errorMessage:u,onChange:f=>{f.target.value.length<=u9+1&&n(f.target.value),o||s(!0)}})})},She=({createNew:e})=>{const t=Zt(),n=ni(),{showNotification:r}=$3(),i=Ot(h=>{var p;return(p=h.auth.accountData)==null?void 0:p.email},Lt),a=i==null?void 0:i.split("@")[1],[o,s]=P.useState(!1),[l,c]=P.useState(!1),[u,f]=P.useState(""),d=async()=>{var p;s(!0);const h=await t(jo.createOrganization({name:u}));if(jo.createOrganization.fulfilled.match(h))if(h.payload.ok)await t(jo.getCreationAccess()),localStorage.setItem("organizationName",u),n(pe.accountManager);else{const g=(p=h.payload.data)==null?void 0:p.name[0];g&&r({status:wl.bad,text:g})}s(!1)};return w.jsxs(ut,{onClose:e?()=>{n(-1)}:void 0,modalClassName:s5.modal,children:[w.jsx(ut.Title,{children:"What's your company name?"}),w.jsxs(ut.Description,{children:["This will be the name of your Uniskai",w.jsx("br",{}),"Organization. Choose something",w.jsx("br",{}),"that your team will recognize."]}),w.jsxs(ut.Content,{width:"360px",className:s5.content,children:[w.jsx(_he,{className:s5.input,placeholder:"",value:u,onChange:f,setError:c}),w.jsxs(kL,{className:s5.warningTip,severity:Tx.warning,children:["Anyone with a ",w.jsxs("b",{children:["@",a]})," email will be joined to your organization automatically but won't get access to added cloud accounts."]}),w.jsx(yi,{text:"Continue",size:"medium",type:"blue",disabled:!u.trim()||l,onClick:d,submitting:o})]})]})},Ohe="wrapper_H7kfr",Ehe="logo_0v7m6",khe="loggedAs_OQbod",Ahe="logged_7Iwgs",$he="email_3xg2v",v1={wrapper:Ohe,logo:Ehe,loggedAs:khe,logged:Ahe,email:$he},The="wrapper_Ots-S",Phe={wrapper:The},Mhe="/cabinet/static/assets/logo-org-create-dark-CfWFtgiP.svg",Nhe="/cabinet/static/assets/logo-org-create-light-CPAnFZq9.svg",Ihe=({route:e})=>{const{theme:t}=ti();return w.jsx("a",{href:e,className:Phe.wrapper,style:{cursor:"pointer"},children:t===ca.light?w.jsx("img",{width:"100px",src:Mhe,alt:""}):w.jsx("img",{width:"100px",src:Nhe,alt:""})})},FL=({showEmail:e,onClose:t,onBack:n,children:r})=>{const i=Ot(a=>{var o;return(o=a.auth.accountData)==null?void 0:o.email},Lt);return _0.createPortal(w.jsxs("div",{className:v1.wrapper,children:[t&&w.jsx("div",{style:{position:"absolute",top:"30px",right:"30px"},children:w.jsx(P3,{onClick:t})}),e?w.jsxs("div",{className:v1.loggedAs,children:[w.jsx("div",{className:v1.logged,children:"Logged in as "}),w.jsx("div",{className:v1.email,children:w.jsx("span",{children:i})})]}):w.jsx("div",{style:{width:70}}),n&&w.jsx("div",{style:{position:"absolute",top:"30px",left:"30px"},children:w.jsx(RL,{onClick:n,text:"Back"})}),w.jsx("div",{className:v1.logo,children:w.jsx(Ihe,{route:pe.home})}),r]}),document.body)},BL=({createNew:e})=>w.jsx(FL,{showEmail:!0,children:w.jsx(She,{createNew:e})}),Lhe=Object.freeze(Object.defineProperty({__proto__:null,default:BL},Symbol.toStringTag,{value:"Module"})),Rhe="modal_o6-6T",jhe="inputWrapper_TjxBg",Dhe="inputs_mlYjO",Fhe="field_dMlyg",l5={modal:Rhe,inputWrapper:jhe,inputs:Dhe,field:Fhe},zL
vendor: 83,633 bytes, line 12
12={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:(?:[0-26-9]\\d|3[0-8]|5[0135-9])\\d|4(?:[02-9]\\d|10))|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90))|7(?:[013-57-9]\\d|2[0-8])\\d)\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-7]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-68]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function 
12Bhe(e,t,n){switch(n){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1);break}return{value:e,caret:t}}function zhe(e,t,n){for(var r={},i="",a=0,o=0;o<e.length;){var s=n(e[o],i,r);s!==void 0&&(i+=s,t!==void 0&&(t===o?a=i.length-1:t>o&&(a=i.length))),o++}t===void 0&&(a=i.length);var l={value:i,caret:a};return l}function Vhe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Whe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Whe(e,t){if(e){if(typeof e=="string")return vE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vE(e,t)}}function vE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E6(e,t){for(var n=0,r=Vhe(t.split("")),i;!(i=r()).done;){var a=i.value;a===e&&n++}return n}function Hhe(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"x",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",i=e.length,a=E6("(",e),o=E6(")",e),s=a-o;s>0&&i<t.length;)e+=t[i].replace(n,r),t[i]===")"&&s--,i++;return e}function Ghe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Uhe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uhe(e,t){if(e){if(typeof e=="string")return yE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yE(e,t)}}function yE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yhe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!e)return function(i){return{text:i}};var r=E6(t,e);return function(i){if(!i)return{text:"",template:e};for(var a=0,o="",s=Ghe(e.split("")),l;!(l=s()).done;){var c=l.value;if(c!==t){o+=c;continue}if(o+=i[a],a++,a===i.length&&i.length<r)break}return n&&(o=Hhe(o,e)),{text:o,template:e}}}function Xhe(e,t,n){typeof n=="string"&&(n=Yhe(n));var r=n(e)||{},i=r.text,a=r.template;if(i===void 0&&(i=e),a)if(t===void 0)t=i.length;else{for(var o=0,s=!1,l=-1;o<i.length&&o<a.length;){if(i[o]!==a[o]){if(t===0){s=!0,t=o;break}l=o,t--}o++}s||(t=l+1)}return{text:i,caret:t}}function qhe(e){return e.hasAttribute("readonly")}function Zhe(e){if(e.selectionStart!==e.selectionEnd)return{start:e.selectionStart,end:e.selectionEnd}}var xE={Backspace:8,Delete:46};function Khe(e){switch(e.keyCode){case xE.Backspace:return"Backspace";case xE.Delete:return"Delete"}}function Jhe(e){return e.selectionStart}function VL(e,t){t!==void 0&&(Qhe()?setTimeout(function(){return e.setSelectionRange(t,t)},0):e.setSelectionRange(t,t))}function Qhe(){if(typeof navigator<"u")return epe.test(navigator.userAgent)}var epe=/Android/i;function tpe(e,t,n,r,i){k6(t,n,r,void 0,i)}function npe(e,t,n,r,i){if(!qhe(t)){var a=Khe(e);switch(a){case"Delete":case"Backspace":e.preventDefault();var o=Zhe(t);return o?(rpe(t,o),k6(t,n,r,void 0,i)):k6(t,n,r,a,i)}}}function rpe(e,t){var n=e.value;n=n.slice(0,t.start)+n.slice(t.end),e.value=n,VL(e,t.start)}function k6(e,t,n,r,i){var a=zhe(e.value,Jhe(e),t),o=a.value,s=a.caret;if(r){var l=Bhe(o,s,r);o=l.value,s=l.caret}var c=Xhe(o,s,n),u=c.text;s=c.caret,e.value=u,VL(e,s),i&&i(o)}var ipe=["ref","parse","format","value","defaultValue","controlled","onChange","onKeyDown"];function bE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function r0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
14t%2?bE(Object(n),!0).forEach(function(r){ape(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ape(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ope(e,t){if(e==null)return{};var n=spe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function spe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function lpe(e){var t=e.ref,n=e.parse,r=e.format,i=e.value,a=e.defaultValue,o=e.controlled,s=o===void 0?!0:o,l=e.onChange,c=e.onKeyDown,u=ope(e,ipe),f=P.useRef(),d=P.useCallback(function(v){f.current=v,t&&(typeof t=="function"?t(v):t.current=v)},[t]),h=P.useCallback(function(v){return tpe(v,f.current,n,r,l)},[f,n,r,l]),p=P.useCallback(function(v){if(c&&c(v),!v.defaultPrevented)return npe(v,f.current,n,r,l)},[f,n,r,l,c]),g=r0(r0({},u),{},{ref:d,onChange:h,onKeyDown:p});return s?r0(r0({},g),{},{value:r(CE(i)?"":i).text}):r0(r0({},g),{},{defaultValue:r(CE(a)?"":a).text})}function CE(e){return e==null}var cpe=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function wE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function upe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wE(Object(n),!0).forEach(function(r){fpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fpe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dpe(e,t){if(e==null)return{};var n=hpe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hpe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function em(e,t){var n=e.inputComponent,r=n===void 0?"input":n,i=e.parse,a=e.format,o=e.value,s=e.defaultValue,l=e.onChange,c=e.controlled,u=e.onKeyDown,f=e.type,d=f===void 0?"text":f,h=dpe(e,cpe),p=lpe(upe({ref:t,parse:i,format:a,value:o,defaultValue:s,onChange:l,controlled:c,onKeyDown:u,type:d},h));return Xe.createElement(r,p)}em=Xe.forwardRef(em);em.propTypes={parse:Be.func.isRequired,format:Be.func.isRequired,inputComponent:Be.elementType,type:Be.string,value:Be.string,defaultValue:Be.string,onChange:Be.func,controlled:Be.bool,onKeyDown:Be.func,onCut:Be.func,onPaste:Be.func};function _E(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var ppe={}.constructor;function Wu(e){return e!=null&&e.constructor===ppe}function A6(e){"@babel/helpers - typeof";return A6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A6(e)}function M3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gpe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N3(e,t,n){return t&&gpe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var mpe="1.2.0",vpe="1.7.35",SE=" ext. ",ype=/^\d+$/,Ur=function(){function e(t){M3(this,e),WL(t),this.metadata=t,GL.c
vendor: 6,835 bytes, line 14
14all(this,t)}return N3(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){if(n&&ype.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new OE(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new OE(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var i=this.nonGeographic()[n];if(i)return i}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),e}(),OE=function(){function e(t,n){M3(this,e),this.globalMetadataObject=n,this.metadata=t,GL.call(this,n.metadata)}return N3(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return r.map(function(i){return new xpe(i,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&EE(this.types(),n))return new Cpe(EE(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?SE:this.metadata[13]||SE}}]),e}(),xpe=function(){function e(t,n){M3(this,e),this._format=t,this.metadata=n}return N3(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!bpe.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),bpe=/^\(?\$1\)?$/,Cpe=function(){function e(t,n){M3(this,e),this.type=t,this.metadata=n}return N3(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
vendor: 4,100 bytes, lines 14-15
14ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function EE(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function WL(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Wu(e)||!Wu(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Wu(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+wpe(e)+": "+e,"."))}var wpe=function(t){return A6(t)};function Rc(e,t){if(t=new Ur(t),t.hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function HL(e,t){return t.countries.hasOwnProperty(e)}function GL(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?_E(t,mpe)===-1?this.v2=!0:_E(t,vpe)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function I3(e,t){return _pe(e,void 0,t)}function _pe(e,t,n){var r=n.type(t),i=r&&r.possibleLengths()||n.possibleLengths();if(!i)return"IS_POSSIBLE";var a=e.length,o=i[0];return o===a?"IS_POSSIBLE":o>a?"TOO_SHORT":i[i.length-1]<a?"TOO_LONG":i.indexOf(a,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Spe(e,t,n){if(t===void 0&&(t={}),n=new Ur(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return UL(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function UL(e,t){switch(I3(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function Tl(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function Ope(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Epe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Epe(e,t){if(e){if(typeof e=="string")return kE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kE(e,t)}}function kE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var kpe=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Rx(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){n=new Ur(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Tl(r,n.nationalNumberPattern())){if(f9(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||f9(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var i=Ope(kpe),a;!(a=i()).done;){var o=a.value;if(f9(r,o,n))return o}}}}function f9(e,t,n){return t=n.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:Tl(e,t.pattern())}function Ape(e,t,n){if(t=t||{},n=new Ur(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes())return Rx(e,t,n.metadata)!==void 0;var r=t.v2?e.nationalNumber:e.phone;return Tl(r,n.nationalNumberPattern())}
vendor: 5,247 bytes, lines 15-16
15function $pe(e,t,n){var r=new Ur(n),i=r.getCountryCodesForCallingCode(e);return i?i.filter(function(a){return Tpe(t,a,n)}):[]}function Tpe(e,t,n){var r=new Ur(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var jx=2,Ppe=17,Mpe=3,Xi="0-90-9٠-٩۰-۹",Npe="-‐-―−ー-",Ipe="//",Lpe="..",Rpe="  ­​⁠ ",jpe="()()[]\\[\\]",Dpe="~⁓∼~",Bo="".concat(Npe).concat(Ipe).concat(Lpe).concat(Rpe).concat(jpe).concat(Dpe),L3="++",Fpe=new RegExp("(["+Xi+"])");function YL(e,t,n,r){if(t){var i=new Ur(r);i.selectNumberingPlan(t,n);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var o=e.match(Fpe);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]==="0"))return e}}}function $6(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,a,o=r.length-1,s=o>0&&r[o];if(t.nationalPrefixTransformRule()&&s)i=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(a=r[1]);else{var l=r[0];i=e.slice(l.length),s&&(a=r[1])}var c;if(s){var u=e.indexOf(r[1]),f=e.slice(0,u);f===t.numberingPlan.nationalPrefix()&&(c=t.numberingPlan.nationalPrefix())}else c=r[0];return{nationalNumber:i,nationalPrefix:c,carrierCode:a}}}return{nationalNumber:e}}function T6(e,t){var n=$6(e,t),r=n.carrierCode,i=n.nationalNumber;if(i!==e){if(!Bpe(e,i,t))return{nationalNumber:e};if(t.possibleLengths()&&!zpe(i,t))return{nationalNumber:e}}return{nationalNumber:i,carrierCode:r}}function Bpe(e,t,n){return!(Tl(e,n.nationalNumberPattern())&&!Tl(t,n.nationalNumberPattern()))}function zpe(e,t){switch(I3(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function XL(e,t,n,r){var i=t?Rc(t,r):n;if(e.indexOf(i)===0){r=new Ur(r),r.selectNumberingPlan(t,n);var a=e.slice(i.length),o=T6(a,r),s=o.nationalNumber,l=T6(e,r),c=l.nationalNumber;if(!Tl(c,r.nationalNumberPattern())&&Tl(s,r.nationalNumberPattern())||I3(c,r)==="TOO_LONG")return{countryCallingCode:i,number:a}}return{number:e}}function Dx(e,t,n,r){if(!e)return{};var i;if(e[0]!=="+"){var a=YL(e,t,n,r);if(a&&a!==e)i=!0,e="+"+a;else{if(t||n){var o=XL(e,t,n,r),s=o.countryCallingCode,l=o.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:l}}return{number:e}}}if(e[1]==="0")return{};r=new Ur(r);for(var c=2;c-1<=Mpe&&c<=e.length;){var u=e.slice(1,c);if(r.hasCallingCode(u))return r.selectNumberingPlan(u),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u,number:e.slice(c)};c++}return{}}function qL(e){return e.replace(new RegExp("[".concat(Bo,"]+"),"g")," ").trim()}var ZL=/(\$\d)/;function KL(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(ZL,t.nationalPrefixFormattingRule()):t.format());return r?qL(a):a}var Vpe=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Wpe(e,t,n){var r=new Ur(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Vpe.test(r.IDDPrefix()))return r.IDDPrefix()}var Hpe=";ext=",i0=function(t){return"([".concat(Xi,"]{1,").concat(t,"})")};function JL(e){var t="20",n="15",r="9",i="6",a="[  \\t,]*",o="[:\\..]?[  \\t,-]*",s="#?",l="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",c="(?:[xx##~~]|int|int)",u="[- ]+",f="[  \\t]*",d="(?:,{2}|;)",h=Hpe+i0(t),p=a+l+o+i0(t)+s,g=a+c+o+i0(r)+s,v=u+i0(i)+"#",y=f+d+o+i0(n)+s,x=f+"(?:,)+"+o+i0(r)+s;return h+"|"+p+"|"+g+"|"+v+"|"+y+"|"+x}var Gpe="["+Xi+"]{"+jx+"}",Upe="["+L3+"]{0,1}(?:["+Bo+"]*["+Xi+"]){3,}["+Bo+Xi+"]*",Ype=new RegExp("^["+L3+"]{0,1}(?:["+Bo+"]*["+Xi+"]){1,2}$","i"),Xpe=Upe+"(?:"+JL()+")?",qpe=new RegExp("^"+Gpe+"$|^"+Xpe+"$","i");function Zpe(e){return e.length>=jx&&qpe.test(e)}function Kpe(e){return Ype.test(e)}function Jpe(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}function Qpe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=e2e(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
16In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e2e(e,t){if(e){if(typeof e=="string")return AE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AE(e,t)}}function AE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function TE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
vendor: 7,508 bytes, line 16
16t%2?$E(Object(n),!0).forEach(function(r){t2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$E(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t2e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PE={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function n2e(e,t,n,r){if(n?n=TE(TE({},PE),n):n=PE,r=new Ur(r),e.country&&e.country!=="001"){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var i=r.countryCallingCode(),a=n.v2?e.nationalNumber:e.phone,o;switch(t){case"NATIONAL":return a?(o=tm(a,e.carrierCode,"NATIONAL",r,n),d9(o,e.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return a?(o=tm(a,null,"INTERNATIONAL",r,n),o="+".concat(i," ").concat(o),d9(o,e.ext,r,n.formatExtension)):"+".concat(i);case"E.164":return"+".concat(i).concat(a);case"RFC3966":return Jpe({number:"+".concat(i).concat(a),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=i2e(a,e.carrierCode,i,n.fromCountry,r);return d9(s,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function tm(e,t,n,r,i){var a=r2e(r.formats(),e);return a?KL(e,a,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function r2e(e,t){for(var n=Qpe(e),r;!(r=n()).done;){var i=r.value;if(i.leadingDigitsPatterns().length>0){var a=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(t.search(a)!==0)continue}if(Tl(t,i.pattern()))return i}}function d9(e,t,n,r){return t?r(e,t,n):e}function i2e(e,t,n,r,i){var a=Rc(r,i.metadata);if(a===n){var o=tm(e,t,"NATIONAL",i);return n==="1"?n+" "+o:o}var s=Wpe(r,void 0,i.metadata);if(s)return"".concat(s," ").concat(n," ").concat(tm(e,null,"INTERNATIONAL",i))}function ME(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function NE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ME(Object(n),!0).forEach(function(r){a2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ME(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a2e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s2e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l2e(e,t,n){return t&&s2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var QL=function(){function e(t,n,r){if(o2e(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(typeof t=="string"){if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Wu(n)&&Wu(n.countries)){r=n;var i=t;if(!f2e.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=Dx(i,void 0,void 0,r),o=a.countryCallingCode,s=a.number;if(n=s,t=o,!n)throw new Error("Invalid `number` argument passed: too short")}}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");WL(r);var l=u2e(t,r),c=l.country,u=l.countryCallingCode;this.country=c,this.countryCallingCode=u,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return l2e(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:$pe(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return Spe(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return Ape(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new Ur(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return Rx(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return n2e(this,n,r?NE(NE({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}]),e}(),c2e=function(t){return/^[A-Z]{2}$/.test(t)};function u2e(e,t){var n,r,i=new Ur(t);return c2e(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=e,{country:n,countryCallingCode:r}}var f2e=/^\+\d+$/;function P6(e){"@babel/helpers - typeof";return P6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P6(e)}function d2e(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function h2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p2e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ph(e,t)}function g2e(e){var t=tR();return function(){var r=Mh(e),i;if(t){var a=Mh(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return m2e(this,i)}}function m2e(e,t){if(t&&(P6(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eR(e)}function eR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M6(e){var t=typeof Map=="function"?new Map:void 0;return M6=function(r){if(r===null||!v2e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return _g(r,arguments,Mh(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ph(i,r)},M6(e)}function _g(e,t,n){return tR()?_g=Reflect.construct:_g=function(i,a,o){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(i,s),c=new l;return o&&Ph(c,o.prototype),c},_g.apply(null,arguments)}function tR(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function v2e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}
vendor: 5,659 bytes, lines 16-19
16function Ph(e,t){return Ph=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ph(e,t)}function Mh(e){return Mh=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mh(e)}var pl=function(e){p2e(n,e);var t=g2e(n);function n(r){var i;return h2e(this,n),i=t.call(this,r),Object.setPrototypeOf(eR(i),n.prototype),i.name=i.constructor.name,i}return d2e(n)}(M6(Error)),IE=new RegExp("(?:"+JL()+")$","i");function y2e(e){var t=e.search(IE);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(IE),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}function x2e(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=b2e(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
17In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b2e(e,t){if(e){if(typeof e=="string")return LE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LE(e,t)}}function LE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var C2e={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function nR(e){return C2e[e]}function nm(e){for(var t="",n=x2e(e.split("")),r;!(r=n()).done;){var i=r.value,a=nR(i);a&&(t+=a)}return t}function w2e(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_2e(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _2e(e,t){if(e){if(typeof e=="string")return RE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RE(e,t)}}function RE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function N6(e){for(var t="",n=w2e(e.split("")),r;!(r=n()).done;){var i=r.value;t+=rR(i,t)||""}return t}function rR(e,t,n){if(e==="+"){if(t){typeof n=="function"&&n("end");return}return"+"}return nR(e)}function S2e(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=O2e(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O2e(e,t){if(e){if(typeof e=="string")return jE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jE(e,t)}}function jE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iR(e,t){var n=t.countries;t.defaultCountry;var r=t.metadata;r=new Ur(r);for(var i=S2e(n),a;!(a=i()).done;){var o=a.value;if(r.country(o),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return o}else if(Rx({phone:e,country:o},void 0,r.metadata))return o}}function aR(e,t){var n=t.nationalNumber,r=t.defaultCountry,i=t.metadata,a=i.getCountryCodesForCallingCode(e);if(a)return a.length===1?a[0]:iR(n,{countries:a,defaultCountry:r,metadata:i.metadata})}var oR="+",E2e="[\\-\\.\\(\\)]?",DE="(["+Xi+"]|"+E2e+")",k2e="^\\"+oR+DE+"*["+Xi+"]"+DE+"*$",A2e=new RegExp(k2e,"g"),I6=Xi,$2e="["+I6+"]+((\\-)*["+I6+"])*",T2e="a-zA-Z",P2e="["+T2e+"]+((\\-)*["+I6+"])*",M2e="^("+$2e+"\\.)*"+P2e+"\\.?$",N2e=new RegExp(M2e,"g"),FE="tel:",L6=";phone-context=",I2e=";isub=";function L2e(e){var t=e.indexOf(L6);if(t<0)return null;var n=t+L6.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function R2e(e){return e===null?!0:e.length===0?!1:A2e.test(e)||N2e.test(e)}function j2e(e,t){var n=t.extractFormattedPhoneNumber,r=L2e(e);if(!R2e(r))throw new pl("NOT_A_NUMBER");var i;if(r===null)i=n(e)||"";else{i="",r.charAt(0)===oR&&(i+=r);var a=e.indexOf(FE),o;a>=0?o=a+FE.length:o=0;var s=e.indexOf(L6);i+=e.substring(o,s)}var l=i.indexOf(I2e);if(l>0&&(i=i.substring(0,l)),i!=="")return i}var D2e=250,F2e=new RegExp("["+L3+Xi+"]"),B2e=new RegExp("[^"+Xi+"#]+$");function z2e(e,t,n){if(t=t||{},n=new Ur(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new pl("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=W2e(e,t.v2,t.extract),i=r.number,a=r.ext,o=r.error;if(!i){if(t.v2)throw o==="TOO_SHORT"?new pl("TOO_SHORT"):new pl("NOT_A_NUMBER");return{}}var s=G2e(i,t.defaultCountry,t.defaultCallingCode,n),l=s.country,c=s.nationalNumber,u=s.countryCallingCode,f=s.countryCallingCodeSource,d=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new pl("INVALID_COUNTRY");return{}}
vendor: 4,628 bytes, lines 19-20
19if(!c||c.length<jx){if(t.v2)throw new pl("TOO_SHORT");return{}}if(c.length>Ppe){if(t.v2)throw new pl("TOO_LONG");return{}}if(t.v2){var h=new QL(u,c,n.metadata);return l&&(h.country=l),d&&(h.carrierCode=d),a&&(h.ext=a),h.__countryCallingCodeSource=f,h}var p=(t.extended?n.hasSelectedNumberingPlan():l)?Tl(c,n.nationalNumberPattern()):!1;return t.extended?{country:l,countryCallingCode:u,carrierCode:d,valid:p,possible:p?!0:!!(t.extended===!0&&n.possibleLengths()&&UL(c,n)),phone:c,ext:a}:p?H2e(l,c,a):{}}function V2e(e,t,n){if(e){if(e.length>D2e){if(n)throw new pl("TOO_LONG");return}if(t===!1)return e;var r=e.search(F2e);if(!(r<0))return e.slice(r).replace(B2e,"")}}function W2e(e,t,n){var r=j2e(e,{extractFormattedPhoneNumber:function(o){return V2e(o,n,t)}});if(!r)return{};if(!Zpe(r))return Kpe(r)?{error:"TOO_SHORT"}:{};var i=y2e(r);return i.ext?i:{number:r}}function H2e(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function G2e(e,t,n,r){var i=Dx(N6(e),t,n,r.metadata),a=i.countryCallingCodeSource,o=i.countryCallingCode,s=i.number,l;if(o)r.selectNumberingPlan(o);else if(s&&(t||n))r.selectNumberingPlan(t,n),t&&(l=t),o=n||Rc(t,r.metadata);else return{};if(!s)return{countryCallingCodeSource:a,countryCallingCode:o};var c=T6(N6(s),r),u=c.nationalNumber,f=c.carrierCode,d=aR(o,{nationalNumber:u,defaultCountry:t,metadata:r});return d&&(l=d,d==="001"||r.country(l)),{country:l,countryCallingCode:o,countryCallingCodeSource:a,nationalNumber:u,carrierCode:f}}function BE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BE(Object(n),!0).forEach(function(r){U2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U2e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y2e(e,t,n){return z2e(e,zE(zE({},t),{},{v2:!0}),n)}function VE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function X2e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VE(Object(n),!0).forEach(function(r){q2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q2e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z2e(e,t){return e5e(e)||Q2e(e,t)||J2e(e,t)||K2e()}function K2e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J2e(e,t){if(e){if(typeof e=="string")return WE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WE(e,t)}}function WE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Q2e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function e5e(e){if(Array.isArray(e))return e}function sR(e){var t=Array.prototype.slice.call(e),n=Z2e(t,4),r=n[0],i=n[1],a=n[2],o=n[3],s,l,c;if(typeof r=="string")s=r;else throw new TypeError("A text for parsing must be a string.");if(!i||typeof i=="string")o?(l=a,c=o):(l=void 0,c=a),i&&(l=X2e({defaultCountry:i},l));else if(Wu(i))a?(l=i,c=a):c=i;else throw new Error("Invalid second argument: ".concat(i));return{text:s,options:l,metadata:c}}function HE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function GE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
vendor: 7,709 bytes, lines 20-21
20t%2?HE(Object(n),!0).forEach(function(r){t5e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t5e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lR(e,t,n){t&&t.defaultCountry&&!HL(t.defaultCountry,n)&&(t=GE(GE({},t),{},{defaultCountry:void 0}));try{return Y2e(e,t,n)}catch(r){if(!(r instanceof pl))throw r}}function n5e(){var e=sR(arguments),t=e.text,n=e.options,r=e.metadata;return lR(t,n,r)}function UE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function YE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UE(Object(n),!0).forEach(function(r){r5e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r5e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i5e(){var e=sR(arguments),t=e.text,n=e.options,r=e.metadata;n=YE(YE({},n),{},{extract:!1});var i=lR(t,n,r);return i&&i.isValid()||!1}function a5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s5e(e,t,n){return t&&o5e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var l5e=function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;a5e(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}return s5e(e,[{key:"reset",value:function(n){var r=n.country,i=n.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(r,i)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(n){for(var r=0,i=Object.keys(n);r<i.length;r++){var a=i[r];this[a]=n[a]}}},{key:"initCountryAndCallingCode",value:function(n,r){this.setCountry(n),this.setCallingCode(r)}},{key:"setCountry",value:function(n){this.country=n,this.onCountryChange(n)}},{key:"setCallingCode",value:function(n){this.callingCode=n,this.onCallingCodeChange(n,this.country)}},{key:"startInternationalNumber",value:function(n,r){this.international=!0,this.initCountryAndCallingCode(n,r)}},{key:"appendDigits",value:function(n){this.digits+=n}},{key:"appendNationalSignificantNumberDigits",value:function(n){this.nationalSignificantNumber+=n}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}]),e}();function c5e(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=u5e(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u5e(e,t){if(e){if(typeof e=="string")return XE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XE(e,t)}}function XE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ao="x",h9=new RegExp(Ao);function Sg(e,t){if(t<1)return"";for(var n="";t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function qE(e,t){return e[t]===")"&&t++,f5e(e.slice(0,t))}function f5e(e){for(var t=[],n=0;n<e.length;)e[n]==="("?t.push(n):e[n]===")"&&t.pop(),n++;var r=0,i="";t.push(e.length);for(var a=0,o=t;a<o.length;a++){var s=o[a];i+=e.slice(r,s),r=s+1}return i}function d5e(e,t,n){for(var r=c5e(n.split("")),i;!(i=r()).done;){var a=i.value;if(e.slice(t+1).search(h9)<0)return;t=e.search(h9),e=e.replace(h9,a)}return[e,t]}function h5e(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,o=new RegExp("^(?:".concat(t.pattern(),")$"));if(o.test(e.nationalSignificantNumber))return g5e(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:a})}function p5e(e,t){return I3(e,t)==="IS_POSSIBLE"}function g5e(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var o=ZE(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:r});if(o)return o}return ZE(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:r})}function ZE(e,t,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,o=KL(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:r});if(i||(e.nationalPrefix?o=e.nationalPrefix+a(t)+o:e.complexPrefixBeforeNationalSignificantNumber&&(o=e.complexPrefixBeforeNationalSignificantNumber+" "+o)),m5e(o,e))return o}function m5e(e,t){return nm(e)===t.getNationalDigits()}function v5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x5e(e,t,n){return t&&y5e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var b5e=function(){function e(){v5e(this,e)}return x5e(e,[{key:"parse",value:function(n){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(n),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var r=this.context[0],i=r.branches,a=r.instructions;if(i)return{op:"|",args:i.concat([p9(a)])};if(a.length===0)throw new Error("Pattern is required");return a.length===1?a[0]:a}},{key:"startContext",value:function(n){this.context.push(n)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(n){if(!n)throw new Error("Pattern is required");var r=n.match(_5e);if(!r){if(w5e.test(n))throw new Error("Illegal characters found in a pattern: ".concat(n));this.getContext().instructions=this.getContext().instructions.concat(n.split(""));return}var i=r[1],a=n.slice(0,r.index),o=n.slice(r.index+i.length);switch(i){case"(?:":a&&this.parsePattern(a),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(a&&this.parsePattern(a),this.getContext().instructions.length===0)throw new Error('No instructions foun
21d after "|" operator in an "or" group');var s=this.getContext(),l=s.branches;l.push(p9(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:l});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(a&&this.parsePattern(a),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(p9(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":a&&this.parsePattern(a),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:C5e(a)});break;default:throw new Error("Unknown operator: ".concat(i))}o&&this.parsePattern(o)}}]),e}();function C5e(e){for(var t=[],n=0;n<e.length;){if(e[n]==="-"){if(n===0||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,i=e[n+1].charCodeAt(0)-1,a=r;a<=i;)t.push(String.fromCharCode(a)),a++}else t.push(e[n]);n++}return t}var w5e=/[\(\)\[\]\?\:\|]/,_5e=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function p9(e){return e.length===1?e[0]:e}function KE(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=S5e(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S5e(e,t){if(e){if(typeof e=="string")return JE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JE(e,t)}}function JE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k5e(e,t,n){return t&&E5e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var A5e=function(){function e(t){O5e(this,e),this.matchTree=new b5e().parse(t)}return k5e(e,[{key:"match",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.allowOverflow;if(!n)throw new Error("String is required");var a=R6(n.split(""),this.matchTree,!0);if(a&&a.match&&delete a.matchedChars,!(a&&a.overflow&&!i))return a}}]),e}();function R6(e,t,n){if(typeof t=="string"){var r=e.join("");return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var i=e.slice(),a=0;a<t.length;){var o=t[a],s=R6(i,o,n&&a===t.length-1);if(s){if(s.overflow)return s;if(s.match){if(i=i.slice(s.matchedChars.length),i.length===0)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(s.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
23`.concat(JSON.stringify(s,null,2)))}}else return;a++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-i.length)}}switch(t.op){case"|":for(var l,c=KE(t.args),u;!(u=c()).done;){var f=u.value,d=R6(e,f,n);if(d){if(d.overflow)return d;if(d.match)return{match:!0,matchedChars:d.matchedChars};if(d.partialMatch)l=!0;else throw new Error(`Unsupported match result:
24`.concat(JSON.stringify(d,null,2)))}}return l?{partialMatch:!0}:void 0;case"[]":for(var h=KE(t.args),p;!(p=h()).done;){var g=p.value;if(e[0]===g)return e.length===1?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[g]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function QE(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=$5e(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
25In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $5e(e,t){if(e){if(typeof e=="string")return ek(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ek(e,t)}}function ek(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M5e(e,t,n){return t&&P5e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var j6="9",N5e=15,I5e=Sg(j6,N5e),L5e=/[- ]/,R5e=function(){return/\[([^\[\]])*\]/g},j5e=function(){return/\d(?=[^,}][^,}])/g},D5e=new RegExp("["+Bo+"]*\\$1["+Bo+"]*(\\$\\d["+Bo+"]*)*$"),tk=3,F5e=function(){function e(t){t.state;var n=t.metadata;T5e(this,e),this.metadata=n,this.resetFormat()}return M5e(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(n,r){this.resetFormat(),n?(this.isNANP=n.callingCode()==="1",this.matchingFormats=n.formats(),r.nationalSignificantNumber&&this.narrowDownMatchingFormats(r)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(n,r){var i=this;if(p5e(r.nationalSignificantNumber,this.metadata))for(var a=QE(this.matchingFormats),o;!(o=a()).done;){var s=o.value,l=h5e(r,s,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(u){return i.shouldTryNationalPrefixFormattingRule(u,{international:r.international,nationalPrefix:r.nationalPrefix})},getSeparatorAfterNationalPrefix:function(u){return i.getSeparatorAfterNationalPrefix(u)}});if(l)return this.resetFormat(),this.chosenFormat=s,this.setNationalNumberTemplate(l.replace(/\d/g,Ao),r),this.populatedNationalNumberTemplate=l,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(Ao),l}return this.formatNationalNumberWithNextDigits(n,r)}},{key:"formatNationalNumberWithNextDigits",value:function(n,r){var i=this.chosenFormat,a=this.chooseFormat(r);if(a)return a===i?this.formatNextNationalNumberDigits(n):this.formatNextNationalNumberDigits(r.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(n){var r=this,i=n.nationalSignificantNumber,a=n.nationalPrefix,o=n.international,s=i,l=s.length-tk;l<0&&(l=0),this.matchingFormats=this.matchingFormats.filter(function(c){return r.formatSuits(c,o,a)&&r.formatMatches(c,s,l)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(n,r,i){return!(i&&!n.usesNationalPrefix()&&!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r&&!i&&n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(n,r,i){var a=n.leadingDigitsPatterns().length;if(a===0)return!0;
vendor: 13,484 bytes, lines 25-27
25i=Math.min(i,a-1);var o=n.leadingDigitsPatterns()[i];if(r.length<tk)try{return new A5e(o).match(r,{allowOverflow:!0})!==void 0}catch(s){return console.error(s),!0}return new RegExp("^(".concat(o,")")).test(r)}},{key:"getFormatFormat",value:function(n,r){return r?n.internationalFormat():n.format()}},{key:"chooseFormat",value:function(n){for(var r=this,i=function(){var c=o.value;return r.chosenFormat===c?"break":D5e.test(r.getFormatFormat(c,n.international))?r.createTemplateForFormat(c,n)?(r.chosenFormat=c,"break"):(r.matchingFormats=r.matchingFormats.filter(function(u){return u!==c}),"continue"):"continue"},a=QE(this.matchingFormats.slice()),o;!(o=a()).done;){var s=i();if(s==="break")break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(n,r){if(!(n.pattern().indexOf("|")>=0)){var i=this.getTemplateForFormat(n,r);if(i)return this.setNationalNumberTemplate(i,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&L5e.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var i=n.IDDPrefix,a=n.missingPlus;return i?r&&r.spacing===!1?i:i+" ":a?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,i=0,a=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";i<a.length+n.getDigitsWithoutInternationalPrefix().length;)r=this.template.indexOf(Ao,r+1),i++;return qE(this.template,r+1)}}},{key:"setNationalNumberTemplate",value:function(n,r){this.nationalNumberTemplate=n,this.populatedNationalNumberTemplate=n,this.populatedNationalNumberTemplatePosition=-1,r.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g,Ao)+Sg(Ao,r.callingCode.length)+" "+n:this.template=n}},{key:"getTemplateForFormat",value:function(n,r){var i=r.nationalSignificantNumber,a=r.international,o=r.nationalPrefix,s=r.complexPrefixBeforeNationalSignificantNumber,l=n.pattern();l=l.replace(R5e(),"\\d").replace(j5e(),"\\d");var c=I5e.match(l)[0];if(!(i.length>c.length)){var u=new RegExp("^"+l+"$"),f=i.replace(/\d/g,j6);u.test(f)&&(c=f);var d=this.getFormatFormat(n,a),h;if(this.shouldTryNationalPrefixFormattingRule(n,{international:a,nationalPrefix:o})){var p=d.replace(ZL,n.nationalPrefixFormattingRule());if(nm(n.nationalPrefixFormattingRule())===(o||"")+nm("$1")&&(d=p,h=!0,o))for(var g=o.length;g>0;)d=d.replace(/\d/,Ao),g--}var v=c.replace(new RegExp(l),d).replace(new RegExp(j6,"g"),Ao);return h||(s?v=Sg(Ao,s.length)+" "+v:o&&(v=Sg(Ao,o.length)+this.getSeparatorAfterNationalPrefix(n)+v)),a&&(v=qL(v)),v}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=d5e(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],qE(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var i=r.international,a=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var o=n.usesNationalPrefix();if(o&&a||!o&&!i)return!0}}}]),e}();function cR(e,t){return W5e(e)||V5e(e,t)||z5e(e,t)||B5e()}function B5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
26In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z5e(e,t){if(e){if(typeof e=="string")return nk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nk(e,t)}}function nk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function V5e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function W5e(e){if(Array.isArray(e))return e}function H5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G5e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U5e(e,t,n){return t&&G5e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Y5e="["+Bo+Xi+"]+",X5e=new RegExp("^"+Y5e+"$","i"),q5e="(?:["+L3+"]["+Bo+Xi+"]*|["+Bo+Xi+"]+)",Z5e=new RegExp("[^"+Bo+Xi+"]+.*$"),K5e=/[^\d\[\]]/,J5e=function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,i=t.metadata,a=t.onNationalSignificantNumberChange;H5e(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=a}return U5e(e,[{key:"input",value:function(n,r){var i=tge(n),a=cR(i,2),o=a[0],s=a[1],l=nm(o),c;return s&&(r.digits||(r.startInternationalNumber(),l||(c=!0))),l&&this.inputDigits(l,r),{digits:l,justLeadingPlus:c}}},{key:"inputDigits",value:function(n,r){var i=r.digits,a=i.length<3&&i.length+n.length>=3;if(r.appendDigits(n),a&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(o){return r.update(o)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,i=n.callingCode;return r&&!i}},{key:"extractCountryCallingCode",value:function(n){var r=Dx("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode,a=r.number;if(i)return n.setCallingCode(i),n.update({nationalSignificantNumber:a}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&K5e.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=$6(n,this.metadata),a=i.nationalPrefix,o=i.nationalNumber,s=i.carrierCode;if(o!==n)return this.onExtractedNationalNumber(a,s,o,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var a=$6(n,this.metadata),o=a.nationalPrefix,s=a.nationalNumber,l=a.carrierCode;if(s!==r)return this.onExtractedNationalNumber(o,l,s,n,i),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,i,a,o){var s,l,c=a.lastIndexOf(i);if(c>=0&&c===a.length-i.length){l=!0;var u=a.slice(0,c);u!==n&&(s=u)}o({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:i,nationalSignificantNumberMatchesInput:l,complexPrefixBeforeNationalSignificantNumber:s}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,i=n.IDDPrefix,a=n.digits;if(n.nationalSignificantNumber,!(r||i)){var o=YL(a,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(o!==void 0&&o!==a)return n.update({IDDPrefix:a.slice(0,a.length-o.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=XL(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode;if(r.number,i)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(n,r){var i=r.country,a=r.callingCode;n.startInternationalNumber(i,a),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}]),e}();function Q5e(e){var t=e.search(q5e);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(Z5e,""),n&&(e="+"+e),e}}function ege(e){var t=Q5e(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function tge(e){var t=ege(e),n=cR(t,2),r=n[0],i=n[1];return X5e.test(r)||(r=""),[r,i]}function nge(e,t){return oge(e)||age(e,t)||ige(e,t)||rge()}function rge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
27In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ige(e,t){if(e){if(typeof e=="string")return rk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rk(e,t)}}function rk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function age(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function oge(e){if(Array.isArray(e))return e}function sge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cge(e,t,n){return t&&lge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var $d=function(){function e(t,n){sge(this,e),this.metadata=new Ur(n);var r=this.getCountryAndCallingCode(t),i=nge(r,2),a=i[0],o=i[1];this.defaultCountry=a,this.defaultCallingCode=o,this.reset()}return cge(e,[{key:"getCountryAndCallingCode",value:function(n){var r,i;return n&&(Wu(n)?(r=n.defaultCountry,i=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,i]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),i=r.digits,a=r.justLeadingPlus;if(a)this.formattedOutput="+";else if(i){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var o;if(this.metadata.hasSelectedNumberingPlan()&&(o=this.formatter.format(i,this.state)),o===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var s=this.state.getNationalDigits();s&&(o=this.formatter.format(s,this.state))}this.formattedOutput=o?this.getFullNumber(o):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new l5e({onCountryChange:function(i){n.country=i},onCallingCodeChange:function(i,a){n.metadata.selectNumberingPlan(a,i),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new F5e({state:this.state,metadata:this.metadata}),this.parser=new J5e({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var i=function(s){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!s})+s},a=this.state.callingCode;return i(a?n?"".concat(a," ").concat(n):a:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.complexPrefixBeforeNationalSignificantNumber,a=n.nationalPrefix,o=r,s=i||a;return s&&(o=s+o),o}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberMatchesInput;
27return this.getFullNumber(n?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,Ao)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(aR(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,a=n.country,o=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+o:"+"+r;if(a||i){var s=a?this.metadata.countryCallingCode():i;return"+"+s+o}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,a=n.callingCode,o=this._getCountry();if(r&&!(!o&&!a)){if(o&&o===this.defaultCountry){var s=new Ur(this.metadata.metadata);s.selectNumberingPlan(o);var l=s.numberingPlan.callingCode(),c=this.metadata.getCountryCodesForCallingCode(l);if(c.length>1){var u=iR(r,{countries:c,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});u&&(o=u)}}var f=new QL(o||a,r,this.metadata.metadata);return i&&(f.carrierCode=i),f}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),e}();function ik(e){return new Ur(e).getCountries()}function uge(e,t,n){return n||(n=t,t=void 0),new $d(t,n).input(e)}function uR(e){var t=e.inputFormat,n=e.country,r=e.metadata;return t==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(Rc(n,r)):""}function D6(e,t){return t&&(e=e.slice(t.length),e[0]===" "&&(e=e.slice(1))),e}function fge(e,t,n){if(!(n&&n.ignoreRest)){var r=function(a){if(n)switch(a){case"end":n.ignoreRest=!0;break}};return rR(e,t,r)}}function fR(e){var t=e.onKeyDown,n=e.inputFormat;return P.useCallback(function(r){if(r.keyCode===hge&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&dge(r.target)===pge.length){r.preventDefault();return}t&&t(r)},[t,n])}function dge(e){return e.selectionStart}var hge=8,pge="+",gge=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function F6(){return F6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F6.apply(this,arguments)}function mge(e,t){if(e==null)return{};var n=vge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vge(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function yge(e){function t(n,r){var i=n.onKeyDown,a=n.country,o=n.inputFormat,s=n.metadata,l=s===void 0?e:s;n.international,n.withCountryCallingCode;var c=mge(n,gge),u=P.useCallback(function(d){var h=new $d(a,l),p=uR({inputFormat:o,country:a,metadata:l}),g=h.input(p+d),v=h.getTemplate();return p&&(g=D6(g,p),v&&(v=D6(v,p))),{text:g,template:v}},[a,l]),f=fR({onKeyDown:i,inputFormat:o});return Xe.createElement(em,F6({},c,{ref:r,parse:fge,format:u,onKeyDown:f}))}return t=Xe.forwardRef(t),t.propTypes={value:Be.string.isRequired,onChange:Be.func.isRequired,onKeyDown:Be.func,country:Be.string,inputFormat:Be.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Be.object},t}const xge=yge();var bge=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function B6(){return B6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B6.apply(this,arguments)}function Cge(e,t){if(e==null)return{};var n=wge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wge(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function _ge(e){function t(n,r){var i=n.value,a=n.onChange,o=n.onKeyDown,s=n.country,l=n.inputFormat,c=n.metadata,u=c===void 0?e:c,f=n.inputComponent,d=f===void 0?"input":f;n.international,n.withCountryCallingCode;var h=Cge(n,bge),p=uR({inputFormat:l,country:s,metadata:u}),g=P.useCallback(function(y){var x=N6(y.target.value);if(x===i){var C=ak(p,x,s,u);C.indexOf(y.target.value)===0&&(x=x.slice(0,-1))}a(x)},[p,i,a,s,u]),v=fR({onKeyDown:o,inputFormat:l});return Xe.createElement(d,B6({},h,{ref:r,value:ak(p,i,s,u),onChange:g,onKeyDown:v}))}
27return t=Xe.forwardRef(t),t.propTypes={value:Be.string.isRequired,onChange:Be.func.isRequired,onKeyDown:Be.func,country:Be.string,inputFormat:Be.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Be.object,inputComponent:Be.elementType},t}const Sge=_ge();function ak(e,t,n,r){return D6(uge(e+t,n,r),e)}function Oge(e){return ok(e[0])+ok(e[1])}function ok(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var Ege=["value","onChange","options","disabled","readOnly"],kge=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function Age(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=$ge(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
28In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $ge(e,t){if(e){if(typeof e=="string")return sk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sk(e,t)}}function sk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rm(){return rm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rm.apply(this,arguments)}function dR(e,t){if(e==null)return{};var n=Tge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tge(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function hR(e){var t=e.value,n=e.onChange,r=e.options,i=e.disabled,a=e.readOnly,o=dR(e,Ege),s=P.useCallback(function(l){var c=l.target.value;n(c==="ZZ"?void 0:c)},[n]);return P.useMemo(function(){return gR(r,t)},[r,t]),Xe.createElement("select",rm({},o,{disabled:i||a,readOnly:a,value:t||"ZZ",onChange:s}),r.map(function(l){var c=l.value,u=l.label,f=l.divider;return Xe.createElement("option",{key:f?"|":c||"ZZ",value:f?"|":c||"ZZ",disabled:!!f,style:f?Pge:void 0},u)}))}hR.propTypes={value:Be.string,onChange:Be.func.isRequired,options:Be.arrayOf(Be.shape({value:Be.string,label:Be.string,divider:Be.bool})).isRequired,disabled:Be.bool,readOnly:Be.bool};var Pge={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function pR(e){var t=e.value,n=e.options,r=e.className,i=e.iconComponent;e.getIconAspectRatio;var a=e.arrowComponent,o=a===void 0?Mge:a,s=e.unicodeFlags,l=dR(e,kge),c=P.useMemo(function(){return gR(n,t)},[n,t]);return Xe.createElement("div",{className:"PhoneInputCountry"},Xe.createElement(hR,rm({},l,{value:t,options:n,className:Ug("PhoneInputCountrySelect",r)})),c&&(s&&t?Xe.createElement("div",{className:"PhoneInputCountryIconUnicode"},Oge(t)):Xe.createElement(i,{"aria-hidden":!0,country:t,label:c.label,aspectRatio:s?1:void 0})),Xe.createElement(o,null))}pR.propTypes={iconComponent:Be.elementType,arrowComponent:Be.elementType,unicodeFlags:Be.bool};function Mge(){return Xe.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function gR(e,t){for(var n=Age(e),r;!(r=n()).done;){var i=r.value;if(!i.divider&&Nge(i.value,t))return i}}function Nge(e,t){return e==null?t==null:e===t}var Ige=["country","countryName","flags","flagUrl"];function z6(){return z6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z6.apply(this,arguments)}function Lge(e,t){if(e==null)return{};var n=Rge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rge(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Fx(e){var t=e.country,n=e.countryName,r=e.flags,i=e.flagUrl,a=Lge(e,Ige);return r&&r[t]?r[t]({title:n}):Xe.createElement("img",z6({},a,{alt:n,role:n?void 0:"presentation",src:i.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}Fx.propTypes={country:Be.string.isRequired,countryName:Be.string.isRequired,flags:Be.objectOf(Be.elementType),flagUrl:Be.string.isRequired};var jge=["aspectRatio"],Dge=["title"],Fge=["title"];function im(){return im=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},im.apply(this,arguments)}function Bx(e,t){if(e==null)return{};var n=Bge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bge(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function R3(e){var t=e.aspectRatio,n=Bx(e,jge);return t===1?Xe.createElement(vR,n):Xe.createElement(mR,n)}
28R3.propTypes={title:Be.string.isRequired,aspectRatio:Be.number};function mR(e){var t=e.title,n=Bx(e,Dge);return Xe.createElement("svg",im({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),Xe.createElement("title",null,t),Xe.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},Xe.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),Xe.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),Xe.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),Xe.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),Xe.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),Xe.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),Xe.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}mR.propTypes={title:Be.string.isRequired};function vR(e){var t=e.title,n=Bx(e,Fge);return Xe.createElement("svg",im({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),Xe.createElement("title",null,t),Xe.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},Xe.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),Xe.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),Xe.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),Xe.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),Xe.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),Xe.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),Xe.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}vR.propTypes={title:Be.string.isRequired};function zge(e){if(e.length<2||e[0]!=="+")return!1;for(var t=1;t<e.length;){var n=e.charCodeAt(t);if(!(n>=48&&n<=57))return!1;t++}return!0}function yR(e){zge(e)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",e)}function Vge(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Wge(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
29In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wge(e,t){if(e){if(typeof e=="string")return lk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lk(e,t)}}function lk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hge(e,t){if(!t)return e;for(var n=[],r=[],i=n,a=function(){var c=s.value;if(c==="|")i.push({divider:!0});else if(c==="..."||c==="…")i=r;else{var u;c==="🌐"?u=void 0:u=c;var f=e.indexOf(e.filter(function(h){return h.value===u})[0]),d=e[f];e.splice(f,1),i.push(d)}},o=Vge(t),s;!(s=o()).done;)a();return n.concat(e).concat(r)}function Gge(e,t){if(e&&(e=e.filter(function(n){switch(n){case"🌐":case"|":case"...":case"…":return!0;default:return j3(n,t)}}),e.length>0))return e}function j3(e,t){return HL(e,t)?!0:(console.error("Country not found: ".concat(e)),!1)}function xR(e,t){return e&&(e=e.filter(function(n){return j3(n,t)}),e.length===0&&(e=void 0)),e}
29var Uge=["country","label","aspectRatio"];function V6(){return V6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V6.apply(this,arguments)}function Yge(e,t){if(e==null)return{};var n=Xge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xge(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function bR(e){var t=e.flags,n=e.flagUrl,r=e.flagComponent,i=e.internationalIcon;function a(o){var s=o.country,l=o.label,c=o.aspectRatio,u=Yge(o,Uge),f=i===R3?c:void 0;return Xe.createElement("div",V6({},u,{className:Ug("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":f===1,"PhoneInputCountryIcon--border":s})}),s?Xe.createElement(r,{country:s,countryName:l,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):Xe.createElement(i,{title:l,aspectRatio:f,className:"PhoneInputCountryIconImg"}))}return a.propTypes={country:Be.string,label:Be.string.isRequired,aspectRatio:Be.number},a}bR({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:Fx,internationalIcon:R3});function qge(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Zge(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
30In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zge(e,t){if(e){if(typeof e=="string")return ck(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ck(e,t)}}function ck(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kge(e,t){for(var n=qge(e),r;!(r=n()).done;){var i=r.value;i&&Jge(i,t)}}function Jge(e,t){typeof e=="function"?e(t):e.current=t}var CR=Be.shape({country_calling_codes:Be.object.isRequired,countries:Be.object.isRequired}),wR=Be.objectOf(Be.string);function _l(e,t){var n="+"+Rc(e,t);return n}function Qge(e){var t=e.value,n=e.phoneNumber,r=e.defaultCountry,i=e.getAnyCountry,a=e.countries,o=e.required,s=e.metadata,l;return n&&n.country?l=n.country:r&&(!t||j0(t,r,s))&&(l=r),a&&a.indexOf(l)<0&&(l=void 0),!l&&o&&a&&a.length>0&&(l=i()),l}function eme(e){var t=e.countries,n=e.countryNames,r=e.addInternationalOption,i=e.compareStringsLocales,a=e.compareStrings;a||(a=sme);var o=t.map(function(s){return{value:s,label:n[s]||s}});return o.sort(function(s,l){return a(s.label,l.label,i)}),r&&o.unshift({label:n.ZZ}),o}function _R(e,t){return n5e(e||"",t)}function tme(e){return e.formatNational().replace(/\D/g,"")}function nme(e,t){var n=t.prevCountry,r=t.newCountry,i=t.metadata,a=t.useNationalFormat;if(n===r)return e;if(!e)return a?"":r?_l(r,i):"";if(r){if(e[0]==="+"){if(a)return e.indexOf("+"+Rc(r,i))===0?lme(e,r,i):"";if(n){var o=_l(r,i);return e.indexOf(o)===0?e:o}else{var s=_l(r,i);return e.indexOf(s)===0?e:s}}}else if(e[0]!=="+")return $0(e,n,i)||"";return e}function $0(e,t,n){if(e){if(e[0]==="+"){if(e==="+")return;var r=new $d(t,n);return r.input(e),r.getNumberValue()}if(t){var i=OR(e,t,n);return"+".concat(Rc(t,n)).concat(i||"")}}}function rme(e,t,n){var r=OR(e,t,n);if(r){var i=r.length-ime(t,n);if(i>0)return e.slice(0,e.length-i)}return e}function ime(e,t){return t=new Ur(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}function SR(e,t){var n=t.country,r=t.countries,i=t.defaultCountry,a=t.latestCountrySelectedByUser,o=t.required,s=t.metadata;if(e==="+")return n;var l=ome(e,s);if(l)return!r||r.indexOf(l)>=0?l:void 0;if(n){if(j0(e,n,s)){if(a&&j0(e,a,s))return a;
30if(i&&j0(e,i,s))return i;if(!o)return}else if(!o)return}return n}function ame(e,t){var n=t.prevPhoneDigits,r=t.country,i=t.defaultCountry,a=t.latestCountrySelectedByUser,o=t.countryRequired,s=t.getAnyCountry,l=t.countries,c=t.international,u=t.limitMaxLength,f=t.countryCallingCodeEditable,d=t.metadata;if(c&&f===!1&&r){var h=_l(r,d);if(e.indexOf(h)!==0){var p,g=e&&e[0]!=="+";return g?(e=h+e,p=$0(e,r,d)):e=h,{phoneDigits:e,value:p,country:r}}}c===!1&&r&&e&&e[0]==="+"&&(e=uk(e,r,d)),e&&r&&u&&(e=rme(e,r,d)),e&&e[0]!=="+"&&(!r||c)&&(e="+"+e),!e&&n&&n[0]==="+"&&(c?r=void 0:r=i),e==="+"&&n&&n[0]==="+"&&n.length>1&&(r=void 0);var v;return e&&(e[0]==="+"&&(e==="+"||r&&_l(r,d).indexOf(e)===0)?v=void 0:v=$0(e,r,d)),v&&(r=SR(v,{country:r,countries:l,defaultCountry:i,latestCountrySelectedByUser:a,required:!1,metadata:d}),c===!1&&r&&e&&e[0]==="+"&&(e=uk(e,r,d),v=$0(e,r,d))),!r&&o&&(r=i||s()),{phoneDigits:e,country:r,value:v}}function uk(e,t,n){if(e.indexOf(_l(t,n))===0){var r=new $d(t,n);r.input(e);var i=r.getNumber();return i?i.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function ome(e,t){var n=new $d(null,t);return n.input(e),n.getCountry()}function sme(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):e<t?-1:e>t?1:0}function lme(e,t,n){if(t){var r="+"+Rc(t,n);if(e.length<r.length){if(r.indexOf(e)===0)return""}else if(e.indexOf(r)===0)return e.slice(r.length)}for(var i=0,a=Object.keys(n.country_calling_codes);i<a.length;i++){var o=a[i];if(e.indexOf(o)===1)return e.slice(1+o.length)}return""}function OR(e,t,n){var r=new $d(t,n);r.input(e);var i=r.getNumber();return i&&i.nationalNumber}function j0(e,t,n){for(var r=_l(t,n),i=0;i<e.length&&i<r.length;){if(e[i]!==r[i])return!1;i++}return!0}function ER(e){var t=e.value,n=e.phoneNumber,r=e.defaultCountry,i=e.international,a=e.useNationalFormat,o=e.metadata;return(i===!1||a)&&n&&n.country?tme(n):!t&&i&&r?_l(r,o):t}function Nh(e){"@babel/helpers - typeof";return Nh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nh(e)}function fk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function c5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fk(Object(n),!0).forEach(function(r){cme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cme(e,t,n){return t=ume(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ume(e){var t=fme(e,"string");return Nh(t)=="symbol"?t:t+""}function fme(e,t){if(Nh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dme(e,t,n){var r=e.metadata,i=e.countries,a=e.defaultCountry,o=e.value,s=e.reset,l=e.international,c=e.displayInitialValueAsLocalNumber,u=e.initialValueFormat,f=t.defaultCountry,d=t.value,h=t.reset;n.country;var p=n.value,g=n.hasUserSelectedACountry,v=n.latestCountrySelectedByUser,y=function(M){return ER(c5(c5({},M),{},{international:l,useNationalFormat:c||u==="national",metadata:r}))};if(s!==h)return{phoneDigits:y({value:void 0,defaultCountry:a}),value:void 0,country:a,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(a!==f){var x=!a||j3(a,r),C=!p||l&&p===y({value:void 0,defaultCountry:f}),_=!o&&C;if(!g&&x&&_)return{country:a,phoneDigits:y({value:void 0,defaultCountry:a}),value:void 0}}if(!dk(o,d)&&!dk(o,p)){var S,O;if(o){o&&yR(o),S=_R(o,r);var E=xR(i,r);S&&S.country?(!E||E.indexOf(S.country)>=0)&&(O=S.country):(O=SR(o,{country:void 0,countries:E,metadata:r}),O||a&&o.indexOf(_l(a,r))===0&&(O=a))}var k;if(o){if(v){var $=O?v===O:j0(o,v,r);$?O||(O=v):k={latestCountrySelectedByUser:void 0}}}else k={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return c5(c5({},k),{},{phoneDigits:y({phoneNumber:S,value:o,defaultCountry:a}
30),value:o,country:o?O:a})}}function dk(e,t){return e===null&&(e=void 0),t===null&&(t=void 0),e===t}var hme=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function ed(e){"@babel/helpers - typeof";return ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ed(e)}function hk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hk(Object(n),!0).forEach(function(r){Eo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function D0(){return D0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D0.apply(this,arguments)}function pme(e,t){if(e==null)return{};var n=gme(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gme(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function mme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$R(r.key),r)}}function vme(e,t,n){return t&&pk(e.prototype,t),n&&pk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yme(e,t,n){return t=am(t),xme(e,AR()?Reflect.construct(t,n||[],am(e).constructor):t.apply(e,n))}function xme(e,t){if(t&&(ed(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bme(e)}function bme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AR=function(){return!!e})()}function am(e){return am=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},am(e)}function Cme(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W6(e,t)}function W6(e,t){return W6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},W6(e,t)}function Eo(e,t,n){return t=$R(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $R(e){var t=wme(e,"string");return ed(t)=="symbol"?t:t+""}function wme(e,t){if(ed(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ed(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _me=function(e){function t(n){var r;mme(this,t),r=yme(this,t,[n]),Eo(r,"setInputRef",function(v){Kge([r.props.inputRef,r.inputRef],v)}),Eo(r,"isCountrySupportedWithError",function(v){var y=r.props.metadata;return j3(v,y)}),Eo(r,"onCountryChange",function(v){var y=r.props,x=y.international,C=y.metadata,_=y.onChange,S=y.focusInputOnCountrySelection,O=r.state,E=O.phoneDigits,k=O.country,$=nme(E,{prevCountry:k,newCountry:v,metadata:C,useNationalFormat:!x}),T=$0($,v,C);S&&r.inputRef.current.focus(),r.setState({country:v,latestCountrySelectedByUser:v,hasUserSelectedACountry:!0,phoneDigits:$,value:T},function(){_(T)})}),Eo(r,"onChange",function(v){var y=r.props,x=y.defaultCountry,C=y.onChange,_=y.addInternationalOption,S=y.international,O=y.limitMaxLength,E=y.countryCallingCodeEditable,k=y.metadata,$=r.state,T=$.countries,M=$.phoneDigits,R=$.country,N=$.latestCountrySelectedByUser,D=ame(v,{prevPhoneDigits:M,country:R,countryRequired:!_,defaultCountry:x,latestCountrySelectedByUser:N,getAnyCountry:function(){return r.getFirstSupportedCountry({countries:T})},countries:T,international:S,limitMaxLength:O,countryCallingCodeEditable:E,metadata:k}
30),F=D.phoneDigits,V=D.country,z=D.value,B={phoneDigits:F,value:z,country:V};N&&z&&!j0(z,N,k)&&(B.latestCountrySelectedByUser=void 0),E===!1&&!z&&F===r.state.phoneDigits&&(B.forceRerender={}),r.setState(B,function(){return C(z)})}),Eo(r,"_onFocus",function(){return r.setState({isFocused:!0})}),Eo(r,"_onBlur",function(){return r.setState({isFocused:!1})}),Eo(r,"onFocus",function(v){r._onFocus();var y=r.props.onFocus;y&&y(v)}),Eo(r,"onBlur",function(v){var y=r.props.onBlur;r._onBlur(),y&&y(v)}),Eo(r,"onCountryFocus",function(v){r._onFocus();var y=r.props.countrySelectProps;if(y){var x=y.onFocus;x&&x(v)}}),Eo(r,"onCountryBlur",function(v){r._onBlur();var y=r.props.countrySelectProps;if(y){var x=y.onBlur;x&&x(v)}}),r.inputRef=Xe.createRef();var i=r.props,a=i.value;i.labels;var o=i.international,s=i.addInternationalOption,l=i.displayInitialValueAsLocalNumber,c=i.initialValueFormat,u=i.metadata,f=r.props,d=f.defaultCountry,h=f.countries;d&&(r.isCountrySupportedWithError(d)||(d=void 0)),a&&yR(a),h=xR(h,u);var p=_R(a,u);r.CountryIcon=bR(r.props);var g=Qge({value:a,phoneNumber:p,defaultCountry:d,required:!s,countries:h||ik(u),getAnyCountry:function(){return r.getFirstSupportedCountry({countries:h})},metadata:u});return r.state={props:r.props,country:g,countries:h,phoneDigits:ER({value:a,phoneNumber:p,defaultCountry:d,international:o,useNationalFormat:l||c==="national",metadata:u}),value:a},r}return Cme(t,e),vme(t,[{key:"componentDidMount",value:function(){var r=this.props.onCountryChange,i=this.props.defaultCountry,a=this.state.country;r&&(i&&(this.isCountrySupportedWithError(i)||(i=void 0)),a!==i&&r(a))}},{key:"componentDidUpdate",value:function(r,i){var a=this.props.onCountryChange,o=this.state.country;a&&o!==i.country&&a(o)}},{key:"getCountrySelectOptions",value:function(r){var i=r.countries,a=this.props,o=a.international,s=a.countryCallingCodeEditable,l=a.countryOptionsOrder,c=a.addInternationalOption,u=a.labels,f=a.locales,d=a.metadata;return this.useMemoCountrySelectOptions(function(){return Hge(eme({countries:i||ik(d),countryNames:u,addInternationalOption:o&&s===!1?!1:c,compareStringsLocales:f}),Gge(l,d))},[i,l,c,u,d])}},{key:"useMemoCountrySelectOptions",value:function(r,i){return(!this.countrySelectOptionsMemoDependencies||!Ome(i,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=r(),this.countrySelectOptionsMemoDependencies=i),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(r){var i=r.countries,a=this.getCountrySelectOptions({countries:i});return a[0].value}},{key:"render",value:function(){var r=this.props,i=r.name,a=r.disabled,o=r.readOnly,s=r.autoComplete,l=r.style,c=r.className;r.inputRef;var u=r.inputComponent,f=r.numberInputProps,d=r.smartCaret,h=r.countrySelectComponent,p=r.countrySelectProps,g=r.containerComponent,v=r.containerComponentProps;r.defaultCountry,r.countries,r.countryOptionsOrder;var y=r.labels;r.flags,r.flagComponent,r.flagUrl,r.addInternationalOption,r.internationalIcon,r.displayInitialValueAsLocalNumber,r.initialValueFormat,r.onCountryChange,r.limitMaxLength,r.countryCallingCodeEditable,r.focusInputOnCountrySelection,r.reset;var x=r.metadata,C=r.international;r.locales;var _=pme(r,hme),S=this.state,O=S.country,E=S.countries,k=S.phoneDigits,$=S.isFocused,T=d?xge:Sge,M=this.getCountrySelectOptions({countries:E});return Xe.createElement(g,D0({style:l,className:Ug(c,"PhoneInput",{"PhoneInput--focus":$,"PhoneInput--disabled":a,"PhoneInput--readOnly":o})},v),Xe.createElement(h,D0({name:i?"".concat(i,"Country"):void 0,"aria-label":y.country},p,{value:O,options:M,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:a||p&&p.disabled,readOnly:o||p&&p.readOnly,iconComponent:this.CountryIcon})),Xe.createElement(T,D0({ref:this.setInputRef,type:"tel",autoComplete:s},f,_,{inputFormat:C===!0?"INTERNATIONAL":C===!1?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:C?!0:void 0,withCountryCallingCode:C?!0:void 0,name:i,metadata:x,country:O,value:k||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:a,readOnly:o,inputComponent:u,className:Ug("PhoneInputInput",f&&f.className,_.className)})))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return kR({props:r},dme(r,i.props,i))}}])}(Xe.PureComponent),TR=Xe.forwardRef(function(e,t){return Xe.createElement(_me,D0({},Sme(e),{inputRef:t}))});TR.propTypes={value:Be.string,onChange:Be.func.isRequired,onFocus:Be.func,onBlur:Be.func,disabled:Be.bool,readOnly:Be.bool,autoComplete:Be.string,initialValueFormat:Be.oneOf(["national"]),displayInitialValueAsLocalNumber:Be.bool,defaultCountry:Be.string,countries:Be.arrayOf(Be.string),labels:wR,locales:Be.oneOfType([Be.string,Be.arrayOf(Be.string)]),flagUrl:Be.string,flags:Be.objectOf(Be.elementType),flagComponent:Be.elementType,addInternationalOption:Be.bool,internationalIcon:Be.elementType,countryOptionsOrder:Be.arrayOf(Be.string),style:Be.object,className:Be.string,countrySelectComponent:Be.elementType,countrySelectProps:Be.object,inputComponent:Be.elementType,numberInputProps:Be.object,containerComponent:Be.elementType,containerComponentProps:Be.object,smartCaret:Be.bool,international:Be.bool,limitMaxLength:Be.bool,countryCallingCodeEditable:Be.bool,metadata:CR,onCountryChange:Be.func,focusInputOnCountrySelection:Be.bool};var gk={autoComplete:"tel",countrySelectComponent:pR,flagComponent:Fx,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:R3,inputComponent:"input",containerComponent:"div",reset:Be.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0}
30;function Sme(e){e=kR({},e);for(var t in gk)e[t]===void 0&&(e[t]=gk[t]);return e}function Ome(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;){if(e[n]!==t[n])return!1;n++}return!0}const Eme={ext:"ext.",country:"Phone number country",phone:"Phone",AB:"Abkhazia",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",OS:"South Ossetia",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var kme=["metadata","labels"];function H6(){return H6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H6.apply(this,arguments)}function Ame(e,t){if(e==null)return{};var n=$me(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $me(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function PR(e){var t=Xe.forwardRef(function(n,r){var i=n.metadata,a=i===void 0?e:i,o=n.labels,s=o===void 0?Eme:o,l=Ame(n,kme);return Xe.createElement(TR,H6({},l,{ref:r,metadata:a,labels:s}))});return t.propTypes={metadata:CR,labels:wR},t}PR();function Tme(e,t){var n=Array.prototype.slice.call(t);return n.push(zL),e.apply(this,n)}const Pme=PR(zL);function Mme(){return Tme(i5e,arguments)}const Nme="wrapper_9kH8F",Ime="label_3Ui5O",Lme="input_qp8iI",Rme="password_gFbZ2",jme="inputError_TaAyp",Dme="inputHidden_TZmAi",Fme="inputWrapper_wtZJt",Bme="error_lf6W6",zme="togglePassword_oXLor",Vme="copy_69i8p",So={wrapper:Nme,label:Ime,input:Lme,password:Rme,inputError:jme,inputHidden:Dme,inputWrapper:Fme,error:Bme,togglePassword:zme,copy:Vme},mk=({label:e,className:t,disabled:n,inputStyle:r,counterMax:i,style:a,type:o="text",copy:s,showError:l,...c})=>
30{const[u,f]=nte(c),d=(f.touched||l)&&f.error,[h,p]=P.useState(o!=="password"),{variables:g}=ti();return w.jsxs("label",{style:a,className:qe(So.wrapper,t),children:[e&&w.jsx("p",{className:So.label,children:e}),w.jsxs("div",{className:qe(So.inputWrapper,n&&So.disabled),style:r,children:[w.jsx("input",{className:qe(So.input,!h&&u.value&&So.inputHidden,o==="password"&&So.password,d&&So.inputError),placeholder:c.placeholder,type:o==="password"?"text":o,disabled:n,...u}),s&&w.jsx(NL,{value:u.value,color:g["--color-icons-light"],className:So.copy}),o==="password"&&w.jsx("img",{style:{cursor:"pointer"},onClick:()=>p(v=>!v),src:h?rte:ite,className:So.togglePassword})]}),d?w.jsx("div",{className:So.error,children:i?w.jsxs(w.Fragment,{children:[u.value.length,"/",i]}):f.error}):null]})},Wme=/^[A-Za-z]/,Hme=/^[A-Z]/,vk=/^[A-Z]?[a-z]*(?:-[A-Z]?[a-z]*)?$/,Gme=({accountData:e})=>{const t=Zt(),n=[Wme,{message:"Only latin alphabet is allowed"}],r=[Hme,{message:"Should start with a capital letter"}],i=uN().shape({given_name:gg().label("First name").required().max(32,"Your first name should be a maximum of 32 characters").matches(...n).matches(...r).matches(vk,{message:"Your first name is invalid"}),family_name:gg().label("Last name").required().max(32,"Your last name should be a maximum of 32 characters").matches(...n).matches(...r).matches(vk,{message:"Your last name is invalid"}),phone:gg().label("Phone").required().test("phone-test","Your phone number is invalid",a=>Mme(a||""))});return w.jsxs(ut,{modalClassName:l5.modal,children:[w.jsx(ut.Title,{children:"Welcome to Uniskai!"}),w.jsxs(ut.Description,{children:["Complete some basic business ",w.jsx("br",{})," information to get started"]}),w.jsx(ut.Content,{width:"360px",children:w.jsx(fN,{validationSchema:i,initialValues:{given_name:(e==null?void 0:e.given_name)||"",family_name:(e==null?void 0:e.family_name)||"",phone:(e==null?void 0:e.phone)||""},onSubmit:async a=>{await t(ote({data:a})),await t(hN())},children:({setFieldValue:a,isValid:o,touched:s,handleSubmit:l,isSubmitting:c})=>w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:l5.inputs,children:[w.jsx(mk,{name:"given_name",placeholder:"First name"}),w.jsx(mk,{name:"family_name",placeholder:"Last name"}),w.jsx(dN,{name:"phone",className:l5.field,children:u=>w.jsx(w.Fragment,{children:w.jsx(ate,{isTouched:u.isTouched,errorMessage:u.errorMessage,children:w.jsx(Pme,{name:u.name,placeholder:"Phone",international:!0,value:u.value,onChange:f=>{a(u.name,f||"")},onBlur:u.onBlur,className:qe(l5.inputWrapper),style:{height:40}})})})})]}),w.jsx(yi,{size:"medium",text:"Continue",type:"blue",buttonType:"submit",disabled:!o,onClick:()=>l(),submitting:c})]})})})]})},Ume=({accountData:e})=>w.jsx(FL,{showEmail:!0,children:w.jsx(Gme,{accountData:e})}),yk="marketplaceToken",Yme="marketplace-token",CYe="from-marketplace",MR=()=>[["cartesian"]];MR.props={};function Xme(e,t){return e=e%(2*Math.PI),t=t%(2*Math.PI),e<0&&(e=2*Math.PI+e),t<0&&(t=2*Math.PI+t),e>=t&&(t=t+2*Math.PI),{startAngle:e,endAngle:t}}const NR=(e={})=>{const t={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1},n=Object.assign(Object.assign({},t),e);return Object.assign(Object.assign({},n),Xme(n.startAngle,n.endAngle))},Op=e=>{const{startAngle:t,endAngle:n,innerRadius:r,outerRadius:i}=NR(e);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",t,n,r,i]]};Op.props={};const IR=({startAngle:e=0,endAngle:t=Math.PI*6,innerRadius:n=0,outerRadius:r=1})=>[["translate",.5,.5],["reflect.y"],["translate",-.5,-.5],["helix",e,t,n,r]];IR.props={};const zx=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];zx.props={transform:!0};const qme=(e={})=>{const t={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},t),e)},LR=e=>{const{startAngle:t,endAngle:n,innerRadius:r,outerRadius:i}=qme(e);return[...zx(),...Op({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i})]};LR.props={};const RR=(e={})=>{const t={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},t),e)},Vx=e=>{const{startAngle:t,endAngle:n,innerRadius:r,outerRadius:i}=RR(e);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...Op({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i})]};Vx.props={};const Wx=()=>[["parallel",0,1,0,1]];Wx.props={};const jR=({focusX:e=0,focusY:t=0,distortionX:n=2,distortionY:r=2,visual:i=!1})=>[["fisheye",e,t,n,r,i]];jR.props={transform:!0};const DR=e=>{const{startAngle:t=-Math.PI/2,endAngle:n=Math.PI*3/2,innerRadius:r=0,outerRadius:i=1}=e;return[...Wx(),...Op({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i})]};DR.props={};const FR=({value:e})=>t=>t.map(()=>e);FR.props={};const BR=({value:e})=>t=>t.map(e);BR.props={};const zR=({value:e})=>t=>t.map(n=>n[e]);zR.props={};const VR=({value:e})=>()=>e;VR.props={};var td=function(e){return e!==null&&typeof e!="function"&&isFinite(e.length)},WR=function(e,t){if(!td(e))return e;for(var n=[],r=0;r<e.length;r++){var i=e[r];t(i,r)&&n.push(i)}return n};function Hr(e){return typeof e=="function"}function pt(e){return e==null}function Dr(e){return Array.isArray(e)}const Ep=function(e){var t=typeof e;return e!==null&&t==="object"||t==="function"};function Hx(e,t){if(e){var n;if(Dr(e))for(var r=0,i=e.length;r<i&&(n=t(e[r],r),n!==!1);r++);else if(Ep(e)){for(var a in e)if(e.hasOwnProperty(a)&&(n=t(e[a],a),n===!1))break}}}var Gx=Object.keys?function(e){return Object.keys(e)}:function(e){var t=[];return Hx(e,function(n,r){Hr(e)&&r==="prototype"||t.push(r)}),t};function Zme(e,t){var n=Gx(t),r=n.length;if(pt(e))return!r;for(var i=0;i<r;i+=1){var a=n[i];if(t[a]!==e[a]||!(a in e))return!1}return!0}var G6=function(e){return typeof e=="object"&&e!==null},Kme={}.toString,HR=function(e,t){return Kme.call(e)==="[object "+t+"]"},Pl=function(e){if(!G6(e)||!HR(e,"Object"))return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t};
30function nd(e,t){if(!Dr(e))return null;var n;if(Hr(t)&&(n=t),Pl(t)&&(n=function(i){return Zme(i,t)}),n){for(var r=0;r<e.length;r+=1)if(n(e[r]))return e[r]}return null}var Jme=function(e){if(!Dr(e))return[];for(var t=[],n=0;n<e.length;n++)t=t.concat(e[n]);return t};function om(e){if(!Array.isArray(e))return-1/0;var t=e.length;if(!t)return-1/0;for(var n=e[0],r=1;r<t;r++)n=Math.max(n,e[r]);return n}const sm=function(e){if(Dr(e))return e.reduce(function(t,n){return Math.min(t,n)},e[0])};var GR=function(e,t,n){if(!Dr(e)&&!Pl(e))return e;var r=n;return Hx(e,function(i,a){r=t(r,i,a)}),r};function nr(e){return typeof e=="string"}function kp(e){if(td(e)){var t=e;return t[t.length-1]}}var yr=function(e,t,n){return e<t?t:e>n?n:e};function Jn(e){return typeof e=="number"}var Qme=1e-5;function fh(e,t,n){return n===void 0&&(n=Qme),e===t||Math.abs(e-t)<n}const e3e=function(e,t){if(Dr(e)){for(var n,r=-1/0,i=0;i<e.length;i++){var a=e[i],o=Hr(t)?t(a):a[t];o>r&&(n=a,r=o)}return n}},t3e=function(e,t){if(Dr(e)){for(var n,r=1/0,i=0;i<e.length;i++){var a=e[i],o=Hr(t)?t(a):a[t];o<r&&(n=a,r=o)}return n}};var UR=function(e,t){return(e%t+t)%t};const YR=function(e){return pt(e)?"":e.toString()};var XR=function(e){var t=YR(e);return t.charAt(0).toLowerCase()+t.substring(1)};function n3e(e,t){return!e||!t?e:e.replace(/\\?\{([^{}]+)\}/g,function(n,r){return n.charAt(0)==="\\"?n.slice(1):t[r]===void 0?"":t[r]})}var jc=function(e){var t=YR(e);return t.charAt(0).toUpperCase()+t.substring(1)},xk=function(e){return HR(e,"Boolean")};function r3e(e){return e===null}var Rn=function(e){return e===void 0};function bk(e,t){for(var n in t)t.hasOwnProperty(n)&&n!=="constructor"&&t[n]!==void 0&&(e[n]=t[n])}function i3e(e,t,n,r){return t&&bk(e,t),n&&bk(e,n),e}var Ih=function(e){if(typeof e!="object"||e===null)return e;var t;if(Dr(e)){t=[];for(var n=0,r=e.length;n<r;n++)typeof e[n]=="object"&&e[n]!=null?t[n]=Ih(e[n]):t[n]=e[n]}else{t={};for(var i in e)typeof e[i]=="object"&&e[i]!=null?t[i]=Ih(e[i]):t[i]=e[i]}return t};function qR(e,t,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,e.apply(i,a)};clearTimeout(r),r=setTimeout(o,t)}}function a3e(e){var t,n,r,i=e;function a(s,l){++t>i&&(r=n,o(1),++t),n[s]=l}function o(s){t=0,n=Object.create(null),s||(r=Object.create(null))}return o(),{clear:o,has:function(s){return n[s]!==void 0||r[s]!==void 0},get:function(s){var l=n[s];if(l!==void 0)return l;if((l=r[s])!==void 0)return a(s,l),l},set:function(s,l){n[s]!==void 0?n[s]=l:a(s,l)}}}var g9=new Map;function o3e(e,t,n){var r=function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var o=t?t.apply(this,i):i[0];g9.has(e)||g9.set(e,a3e(n));var s=g9.get(e);if(s.has(o))return s.get(o);var l=e.apply(this,i);return s.set(o,l),l};return r}var s3e=5;function l3e(e,t){if(Object.hasOwn)return Object.hasOwn(e,t);if(e==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}function ZR(e,t,n,r){n=n||0,r=r||s3e;for(var i in t)if(l3e(t,i)){var a=t[i];a!==null&&Pl(a)?(Pl(e[i])||(e[i]={}),n<r?ZR(e[i],a,n+1,r):e[i]=t[i]):Dr(a)?(e[i]=[],e[i]=e[i].concat(a)):a!==void 0&&(e[i]=a)}}var _e=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r+=1)ZR(e,t[r]);return e},KR=function(e,t){if(!td(e))return-1;var n=Array.prototype.indexOf;if(n)return n.call(e,t);for(var r=-1,i=0;i<e.length;i++)if(e[i]===t){r=i;break}return r},lm=function(e,t){if(e===t)return!0;if(!e||!t||nr(e)||nr(t))return!1;if(td(e)||td(t)){if(e.length!==t.length)return!1;for(var n=!0,r=0;r<e.length&&(n=lm(e[r],t[r]),!!n);r++);return n}if(G6(e)||G6(t)){var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var n=!0,r=0;r<i.length&&(n=lm(e[i[r]],t[i[r]]),!!n);r++);return n}return!1},c3e=function(e){return e};const u3e=function(e,t){t===void 0&&(t=c3e);var n={};return Ep(e)&&!pt(e)&&Object.keys(e).forEach(function(r){n[r]=t(e[r],r)}),n},an=function(e,t,n){for(var r=0,i=nr(t)?t.split("."):t;e&&r<i.length;)e=e[i[r++]];return e===void 0||r<i.length?n:e},f3e=function(e,t,n){var r=e,i=nr(t)?t.split("."):t;
30return i.forEach(function(a,o){o<i.length-1?(Ep(r[a])||(r[a]=Jn(i[o+1])?[]:{}),r=r[a]):r[a]=n}),e};var d3e=Object.prototype.hasOwnProperty;const Ux=function(e,t){if(e===null||!Pl(e))return{};var n={};return Hx(t,function(r){d3e.call(e,r)&&(n[r]=e[r])}),n},Yx=function(e,t){return GR(e,function(n,r,i){return t.includes(i)||(n[i]=r),n},{})},qu=function(e,t,n){var r,i,a,o,s=0;n||(n={});var l=function(){s=n.leading===!1?0:Date.now(),r=null,o=e.apply(i,a),r||(i=a=null)},c=function(){var u=Date.now();!s&&n.leading===!1&&(s=u);var f=t-(u-s);return i=this,a=arguments,f<=0||f>t?(r&&(clearTimeout(r),r=null),s=u,o=e.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(l,f)),o};return c.cancel=function(){clearTimeout(r),s=0,r=i=a=null},c},m9=function(){},Zu=function(e){return e};function Lh(e){return pt(e)?0:td(e)?e.length:Object.keys(e).length}var er=1e-6,Tr=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});function Td(){var e=new Tr(9);return Tr!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function h3e(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function p3e(e){var t=new Tr(9);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function g3e(e,t,n,r,i,a,o,s,l){var c=new Tr(9);return c[0]=e,c[1]=t,c[2]=n,c[3]=r,c[4]=i,c[5]=a,c[6]=o,c[7]=s,c[8]=l,c}function m3e(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],c=t[7],u=t[8],f=u*o-s*c,d=-u*a+s*l,h=c*a-o*l,p=n*f+r*d+i*h;return p?(p=1/p,e[0]=f*p,e[1]=(-u*r+i*c)*p,e[2]=(s*r-i*o)*p,e[3]=d*p,e[4]=(u*n-i*l)*p,e[5]=(-s*n+i*a)*p,e[6]=h*p,e[7]=(-c*n+r*l)*p,e[8]=(o*n-r*a)*p,e):null}function v3e(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],f=t[8],d=n[0],h=n[1],p=n[2],g=n[3],v=n[4],y=n[5],x=n[6],C=n[7],_=n[8];return e[0]=d*r+h*o+p*c,e[1]=d*i+h*s+p*u,e[2]=d*a+h*l+p*f,e[3]=g*r+v*o+y*c,e[4]=g*i+v*s+y*u,e[5]=g*a+v*l+y*f,e[6]=x*r+C*o+_*c,e[7]=x*i+C*s+_*u,e[8]=x*a+C*l+_*f,e}function y3e(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}function x3e(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function b3e(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}var C3e=v3e;function _n(){var e=new Tr(16);return Tr!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function Xx(e){var t=new Tr(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function rd(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function JR(e,t,n,r,i,a,o,s,l,c,u,f,d,h,p,g){var v=new Tr(16);return v[0]=e,v[1]=t,v[2]=n,v[3]=r,v[4]=i,v[5]=a,v[6]=o,v[7]=s,v[8]=l,v[9]=c,v[10]=u,v[11]=f,v[12]=d,v[13]=h,v[14]=p,v[15]=g,v}function U6(e,t,n,r,i,a,o,s,l,c,u,f,d,h,p,g,v){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=o,e[6]=s,e[7]=l,e[8]=c,e[9]=u,e[10]=f,e[11]=d,e[12]=h,e[13]=p,e[14]=g,e[15]=v,e}function Pc(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function QR(e,t){if(e===t){var n=t[1],r=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function Do(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],c=t[7],u=t[8],f=t[9],d=t[10],h=t[11],p=t[12],g=t[13],v=t[14],y=t[15],x=n*s-r*o,C=n*l-i*o,_=n*c-a*o,S=r*l-i*s,O=r*c-a*s,E=i*c-a*l,k=u*g-f*p,$=u*v-d*p,T=u*y-h*p,M=f*v-d*g,R=f*y-h*g,N=d*y-h*v,D=x*N-C*R+_*M+S*T-O*$+E*k;return D?(D=1/D,e[0]=(s*N-l*R+c*M)*D,e[1]=(i*R-r*N-a*M)*D,e[2]=(g*E-v*O+y*S)
vendor: 9,117 bytes, line 30
30*D,e[3]=(d*O-f*E-h*S)*D,e[4]=(l*T-o*N-c*$)*D,e[5]=(n*N-i*T+a*$)*D,e[6]=(v*_-p*E-y*C)*D,e[7]=(u*E-d*_+h*C)*D,e[8]=(o*R-s*T+c*k)*D,e[9]=(r*T-n*R-a*k)*D,e[10]=(p*O-g*_+y*x)*D,e[11]=(f*_-u*O-h*x)*D,e[12]=(s*$-o*M-l*k)*D,e[13]=(n*M-r*$+i*k)*D,e[14]=(g*C-p*S-v*x)*D,e[15]=(u*S-f*C+d*x)*D,e):null}function w3e(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],c=t[7],u=t[8],f=t[9],d=t[10],h=t[11],p=t[12],g=t[13],v=t[14],y=t[15];return e[0]=s*(d*y-h*v)-f*(l*y-c*v)+g*(l*h-c*d),e[1]=-(r*(d*y-h*v)-f*(i*y-a*v)+g*(i*h-a*d)),e[2]=r*(l*y-c*v)-s*(i*y-a*v)+g*(i*c-a*l),e[3]=-(r*(l*h-c*d)-s*(i*h-a*d)+f*(i*c-a*l)),e[4]=-(o*(d*y-h*v)-u*(l*y-c*v)+p*(l*h-c*d)),e[5]=n*(d*y-h*v)-u*(i*y-a*v)+p*(i*h-a*d),e[6]=-(n*(l*y-c*v)-o*(i*y-a*v)+p*(i*c-a*l)),e[7]=n*(l*h-c*d)-o*(i*h-a*d)+u*(i*c-a*l),e[8]=o*(f*y-h*g)-u*(s*y-c*g)+p*(s*h-c*f),e[9]=-(n*(f*y-h*g)-u*(r*y-a*g)+p*(r*h-a*f)),e[10]=n*(s*y-c*g)-o*(r*y-a*g)+p*(r*c-a*s),e[11]=-(n*(s*h-c*f)-o*(r*h-a*f)+u*(r*c-a*s)),e[12]=-(o*(f*v-d*g)-u*(s*v-l*g)+p*(s*d-l*f)),e[13]=n*(f*v-d*g)-u*(r*v-i*g)+p*(r*d-i*f),e[14]=-(n*(s*v-l*g)-o*(r*v-i*g)+p*(r*l-i*s)),e[15]=n*(s*d-l*f)-o*(r*d-i*f)+u*(r*l-i*s),e}function ej(e){var t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],d=e[11],h=e[12],p=e[13],g=e[14],v=e[15],y=t*o-n*a,x=t*s-r*a,C=t*l-i*a,_=n*s-r*o,S=n*l-i*o,O=r*l-i*s,E=c*p-u*h,k=c*g-f*h,$=c*v-d*h,T=u*g-f*p,M=u*v-d*p,R=f*v-d*g;return y*R-x*M+C*T+_*$-S*k+O*E}function Ii(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],f=t[8],d=t[9],h=t[10],p=t[11],g=t[12],v=t[13],y=t[14],x=t[15],C=n[0],_=n[1],S=n[2],O=n[3];return e[0]=C*r+_*s+S*f+O*g,e[1]=C*i+_*l+S*d+O*v,e[2]=C*a+_*c+S*h+O*y,e[3]=C*o+_*u+S*p+O*x,C=n[4],_=n[5],S=n[6],O=n[7],e[4]=C*r+_*s+S*f+O*g,e[5]=C*i+_*l+S*d+O*v,e[6]=C*a+_*c+S*h+O*y,e[7]=C*o+_*u+S*p+O*x,C=n[8],_=n[9],S=n[10],O=n[11],e[8]=C*r+_*s+S*f+O*g,e[9]=C*i+_*l+S*d+O*v,e[10]=C*a+_*c+S*h+O*y,e[11]=C*o+_*u+S*p+O*x,C=n[12],_=n[13],S=n[14],O=n[15],e[12]=C*r+_*s+S*f+O*g,e[13]=C*i+_*l+S*d+O*v,e[14]=C*a+_*c+S*h+O*y,e[15]=C*o+_*u+S*p+O*x,e}function F0(e,t,n){var r=n[0],i=n[1],a=n[2],o,s,l,c,u,f,d,h,p,g,v,y;return t===e?(e[12]=t[0]*r+t[4]*i+t[8]*a+t[12],e[13]=t[1]*r+t[5]*i+t[9]*a+t[13],e[14]=t[2]*r+t[6]*i+t[10]*a+t[14],e[15]=t[3]*r+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],c=t[3],u=t[4],f=t[5],d=t[6],h=t[7],p=t[8],g=t[9],v=t[10],y=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=c,e[4]=u,e[5]=f,e[6]=d,e[7]=h,e[8]=p,e[9]=g,e[10]=v,e[11]=y,e[12]=o*r+u*i+p*a+t[12],e[13]=s*r+f*i+g*a+t[13],e[14]=l*r+d*i+v*a+t[14],e[15]=c*r+h*i+y*a+t[15]),e}function tj(e,t,n){var r=n[0],i=n[1],a=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function _3e(e,t,n,r){var i=r[0],a=r[1],o=r[2],s=Math.hypot(i,a,o),l,c,u,f,d,h,p,g,v,y,x,C,_,S,O,E,k,$,T,M,R,N,D,F;return s<er?null:(s=1/s,i*=s,a*=s,o*=s,l=Math.sin(n),c=Math.cos(n),u=1-c,f=t[0],d=t[1],h=t[2],p=t[3],g=t[4],v=t[5],y=t[6],x=t[7],C=t[8],_=t[9],S=t[10],O=t[11],E=i*i*u+c,k=a*i*u+o*l,$=o*i*u-a*l,T=i*a*u-o*l,M=a*a*u+c,R=o*a*u+i*l,N=i*o*u+a*l,D=a*o*u-i*l,F=o*o*u+c,e[0]=f*E+g*k+C*$,e[1]=d*E+v*k+_*$,e[2]=h*E+y*k+S*$,e[3]=p*E+x*k+O*$,e[4]=f*T+g*M+C*R,e[5]=d*T+v*M+_*R,e[6]=h*T+y*M+S*R,e[7]=p*T+x*M+O*R,e[8]=f*N+g*D+C*F,e[9]=d*N+v*D+_*F,e[10]=h*N+y*D+S*F,e[11]=p*N+x*D+O*F,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function nj(e,t,n){var r=Math.sin(n),i=Math.cos(n),a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+c*r,e[5]=o*i+u*r,e[6]=s*i+f*r,e[7]=l*i+d*r,e[8]=c*i-a*r,e[9]=u*i-o*r,e[10]=f*i-s*r,e[11]=d*i-l*r,e}function rj(e,t,n){var r=Math.sin(n),i=Math.cos(n),a=t[0],o=t[1],s=t[2],l=t[3],c=t[8],u=t[9],f=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-c*r,e[1]=o*i-u*r,e[2]=s*i-f*r,e[3]=l*i-d*r,e[8]=a*r+c*i,e[9]=o*r+u*i,e[10]=s*r+f*i,e[11]=l*r+d*i,e}function S3e(e,t,n){var r=Math.sin(n),i=Math.cos(n),a=t[0],o=t[1],s=t[2],l=t[3],c=t[4],u=t[5],f=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+c*r,e[1]=o*i+u*r,e[2]=s*i+f*r,e[3]=l*i+d*r,e[4]=c*i-a*r,e[5]=u*i-o*r,e[6]=f*i-s*r,e[7]=d*i-l*r,e}function ml(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function pc(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function ij(e,t,n){var r=n[0],i=n[1],a=n[2],o=Math.hypot(r,i,a),s,l,c;return o<er?null:(o=1/o,r*=o,i*=o,a*=o,s=Math.sin(t),l=Math.cos(t),c=1-l,e[0]=r*r*c+l,e[1]=i*r*c+a*s,e[2]=a*r*c-i*s,e[3]=0,e[4]=r*i*c-a*s,e[5]=i*i*c+l,e[6]=a*i*c+r*s,e[7]=0,e[8]=r*a*c+i*s,e[9]=i*a*c-r*s,e[10]=a*a*c+l,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function aj(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=n,e[7]=0,e[8]=0,e[9]=-n,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function oj(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=0,e[2]=-n,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=n,e[9]=0,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function Y6(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=0,e[4]=-n,e[5]=r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function sj(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=r+r,l=i+i,c=a+a,u=r*s,f=r*l,d=r*c,h=i*l,p=i*c,g=a*c,v=o*s,y=o*l,x=o*c;return e[0]=1-(h+g),e[1]=f+x,e[2]=d-y,e[3]=0,e[4]=f-x,e[5]=1-(u+g),e[6]=p+v,e[7]=0,e[8]=d+y,e[9]=p-v,e[10]=1-(u+h),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function O3e(e,t){var n=new Tr(3),r=-t[0],i=-t[1],a=-t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],f=r*r+i*i+a*a+o*o;return f>0?(n[0]=(s*o+u*r+l*a-c*i)*2/f,n[1]=(l*o+u*i+c*r-s*a)*2/f,n[2]=(c*o+u*a+s*i-l*r)*2/f):(n[0]=(s*o+u*r+l*a-c*i)*2,n[1]=(l*o+u*i+c*r-s*a)*2,n[2]=(c*o+u*a+s*i-l*r)*2),sj(e,t,n),e}function cm(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function id(e,t){var n=t[0],r=t[1],i=t[2],a=t[4],o=t[5],s=t[6],l=t[8],c=t[9],u=t[10];return e[0]=Math.hypot(n,r,i),e[1]=Math.hypot(a,o,s),e[2]=Math.hypot(l,c,u),e}function um(e,t){var n=new Tr(3);id(n,t);var r=1/n[0],i=1/n[1],a=1/n[2],o=t[0]*r,s=t[1]*i,l=t[2]*a,c=t[4]*r,u=t[5]*i,f=t[6]*a,d=t[8]*r,h=t[9]*i,p=t[10]*a,g=o+u+p,v=0;return g>0?(v=Math.sqrt(g+1)*2,e[3]=.25*v,e[0]=(f-h)/v,e[1]=(d-l)/v,e[2]=(s-c)/v):o>u&&o>p?(v=Math.sqrt(1+o-u-p)*2,e[3]=(f-h)/v,e[0]=.25*v,e[1]=(s+c)/v,e[2]=(d+l)/v):u>p?(v=Math.sqrt(1+u-o-p)*2,e[3]=(d-l)/v,e[0]=(s+c)/v,e[1]=.25*v,e[2]=(f+h)/v):(v=Math.sqrt(1+p-o-u)*2,e[3]=(s-c)/v,e[0]=(d+l)/v,e[1]=(f+h)/v,e[2]=.25*v),e}function E3e(e,t,n,r){var i=t[0],a=t[1],o=t[2],s=t[3],l=i+i,c=a+a,u=o+o,f=i*l,d=i*c,h=i*u,p=a*c,g=a*u,v=o*u,y=s*l,x=s*c,C=s*u,_=r[0],S=r[1],O=r[2];return e[0]=(1-(p+v))*_,e[1]=(d+C)*_,e[2]=(h-x)*_,e[3]=0,e[4]=(d-C)*S,e[5]=(1-(f+v))*S,e[6]=(g+y)*S,e[7]=0,e[8]=(h+x)*O,e[9]=(g-y)*O,e[10]=(1-(f+p))*O,e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function dh(e,t,n,r,i){var a=t[0],o=t[1],s=t[2],l=t[3],c=a+a,u=o+o,f=s+s,d=a*c,h=a*u,p=a*f,g=o*u,v=o*f,y=s*f,x=l*c,C=l*u,_=l*f,S=r[0],O=r[1],E=r[2],k=i[0],$=i[1],T=i[2],M=(1-(g+y))*S,R=(h+_)*S,N=(p-C)*S,D=(h-_)*O,F=(1-(d+y))*O,V=(v+x)*O,z=(p+C)*E,B=(v-x)*E,G=(1-(d+g))*E;return e[0]=M,e[1]=R,e[2]=N,e[3]=0,e[4]=D,e[5]=F,e[6]=V,e[7]=0,e[8]=z,e[9]=B,e[10]=G,e[11]=0,e[12]=n[0]+k-(M*k+D*$+z*T),e[13]=n[1]+$-(R*k+F*$+B*T),e[14]=n[2]+T-(N*k+V*$+G*T),e[15]=1,e}function qx(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,l=i+i,c=n*o,u=r*o,f=r*s,d=i*o,h=i*s,p=i*l,g=a*o,v=a*s,y=a*l;return e[0]=1-f-p,e[1]=u+y,e[2]=d-v,e[3]=0,e[4]=u-y,e[5]=1-c-p,e[6]=h+g,e[7]=0,e[8]=d+v,e[9]=h-g,e[10]=1-c-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function k3e(e,t,n,r,i,a,o){var s=1/(n-t),l=1/(i-r),c=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*l,e[6]=0,e[7]=0,e[8]=(n+t)*s,e[9]=(i+r)*l,e[10]=(o+a)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*c,e[15]=0,e}function lj(e,t,n,r,i){var a=1/Math.tan(t/2),o;return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,i!=null&&i!==1/0?(o=1/(r-i),e[10]=(i+r)*o,e[14]=2*i*r*o):(e[10]=-1,e[14]=-2*r),e}var A3e=lj;function $3e(e,t,n,r,i){var a=1/Math.tan(t/2),o;return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,i!=null&&i!==1/0?(o=1/(r-i),e[10]=i*o,e[14]=i*r*o):(e[10]=-1,e[14]=-r),e}function T3e(e,t,n,r){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),c=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(i-a)*c*.5,e[10]=r/(n-r),e[11]=-1,e[12]=0,e[13]=0,e[14]=r*n/(n-r),e[15]=0,e}function cj(e,t,n,r,i,a,o){var s=1/(t-n),l=1/(r-i),c=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10
vendor: 6,878 bytes, line 30
30]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*l,e[14]=(o+a)*c,e[15]=1,e}var uj=cj;function fj(e,t,n,r,i,a,o){var s=1/(t-n),l=1/(r-i),c=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=c,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*l,e[14]=a*c,e[15]=1,e}function dj(e,t,n,r){var i,a,o,s,l,c,u,f,d,h,p=t[0],g=t[1],v=t[2],y=r[0],x=r[1],C=r[2],_=n[0],S=n[1],O=n[2];return Math.abs(p-_)<er&&Math.abs(g-S)<er&&Math.abs(v-O)<er?Pc(e):(u=p-_,f=g-S,d=v-O,h=1/Math.hypot(u,f,d),u*=h,f*=h,d*=h,i=x*d-C*f,a=C*u-y*d,o=y*f-x*u,h=Math.hypot(i,a,o),h?(h=1/h,i*=h,a*=h,o*=h):(i=0,a=0,o=0),s=f*o-d*a,l=d*i-u*o,c=u*a-f*i,h=Math.hypot(s,l,c),h?(h=1/h,s*=h,l*=h,c*=h):(s=0,l=0,c=0),e[0]=i,e[1]=s,e[2]=u,e[3]=0,e[4]=a,e[5]=l,e[6]=f,e[7]=0,e[8]=o,e[9]=c,e[10]=d,e[11]=0,e[12]=-(i*p+a*g+o*v),e[13]=-(s*p+l*g+c*v),e[14]=-(u*p+f*g+d*v),e[15]=1,e)}function P3e(e,t,n,r){var i=t[0],a=t[1],o=t[2],s=r[0],l=r[1],c=r[2],u=i-n[0],f=a-n[1],d=o-n[2],h=u*u+f*f+d*d;h>0&&(h=1/Math.sqrt(h),u*=h,f*=h,d*=h);var p=l*d-c*f,g=c*u-s*d,v=s*f-l*u;return h=p*p+g*g+v*v,h>0&&(h=1/Math.sqrt(h),p*=h,g*=h,v*=h),e[0]=p,e[1]=g,e[2]=v,e[3]=0,e[4]=f*v-d*g,e[5]=d*p-u*v,e[6]=u*g-f*p,e[7]=0,e[8]=u,e[9]=f,e[10]=d,e[11]=0,e[12]=i,e[13]=a,e[14]=o,e[15]=1,e}function M3e(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}function N3e(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function I3e(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e[9]=t[9]+n[9],e[10]=t[10]+n[10],e[11]=t[11]+n[11],e[12]=t[12]+n[12],e[13]=t[13]+n[13],e[14]=t[14]+n[14],e[15]=t[15]+n[15],e}function hj(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e[9]=t[9]-n[9],e[10]=t[10]-n[10],e[11]=t[11]-n[11],e[12]=t[12]-n[12],e[13]=t[13]-n[13],e[14]=t[14]-n[14],e[15]=t[15]-n[15],e}function L3e(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12]*n,e[13]=t[13]*n,e[14]=t[14]*n,e[15]=t[15]*n,e}function R3e(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e[9]=t[9]+n[9]*r,e[10]=t[10]+n[10]*r,e[11]=t[11]+n[11]*r,e[12]=t[12]+n[12]*r,e[13]=t[13]+n[13]*r,e[14]=t[14]+n[14]*r,e[15]=t[15]+n[15]*r,e}function X6(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function j3e(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],d=e[10],h=e[11],p=e[12],g=e[13],v=e[14],y=e[15],x=t[0],C=t[1],_=t[2],S=t[3],O=t[4],E=t[5],k=t[6],$=t[7],T=t[8],M=t[9],R=t[10],N=t[11],D=t[12],F=t[13],V=t[14],z=t[15];return Math.abs(n-x)<=er*Math.max(1,Math.abs(n),Math.abs(x))&&Math.abs(r-C)<=er*Math.max(1,Math.abs(r),Math.abs(C))&&Math.abs(i-_)<=er*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(a-S)<=er*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(o-O)<=er*Math.max(1,Math.abs(o),Math.abs(O))&&Math.abs(s-E)<=er*Math.max(1,Math.abs(s),Math.abs(E))&&Math.abs(l-k)<=er*Math.max(1,Math.abs(l),Math.abs(k))&&Math.abs(c-$)<=er*Math.max(1,Math.abs(c),Math.abs($))&&Math.abs(u-T)<=er*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(f-M)<=er*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(d-R)<=er*Math.max(1,Math.abs(d),Math.abs(R))&&Math.abs(h-N)<=er*Math.max(1,Math.abs(h),Math.abs(N))&&Math.abs(p-D)<=er*Math.max(1,Math.abs(p),Math.abs(D))&&Math.abs(g-F)<=er*Math.max(1,Math.abs(g),Math.abs(F))&&Math.abs(v-V)<=er*Math.max(1,Math.abs(v),Math.abs(V))&&Math.abs(y-z)<=er*Math.max(1,Math.abs(y),Math.abs(z))}var Zx=Ii,D3e=hj;const F3e=Object.freeze(Object.defineProperty({__proto__:null,add:I3e,adjoint:w3e,clone:Xx,copy:rd,create:_n,determinant:ej,equals:j3e,exactEquals:X6,frob:N3e,fromQuat:qx,fromQuat2:O3e,fromRotation:ij,fromRotationTranslation:sj,fromRotationTranslationScale:E3e,fromRotationTranslationScaleOrigin:dh,fromScaling:pc,fromTranslation:ml,fromValues:JR,fromXRotation:aj,fromYRotation:oj,fromZRotation:Y6,frustum:k3e,getRotation:um,getScaling:id,getTranslation:cm,identity:Pc,invert:Do,lookAt:dj,mul:Zx,multiply:Ii,multiplyScalar:L3e,multiplyScalarAndAdd:R3e,ortho:uj,orthoNO:cj,orthoZO:fj,perspective:A3e,perspectiveFromFieldOfView:T3e,perspectiveNO:lj,perspectiveZO:$3e,rotate:_3e,rotateX:nj,rotateY:rj,rotateZ:S3e,scale:tj,set:U6,str:M3e,sub:D3e,subtract:hj,targetTo:P3e,translate:F0,transpose:QR},Symbol.toStringTag,{value:"Module"}));function qt(){var e=new Tr(3);return Tr!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function fl(e){var t=new Tr(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function vl(e){var t=e[0],n=e[1],r=e[2];return Math.hypot(t,n,r)}function fn(e,t,n){var r=new Tr(3);return r[0]=e,r[1]=t,r[2]=n,r}function ys(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function $i(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function _c(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function q6(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function B3e(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function z3e(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function V3e(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function fm(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function W3e(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.hypot(n,r,i)}function Hu(e,t){var n=t[0],r=t[1],i=t[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function xs(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Og(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[0],s=n[1],l=n[2];return e[0]=i*l-a*s,e[1]=a*o-r*l,e[2]=r*s-i*o,e}function Z6(e,t,n,r){var i=t[0],a=t[1],o=t[2];return e[0]=i+r*(n[0]-i),e[1]=a+r*(n[1]-a),e[2]=o+r*(n[2]-o),e}function gr(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,e[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,e[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,e[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,e}function pj(e,t,n){var r=t[0],i=t[1],a=t[2];return e[0]=r*n[0]+i*n[3]+a*n[6],e[1]=r*n[1]+i*n[4]+a*n[7],e[2]=r*n[2]+i*n[5]+a*n[8],e}function H3e(e,t,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=t[0],l=t[1],c=t[2],u=i*c-a*l,f=a*s-r*c,d=r*l-i*s,h=i*d-a*f,p=a*u-r*d,g=r*f-i*u,v=o*2;return u*=v,f*=v,d*=v,h*=2,p*=2,g*=2,e[0]=s+u+h,e[1]=l+f+p,e[2]=c+d+g,e}function y1(e,t){var n=e[0],r=e[1],i=e[2],a=t[0],o=t[1],s=t[2];
vendor: 4,203 bytes, line 30
30return Math.abs(n-a)<=er*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=er*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=er*Math.max(1,Math.abs(i),Math.abs(s))}var G3e=q6,Ck=W3e,gj=vl;(function(){var e=qt();return function(t,n,r,i,a,o){var s,l;for(n||(n=3),r||(r=0),i?l=Math.min(i*n+r,t.length):l=t.length,s=r;s<l;s+=n)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],a(e,e,o),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2];return t}})();function bs(){var e=new Tr(4);return Tr!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function j1(e,t,n,r){var i=new Tr(4);return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i}function U3e(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function Y3e(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function X3e(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),e[0]=n*o,e[1]=r*o,e[2]=i*o,e[3]=a*o,e}function Cs(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,e[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,e[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,e[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,e}(function(){var e=bs();return function(t,n,r,i,a,o){var s,l;for(n||(n=4),r||(r=0),i?l=Math.min(i*n+r,t.length):l=t.length,s=r;s<l;s+=n)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],e[3]=t[s+3],a(e,e,o),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2],t[s+3]=e[3];return t}})();function Wr(){var e=new Tr(4);return Tr!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function yc(e,t,n){n=n*.5;var r=Math.sin(n);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(n),e}function Sc(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=n[0],l=n[1],c=n[2],u=n[3];return e[0]=r*u+o*s+i*c-a*l,e[1]=i*u+o*l+a*s-r*c,e[2]=a*u+o*c+r*l-i*s,e[3]=o*u-r*s-i*l-a*c,e}function v9(e,t,n,r){var i=t[0],a=t[1],o=t[2],s=t[3],l=n[0],c=n[1],u=n[2],f=n[3],d,h,p,g,v;return h=i*l+a*c+o*u+s*f,h<0&&(h=-h,l=-l,c=-c,u=-u,f=-f),1-h>er?(d=Math.acos(h),p=Math.sin(d),g=Math.sin((1-r)*d)/p,v=Math.sin(r*d)/p):(g=1-r,v=r),e[0]=g*i+v*l,e[1]=g*a+v*c,e[2]=g*o+v*u,e[3]=g*s+v*f,e}function y9(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return e[0]=-n*s,e[1]=-r*s,e[2]=-i*s,e[3]=a*s,e}function q3e(e,t){var n=t[0]+t[4]+t[8],r;if(n>0)r=Math.sqrt(n+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{var i=0;t[4]>t[0]&&(i=1),t[8]>t[i*3+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(t[i*3+i]-t[a*3+a]-t[o*3+o]+1),e[i]=.5*r,r=.5/r,e[3]=(t[a*3+o]-t[o*3+a])*r,e[a]=(t[a*3+i]+t[i*3+a])*r,e[o]=(t[o*3+i]+t[i*3+o])*r}return e}function u5(e,t,n,r){var i=.5*Math.PI/180;t*=i,n*=i,r*=i;var a=Math.sin(t),o=Math.cos(t),s=Math.sin(n),l=Math.cos(n),c=Math.sin(r),u=Math.cos(r);return e[0]=a*l*u-o*s*c,e[1]=o*s*u+a*l*c,e[2]=o*l*c-a*s*u,e[3]=o*l*u+a*s*c,e}var Z3e=j1,f5=U3e,wk=Y3e,_k=Sc,dm=X3e;(function(){var e=qt(),t=fn(1,0,0),n=fn(0,1,0);return function(r,i,a){var o=xs(i,a);return o<-.999999?(Og(e,t,i),gj(e)<1e-6&&Og(e,n,i),Hu(e,e),yc(r,e,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(Og(e,i,a),r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=1+o,dm(r,r))}})();(function(){var e=Wr(),t=Wr();return function(n,r,i,a,o,s){return v9(e,r,o,s),v9(t,i,a,s),v9(n,e,t,2*s*(1-s)),n}})();(function(){var e=Td();return function(t,n,r,i){return e[0]=r[0],e[3]=r[1],e[6]=r[2],e[1]=i[0],e[4]=i[1],e[7]=i[2],e[2]=-n[0],e[5]=-n[1],e[8]=-n[2],dm(t,q3e(t,e))}})();function Kx(){var e=new Tr(2);return Tr!=Float32Array&&(e[0]=0,e[1]=0),e}function K3e(e,t){return e[0]=t[0],e[1]=t[1],e}function J3e(e,t,n){return e[0]=t,e[1]=n,e}function Q3e(e,t){var n=t[0],r=t[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e}function eve(e,t){return e[0]*t[0]+e[1]*t[1]}function tve(e,t){return e[0]===t[0]&&e[1]===t[1]}(function(){var e=Kx();return function(t,n,r,i,a,o){var s,l;for(n||(n=2),r||(r=0),i?l=Math.min(i*n+r,t.length):l=t.length,s=r;s<l;s+=n)e[0]=t[s],e[1]=t[s+1],a(e,e,o),t[s]=e[0],t[s+1]=e[1];return t}})();var K6=function(e,t){return K6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},K6(e,t)};function lr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");K6(e,t);function n(){this.constructor=e}
30e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ne=function(){return Ne=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ne.apply(this,arguments)};function ei(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ap(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ee(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function nve(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function ot(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function x9(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}var mj={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function rve(e,t,n){if(e[n].length>7){e[n].shift();for(var r=e[n],i=n;r.length;)t[n]="A",e.splice(i+=1,0,["C"].concat(r.splice(0,6)));e.splice(n,1)}}var hh={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function vj(e){return Array.isArray(e)&&e.every(function(t){var n=t[0].toLowerCase();return hh[n]===t.length-1&&"achlmqstvz".includes(n)})}function yj(e){return vj(e)&&e.every(function(t){var n=t[0];return n===n.toUpperCase()})}function xj(e){return yj(e)&&e.every(function(t){var n=t[0];return"ACLMQZ".includes(n)})}function Sk(e){for(var t=e.pathValue[e.segmentStart],n=t.toLowerCase(),r=e.data;r.length>=hh[n]&&(n==="m"&&r.length>2?(e.segments.push([t].concat(r.splice(0,2))),n="l",t=t==="m"?"l":"L"):e.segments.push([t].concat(r.splice(0,hh[n]))),!!hh[n]););}function ive(e){var t=e.index,n=e.pathValue,r=n.charCodeAt(t);if(r===48){e.param=0,e.index+=1;return}if(r===49){e.param=1,e.index+=1;return}e.err='[path-util]: invalid Arc flag "'.concat(n[t],'", expecting 0 or 1 at index ').concat(t)}function ave(e){return e>=48&&e<=57||e===43||e===45||e===46}function a0(e){return e>=48&&e<=57}function ove(e){var t=e.max,n=e.pathValue,r=e.index,i=r,a=!1,o=!1,s=!1,l=!1,c;if(i>=t){e.err="[path-util]: Invalid path value at index ".concat(i,', "pathValue" is missing param');return}if(c=n.charCodeAt(i),(c===43||c===45)&&(i+=1,c=n.charCodeAt(i)),!a0(c)&&c!==46){e.err="[path-util]: Invalid path value at index ".concat(i,', "').concat(n[i],'" is not a number');return}if(c!==46){if(a=c===48,i+=1,c=n.charCodeAt(i),a&&i<t&&c&&a0(c)){e.err="[path-util]: Invalid path value at index ".concat(r,', "').concat(n[r],'" illegal number');return}for(;i<t&&a0(n.charCodeAt(i));)i+=1,o=!0;c=n.charCodeAt(i)}if(c===46){for(l=!0,i+=1;a0(n.charCodeAt(i));)i+=1,s=!0;c=n.charCodeAt(i)}if(c===101||c===69){if(l&&!o&&!s){e.err="[path-util]: Invalid path value at index ".concat(i,', "').concat(n[i],'" invalid float exponent');return}if(i+=1,c=n.charCodeAt(i),(c===43||c===45)&&(i+=1),i<t&&a0(n.charCodeAt(i)))for(;i<t&&a0(n.charCodeAt(i));)i+=1;else{e.err="[path-util]: Invalid path value at index ".concat(i,', "').concat(n[i],'" invalid integer exponent');return}}e.index=i,e.param=+e.pathValue.slice(r,i)}function sve(e){var t=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];return e===10||e===13||e===8232||e===8233||e===32||e===9||e===11||e===12||e===160||e>=5760&&t.includes(e)}function Eg(e){for(var t=e.pathValue,n=e.max;e.index<n&&sve(t.charCodeAt(e.index));)e.index+=1}function lve(e){switch(e|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return!0;default:return!1}}function cve(e){return(e|32)===97}function uve(e){var t=e.max,n=e.pathValue,r=e.index,i=n.charCodeAt(r),a=hh[n[r].toLowerCase()];if(e.segmentStart=r,!lve(i)){e.err='[path-util]: Invalid path value "'.concat(n[r],'" is not a path command');return}if(e.index+=1,Eg(e),e.data=[],!a){Sk(e);return}for(;;){for(var o=a;o>0;o-=1){if(cve(i)&&(o===3||o===4)?ive(e):ove(e),e.err.length)return;
30e.data.push(e.param),Eg(e),e.index<t&&n.charCodeAt(e.index)===44&&(e.index+=1,Eg(e))}if(e.index>=e.max||!ave(n.charCodeAt(e.index)))break}Sk(e)}var fve=function(){function e(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return e}();function dve(e){if(vj(e))return[].concat(e);var t=new fve(e);for(Eg(t);t.index<t.max&&!t.err.length;)uve(t);return t.err?t.err:t.segments}function hve(e){if(yj(e))return[].concat(e);var t=dve(e),n=0,r=0,i=0,a=0;return t.map(function(o){var s=o.slice(1).map(Number),l=o[0],c=l.toUpperCase();if(l==="M")return n=s[0],r=s[1],i=n,a=r,["M",n,r];var u;if(l!==c)switch(c){case"A":u=[c,s[0],s[1],s[2],s[3],s[4],s[5]+n,s[6]+r];break;case"V":u=[c,s[0]+r];break;case"H":u=[c,s[0]+n];break;default:{var f=s.map(function(h,p){return h+(p%2?r:n)});u=[c].concat(f)}}else u=[c].concat(s);var d=u.length;switch(c){case"Z":n=i,r=a;break;case"H":n=u[1];break;case"V":r=u[1];break;default:n=u[d-2],r=u[d-1],c==="M"&&(i=n,a=r)}return u})}function pve(e,t){var n=e[0],r=t.x1,i=t.y1,a=t.x2,o=t.y2,s=e.slice(1).map(Number),l=e;if("TQ".includes(n)||(t.qx=null,t.qy=null),n==="H")l=["L",e[1],i];else if(n==="V")l=["L",r,e[1]];else if(n==="S"){var c=r*2-a,u=i*2-o;t.x1=c,t.y1=u,l=["C",c,u].concat(s)}else if(n==="T"){var f=r*2-t.qx,d=i*2-t.qy;t.qx=f,t.qy=d,l=["Q",f,d].concat(s)}else if(n==="Q"){var h=s[0],p=s[1];t.qx=h,t.qy=p}return l}function hm(e){if(xj(e))return[].concat(e);for(var t=hve(e),n=Ne({},mj),r=0;r<t.length;r+=1){t[r]=pve(t[r],n);var i=t[r],a=i.length;n.x1=+i[a-2],n.y1=+i[a-1],n.x2=+i[a-4]||n.x1,n.y2=+i[a-3]||n.y1}return t}function gve(e){return xj(e)&&e.every(function(t){var n=t[0];return"MC".includes(n)})}function d5(e,t,n){var r=e*Math.cos(n)-t*Math.sin(n),i=e*Math.sin(n)+t*Math.cos(n);return{x:r,y:i}}function Jx(e,t,n,r,i,a,o,s,l,c){var u=e,f=t,d=n,h=r,p=s,g=l,v=Math.PI*120/180,y=Math.PI/180*(+i||0),x=[],C,_,S,O,E;if(c)_=c[0],S=c[1],O=c[2],E=c[3];else{C=d5(u,f,-y),u=C.x,f=C.y,C=d5(p,g,-y),p=C.x,g=C.y;var k=(u-p)/2,$=(f-g)/2,T=k*k/(d*d)+$*$/(h*h);T>1&&(T=Math.sqrt(T),d*=T,h*=T);var M=d*d,R=h*h,N=(a===o?-1:1)*Math.sqrt(Math.abs((M*R-M*$*$-R*k*k)/(M*$*$+R*k*k)));O=N*d*$/h+(u+p)/2,E=N*-h*k/d+(f+g)/2,_=Math.asin(((f-E)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),S=Math.asin(((g-E)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),_=u<O?Math.PI-_:_,S=p<O?Math.PI-S:S,_<0&&(_=Math.PI*2+_),S<0&&(S=Math.PI*2+S),o&&_>S&&(_-=Math.PI*2),!o&&S>_&&(S-=Math.PI*2)}var D=S-_;if(Math.abs(D)>v){var F=S,V=p,z=g;S=_+v*(o&&S>_?1:-1),p=O+d*Math.cos(S),g=E+h*Math.sin(S),x=Jx(p,g,d,h,i,0,o,V,z,[S,F,O,E])}D=S-_;var B=Math.cos(_),G=Math.sin(_),Y=Math.cos(S),K=Math.sin(S),Q=Math.tan(D/4),ne=4/3*d*Q,oe=4/3*h*Q,ae=[u,f],ce=[u+ne*G,f-oe*B],fe=[p+ne*K,g-oe*Y],le=[p,g];if(ce[0]=2*ae[0]-ce[0],ce[1]=2*ae[1]-ce[1],c)return ce.concat(fe,le,x);x=ce.concat(fe,le,x);for(var be=[],Ce=0,$e=x.length;Ce<$e;Ce+=1)be[Ce]=Ce%2?d5(x[Ce-1],x[Ce],y).y:d5(x[Ce],x[Ce+1],y).x;return be}function mve(e,t,n,r,i,a){var o=.3333333333333333,s=2/3;return[o*e+s*n,o*t+s*r,o*i+s*n,o*a+s*r,i,a]}function dc(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return[r+(a-r)*n,i+(o-i)*n]}var Ok=function(e,t,n,r){var i=.5,a=dc([e,t],[n,r],i);return ot(ot([],a,!0),[n,r,n,r],!1)};function vve(e,t){var n=e[0],r=e.slice(1).map(Number),i=r[0],a=r[1],o,s=t.x1,l=t.y1,c=t.x,u=t.y;switch("TQ".includes(n)||(t.qx=null,t.qy=null),n){case"M":return t.x=i,t.y=a,e;case"A":return o=[s,l].concat(r),["C"].concat(Jx(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],o[8],o[9]));case"Q":return t.qx=i,t.qy=a,o=[s,l].concat(r),["C"].concat(mve(o[0],o[1],o[2],o[3],o[4],o[5]));case"L":return["C"].concat(Ok(s,l,i,a));case"Z":return s===c&&l===u?["C",s,l,c,u,c,u]:["C"].concat(Ok(s,l,c,u))}return e}function J6(e,t){if(t===void 0&&(t=!1),gve(e)){var n=[].concat(e);return t?[n,[]]:n}for(var r=hm(e),i=Ne({},mj),a=[],o="",s=r.length,l,c,u=[],f=0;f<s;f+=1){r[f]&&(o=r[f][0]),a[f]=o;var d=vve(r[f],i);r[f]=d,rve(r,a,f),s=r.length,o==="Z"&&u.push(f),l=r[f],c=l.length,i.x1=+l[c-2],i.y1=+l[c-1],i.x2=+l[c-4]||i.x1,i.y2=+l[c-3]||i.y1}return t?[r,u]:r}function yve(e){return e.map(function(t){return Array.isArray(t)?[].concat(t):t})}function xve(e){var t=e.slice(1).map(function(n,r,i){return r?i[r-1].slice(-2).concat(n.slice(1)):e[0].slice(1).concat(n.slice(1))}).map(function(n){return n.map(function(r,i){return n[n.length-i-2*(1-i%2)]})}).reverse();return[["M"].concat(t[0].slice(0,2))].concat(t.map(function(n){return["C"].concat(n.slice(2))}))}function sa(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function Q6(e,t,n,r,i){var a=sa([e,t],[n,r]),o={x:0,y:0};if(typeof i=="number")if(i<=0)o={x:e,y:t};else if(i>=a)o={x:n,y:r};else{var s=dc([e,t],[n,r],i/a),l=s[0],c=s[1];o={x:l,y:c}}return{length:a,point:o,min:{x:Math.min(e,n),y:Math.min(t,r)},max:{x:Math.max(e,n),y:Math.max(t,r)}}}function Ek(e,t){var n=e.x,r=e.y,i=t.x,a=t.y,o=n*i+r*a,s=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(a,2))),l=n*a-r*i<0?-1:1,c=l*Math.acos(o/s);return c}function bve(e,t,n,r,i,a,o,s,l,c){var u=Math.abs,f=Math.sin,d=Math.cos,h=Math.sqrt,p=Math.PI,g=u(n),v=u(r),y=(i%360+360)%360,x=y*(p/180);if(e===s&&t===l)return{x:e,y:t};if(g===0||v===0)return Q6(e,t,s,l,c).point;var C=(e-s)/2,_=(t-l)/2,S={x:d(x)*C+f(x)*_,y:-f(x)*C+d(x)*_},O=Math.pow(S.x,2)/Math.pow(g,2)+Math.pow(S.y,2)/Math.pow(v,2);O>1&&(g*=h(O),v*=h(O));var E=Math.pow(g,2)*Math.pow(v,2)-Math.pow(g,2)*Math.pow(S.y,2)-Math.pow(v,2)*Math.pow(S.x,2),k=Math.pow(g,2)*Math.pow(S.y,2)+Math.pow(v,2)*Math.pow(S.x,2),$=E/k;$=$<0?0:$;var T=(a!==o?1:-1)*h($),M={x:T*(g*S.y/v),y:T*(-(v*S.x)/g)},R={x:d(x)*M.x-f(x)*M.y+(e+s)/2,y:f(x)*M.x+d(x)*M.y+(t+l)/2},N={x:(S.x-M.x)/g,y:(S.y-M.y)/v},D=Ek({x:1,y:0},N),F={x:(-S.x-M.x)/g,y:(-S.y-M.y)/v},V=Ek(N,F);!o&&V>0?V-=2*p:o&&V<0&&(V+=2*p),V%=2*p;var z=D+V*c,B=g*d(z),G=v*f(z),Y={x:d(x)*B-f(x)*G+R.x,y:f(x)*B+d(x)*G+R.y};return Y}function Cve(e,t,n,r,i,a,o,s,l,c,u){var f,d=u.bbox,h=d===void 0?!0:d,p=u.length,g=p===void 0?!0:p,v=u.sampleSize,y=v===void 0?30:v,x=typeof c=="number",C=e,_=t,S=0,O=[C,_,S],E=[C,_],k=0,$={x:0,y:0},T=[{x:C,y:_}];x&&c<=0&&($={x:C,y:_});for(var M=0;M<=y;M+=1){if(k=M/y,f=bve(e,t,n,r,i,a,o,s,l,k),C=f.x,_=f.y,h&&T.push({x:C,y:_}),g&&(S+=sa(E,[C,_])),E=[C,_],x&&S>=c&&c>O[2]){var R=(S-c)/(S-O[2]);$={x:E[0]*(1-R)+O[0]*R,y:E[1]*(1-R)+O[1]*R}}O=[C,_,S]}return x&&c>=S&&($={x:s,y:l}),{length:S,point:$,min:{x:Math.min.apply(null,T.map(function(N){return N.x})),y:Math.min.apply(null,T.map(function(N){return N.y}))},max:{x:Math.max.apply(null,T.map(function(N){return N.x})),y:Math.max.apply(null,T.map(function(N){return N.y}))}}}function wve(e,t,n,r,i,a,o,s,l){var c=1-l;return{x:Math.pow(c,3)*e+3*Math.pow(c,2)*l*n+3*c*Math.pow(l,2)*i+Math.pow(l,3)*o,y:Math.pow(c,3)*t+3*Math.pow(c,2)*l*r+3*c*Math.pow(l,2)*a+Math.pow(l,3)*s}}function bj(e,t,n,r,i,a,o,s,l,c){var u,f=c.bbox,d=f===void 0?!0:f,h=c.length,p=h===void 0?!0:h,g=c.sampleSize,v=g===void 0?10:g,y=typeof l=="number",x=e,C=t,_=0,S=[x,C,_],O=[x,C],E=0,k={x:0,y:0},$=[{x,y:C}];y&&l<=0&&(k={x,y:C});for(var T=0;T<=v;T+=1){if(E=T/v,u=wve(e,t,n,r,i,a,o,s,E),x=u.x,C=u.y,d&&$.push({x,y:C}),p&&(_+=sa(O,[x,C])),O=[x,C],y&&_>=l&&l>S[2]){var M=(_-l)/(_-S[2]);k={x:O[0]*(1-M)+S[0]*M,y:O[1]*(1-M)+S[1]*M}}S=[x,C,_]}return y&&l>=_&&(k={x:o,y:s}
30),{length:_,point:k,min:{x:Math.min.apply(null,$.map(function(R){return R.x})),y:Math.min.apply(null,$.map(function(R){return R.y}))},max:{x:Math.max.apply(null,$.map(function(R){return R.x})),y:Math.max.apply(null,$.map(function(R){return R.y}))}}}function _ve(e,t,n,r,i,a,o){var s=1-o;return{x:Math.pow(s,2)*e+2*s*o*n+Math.pow(o,2)*i,y:Math.pow(s,2)*t+2*s*o*r+Math.pow(o,2)*a}}function Sve(e,t,n,r,i,a,o,s){var l,c=s.bbox,u=c===void 0?!0:c,f=s.length,d=f===void 0?!0:f,h=s.sampleSize,p=h===void 0?10:h,g=typeof o=="number",v=e,y=t,x=0,C=[v,y,x],_=[v,y],S=0,O={x:0,y:0},E=[{x:v,y}];g&&o<=0&&(O={x:v,y});for(var k=0;k<=p;k+=1){if(S=k/p,l=_ve(e,t,n,r,i,a,S),v=l.x,y=l.y,u&&E.push({x:v,y}),d&&(x+=sa(_,[v,y])),_=[v,y],g&&x>=o&&o>C[2]){var $=(x-o)/(x-C[2]);O={x:_[0]*(1-$)+C[0]*$,y:_[1]*(1-$)+C[1]*$}}C=[v,y,x]}return g&&o>=x&&(O={x:i,y:a}),{length:x,point:O,min:{x:Math.min.apply(null,E.map(function(T){return T.x})),y:Math.min.apply(null,E.map(function(T){return T.y}))},max:{x:Math.max.apply(null,E.map(function(T){return T.x})),y:Math.max.apply(null,E.map(function(T){return T.y}))}}}function Cj(e,t,n){for(var r,i,a,o,s,l,c=hm(e),u=typeof t=="number",f,d=[],h,p=0,g=0,v=0,y=0,x,C=[],_=[],S=0,O={x:0,y:0},E=O,k=O,$=O,T=0,M=0,R=c.length;M<R;M+=1)x=c[M],h=x[0],f=h==="M",d=f?d:[p,g].concat(x.slice(1)),f?(v=x[1],y=x[2],O={x:v,y},E=O,S=0,u&&t<.001&&($=O)):h==="L"?(r=Q6(d[0],d[1],d[2],d[3],(t||0)-T),S=r.length,O=r.min,E=r.max,k=r.point):h==="A"?(i=Cve(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],(t||0)-T,n||{}),S=i.length,O=i.min,E=i.max,k=i.point):h==="C"?(a=bj(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],(t||0)-T,n||{}),S=a.length,O=a.min,E=a.max,k=a.point):h==="Q"?(o=Sve(d[0],d[1],d[2],d[3],d[4],d[5],(t||0)-T,n||{}),S=o.length,O=o.min,E=o.max,k=o.point):h==="Z"&&(d=[p,g,v,y],s=Q6(d[0],d[1],d[2],d[3],(t||0)-T),S=s.length,O=s.min,E=s.max,k=s.point),u&&T<t&&T+S>=t&&($=k),_.push(E),C.push(O),T+=S,l=h!=="Z"?x.slice(-2):[v,y],p=l[0],g=l[1];return u&&t>=T&&($={x:p,y:g}),{length:T,point:$,min:{x:Math.min.apply(null,C.map(function(N){return N.x})),y:Math.min.apply(null,C.map(function(N){return N.y}))},max:{x:Math.max.apply(null,_.map(function(N){return N.x})),y:Math.max.apply(null,_.map(function(N){return N.y}))}}}function Ove(e,t){return Cj(e,void 0,Ne(Ne({},t),{bbox:!1,length:!0})).length}function Eve(e){var t=e.length,n=t-1;return e.map(function(r,i){return e.map(function(a,o){var s=i+o,l;return o===0||e[s]&&e[s][0]==="M"?(l=e[s],["M"].concat(l.slice(-2))):(s>=t&&(s-=n),e[s])})})}function kve(e,t){var n=e.length-1,r=[],i=0,a=0,o=Eve(e);return o.forEach(function(s,l){e.slice(1).forEach(function(c,u){a+=sa(e[(l+u)%n].slice(-2),t[u%n].slice(-2))}),r[l]=a,a=0}),i=r.indexOf(Math.min.apply(null,r)),o[i]}function Ave(e,t,n,r,i,a,o,s){return 3*((s-t)*(n+i)-(o-e)*(r+a)+r*(e-i)-n*(t-a)+s*(i+e/3)-o*(a+t/3))/20}function $ve(e){var t=0,n=0,r=0;return J6(e).map(function(i){var a;switch(i[0]){case"M":return t=i[1],n=i[2],0;default:var o=i.slice(1),s=o[0],l=o[1],c=o[2],u=o[3],f=o[4],d=o[5];return r=Ave(t,n,s,l,c,u,f,d),a=i.slice(-2),t=a[0],n=a[1],r}}).reduce(function(i,a){return i+a},0)}function kk(e){return $ve(e)>=0}function Tve(e,t,n){return Cj(e,t,Ne(Ne({},n),{bbox:!1,length:!0})).point}function Pve(e,t){t===void 0&&(t=.5);var n=e.slice(0,2),r=e.slice(2,4),i=e.slice(4,6),a=e.slice(6,8),o=dc(n,r,t),s=dc(r,i,t),l=dc(i,a,t),c=dc(o,s,t),u=dc(s,l,t),f=dc(c,u,t);return[["C"].concat(o,c,f),["C"].concat(u,l,a)]}function Ak(e){return e.map(function(t,n,r){var i=n&&r[n-1].slice(-2).concat(t.slice(1)),a=n?bj(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],{bbox:!1}).length:0,o;return n?o=a?Pve(i):[t,t]:o=[t],{s:t,ss:o,l:a}})}function wj(e,t,n){var r=Ak(e),i=Ak(t),a=r.length,o=i.length,s=r.filter(function(v){return v.l}).length,l=i.filter(function(v){return v.l}).length,c=r.filter(function(v){return v.l}).reduce(function(v,y){var x=y.l;return v+x},0)/s||0,u=i.filter(function(v){return v.l}).reduce(function(v,y){var x=y.l;return v+x},0)/l||0,f=n||Math.max(a,o),d=[c,u],h=[f-a,f-o],p=0,g=[r,i].map(function(v,y){return v.l===f?v.map(function(x){return x.s}):v.map(function(x,C){return p=C&&h[y]&&x.l>=d[y],h[y]-=p?1:0,p?x.ss:[x.s]}).flat()});return g[0].length===g[1].length?g:wj(g[0],g[1],f)}function $k(e){var t=document.createElement("div");t.innerHTML=e;var n=t.childNodes[0];return n&&t.contains(n)&&t.removeChild(n),n}function Nn(e,t){if(e!==null)return{type:"column",value:e,field:t}}function Rh(e,t){const n=Nn(e,t);return Object.assign(Object.assign({},n),{inferred:!0}
30)}function pm(e,t){if(e!==null)return{type:"column",value:e,field:t,visual:!0}}function Mve(e,t){const n=Nn(e,t);return Object.assign(Object.assign({},n),{constant:!1})}function Oc(e,t){const n=[];for(const r of e)n[r]=t;return n}function on(e,t){const n=e[t];if(!n)return[null,null];const{value:r,field:i=null}=n;return[r,i]}function gm(e,...t){for(const n of t)if(typeof n=="string"){const[r,i]=on(e,n);if(r!==null)return[r,i]}else return[n,null];return[null,null]}function $p(e){return e instanceof Date?!1:typeof e=="object"}const Tp=()=>(e,t)=>{const{encode:n}=t,{y1:r}=n;return r!==void 0?[e,t]:[e,_e({},t,{encode:{y1:Rh(Oc(e,0))}})]};Tp.props={};function pr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Nve(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Sl(e){let t,n,r;e.length!==2?(t=pr,n=(s,l)=>pr(e(s),l),r=(s,l)=>e(s)-l):(t=e===pr||e===Nve?e:Ive,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;n(s[f],l)<0?c=f+1:u=f}while(c<u)}return c}function a(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;n(s[f],l)<=0?c=f+1:u=f}while(c<u)}return c}function o(s,l,c=0,u=s.length){const f=i(s,l,c,u-1);return f>c&&r(s[f-1],l)>-r(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function Ive(){return 0}function e7(e){return e===null?NaN:+e}function*Lve(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const _j=Sl(pr),Rve=_j.right,jve=_j.left,Dve=Sl(e7).center;function Sj(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function Fve(e,t){let n=0,r,i=0,a=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of e)(s=t(s,++o,e))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function Oj(e,t){const n=Fve(e,t);return n&&Math.sqrt(n)}function Ol(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class Ku{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const a=n[i],o=t+a,s=Math.abs(t)<Math.abs(a)?t-(o-a):a-(o-t);s&&(n[r++]=s),t=o}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,a,o=0;if(n>0){for(o=t[--n];n>0&&(r=o,i=t[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&t[n-1]<0||a>0&&t[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}let Bve=class extends Map{constructor(t,n=Wve){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Tk(this,t))}has(t){return super.has(Tk(this,t))}set(t,n){return super.set(zve(this,t),n)}delete(t){return super.delete(Vve(this,t))}};function Tk({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function zve({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Vve({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Wve(e){return e!==null&&typeof e=="object"?e.valueOf():e}function jh(e){return e}function jn(e,...t){return D3(e,jh,jh,t)}function Qx(e,...t){return D3(e,Array.from,jh,t)}function eb(e,t,...n){return D3(e,jh,t,n)}function tb(e,t,...n){return D3(e,Array.from,t,n)}function D3(e,t,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new Bve,l=r[o++];let c=-1;for(const u of a){const f=l(u,++c,a),d=s.get(f);d?d.push(u):s.set(f,[u])}for(const[u,f]of s)s.set(u,i(f,o));return t(s)}(e,0)}function Hve(e,t){return Array.from(t,n=>e[n])}function zo(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&n.length!==2||t.length>1){const r=Uint32Array.from(e,(i,a)=>a);return t.length>1?(t=t.map(i=>e.map(i)),r.sort((i,a)=>{for(const o of t){const s=Dh(o[i],o[a]);if(s)return s}})):(n=e.map(n),r.sort((i,a)=>Dh(n[i],n[a]))),Hve(e,r)}return e.sort(Ej(n))}function Ej(e=pr){if(e===pr)return Dh;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Dh(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function Gve(e,t,n){return(t.length!==2?zo(eb(e,t,n),([r,i],[a,o])=>pr(i,o)||pr(r,a)):zo(jn(e,n),([r,i],[a,o])=>t(i,o)||pr(r,a))).map(([r])=>r)}var Uve=Array.prototype,Yve=Uve.slice;function b9(e){return()=>e}const Xve=Math.sqrt(50),qve=Math.sqrt(10),Zve=Math.sqrt(2);function mm(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=Xve?10:a>=qve?5:a>=Zve?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&
30++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?mm(e,t,n*2):[s,l,c]}function Kve(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?mm(t,e,n):mm(e,t,n);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}function Fh(e,t,n){return t=+t,e=+e,n=+n,mm(e,t,n)[2]}function _Ye(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Fh(t,e,n):Fh(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Jve(e,t,n){let r;for(;;){const i=Fh(e,t,n);if(i===r||i===0||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function Qve(e){return Math.max(1,Math.ceil(Math.log(Sj(e))/Math.LN2)+1)}function eye(){var e=jh,t=Ol,n=Qve;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,s,l,c=new Array(o);for(a=0;a<o;++a)c[a]=e(i[a],a,i);var u=t(c),f=u[0],d=u[1],h=n(c,f,d);if(!Array.isArray(h)){const C=d,_=+h;if(t===Ol&&([f,d]=Jve(f,d,_)),h=Kve(f,d,_),h[0]<=f&&(l=Fh(f,d,_)),h[h.length-1]>=d)if(C>=d&&t===Ol){const S=Fh(f,d,_);isFinite(S)&&(S>0?d=(Math.floor(d/S)+1)*S:S<0&&(d=(Math.ceil(d*-S)+1)/-S))}else h.pop()}for(var p=h.length,g=0,v=p;h[g]<=f;)++g;for(;h[v-1]>d;)--v;(g||v<p)&&(h=h.slice(g,v),p=v-g);var y=new Array(p+1),x;for(a=0;a<=p;++a)x=y[a]=[],x.x0=a>0?h[a-1]:f,x.x1=a<p?h[a]:d;if(isFinite(l)){if(l>0)for(a=0;a<o;++a)(s=c[a])!=null&&f<=s&&s<=d&&y[Math.min(p,Math.floor((s-f)/l))].push(i[a]);else if(l<0){for(a=0;a<o;++a)if((s=c[a])!=null&&f<=s&&s<=d){const C=Math.floor((f-s)*l);y[Math.min(p,C+(h[C]<=s))].push(i[a])}}}else for(a=0;a<o;++a)(s=c[a])!=null&&f<=s&&s<=d&&y[Rve(h,s,0,p)].push(i[a]);return y}return r.value=function(i){return arguments.length?(e=typeof i=="function"?i:b9(i),r):e},r.domain=function(i){return arguments.length?(t=typeof i=="function"?i:b9([i[0],i[1]]),r):t},r.thresholds=function(i){return arguments.length?(n=typeof i=="function"?i:b9(Array.isArray(i)?Yve.call(i):i),r):n},r}function bn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Pd(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);return r}function $a(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Pp(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function nb(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Dh:Ej(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),h=Math.max(n,Math.floor(t-c*f/l+d)),p=Math.min(r,Math.floor(t+(l-c)*f/l+d));nb(e,t,h,p,i)}const a=e[t];let o=n,s=r;for(x1(e,n,t),i(e[r],a)>0&&x1(e,n,r);o<s;){for(x1(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?x1(e,n,s):(++s,x1(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function x1(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function tye(e,t=pr){let n,r=!1;if(t.length===1){let i;for(const a of e){const o=t(a);(r?pr(o,i)>0:pr(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of e)(r?t(i,n)>0:t(i,i)===0)&&(n=i,r=!0);return n}function F3(e,t,n){if(e=Float64Array.from(Lve(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return $a(e);if(t>=1)return bn(e);var r,i=(r-1)*t,a=Math.floor(i),o=bn(nb(e,a).subarray(0,a+1)),s=$a(e.subarray(a+1));return o+(s-o)*(i-a)}}function nye(e,t,n=e7){if(!isNaN(t=+t)){if(r=Float64Array.from(e,(s,l)=>e7(n(e[l],l,e))),t<=0)return Pp(r);if(t>=1)return Pd(r);var r,i=Uint32Array.from(e,(s,l)=>l),a=r.length-1,o=Math.floor(a*t);return nb(i,o,0,a,(s,l)=>Dh(r[s],r[l])),o=tye(i.subarray(0,o+1),s=>r[s]),o>=0?o:-1}}function rye(e,t,n){const r=Sj(e),i=Oj(e);
vendor: 4,729 bytes, line 30
30return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1}function Bh(e,t){let n=0,r=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function rb(e,t){return F3(e,.5,t)}function iye(e,t){return nye(e,.5,t)}function*aye(e){for(const t of e)yield*t}function kj(e){return Array.from(aye(e))}function T0(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function io(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function ad(e,...t){return t.reduce((n,r)=>i=>n(r(i)),e)}function vm(e,t){return t-e?n=>(n-e)/(t-e):n=>.5}function oye(e,t){const n=t<e?t:e,r=e>t?e:t;return i=>Math.min(Math.max(n,i),r)}function ib(e,t,n,r,i){let a=n||0,o=r||e.length;const s=i||(l=>l);for(;a<o;){const l=Math.floor((a+o)/2);s(e[l])>t?o=l:a=l+1}return a}const t7=Math.sqrt(50),n7=Math.sqrt(10),r7=Math.sqrt(2);function kg(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/10**i;return i>=0?(a>=t7?10:a>=n7?5:a>=r7?2:1)*10**i:-(10**-i)/(a>=t7?10:a>=n7?5:a>=r7?2:1)}function Pk(e,t,n){const r=Math.abs(t-e)/Math.max(0,n);let i=10**Math.floor(Math.log(r)/Math.LN10);const a=r/i;return a>=t7?i*=10:a>=n7?i*=5:a>=r7&&(i*=2),t<e?-i:i}const Aj=(e,t,n=5)=>{const r=[e,t];let i=0,a=r.length-1,o=r[i],s=r[a],l;return s<o&&([o,s]=[s,o],[i,a]=[a,i]),l=kg(o,s,n),l>0?(o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l,l=kg(o,s,n)):l<0&&(o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l,l=kg(o,s,n)),l>0?(r[i]=Math.floor(o/l)*l,r[a]=Math.ceil(s/l)*l):l<0&&(r[i]=Math.ceil(o*l)/l,r[a]=Math.floor(s*l)/l),r},zh=1e3,Vh=zh*60,Wh=Vh*60,Ju=Wh*24,ph=Ju*7,$j=Ju*30,Tj=Ju*365;function Ri(e,t,n,r){const i=(c,u)=>{const f=h=>r(h)%u===0;let d=u;for(;d&&!f(c);)n(c,-1),d-=1;return c},a=(c,u)=>{u&&i(c,u),t(c)},o=(c,u)=>{const f=new Date(+c);return a(f,u),f},s=(c,u)=>{const f=new Date(+c-1);return a(f,u),n(f,u),a(f),f};return{ceil:s,floor:o,range:(c,u,f,d)=>{const h=[],p=Math.floor(f),g=d?s(c,f):s(c);for(let v=g;v<u;n(v,p),a(v))h.push(new Date(+v));return h},duration:e}}const sye=Ri(1,e=>e,(e,t=1)=>{e.setTime(+e+t)},e=>e.getTime()),lye=Ri(zh,e=>{e.setMilliseconds(0)},(e,t=1)=>{e.setTime(+e+zh*t)},e=>e.getSeconds()),cye=Ri(Vh,e=>{e.setSeconds(0,0)},(e,t=1)=>{e.setTime(+e+Vh*t)},e=>e.getMinutes()),uye=Ri(Wh,e=>{e.setMinutes(0,0,0)},(e,t=1)=>{e.setTime(+e+Wh*t)},e=>e.getHours()),fye=Ri(Ju,e=>{e.setHours(0,0,0,0)},(e,t=1)=>{e.setTime(+e+Ju*t)},e=>e.getDate()-1),Pj=Ri($j,e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t=1)=>{const n=e.getMonth();e.setMonth(n+t)},e=>e.getMonth()),dye=Ri(ph,e=>{e.setDate(e.getDate()-e.getDay()%7),e.setHours(0,0,0,0)},(e,t=1)=>{e.setDate(e.getDate()+7*t)},e=>{const t=Pj.floor(e),n=new Date(+e);return Math.floor((+n-+t)/ph)}),hye=Ri(Tj,e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t=1)=>{const n=e.getFullYear();e.setFullYear(n+t)},e=>e.getFullYear()),Mj={millisecond:sye,second:lye,minute:cye,hour:uye,day:fye,week:dye,month:Pj,year:hye},pye=Ri(1,e=>e,(e,t=1)=>{e.setTime(+e+t)},e=>e.getTime()),gye=Ri(zh,e=>{e.setUTCMilliseconds(0)},(e,t=1)=>{e.setTime(+e+zh*t)},e=>e.getUTCSeconds()),mye=Ri(Vh,e=>{e.setUTCSeconds(0,0)},(e,t=1)=>{e.setTime(+e+Vh*t)},e=>e.getUTCMinutes()),vye=Ri(Wh,e=>{e.setUTCMinutes(0,0,0)},(e,t=1)=>{e.setTime(+e+Wh*t)},e=>e.getUTCHours()),yye=Ri(Ju,e=>{e.setUTCHours(0,0,0,0)},(e,t=1)=>{e.setTime(+e+Ju*t)},e=>e.getUTCDate()-1),Nj=Ri($j,e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t=1)=>{const n=e.getUTCMonth();e.setUTCMonth(n+t)},e=>e.getUTCMonth()),xye=Ri(ph,e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7)%7),e.setUTCHours(0,0,0,0)},(e,t=1)=>{e.setTime(+e+ph*t)},e=>{const t=Nj.floor(e),n=new Date(+e);return Math.floor((+n-+t)/ph)}),bye=Ri(Tj,e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t=1)=>{const n=e.getUTCFullYear();e.setUTCFullYear(n+t)},e=>e.getUTCFullYear()),Ij={millisecond:pye,second:gye,minute:mye,hour:vye,day:yye,week:xye,month:Nj,year:bye};function Cye(e){const t=e?Ij:Mj,{year:n,month:r,week:i,day:a,hour:o,minute:s,second:l,millisecond:c}=t;return{tickIntervals:[[l,1],[l,5],[l,15],[l,30],[s,1],[s,5],[s,15],[s,30],[o,1],[o,3],[o,6],[o,12],[a,1],[a,2],[i,1],[r,1],[r,3],[n,1]],year:n,millisecond:c}}function Lj(e,t,n,r,i){const a=+e,o=+t,{tickIntervals:s,year:l,millisecond:c}=Cye(i),u=([v,y])=>v.duration*y,f=r?(o-a)/r:n||5,d=r||(o-a)/f,h=s.length,p=ib(s,d,0,h,u);let g;if(p===h){const v=Pk(a/l.duration,o/l.duration,f);g=[l,v]}else if(p){const v=d/u(s[p-1])<u(s[p])/d,[y,x]=v?s[p-1]:s[p],C=r?Math.ceil(r/y.duration):x;g=[y,C]}else{const v=Math.max(Pk(a,o,f),1);g=[c,v]}return g}const wye=(e,t,n,r,i)=>{const a=e>
30t,o=a?t:e,s=a?e:t,[l,c]=Lj(o,s,n,r,i),u=[l.floor(o,c),l.ceil(s,c)];return a?u.reverse():u};function ym(e){return!Rn(e)&&!r3e(e)&&!Number.isNaN(e)}const Rj=e=>t=>-e(-t),ab=(e,t)=>{const n=Math.log(e),r=e===Math.E?Math.log:e===10?Math.log10:e===2?Math.log2:i=>Math.log(i)/n;return t?Rj(r):r},ob=(e,t)=>{const n=e===Math.E?Math.exp:r=>e**r;return t?Rj(n):n},_ye=(e,t,n,r)=>{const i=e<0,a=ab(r,i),o=ob(r,i),s=e>t,l=s?t:e,c=s?e:t,u=[o(Math.floor(a(l))),o(Math.ceil(a(c)))];return s?u.reverse():u},Sye=e=>t=>{const n=e(t);return Jn(n)?Math.round(n):n};function Oye(e,t){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();const[r]=this.chooseTransforms();this.composeOutput(r,this.chooseClamp(r))},n.prototype.initRange=function(){const{interpolator:r}=this.options;this.options.range=e(r)},n.prototype.composeOutput=function(r,i){const{domain:a,interpolator:o,round:s}=this.getOptions(),l=t(a.map(r)),c=s?Sye(o):o;this.output=ad(c,l,i,r)},n.prototype.invert=void 0}}var C9={exports:{}},w9,Mk;function Eye(){return Mk||(Mk=1,w9={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),w9}var _9={exports:{}},S9,Nk;function kye(){return Nk||(Nk=1,S9=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")}),S9}var Ik;
30function Aye(){if(Ik)return _9.exports;Ik=1;var e=kye(),t=Array.prototype.concat,n=Array.prototype.slice,r=_9.exports=function(a){for(var o=[],s=0,l=a.length;s<l;s++){var c=a[s];e(c)?o=t.call(o,n.call(c)):o.push(c)}return o};return r.wrap=function(i){return function(){return i(r(arguments))}},_9.exports}var Lk;function $ye(){if(Lk)return C9.exports;Lk=1;var e=Eye(),t=Aye(),n=Object.hasOwnProperty,r=Object.create(null);for(var i in e)n.call(e,i)&&(r[e[i]]=i);var a=C9.exports={to:{},get:{}};a.get=function(l){var c=l.substring(0,3).toLowerCase(),u,f;switch(c){case"hsl":u=a.get.hsl(l),f="hsl";break;case"hwb":u=a.get.hwb(l),f="hwb";break;default:u=a.get.rgb(l),f="rgb";break}return u?{model:f,value:u}:null},a.get.rgb=function(l){if(!l)return null;var c=/^#([a-f0-9]{3,4})$/i,u=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,f=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,d=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,h=/^(\w+)$/,p=[0,0,0,1],g,v,y;if(g=l.match(u)){for(y=g[2],g=g[1],v=0;v<3;v++){var x=v*2;p[v]=parseInt(g.slice(x,x+2),16)}y&&(p[3]=parseInt(y,16)/255)}else if(g=l.match(c)){for(g=g[1],y=g[3],v=0;v<3;v++)p[v]=parseInt(g[v]+g[v],16);y&&(p[3]=parseInt(y+y,16)/255)}else if(g=l.match(f)){for(v=0;v<3;v++)p[v]=parseInt(g[v+1],0);g[4]&&(g[5]?p[3]=parseFloat(g[4])*.01:p[3]=parseFloat(g[4]))}else if(g=l.match(d)){for(v=0;v<3;v++)p[v]=Math.round(parseFloat(g[v+1])*2.55);g[4]&&(g[5]?p[3]=parseFloat(g[4])*.01:p[3]=parseFloat(g[4]))}else return(g=l.match(h))?g[1]==="transparent"?[0,0,0,0]:n.call(e,g[1])?(p=e[g[1]],p[3]=1,p):null:null;for(v=0;v<3;v++)p[v]=o(p[v],0,255);return p[3]=o(p[3],0,1),p},a.get.hsl=function(l){if(!l)return null;var c=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,u=l.match(c);if(u){var f=parseFloat(u[4]),d=(parseFloat(u[1])%360+360)%360,h=o(parseFloat(u[2]),0,100),p=o(parseFloat(u[3]),0,100),g=o(isNaN(f)?1:f,0,1);return[d,h,p,g]}return null},a.get.hwb=function(l){if(!l)return null;var c=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,u=l.match(c);if(u){var f=parseFloat(u[4]),d=(parseFloat(u[1])%360+360)%360,h=o(parseFloat(u[2]),0,100),p=o(parseFloat(u[3]),0,100),g=o(isNaN(f)?1:f,0,1);return[d,h,p,g]}return null},a.to.hex=function(){var l=t(arguments);return"#"+s(l[0])+s(l[1])+s(l[2])+(l[3]<1?s(Math.round(l[3]*255)):"")},a.to.rgb=function(){var l=t(arguments);return l.length<4||l[3]===1?"rgb("+Math.round(l[0])+", "+Math.round(l[1])+", "+Math.round(l[2])+")":"rgba("+Math.round(l[0])+", "+Math.round(l[1])+", "+Math.round(l[2])+", "+l[3]+")"},a.to.rgb.percent=function(){var l=t(arguments),c=Math.round(l[0]/255*100),u=Math.round(l[1]/255*100),f=Math.round(l[2]/255*100);return l.length<4||l[3]===1?"rgb("+c+"%, "+u+"%, "+f+"%)":"rgba("+c+"%, "+u+"%, "+f+"%, "+l[3]+")"},a.to.hsl=function(){var l=t(arguments);return l.length<4||l[3]===1?"hsl("+l[0]+", "+l[1]+"%, "+l[2]+"%)":"hsla("+l[0]+", "+l[1]+"%, "+l[2]+"%, "+l[3]+")"},a.to.hwb=function(){var l=t(arguments),c="";return l.length>=4&&l[3]!==1&&(c=", "+l[3]),"hwb("+l[0]+", "+l[1]+"%, "+l[2]+"%"+c+")"},a.to.keyword=function(l){return r[l.slice(0,3)]};function o(l,c,u){return Math.min(Math.max(c,l),u)}function s(l){var c=Math.round(l).toString(16).toUpperCase();return c.length<2?"0"+c:c}return C9.exports}var Tye=$ye();const Pye=xp(Tye);function O9(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Mye(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100,i=e[3];if(n===0)return[r*255,r*255,r*255,i];const a=r<.5?r*(1+n):r+n-r*n,o=2*r-a,s=O9(o,a,t+1/3),l=O9(o,a,t),c=O9(o,a,t-1/3);return[s*255,l*255,c*255,i]}function Rk(e){const t=Pye.get(e);if(!t)return null;const{model:n,value:r}=t;return n==="rgb"?r:n==="hsl"?Mye(r):null}const od=(e,t)=>n=>e*(1-n)+t*n,Nye=(e,t)=>{const n=Rk(e),r=Rk(t);return n===null||r===null?n?()=>e:()=>t:i=>{const a=new Array(4);for(let u=0;u<4;u+=1){const f=n[u],d=r[u];a[u]=f*(1-i)+d*i}const[o,s,l,c]=a;return`rgba(${Math.round(o)}, ${Math.round(s)}, ${Math.round(l)}, ${c})`}},Mp=(e,t)=>typeof e=="number"&&typeof t=="number"?od(e,t):typeof e=="string"&&typeof t=="string"?Nye(e,t):()=>e,Iye=(e,t)=>{const n=od(e,t);return r=>Math.round(n(r))};function Lye(e,t){const{second:n,minute:r,hour:i,day:a,week:o,month:s,year:l}=t;return n.floor(e)<e?".SSS":r.floor(e)<e?":ss":i.floor(e)<e?"hh:mm":a.floor(e)<e?"hh A":s.floor(e)<e?o.floor(e)<e?"MMM DD":"ddd DD":l.floor(e)<e?"MMMM":"YYYY"}function jk({map:e,initKey:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Rye({map:e,initKey:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function jye({map:e,initKey:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Dye(e){return typeof e=="object"?e.valueOf():e}class Dk extends Map{constructor(t){if(super(),this.map=new Map,this.initKey=Dye,t!==null)for(const[n,r]of t)this.set(n,r)}get(t){return super.get(jk({map:this.map,initKey:this.initKey},t))}has(t){return super.has(jk({map:this.map,initKey:this.initKey},t))}set(t,n){return super.set(Rye({map:this.map,initKey:this.initKey},t),n)}delete(t){return super.delete(jye({map:this.map,initKey:this.initKey},t))}}let Np=class{constructor(t){this.options=_e({},this.getDefaultOptions()),this.update(t)}getOptions(){return this.options}update(t={}){this.options=_e({},this.options,t),this.rescale(t)}rescale(t){}};const B3=Symbol("defaultUnknown");function Fk(e,t,n){for(let r=0;r<t.length;r+=1)e.has(t[r])||e.set(n(t[r]),r)}function Bk(e){const{value:t,from:n,to:r,mapper:i,notFoundReturn:a}=e;let o=i.get(t);if(o===void 0){if(a!==B3)return a;o=n.push(t)-1,i.set(t,o)}return r[o%r.length]}function zk(e){return e instanceof Date?t=>`${t}`:typeof e=="object"?t=>JSON.stringify(t):t=>t}let jj=class Dj extends Np{getDefaultOptions(){return{domain:[],range:[],unknown:B3}}constructor(t){super(t)}map(t){return this.domainIndexMap.size===0&&Fk(this.domainIndexMap,this.getDomain(),this.domainKey
30),Bk({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return this.rangeIndexMap.size===0&&Fk(this.rangeIndexMap,this.getRange(),this.rangeKey),Bk({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){const[n]=this.options.domain,[r]=this.options.range;if(this.domainKey=zk(n),this.rangeKey=zk(r),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!t||t.range)&&this.rangeIndexMap.clear(),(!t||t.domain||t.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new Dj(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:t,compare:n}=this.options;return this.sortedDomain=n?[...t].sort(n):t,this.sortedDomain}};function Fye(e){const t=Math.min(...e);return e.map(n=>n/t)}function Bye(e,t){const n=e.length,r=t-n;return r>0?[...e,...new Array(r).fill(1)]:r<0?e.slice(0,t):e}function zye(e){return Math.round(e*1e12)/1e12}function Vye(e){const{domain:t,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:s}=e,l=t.length,c=Bye(a,l),[u,f]=n,d=f-u,h=2/l*r+1-1/l*i,p=d/h,g=p*i/l,v=p-l*g,y=Fye(c),x=y.reduce((R,N)=>R+N),C=v/x,_=new Dk(t.map((R,N)=>{const D=y[N]*C;return[R,o?Math.floor(D):D]})),S=new Dk(t.map((R,N)=>{const F=y[N]*C+g;return[R,o?Math.floor(F):F]})),O=Array.from(S.values()).reduce((R,N)=>R+N),k=(d-(O-O/l*i))*s,$=u+k;let T=o?Math.round($):$;const M=new Array(l);for(let R=0;R<l;R+=1){M[R]=zye(T);const N=t[R];T+=S.get(N)}return{valueBandWidth:_,valueStep:S,adjustedRange:M}}function Wye(e){var t;const{domain:n}=e,r=n.length;if(r===0)return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};if(!!(!((t=e.flex)===null||t===void 0)&&t.length))return Vye(e);const{range:a,paddingOuter:o,paddingInner:s,round:l,align:c}=e;let u,f,d=a[0];const p=a[1]-d,g=o*2,v=r-s;u=p/Math.max(1,g+v),l&&(u=Math.floor(u)),d+=(p-u*(r-s))*c,f=u*(1-s),l&&(d=Math.round(d),f=Math.round(f));const y=new Array(r).fill(0).map((x,C)=>d+C*u);return{valueStep:u,valueBandWidth:f,adjustedRange:y}}let sd=class Fj extends jj{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:B3,flex:[]}}constructor(t){super(t)}clone(){return new Fj(this.options)}getStep(t){return this.valueStep===void 0?1:typeof this.valueStep=="number"?this.valueStep:t===void 0?Array.from(this.valueStep.values())[0]:this.valueStep.get(t)}getBandWidth(t){return this.valueBandWidth===void 0?1:typeof this.valueBandWidth=="number"?this.valueBandWidth:t===void 0?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(t)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:t,paddingInner:n}=this.options;return t>0?t:n}getPaddingOuter(){const{padding:t,paddingOuter:n}=this.options;return t>0?t:n}rescale(){super.rescale();const{align:t,domain:n,range:r,round:i,flex:a}=this.options,{adjustedRange:o,valueBandWidth:s,valueStep:l}=Wye({align:t,range:r,round:i,flex:a,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:n});this.valueStep=l,this.valueBandWidth=s,this.adjustedRange=o}};const Qu=(e,t,n)=>{let r,i,a=e,o=t;if(a===o&&n>0)return[a];let s=kg(a,o,n);if(s===0||!Number.isFinite(s))return[];if(s>0){a=Math.ceil(a/s),o=Math.floor(o/s),i=new Array(r=Math.ceil(o-a+1));for(let l=0;l<r;l+=1)i[l]=(a+l)*s}else{s=-s,a=Math.ceil(a*s),o=Math.floor(o*s),i=new Array(r=Math.ceil(o-a+1));for(let l=0;l<r;l+=1)i[l]=(a+l)/s}return i};let sb=class Bj extends Np{getDefaultOptions(){return{range:[0],domain:[0,1],unknown:void 0,tickCount:5,tickMethod:Qu}}map(t){const[n]=this.options.range;return n!==void 0?n:this.options.unknown}invert(t){const[n]=this.options.range;return t===n&&n!==void 0?this.options.domain:[]}getTicks(){const{tickMethod:t,domain:n,tickCount:r}=this.options,[i,a]=n;return!Jn(i)||!Jn(a)?[]:t(i,a,r)}clone(){return new Bj(this.options)}};function b1(e){return Math.abs(e)<1e-14?e:parseFloat(e.toFixed(14))}const Hye=[1,5,2,2.5,4,3],Vk=Number.EPSILON*100;function Gye(e,t){return(e%t+t)%t}function Uye(e){return Math.round(e*1e12)/1e12}function Yye(e,t,n,r,i,a){const o=Lh(t),s=KR(t,e);let l=0;const c=Gye(r,a);return(c<Vk||a-c<Vk)&&r<=0&&i>=0&&(l=1),1-s/(o-1)-n+l}function Xye(e,t,n){const r=Lh(t);return 1-KR(t,e)/(r-1)-n+1}function qye(e,t,n,r,i,a){const o=(e-1)/(a-i),s=(t-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function Zye(e,t){return e>=t?2-(e-1)/(t-1):1}function Kye(e,t,n,r){const i=t-e;return 1-.5*((t-r)**2+(e-n)**2)/(.1*i)**2}function Jye(e,t,n){const r=t-e;return n>r?1-((n-r)/2)**2/(.1*r)**2:1}function Qye(){return 1}const lb=(e,t,n=5,r=!0,i=Hye,a=[.25,.2,.5,.05])=>{const o=n<0?0:Math.round(n);if(Number.isNaN(e)||Number.isNaN(t)||typeof e!="number"||typeof t!="number"||!o)return[];if(t-e<1e-15||o===1)return[e];const s={score:-2,lmin:0,lmax:0,lstep:0};let l=1;for(;l<1/0;){for(let p=0;p<i.length;p+=1){const g=i[p],v=Xye(g,i,l);if(a[0]*v+a[1]+a[2]+a[3]<s.score){l=1/0;break}let y=2;
vendor: 7,141 bytes, line 30
30for(;y<1/0;){const x=Zye(y,o);if(a[0]*v+a[1]+a[2]*x+a[3]<s.score)break;const C=(t-e)/(y+1)/l/g;let _=Math.ceil(Math.log10(C));for(;_<1/0;){const S=l*g*10**_,O=Jye(e,t,S*(y-1));if(a[0]*v+a[1]*O+a[2]*x+a[3]<s.score)break;const E=Math.floor(t/S)*l-(y-1)*l,k=Math.ceil(e/S)*l;if(E<=k){const $=k-E;for(let T=0;T<=$;T+=1){const R=(E+T)*(S/l),N=R+S*(y-1),D=S,F=Yye(g,i,l,R,N,D),V=Kye(e,t,R,N),z=qye(y,o,e,t,R,N),B=Qye(),G=a[0]*F+a[1]*V+a[2]*z+a[3]*B;G>s.score&&(!r||R<=e&&N>=t)&&(s.lmin=R,s.lmax=N,s.lstep=D,s.score=G)}}_+=1}y+=1}}l+=1}const c=b1(s.lmax),u=b1(s.lmin),f=b1(s.lstep),d=Math.floor(Uye((c-u)/f))+1,h=new Array(d);h[0]=b1(u);for(let p=1;p<d;p+=1)h[p]=b1(h[p-1]+f);return h};let zj=class Vj extends Np{getDefaultOptions(){return{domain:[0,1],range:[0,1],tickCount:5,unknown:void 0,tickMethod:lb}}map(t){return ym(t)?t:this.options.unknown}invert(t){return this.map(t)}clone(){return new Vj(this.options)}getTicks(){const{domain:t,tickCount:n,tickMethod:r}=this.options,[i,a]=t;return!Jn(i)||!Jn(a)?[]:r(i,a,n)}};const e9e=(e,t,n)=>{const[r,i]=e,[a,o]=t;let s,l;return r<i?(s=vm(r,i),l=n(a,o)):(s=vm(i,r),l=n(o,a)),ad(l,s)},t9e=(e,t,n)=>{const r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=e[0]>e[r],s=o?[...e].reverse():e,l=o?[...t].reverse():t;for(let c=0;c<r;c+=1)i[c]=vm(s[c],s[c+1]),a[c]=n(l[c],l[c+1]);return c=>{const u=ib(e,c,1,r)-1,f=i[u],d=a[u];return ad(d,f)(c)}},Wk=(e,t,n,r)=>(Math.min(e.length,t.length)>2?t9e:e9e)(e,t,r?Iye:n);let z3=class extends Np{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:od,tickCount:5}}map(t){return ym(t)?this.output(t):this.options.unknown}invert(t){return ym(t)?this.input(t):this.options.unknown}nice(){if(!this.options.nice)return;const[t,n,r,...i]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(t,n,r,...i)}getTicks(){const{tickMethod:t}=this.options,[n,r,i,...a]=this.getTickMethodOptions();return t(n,r,i,...a)}getTickMethodOptions(){const{domain:t,tickCount:n}=this.options,r=t[0],i=t[t.length-1];return[r,i,n]}chooseNice(){return Aj}rescale(){this.nice();const[t,n]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t)),this.composeInput(t,n,this.chooseClamp(n))}chooseClamp(t){const{clamp:n,range:r}=this.options,i=this.options.domain.map(t),a=Math.min(i.length,r.length);return n?oye(i[0],i[a-1]):Zu}composeOutput(t,n){const{domain:r,range:i,round:a,interpolate:o}=this.options,s=Wk(r.map(t),i,o,a);this.output=ad(s,n,t)}composeInput(t,n,r){const{domain:i,range:a}=this.options,o=Wk(a,i.map(t),od);this.input=ad(n,r,o)}},Gn=class Wj extends z3{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:Mp,tickMethod:Qu,tickCount:5}}chooseTransforms(){return[Zu,Zu]}clone(){return new Wj(this.options)}},Hj=class Gj extends sd{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:B3,paddingInner:1,paddingOuter:0}}constructor(t){super(t)}getPaddingInner(){return 1}clone(){return new Gj(this.options)}update(t){super.update(t)}getPaddingOuter(){return this.options.padding}};const n9e=e=>t=>t<0?-((-t)**e):t**e,r9e=e=>t=>t<0?-((-t)**(1/e)):t**(1/e),i9e=e=>e<0?-Math.sqrt(-e):Math.sqrt(e);let Uj=class Yj extends z3{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:Mp,tickMethod:Qu,tickCount:5}}constructor(t){super(t)}chooseTransforms(){const{exponent:t}=this.options;if(t===1)return[Zu,Zu];const n=t===.5?i9e:n9e(t),r=r9e(t);return[n,r]}clone(){return new Yj(this.options)}},a9e=class Xj extends Uj{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Mp,tickMethod:Qu,tickCount:5,exponent:.5}}constructor(t){super(t)}update(t){super.update(t)}clone(){return new Xj(this.options)}},V3=class qj extends Np{getDefaultOptions(){return{domain:[.5],range:[0,1]}}constructor(t){super(t)}map(t){if(!ym(t))return this.options.unknown;const n=ib(this.thresholds,t,0,this.n);return this.options.range[n]}invert(t){const{range:n}=this.options,r=n.indexOf(t),i=this.thresholds;return[i[r-1],i[r]]}clone(){return new qj(this.options)}rescale(){const{domain:t,range:n}=this.options;this.n=Math.min(t.length,n.length-1),this.thresholds=t}};const o9e=(e,t,n,r=10)=>{const i=e<0,a=ob(r,i),o=ab(r,i),s=t<e,l=s?t:e,c=s?e:t;let u=o(l),f=o(c),d=[];if(!(r%1)&&f-u<n){if(u=Math.floor(u),f=Math.ceil(f),i)for(;u<=f;u+=1){const h=a(u);for(let p=r-1;p>=1;p-=1){const g=h*p;if(g>c)break;g>=l&&d.push(g)}}else for(;u<=f;u+=1){const h=a(u);for(let p=1;p<r;p+=1){const g=h*p;if(g>c)break;g>=l&&d.push(g)}}d.length*2<n&&(d=Qu(l,c,n))}else{const h=n===-1?f-u:Math.min(f-u,n);d=Qu(u,f,h).map(a)}return s?d.reverse():d};let s9e=class Zj extends z3{getDefaultOptions(){return{domain:[1,10],range:[0,1],base:10,interpolate:Mp,tickMethod:o9e,tickCount:5}}chooseNice(){return _ye}getTickMethodOptions(){const{domain:t,tickCount:n,base:r}=this.options,i=t[0],a=t[t.length-1];return[i,a,n,r]}chooseTransforms(){const{base:t,domain:n}=this.options,r=n[0]<0;return[ab(t,r),ob(t,r)]}clone(){return new Zj(this.options)}},Kj=class Jj extends V3{getDefaultOptions(){return{domain:[0,1],range:[.5],nice:!1,tickCount:5,tickMethod:lb}}constructor(t){super(t)}nice(){const{nice:t}=this.options;if(t){const[n,r,i]=this.getTickMethodOptions();this.options.domain=Aj(n,r,i)}}getTicks(){const{tickMethod:t}=this.options,[n,r,i]=this.getTickMethodOptions();return t(n,r,i)}getTickMethodOptions(){const{domain:t,tickCount:n}=this.options,r=t[0],i=t[t.length-1];return[r,i,n]}rescale(){this.nice();const{range:t,domain:n}=this.options,[r,i]=n;this.n=t.length-1,this.thresholds=new Array(this.n);for(let a=0;a<this.n;a+=1)this.thresholds[a]=((a+1)*i-(a-this.n)*r)/(this.n+1)}invert(t){const[n,r]=super.invert(t),[i,a]=this.options.domain;return n===void 0&&r===void 0?[n,r]:[n||i,r||a]}getThresholds(){return this.thresholds}clone(){return new Jj(this.options)}};function l9e(e,t){const n=e.length;if(!n)return;if(n<2)return e[n-1];const r=(n-1)*t,i=Math.floor(r),a=e[i],o=e[i+1];return a+(o-a)*(r-i)}function c9e(e,t,n=!1){const r=e;n||r.sort((a,o)=>a-o);const i=[];for(let a=1;a<t;a+=1)i.push(l9e(r,a/t));return i}let Qj=class eD extends V3{getDefaultOptions(){return{domain:[],range:[],tickCount:5,unknown:void 0,tickMethod:lb}}constructor(t){super(t)}rescale(){const{domain:t,range:n}=this.options;this.n=n.length-1,this.thresholds=c9e(t,this.n+1,!1)}invert(t){const[n,r]=super.invert(t),{domain:i}=this.options,a=i[0],o=i[i.length-1];return n===void 0&&r===void 0?[n,r]:[n||a,r||o]}getThresholds(){return this.thresholds}clone(){return new eD(this.options)}getTicks(){const{tickCount:t,domain:n,tickMethod:r}=this.options,i=n.length-1,a=n[0],o=n[i];return r(a,o,t)}};var u9e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,f9e=/\[([^]*?)\]/gm;function tD(e,t){for(var n=[],r=0,i=e.length;r<i;r++)n.push(e[r].substr(0,t));return n}function i7(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var a=i[r];for(var o in a)e[o]=a[o]}return e}var nD=["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
30ay","Saturday"],rD=["January","February","March","April","May","June","July","August","September","October","November","December"],d9e=tD(rD,3),h9e=tD(nD,3),p9e={dayNamesShort:h9e,dayNames:nD,monthNamesShort:d9e,monthNames:rD,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10?1:0)*e%10]}},g9e=i7({},p9e),ra=function(e,t){for(t===void 0&&(t=2),e=String(e);e.length<t;)e="0"+e;return e},m9e={D:function(e){return String(e.getDate())},DD:function(e){return ra(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return ra(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return ra(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return ra(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return ra(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return ra(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return ra(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return ra(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return ra(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return ra(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return ra(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+ra(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+ra(Math.floor(Math.abs(t)/60),2)+":"+ra(Math.abs(t)%60,2)}},Hk={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},v9e=function(e,t,n){if(t===void 0&&(t=Hk.default),n===void 0&&(n={}),typeof e=="number"&&(e=new Date(e)),Object.prototype.toString.call(e)!=="[object Date]"||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");t=Hk[t]||t;var r=[];t=t.replace(f9e,function(a,o){return r.push(o),"@@@"});var i=i7(i7({},g9e),n);return t=t.replace(u9e,function(a){return m9e[a](e,i)}),t.replace(/@@@/g,function(){return r.shift()})};const y9e=(e,t,n,r,i)=>{const a=e>t,o=a?t:e,s=a?e:t,[l,c]=Lj(o,s,n,r,i),u=l.range(o,new Date(+s+1),c,!0);return a?u.reverse():u};function x9e(e){const t=e.getTimezoneOffset(),n=new Date(e);return n.setMinutes(n.getMinutes()+t,n.getSeconds(),n.getMilliseconds()),n}let b9e=class iD extends z3{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:y9e,interpolate:od,mask:void 0,utc:!1}}chooseTransforms(){return[r=>+r,r=>new Date(r)]}chooseNice(){return wye}getTickMethodOptions(){const{domain:t,tickCount:n,tickInterval:r,utc:i}=this.options,a=t[0],o=t[t.length-1];return[a,o,n,r,i]}getFormatter(){const{mask:t,utc:n}=this.options,r=n?Ij:Mj,i=n?x9e:Zu;return a=>v9e(i(a),t||Lye(a,r))}clone(){return new iD(this.options)}};var C9e=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a7;function w9e(e){return[e(0),e(1)]}const _9e=e=>{const[t,n]=e;return ad(od(0,1),vm(t,n))};let o7=a7=class extends Gn{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:Zu,tickMethod:Qu,tickCount:5}}constructor(t){super(t)}clone(){return new a7(this.options)}};o7=a7=C9e([Oye(w9e,_9e)],o7);var S9e=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}
30return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};function O9e(e){var t;let n=e;for(;n;){if(((t=n.attributes)===null||t===void 0?void 0:t.class)==="view")return n;n=n.parentNode}return null}function aD(e,t){const n=t??O9e(e).__data__,r=e.__data__,{markKey:i,index:a,seriesIndex:o}=r,{markState:s}=n,l=Array.from(s.keys()).find(c=>c.key===i);if(l)return o?o.map(c=>l.data[c]):l.data[a]}function E9e(e,t){const{color:n,series:r,facet:i=!1}=e,{color:a,series:o}=t,s=l=>l&&l.invert&&!(l instanceof sd)&&!(l instanceof sb);if(s(r))return r.clone().invert(o);if(o&&r instanceof sd&&r.invert(o)!==a&&!i)return r.invert(o);if(s(n)){const l=n.invert(a);return Array.isArray(l)?null:l}return null}function ef(e){return e}function cb(e){return e.reduce((t,n)=>(r,...i)=>n(t(r,...i),...i),ef)}function k9e(e){return e.reduce((t,n)=>r=>S9e(this,void 0,void 0,function*(){const i=yield t(r);return n(i)}),ef)}function ub(e){return e.replace(/( |^)[a-z]/g,t=>t.toUpperCase())}function ld(e=""){throw new Error(e)}function fb(e,t){const{attributes:n}=t,r=new Set(["id","className"]);for(const[i,a]of Object.entries(n))r.has(i)||e.attr(i,a)}function Dn(e){return e!=null&&!Number.isNaN(e)}function A9e(e){const t=new Map;return n=>{if(t.has(n))return t.get(n);const r=e(n);return t.set(n,r),r}}function $9e(e,t){const{transform:n}=e.style,i=(a=>a==="none"||a===void 0)(n)?"":n;e.style.transform=`${i} ${t}`.trimStart()}function Ve(e,t){return oD(e,t)||{}}function oD(e,t){const n=Object.entries(e||{}).filter(([r])=>r.startsWith(t)).map(([r,i])=>[XR(r.replace(t,"").trim()),i]).filter(([r])=>!!r);return n.length===0?null:Object.fromEntries(n)}function T9e(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>t.find(r=>n.startsWith(r))))}function E9(e,...t){return Object.fromEntries(Object.entries(e).filter(([n])=>t.every(r=>!n.startsWith(r))))}function Gk(e,t){if(e===void 0)return null;if(typeof e=="number")return e;const n=+e.replace("%","");return Number.isNaN(n)?null:n/100*t}function cd(e){return typeof e=="object"&&!(e instanceof Date)&&e!==null&&!Array.isArray(e)}function Ml(e){return e===null||e===!1}function sD(e,t,n=5,r=0){if(!(r>=n)){for(const i of Object.keys(t)){const a=t[i];!Pl(a)||!Pl(e[i])?e[i]=a:sD(e[i],a,n,r+1)}return e}}function Ps(e,t){return Object.entries(e).reduce((n,[r,i])=>(n[r]=t(i,r,e),n),{})}function hf(e){return e.map((t,n)=>n)}function P9e(e){return e[0]}function lD(e){return e[e.length-1]}function M9e(e){return Array.from(new Set(e))}function cD(e,t){const n=[[],[]];return e.forEach(r=>{n[t(r)?0:1].push(r)}),n}function uD(e,t=e.length){if(t===1)return e.map(r=>[r]);const n=[];for(let r=0;r<e.length;r++){const i=e.slice(r+1);uD(i,t-1).forEach(o=>{n.push([e[r],...o])})}return n}function N9e(e){if(e.length===1)return[e];const t=[];for(let n=1;n<=e.length;n++)t.push(...uD(e,n));return t}function Dc(e,t,n){const{encode:r}=n;if(e===null)return[t];const i=I9e(e).map(o=>{var s;return[o,(s=on(r,o))===null||s===void 0?void 0:s[0]]}).filter(([,o])=>Dn(o)),a=o=>i.map(([,s])=>s[o]).join("-");return Array.from(jn(t,a).values())}function fD(e){return Array.isArray(e)?j9e(e):typeof e=="function"?R9e(e):e==="series"?L9e:e==="value"?D9e:e==="sum"?F9e:e==="maxIndex"?B9e:null}function dD(e,t){for(const n of e)n.sort(t)}function hD(e,t){return(t==null?void 0:t.domain)||Array.from(new Set(e))}function I9e(e){return Array.isArray(e)?e:[e]}function L9e(e,t,n){return Ip(r=>n[r])}function R9e(e){return(t,n,r)=>Ip(i=>e(t[i]))}function j9e(e){return(t,n,r)=>(i,a)=>e.reduce((o,s)=>o!==0?o:pr(t[i][s],t[a][s]),0)}function D9e(e,t,n){return Ip(r=>t[r])}function F9e(e,t,n){const r=hf(e),i=Array.from(jn(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,s.reduce((l,c)=>l+ +t[c])]));return Ip(o=>a.get(n[o]))}function B9e(e,t,n){const r=hf(e),i=Array.from(jn(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,Pd(s,l=>t[l])]));return Ip(o=>a.get(n[o]))}function Ip(e){return(t,n)=>pr(e(t),e(n))}const pD=(e={})=>{const{groupBy:t="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:a="y1",series:o=!0}=e;return(s,l)=>{var c;const{data:u,encode:f,style:d={}}=l,[h,p]=on(f,"y"),[g,v]=on(f,"y1"),[y]=o?gm(f,"series","color"):on(f,"color"),x=Dc(t,s,l),_=((c=fD(n))!==null&&c!==void 0?c:()=>null)(u,h,y);_&&dD(x,_);const S=new Array(s.length),O=new Array(s.length),E=new Array(s.length),k=[],$=[];for(const F of x){r&&F.reverse();const V=g?+g[F[0]]:0,z=[],B=[];for(const ae of F){const ce=E[ae]=+h[ae]-V;ce<0?B.push(ae):ce>=0&&z.push(ae)}const G=z.length>0?z:B,Y=B.length>0?B:z;let K=z.length-1,Q=0;for(;K>0&&h[G[K]]===0;)K--;for(;Q<Y.length-1&&h[Y[Q]]===0;)Q++;k.push(G[K]),$.push(Y[Q]);let ne=V;for(const ae of B.reverse()){const ce=E[ae];ne=S[ae]=(O[ae]=ne)+ce}let oe=V;for(const ae of z){const ce=E[ae];ce>0?oe=S[ae]=(O[ae]=oe)+ce:S[ae]=O[ae]=oe}}const T=new Set(k),M=new Set($),R=i==="y"?S:O,N=a==="y"?S:O;let D;return l.type==="point"?D={y0:Rh(h,p),y:Nn(R,p)}:D={y0:Rh(h,p),y:Nn(R,p),y1:Nn(N,v)},[s,_e({},l,{encode:Object.assign({},D),style:Object.assign({first:(F,V)=>T.has(V),last:(F,V)=>M.has(V)},d)})]}};pD.props={};function C1(e){return Math.abs(e)>10?String(e):e.toString().padStart(2,"0")}function z9e(e){const t=e.getFullYear(),n=C1(e.getMonth()+1),r=C1(e.getDate()),i=`${t}-${n}-${r}`,a=e.getHours(),o=e.getMinutes(),s=e.getSeconds();return a||o||s?`${i} ${C1(a)}:${C1(o)}:${C1(s)}`:i}const W3=(e={})=>{const{channel:t="x"}=e;return(n,r)=>{const{encode:i}=r,{tooltip:a}=r;if(Ml(a))return[n,r];const{title:o}=a;if(o!==void 0)return[n,r];const s=Object.keys(i).filter(c=>c.startsWith(t)).filter(c=>!i[c].inferred).map(c=>on(i,c)).filter(([c])=>c).map(c=>c[0]);if(s.length===0)return[n,r];const l=[];for(const c of n)l[c]={value:s.map(u=>u[c]instanceof Date?z9e(u[c]):u[c]).join(", ")};return[n,_e({},r,{tooltip:{title:l}})]}};W3.props={};const pf=()=>(e,t)=>{const{encode:n}=t,{x:r}=n;return r!==void 0?[e,t]:[e,_e({},t,{encode:{x:Rh(Oc(e,0))},scale:{x:{guide:null}}})]};pf.props={};const H3=()=>(e,t)=>{const{encode:n}=t,{y:r}=n;return r!==void 0?[e,t]:[e,_e({},t,{encode:{y:Rh(Oc(e,0))},scale:{y:{guide:null}}})]};H3.props={};const gD=()=>(e,t)=>{const{encode:n}=t,{size:r}=n;return r!==void 0?[e,t]:[e,_e({},t,{encode:{size:pm(Oc(e,3))}})]};gD.props={};var V9e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const mD=()=>(e,t)=>{const{encode:n}=t,{key:r}=n,i=V9e(n,["key"]);if(r!==void 0)return[e,t];const a=Object.values(i).map(({value:s})=>s),o=e.map(s=>
vendor: 5,354 bytes, line 30
30a.filter(Array.isArray).map(l=>l[s]).join("-"));return[e,_e({},t,{encode:{key:Nn(o)}})]};mD.props={};const db=()=>(e,t)=>{const{encode:n}=t,{series:r,color:i}=n;if(r!==void 0||i===void 0)return[e,t];const[a,o]=on(n,"color");return[e,_e({},t,{encode:{series:Nn(a,o)}})]};db.props={};const vD=()=>(e,t)=>{const{data:n}=t;return!Array.isArray(n)||n.some($p)?[e,t]:[e,_e({},t,{encode:{y:Nn(n)}})]};vD.props={};const yD=()=>(e,t)=>{const{data:n}=t;return!Array.isArray(n)||n.some($p)?[e,t]:[e,_e({},t,{encode:{x:Nn(n)}})]};yD.props={};const xD=()=>(e,t)=>{const{encode:n}=t,{y1:r}=n;if(r)return[e,t];const[i]=on(n,"y");return[e,_e({},t,{encode:{y1:Nn([...i])}})]};xD.props={};const bD=()=>(e,t)=>{const{encode:n}=t,{x1:r}=n;if(r)return[e,t];const[i]=on(n,"x");return[e,_e({},t,{encode:{x1:Nn([...i])}})]};bD.props={};const CD=()=>(e,t)=>{const{data:n}=t;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some($p))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[e,_e({},t,{encode:{x:Nn(r(n,0)),x1:Nn(r(n,1))}})]}return[e,t]};CD.props={};const wD=()=>(e,t)=>{const{data:n}=t;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some($p))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[e,_e({},t,{encode:{y:Nn(r(n,0)),y1:Nn(r(n,1))}})]}return[e,t]};wD.props={};const G3=e=>{const{channel:t}=e;return(n,r)=>{const{encode:i,tooltip:a}=r;if(Ml(a))return[n,r];const{items:o=[]}=a;if(!o||o.length>0)return[n,r];const l=(Array.isArray(t)?t:[t]).flatMap(c=>Object.keys(i).filter(u=>u.startsWith(c)).map(u=>{const{field:f,value:d,inferred:h=!1,aggregate:p}=i[u];return h?null:p&&d?{channel:u}:f?{field:f}:d?{channel:u}:null}).filter(u=>u!==null));return[n,_e({},r,{tooltip:{items:l}})]}};G3.props={};const hb=()=>(e,t)=>[e,_e({scale:{x:{padding:0},y:{padding:0}}},t)];hb.props={};var Uk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const U3=()=>(e,t)=>{const{data:n,style:r={}}=t,i=Uk(t,["data","style"]),{x:a,y:o}=r,s=Uk(r,["x","y"]);if(a==null||o==null)return[e,t];const l=a||0,c=o||0;return[[0],_e({},i,{data:[0],cartesian:!0,encode:{x:Nn([l]),y:Nn([c])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:s})]};U3.props={};const _D=()=>(e,t)=>{const{style:n={}}=t;return[e,_e({},t,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(([,r])=>typeof r=="function").map(([r,i])=>[r,()=>i])))})]};_D.props={};const Y3=()=>(e,t)=>{const{data:n}=t;if(!Array.isArray(n)||n.some($p))return[e,t];const r=Array.isArray(n[0])?n:[n],i=r.map(o=>o[0]),a=r.map(o=>o[1]);return[e,_e({},t,{encode:{x:Nn(i),y:Nn(a)}})]};Y3.props={};const SD=()=>(e,t)=>{const{style:n={},encode:r}=t,{series:i}=r,{gradient:a}=n;return!a||i?[e,t]:[e,_e({},t,{encode:{series:pm(Oc(e,void 0))}})]};SD.props={};var W9e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const OD=(e={})=>{const{groupBy:t="x",reverse:n=!1,orderBy:r,padding:i}=e;return W9e(e,["groupBy","reverse","orderBy","padding"]),(a,o)=>{const{data:s,encode:l,scale:c}=o,{series:u}=c,[f]=on(l,"y"),[d]=gm(l,"series","color"),h=hD(d,u),p=_e({},o,{scale:{series:{domain:h,paddingInner:i}}}),g=Dc(t,a,o),v=fD(r);if(!v)return[a,_e(p,{encode:{series:Nn(d)}})];const y=v(s,f,d);y&&dD(g,y);const x=new Array(a.length);for(const C of g){n&&C.reverse();for(let _=0;_<C.length;_++)x[C[_]]=h[_]}return[a,_e(p,{encode:{series:Nn(r?x:d)}})]}};OD.props={};const ED=e=>{const{groupBy:t=["x"],reducer:n=(o,s)=>s[o[0]],orderBy:r=null,reverse:i=!1,duration:a}=e;return(o,s)=>{const{encode:l}=s,u=(Array.isArray(t)?t:[t]).map(v=>[v,on(l,v)[0]]);if(u.length===0)return[o,s];let f=[o];for(const[,v]of u){const y=[];for(const x of f){const C=Array.from(jn(x,_=>v[_]).values());y.push(...C)}f=y}if(r){const[v]=on(l,r);v&&f.sort((y,x)=>n(y,v)-n(x,v)),i&&f.reverse()}const d=(a||3e3)/f.length,[h]=a?[Oc(o,d)]:gm(l,"enterDuration",Oc(o,d)),[p]=gm(l,"enterDelay",Oc(o,0)),g=new Array(o.length);for(let v=0,y=0;v<f.length;v++){const x=f[v],C=bn(x,_=>+h[_]);for(const _ of x)g[_]=+p[_]+y;y+=C}return[o,_e({},s,{encode:{enterDuration:pm(h),enterDelay:pm(g)}})]}};ED.props={};var H9e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function G9e(e){return typeof e=="function"?e:{min:(n,r)=>$a(n,i=>r[+i]),max:(n,r)=>bn(n,i=>r[+i]),first:(n,r)=>r[n[0]],last:(n,r)=>r[n[n.length-1]],mean:(n,r)=>Bh(n,i=>r[+i]),median:(n,r)=>rb(n,i=>r[+i]),sum:(n,r)=>io(n,i=>r[+i]),deviation:(n,r)=>Oj(n,i=>r[+i])}[e]||bn}const kD=(e={})=>{const{groupBy:t="x",basis:n="max"}=e;return(r,i)=>{const{encode:a,tooltip:o}=i,{x:s}
30=a,l=H9e(a,["x"]),c=Object.entries(l).filter(([g])=>g.startsWith("y")).map(([g])=>[g,on(a,g)[0]]),[,u]=c.find(([g])=>g==="y"),f=c.map(([g])=>[g,new Array(r.length)]),d=Dc(t,r,i),h=G9e(n);for(const g of d){const v=h(g,u);for(const y of g)for(let x=0;x<c.length;x++){const[,C]=c[x],[,_]=f[x];_[y]=+C[y]/v}}const p=Ml(o)||(o==null?void 0:o.items)&&(o==null?void 0:o.items.length)!==0;return[r,_e({},i,Object.assign({encode:Object.fromEntries(f.map(([g,v])=>[g,Nn(v,on(a,g)[1])]))},!p&&a.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};kD.props={};function xm(e,t,n){if(e===null)return[-.5,.5];const r=hD(e,t),a=new sd({domain:r,range:[0,1],padding:n}).getBandWidth();return[-a/2,a/2]}function bm(e,t,n){return t*(1-e)+n*e}const AD=(e={})=>{const{padding:t=0,paddingX:n=t,paddingY:r=t,random:i=Math.random}=e;return(a,o)=>{const{encode:s,scale:l}=o,{x:c,y:u}=l,[f]=on(s,"x"),[d]=on(s,"y"),h=xm(f,c,n),p=xm(d,u,r),g=a.map(()=>bm(i(),...p)),v=a.map(()=>bm(i(),...h));return[a,_e({scale:{x:{padding:.5},y:{padding:.5}}},o,{encode:{dy:Nn(g),dx:Nn(v)}})]}};AD.props={};const $D=(e={})=>{const{padding:t=0,random:n=Math.random}=e;return(r,i)=>{const{encode:a,scale:o}=i,{x:s}=o,[l]=on(a,"x"),c=xm(l,s,t),u=r.map(()=>bm(n(),...c));return[r,_e({scale:{x:{padding:.5}}},i,{encode:{dx:Nn(u)}})]}};$D.props={};const TD=(e={})=>{const{padding:t=0,random:n=Math.random}=e;return(r,i)=>{const{encode:a,scale:o}=i,{y:s}=o,[l]=on(a,"y"),c=xm(l,s,t),u=r.map(()=>bm(n(),...c));return[r,_e({scale:{y:{padding:.5}}},i,{encode:{dy:Nn(u)}})]}};TD.props={};var U9e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const PD=(e={})=>{const{groupBy:t="x"}=e;return(n,r)=>{const{encode:i}=r,{x:a}=i,o=U9e(i,["x"]),s=Object.entries(o).filter(([d])=>d.startsWith("y")).map(([d])=>[d,on(i,d)[0]]),l=s.map(([d])=>[d,new Array(n.length)]),c=Dc(t,n,r),u=new Array(c.length);for(let d=0;d<c.length;d++){const p=c[d].flatMap(y=>s.map(([,x])=>+x[y])),[g,v]=Ol(p);u[d]=(g+v)/2}const f=Math.max(...u);for(let d=0;d<c.length;d++){const h=f-u[d],p=c[d];for(const g of p)for(let v=0;v<s.length;v++){const[,y]=s[v],[,x]=l[v];x[g]=+y[g]+h}}return[n,_e({},r,{encode:Object.fromEntries(l.map(([d,h])=>[d,Nn(h,on(i,d)[1])]))})]}};PD.props={};const MD=(e={})=>{const{groupBy:t="x"}=e;return(n,r)=>{const{encode:i}=r,[a]=on(i,"y"),[o,s]=on(i,"y1"),l=Dc(t,n,r),c=new Array(n.length);for(const u of l){const f=u.map(d=>+a[d]);for(let d=0;d<u.length;d++){const h=u[d],p=Math.max(...f.filter((g,v)=>v!==d));c[h]=+a[h]>p?p:a[h]}}return[n,_e({},r,{encode:{y1:Nn(c,s)}})]}};MD.props={};function Yk(e,t){return[e[0]]}function Y9e(e,t){const n=e.length-1;return[e[n]]}function X9e(e,t){const n=Pd(e,r=>t[r]);return[e[n]]}function q9e(e,t){const n=Pp(e,r=>t[r]);return[e[n]]}function Z9e(e){return typeof e=="function"?e:{first:Yk,last:Y9e,max:X9e,min:q9e}[e]||Yk}const X3=(e={})=>{const{groupBy:t="series",channel:n,selector:r}=e;return(i,a)=>{const{encode:o}=a,s=Dc(t,i,a),[l]=on(o,n),c=Z9e(r);return[s.flatMap(u=>c(u,l)),a]}};X3.props={};var K9e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ND=(e={})=>{const{selector:t}=e,n=K9e(e,["selector"]);return X3(Object.assign({channel:"x",selector:t},n))};ND.props={};var J9e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ID=(e={})=>{const{selector:t}=e,n=J9e(e,["selector"]);return X3(Object.assign({channel:"y",selector:t},n))};ID.props={};var Q9e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Fc(e){return t=>t===null?e:`${e} of ${t}`}function e4e(e){if(typeof e=="function")return[e,null];const n={mean:t4e,max:r4e,count:a4e,first:s4e,last:l4e,sum:o4e,min:i4e,median:n4e}[e];if(!n)throw new Error(`Unknown reducer: ${e}.`);return n()}function t4e(){const e=(n,r)=>Bh(n,i=>+r[i]),t=Fc("mean");return[e,t]}function n4e(){const e=(n,r)=>rb(n,i=>+r[i]),t=Fc("median");return[e,t]}function r4e(){const e=(n,r)=>bn(n,i=>+r[i]),t=Fc("max");return[e,t]}function i4e(){const e=(n,r)=>$a(n,i=>+r[i]),t=Fc("min");return[e,t]}function a4e(){const e=(n,r)=>n.length,t=Fc("count");return[e,t]}function o4e(){const e=(n,r)=>io(n,i=>+r[i]),t=Fc("sum");return[e,t]}function s4e(){const e=(n,r)=>r[n[0]],t=Fc("first");return[e,t]}function l4e(){const e=(n,r)=>r[n[n.length-1]],t=Fc("last");return[e,t]}const pb=(e={})=>{const{groupBy:t}
30=e,n=Q9e(e,["groupBy"]);return(r,i)=>{const{data:a,encode:o}=i,s=t(r,i);if(!s)return[r,i];const l=(h,p)=>{if(h)return h;const{from:g}=p;if(!g)return h;const[,v]=on(o,g);return v},c=Object.entries(n).map(([h,p])=>{const[g,v]=e4e(p),[y,x]=on(o,h),C=l(x,p),_=s.map(S=>g(S,y??a));return[h,Object.assign(Object.assign({},Mve(_,(v==null?void 0:v(C))||C)),{aggregate:!0})]}),u=Object.keys(o).map(h=>{const[p,g]=on(o,h),v=s.map(y=>p[y[0]]);return[h,Nn(v,g)]}),f=s.map(h=>a[h[0]]);return[hf(s),_e({},i,{data:f,encode:Object.fromEntries([...u,...c])})]}};pb.props={};var c4e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Lp=(e={})=>{const{channels:t=["x","y"]}=e,n=c4e(e,["channels"]),r=(i,a)=>Dc(t,i,a);return pb(Object.assign(Object.assign({},n),{groupBy:r}))};Lp.props={};const LD=(e={})=>Lp(Object.assign(Object.assign({},e),{channels:["x","color","series"]}));LD.props={};const RD=(e={})=>Lp(Object.assign(Object.assign({},e),{channels:["y","color","series"]}));RD.props={};const jD=(e={})=>Lp(Object.assign(Object.assign({},e),{channels:["color"]}));jD.props={};function u4e(e,t,n){const{by:r=e,reducer:i="max"}=t,[a]=on(n,r);if(typeof i=="function")return o=>i(o,a);if(i==="max")return o=>bn(o,s=>+a[s]);if(i==="min")return o=>$a(o,s=>+a[s]);if(i==="sum")return o=>io(o,s=>+a[s]);if(i==="median")return o=>rb(o,s=>+a[s]);if(i==="mean")return o=>Bh(o,s=>+a[s]);if(i==="first")return o=>a[o[0]];if(i==="last")return o=>a[o[o.length-1]];throw new Error(`Unknown reducer: ${i}`)}function f4e(e,t,n){if(!Array.isArray(n))return e;const r=new Set(n);return e.filter(i=>r.has(t[i]))}const q3=(e={})=>(t,n)=>{const{reverse:r,slice:i,channel:a,by:o,ordinal:s=!0,reducer:l}=e,{encode:c,scale:u={}}=n,f=u[a].domain,[d]=on(c,o??a),[h]=on(c,a),p=u4e(a,{by:o,reducer:l},c),g=f4e(t,h,f),v=Gve(g,p,_=>h[_]),y=s?t:zo(t,_=>d[_]);r&&(!s&&y.reverse(),v.reverse());const x=typeof i=="number"?[0,i]:i,C=i?v.slice(...x):v;return[y,_e(n,{scale:{[a]:{domain:C}}})]};q3.props={};const DD=(e={})=>q3(Object.assign(Object.assign({},e),{channel:"x"}));DD.props={};const FD=(e={})=>q3(Object.assign(Object.assign({},e),{channel:"color"}));FD.props={};const BD=(e={})=>q3(Object.assign(Object.assign({},e),{channel:"y"}));BD.props={};function d4e(e,t){return typeof t=="string"?e.map(n=>n[t]):e.map(t)}function h4e(e,t){if(typeof e=="function")return n=>e(n,t);if(e==="sum")return n=>io(n,r=>+t[r]);throw new Error(`Unknown reducer: ${e}`)}const zD=(e={})=>{const{field:t,channel:n="y",reducer:r="sum"}=e;return(i,a)=>{const{data:o,encode:s}=a,[l]=on(s,"x"),c=t?d4e(o,t):on(s,n)[0],u=h4e(r,c),f=tb(i,u,d=>l[d]).map(d=>d[1]);return[i,_e({},a,{scale:{x:{flex:f}}})]}};zD.props={};function mr([e,t],[n,r]){return[e-n,t-r]}function h5([e,t],[n,r]){return[e+n,t+r]}function or([e,t],[n,r]){return Math.sqrt(Math.pow(e-n,2)+Math.pow(t-r,2))}function oo([e,t]){return Math.atan2(t,e)}function ud([e,t]){return oo([e,t])+Math.PI/2}function VD(e,t){const n=oo(e),r=oo(t);return n<r?r-n:Math.PI*2-(n-r)}function gb(e){let t=1/0,n=-1/0,r=1/0,i=-1/0;for(const[s,l]of e)t=Math.min(s,t),n=Math.max(s,n),r=Math.min(l,r),i=Math.max(l,i);const a=n-t,o=i-r;return[t,r,a,o]}function WD([e,t],[n,r]){return[(e+n)/2,(t+r)/2]}function p4e(e){const{padding:t=0,direction:n="col"}=e;return(r,i,a)=>{const o=r.length;if(o===0)return[];const{innerWidth:s,innerHeight:l}=a,c=l/s;let u=Math.ceil(Math.sqrt(i/c)),f=s/u,d=Math.ceil(i/u),h=d*f;for(;h>l;)u=u+1,f=s/u,d=Math.ceil(i/u),h=d*f;const p=l-d*f,g=d<=1?0:p/(d-1),[v,y]=d<=1?[(s-o*f)/(o-1),(l-f)/2]:[0,0];return r.map((x,C)=>{const[_,S,O,E]=gb(x),k=n==="col"?C%u:Math.floor(C/d),$=n==="col"?Math.floor(C/u):C%d,T=k*f,M=(d-$-1)*f+p,R=(f-t)/O,N=(f-t)/E,D=T-_+v*k+1/2*t,F=M-S-g*$-y+1/2*t;return`translate(${D}, ${F}) scale(${R}, ${N})`})}}const HD=e=>(t,n)=>[t,_e({},n,{modifier:p4e(e),axis:!1})];HD.props={};var g4e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Xk="thresholds";function m4e(e){const[t,n]=Ol(e);return Math.min(200,rye(e,t,n))}const mb=(e={})=>{const{groupChannels:t=["color"],binChannels:n=["x","y"]}=e,r=g4e(e,["groupChannels","binChannels"]),i={},a=(o,s)=>{const{encode:l}=s,c=n.map(p=>{const[g]=on(l,p);return g}),u=Ve(r,Xk),f=o.filter(p=>c.every(g=>Dn(g[p]))),d=[...t.map(p=>{const[g]=on(l,p);return g}).filter(Dn).map(p=>g=>p[g]),...n.map((p,g)=>{const v=c[g],y=u[p]||m4e(v),x=eye().thresholds(y).value(_=>+v[_])(f),C=new Map(x.flatMap(_=>{const{x0:S,x1:O}=_,E=`${S},${O}`;return _.map(k=>[k,E])}));return i[p]=C,_=>C.get(_)})],h=p=>d.map(g=>g(p)).join("-");return Array.from(jn(f,h).values())};return pb(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([o])=>!o.startsWith(Xk)))),Object.fromEntries(n.flatMap(o=>{const s=([c])=>+i[o].get(c).split(",")[0],l=([c])=>+i[o].get(c).split(",")[1];return l.from=o,[[o,s],[`${o}1`,l]]}))),{groupBy:a}))};mb.props={};const GD=(e={})=>{const{thresholds:t}=e;return mb(Object.assign(Object.assign({},e),{thresholdsX:t,groupChannels:["color"],binChannels:["x"]}))};GD.props={};function v4e(e,t,n,r){const i=e.length;if(r>=i||r===0)return e;const a=h=>t[e[h]]*1,o=h=>n[e[h]]*1,s=[],l=(i-2)/(r-2);let c=0,u,f,d;s.push(c);for(let h=0;h<r-2;h++){let p=0,g=0,v=Math.floor((h+1)*l)+1,y=Math.floor((h+2)*l)+1;y=Math.min(y,i);const x=y-v;for(;v<y;v++)p+=a(v),g+=o(v);p/=x,g/=x;let C=Math.floor((h+0)*l)+1;const _=Math.floor((h+1)*l)+1,S=[a(c),o(c)];for(u=f=-1;C<_;C++)f=Math.abs((S[0]-p)*(a(C)-S[1])-(S[0]-o(C))*(g-S[0]))*.5,f>u&&(u=f,d=C);s.push(d),c=d}return s.push(i-1),s.map(h=>e[h])}function y4e(e){if(typeof e=="function")return e;if(e==="lttb")return v4e;const t={first:r=>[r[0]],last:r=>[r[r.length-1]],min:(r,i,a)=>[r[Pp(r,o=>a[o])]],max:(r,i,a)=>[r[Pd(r,o=>a[o])]],median:(r,i,a)=>[r[iye(r,o=>a[o])]]},n=t[e]||t.median;return(r,i,a,o)=>{const s=Math.max(1,Math.floor(r.length/o));return x4e(r,s).flatMap(c=>n(c,i,a))}}function x4e(e,t){const n=e.length,r=[];let i=0;for(;i<n;)r.push(e.slice(i,i+=t));return r}const UD=(e={})=>{const{strategy:t="median",thresholds:n=2e3,groupBy:r=["series","color"]}=e,i=y4e(t);return(a,o)=>{const{encode:s}=o,l=Dc(r,a,o),[c]=on(s,"x"),[u]=on(s,"y");return[l.flatMap(f=>i(f,c,u,n)),o]}};UD.props={};function b4e(e){return typeof e=="object"?[e.value,e.ordinal]:[e,!0]}function C4e(e){var t;const{encode:n}=e,r=Object.assign(Object.assign({},e),{encode:Object.assign(Object.assign({},e.encode),{y:Object.assign(Object.assign({},e.encode.y),{value:[]})})}),i=(t=n==null?void 0:n.color)===null||t===void 0?void 0:t.field;if(!n||!i)return r;let a;for(const[o,s]of Object.entries(n))(o==="x"||o==="y")&&s.field===i&&(a=Object.assign(Object.assign({},a),{[o]:Object.assign(Object.assign({},s),{value:[]})}));return a?Object.assign(Object.assign({},e),{encode:Object.assign(Object.assign({},e.encode),a)}):r}const YD=(e={})=>(t,n)=>{const{encode:r,data:i}=n,a=Object.entries(e).map(([u,f])=>{const[d]=on(r,u);if(!d)return null;const[h,p=!0]=b4e(f);if(typeof h=="function")return g=>h(d[g]);if(p){const g=Array.isArray(h)?h:[h];return g.length===0?null:v=>g.includes(d[v])}else{const[g,v]=h;return y=>d[y]>=g&&d[y]<=v}}).filter(Dn),o=u=>a.every(f=>f(u)),s=t.filter(o),l=s.map((u,f)=>f);if(a.length===0){const u=C4e(n);return[t,u]}const c=Object.entries(r).map(([u,f])=>[u,Object.assign(Object.assign({},f),{value:l.map(d=>f.value[s[d]]).filter(d=>d!==void 0)})]);return[l,_e({},n,{encode:Object.fromEntries(c),data:s.map(u=>i[u])})]};YD.props={};function qn(e){return function(){return e}}const qk=Math.abs,Ei=Math.atan2,gu=Math.cos,w4e=Math.max,k9=Math.min,as=Math.sin,P0=Math.sqrt,ki=1e-12,Hh=Math.PI,Cm=Hh/2,_4e=2*Hh;function S4e(e){return e>1?0:e<-1?Hh:Math.acos(e)}function Zk(e){return e>=1?Cm:e<=-1?-Cm:Math.asin(e)}const s7=Math.PI,l7=2*s7,Tu=1e-6,O4e=l7-Tu;function XD(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function E4e(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return XD;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let vb=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?XD:E4e(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=r-t,c=i-n,u=o-t,f=s-n,d=u*u+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(d>Tu)if(!(Math.abs(f*l-c*u)>Tu)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,p=i-s,g=l*l+c*c,v=h*h+p*p,y=Math.sqrt(g),x=Math.sqrt(d),C=a*Math.tan((s7-Math.acos((g+d-v)/(2*y*x)))/2),_=C/x,S=C/y;Math.abs(_-1)>Tu&&this._append`L${t+_*u},${n+_*f}`,this._append`A${a},${a},0,0,${+(f*h>
30u*p)},${this._x1=t+S*l},${this._y1=n+S*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Tu||Math.abs(this._y1-u)>Tu)&&this._append`L${c},${u}`,r&&(d<0&&(d=d%l7+l7),d>O4e?this._append`A${r},${r},0,1,${f},${t-s},${n-l}A${r},${r},0,1,${f},${this._x1=c},${this._y1=u}`:d>Tu&&this._append`A${r},${r},0,${+(d>=s7)},${f},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function co(){return new vb}co.prototype=vb.prototype;function yb(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new vb(t)}function k4e(e){return e.innerRadius}function A4e(e){return e.outerRadius}function $4e(e){return e.startAngle}function T4e(e){return e.endAngle}function P4e(e){return e&&e.padAngle}function M4e(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,u=o-i,f=s-a,d=f*l-u*c;if(!(d*d<ki))return d=(u*(t-a)-f*(e-i))/d,[e+d*l,t+d*c]}function p5(e,t,n,r,i,a,o){var s=e-n,l=t-r,c=(o?a:-a)/P0(s*s+l*l),u=c*l,f=-c*s,d=e+u,h=t+f,p=n+u,g=r+f,v=(d+p)/2,y=(h+g)/2,x=p-d,C=g-h,_=x*x+C*C,S=i-a,O=d*g-p*h,E=(C<0?-1:1)*P0(w4e(0,S*S*_-O*O)),k=(O*C-x*E)/_,$=(-O*x-C*E)/_,T=(O*C+x*E)/_,M=(-O*x+C*E)/_,R=k-v,N=$-y,D=T-v,F=M-y;return R*R+N*N>D*D+F*F&&(k=T,$=M),{cx:k,cy:$,x01:-u,y01:-f,x11:k*(i/S-1),y11:$*(i/S-1)}}function xb(){var e=k4e,t=A4e,n=qn(0),r=null,i=$4e,a=T4e,o=P4e,s=null,l=yb(c);function c(){var u,f,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-Cm,g=a.apply(this,arguments)-Cm,v=qk(g-p),y=g>p;if(s||(s=u=l()),h<d&&(f=h,h=d,d=f),!(h>ki))s.moveTo(0,0);else if(v>_4e-ki)s.moveTo(h*gu(p),h*as(p)),s.arc(0,0,h,p,g,!y),d>ki&&(s.moveTo(d*gu(g),d*as(g)),s.arc(0,0,d,g,p,y));else{var x=p,C=g,_=p,S=g,O=v,E=v,k=o.apply(this,arguments)/2,$=k>ki&&(r?+r.apply(this,arguments):P0(d*d+h*h)),T=k9(qk(h-d)/2,+n.apply(this,arguments)),M=T,R=T,N,D;if($>ki){var F=Zk($/d*as(k)),V=Zk($/h*as(k));(O-=F*2)>ki?(F*=y?1:-1,_+=F,S-=F):(O=0,_=S=(p+g)/2),(E-=V*2)>ki?(V*=y?1:-1,x+=V,C-=V):(E=0,x=C=(p+g)/2)}var z=h*gu(x),B=h*as(x),G=d*gu(S),Y=d*as(S);if(T>ki){var K=h*gu(C),Q=h*as(C),ne=d*gu(_),oe=d*as(_),ae;if(v<Hh)if(ae=M4e(z,B,ne,oe,K,Q,G,Y)){var ce=z-ae[0],fe=B-ae[1],le=K-ae[0],be=Q-ae[1],Ce=1/as(S4e((ce*le+fe*be)/(P0(ce*ce+fe*fe)*P0(le*le+be*be)))/2),$e=P0(ae[0]*ae[0]+ae[1]*ae[1]);M=k9(T,(d-$e)/(Ce-1)),R=k9(T,(h-$e)/(Ce+1))}else M=R=0}E>ki?R>ki?(N=p5(ne,oe,z,B,h,R,y),D=p5(K,Q,G,Y,h,R,y),s.moveTo(N.cx+N.x01,N.cy+N.y01),R<T?s.arc(N.cx,N.cy,R,Ei(N.y01,N.x01),Ei(D.y01,D.x01),!y):(s.arc(N.cx,N.cy,R,Ei(N.y01,N.x01),Ei(N.y11,N.x11),!y),s.arc(0,0,h,Ei(N.cy+N.y11,N.cx+N.x11),Ei(D.cy+D.y11,D.cx+D.x11),!y),s.arc(D.cx,D.cy,R,Ei(D.y11,D.x11),Ei(D.y01,D.x01),!y))):(s.moveTo(z,B),s.arc(0,0,h,x,C,!y)):s.moveTo(z,B),!(d>ki)||!(O>ki)?s.lineTo(G,Y):M>ki?(N=p5(G,Y,K,Q,d,-M,y),D=p5(z,B,ne,oe,d,-M,y),s.lineTo(N.cx+N.x01,N.cy+N.y01),M<T?s.arc(N.cx,N.cy,M,Ei(N.y01,N.x01),Ei(D.y01,D.x01),!y):(s.arc(N.cx,N.cy,M,Ei(N.y01,N.x01),Ei(N.y11,N.x11),!y),s.arc(0,0,d,Ei(N.cy+N.y11,N.cx+N.x11),Ei(D.cy+D.y11,D.cx+D.x11),y),s.arc(D.cx,D.cy,M,Ei(D.y11,D.x11),Ei(D.y01,D.x01),!y))):s.arc(0,0,d,S,_,y)}if(s.closePath(),u)return s=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,f=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Hh/2;return[gu(f)*u,as(f)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:qn(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:qn(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:qn(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:qn(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:qn(+u),c):i},c.endAngle=function(u){return arguments.length?(a=typeof u=="function"?u:qn(+u),c):a},c.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:qn(+u),c):o},c.context=function(u){return arguments.length?(s=u??null,c):s},c}function qD(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ZD(e){this._context=e}ZD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Rp(e){return new ZD(e)}function KD(e){return e[0]}function JD(e){return e[1]}function gf(e,t){var n=qn(!0),r=null,i=Rp,a=null,o=yb(s);e=typeof e=="function"?e:e===void 0?KD:qn(e),t=typeof t=="function"?t:t===void 0?JD:qn(t);function s(l){var c,u=(l=qD(l)).length,f,d=!1,h;for(r==null&&(a=i(h=o())),c=0;c<=u;++c)!(c<u&&n(f=l[c],c,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,c,l),+t(f,c,l));if(h)return a=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:qn(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:qn(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:qn(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(a=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=a=null:a=i(r=l),s):r},s}
vendor: 2,114 bytes, line 30
30function c7(e,t,n){var r=null,i=qn(!0),a=null,o=Rp,s=null,l=yb(c);e=typeof e=="function"?e:e===void 0?KD:qn(+e),t=typeof t=="function"?t:qn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?JD:qn(+n);function c(f){var d,h,p,g=(f=qD(f)).length,v,y=!1,x,C=new Array(g),_=new Array(g);for(a==null&&(s=o(x=l())),d=0;d<=g;++d){if(!(d<g&&i(v=f[d],d,f))===y)if(y=!y)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=d-1;p>=h;--p)s.point(C[p],_[p]);s.lineEnd(),s.areaEnd()}y&&(C[d]=+e(v,d,f),_[d]=+t(v,d,f),s.point(r?+r(v,d,f):C[d],n?+n(v,d,f):_[d]))}if(x)return s=null,x+""||null}function u(){return gf().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:qn(+f),r=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:qn(+f),c):e},c.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:qn(+f),c):r},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:qn(+f),n=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:qn(+f),c):t},c.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:qn(+f),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:qn(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),c):a},c}var QD=bb(Rp);function eF(e){this._curve=e}eF.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function bb(e){function t(n){return new eF(e(n))}return t._curve=e,t}function D1(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(bb(n)):t()._curve},e}function N4e(){return D1(gf().curve(QD))}
vendor: 4,177 bytes, line 30
30function I4e(){var e=c7().curve(QD),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return D1(n())},delete e.lineX0,e.lineEndAngle=function(){return D1(r())},delete e.lineX1,e.lineInnerRadius=function(){return D1(i())},delete e.lineY0,e.lineOuterRadius=function(){return D1(a())},delete e.lineY1,e.curve=function(o){return arguments.length?t(bb(o)):t()._curve},e}function fd(){}function u7(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Cb(e,t){this._context=e,this._k=(1-t)/6}Cb.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:u7(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:u7(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(r){return new Cb(r,t)}return n.tension=function(r){return e(+r)},n})(0);function wb(e,t){this._context=e,this._k=(1-t)/6}wb.prototype={areaStart:fd,areaEnd:fd,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:u7(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(r){return new wb(r,t)}return n.tension=function(r){return e(+r)},n})(0);function tF(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>ki){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>ki){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function nF(e,t){this._context=e,this._alpha=t}nF.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._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:tF(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(r){return t?new nF(r,t):new Cb(r,0)}
vendor: 5,060 bytes, line 30
30return n.alpha=function(r){return e(+r)},n})(.5);function rF(e,t){this._context=e,this._alpha=t}rF.prototype={areaStart:fd,areaEnd:fd,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:tF(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const iF=function e(t){function n(r){return t?new rF(r,t):new wb(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function aF(e){this._context=e}aF.prototype={areaStart:fd,areaEnd:fd,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function _b(e){return new aF(e)}function Kk(e){return e<0?-1:1}function Jk(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Kk(a)+Kk(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Qk(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function A9(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function wm(e){this._context=e}wm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:A9(this,this._t0,Qk(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,A9(this,Qk(this,n=Jk(this,e,t)),n);break;default:A9(this,this._t0,n=Jk(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function oF(e){this._context=new sF(e)}(oF.prototype=Object.create(wm.prototype)).point=function(e,t){wm.prototype.point.call(this,t,e)};function sF(e){this._context=e}sF.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function lF(e){return new wm(e)}function cF(e){return new oF(e)}function Z3(e,t){this._context=e,this._t=t}Z3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function uF(e){return new Z3(e,.5)}function fF(e){return new Z3(e,0)}function dF(e){return new Z3(e,1)}function Un(e){const{transformations:t}=e.getOptions();return t.map(([r])=>r).filter(r=>r==="transpose").length%2!==0}function On(e){const{transformations:t}=e.getOptions();return t.some(([n])=>n==="polar")}function K3(e){const{transformations:t}=e.getOptions();return t.some(([n])=>n==="reflect")&&t.some(([n])=>n.startsWith("transpose"))}function hF(e){const{transformations:t}=e.getOptions();return t.some(([n])=>n==="helix")}function J3(e){const{transformations:t}=e.getOptions();return t.some(([n])=>n==="parallel")}function pF(e){const{transformations:t}=e.getOptions();return t.some(([n])=>n==="fisheye")}function L4e(e){return J3(e)&&On(e)}function Md(e){return hF(e)||On(e)}function R4e(e){return On(e)&&Un(e)}function j4e(e){if(Md(e)){const[t,n]=e.getSize(),r=e.getOptions().transformations.find(i=>i[0]==="polar");
30if(r)return Math.max(t,n)/2*r[4]}return 0}function Q3(e){const{transformations:t}=e.getOptions(),[,,,n,r]=t.find(i=>i[0]==="polar");return[+n,+r]}function Sb(e,t=!0){const{transformations:n}=e.getOptions(),[,r,i]=n.find(a=>a[0]==="polar");return t?[+r*180/Math.PI,+i*180/Math.PI]:[r,i]}function D4e(e,t){const{transformations:n}=e.getOptions(),[,...r]=n.find(i=>i[0]===t);return r}var $9={exports:{}},eA;function F4e(){return eA||(eA=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function a(l,c,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,f||l,d),p=n?n+c:c;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],h]:l._events[p].push(h):(l._events[p]=h,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)t.call(u,f)&&c.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,p=new Array(h);d<h;d++)p[d]=f[d].fn;return p},s.prototype.listenerCount=function(c){var u=n?n+c:c,f=this._events[u];return f?f.fn?1:f.length:0},s.prototype.emit=function(c,u,f,d,h,p){var g=n?n+c:c;if(!this._events[g])return!1;var v=this._events[g],y=arguments.length,x,C;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,u),!0;case 3:return v.fn.call(v.context,u,f),!0;case 4:return v.fn.call(v.context,u,f,d),!0;case 5:return v.fn.call(v.context,u,f,d,h),!0;case 6:return v.fn.call(v.context,u,f,d,h,p),!0}for(C=1,x=new Array(y-1);C<y;C++)x[C-1]=arguments[C];v.fn.apply(v.context,x)}else{var _=v.length,S;for(C=0;C<_;C++)switch(v[C].once&&this.removeListener(c,v[C].fn,void 0,!0),y){case 1:v[C].fn.call(v[C].context);break;case 2:v[C].fn.call(v[C].context,u);break;case 3:v[C].fn.call(v[C].context,u,f);break;case 4:v[C].fn.call(v[C].context,u,f,d);break;default:if(!x)for(S=1,x=new Array(y-1);S<y;S++)x[S-1]=arguments[S];v[C].fn.apply(v[C].context,x)}}return!0},s.prototype.on=function(c,u,f){return a(this,c,u,f,!1)},s.prototype.once=function(c,u,f){return a(this,c,u,f,!0)},s.prototype.removeListener=function(c,u,f,d){var h=n?n+c:c;if(!this._events[h])return this;if(!u)return o(this,h),this;var p=this._events[h];if(p.fn)p.fn===u&&(!d||p.once)&&(!f||p.context===f)&&o(this,h);else{for(var g=0,v=[],y=p.length;g<y;g++)(p[g].fn!==u||d&&!p[g].once||f&&p[g].context!==f)&&v.push(p[g]);v.length?this._events[h]=v.length===1?v[0]:v:o(this,h)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&o(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}($9)),$9.exports}var B4e=F4e();const gF=xp(B4e);function z4e(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=AN(e))!==null;);return e}function f7(){return f7=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=z4e(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},f7.apply(null,arguments)}function tA(e,t,n,r){var i=f7(AN(e.prototype),t,n);return typeof i=="function"?function(a){return i.apply(n,a)}:i}/*!
31 * @antv/g-math
32 * @description Geometry util
33 * @version 3.0.1
34 * @date 5/9/2025, 8:18:51 AM
35 * @author AntVis
36 * @docs https://g.antv.antgroup.com/
37 */function El(e,t,n,r){var i=e-n,a=t-r;return Math.sqrt(i*i+a*a)}function mF(e,t){var n=Math.min.apply(Math,Gt(e)),r=Math.min.apply(Math,Gt(t)),i=Math.max.apply(Math,Gt(e)),a=Math.max.apply(Math,Gt(t));return{x:n,y:r,width:i-n,height:a-r}}function V4e(e,t,n){return Math.atan(-t/e*Math.tan(n))}function W4e(e,t,n){return Math.atan(t/(e*Math.tan(n)))}function H4e(e,t,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+e}function G4e(e,t,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+t}function U4e(e,t,n,r,i,a,o){for(var s=V4e(n,r,i),l=1/0,c=-1/0,u=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var d=s+f;a<o?a<d&&d<o&&u.push(d):o<d&&d<a&&u.push(d)}for(var h=0;h<u.length;h++){var p=H4e(e,t,n,r,i,u[h]);p<l&&(l=p),p>c&&(c=p)}for(var g=W4e(n,r,i),v=1/0,y=-1/0,x=[a,o],C=-Math.PI*2;C<=Math.PI*2;C+=Math.PI){var _=g+C;a<o?a<_&&_<o&&x.push(_):o<_&&_<a&&x.push(_)}for(var S=0;S<x.length;S++){var O=G4e(e,t,n,r,i,x[S]);O<v&&(v=O),O>y&&(y=O)}return{x:l,y:v,width:c-l,height:y-v}}var Y4e=1e-4;function vF(e,t,n,r,i,a){var o=-1,s=1/0,l=[n,r],c=20;a&&a>200&&(c=a/10);for(var u=1/c,f=u/10,d=0;d<=c;d++){var h=d*u,p=[i.apply(void 0,Gt(e.concat([h]))),i.apply(void 0,Gt(t.concat([h])))],g=El(l[0],l[1],p[0],p[1]);g<s&&(o=h,s=g)}if(o===0)return{x:e[0],y:t[0]};if(o===1){var v=e.length;return{x:e[v-1],y:t[v-1]}}s=1/0;for(var y=0;y<32&&!(f<Y4e);y++){var x=o-f,C=o+f,_=[i.apply(void 0,Gt(e.concat([x]))),i.apply(void 0,Gt(t.concat([x])))],S=El(l[0],l[1],_[0],_[1]);if(x>=0&&S<s)o=x,s=S;else{var O=[i.apply(void 0,Gt(e.concat([C]))),i.apply(void 0,Gt(t.concat([C])))],E=El(l[0],l[1],O[0],O[1]);C<=1&&E<s?(o=C,s=E):f*=.5}}return{x:i.apply(void 0,Gt(e.concat([o]))),y:i.apply(void 0,Gt(t.concat([o])))}}function yF(e,t,n,r){return El(e,t,n,r)}function xF(e,t,n,r,i){return{x:(1-i)*e+i*n,y:(1-i)*t+i*r}}function X4e(e,t,n,r,i,a){var o=[n-e,r-t];if(tve(o,[0,0]))return Math.sqrt((i-e)*(i-e)+(a-t)*(a-t));var s=[-o[1],o[0]];Q3e(s,s);var l=[i-e,a-t];return Math.abs(eve(l,s))}function d7(e,t,n,r,i){var a=1-i;return a*a*a*e+3*t*i*a*a+3*n*i*i*a+r*i*i*i}function nA(e,t,n,r){var i=-3*e+9*t-9*n+3*r,a=6*e-12*t+6*n,o=3*t-3*e,s=[],l,c,u;if(fh(i,0))fh(a,0)||(l=-o/a,l>=0&&l<=1&&s.push(l));else{var f=a*a-4*i*o;fh(f,0)?s.push(-a/(2*i)):f>0&&(u=Math.sqrt(f),l=(-a+u)/(2*i),c=(-a-u)/(2*i),l>=0&&l<=1&&s.push(l),c>=0&&c<=1&&s.push(c))}return s}function q4e(e,t,n,r,i,a,o,s){for(var l=[e,o],c=[t,s],u=nA(e,n,i,o),f=nA(t,r,a,s),d=0;d<u.length;d++)l.push(d7(e,n,i,o,u[d]));for(var h=0;h<f.length;h++)c.push(d7(t,r,a,s,f[h]));return mF(l,c)}function Z4e(e,t,n,r,i,a,o,s,l,c,u){return vF([e,n,i,o],[t,r,a,s],l,c,d7,u)}function rA(e,t,n,r,i,a,o,s,l,c,u){var f=Z4e(e,t,n,r,i,a,o,s,l,c,u);return El(f.x,f.y,l,c)}function K4e(e){if(e.length<2)return 0;for(var t=0,n=0;n<e.length-1;n++){var r=e[n],i=e[n+1];t+=El(r[0],r[1],i[0],i[1])}return t}function J4e(e){return K4e(e)}function h7(e,t,n,r){var i=1-r;return i*i*e+2*r*i*t+r*r*n}function iA(e,t,n){var r=e+n-2*t;if(fh(r,0))return[.5];var i=(e-t)/r;return i<=1&&i>=0?[i]:[]}function Q4e(e,t,n,r,i,a){var o=iA(e,n,i)[0],s=iA(t,r,a)[0],l=[e,i],c=[t,a];return o!==void 0&&l.push(h7(e,n,i,o)),s!==void 0&&c.push(h7(t,r,a,s)),mF(l,c)}function e6e(e,t,n,r,i,a,o,s){return vF([e,n,i],[t,r,a],o,s,h7)}function t6e(e,t,n,r,i,a,o,s){var l=e6e(e,t,n,r,i,a,o,s);return El(l.x,l.y,o,s)}var n6e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof vc<"u"?vc:typeof self<"u"?self:{},bF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(n6e,function(){function n(S,O,E,k,$){r(S,O,E||0,k||S.length-1,$||a)}function r(S,O,E,k,$){for(;k>E;){if(k-E>600){var T=k-E+1,M=O-E+1,R=Math.log(T),N=.5*Math.exp(2*R/3),D=.5*Math.sqrt(R*N*(T-N)/T)*(M-T/2<0?-1:1),F=Math.max(E,Math.floor(O-M*N/T+D)),V=Math.min(k,Math.floor(O+(T-M)*N/T+D));r(S,O,F,V,$)}var z=S[O],B=E,G=k;for(i(S,E,O),$(S[k],z)>0&&i(S,E,k);B<G;){for(i(S,B,G),B++,G--;$(S[B],z)<0;)B++;for(;$(S[G],z)>0;)G--}$(S[E],z)===0?i(S,E,G):(G++,i(S,G,k)),G<=O&&(E=G+1),O<=G&&(k=G-1)}}function i(S,O,E){var k=S[O];S[O]=S[E],S[E]=k}function a(S,O){return S<O?-1:S>O?1:0}var o=function(O){O===void 0&&(O=9),this._maxEntries=Math.max(4,O),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()};o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(O){var E=this.data,k=[];if(!x(O,E))return k;for(var $=this.toBBox,T=[];E;){for(var M=0;M<E.children.length;M++){var R=E.children[M],N=E.leaf?$(R):R;x(O,N)&&(E.leaf?k.push(R):y(O,N)?this._all(R,k):T.push(R))}E=T.pop()}return k},o.prototype.collides=function(O){var E=this.data;if(!x(O,E))return!1;for(var k=[];E;){for(var $=0;$<E.children.length;$++){var T=E.children[$],M=E.leaf?this.toBBox(T):T;if(x(O,M)){if(E.leaf||y(O,M))return!0;k.push(T)}}E=k.pop()}return!1},o.prototype.load=function(O){if(!(O&&O.length))return this;if(O.length<this._minEntries){for(var E=0;E<O.length;E++)this.insert(O[E]);return this}var k=this._build(O.slice(),0,O.length-1,0);if(!this.data.children.length)this.data=k;else if(this.data.height===k.height)this._splitRoot(this.data,k);else{if(this.data.height<k.height){var $=this.data;this.data=k,k=$}this._insert(k,this.data.height-k.height-1,!0)}return this},o.prototype.insert=function(O){return O&&this._insert(O,this.data.height-1),this},o.prototype.clear=function(){return this.data=C([]),this},o.prototype.remove=function(O,E){if(!O)return this;for(var k=this.data,$=this.toBBox(O),T=[],M=[],R,N,D;k||T.length;){if(k||(k=T.pop(),N=T[T.length-1],R=M.pop(),D=!0),k.leaf){var F=s(O,k.children,E);if(F!==-1)return k.children.splice(F,1),T.push(k),this._condense(T),this}
37!D&&!k.leaf&&y(k,$)?(T.push(k),M.push(R),R=0,N=k,k=k.children[0]):N?(R++,k=N.children[R],D=!1):k=null}return this},o.prototype.toBBox=function(O){return O},o.prototype.compareMinX=function(O,E){return O.minX-E.minX},o.prototype.compareMinY=function(O,E){return O.minY-E.minY},o.prototype.toJSON=function(){return this.data},o.prototype.fromJSON=function(O){return this.data=O,this},o.prototype._all=function(O,E){for(var k=[];O;)O.leaf?E.push.apply(E,O.children):k.push.apply(k,O.children),O=k.pop();return E},o.prototype._build=function(O,E,k,$){var T=k-E+1,M=this._maxEntries,R;if(T<=M)return R=C(O.slice(E,k+1)),l(R,this.toBBox),R;$||($=Math.ceil(Math.log(T)/Math.log(M)),M=Math.ceil(T/Math.pow(M,$-1))),R=C([]),R.leaf=!1,R.height=$;var N=Math.ceil(T/M),D=N*Math.ceil(Math.sqrt(M));_(O,E,k,D,this.compareMinX);for(var F=E;F<=k;F+=D){var V=Math.min(F+D-1,k);_(O,F,V,N,this.compareMinY);for(var z=F;z<=V;z+=N){var B=Math.min(z+N-1,V);R.children.push(this._build(O,z,B,$-1))}}return l(R,this.toBBox),R},o.prototype._chooseSubtree=function(O,E,k,$){for(;$.push(E),!(E.leaf||$.length-1===k);){for(var T=1/0,M=1/0,R=void 0,N=0;N<E.children.length;N++){var D=E.children[N],F=h(D),V=g(O,D)-F;V<M?(M=V,T=F<T?F:T,R=D):V===M&&F<T&&(T=F,R=D)}E=R||E.children[0]}return E},o.prototype._insert=function(O,E,k){var $=k?O:this.toBBox(O),T=[],M=this._chooseSubtree($,this.data,E,T);for(M.children.push(O),u(M,$);E>=0&&T[E].children.length>this._maxEntries;)this._split(T,E),E--;this._adjustParentBBoxes($,T,E)},o.prototype._split=function(O,E){var k=O[E],$=k.children.length,T=this._minEntries;this._chooseSplitAxis(k,T,$);var M=this._chooseSplitIndex(k,T,$),R=C(k.children.splice(M,k.children.length-M));R.height=k.height,R.leaf=k.leaf,l(k,this.toBBox),l(R,this.toBBox),E?O[E-1].children.push(R):this._splitRoot(k,R)},o.prototype._splitRoot=function(O,E){this.data=C([O,E]),this.data.height=O.height+1,this.data.leaf=!1,l(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(O,E,k){for(var $,T=1/0,M=1/0,R=E;R<=k-E;R++){var N=c(O,0,R,this.toBBox),D=c(O,R,k,this.toBBox),F=v(N,D),V=h(N)+h(D);F<T?(T=F,$=R,M=V<M?V:M):F===T&&V<M&&(M=V,$=R)}return $||k-E},o.prototype._chooseSplitAxis=function(O,E,k){var $=O.leaf?this.compareMinX:f,T=O.leaf?this.compareMinY:d,M=this._allDistMargin(O,E,k,$),R=this._allDistMargin(O,E,k,T);M<R&&O.children.sort($)},o.prototype._allDistMargin=function(O,E,k,$){O.children.sort($);for(var T=this.toBBox,M=c(O,0,E,T),R=c(O,k-E,k,T),N=p(M)+p(R),D=E;D<k-E;D++){var F=O.children[D];u(M,O.leaf?T(F):F),N+=p(M)}for(var V=k-E-1;V>=E;V--){var z=O.children[V];u(R,O.leaf?T(z):z),N+=p(R)}return N},o.prototype._adjustParentBBoxes=function(O,E,k){for(var $=k;$>=0;$--)u(E[$],O)},o.prototype._condense=function(O){for(var E=O.length-1,k=void 0;E>=0;E--)O[E].children.length===0?E>0?(k=O[E-1].children,k.splice(k.indexOf(O[E]),1)):this.clear():l(O[E],this.toBBox)};function s(S,O,E){if(!E)return O.indexOf(S);for(var k=0;k<O.length;k++)if(E(S,O[k]))return k;return-1}function l(S,O){c(S,0,S.children.length,O,S)}function c(S,O,E,k,$){$||($=C(null)),$.minX=1/0,$.minY=1/0,$.maxX=-1/0,$.maxY=-1/0;for(var T=O;T<E;T++){var M=S.children[T];u($,S.leaf?k(M):M)}return $}function u(S,O){return S.minX=Math.min(S.minX,O.minX),S.minY=Math.min(S.minY,O.minY),S.maxX=Math.max(S.maxX,O.maxX),S.maxY=Math.max(S.maxY,O.maxY),S}function f(S,O){return S.minX-O.minX}function d(S,O){return S.minY-O.minY}function h(S){return(S.maxX-S.minX)*(S.maxY-S.minY)}function p(S){return S.maxX-S.minX+(S.maxY-S.minY)}function g(S,O){return(Math.max(O.maxX,S.maxX)-Math.min(O.minX,S.minX))*(Math.max(O.maxY,S.maxY)-Math.min(O.minY,S.minY))}function v(S,O){var E=Math.max(S.minX,O.minX),k=Math.max(S.minY,O.minY),$=Math.min(S.maxX,O.maxX),T=Math.min(S.maxY,O.maxY);return Math.max(0,$-E)*Math.max(0,T-k)}function y(S,O){return S.minX<=O.minX&&S.minY<=O.minY&&O.maxX<=S.maxX&&O.maxY<=S.maxY}function x(S,O){return O.minX<=S.maxX&&O.minY<=S.maxY&&O.maxX>=S.minX&&O.maxY>=S.minY}function C(S){return{children:S,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(S,O,E,k,$){for(var T=[O,E];T.length;)if(E=T.pop(),O=T.pop(),!(E-O<=k)){var M=O+Math.ceil((E-O)/k/2)*k;n(S,M,O,E,$),T.push(O,M,M,E)}}return o}
37)})(bF);var r6e=bF.exports,xe=function(e){return e.GROUP="g",e.FRAGMENT="fragment",e.CIRCLE="circle",e.ELLIPSE="ellipse",e.IMAGE="image",e.RECT="rect",e.LINE="line",e.POLYLINE="polyline",e.POLYGON="polygon",e.TEXT="text",e.PATH="path",e.HTML="html",e.MESH="mesh",e}({}),Ag=function(e){return e[e.ZERO=0]="ZERO",e[e.NEGATIVE_ONE=1]="NEGATIVE_ONE",e}({}),Bc=function(){function e(){Pe(this,e),this.plugins=[]}return Te(e,[{key:"addRenderingPlugin",value:function(n){this.plugins.push(n),this.context.renderingPlugins.push(n)}},{key:"removeAllRenderingPlugins",value:function(){var n=this;this.plugins.forEach(function(r){var i=n.context.renderingPlugins.indexOf(r);i>=0&&n.context.renderingPlugins.splice(i,1)})}}])}(),i6e=function(){function e(t){Pe(this,e),this.clipSpaceNearZ=Ag.NEGATIVE_ONE,this.plugins=[],this.config=Tt({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1,enableSizeAttenuation:!0,enableRenderingOptimization:!1},t)}return Te(e,[{key:"registerPlugin",value:function(n){var r=this.plugins.findIndex(function(i){return i===n});r===-1&&this.plugins.push(n)}},{key:"unregisterPlugin",value:function(n){var r=this.plugins.findIndex(function(i){return i===n});r>-1&&this.plugins.splice(r,1)}},{key:"getPlugins",value:function(){return this.plugins}},{key:"getPlugin",value:function(n){return this.plugins.find(function(r){return r.name===n})}},{key:"getConfig",value:function(){return this.config}},{key:"setConfig",value:function(n){Object.assign(this.config,n)}}])}(),T9=_c,o0=ys,a6e=V3e,o6e=z3e,aA=fm,P9=G3e,Ar=function(){function e(){Pe(this,e),this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return Te(e,[{key:"update",value:function(n,r){o0(this.center,n),o0(this.halfExtents,r),P9(this.min,this.center,this.halfExtents),T9(this.max,this.center,this.halfExtents)}},{key:"setMinMax",value:function(n,r){T9(this.center,r,n),aA(this.center,this.center,.5),P9(this.halfExtents,r,n),aA(this.halfExtents,this.halfExtents,.5),o0(this.min,n),o0(this.max,r)}},{key:"getMin",value:function(){return this.min}},{key:"getMax",value:function(){return this.max}},{key:"add",value:function(n){if(!e.isEmpty(n)){if(e.isEmpty(this)){this.setMinMax(n.getMin(),n.getMax());return}var r=this.center,i=r[0],a=r[1],o=r[2],s=this.halfExtents,l=s[0],c=s[1],u=s[2],f=i-l,d=i+l,h=a-c,p=a+c,g=o-u,v=o+u,y=n.center,x=y[0],C=y[1],_=y[2],S=n.halfExtents,O=S[0],E=S[1],k=S[2],$=x-O,T=x+O,M=C-E,R=C+E,N=_-k,D=_+k;$<f&&(f=$),T>d&&(d=T),M<h&&(h=M),R>p&&(p=R),N<g&&(g=N),D>v&&(v=D),r[0]=(f+d)*.5,r[1]=(h+p)*.5,r[2]=(g+v)*.5,s[0]=(d-f)*.5,s[1]=(p-h)*.5,s[2]=(v-g)*.5,this.min[0]=f,this.min[1]=h,this.min[2]=g,this.max[0]=d,this.max[1]=p,this.max[2]=v}}},{key:"setFromTransformedAABB",value:function(n,r){var i=this.center,a=this.halfExtents,o=n.center,s=n.halfExtents,l=r[0],c=r[4],u=r[8],f=r[1],d=r[5],h=r[9],p=r[2],g=r[6],v=r[10],y=Math.abs(l),x=Math.abs(c),C=Math.abs(u),_=Math.abs(f),S=Math.abs(d),O=Math.abs(h),E=Math.abs(p),k=Math.abs(g),$=Math.abs(v);i[0]=r[12]+l*o[0]+c*o[1]+u*o[2],i[1]=r[13]+f*o[0]+d*o[1]+h*o[2],i[2]=r[14]+p*o[0]+g*o[1]+v*o[2],a[0]=y*s[0]+x*s[1]+C*s[2],a[1]=_*s[0]+S*s[1]+O*s[2],a[2]=E*s[0]+k*s[1]+$*s[2],P9(this.min,i,a),T9(this.max,i,a)}},{key:"intersects",value:function(n){var r=this.getMax(),i=this.getMin(),a=n.getMax(),o=n.getMin();return i[0]<=a[0]&&r[0]>=o[0]&&i[1]<=a[1]&&r[1]>=o[1]&&i[2]<=a[2]&&r[2]>=o[2]}},{key:"intersection",value:function(n){if(!this.intersects(n))return null;var r=new e,i=a6e([0,0,0],this.getMin(),n.getMin()),a=o6e([0,0,0],this.getMax(),n.getMax());return r.setMinMax(i,a),r}},{key:"getNegativeFarPoint",value:function(n){return n.pnVertexFlag===273?o0([0,0,0],this.min):n.pnVertexFlag===272?[this.min[0],this.min[1],this.max[2]]:n.pnVertexFlag===257?[this.min[0],this.max[1],this.min[2]]:n.pnVertexFlag===256?[this.min[0],this.max[1],this.max[2]]:n.pnVertexFlag===17?[this.max[0],this.min[1],this.min[2]]:n.pnVertexFlag===16?[this.max[0],this.min[1],this.max[2]]:n.pnVertexFlag===1?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]}},{key:"getPositiveFarPoint",value:function(n){return n.pnVertexFlag===273?o0([0,0,0],this.max):n.pnVertexFlag===272?[this.max[0],this.max[1],this.min[2]]:n.pnVertexFlag===257?[this.max[0],this.min[1],this.max[2]]:n.pnVertexFlag===256?[this.max[0],this.min[1],this.min[2]]:n.pnVertexFlag===17?[this.min[0],this.max[1],this.max[2]]:n.pnVertexFlag===16?[this.min[0],this.max[1],this.min[2]]:n.pnVertexFlag===1?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]}}],[{key:"isEmpty",value:function(n){return!n||n.halfExtents[0]===0&&n.halfExtents[1]===0&&n.halfExtents[2]===0}}])}(),s6e=function(){function e(t,n){Pe(this,e),this.distance=t||0,this.normal=n||fn(0,1,0),this.updatePNVertexFlag()}return Te(e,[{key:"updatePNVertexFlag",value:function(){this.pnVertexFlag=(+(this.normal[0]>=0)<<8)+(+(this.normal[1]>=0)<<4)+ +(this.normal[2]>=0)}},{key:"distanceToPoint",value:function(n){return xs(n,this.normal)-this.distance}},{key:"normalize",value:function(){var n=1/gj(this.normal);fm(this.normal,this.normal,n),this.distance*=n}},{key:"intersectsLine",value:function(n,r,i){var a=this.distanceToPoint(n),o=this.distanceToPoint(r),s=a/(a-o),l=s>=0&&s<=1;return l&&i&&Z6(i,n,r,s),l}}])}(),s0=function(e){return e[e.OUTSIDE=4294967295]="OUTSIDE",e[e.INSIDE=0]="INSIDE",e[e.INDETERMINATE=2147483647]="INDETERMINATE",e}({}),l6e=function(){function e(t){if(Pe(this,e),this.planes=[],t)this.planes=t;else for(var n=0;n<6;n++)this.planes.push(new s6e)}return Te(e,[{key:"extractFromVPMatrix",value:function(n){var r=St(n,16),i=r[0],a=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=r[6],f=r[7],d=r[8],h=r[9],p=r[10],g=r[11],v=r[12],y=r[13],x=r[14],C=r[15];$i(this.planes[0].normal,s-i,f-l,g-d),this.planes[0].distance=C-v,$i(this.planes[1].normal,s+i,f+l,g+d),this.planes[1].distance=C+v,$i(this.planes[2].normal,s+a,f+c,g+h),this.planes[2].distance=C+y,$i(this.planes[3].normal,s-a,f-c,g-h),this.planes[3].distance=C-y,$i(this.planes[4].normal,s-o,f-u,g-p),this.planes[4].distance=C-x,$i(this.planes[5].normal,s+o,f+u,g+p),this.planes[5].distance=C+x,this.planes.forEac
37h(function(_){_.normalize(),_.updatePNVertexFlag()})}}])}(),mi=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Pe(this,e),this.x=0,this.y=0,this.x=t,this.y=n}return Te(e,[{key:"clone",value:function(){return new e(this.x,this.y)}},{key:"copyFrom",value:function(n){this.x=n.x,this.y=n.y}}])}(),dd=function(){function e(t,n,r,i){Pe(this,e),this.x=t,this.y=n,this.width=r,this.height=i,this.left=t,this.right=t+r,this.top=n,this.bottom=n+i}return Te(e,[{key:"toJSON",value:function(){}}],[{key:"fromRect",value:function(n){return new e(n.x,n.y,n.width,n.height)}},{key:"applyTransform",value:function(n,r){var i=j1(n.x,n.y,0,1),a=j1(n.x+n.width,n.y,0,1),o=j1(n.x,n.y+n.height,0,1),s=j1(n.x+n.width,n.y+n.height,0,1),l=bs(),c=bs(),u=bs(),f=bs();Cs(l,i,r),Cs(c,a,r),Cs(u,o,r),Cs(f,s,r);var d=Math.min(l[0],c[0],u[0],f[0]),h=Math.min(l[1],c[1],u[1],f[1]),p=Math.max(l[0],c[0],u[0],f[0]),g=Math.max(l[1],c[1],u[1],f[1]);return e.fromRect({x:d,y:h,width:p-d,height:g-h})}}])}(),$n="Method not implemented.",l0="Use document.documentElement instead.",c6e="Cannot append a destroyed element.";function B0(e){return e===void 0?0:e>360||e<-360?e%360:e}var M9=qt();function Hi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return Array.isArray(e)&&e.length===3?r?fl(e):ys(M9,e):Jn(e)?r?fn(e,t,n):$i(M9,e,t,n):r?fn(e[0],e[1]||t,e[2]||n):$i(M9,e[0],e[1]||t,e[2]||n)}var u6e=Math.PI/180;function Pn(e){return e*u6e}var f6e=180/Math.PI;function Ka(e){return e*f6e}function d6e(e){return 360*e}var _m=Math.PI/2;function h6e(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n*n,s=r*r,l=i*i,c=a*a,u=o+s+l+c,f=n*a-r*i;return f>.499995*u?(e[0]=_m,e[1]=2*Math.atan2(r,n),e[2]=0):f<-.499995*u?(e[0]=-_m,e[1]=2*Math.atan2(r,n),e[2]=0):(e[0]=Math.asin(2*(n*i-a*r)),e[1]=Math.atan2(2*(n*a+r*i),1-2*(l+c)),e[2]=Math.atan2(2*(n*r+i*a),1-2*(s+l))),e}function p6e(e,t){var n,r,i=id(qt(),t),a=St(i,3),o=a[0],s=a[1],l=a[2],c=Math.asin(-t[2]/o);return c<_m?c>-_m?(n=Math.atan2(t[6]/s,t[10]/l),r=Math.atan2(t[1]/o,t[0]/o)):(r=0,n=-Math.atan2(t[4]/s,t[5]/s)):(r=0,n=Math.atan2(t[4]/s,t[5]/s)),e[0]=n,e[1]=c,e[2]=r,e}function N9(e,t){return t.length===16?p6e(e,t):h6e(e,t)}function g6e(e,t,n,r,i){var a=Math.cos(e),o=Math.sin(e);return g3e(r*a,i*o,0,-r*o,i*a,0,t,n,1)}function m6e(e,t,n,r,i,a,o){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,l=2*a,c=n-t,u=r-i,f=l/c,d=l/u,h=(n+t)/c,p=(r+i)/u,g,v,y=o-a,x=o*a;return s?(g=-o/y,v=-x/y):(g=-(o+a)/y,v=-2*x/y),e[0]=f,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=d,e[6]=0,e[7]=0,e[8]=h,e[9]=p,e[10]=g,e[11]=-1,e[12]=0,e[13]=0,e[14]=v,e[15]=0,e}function oA(e){var t=e[0],n=e[1],r=e[3],i=e[4],a=Math.sqrt(t*t+n*n),o=Math.sqrt(r*r+i*i),s=t*i-n*r;if(s<0&&(t<i?a=-a:o=-o),a){var l=1/a;t*=l,n*=l}if(o){var c=1/o;r*=c,i*=c}var u=Math.atan2(n,t),f=Ka(u);return[e[6],e[7],a,o,f]}var os=_n(),Oo=_n(),w1=bs(),xt=[qt(),qt(),qt()],sA=qt();function v6e(e,t,n,r,i,a){if(!y6e(os,e)||(rd(Oo,os),Oo[3]=0,Oo[7]=0,Oo[11]=0,Oo[15]=1,Math.abs(ej(Oo))<1e-8))return!1;var o=os[3],s=os[7],l=os[11],c=os[12],u=os[13],f=os[14],d=os[15];if(o!==0||s!==0||l!==0){w1[0]=o,w1[1]=s,w1[2]=l,w1[3]=d;var h=Do(Oo,Oo);if(!h)return!1;QR(Oo,Oo),Cs(i,w1,Oo)}else i[0]=i[1]=i[2]=0,i[3]=1;if(t[0]=c,t[1]=u,t[2]=f,x6e(xt,os),n[0]=vl(xt[0]),Hu(xt[0],xt[0]),r[0]=xs(xt[0],xt[1]),I9(xt[1],xt[1],xt[0],1,-r[0]),n[1]=vl(xt[1]),Hu(xt[1],xt[1]),r[0]/=n[1],r[1]=xs(xt[0],xt[2]),I9(xt[2],xt[2],xt[0],1,-r[1]),r[2]=xs(xt[1],xt[2]),I9(xt[2],xt[2],xt[1],1,-r[2]),n[2]=vl(xt[2]),Hu(xt[2],xt[2]),r[1]/=n[2],r[2]/=n[2],Og(sA,xt[1],xt[2]),xs(xt[0],sA)<0)for(var p=0;p<3;p++)n[p]*=-1,xt[p][0]*=-1,xt[p][1]*=-1,xt[p][2]*=-1;return a[0]=.5*Math.sqrt(Math.max(1+xt[0][0]-xt[1][1]-xt[2][2],0)),a[1]=.5*Math.sqrt(Math.max(1-xt[0][0]+xt[1][1]-xt[2][2],0)),a[2]=.5*Math.sqrt(Math.max(1-xt[0][0]-xt[1][1]+xt[2][2],0)),a[3]=.5*Math.sqrt(Math.max(1+xt[0][0]+xt[1][1]+xt[2][2],0)),xt[2][1]>xt[1][2]&&(a[0]=-a[0]),xt[0][2]>xt[2][0]&&(a[1]=-a[1]),xt[1][0]>xt[0][1]&&(a[2]=-a[2]),!0}function y6e(e,t){var n=t[15];if(n===0)return!1;for(var r=1/n,i=0;i<16;i++)e[i]=t[i]*r;return!0}function x6e(e,t){e[0][0]=t[0],e[0][1]=t[1],e[0][2]=t[2],e[1][0]=t[4],e[1][1]=t[5],e[1][2]=t[6],e[2][0]=t[8],e[2][1]=t[9],e[2][2]=t[10]}function I9(e,t,n,r,i){e[0]=t[0]*r+n[0]*i,e[1]=t[1]*r+n[1]*i,e[2]=t[2]*r+n[2]*i}var An=function(e){return e[e.ORBITING=0]="ORBITING",e[e.EXPLORING=1]="EXPLORING",e[e.TRACKING=2]="TRACKING",e}({}),p7=function(e){return e[e.DEFAULT=0]="DEFAULT",e[e.ROTATIONAL=1]="ROTATIONAL",e[e.TRANSLATIONAL=2]="TRANSLATIONAL",e[e.CINEMATIC=3]="CINEMATIC",e}({}),Ya=function(e){return e[e.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",e[e.PERSPECTIVE=1]="PERSPECTIVE",e}({}),CF={UPDATED:"updated"},lA=2e-4,wF=function(){function e(){Pe(this,e),this.clipSpaceNearZ=Ag.NEGATIVE_ONE,this.eventEmitter=new gF,this.matrix=_n(),this.right=fn(1,0,0),this.up=fn(0,1,0),this.forward=fn(0,0,1),this.position=fn(0,0,1),this.focalPoint=fn(0,0,0),this.distanceVector=fn(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=_n(),this.projectionMatrixInverse=_n(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=An.EXPLORING,this.trackingMode=p7.DEFAULT,this.projectionMode=Ya.PERSPECTIVE,this.frustum=new l6e,this.orthoMatrix=_n()}return Te(e,[{key:"isOrtho",value:function(){return this.projectionMode===Ya.ORTHOGRAPHIC}},{key:"getProjectionMode",value:function(){return this.projectionMode}},{key:"getPerspective",value:function(){return this.jitteredProjectionMatrix||this.projectionMatrix}},{key:"getPerspectiveInverse",value:function(){return this.projectionMatrixInverse}},{key:"getFrustum",value:function(){return this.frustum}},{key:"getPosition",value:function(){return this.position}},{key:"getFocalPoint",value:function(){return this.focalPoint}},{key:"getDollyingStep",value:function(){return this.dollyingStep}},{key:"getNear",value:function(){return this.near}},{key:"getFar",value:function(){return this.far}},{key:"getZoom",value:function(){return this.zoom}},{key:"getOrthoMatrix",value:function(){return this.orthoMatrix}},{key:"getView",value:function(){return this.view}},{key:"setEnableUpdate",value:function(n){this.enableUpdate=n}},{key:"setType",value:function(n,r){return this.type=n,this.type===An.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===An.TRACKING&&r!==void 0&&this.setTrackingMode(r),this}},{key:"setProjectionMode",value:function(n){return this.projectionMode=n,this}}
vendor: 18,744 bytes, line 37
37,{key:"setTrackingMode",value:function(n){if(this.type!==An.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=n,this}},{key:"setWorldRotation",value:function(n){return this.rotateWorld=n,this._getAngles(),this}},{key:"getViewTransform",value:function(){return Do(_n(),this.matrix)}},{key:"getWorldTransform",value:function(){return this.matrix}},{key:"jitterProjectionMatrix",value:function(n,r){var i=ml(_n(),[n,r,0]);this.jitteredProjectionMatrix=Ii(_n(),i,this.projectionMatrix)}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0}},{key:"setMatrix",value:function(n){return this.matrix=n,this._update(),this}},{key:"setProjectionMatrix",value:function(n){this.projectionMatrix=n}},{key:"setFov",value:function(n){return this.setPerspective(this.near,this.far,n,this.aspect),this}},{key:"setAspect",value:function(n){return this.setPerspective(this.near,this.far,this.fov,n),this}},{key:"setNear",value:function(n){return this.projectionMode===Ya.PERSPECTIVE?this.setPerspective(n,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,n,this.far),this}},{key:"setFar",value:function(n){return this.projectionMode===Ya.PERSPECTIVE?this.setPerspective(this.near,n,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,n),this}},{key:"setViewOffset",value:function(n,r,i,a,o,s){return this.aspect=n/r,this.view===void 0&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=n,this.view.fullHeight=r,this.view.offsetX=i,this.view.offsetY=a,this.view.width=o,this.view.height=s,this.projectionMode===Ya.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this}},{key:"clearViewOffset",value:function(){return this.view!==void 0&&(this.view.enabled=!1),this.projectionMode===Ya.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this}},{key:"setZoom",value:function(n){return this.zoom=n,this.projectionMode===Ya.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===Ya.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this}},{key:"setZoomByViewportPoint",value:function(n,r){var i=this.canvas.viewport2Canvas({x:r[0],y:r[1]}),a=i.x,o=i.y,s=this.roll;this.rotate(0,0,-s),this.setPosition(a,o),this.setFocalPoint(a,o),this.setZoom(n),this.rotate(0,0,s);var l=this.canvas.viewport2Canvas({x:r[0],y:r[1]}),c=l.x,u=l.y,f=fn(c-a,u-o,0),d=xs(f,this.right)/vl(this.right),h=xs(f,this.up)/vl(this.up),p=this.getPosition(),g=St(p,2),v=g[0],y=g[1],x=this.getFocalPoint(),C=St(x,2),_=C[0],S=C[1];return this.setPosition(v-d,y-h),this.setFocalPoint(_-d,S-h),this}},{key:"setPerspective",value:function(n,r,i,a){var o;this.projectionMode=Ya.PERSPECTIVE,this.fov=i,this.near=n,this.far=r,this.aspect=a;var s=this.near*Math.tan(Pn(.5*this.fov))/this.zoom,l=2*s,c=this.aspect*l,u=-.5*c;if((o=this.view)!==null&&o!==void 0&&o.enabled){var f=this.view.fullWidth,d=this.view.fullHeight;u+=this.view.offsetX*c/f,s-=this.view.offsetY*l/d,c*=this.view.width/f,l*=this.view.height/d}return m6e(this.projectionMatrix,u,u+c,s-l,s,n,this.far,this.clipSpaceNearZ===Ag.ZERO),Do(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this}},{key:"setOrthographic",value:function(n,r,i,a,o,s){var l;this.projectionMode=Ya.ORTHOGRAPHIC,this.rright=r,this.left=n,this.top=i,this.bottom=a,this.near=o,this.far=s;var c=(this.rright-this.left)/(2*this.zoom),u=(this.top-this.bottom)/(2*this.zoom),f=(this.rright+this.left)/2,d=(this.top+this.bottom)/2,h=f-c,p=f+c,g=d+u,v=d-u;if((l=this.view)!==null&&l!==void 0&&l.enabled){var y=(this.rright-this.left)/this.view.fullWidth/this.zoom,x=(this.top-this.bottom)/this.view.fullHeight/this.zoom;h+=y*this.view.offsetX,p=h+y*this.view.width,g-=x*this.view.offsetY,v=g-x*this.view.height}return this.clipSpaceNearZ===Ag.NEGATIVE_ONE?uj(this.projectionMatrix,h,p,g,v,o,s):fj(this.projectionMatrix,h,p,g,v,o,s),Do(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this}},{key:"setPosition",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.position[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.position[2],a=Hi(n,r,i);return this._setPosition(a),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this}},{key:"setFocalPoint",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.focalPoint[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.focalPoint[2],a=fn(0,1,0);if(this.focalPoint=Hi(n,r,i),this.trackingMode===p7.CINEMATIC){var o=q6(qt(),this.focalPoint,this.position);n=o[0],r=o[1],i=o[2];var s=vl(o),l=Ka(Math.asin(r/s)),c=90+Ka(Math.atan2(i,n)),u=_n();rj(u,u,Pn(c)),nj(u,u,Pn(l)),a=gr(qt(),[0,1,0],u)}return Do(this.matrix,dj(_n(),this.position,this.focalPoint,a)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this}},{key:"getDistance",value:function(){return this.distance}},{key:"getDistanceVector",value:function(){return this.distanceVector}},{key:"setDistance",value:function(n){if(this.distance===n||n<0)return this;this.distance=n,this.distance<lA&&(this.distance=lA),this.dollyingStep=this.distance/100;var r=qt();n=this.distance;var i=this.forward,a=this.focalPoint;return r[0]=n*i[0]+a[0],r[1]=n*i[1]+a[1],r[2]=n*i[2]+a[2],this._setPosition(r),this.triggerUpdate(),this}},{key:"setMaxDistance",value:function(n){return this.maxDistance=n,this}},{key:"setMinDistance",value:function(n){return this.minDistance=n,this}},{key:"setAzimuth",value:function(n){return this.azimuth=B0(n),this.computeMatrix(),this._getAxes(),this.type===An.ORBITING||this.type===An.EXPLORING?this._getPosition():this.type===An.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getAzimuth",value:function(){return this.azimuth}},{key:"setElevation",value:function(n){return this.elevation=B0(n),this.computeMatrix(),this._getAxes(),this.type===An.ORBITING||this.type===An.EXPLORING?this._getPosition():this.type===An.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getElevation",value:function(){return this.elevation}},{key:"setRoll",value:function(n){return this.roll=B0(n),this.computeMatrix(),this._getAxes(),this.type===An.ORBITING||this.type===An.EXPLORING?this._getPosition():this.type===An.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getRoll",value:function(){return this.roll}},{key:"_update",value:function(){this._getAxes(),this._getPosition(),this._getDistance(),this._getAngles(),this._getOrthoMatrix(),this.triggerUpdate()}},{key:"computeMatrix",value:function(){var n=yc(Wr(),[0,0,1],Pn(this.roll));Pc(this.matrix);var r=yc(Wr(),[1,0,0],Pn((this.rotateWorld&&this.type!==An.TRACKING||this.type===An.TRACKING?1:-1)*this.elevation)),i=yc(Wr(),[0,1,0],Pn((this.rotateWorld&&this.type!==An.TRACKING||this.type===An.TRACKING?1:-1)*this.azimuth)),a=Sc(Wr(),i,r);a=Sc(Wr(),a,n);var o=qx(_n(),a);this.type===An.ORBITING||this.type===An.EXPLORING?(F0(this.matrix,this.matrix,this.focalPoint),Ii(this.matrix,this.matrix,o),F0(this.matrix,this.matrix,[0,0,this.distance])):this.type===An.TRACKING&&(F0(this.matrix,this.matrix,this.position),Ii(this.matrix,this.matrix,o))}},{key:"_setPosition",value:function(n,r,i){this.position=Hi(n,r,i);var a=this.matrix;a[12]=this.position[0],a[13]=this.position[1],a[14]=this.position[2],a[15]=1,this._getOrthoMatrix()}},{key:"_getAxes",value:function(){ys(this.right,Hi(Cs(bs(),[1,0,0,0],this.matrix))),ys(this.up,Hi(Cs(bs(),[0,1,0,0],this.matrix))),ys(this.forward,Hi(Cs(bs(),[0,0,1,0],this.matrix))),Hu(this.right,this.right),Hu(this.up,this.up),Hu(this.forward,this.forward)}},{key:"_getAngles",value:function(){var n=this.distanceVector[0],r=this.distanceVector[1],i=this.distanceVector[2],a=vl(this.distanceVector);if(a===0){this.elevation=0,this.azimuth=0;return}this.type===An.TRACKING?(this.elevation=Ka(Math.asin(r/a)),this.azimuth=Ka(Math.atan2(-n,-i))):this.rotateWorld?(this.elevation=Ka(Math.asin(r/a)),this.azimuth=Ka(Math.atan2(-n,-i))):(this.elevation=-Ka(Math.asin(r/a)),this.azimuth=-Ka(Math.atan2(-n,-i)))}},{key:"_getPosition",value:function(){ys(this.position,Hi(Cs(bs(),[0,0,0,1],this.matrix))),this._getDistance()}},{key:"_getFocalPoint",value:function(){pj(this.distanceVector,[0,0,-this.distance],h3e(Td(),this.matrix)),_c(this.focalPoint,this.position,this.distanceVector),this._getDistance()}},{key:"_getDistance",value:function(){this.distanceVector=q6(qt(),this.focalPoint,this.position),this.distance=vl(this.distanceVector),this.dollyingStep=this.distance/100}},{key:"_getOrthoMatrix",value:function(){if(this.projectionMode===Ya.ORTHOGRAPHIC){var n=this.position,r=yc(Wr(),[0,0,1],-this.roll*Math.PI/180);dh(this.orthoMatrix,r,fn((this.rright-this.left)/2-n[0],(this.top-this.bottom)/2-n[1],0),fn(this.zoom,this.zoom,1),n)}}},{key:"triggerUpdate",value:function(){if(this.enableUpdate){var n=this.getViewTransform(),r=Ii(_n(),this.getPerspective(),n);this.getFrustum().extractFromVPMatrix(r),this.eventEmitter.emit(CF.UPDATED)}}},{key:"rotate",value:function(n,r,i){throw new Error($n)}},{key:"pan",value:function(n,r){throw new Error($n)}},{key:"dolly",value:function(n){throw new Error($n)}},{key:"createLandmark",value:function(n,r){throw new Error($n)}},{key:"gotoLandmark",value:function(n,r){throw new Error($n)}},{key:"cancelLandmarkAnimation",value:function(){throw new Error($n)}}])}(),b6e=function(e){return e[e.Standard=0]="Standard",e}({}),Sm=function(e){return e[e.ADDED=0]="ADDED",e[e.REMOVED=1]="REMOVED",e[e.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED",e}({}),_F={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new dd(0,0,0,0)},ze=function(e){return e.COORDINATE="<coordinate>",e.COLOR="<color>",e.PAINT="<paint>",e.NUMBER="<number>",e.ANGLE="<angle>",e.OPACITY_VALUE="<opacity-value>",e.SHADOW_BLUR="<shadow-blur>",e.LENGTH="<length>",e.PERCENTAGE="<percentage>",e.LENGTH_PERCENTAGE="<length> | <percentage>",e.LENGTH_PERCENTAGE_12="[<length> | <percentage>]{1,2}",e.LENGTH_PERCENTAGE_14="[<length> | <percentage>]{1,4}",e.LIST_OF_POINTS="<list-of-points>",e.PATH="<path>",e.FILTER="<filter>",e.Z_INDEX="<z-index>",e.OFFSET_DISTANCE="<offset-distance>",e.DEFINED_PATH="<defined-path>",e.MARKER="<marker>",e.TRANSFORM="<transform>",e.TRANSFORM_ORIGIN="<transform-origin>",e.TEXT="<text>",e.TEXT_TRANSFORM="<text-transform>",e}({});function Ob(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function SF(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function jp(){}var Gh=.7,Om=1/Gh,z0="\\s*([+-]?\\d+)\\s*",Uh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Es="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",C6e=/^#([0-9a-f]{3,8})$/,w6e=new RegExp(`^rgb\\(${z0},${z0},${z0}\\)$`),_6e=new RegExp(`^rgb\\(${Es},${Es},${Es}\\)$`),S6e=new RegExp(`^rgba\\(${z0},${z0},${z0},${Uh}\\)$`),O6e=new RegExp(`^rgba\\(${Es},${Es},${Es},${Uh}\\)$`),E6e=new RegExp(`^hsl\\(${Uh},${Es},${Es}\\)$`),k6e=new RegExp(`^hsla\\(${Uh},${Es},${Es},${Uh}\\)$`),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};Ob(jp,ev,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uA,formatHex:uA,formatHex8:A6e,formatHsl:$6e,formatRgb:fA,toString:fA});function uA(){return this.rgb().formatHex()}function A6e(){return this.rgb().formatHex8()}function $6e(){return OF(this).formatHsl()}function fA(){return this.rgb().formatRgb()}function ev(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=C6e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?dA(t):n===3?new fa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?g5(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?g5(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=w6e.exec(e))?new fa(t[1],t[2],t[3],1):(t=_6e.exec(e))?new fa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=S6e.exec(e))?g5(t[1],t[2],t[3],t[4]):(t=O6e.exec(e))?g5(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=E6e.exec(e))?gA(t[1],t[2]/100,t[3]/100,1):(t=k6e.exec(e))?gA(t[1],t[2]/100,t[3]/100,t[4]):cA.hasOwnProperty(e)?dA(cA[e]):e==="transparent"?new fa(NaN,NaN,NaN,0):null}function dA(e){return new fa(e>>16&255,e>>8&255,e&255,1)}function g5(e,t,n,r){return r<=0&&(e=t=n=NaN),new fa(e,t,n,r)}function T6e(e){return e instanceof jp||(e=ev(e)),e?(e=e.rgb(),new fa(e.r,e.g,e.b,e.opacity)):new fa}function P6e(e,t,n,r){return arguments.length===1?T6e(e):new fa(e,t,n,r??1)}function fa(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Ob(fa,P6e,SF(jp,{brighter(e){return e=e==null?Om:Math.pow(Om,e),new fa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gh:Math.pow(Gh,e),new fa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fa(Gu(this.r),Gu(this.g),Gu(this.b),Em(this.opacity))},displayable(){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:hA,formatHex:hA,formatHex8:M6e,formatRgb:pA,toString:pA}));function hA(){return`#${ju(this.r)}${ju(this.g)}${ju(this.b)}`}function M6e(){return`#${ju(this.r)}${ju(this.g)}${ju(this.b)}${ju((isNaN(this.opacity)?1:this.opacity)*255)}`}function pA(){const e=Em(this.opacity);return`${e===1?"rgb(":"rgba("}${Gu(this.r)}, ${Gu(this.g)}, ${Gu(this.b)}${e===1?")":`, ${e})`}`}function Em(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Gu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ju(e){return e=Gu(e),(e<16?"0":"")+e.toString(16)}function gA(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Lo(e,t,n,r)}function OF(e){if(e instanceof Lo)return new Lo(e.h,e.s,e.l,e.opacity);if(e instanceof jp||(e=ev(e)),!e)return new Lo;if(e instanceof Lo)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Lo(o,s,l,e.opacity)}function N6e(e,t,n,r){return arguments.length===1?OF(e):new Lo(e,t,n,r??1)}function Lo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ob(Lo,N6e,SF(jp,{brighter(e){return e=e==null?Om:Math.pow(Om,e),new Lo(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gh:Math.pow(Gh,e),new Lo(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new fa(L9(e>=240?e-240:e+120,i,r),L9(e,i,r),L9(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Lo(mA(this.h),m5(this.s),m5(this.l),Em(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Em(this.opacity);return`${e===1?"hsl(":"hsla("}${mA(this.h)}, ${m5(this.s)*100}%, ${m5(this.l)*100}%${e===1?")":`, ${e})`}`}}));function mA(e){return e=(e||0)%360,e<0?e+360:e}function m5(e){return Math.max(0,Math.min(1,e||0))}function L9(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function Fr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");var n=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=t?t.apply(this,a):a[0],l=n.cache;if(l.has(s))return l.get(s);var c=e.apply(this,a);return n.cache=l.set(s,c)||l,c};return n.cache=new(Fr.Cache||Map),Fr.cacheList.push(n.cache),n}Fr.Cache=Map;Fr.cacheList=[];Fr.clearCache=function(){Fr.cacheList.forEach(function(e){return e.clear()})};var He=function(e){return e[e.kUnknown=0]="kUnknown",e[e.kNumber=1]="kNumber",e[e.kPercentage=2]="kPercentage",e[e.kEms=3]="kEms",e[e.kPixels=4]="kPixels",e[e.kRems=5]="k
37Rems",e[e.kDegrees=6]="kDegrees",e[e.kRadians=7]="kRadians",e[e.kGradians=8]="kGradians",e[e.kTurns=9]="kTurns",e[e.kMilliseconds=10]="kMilliseconds",e[e.kSeconds=11]="kSeconds",e[e.kInteger=12]="kInteger",e}({}),Io=function(e){return e[e.kUNumber=0]="kUNumber",e[e.kUPercent=1]="kUPercent",e[e.kULength=2]="kULength",e[e.kUAngle=3]="kUAngle",e[e.kUTime=4]="kUTime",e[e.kUOther=5]="kUOther",e}({}),I6e=function(e){return e[e.kYes=0]="kYes",e[e.kNo=1]="kNo",e}({}),L6e=function(e){return e[e.kYes=0]="kYes",e[e.kNo=1]="kNo",e}({}),R6e=[{name:"em",unit_type:He.kEms},{name:"px",unit_type:He.kPixels},{name:"deg",unit_type:He.kDegrees},{name:"rad",unit_type:He.kRadians},{name:"grad",unit_type:He.kGradians},{name:"ms",unit_type:He.kMilliseconds},{name:"s",unit_type:He.kSeconds},{name:"rem",unit_type:He.kRems},{name:"turn",unit_type:He.kTurns}],hd=function(e){return e[e.kUnknownType=0]="kUnknownType",e[e.kUnparsedType=1]="kUnparsedType",e[e.kKeywordType=2]="kKeywordType",e[e.kUnitType=3]="kUnitType",e[e.kSumType=4]="kSumType",e[e.kProductType=5]="kProductType",e[e.kNegateType=6]="kNegateType",e[e.kInvertType=7]="kInvertType",e[e.kMinType=8]="kMinType",e[e.kMaxType=9]="kMaxType",e[e.kClampType=10]="kClampType",e[e.kTransformType=11]="kTransformType",e[e.kPositionType=12]="kPositionType",e[e.kURLImageType=13]="kURLImageType",e[e.kColorType=14]="kColorType",e[e.kUnsupportedColorType=15]="kUnsupportedColorType",e}({}),j6e=function(t){return R6e.find(function(n){return n.name===t}).unit_type},D6e=function(t){return t?t==="number"?He.kNumber:t==="percent"||t==="%"?He.kPercentage:j6e(t):He.kUnknown},F6e=function(t){switch(t){case He.kNumber:case He.kInteger:return Io.kUNumber;case He.kPercentage:return Io.kUPercent;case He.kPixels:return Io.kULength;case He.kMilliseconds:case He.kSeconds:return Io.kUTime;case He.kDegrees:case He.kRadians:case He.kGradians:case He.kTurns:return Io.kUAngle;default:return Io.kUOther}},B6e=function(t){switch(t){case Io.kUNumber:return He.kNumber;case Io.kULength:return He.kPixels;case Io.kUPercent:return He.kPercentage;case Io.kUTime:return He.kSeconds;case Io.kUAngle:return He.kDegrees;default:return He.kUnknown}},vA=function(t){var n=1;switch(t){case He.kPixels:case He.kDegrees:case He.kSeconds:break;case He.kMilliseconds:n=.001;break;case He.kRadians:n=180/Math.PI;break;case He.kGradians:n=.9;break;case He.kTurns:n=360;break}return n},g7=function(t){switch(t){case He.kNumber:case He.kInteger:return"";case He.kPercentage:return"%";case He.kEms:return"em";case He.kRems:return"rem";case He.kPixels:return"px";case He.kDegrees:return"deg";case He.kRadians:return"rad";case He.kGradians:return"grad";case He.kMilliseconds:return"ms";case He.kSeconds:return"s";case He.kTurns:return"turn"}return""},tv=function(){function e(){Pe(this,e)}return Te(e,[{key:"toString",value:function(){return this.buildCSSText(I6e.kNo,L6e.kNo,"")}},{key:"isNumericValue",value:function(){return this.getType()>=hd.kUnitType&&this.getType()<=hd.kClampType}}],[{key:"isAngle",value:function(n){return n===He.kDegrees||n===He.kRadians||n===He.kGradians||n===He.kTurns}},{key:"isLength",value:function(n){return n>=He.kEms&&n<He.kDegrees}},{key:"isRelativeUnit",value:function(n){return n===He.kPercentage||n===He.kEms||n===He.kRems}},{key:"isTime",value:function(n){return n===He.kSeconds||n===He.kMilliseconds}}])}(),z6e=function(e){function t(n){var r;return Pe(this,t),r=jt(this,t),r.colorSpace=n,r}return Rt(t,e),Te(t,[{key:"getType",value:function(){return hd.kColorType}},{key:"to",value:function(r){return this}}])}(tv),xc=function(e){return e[e.Constant=0]="Constant",e[e.LinearGradient=1]="LinearGradient",e[e.RadialGradient=2]="RadialGradient",e}({}),v5=function(e){function t(n,r){var i;return Pe(this,t),i=jt(this,t),i.type=n,i.value=r,i}return Rt(t,e),Te(t,[{key:"clone",value:function(){return new t(this.type,this.value)}},{key:"buildCSSText",value:function(r,i,a){return a}},{key:"getType",value:function(){return hd.kColorType}}])}(tv),uo=function(e){function t(n){var r;return Pe(this,t),r=jt(this,t),r.value=n,r}return Rt(t,e),Te(t,[{key:"clone",value:function(){return new t(this.value)}},{key:"getType",value:function(){return hd.kKeywordType}},{key:"buildCSSText",value:function(r,i,a){return a+this.value}}])}(tv),V6e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";return Number.isFinite(t)?r="NaN":t>0?r="infinity":r="-infinity",r+=n},m7=function(t){return B6e(F6e(t))},Tn=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:He.kNumber;Pe(this,t),r=jt(this,t);var a;return typeof i=="string"?a=D6e(i):a=i,r.unit=a,r.value=n,r}return Rt(t,e),Te(t,[{key:"clone",value:function(){return new t(this.value,this.unit)}},{key:"equals",value:function(r){var i=r;return this.value===i.value&&this.unit===i.unit}},{key:"getType",value:function(){return hd.kUnitType}},{key:"convertTo",value:function(r){if(this.unit===r)return new t(this.value,this.unit);var i=m7(this.unit);if(i!==m7(r)||i===He.kUnknown)return null;
37var a=vA(this.unit)/vA(r);return new t(this.value*a,r)}},{key:"buildCSSText",value:function(r,i,a){var o;switch(this.unit){case He.kUnknown:break;case He.kInteger:o=Number(this.value).toFixed(0);break;case He.kNumber:case He.kPercentage:case He.kEms:case He.kRems:case He.kPixels:case He.kDegrees:case He.kRadians:case He.kGradians:case He.kMilliseconds:case He.kSeconds:case He.kTurns:{var s=-999999,l=999999,c=this.value,u=g7(this.unit);if(c<s||c>l){var f=g7(this.unit);!Number.isFinite(c)||Number.isNaN(c)?o=V6e(c,f):o=c+(f||"")}else o="".concat(c).concat(u)}}return a+=o,a}}])}(tv),$o=new Tn(0,"px");new Tn(1,"px");var tf=new Tn(0,"deg"),Eb=function(e){function t(n,r,i){var a,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;return Pe(this,t),a=jt(this,t,["rgb"]),a.r=n,a.g=r,a.b=i,a.alpha=o,a.isNone=s,a}return Rt(t,e),Te(t,[{key:"clone",value:function(){return new t(this.r,this.g,this.b,this.alpha)}},{key:"buildCSSText",value:function(r,i,a){return"".concat(a,"rgba(").concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")}}])}(z6e),yA=new uo("unset"),W6e=new uo("initial"),H6e=new uo("inherit"),R9={"":yA,unset:yA,initial:W6e,inherit:H6e},G6e=function(t){return R9[t]||(R9[t]=new uo(t)),R9[t]},EF=new Eb(0,0,0,0,!0),kF=new Eb(0,0,0,0),U6e=Fr(function(e,t,n,r){return new Eb(e,t,n,r)},function(e,t,n,r){return"rgba(".concat(e,",").concat(t,",").concat(n,",").concat(r,")")}),rr=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:He.kNumber;return new Tn(t,n)};new Tn(50,"%");function Y6e(e){var t=e.type,n=e.value;return t==="hex"?"#".concat(n):t==="literal"?n:t==="rgb"?"rgb(".concat(n.join(","),")"):"rgba(".concat(n.join(","),")")}var X6e=function(){var e={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(z){throw new Error("".concat(t,": ").concat(z))}function r(){var z=i();return t.length>0&&n("Invalid input not EOF"),z}function i(){return C(a)}function a(){return o("linear-gradient",e.linearGradient,l)||o("repeating-linear-gradient",e.repeatingLinearGradient,l)||o("radial-gradient",e.radialGradient,f)||o("repeating-radial-gradient",e.repeatingRadialGradient,f)||o("conic-gradient",e.conicGradient,f)}function o(z,B,G){return s(B,function(Y){var K=G();return K&&(F(e.comma)||n("Missing comma before color stops")),{type:z,orientation:K,colorStops:C(_)}})}function s(z,B){var G=F(z);if(G){F(e.startCall)||n("Missing (");var Y=B(G);return F(e.endCall)||n("Missing )"),Y}}function l(){return c()||u()}function c(){return D("directional",e.sideOrCorner,1)}function u(){return D("angular",e.angleValue,1)}function f(){var z,B=d(),G;return B&&(z=[],z.push(B),G=t,F(e.comma)&&(B=d(),B?z.push(B):t=G)),z}function d(){var z=h()||p();if(z)z.at=v();else{var B=g();if(B){z=B;var G=v();G&&(z.at=G)}else{var Y=y();Y&&(z={type:"default-radial",at:Y})}}return z}function h(){var z=D("shape",/^(circle)/i,0);return z&&(z.style=N()||g()),z}function p(){var z=D("shape",/^(ellipse)/i,0);return z&&(z.style=M()||g()),z}function g(){return D("extent-keyword",e.extentKeywords,1)}function v(){if(D("position",/^at/,0)){var z=y();return z||n("Missing positioning value"),z}}function y(){var z=x();if(z.x||z.y)return{type:"position",value:z}}function x(){return{x:M(),y:M()}}function C(z){var B=z(),G=[];if(B)for(G.push(B);F(e.comma);)B=z(),B?G.push(B):n("One extra comma");return G}function _(){var z=S();return z||n("Expected color definition"),z.length=M(),z}function S(){return E()||$()||k()||O()}function O(){return D("literal",e.literalColor,0)}function E(){return D("hex",e.hexColor,1)}function k(){return s(e.rgbColor,function(){return{type:"rgb",value:C(T)}})}function $(){return s(e.rgbaColor,function(){return{type:"rgba",value:C(T)}})}function T(){return F(e.number)[1]}function M(){return D("%",e.percentageValue,1)||R()||N()}function R(){return D("position-keyword",e.positionKeywords,1)}function N(){return D("px",e.pixelValue,1)||D("em",e.emValue,1)}function D(z,B,G){var Y=F(B);if(Y)return{type:z,value:Y[G]}}function F(z){var B=/^[\n\r\t\s]+/.exec(t);B&&V(B[0].length);var G=z.exec(t);return G&&V(G[0].length),G}function V(z){t=t.substring(z)}return function(z){return t=z,r()}}();function q6e(e,t,n,r){var i=Pn(r.value),a=0,o=0,s=a+t/2,l=o+n/2,c=Math.abs(t*Math.cos(i))+Math.abs(n*Math.sin(i)),u=e[0]+s-Math.cos(i)*c/2,f=e[1]+l-Math.sin(i)*c/2,d=e[0]+s+Math.cos(i)*c/2,h=e[1]+l+Math.sin(i)*c/2;return{x1:u,y1:f,x2:d,y2:h}}function Z6e(e,t,n,r,i,a){var o=r.value,s=i.value;r.unit===He.kPercentage&&(o=r.value/100*t),i.unit===He.kPercentage&&(s=i.value/100*n);var l=Math.max(sa([0,0],[o,s]),sa([0,n],[o,s]),sa([t,n],[o,s]),sa([t,0],[o,s]));return a&&(a instanceof Tn?l=a.value:a instanceof uo&&(a.value==="closest-side"?l=Math.min(o,t-o,s,n-s):a.value==="farthest-side"?l=Math.max(o,t-o,s,n-s):a.value==="closest-corner"&&(l=Math.min(sa([0,0],[o,s]),sa([0,n],[o,s]),sa([t,n],[o,s]),sa([t,0],[o,s]))))),{x:o+e[0],y:s+e[1],r:l}}var K6e=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,J6e=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Q6e=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,AF=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function e7e(e){var t,n=e.length;if(e[n-1].length=(t=e[n-1].length)!==null&&t!==void 0?t:{type:"%",value:"100"},n>1){var r;e[0].length=(r=e[0].length)!==null&&r!==void 0?r:{type:"%",value:"
370"}}for(var i=0,a=Number(e[0].length.value),o=1;o<n;o++){var s,l=(s=e[o].length)===null||s===void 0?void 0:s.value;if(!pt(l)&&!pt(a)){for(var c=1;c<o-i;c++)e[i+c].length={type:"%",value:"".concat(a+(Number(l)-a)*c/(o-i))};i=o,a=Number(l)}}}var t7e={left:180,top:-90,bottom:90,right:0,"left top":225,"top left":225,"left bottom":135,"bottom left":135,"right top":-45,"top right":-45,"right bottom":45,"bottom right":45},n7e=Fr(function(e){var t;return e.type==="angular"?t=Number(e.value):t=t7e[e.value]||0,rr(t,"deg")}),r7e=Fr(function(e){var t=50,n=50,r="%",i="%";if((e==null?void 0:e.type)==="position"){var a=e.value,o=a.x,s=a.y;(o==null?void 0:o.type)==="position-keyword"&&(o.value==="left"?t=0:o.value==="center"?t=50:o.value==="right"?t=100:o.value==="top"?n=0:o.value==="bottom"&&(n=100)),(s==null?void 0:s.type)==="position-keyword"&&(s.value==="left"?t=0:s.value==="center"?n=50:s.value==="right"?t=100:s.value==="top"?n=0:s.value==="bottom"&&(n=100)),((o==null?void 0:o.type)==="px"||(o==null?void 0:o.type)==="%"||(o==null?void 0:o.type)==="em")&&(r=o==null?void 0:o.type,t=Number(o.value)),((s==null?void 0:s.type)==="px"||(s==null?void 0:s.type)==="%"||(s==null?void 0:s.type)==="em")&&(i=s==null?void 0:s.type,n=Number(s.value))}return{cx:rr(t,r),cy:rr(n,i)}}),i7e=Fr(function(e){if(e.indexOf("linear")>-1||e.indexOf("radial")>-1){var t=X6e(e);return t.map(function(s){var l=s.type,c=s.orientation,u=s.colorStops;e7e(u);var f=u.map(function(C){return{offset:rr(Number(C.length.value),"%"),color:Y6e(C)}});if(l==="linear-gradient")return new v5(xc.LinearGradient,{angle:c?n7e(c):tf,steps:f});if(l==="radial-gradient"&&(c||(c=[{type:"shape",value:"circle"}]),c[0].type==="shape"&&c[0].value==="circle")){var d=r7e(c[0].at),h=d.cx,p=d.cy,g;if(c[0].style){var v=c[0].style,y=v.type,x=v.value;y==="extent-keyword"?g=G6e(x):g=rr(x,y)}return new v5(xc.RadialGradient,{cx:h,cy:p,size:g,steps:f})}})}var n=e[0];if(e[1]==="("||e[2]==="("){if(n==="l"){var r=K6e.exec(e);if(r){var i,a=((i=r[2].match(AF))===null||i===void 0?void 0:i.map(function(s){return s.split(":")}))||[];return[new v5(xc.LinearGradient,{angle:rr(parseFloat(r[1]),"deg"),steps:a.map(function(s){var l=St(s,2),c=l[0],u=l[1];return{offset:rr(Number(c)*100,"%"),color:u}})})]}}else if(n==="r"){var o=a7e(e);if(o)if(nr(o))e=o;else return[new v5(xc.RadialGradient,o)]}else if(n==="p")return o7e(e)}});function a7e(e){var t=J6e.exec(e);if(t){var n,r=((n=t[4].match(AF))===null||n===void 0?void 0:n.map(function(i){return i.split(":")}))||[];return{cx:rr(50,"%"),cy:rr(50,"%"),steps:r.map(function(i){var a=St(i,2),o=a[0],s=a[1];return{offset:rr(Number(o)*100,"%"),color:s}})}}return null}function o7e(e){var t=Q6e.exec(e);if(t){var n=t[1],r=t[2];switch(n){case"a":n="repeat";break;case"x":n="repeat-x";break;case"y":n="repeat-y";break;case"n":n="no-repeat";break;default:n="no-repeat"}return{image:r,repetition:n}}return null}function nf(e){return e&&!!e.image}function km(e){return e&&!pt(e.r)&&!pt(e.g)&&!pt(e.b)}var Ec=Fr(function(e){if(nf(e))return Tt({repetition:"repeat"},e);if(pt(e)&&(e=""),e==="transparent")return kF;if(e==="currentColor")e="black";else if(e==="none")return EF;var t=i7e(e);if(t)return t;var n=ev(e),r=[0,0,0,0];return n!==null&&(r[0]=n.r||0,r[1]=n.g||0,r[2]=n.b||0,r[3]=n.opacity),U6e.apply(void 0,r)});function s7e(e,t){if(!(!km(e)||!km(t)))return[[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],function(n){var r=n.slice();if(r[3])for(var i=0;i<3;i++)r[i]=Math.round(yr(r[i],0,255));return r[3]=yr(r[3],0,1),"rgba(".concat(r.join(","),")")}]}function Dp(e,t){if(pt(t))return rr(0,"px");if(t="".concat(t).trim().toLowerCase(),isFinite(Number(t))){if("px".search(e)>=0)return rr(Number(t),"px");if("deg".search(e)>=0)return rr(Number(t),"deg")}var n=[];t=t.replace(e,function(i){return n.push(i),"U".concat(i)});var r="U(".concat(e.source,")");return n.map(function(i){return rr(Number(t.replace(new RegExp("U".concat(i),"g"),"").replace(new RegExp(r,"g"),"*0")),i)})[0]}var $F=function(t){return Dp(new RegExp("px","g"),t)},l7e=Fr($F),c7e=function(t){return Dp(new RegExp("%","g"),t)};Fr(c7e);var TF=function(t){return Jn(t)||isFinite(Number(t))?rr(Number(t)||0,"px"):Dp(new RegExp("px|%|em|rem","g"),t)},v7=Fr(TF),PF=function(t){return Dp(new RegExp("deg|rad|grad|turn","g"),t)},u7e=Fr(PF);function f7e(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a="",o=e.value||0,s=t.value||0,l=m7(e.unit),c=e.convertTo(l),u=t.convertTo(l);
37return c&&u?(o=c.value,s=u.value,a=g7(e.unit)):(Tn.isLength(e.unit)||Tn.isLength(t.unit))&&(o=Oa(e,i,n),s=Oa(t,i,n),a="px"),[o,s,function(f){return f+a}]}function la(e){var t=0;return e.unit===He.kDegrees?t=e.value:e.unit===He.kRadians?t=Ka(Number(e.value)):e.unit===He.kTurns?t=d6e(Number(e.value)):e.value&&(t=e.value),t}function xA(e,t){var n;return Array.isArray(e)?n=e.map(function(r){return Number(r)}):nr(e)?n=e.split(" ").map(function(r){return Number(r)}):Jn(e)&&(n=[e]),t===2?n.length===1?[n[0],n[0]]:[n[0],n[1]]:t===4?n.length===1?[n[0],n[0],n[0],n[0]]:n.length===2?[n[0],n[1],n[0],n[1]]:n.length===3?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]:t==="even"&&n.length%2===1?[].concat(Gt(n),Gt(n)):n}function Oa(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e.unit===He.kPixels)return Number(e.value);if(e.unit===He.kPercentage&&n){var i=n.nodeName===xe.GROUP?n.getLocalBounds():n.getGeometryBounds();return(r?i.min[t]:0)+e.value/100*i.halfExtents[t]*2}return 0}var d7e=function(t){return Dp(/deg|rad|grad|turn|px|%/g,t)},h7e=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function p7e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(e=e.toLowerCase().trim(),e==="none")return[];for(var t=/\s*([\w-]+)\(([^)]*)\)/g,n=[],r,i=0;r=t.exec(e);){if(r.index!==i)return[];if(i=r.index+r[0].length,h7e.indexOf(r[1])>-1&&n.push({name:r[1],params:r[2].split(" ").map(function(a){return d7e(a)||Ec(a)})}),t.lastIndex===e.length)return n}return[]}function MF(e){return e.toString()}var NF=function(t){return typeof t=="number"?rr(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?rr(Number(t)):rr(0)},y7=Fr(NF);Fr(function(e){return nr(e)?e.split(" ").map(y7):e.map(y7)});function kb(e,t){return[e,t,MF]}function Ab(e,t){return function(n,r){return[n,r,function(i){return MF(yr(i,e,t))}]}}function IF(e,t){if(e.length===t.length)return[e,t,function(n){return n}]}function x7(e){return e.parsedStyle.d.totalLength===0&&(e.parsedStyle.d.totalLength=Ove(e.parsedStyle.d.absolutePath)),e.parsedStyle.d.totalLength}function g7e(e){return e.parsedStyle.points.totalLength===0&&(e.parsedStyle.points.totalLength=J4e(e.parsedStyle.points.points)),e.parsedStyle.points.totalLength}function m7e(e){for(var t=0;t<e.length;t++){var n=e[t-1],r=e[t],i=r[0];if(i==="M"&&n){var a=n[0],o=[r[1],r[2]],s=void 0;a==="L"||a==="M"?s=[n[1],n[2]]:(a==="C"||a==="A"||a==="Q")&&(s=[n[n.length-2],n[n.length-1]]),s&&Am(o,s)&&(e.splice(t,1),t--)}}}function v7e(e){for(var t=!1,n=e.length,r=0;r<n;r++){var i=e[r],a=i[0];if(a==="C"||a==="A"||a==="Q"){t=!0;break}}return t}function y7e(e){for(var t=[],n=[],r=[],i=0;i<e.length;i++){var a=e[i],o=a[0];o==="M"?(r.length&&(n.push(r),r=[]),r.push([a[1],a[2]])):o==="Z"?r.length&&(t.push(r),r=[]):r.push([a[1],a[2]])}return r.length>0&&n.push(r),{polygons:t,polylines:n}}function Am(e,t){return e[0]===t[0]&&e[1]===t[1]}function x7e(e,t){for(var n=[],r=[],i=[],a=0;a<e.length;a++){var o=e[a],s=o.currentPoint,l=o.params,c=o.prePoint,u=void 0;switch(o.command){case"Q":u=Q4e(c[0],c[1],l[1],l[2],l[3],l[4]);break;case"C":u=q4e(c[0],c[1],l[1],l[2],l[3],l[4],l[5],l[6]);break;case"A":var f=o.arcParams;u=U4e(f.cx,f.cy,f.rx,f.ry,f.xRotation,f.startAngle,f.endAngle);break;default:n.push(s[0]),r.push(s[1]);break}u&&(o.box=u,n.push(u.x,u.x+u.width),r.push(u.y,u.y+u.height))}n=n.filter(function(_){return!Number.isNaN(_)&&_!==1/0&&_!==-1/0}),r=r.filter(function(_){return!Number.isNaN(_)&&_!==1/0&&_!==-1/0});var d=sm(n),h=sm(r),p=om(n),g=om(r);if(i.length===0)return{x:d,y:h,width:p-d,height:g-h};for(var v=0;v<i.length;v++){var y=i[v],x=y.currentPoint,C=void 0;x[0]===d?(C=y5(y,t),d-=C.xExtra):x[0]===p&&(C=y5(y,t),p+=C.xExtra),x[1]===h?(C=y5(y,t),h-=C.yExtra):x[1]===g&&(C=y5(y,t),g+=C.yExtra)}return{x:d,y:h,width:p-d,height:g-h}}function y5(e,t){var n=e.prePoint,r=e.currentPoint,i=e.nextPoint,a=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),o=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),l=Math.acos((a+o-s)/(2*Math.sqrt(a)*Math.sqrt(o)));if(!l||Math.sin(l)===0||fh(l,0))return{xExtra:0,yExtra:0};
37var c=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),u=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));c=c>Math.PI/2?Math.PI-c:c,u=u>Math.PI/2?Math.PI-u:u;var f={xExtra:Math.cos(l/2-c)*(t/2*(1/Math.sin(l/2)))-t/2||0,yExtra:Math.cos(u-l/2)*(t/2*(1/Math.sin(l/2)))-t/2||0};return f}function bA(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}var CA=function(t,n){var r=t.x*n.x+t.y*n.y,i=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(n.x,2)+Math.pow(n.y,2))),a=t.x*n.y-t.y*n.x<0?-1:1,o=a*Math.acos(r/i);return o},wA=function(t,n,r,i,a,o,s,l){n=Math.abs(n),r=Math.abs(r),i=UR(i,360);var c=Pn(i);if(t.x===s.x&&t.y===s.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(n===0||r===0)return{x:0,y:0,ellipticalArcAngle:0};var u=(t.x-s.x)/2,f=(t.y-s.y)/2,d={x:Math.cos(c)*u+Math.sin(c)*f,y:-Math.sin(c)*u+Math.cos(c)*f},h=Math.pow(d.x,2)/Math.pow(n,2)+Math.pow(d.y,2)/Math.pow(r,2);h>1&&(n*=Math.sqrt(h),r*=Math.sqrt(h));var p=Math.pow(n,2)*Math.pow(r,2)-Math.pow(n,2)*Math.pow(d.y,2)-Math.pow(r,2)*Math.pow(d.x,2),g=Math.pow(n,2)*Math.pow(d.y,2)+Math.pow(r,2)*Math.pow(d.x,2),v=p/g;v=v<0?0:v;var y=(a!==o?1:-1)*Math.sqrt(v),x={x:y*(n*d.y/r),y:y*(-(r*d.x)/n)},C={x:Math.cos(c)*x.x-Math.sin(c)*x.y+(t.x+s.x)/2,y:Math.sin(c)*x.x+Math.cos(c)*x.y+(t.y+s.y)/2},_={x:(d.x-x.x)/n,y:(d.y-x.y)/r},S=CA({x:1,y:0},_),O={x:(-d.x-x.x)/n,y:(-d.y-x.y)/r},E=CA(_,O);!o&&E>0?E-=2*Math.PI:o&&E<0&&(E+=2*Math.PI),E%=2*Math.PI;var k=S+E*l,$=n*Math.cos(k),T=r*Math.sin(k),M={x:Math.cos(c)*$-Math.sin(c)*T+C.x,y:Math.sin(c)*$+Math.cos(c)*T+C.y,ellipticalArcStartAngle:S,ellipticalArcEndAngle:S+E,ellipticalArcAngle:k,ellipticalArcCenter:C,resultantRx:n,resultantRy:r};return M};function b7e(e){for(var t=[],n=null,r=null,i=null,a=0,o=e.length,s=0;s<o;s++){var l=e[s];r=e[s+1];var c=l[0],u={command:c,prePoint:n,params:l,startTangent:null,endTangent:null,currentPoint:null,nextPoint:null,arcParams:null,box:null,cubicParams:null};switch(c){case"M":i=[l[1],l[2]],a=s;break;case"A":var f=C7e(n,l);u.arcParams=f;break}if(c==="Z")n=i,r=e[a+1];else{var d=l.length;n=[l[d-2],l[d-1]]}r&&r[0]==="Z"&&(r=e[a],t[a]&&(t[a].prePoint=n)),u.currentPoint=n,t[a]&&Am(n,t[a].currentPoint)&&(t[a].prePoint=u.prePoint);var h=r?[r[r.length-2],r[r.length-1]]:null;u.nextPoint=h;var p=u.prePoint;if(["L","H","V"].includes(c))u.startTangent=[p[0]-n[0],p[1]-n[1]],u.endTangent=[n[0]-p[0],n[1]-p[1]];else if(c==="Q"){var g=[l[1],l[2]];u.startTangent=[p[0]-g[0],p[1]-g[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]]}else if(c==="T"){var v=t[s-1],y=bA(v.currentPoint,p);v.command==="Q"?(u.command="Q",u.startTangent=[p[0]-y[0],p[1]-y[1]],u.endTangent=[n[0]-y[0],n[1]-y[1]]):(u.command="TL",u.startTangent=[p[0]-n[0],p[1]-n[1]],u.endTangent=[n[0]-p[0],n[1]-p[1]])}else if(c==="C"){var x=[l[1],l[2]],C=[l[3],l[4]];u.startTangent=[p[0]-x[0],p[1]-x[1]],u.endTangent=[n[0]-C[0],n[1]-C[1]],u.startTangent[0]===0&&u.startTangent[1]===0&&(u.startTangent=[x[0]-C[0],x[1]-C[1]]),u.endTangent[0]===0&&u.endTangent[1]===0&&(u.endTangent=[C[0]-x[0],C[1]-x[1]])}else if(c==="S"){var _=t[s-1],S=bA(_.currentPoint,p),O=[l[1],l[2]];_.command==="C"?(u.command="C",u.startTangent=[p[0]-S[0],p[1]-S[1]],u.endTangent=[n[0]-O[0],n[1]-O[1]]):(u.command="SQ",u.startTangent=[p[0]-O[0],p[1]-O[1]],u.endTangent=[n[0]-O[0],n[1]-O[1]])}else if(c==="A"){var E=_A(u,0),k=E.x,$=E.y,T=_A(u,1,!1),M=T.x,R=T.y;u.startTangent=[k,$],u.endTangent=[M,R]}t.push(u)}return t}function _A(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=e.arcParams,i=r.rx,a=i===void 0?0:i,o=r.ry,s=o===void 0?0:o,l=r.xRotation,c=r.arcFlag,u=r.sweepFlag,f=wA({x:e.prePoint[0],y:e.prePoint[1]},a,s,l,!!c,!!u,{x:e.currentPoint[0],y:e.currentPoint[1]},t),d=wA({x:e.prePoint[0],y:e.prePoint[1]},a,s,l,!!c,!!u,{x:e.currentPoint[0],y:e.currentPoint[1]},n?t+.005:t-.005),h=d.x-f.x,p=d.y-f.y,g=Math.sqrt(h*h+p*p);return{x:-h/g,y:-p/g}}function x5(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function b7(e,t){return x5(e)*x5(t)?(e[0]*t[0]+e[1]*t[1])/(x5(e)*x5(t)):1}function SA(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(b7(e,t))}function C7e(e,t){var n=t[1],r=t[2],i=UR(Pn(t[3]),Math.PI*2),a=t[4],o=t[5],s=e[0],l=e[1],c=t[6],u=t[7],f=Math.cos(i)*(s-c)/2+Math.sin(i)*(l-u)/2,d=-1*Math.sin(i)*(s-c)/2+Math.cos(i)*(l-u)/2,h=f*f/(n*n)+d*d/(r*r);h>1&&(n*=Math.sqrt(h),r*=Math.sqrt(h));var p=n*n*(d*d)+r*r*(f*f),g=p?Math.sqrt((n*n*(r*r)-p)/p):1;a===o&&(g*=-1),isNaN(g)&&(g=0);
37var v=r?g*n*d/r:0,y=n?g*-r*f/n:0,x=(s+c)/2+Math.cos(i)*v-Math.sin(i)*y,C=(l+u)/2+Math.sin(i)*v+Math.cos(i)*y,_=[(f-v)/n,(d-y)/r],S=[(-1*f-v)/n,(-1*d-y)/r],O=SA([1,0],_),E=SA(_,S);return b7(_,S)<=-1&&(E=Math.PI),b7(_,S)>=1&&(E=0),o===0&&E>0&&(E-=2*Math.PI),o===1&&E<0&&(E+=2*Math.PI),{cx:x,cy:C,rx:Am(e,[c,u])?0:n,ry:Am(e,[c,u])?0:r,startAngle:O,endAngle:O+E,xRotation:i,arcFlag:a,sweepFlag:o}}function w7e(e,t,n){return e.reduce(function(r,i){var a="";if(i[0]==="M"||i[0]==="L"){var o=fn(i[1],i[2],0);n&&gr(o,o,n),a="".concat(i[0]).concat(o[0],",").concat(o[1])}else if(i[0]==="Z")a=i[0];else if(i[0]==="C"){var s=fn(i[1],i[2],0),l=fn(i[3],i[4],0),c=fn(i[5],i[6],0);n&&(gr(s,s,n),gr(l,l,n),gr(c,c,n)),a="".concat(i[0]).concat(s[0],",").concat(s[1],",").concat(l[0],",").concat(l[1],",").concat(c[0],",").concat(c[1])}else if(i[0]==="A"){var u=fn(i[6],i[7],0);n&&gr(u,u,n),a="".concat(i[0]).concat(i[1],",").concat(i[2],",").concat(i[3],",").concat(i[4],",").concat(i[5],",").concat(u[0],",").concat(u[1])}else if(i[0]==="Q"){var f=fn(i[1],i[2],0),d=fn(i[3],i[4],0);n&&(gr(f,f,n),gr(d,d,n)),a="".concat(i[0]).concat(i[1],",").concat(i[2],",").concat(i[3],",").concat(i[4],"}")}return r+=a},"")}function _7e(e,t,n,r){return[["M",e,t],["L",n,r]]}function OA(e,t,n,r){var i=(-1+Math.sqrt(2))/3*4,a=e*i,o=t*i,s=n-e,l=n+e,c=r-t,u=r+t;return[["M",s,r],["C",s,r-o,n-a,c,n,c],["C",n+a,c,l,r-o,l,r],["C",l,r+o,n+a,u,n,u],["C",n-a,u,s,r+o,s,r],["Z"]]}function S7e(e,t){var n=e.map(function(r,i){return[i===0?"M":"L",r[0],r[1]]});return t&&n.push(["Z"]),n}function O7e(e,t,n,r,i){if(i){var a=St(i,4),o=a[0],s=a[1],l=a[2],c=a[3],u=e>0?1:-1,f=t>0?1:-1,d=u+f!==0?1:0;return[["M",u*o+n,r],["L",e-u*s+n,r],s?["A",s,s,0,0,d,e+n,f*s+r]:null,["L",e+n,t-f*l+r],l?["A",l,l,0,0,d,e+n-u*l,t+r]:null,["L",n+u*c,t+r],c?["A",c,c,0,0,d,n,t+r-f*c]:null,["L",n,f*o+r],o?["A",o,o,0,0,d,u*o+n,r]:null,["Z"]].filter(function(h){return h})}return[["M",n,r],["L",n+e,r],["L",n+e,r+t],["L",n,r+t],["Z"]]}function E7e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.getLocalTransform(),n=[];switch(e.nodeName){case xe.LINE:var r=e.parsedStyle,i=r.x1,a=i===void 0?0:i,o=r.y1,s=o===void 0?0:o,l=r.x2,c=l===void 0?0:l,u=r.y2,f=u===void 0?0:u;n=_7e(a,s,c,f);break;case xe.CIRCLE:{var d=e.parsedStyle,h=d.r,p=h===void 0?0:h,g=d.cx,v=g===void 0?0:g,y=d.cy,x=y===void 0?0:y;n=OA(p,p,v,x);break}case xe.ELLIPSE:{var C=e.parsedStyle,_=C.rx,S=_===void 0?0:_,O=C.ry,E=O===void 0?0:O,k=C.cx,$=k===void 0?0:k,T=C.cy,M=T===void 0?0:T;n=OA(S,E,$,M);break}case xe.POLYLINE:case xe.POLYGON:var R=e.parsedStyle.points;n=S7e(R.points,e.nodeName===xe.POLYGON);break;case xe.RECT:var N=e.parsedStyle,D=N.width,F=D===void 0?0:D,V=N.height,z=V===void 0?0:V,B=N.x,G=B===void 0?0:B,Y=N.y,K=Y===void 0?0:Y,Q=N.radius,ne=Q&&Q.some(function(ae){return ae!==0});n=O7e(F,z,G,K,ne&&Q.map(function(ae){return yr(ae,0,Math.min(Math.abs(F)/2,Math.abs(z)/2))}));break;case xe.PATH:var oe=e.parsedStyle.d.absolutePath;n=Gt(oe);break}if(n.length)return w7e(n,e,t)}var LF=function(t){if(t===""||Array.isArray(t)&&t.length===0)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var n;try{n=hm(t)}catch{n=hm(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}m7e(n);var r=v7e(n),i=y7e(n),a=i.polygons,o=i.polylines,s=b7e(n),l=x7e(s,0),c=l.x,u=l.y,f=l.width,d=l.height;return{absolutePath:n,hasArc:r,segments:s,polygons:a,polylines:o,totalLength:0,rect:{x:Number.isFinite(c)?c:0,y:Number.isFinite(u)?u:0,width:Number.isFinite(f)?f:0,height:Number.isFinite(d)?d:0}}},k7e=Fr(LF);function RF(e){return nr(e)?k7e(e):LF(e)}function A7e(e,t,n){var r=e.curve,i=t.curve;(!r||r.length===0)&&(r=J6(e.absolutePath,!1),e.curve=r),(!i||i.length===0)&&(i=J6(t.absolutePath,!1),t.curve=i);var a=[r,i];r.length!==i.length&&(a=wj(r,i));var o=kk(a[0])!==kk(a[1])?xve(a[0]):yve(a[0]);return[o,kve(a[1],o),function(s){return s}]}function $7e(e,t){var n;return nr(e)?n=e.split(" ").map(function(r){var i=r.split(","),a=St(i,2),o=a[0],s=a[1];return[Number(o),Number(s)]}):n=e,{points:n,totalLength:0,segments:[]}}function T7e(e,t){return[e.points,t.points,function(n){return n}]}var fr=null,V0=/\s*(\w+)\(([^)]*)\)/g;function ia(e){return function(t){var n=0;return e.map(function(r){return r===fr?t[n++]:r})}}function mu(e){return e}var Yh={matrix:["NNNNNN",[fr,fr,0,0,fr,fr,0,0,0,0,1,0,fr,fr,0,1],mu],matrix3d:["NNNNNNNNNNNNNNNN",mu],rotate:["A"],rotateX:["A"],rotateY:["A"],rotateZ:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",ia([fr,fr,new Tn(1)]),mu],scaleX:["N",ia([fr,new Tn(1),new Tn(1)]),ia([fr,new Tn(1)])],scaleY:["N",ia([new Tn(1),fr,new Tn(1)]),ia([new Tn(1),fr])],scaleZ:["N",ia([new Tn(1),new Tn(1),fr])],scale3d:["NNN",mu],skew:["Aa",null,mu],skewX:["A",null,ia([fr,tf])],skewY:["A",null,ia([tf,fr])],translate:["Tt",ia([fr,fr,$o]),mu],translateX:["T",ia([fr,$o,$o]),ia([fr,$o])],translateY:["T",ia([$o,fr,$o]),ia([$o,fr])],translateZ:["L",ia([$o,$o,fr])],translate3d:["TTL",mu]};function jF(e){for(var t=[],n=e.length,r=0;r<n;r++){var i=e[r],a=i[0],o=i.slice(1);a==="translate"||a==="skew"?o.length===1&&o.push(0):a==="scale"&&o.length===1&&o.push(o[0]);var s=Yh[a];if(!s)return[];var l=o.map(function(c){return rr(c)});t.push({t:a,d:l})}return t}function DF(e){if(Array.isArray(e))return jF(e);if(e=(e||"none").trim(),e==="none")return[];var t=[],n,r=0;for(V0.lastIndex=0;n=V0.exec(e);){if(n.index!==r)return[];r=n.index+n[0].length;var i=n[1],a=Yh[i];if(!a)return[];var o=n[2].split(","),s=a[0];if(s.length<o.length)return[];for(var l=[],c=0;c<s.length;c++){var u=o[c],f=s[c],d=void 0;if(u?d={A:function(p){return p.trim()==="0"?tf:u7e(p)},N:y7,T:v7,L:l7e}[f.toUpperCase()](u):d={a:tf,n:l[0],t:$o}[f],d===void 0)return[];l.push(d)}if(t.push({t:i,d:l}),V0.lastIndex===e.length)return t}return[]}function P7e(e){if(Array.isArray(e))return jF(e);if(e=(e||"none").trim(),e==="none")return[];var t=[],n,r=0;for(V0.lastIndex=0;n=V0.exec(e);){if(n.index!==r)return[];r=n.index+n[0].length;var i=n[1],a=Yh[i];if(!a)return[];var o=n[2].split(","),s=a[0];if(s.length<o.length)return[];for(var l=[],c=0;c<s.length;c++){var u=o[c],f=s[c],d=void 0;if(u?d={A:function(p){return p.trim()==="0"?tf:PF(p)},N:NF,T:TF,L:$F}[f.toUpperCase()](u):d={a:tf,n:l[0],t:$o}[f],d===void 0)return[];l.push(d)}if(t.push({t:i,d:l}),V0.lastIndex===e.length)return t}return[]}function M7e(e){var t,n,r,i;switch(e.t){case"rotateX":return i=Pn(la(e.d[0])),[1,0,0,0,0,Math.cos(i),Math.sin(i),0,0,-Math.sin(i),Math.cos(i),0,0,0,0,1];case"rotateY":return i=Pn(la(e.d[0])),[Math.cos(i),0,-Math.sin(i),0,0,1,0,0,Math.sin(i),0,Math.cos(i),0,0,0,0,1];case"rotate":case"rotateZ":return i=Pn(la(e.d[0])),[Math.cos(i),Math.sin(i),0,0,-Math.sin(i),Math.cos(i),0,0,0,0,1,0,0,0,0,1];case"rotate3d":t=e.d[0].value,n=e.d[1].value,r=e.d[2].value,i=Pn(la(e.d[3]));var a=t*t+n*n+r*r;if(a===0)t=1,n=0,r=0;else if(a!==1){var o=Math.sqrt(a);t/=o,n/=o,r/=o}var s=Math.sin(i/2),l=s*Math.cos(i/2),c=s*s;return[1-2*(n*n+r*r)*c,2*(t*n*c+r*l),2*(t*r*c-n*l),0,2*(t*n*c-r*l),1-2*(t*t+r*r)*c,2*(n*r*c+t*l),0,2*(t*r*c+n*l),2*(n*r*c-t*l),1-2*(t*t+n*n)*c,0,0,0,0,1];case"scale":return[e.d[0].value,0,0,0,0,e.d[1].value,0,0,0,0,1,0,0,0,0,1];case"scaleX":return[e.d[0].value,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaleY":return[1,0,0,0,0,e.d[0].value,0,0,0,0,1,0,0,0,0,1];case"scaleZ":return[1,0,0,0,0,1,0,0,0,0,e.d[0].value,0,0,0,0,1];case"scale3d":return[e.d[0].value,0,0,0,0,e.d[1].value,0,0,0,0,e.d[2].value,0,0,0,0,1];case"skew":var u=Pn(la(e.d[0])),f=Pn(la(e.d[1]));return[1,Math.tan(f),0,0,Math.tan(u),1,0,0,0,0,1,0,0,0,0,1];case"skewX":return i=Pn(la(e.d[0])),[1,0,0,0,Math.tan(i),1,0,0,0,0,1,0,0,0,0,1];case"skewY":return i=Pn(la(e.d[0])),[1,Math.tan(i),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return t=Oa(e.d[0],0,null)||0,n=Oa(e.d[1],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,t,n,0,1];case"translateX":return t=Oa(e.d[0],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,t,0,0,1];case"translateY":return n=Oa(e.d[0],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,0,n,0,1];case"translateZ":return r=Oa(e.d[0],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,r,1];case"translate3d":return t=Oa(e.d[0],0,null)||0,n=Oa(e.d[1],0,null)||0,r=Oa(e.d[2],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,t,n,r,1];case"perspective":var d=Oa(e.d[0],0,null)||0,h=d?-1/d:0;return[1,0,0,0,0,1,0,0,0,0,1,h,0,0,0,1];case"matrix":return[e.d[0].value,e.d[1].value,0,0,e.d[2].value,e.d[3].value,0,0,0,0,1,0,e.d[4].value,e.d[5].value,0,1];case"matrix3d":return e.d.map(function(p){return p.value})}}function N7e(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function I7e(e){return e.length===0?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(M7e).reduce(N7e)}function EA(e){var t=[0,0,0],n=[1,1,1],r=[0,0,0],i=[0,0,0,1],a=[0,0,0,1];return v6e(I7e(e),t,n,r,i,a),[[t,n,r,a,i]]}var L7e=function(){function e(r,i){for(var a=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],o=0;o<4;o++)for(var s=0;s<4;s++)for(var l=0;l<4;l++)a[o][s]+=i[o][l]*r[l][s];return a}function t(r){return r[0][2]===0&&r[0][3]===0&&r[1][2]===0&&r[1][3]===0&&r[2][0]===0&&r[2][1]===0&&r[2][2]===1&&r[2][3]===0&&r[3][2]===0&&r[3][3]===1}function n(r,i,a,o,s){for(var l=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],c=0;c<4;c++)l[c][3]=s[c];for(var u=0;u<3;u++)for(var f=0;f<3;f++)l[3][u]+=r[f]*l[f][u];var d=o[0],h=o[1],p=o[2],g=o[3],v=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];v[0][0]=1-2*(h*h+p*p),v[0][1]=2*(d*h-p*g),v[0][2]=2*(d*p+h*g),v[1][0]=2*(d*h+p*g),v[1][1]=1-2*(d*d+p*p),v[1][2]=2*(h*p-d*g),v[2][0]=2*(d*p-h*g),v[2][1]=2*(h*p+d*g),v[2][2]=1-2*(d*d+h*h),l=e(l,v);var y=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];a[2]&&(y[2][1]=a[2],l=e(l,y)),a[1]&&(y[2][1]=0,y[2][0]=a[0],l=e(l,y)),a[0]&&(y[2][0]=0,y[1][0]=a[0],l=e(l,y));for(var x=0;x<3;x++)for(var C=0;C<3;C++)l[x][C]*=i[x];return t(l)?[l[0][0],l[0][1],l[1][0],l[1][1],l[3][0],l[3][1]]:l[0].concat(l[1],l[2],l[3])}return n}();function R7e(e){return e.toFixed(6).replace(".000000","")}function j9(e,t){var n,r;return e.decompositionPair!==t&&(e.decompositionPair=t,n=EA(e)),t.decompositionPair!==e&&(t.decompositionPair=e,r=EA(t)),n[0]===null||r[0]===null?[[!1],[!0],function(i){return i?t[0].d:e[0].d}]:(n[0].push(0),r[0].push(1),[n,r,function(i){var a=D7e(n[0][3],r[0][3],i[5]),o=L7e(i[0],i[1],i[2],a,i[4]),s=o.map(R7e).join(",");return s}])}function j7e(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function D7e(e,t,n){var r=j7e(e,t);r=yr(r,-1,1);var i=[];if(r===1)i=e;else for(var a=Math.acos(r),o=Math.sin(n*a)*1/Math.sqrt(1-r*r),s=0;s<4;
37s++)i.push(e[s]*(Math.cos(n*a)-r*o)+t[s]*o);return i}function D9(e){return e.replace(/[XY]/,"")}function F9(e){return e.replace(/(X|Y|Z|3d)?$/,"3d")}var F7e=function(t,n){return t==="perspective"&&n==="perspective"||(t==="matrix"||t==="matrix3d")&&(n==="matrix"||n==="matrix3d")};function B7e(e,t,n){var r=!1;if(!e.length||!t.length){e.length||(r=!0,e=t,t=[]);for(var i=function(){var M=e[a],R=M.t,N=M.d,D=R.substring(0,5)==="scale"?1:0;t.push({t:R,d:N.map(function(F){return typeof F=="number"?rr(D):rr(D,F.unit)})})},a=0;a<e.length;a++)i()}var o=[],s=[],l=[];if(e.length!==t.length){var c=j9(e,t);o=[c[0]],s=[c[1]],l=[["matrix",[c[2]]]]}else for(var u=0;u<e.length;u++){var f=e[u].t,d=t[u].t,h=e[u].d,p=t[u].d,g=Yh[f],v=Yh[d],y=void 0;if(F7e(f,d)){var x=j9([e[u]],[t[u]]);o.push(x[0]),s.push(x[1]),l.push(["matrix",[x[2]]]);continue}else if(f===d)y=f;else if(g[2]&&v[2]&&D9(f)===D9(d))y=D9(f),h=g[2](h),p=v[2](p);else if(g[1]&&v[1]&&F9(f)===F9(d))y=F9(f),h=g[1](h),p=v[1](p);else{var C=j9(e,t);o=[C[0]],s=[C[1]],l=[["matrix",[C[2]]]];break}for(var _=[],S=[],O=[],E=0;E<h.length;E++){var k=f7e(h[E],p[E],n,!1,E);_[E]=k[0],S[E]=k[1],O.push(k[2])}o.push(_),s.push(S),l.push([y,O])}if(r){var $=o;o=s,s=$}return[o,s,function(T){return T.map(function(M,R){var N=M.map(function(D,F){return l[R][1][F](D)}).join(",");return l[R][0]==="matrix"&&N.split(",").length===16&&(l[R][0]="matrix3d"),l[R][0]==="matrix3d"&&N.split(",").length===6&&(l[R][0]="matrix"),"".concat(l[R][0],"(").concat(N,")")}).join(" ")}]}var z7e=Fr(function(e){if(nr(e)){if(e==="text-anchor")return[rr(0,"px"),rr(0,"px")];var t=e.split(" ");return t.length===1&&(t[0]==="top"||t[0]==="bottom"?(t[1]=t[0],t[0]="center"):t[1]="center"),t.length!==2?null:[v7(kA(t[0])),v7(kA(t[1]))]}return[rr(e[0]||0,"px"),rr(e[1]||0,"px")]});function kA(e){return e==="center"?"50%":e==="left"||e==="top"?"0%":e==="right"||e==="bottom"?"100%":e}var $b=[{n:"display",k:["none"]},{n:"opacity",int:!0,inh:!0,d:"1",syntax:ze.OPACITY_VALUE},{n:"fillOpacity",int:!0,inh:!0,d:"1",syntax:ze.OPACITY_VALUE},{n:"strokeOpacity",int:!0,inh:!0,d:"1",syntax:ze.OPACITY_VALUE},{n:"fill",int:!0,k:["none"],d:"none",syntax:ze.PAINT},{n:"fillRule",k:["nonzero","evenodd"],d:"nonzero"},{n:"stroke",int:!0,k:["none"],d:"none",syntax:ze.PAINT,l:!0},{n:"shadowType",k:["inner","outer","both"],d:"outer",l:!0},{n:"shadowColor",int:!0,syntax:ze.COLOR},{n:"shadowOffsetX",int:!0,l:!0,d:"0",syntax:ze.LENGTH_PERCENTAGE},{n:"shadowOffsetY",int:!0,l:!0,d:"0",syntax:ze.LENGTH_PERCENTAGE},{n:"shadowBlur",int:!0,l:!0,d:"0",syntax:ze.SHADOW_BLUR},{n:"lineWidth",int:!0,inh:!0,d:"1",l:!0,a:["strokeWidth"],syntax:ze.LENGTH_PERCENTAGE},{n:"increasedLineWidthForHitTesting",inh:!0,d:"0",l:!0,syntax:ze.LENGTH_PERCENTAGE},{n:"lineJoin",inh:!0,l:!0,a:["strokeLinejoin"],k:["miter","bevel","round"],d:"miter"},{n:"lineCap",inh:!0,l:!0,a:["strokeLinecap"],k:["butt","round","square"],d:"butt"},{n:"lineDash",int:!0,inh:!0,k:["none"],a:["strokeDasharray"],syntax:ze.LENGTH_PERCENTAGE_12},{n:"lineDashOffset",int:!0,inh:!0,d:"0",a:["strokeDashoffset"],syntax:ze.LENGTH_PERCENTAGE},{n:"offsetPath",syntax:ze.DEFINED_PATH},{n:"offsetDistance",int:!0,syntax:ze.OFFSET_DISTANCE},{n:"dx",int:!0,l:!0,d:"0",syntax:ze.LENGTH_PERCENTAGE},{n:"dy",int:!0,l:!0,d:"0",syntax:ze.LENGTH_PERCENTAGE},{n:"zIndex",ind:!0,int:!0,d:"0",k:["auto"],syntax:ze.Z_INDEX},{n:"visibility",k:["visible","hidden"],ind:!0,inh:!0,int:!0,d:"visible"},{n:"pointerEvents",inh:!0,k:["none","auto","stroke","fill","painted","visible","visiblestroke","visiblefill","visiblepainted","all"],d:"auto"},{n:"filter",ind:!0,l:!0,k:["none"],d:"none",syntax:ze.FILTER},{n:"clipPath",syntax:ze.DEFINED_PATH},{n:"textPath",syntax:ze.DEFINED_PATH},{n:"textPathSide",k:["left","right"],d:"left"},{n:"textPathStartOffset",l:!0,d:"0",syntax:ze.LENGTH_PERCENTAGE},{n:"transform",p:100,int:!0,k:["none"],d:"none",syntax:ze.TRANSFORM},{n:"transformOrigin",p:100,d:"0 0",l:!0,syntax:ze.TRANSFORM_ORIGIN},{n:"cx",int:!0,l:!0,d:"0",syntax:ze.COORDINATE},{n:"cy",int:!0,l:!0,d:"0",syntax:ze.COORDINATE},{n:"cz",int:!0,l:!0,d:"0",syntax:ze.COORDINATE},{n:"r",int:!0,l:!0,d:"0",syntax:ze.LENGTH_PERCENTAGE},{n:"rx",int:!0,l:!0,d:"0",syntax:ze.LENGTH_PERCENTAGE},{n:"ry",int:!0,l:!0,d:"0",syntax:ze.LENGTH_PERCENTAGE},{n:"x",int:!0,l:!0,d:"0",syntax:ze.COORDINATE},{n:"y",int:!0,l:!0,d:"0",syntax:ze.COORDINATE},{n:"z",int:!0,l:!0,d:"0",syntax:ze.COORDINATE},{n:"width",int:!0,l:!0,k:["auto","fit-content","min-content","max-content"],d:"0",syntax:ze.LENGTH_PERCENTAGE},{n:"height",int:!0,l:!0,k:["auto","fit-content","min-content","max-content"],d:"0",syntax:ze.LENGTH_PERCENTAGE},{n:"radius",int:!0,l:!0,d:"0",syntax:ze.LENGTH_PERCENTAGE_14},{n:"x1",int:!0,l:!0,syntax:ze.COORDINATE},{n:"y1",int:!0,l:!0,syntax:ze.COORDINATE},{n:"z1",int:!0,l:!0,syntax:ze.COORDINATE},{n:"x2",int:!0,l:!0,syntax:ze.COORDINATE},{n:"y2",int:!0,l:!0,syntax:ze.COORDINATE},{n:"z2",int:!0,l:!0,syntax:ze.COORDINATE},{n:"d",int:!0,l:!0,d:"",syntax:ze.PATH,p:50},{n:"points",int:!0,l:!0,syntax:ze.LIST_OF_POINTS,p:50},{n:"text",l:!0,d:"",syntax:ze.TEXT,p:50},{n:"textTransform",l:!0,inh:!0,k:["capitalize","uppercase","lowercase","none"],d:"none",syntax:ze.TEXT_TRANSFORM,p:51},{n:"font",l:!0},{n:"fontSize",int:!0,inh:!0,d:"16px",l:!0,syntax:ze.LENGTH_PERCENTAGE},{n:"fontFamily",l:!0,inh:!0,d:"sans-serif"},{n:"fontStyle",l:!0,inh:!0,k:["normal","italic","oblique"],d:"normal"},{n:"fontWeight",l:!0,inh:!0,k:["normal","bold","bolder","lighter"],d:"normal"},{n:"fontVariant",l:!0,inh:!0,k:["normal","small-caps"],d:"normal"},{n:"lineHeight",l:!0,syntax:ze.LENGTH,int:!0,d:"0"},{n:"letterSpacing",l:!0,syntax:ze.LENGTH,int:!0,d:"0"},{n:"miterLimit",l:!0,syntax:ze.NUMBER,d:function(t){return t===xe.PATH||t===xe.POLYGON||t===xe.POLYLINE?"4":"10"}},{n:"wordWrap",l:!0},{n:"wordWrapWidth",l:!0},{n:"maxLines",l:!0},{n:"textOverflow",l:!0,d:"clip"},{n:"leading",l:!0},{n:"textBaseline",l:!0,inh:!0,k:["top","hanging","middle","alphabetic","ideographic","bottom"],d:"alph
37abetic"},{n:"textAlign",l:!0,inh:!0,k:["start","center","middle","end","left","right"],d:"start"},{n:"markerStart",syntax:ze.MARKER},{n:"markerEnd",syntax:ze.MARKER},{n:"markerMid",syntax:ze.MARKER},{n:"markerStartOffset",syntax:ze.LENGTH,l:!0,int:!0,d:"0"},{n:"markerEndOffset",syntax:ze.LENGTH,l:!0,int:!0,d:"0"}],V7e=new Set($b.filter(function(e){return!!e.l}).map(function(e){return e.n})),FF={},W7e=function(){function e(t){var n=this;Pe(this,e),this.runtime=t,$b.forEach(function(r){n.registerMetadata(r)})}return Te(e,[{key:"registerMetadata",value:function(n){[n.n].concat(Gt(n.a||[])).forEach(function(r){FF[r]=n})}},{key:"getPropertySyntax",value:function(n){return this.runtime.CSSPropertySyntaxFactory[n]}},{key:"processProperties",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{forceUpdateGeometry:!1};Object.assign(n.attributes,r);var a=n.parsedStyle.clipPath,o=n.parsedStyle.offsetPath;H7e(n,r);var s=!!i.forceUpdateGeometry;if(!s){for(var l in r)if(V7e.has(l)){s=!0;break}}var c=BF(n);c.has("fill")&&r.fill&&(n.parsedStyle.fill=Ec(r.fill)),c.has("stroke")&&r.stroke&&(n.parsedStyle.stroke=Ec(r.stroke)),c.has("shadowColor")&&r.shadowColor&&(n.parsedStyle.shadowColor=Ec(r.shadowColor)),c.has("filter")&&r.filter&&(n.parsedStyle.filter=p7e(r.filter)),c.has("radius")&&!pt(r.radius)&&(n.parsedStyle.radius=xA(r.radius,4)),c.has("lineDash")&&!pt(r.lineDash)&&(n.parsedStyle.lineDash=xA(r.lineDash,"even")),c.has("points")&&r.points&&(n.parsedStyle.points=$7e(r.points)),c.has("d")&&r.d===""&&(n.parsedStyle.d=Tt({},_F)),c.has("d")&&r.d&&(n.parsedStyle.d=RF(r.d)),c.has("textTransform")&&r.textTransform&&this.runtime.CSSPropertySyntaxFactory[ze.TEXT_TRANSFORM].calculator(null,null,{value:r.textTransform},n,null),c.has("clipPath")&&!Rn(r.clipPath)&&this.runtime.CSSPropertySyntaxFactory[ze.DEFINED_PATH].calculator("clipPath",a,r.clipPath,n,this.runtime),c.has("offsetPath")&&r.offsetPath&&this.runtime.CSSPropertySyntaxFactory[ze.DEFINED_PATH].calculator("offsetPath",o,r.offsetPath,n,this.runtime),c.has("transform")&&r.transform&&(n.parsedStyle.transform=DF(r.transform)),c.has("transformOrigin")&&r.transformOrigin&&(n.parsedStyle.transformOrigin=z7e(r.transformOrigin)),c.has("markerStart")&&r.markerStart&&(n.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[ze.MARKER].calculator(null,r.markerStart,r.markerStart,null,null)),c.has("markerEnd")&&r.markerEnd&&(n.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[ze.MARKER].calculator(null,r.markerEnd,r.markerEnd,null,null)),c.has("markerMid")&&r.markerMid&&(n.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[ze.MARKER].calculator("",r.markerMid,r.markerMid,null,null)),c.has("zIndex")&&!pt(r.zIndex)&&this.runtime.CSSPropertySyntaxFactory[ze.Z_INDEX].postProcessor(n),c.has("offsetDistance")&&!pt(r.offsetDistance)&&this.runtime.CSSPropertySyntaxFactory[ze.OFFSET_DISTANCE].postProcessor(n),c.has("transform")&&r.transform&&this.runtime.CSSPropertySyntaxFactory[ze.TRANSFORM].postProcessor(n),c.has("transformOrigin")&&r.transformOrigin&&this.runtime.CSSPropertySyntaxFactory[ze.TRANSFORM_ORIGIN].postProcessor(n),s&&(n.geometry.dirty=!0,n.renderable.boundsDirty=!0,n.renderable.renderBoundsDirty=!0,i.forceUpdateGeometry||this.runtime.sceneGraphService.dirtifyToRoot(n))}},{key:"updateGeometry",value:function(n){var r=n.nodeName,i=this.runtime.geometryUpdaterFactory[r];if(i){var a=n.geometry;a.contentBounds||(a.contentBounds=new Ar),a.renderBounds||(a.renderBounds=new Ar);var o=n.parsedStyle,s=i.update(o,n),l=s.cx,c=l===void 0?0:l,u=s.cy,f=u===void 0?0:u,d=s.cz,h=d===void 0?0:d,p=s.hwidth,g=p===void 0?0:p,v=s.hheight,y=v===void 0?0:v,x=s.hdepth,C=x===void 0?0:x,_=[Math.abs(g),Math.abs(y),C],S=o.stroke,O=o.lineWidth,E=O===void 0?1:O,k=o.increasedLineWidthForHitTesting,$=k===void 0?0:k,T=o.shadowType,M=T===void 0?"outer":T,R=o.shadowColor,N=o.filter,D=N===void 0?[]:N,F=o.transformOrigin,V=[c,f,h];a.contentBounds.update(V,_);var z=r===xe.POLYLINE||r===xe.POLYGON||r===xe.PATH?Math.SQRT2:.5,B=S&&!S.isNone;if(B){var G=((E||0)+($||0))*z;_[0]+=G,_[1]+=G}if(a.renderBounds.update(V,_),R&&M&&M!=="inner"){var Y=a.renderBounds,K=Y.min,Q=Y.max,ne=o.shadowBlur,oe=o.shadowOffsetX,ae=o.shadowOffsetY,ce=ne||0,fe=oe||0,le=ae||0,be=K[0]-ce+fe,Ce=Q[0]+ce+fe,$e=K[1]-ce+le,Me=Q[1]+ce+le;K[0]=Math.min(K[0],be),Q[0]=Math.max(Q[0],Ce),K[1]=Math.min(K[1],$e),Q[1]=Math.max(Q[1],Me),a.renderBounds.setMinMax(K,Q)}
37D.forEach(function(Ze){var Ue=Ze.name,Qe=Ze.params;if(Ue==="blur"){var Pt=Qe[0].value;a.renderBounds.update(a.renderBounds.center,_c(a.renderBounds.halfExtents,a.renderBounds.halfExtents,[Pt,Pt,0]))}else if(Ue==="drop-shadow"){var nn=Qe[0].value,At=Qe[1].value,ct=Qe[2].value,sn=a.renderBounds,Dt=sn.min,Ct=sn.max,Jt=Dt[0]-ct+nn,zt=Ct[0]+ct+nn,cn=Dt[1]-ct+At,Yt=Ct[1]+ct+At;Dt[0]=Math.min(Dt[0],Jt),Ct[0]=Math.max(Ct[0],zt),Dt[1]=Math.min(Dt[1],cn),Ct[1]=Math.max(Ct[1],Yt),a.renderBounds.setMinMax(Dt,Ct)}}),n.geometry.dirty=!1;var Le=g<0,je=y<0,Ge=(Le?-1:1)*(F?Oa(F[0],0,n,!0):0),nt=(je?-1:1)*(F?Oa(F[1],1,n,!0):0);(Ge||nt)&&n.setOrigin(Ge,nt)}}},{key:"updateSizeAttenuation",value:function(n,r){n.style.isSizeAttenuation?(n.style.rawLineWidth||(n.style.rawLineWidth=n.style.lineWidth),n.style.lineWidth=(n.style.rawLineWidth||1)/r,n.nodeName===xe.CIRCLE&&(n.style.rawR||(n.style.rawR=n.style.r),n.style.r=(n.style.rawR||1)/r)):(n.style.rawLineWidth&&(n.style.lineWidth=n.style.rawLineWidth,delete n.style.rawLineWidth),n.nodeName===xe.CIRCLE&&n.style.rawR&&(n.style.r=n.style.rawR,delete n.style.rawR))}}])}();function H7e(e,t){var n=BF(e);for(var r in t)n.has(r)&&(e.parsedStyle[r]=t[r])}function BF(e){return e.constructor.PARSED_STYLE_LIST}var G7e=function(){function e(){Pe(this,e),this.mixer=kb}return Te(e,[{key:"calculator",value:function(n,r,i,a){return la(i)}}])}(),U7e=function(){function e(){Pe(this,e)}return Te(e,[{key:"calculator",value:function(n,r,i,a,o){return i instanceof uo&&(i=null),o.sceneGraphService.updateDisplayObjectDependency(n,r,i,a),n==="clipPath"&&a.forEach(function(s){s.childNodes.length===0&&o.sceneGraphService.dirtifyToRoot(s)}),i}}])}(),Y7e=function(){function e(){Pe(this,e),this.parser=Ec,this.mixer=s7e}return Te(e,[{key:"calculator",value:function(n,r,i,a){return i instanceof uo?i.value==="none"?EF:kF:i}}])}(),X7e=function(){function e(){Pe(this,e)}return Te(e,[{key:"calculator",value:function(n,r,i){return i instanceof uo?[]:i}}])}();function AA(e){var t=e.parsedStyle,n=t.fontSize;return pt(n)?null:n}var C7=function(){function e(){Pe(this,e),this.mixer=kb}return Te(e,[{key:"calculator",value:function(n,r,i,a,o){if(Jn(i))return i;if(Tn.isRelativeUnit(i.unit)){if(i.unit===He.kPercentage)return 0;if(i.unit===He.kEms){if(a.parentNode){var s=AA(a.parentNode);if(s)return s*=i.value,s}return 0}if(i.unit===He.kRems){var l;if(a!=null&&(l=a.ownerDocument)!==null&&l!==void 0&&l.documentElement){var c=AA(a.ownerDocument.documentElement);if(c)return c*=i.value,c}return 0}}else return i.value}}])}(),q7e=function(){function e(){Pe(this,e),this.mixer=IF}return Te(e,[{key:"calculator",value:function(n,r,i){return i.map(function(a){return a.value})}}])}(),Z7e=function(){function e(){Pe(this,e),this.mixer=IF}return Te(e,[{key:"calculator",value:function(n,r,i){return i.map(function(a){return a.value})}}])}(),K7e=function(){function e(){Pe(this,e)}return Te(e,[{key:"calculator",value:function(n,r,i,a){var o;i instanceof uo&&(i=null);var s=(o=i)===null||o===void 0?void 0:o.cloneNode(!0);return s&&(s.style.isMarker=!0),s}}])}(),J7e=function(){function e(){Pe(this,e),this.mixer=kb}return Te(e,[{key:"calculator",value:function(n,r,i){return i.value}}])}(),Q7e=function(){function e(){Pe(this,e),this.mixer=Ab(0,1)}return Te(e,[{key:"calculator",value:function(n,r,i){return i.value}},{key:"postProcessor",value:function(n){var r=n.parsedStyle,i=r.offsetPath,a=r.offsetDistance;if(i){var o=i.nodeName;if(o===xe.LINE||o===xe.PATH||o===xe.POLYLINE){var s=i.getPoint(a);s&&n.setLocalPosition(s.x,s.y)}}}}])}(),e8e=function(){function e(){Pe(this,e),this.mixer=Ab(0,1)}return Te(e,[{key:"calculator",value:function(n,r,i){return i.value}}])}(),t8e=function(){function e(){Pe(this,e),this.parser=RF,this.mixer=A7e}return Te(e,[{key:"calculator",value:function(n,r,i){return i instanceof uo&&i.value==="unset"?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new dd(0,0,0,0)}:i}}])}(),n8e=Te(function e(){Pe(this,e),this.mixer=T7e}),r8e=function(e){function t(){var n;Pe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=jt(this,t,[].concat(i)),n.mixer=Ab(0,1/0),n}return Rt(t,e),Te(t)}(C7),i8e=function(){function e(){Pe(this,e)}return Te(e,[{key:"calculator",value:function(n,r,i,a){return i instanceof uo?i.value==="unset"?"":i.value:"".concat(i)}},{key:"postProcessor",value:function(n){n.nodeValue="".concat(n.parsedStyle.text)||""}}])}(),a8e=function(){function e(){Pe(this,e)}return Te(e,[{key:"calculator",value:function(n,r,i,a){var o=a.getAttribute("text");if(o){var s=o;i.value==="capitalize"?s=o.charAt(0).toUpperCase()+o.slice(1):i.value==="lowercase"?s=o.toLowerCase():i.value==="uppercase"&&(s=o.toUpperCase()),a.parsedStyle.text=s}return i.value}}])}(),B9=new WeakMap;function o8e(e,t,n){if(e){var r=typeof e=="string"?document.getElementById(e):e;B9.has(r)&&B9.get(r).destroy(n),B9.set(r,t)}}var Tb=typeof window<"u"&&typeof window.document<"u";function s8e(e){return!!e.getAttribute}function l8e(e,t){for(var n=0,r=e.length;n<r;){var i=n+r>>>1;zF(e[i],t)<0?n=i+1:r=i}return n}
37function zF(e,t){var n=Number(e.parsedStyle.zIndex||0),r=Number(t.parsedStyle.zIndex||0);if(n===r){var i=e.parentNode;if(i){var a=i.childNodes||[];return a.indexOf(e)-a.indexOf(t)}}return n-r}function VF(e){var t=e;do{var n,r=(n=t.parsedStyle)===null||n===void 0?void 0:n.clipPath;if(r)return t;t=t.parentElement}while(t!==null);return null}var $A="px";function c8e(e,t,n){Tb&&e.style&&(e.style.width=t+$A,e.style.height=n+$A)}function WF(e,t){if(Tb)return document.defaultView.getComputedStyle(e,null).getPropertyValue(t)}function u8e(e){var t=WF(e,"width");return t==="auto"?e.offsetWidth:parseFloat(t)}function f8e(e){var t=WF(e,"height");return t==="auto"?e.offsetHeight:parseFloat(t)}var d8e=1,h8e={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},w7=typeof performance=="object"&&performance.now?performance:Date;function $m(e){return e.nodeName===xe.FRAGMENT?!0:e.getRootNode().nodeName===xe.FRAGMENT}function mf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"auto",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=!1,i=!1,a=!!t&&!t.isNone,o=!!n&&!n.isNone;return e==="visiblepainted"||e==="painted"||e==="auto"?(r=a,i=o):e==="visiblefill"||e==="fill"?r=!0:e==="visiblestroke"||e==="stroke"?i=!0:(e==="visible"||e==="all")&&(r=!0,i=!0),[r,i]}var p8e=1,g8e=function(){return p8e++},ks=typeof self=="object"&&self.self===self?self:typeof vc=="object"&&vc.global===vc?vc:{},m8e=Date.now(),v8e=function(){return ks.performance&&typeof ks.performance.now=="function"?ks.performance.now():Date.now()-m8e},F1={},TA=Date.now(),y8e=function(t){if(typeof t!="function")throw new TypeError("".concat(t," is not a function"));var n=Date.now(),r=n-TA,i=r>16?0:16-r,a=g8e();return F1[a]=t,Object.keys(F1).length>1||setTimeout(function(){TA=n;var o=F1;F1={},Object.keys(o).forEach(function(s){return o[s](v8e())})},i),a},x8e=function(t){delete F1[t]},b8e=["","webkit","moz","ms","o"],HF=function(t){return typeof t!="string"?y8e:t===""?ks.requestAnimationFrame:ks["".concat(t,"RequestAnimationFrame")]},C8e=function(t){return typeof t!="string"?x8e:t===""?ks.cancelAnimationFrame:ks["".concat(t,"CancelAnimationFrame")]||ks["".concat(t,"CancelRequestAnimationFrame")]},w8e=function(t,n){for(var r=0;t[r]!==void 0;){if(n(t[r]))return t[r];r+=1}},GF=w8e(b8e,function(e){return!!HF(e)}),Pb=HF(GF),UF=C8e(GF);ks.requestAnimationFrame=Pb;ks.cancelAnimationFrame=UF;var _8e=function(){function e(){Pe(this,e),this.callbacks=[]}return Te(e,[{key:"getCallbacksNum",value:function(){return this.callbacks.length}},{key:"tapPromise",value:function(n,r){this.callbacks.push(r)}},{key:"promise",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Promise.all(this.callbacks.map(function(a){return a.apply(void 0,r)}))}}])}(),S8e=function(){function e(){Pe(this,e),this.callbacks=[]}return Te(e,[{key:"tapPromise",value:function(n,r){this.callbacks.push(r)}},{key:"promise",value:function(){var t=Ac(Mi().mark(function r(){var i,a,o,s,l=arguments;return Mi().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!this.callbacks.length){u.next=14;break}return u.next=3,(i=this.callbacks)[0].apply(i,l);case 3:a=u.sent,o=0;case 5:if(!(o<this.callbacks.length-1)){u.next=13;break}return s=this.callbacks[o],u.next=9,s(a);case 9:a=u.sent;case 10:o++,u.next=5;break;case 13:return u.abrupt("return",a);case 14:return u.abrupt("return",null);case 15:case"end":return u.stop()}},r,this)}));function n(){return t.apply(this,arguments)}return n}()}])}(),Vi=function(){function e(){Pe(this,e),this.callbacks=[]}return Te(e,[{key:"tap",value:function(n,r){this.callbacks.push(r)}},{key:"call",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=arguments;this.callbacks.forEach(function(o){o.apply(void 0,a)})}}])}(),z9=function(){function e(){Pe(this,e),this.callbacks=[]}return Te(e,[{key:"tap",value:function(n,r){this.callbacks.push(r)}},{key:"call",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(this.callbacks.length){for(var a=arguments,o=this.callbacks[0].apply(void 0,a),s=0;s<this.callbacks.length-1;s++){var l=this.callbacks[s];o=l(o)}return o}return null}}])}(),O8e=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],E8e=/([\"\'])[^\'\"]+\1/;function k8e(e){for(var t=e.fontSize,n=t===void 0?16:t,r=e.fontFamily,i=r===void 0?"sans-serif":r,a=e.fontStyle,o=a===void 0?"normal":a,s=e.fontVariant,l=s===void 0?"normal":s,c=e.fontWeight,u=c===void 0?"normal":c,f=Jn(n)&&"".concat(n,"px")||"16px",d=i.split(","),h=d.length-1;h>=0;h--){var p=d[h].trim();!E8e.test(p)&&O8e.indexOf(p)<0&&(p='"'.concat(p,'"')),d[h]=p}return"".concat(o," ").concat(l," ").concat(u," ").concat(f," ").concat(d.join(","))}function V9(e,t,n){return Pc(e),e[4]=Math.tan(t),e[1]=Math.tan(n),e}var kr=_n(),A8e=_n(),$8e={scale:function(t){pc(kr,[t[0].value,t[1].value,1])},scaleX:function(t){pc(kr,[t[0].value,1,1])},scaleY:function(t){pc(kr,[1,t[0].value,1])},scaleZ:function(t){pc(kr,[1,1,t[0].value])},scale3d:function(t){pc(kr,[t[0].value,t[1].value,t[2].value])},translate:function(t){ml(kr,[t[0].value,t[1].value,0])},translateX:function(t){ml(kr,[t[0].value,0,0])},translateY:function(t){ml(kr,[0,t[0].value,0])},translateZ:function(t){ml(kr,[0,0,t[0].value])},translate3d:function(t){ml(kr,[t[0].value,t[1].value,t[2].value])},rotate:function(t){Y6(kr,Pn(la(t[0])))},rotateX:function(t){aj(kr,Pn(la(t[0])))},rotateY:function(t){oj(kr,Pn(la(t[0])))},rotateZ:function(t){Y6(kr,Pn(la(t[0])))},rotate3d:function(t){ij(kr,Pn(la(t[3])),[t[0].value,t[1].value,t[2].value])},skew:function(t){V9(kr,Pn(t[0].value),Pn(t[1].value))},skewX:function(t){V9(kr,Pn(t[0].value),0)},skewY:function(t){V9(kr,0,Pn(t[0].value))},matrix:function(t){U6(kr,t[0].value,t[1].value,0,0,t[2].value,t[3].value,0,0,0,0,1,0,t[4].value,t[5].value,0,1)},matrix3d:function(t){U6.apply(F3e,[kr].concat(Gt(t.map(function(n){return n.value}))))}},T8e=fn(1,1,1),P8e=qt(),PA={translate:function(t,n){Ie.sceneGraphService.setLocalScale(t,T8e,!1),Ie.sceneGraphService.setLocalEulerAngles(t,P8e,void 0,void 0,!1),Ie.sceneGraphService.setLocalPosition(t,[n[0].value,n[1].value,0],!1),Ie.sceneGraphService.dirtifyLocal(t,t.transformable)}};function YF(e,t){if(e.length){if(e.length===1&&PA[e[0].t]){PA[e[0].t](t,e[0].d);return}for(var n=Pc(A8e),r=0;r<e.length;r++){var i=e[r],a=i.t,o=i.d,s=$8e[a];s&&(s(o),Zx(n,n,kr))}t.setLocalTransform(n)}else t.resetLocalTransform();return t.getLocalTransform()}var M8e=function(){function e(){Pe(this,e),this.parser=P7e,this.mixer=B7e}return Te(e,[{key:"calculator",value:function(n,r,i,a){return i instanceof uo?[]:i}},{key:"postProcessor",value:function(n){YF(n.parsedStyle.transform,n)}}])}(),N8e=function(){function e(){Pe(this,e)}return Te(e,[{key:"postProcessor",value:function(n){var r=n.parsedStyle.transformOrigin;r[0].unit===He.kPixels&&r[1].unit===He.kPixels?n.setOrigin(r[0].value,r[1].value):n.getGeometryBounds()}}])}(),I8e=function(){function e(){Pe(this,e)}return Te(e,[{key:"calculator",value:function(n,r,i,a){return i.value}},{key:"postProcessor",value:function(n){if(n.parentNode){var r=n.parentNode,i=r.renderable,a=r.sortable;i&&(i.dirty=!0),a&&(a.dirty=!0,a.dirtyReason=Sm.Z_INDEX_CHANGED)}}}])}(),L8e=function(){function e(){Pe(this,e)}return Te(e,[{key:"update",value:function(n,r){var i=n.cx,a=i===void 0?0:i,o=n.cy,s=o===void 0?0:o,l=n.r,c=l===void 0?0:l;return{cx:a,cy:s,hwidth:c,hheight:c}}}])}(),R8e=function(){function e(){Pe(this,e)}return Te(e,[{key:"update",value:function(n,r){var i=n.cx,a=i===void 0?0:i,o=n.cy,s=o===void 0?0:o,l=n.rx,c=l===void 0?0:l,u=n.ry,f=u===void 0?0:u;return{cx:a,cy:s,hwidth:c,hheight:f}}}])}(),j8e=function(){function e(){Pe(this,e)}return Te(e,[{key:"update",value:function(n){var r=n.x1,i=n.y1,a=n.x2,o=n.y2,s=Math.min(r,a),l=Math.max(r,a),c=Math.min(i,o),u=Math.max(i,o),f=l-s,d=u-c,h=f/2,p=d/2;return{cx:s+h,cy:c+p,hwidth:h,hheight:p}}}])}(),D8e=function(){function e(){Pe(this,e)}return Te(e,[{key:"update",value:function(n){var r=n.d,i=r.rect,a=i.x,o=i.y,s=i.width,l=i.height,c=s/2,u=l/2;return{cx:a+c,cy:o+u,hwidth:c,hheight:u}}}])}(),F8e=function(){function e(){Pe(this,e)}return Te(e,[{key:"update",value:function(n){if(n.points&&Dr(n.points.points)){var r=n.points.points,i=Math.min.apply(Math,Gt(r.map(function(d){return d[0]}))),a=Math.max.apply(Math,Gt(r.map(function(d){return d[0]}))),o=Math.min.apply(Math,Gt(r.map(function(d){return d[1]}))),s=Math.max.apply(Math,Gt(r.map(function(d){return d[1]}))),l=a-i,c=s-o,u=l/2,f=c/2;return{cx:i+u,cy:o+f,hwidth:u,hheight:f}}return{cx:0,cy:0,hwidth:0,hheight:0}}}])}(),B8e=function(){function e(){Pe(this,e)}return Te(e,[{key:"update",value:function(n,r){var i=n.x,a=i===void 0?0:i,o=n.y,s=o===void 0?0:o,l=n.src,c=n.width,u=c===void 0?0:c,f=n.height,d=f===void 0?0:f,h=u,p=d;return l&&!nr(l)&&(h||(h=l.width,n.width=h),p||(p=l.height,n.height=p)
37),{cx:a+h/2,cy:s+p/2,hwidth:h/2,hheight:p/2}}}])}(),z8e=function(){function e(t){Pe(this,e),this.globalRuntime=t}return Te(e,[{key:"isReadyToMeasure",value:function(n,r){var i=n.text;return i}},{key:"update",value:function(n,r){var i,a=n.text,o=n.textAlign,s=o===void 0?"start":o,l=n.lineWidth,c=l===void 0?1:l,u=n.textBaseline,f=u===void 0?"alphabetic":u,d=n.dx,h=d===void 0?0:d,p=n.dy,g=p===void 0?0:p,v=n.x,y=v===void 0?0:v,x=n.y,C=x===void 0?0:x;if(!this.isReadyToMeasure(n,r))return n.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{hwidth:0,hheight:0,cx:0,cy:0};var _=(r==null||(i=r.ownerDocument)===null||i===void 0||(i=i.defaultView)===null||i===void 0?void 0:i.getConfig())||{},S=_.offscreenCanvas,O=this.globalRuntime.textService.measureText(a,n,S);n.metrics=O;var E=O.width,k=O.height,$=E/2,T=k/2,M=y+$;s==="center"||s==="middle"?M+=c/2-$:(s==="right"||s==="end")&&(M+=c-$*2);var R=C-T;return f==="middle"?R+=T:f==="top"||f==="hanging"?R+=T*2:f==="alphabetic"||(f==="bottom"||f==="ideographic")&&(R+=0),h&&(M+=h),g&&(R+=g),{cx:M,cy:R,hwidth:$,hheight:T}}}])}(),V8e=function(){function e(){Pe(this,e)}return Te(e,[{key:"update",value:function(n,r){return{cx:0,cy:0,hwidth:0,hheight:0}}}])}(),W8e=function(){function e(){Pe(this,e)}return Te(e,[{key:"update",value:function(n,r){var i=n.x,a=i===void 0?0:i,o=n.y,s=o===void 0?0:o,l=n.width,c=l===void 0?0:l,u=n.height,f=u===void 0?0:u;return{cx:a+c/2,cy:s+f/2,hwidth:c/2,hheight:f/2}}}])}(),nv=function(){function e(t){Pe(this,e),this.eventPhase=e.prototype.NONE,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.defaultPrevented=!1,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new mi,this.page=new mi,this.canvas=new mi,this.viewport=new mi,this.composed=!1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=t}return Te(e,[{key:"name",get:function(){return this.type}},{key:"layerX",get:function(){return this.layer.x}},{key:"layerY",get:function(){return this.layer.y}},{key:"pageX",get:function(){return this.page.x}},{key:"pageY",get:function(){return this.page.y}},{key:"x",get:function(){return this.canvas.x}},{key:"y",get:function(){return this.canvas.y}},{key:"canvasX",get:function(){return this.canvas.x}},{key:"canvasY",get:function(){return this.canvas.y}},{key:"viewportX",get:function(){return this.viewport.x}},{key:"viewportY",get:function(){return this.viewport.y}},{key:"composedPath",value:function(){return this.manager&&(!this.path||this.path[0]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path}},{key:"propagationPath",get:function(){return this.composedPath()}},{key:"preventDefault",value:function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}},{key:"stopImmediatePropagation",value:function(){this.propagationImmediatelyStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"initEvent",value:function(){}},{key:"initUIEvent",value:function(){}},{key:"clone",value:function(){throw new Error($n)}}])}(),XF=function(e){function t(){var n;Pe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=jt(this,t,[].concat(i)),n.client=new mi,n.movement=new mi,n.offset=new mi,n.global=new mi,n.screen=new mi,n}return Rt(t,e),Te(t,[{key:"clientX",get:function(){return this.client.x}},{key:"clientY",get:function(){return this.client.y}},{key:"movementX",get:function(){return this.movement.x}},{key:"movementY",get:function(){return this.movement.y}},{key:"offsetX",get:function(){return this.offset.x}},{key:"offsetY",get:function(){return this.offset.y}},{key:"globalX",get:function(){return this.global.x}},{key:"globalY",get:function(){return this.global.y}},{key:"screenX",get:function(){return this.screen.x}},{key:"screenY",get:function(){return this.screen.y}},{key:"getModifierState",value:function(r){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(r)}},{key:"initMouseEvent",value:function(){throw new Error($n)}}])}(nv),_7=function(e){function t(){var n;Pe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=jt(this,t,[].concat(i)),n.width=0,n.height=0,n.isPrimary=!1,n}
37return Rt(t,e),Te(t,[{key:"getCoalescedEvents",value:function(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]}},{key:"getPredictedEvents",value:function(){throw new Error("getPredictedEvents is not supported!")}},{key:"clone",value:function(){return this.manager.clonePointerEvent(this)}}])}(XF),S7=function(e){function t(){return Pe(this,t),jt(this,t,arguments)}return Rt(t,e),Te(t,[{key:"clone",value:function(){return this.manager.cloneWheelEvent(this)}}])}(XF),Mn=function(e){function t(n,r){var i;return Pe(this,t),i=jt(this,t,[null]),i.type=n,i.detail=r,Object.assign(i,r),i}return Rt(t,e),Te(t)}(nv),MA=new WeakMap,qF=function(){function e(){Pe(this,e),this.emitter=new gF}return Te(e,[{key:"on",value:function(n,r,i){return this.addEventListener(n,r,i),this}},{key:"addEventListener",value:function(n,r,i){var a=!1,o=!1;if(xk(i))a=i;else if(i){var s=i.capture;a=s===void 0?!1:s;var l=i.once;o=l===void 0?!1:l}a&&(n+="capture"),r=Hr(r)?r:r.handleEvent;var c=Hr(r)?void 0:r;return o?this.emitter.once(n,r,c):this.emitter.on(n,r,c),this}},{key:"off",value:function(n,r,i){return n?this.removeEventListener(n,r,i):this.removeAllEventListeners(),this}},{key:"removeAllEventListeners",value:function(){var n;(n=this.emitter)===null||n===void 0||n.removeAllListeners()}},{key:"removeEventListener",value:function(n,r,i){var a;if(!this.emitter)return this;var o=xk(i)?i:i==null?void 0:i.capture;o&&(n+="capture"),r=Hr(r)?r:(a=r)===null||a===void 0?void 0:a.handleEvent;var s=Hr(r)?void 0:r;return this.emitter.off(n,r,s),this}},{key:"emit",value:function(n,r){this.dispatchEvent(new Mn(n,r))}},{key:"dispatchEvent",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=MA.get(this);if(!i){var a;this.document?i=this:this.defaultView?i=this.defaultView:i=(a=this.ownerDocument)===null||a===void 0?void 0:a.defaultView,i&&MA.set(this,i)}if(i){if(n.manager=i.getEventService(),!n.manager)return!1;n.defaultPrevented=!1,n.path?n.path.length=0:n.page=[],r||(n.target=this),n.manager.dispatchEvent(n,n.type,r)}else this.emitter.emit(n.type,n);return!n.defaultPrevented}}])}(),ar=function(e){function t(){var n;Pe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=jt(this,t,[].concat(i)),n.shadow=!1,n.ownerDocument=null,n.isConnected=!1,n.baseURI="",n.childNodes=[],n.nodeType=0,n.nodeName="",n.nodeValue=null,n.parentNode=null,n}return Rt(t,e),Te(t,[{key:"textContent",get:function(){var r="";this.nodeName===xe.TEXT&&(r+=this.style.text);var i=Pu(this.childNodes),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;o.nodeName===xe.TEXT?r+=o.nodeValue:r+=o.textContent}}catch(s){i.e(s)}finally{i.f()}return r},set:function(r){var i=this;this.childNodes.slice().forEach(function(a){i.removeChild(a)}),this.nodeName===xe.TEXT&&(this.style.text="".concat(r))}},{key:"getRootNode",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.parentNode?this.parentNode.getRootNode(r):r.composed&&this.host?this.host.getRootNode(r):this}},{key:"hasChildNodes",value:function(){return this.childNodes.length>0}},{key:"isDefaultNamespace",value:function(r){throw new Error($n)}},{key:"lookupNamespaceURI",value:function(r){throw new Error($n)}},{key:"lookupPrefix",value:function(r){throw new Error($n)}},{key:"normalize",value:function(){throw new Error($n)}},{key:"isEqualNode",value:function(r){return this===r}},{key:"isSameNode",value:function(r){return this.isEqualNode(r)}},{key:"parent",get:function(){return this.parentNode}},{key:"parentElement",get:function(){return null}},{key:"nextSibling",get:function(){return null}},{key:"previousSibling",get:function(){return null}},{key:"firstChild",get:function(){return this.childNodes.length>0?this.childNodes[0]:null}},{key:"lastChild",get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null}},{key:"compareDocumentPosition",value:function(r){if(r===this)return 0;for(var i=r,a=this,o=[i],s=[a];(l=i.parentNode)!==null&&l!==void 0?l:a.parentNode;){var l;i=i.parentNode?(o.push(i.parentNode),i.parentNode):i,a=a.parentNode?(s.push(a.parentNode),a.parentNode):a}if(i!==a)return t.DOCUMENT_POSITION_DISCONNECTED|t.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|t.DOCUMENT_POSITION_PRECEDING;var c=o.length>s.length?o:s,u=c===o?s:o;if(c[c.length-u.length]===u[0])return c===o?t.DOCUMENT_POSITION_CONTAINED_BY|t.DOCUMENT_POSITION_FOLLOWING:t.DOCUMENT_POSITION_CONTAINS|t.DOCUMENT_POSITION_PRECEDING;for(var f=c.length-u.length,d=u.length-1;d>=0;d--){var h=u[d],p=c[f+d];if(p!==h){var g=h.parentNode.childNodes;return g.indexOf(h)<g.indexOf(p)?u===o?t.DOCUMENT_POSITION_PRECEDING:t.DOCUMENT_POSITION_FOLLOWING:c===o?t.DOCUMENT_POSITION_PRECEDING:t.DOCUMENT_POSITION_FOLLOWING}}return t.DOCUMENT_POSITION_FOLLOWING}},{key:"contain",value:function(r){return this.contains(r)}},{key:"contains",value:function(r){for(var i=r;i&&this!==i;)i=i.parentNode;return!!i}},{key:"getAncestor",value:function(r){for(var i=this;r>0&&i;)i=i.parentNode,r--;return i}}
37,{key:"forEach",value:function(r){for(var i=[this];i.length>0;){var a=i.pop(),o=r(a);if(o===!1)break;for(var s=a.childNodes.length-1;s>=0;s--)i.push(a.childNodes[s])}}}],[{key:"isNode",value:function(r){return!!r.childNodes}}])}(qF);ar.DOCUMENT_POSITION_DISCONNECTED=1;ar.DOCUMENT_POSITION_PRECEDING=2;ar.DOCUMENT_POSITION_FOLLOWING=4;ar.DOCUMENT_POSITION_CONTAINS=8;ar.DOCUMENT_POSITION_CONTAINED_BY=16;ar.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;var H8e=2048,G8e=function(){function e(t,n){var r=this;Pe(this,e),this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=_n(),this.tmpVec3=qt(),this.onPointerDown=function(i){var a=r.createPointerEvent(i);if(r.dispatchEvent(a,"pointerdown"),a.pointerType==="touch")r.dispatchEvent(a,"touchstart");else if(a.pointerType==="mouse"||a.pointerType==="pen"){var o=a.button===2;r.dispatchEvent(a,o?"rightdown":"mousedown")}var s=r.trackingData(i.pointerId);s.pressTargetsByButton[i.button]=a.composedPath(),r.freeEvent(a)},this.onPointerUp=function(i){var a=w7.now(),o=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);if(r.dispatchEvent(o,"pointerup"),o.pointerType==="touch")r.dispatchEvent(o,"touchend");else if(o.pointerType==="mouse"||o.pointerType==="pen"){var s=o.button===2;r.dispatchEvent(o,s?"rightup":"mouseup")}var l=r.trackingData(i.pointerId),c=r.findMountedTarget(l.pressTargetsByButton[i.button]),u=c;if(c&&!o.composedPath().includes(c)){for(var f=c;f&&!o.composedPath().includes(f);){if(o.currentTarget=f,r.notifyTarget(o,"pointerupoutside"),o.pointerType==="touch")r.notifyTarget(o,"touchendoutside");else if(o.pointerType==="mouse"||o.pointerType==="pen"){var d=o.button===2;r.notifyTarget(o,d?"rightupoutside":"mouseupoutside")}ar.isNode(f)&&(f=f.parentNode)}delete l.pressTargetsByButton[i.button],u=f}if(u){var h,p=r.clonePointerEvent(o,"click");p.target=u,p.path=[],l.clicksByButton[i.button]||(l.clicksByButton[i.button]={clickCount:0,target:p.target,timeStamp:a});var g=r.context.renderingContext.root.ownerDocument.defaultView,v=l.clicksByButton[i.button];v.target===p.target&&a-v.timeStamp<g.getConfig().dblClickSpeed?++v.clickCount:v.clickCount=1,v.target=p.target,v.timeStamp=a,p.detail=v.clickCount,(h=o.detail)!==null&&h!==void 0&&h.preventClick||(!r.context.config.useNativeClickEvent&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r.dispatchEvent(p,"click"),r.dispatchEvent(p,"pointertap")),r.freeEvent(p)}r.freeEvent(o)},this.onPointerMove=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0),o=a.pointerType==="mouse"||a.pointerType==="pen",s=r.trackingData(i.pointerId),l=r.findMountedTarget(s.overTargets);if(s.overTargets&&l!==a.target){var c=i.type==="mousemove"?"mouseout":"pointerout",u=r.createPointerEvent(i,c,l||void 0);if(r.dispatchEvent(u,"pointerout"),o&&r.dispatchEvent(u,"mouseout"),!a.composedPath().includes(l)){var f=r.createPointerEvent(i,"pointerleave",l||void 0);for(f.eventPhase=f.AT_TARGET;f.target&&!a.composedPath().includes(f.target);)f.currentTarget=f.target,r.notifyTarget(f),o&&r.notifyTarget(f,"mouseleave"),ar.isNode(f.target)&&(f.target=f.target.parentNode);r.freeEvent(f)}r.freeEvent(u)}if(l!==a.target){var d=i.type==="mousemove"?"mouseover":"pointerover",h=r.clonePointerEvent(a,d);r.dispatchEvent(h,"pointerover"),o&&r.dispatchEvent(h,"mouseover");for(var p=l&&ar.isNode(l)&&l.parentNode;p&&p!==(ar.isNode(r.rootTarget)&&r.rootTarget.parentNode)&&p!==a.target;)p=p.parentNode;var g=!p||p===(ar.isNode(r.rootTarget)&&r.rootTarget.parentNode);if(g){var v=r.clonePointerEvent(a,"pointerenter");for(v.eventPhase=v.AT_TARGET;v.target&&v.target!==l&&v.target!==(ar.isNode(r.rootTarget)&&r.rootTarget.parentNode);)v.currentTarget=v.target,r.notifyTarget(v),o&&r.notifyTarget(v,"mouseenter"),ar.isNode(v.target)&&(v.target=v.target.parentNode);r.freeEvent(v)}r.freeEvent(h)}r.dispatchEvent(a,"pointermove"),a.pointerType==="touch"&&r.dispatchEvent(a,"touchmove"),o&&(r.dispatchEvent(a,"mousemove"),r.cursor=r.getCursor(a.target)),s.overTargets=a.composedPath(),r.freeEvent(a)},this.onPointerOut=function(i){var a=r.trackingData(i.pointerId);if(a.overTargets){var o=i.pointerType==="mouse"||i.pointerType==="pen",s=r.findMountedTarget(a.overTargets),l=r.createPointerEvent(i,"pointerout",s||void 0);r.dispatchEvent(l),o&&r.dispatchEvent(l,"mouseout");var c=r.createPointerEvent(i,"pointerleave",s||void 0);for(c.eventPhase=c.AT_TARGET;c.target&&c.target!==(ar.isNode(r.rootTarget)&&r.rootTarget.parentNode);)c.currentTarget=c.target,r.notifyTarget(c),o&&r.notifyTarget(c,"mouseleave"),ar.isNode(c.target)&&(c.target=c.target.parentNode);a.overTargets=null,r.freeEvent(l),r.freeEvent(c)}r.cursor=null},this.onPointerOver=function(i){var a=r.trackingData(i.pointerId),o=r.createPointerEvent(i),s=o.pointerType==="mouse"||o.pointerType==="pen";r.dispatchEvent(o,"pointerover"),s&&r.dispatchEvent(o,"mouseover"),o.pointerType==="mouse"&&(r.cursor=r.getCursor(o.target));var l=r.clonePointerEvent(o,"pointerenter");for(l.eventPhase=l.AT_TARGET;l.target&&l.target!==(ar.isNode(r.rootTarget)&&r.rootTarget.parentNode);)l.currentTarget=l.target,r.notifyTarget(l),s&&r.notifyTarget(l,"mouseenter"),ar.isNode(l.target)&&(l.target=l.target.parentNode);a.overTargets=o.composedPath(),r.freeEvent(o),r.freeEvent(l)},this.onPointerUpOutside=function(i){var a=r.trackingData(i.pointerId),o=r.findMountedTarget(a.pressTargetsByButton[i.button]),s=r.createPointerEvent(i);if(o){for(var l=o;l;)s.currentTarget=l,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch"||(s.pointerType==="mouse"||s.pointerType==="pen")&&r.notifyTarget(s,s.button===2?"rightupoutside":"mouseupoutside"),ar.isNode(l)&&(l=l.parentNode);delete a.pressTargetsByButton[i.button]}r.freeEvent(s)},this.onWheel=function(i){var a=r.createWheelEvent(i);r.dispatchEvent(a),r.freeEvent(a)},this.onClick=function(i){if(r.context.config.useNativeClickEvent){var a=r.createPointerEvent(i);r.dispatchEvent(a),r.freeEvent(a)}},this.onPointerCancel=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);r.dispatchEvent(a),r.freeEvent(a)},this.globalRuntime=t,this.context=n}return Te(e,[{key:"init",value:function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)}},{key:"destroy",value:function(){this.mappingTable={},this.mappingState={},this.eventPool.clear()}},{key:"getScale",value:function(){var n=this.context.contextService.getBoundingClientRect(),r=1,i=1,a=this.context.contextService.getDomElement();if(a&&n){var o=a.offsetWidth,s=a.offsetHeight;o&&s&&(r=n.width/o,i=n.height/s)}return{scaleX:r,scaleY:i,bbox:n}}},{key:"client2Viewport",value:function(n){var r=this.getScale(),i=r.scaleX,a=r.scaleY,o=r.bbox;return new mi((n.x-((o==null?void 0:o.left)||0))/i,(n.y-((o==null?void 0:o.top)||0))/a)}},{key:"viewport2Client",value:function(n){var r=this.getScale(),i=r.scaleX,a=r.scaleY,o=r.bbox;return new mi((n.x+((o==null?void 0:o.left)||0))*i,(n.y+((o==null?void 0:o.top)||0))*a)}},{key:"viewport2Canvas",value:function(n){var r=n.x,i=n.y,a=this.rootTarget.defaultView,o=a.getCamera(),s=this.context.config,l=s.width,c=s.height,u=o.getPerspectiveInverse(),f=o.getWorldTransform(),d=Ii(this.tmpMatrix,f,u),h=$i(this.tmpVec3,r/l*2-1,(1-i/c)*2-1,0);
37return gr(h,h,d),new mi(h[0],h[1])}},{key:"canvas2Viewport",value:function(n){var r=this.rootTarget.defaultView,i=r.getCamera(),a=i.getPerspective(),o=i.getViewTransform(),s=Ii(this.tmpMatrix,a,o),l=$i(this.tmpVec3,n.x,n.y,0);gr(this.tmpVec3,this.tmpVec3,s);var c=this.context.config,u=c.width,f=c.height;return new mi((l[0]+1)/2*u,(1-(l[1]+1)/2)*f)}},{key:"setPickHandler",value:function(n){this.pickHandler=n}},{key:"addEventMapping",value:function(n,r){this.mappingTable[n]||(this.mappingTable[n]=[]),this.mappingTable[n].push({fn:r,priority:0}),this.mappingTable[n].sort(function(i,a){return i.priority-a.priority})}},{key:"mapEvent",value:function(n){if(this.rootTarget){var r=this.mappingTable[n.type];if(r)for(var i=0,a=r.length;i<a;i++)r[i].fn(n);else console.warn("[EventService]: Event mapping not defined for ".concat(n.type))}}},{key:"dispatchEvent",value:function(n,r,i){if(!i)n.propagationStopped=!1,n.propagationImmediatelyStopped=!1,this.propagate(n,r);else{n.eventPhase=n.AT_TARGET;var a=this.rootTarget.defaultView||null;n.currentTarget=a,this.notifyListeners(n,r)}}},{key:"propagate",value:function(n,r){if(n.target){var i=n.composedPath();n.eventPhase=n.CAPTURING_PHASE;for(var a=i.length-1;a>=1;a--)if(n.currentTarget=i[a],this.notifyTarget(n,r),n.propagationStopped||n.propagationImmediatelyStopped)return;if(n.eventPhase=n.AT_TARGET,n.currentTarget=n.target,this.notifyTarget(n,r),!(n.propagationStopped||n.propagationImmediatelyStopped)){var o=i.indexOf(n.currentTarget);n.eventPhase=n.BUBBLING_PHASE;for(var s=o+1;s<i.length;s++)if(n.currentTarget=i[s],this.notifyTarget(n,r),n.propagationStopped||n.propagationImmediatelyStopped)return}}}},{key:"propagationPath",value:function(n){var r=[n],i=this.rootTarget.defaultView||null;if(i&&i===n)return r.unshift(i.document),r;for(var a=0;a<H8e&&n!==this.rootTarget;a++)ar.isNode(n)&&n.parentNode&&(r.push(n.parentNode),n=n.parentNode);return i&&r.push(i),r}},{key:"hitTest",value:function(n){var r=n.viewportX,i=n.viewportY,a=this.context.config,o=a.width,s=a.height,l=a.disableHitTesting;return r<0||i<0||r>o||i>s?null:!l&&this.pickHandler(n)||this.rootTarget||null}},{key:"isNativeEventFromCanvas",value:function(n,r){var i,a=r==null?void 0:r.target;if((i=a)!==null&&i!==void 0&&i.shadowRoot&&(a=r.composedPath()[0]),a){if(a===n)return!0;if(n&&n.contains)return n.contains(a)}return r!=null&&r.composedPath?r.composedPath().indexOf(n)>-1:!1}},{key:"getExistedHTML",value:function(n){if(n.nativeEvent.composedPath)for(var r=0,i=n.nativeEvent.composedPath();r<i.length;r++){var a=i[r],o=this.nativeHTMLMap.get(a);if(o)return o}return null}},{key:"pickTarget",value:function(n){return this.hitTest({clientX:n.clientX,clientY:n.clientY,viewportX:n.viewportX,viewportY:n.viewportY,x:n.canvasX,y:n.canvasY})}},{key:"createPointerEvent",value:function(n,r,i,a){var o=this.allocateEvent(_7);this.copyPointerData(n,o),this.copyMouseData(n,o),this.copyData(n,o),o.nativeEvent=n.nativeEvent,o.originalEvent=n;var s=this.getExistedHTML(o),l=this.context.contextService.getDomElement();return o.target=i??(s||this.isNativeEventFromCanvas(l,o.nativeEvent)&&this.pickTarget(o)||a),typeof r=="string"&&(o.type=r),o}},{key:"createWheelEvent",value:function(n){var r=this.allocateEvent(S7);this.copyWheelData(n,r),this.copyMouseData(n,r),this.copyData(n,r),r.nativeEvent=n.nativeEvent,r.originalEvent=n;var i=this.getExistedHTML(r),a=this.context.contextService.getDomElement();return r.target=i||this.isNativeEventFromCanvas(a,r.nativeEvent)&&this.pickTarget(r),r}},{key:"trackingData",value:function(n){return this.mappingState.trackingData[n]||(this.mappingState.trackingData[n]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[n]}},{key:"cloneWheelEvent",value:function(n){var r=this.allocateEvent(S7);return r.nativeEvent=n.nativeEvent,r.originalEvent=n.originalEvent,this.copyWheelData(n,r),this.copyMouseData(n,r),this.copyData(n,r),r.target=n.target,r.path=n.composedPath().slice(),r.type=n.type,r}},{key:"clonePointerEvent",value:function(n,r){var i=this.allocateEvent(_7);return i.nativeEvent=n.nativeEvent,i.originalEvent=n.originalEvent,this.copyPointerData(n,i),this.copyMouseData(n,i),this.copyData(n,i),i.target=n.target,i.path=n.composedPath().slice(),i.type=r??i.type,i}},{key:"copyPointerData",value:function(n,r){r.pointerId=n.pointerId,r.width=n.width,r.height=n.height,r.isPrimary=n.isPrimary,r.pointerType=n.pointerType,r.pressure=n.pressure,r.tangentialPressure=n.tangentialPressure,r.tiltX=n.tiltX,r.tiltY=n.tiltY,r.twist=n.twist}},{key:"copyMouseData",value:function(n,r){r.altKey=n.altKey,r.button=n.button,r.buttons=n.buttons,r.ctrlKey=n.ctrlKey,r.metaKey=n.metaKey,r.shiftKey=n.shiftKey,r.client.copyFrom(n.client),r.movement.copyFrom(n.movement),r.canvas.copyFrom(n.canvas),r.screen.copyFrom(n.screen),r.global.copyFrom(n.global),r.offset.copyFrom(n.offset)}},{key:"copyWheelData",value:function(n,r){r.deltaMode=n.deltaMode,r.deltaX=n.deltaX,r.deltaY=n.deltaY,r.deltaZ=n.deltaZ}},{key:"copyData",value:function(n,r){r.isTrusted=n.isTrusted,r.timeStamp=w7.now(),r.type=n.type,r.detail=n.detail,r.view=n.view,r.page.copyFrom(n.page),r.viewport.copyFrom(n.viewport)}},{key:"allocateEvent",value:function(n){this.eventPool.has(n)||this.eventPool.set(n,[]);var r=this.eventPool.get(n).pop()||new n(this);return r.eventPhase=r.NONE,r.currentTarget=null,r.path=[],r.target=null,r}},{key:"freeEvent",value:function(n){if(n.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var r=n.constructor;this.eventPool.has(r)||this.eventPool.set(r,[]),this.eventPool.get(r).push(n)}},{key:"notifyTarget",value:function(n,r){r=r??n.type;var i=n.eventPhase===n.CAPTURING_PHASE||n.eventPhase===n.AT_TARGET?"".concat(r,"capture"):r;this.notifyListeners(n,i),n.eventPhase===n.AT_TARGET&&this.notifyListeners(n,r)}},{key:"notifyListeners",value:function(n,r){var i=n.currentTarget.emitter,a=i._events[r];if(a)if("fn"in a)a.once&&i.removeListener(r,a.fn,void 0,!0),a.fn.call(n.currentTarget||a.context,n);else for(var o=0;o<a.length&&!n.propagationImmediatelyStopped;o++)a[o].once&&i.removeListener(r,a[o].fn,void 0,!0),a[o].fn.call(n.currentTarget||a[o].context,n)}},{key:"findMountedTarget",value:function(n){if(!n)return null;for(var r=n[n.length-1],i=n.length-2;i>=0;i--){var a=n[i];if(a===this.rootTarget||ar.isNode(a)&&a.parentNode===r)r=n[i];else break}return r}},{key:"getCursor",value:function(n){for(var r=n;r;){var i=s8e(r)&&r.getAttribute("cursor");if(i)return i;r=ar.isNode(r)&&r.parentNode}}}])}(),Mb=function(){function e(){Pe(this,e)}return Te(e,[{key:"getOrCreateCanvas",value:function(n,r){if(this.canvas)return this.canvas;if(n||Ie.offscreenCanvas)this.canvas=n||Ie.offscreenCanvas,this.context=this.canvas.getContext("2d",Tt({willReadFrequently:!0},r));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",Tt({willReadFrequently:!0},r)),(!this.context||!this.context.measureText)&&(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch{this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",Tt({willReadFrequently:!0},r))}return this.canvas.width=10,this.canvas.height=10,this.canvas}},{key:"getOrCreateContext",value:function(n,r){return this.context?this.context:(this.getOrCreateCanvas(n,r),this.context)}}],[{key:"createCanvas",value:function(){try{return new window.OffscreenCanvas(0,0)}catch{}try{return document.createElement("canvas")}catch{}return null}}])}(),W0=function(e){return e[e.CAMERA_CHANGED=0]="CAMERA_CHANGED",e[e.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",e[e.NONE=2]="NONE",e}({}),U8e=function(){function e(t,n){Pe(this,e),this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new Vi,initAsync:new _8e,dirtycheck:new z9,cull:new z9,beginFrame:new Vi,beforeRender:new Vi,render:new Vi,afterRender:new Vi,endFrame:new Vi,destroy:new Vi,pick:new S8e,pickSync:new z9,pointerDown:new Vi,pointerUp:new Vi,pointerMove:new Vi,pointerOut:new Vi,pointerOver:new Vi,pointerWheel:new Vi,pointerCancel:ne
37w Vi,click:new Vi},this.globalRuntime=t,this.context=n}return Te(e,[{key:"init",value:function(n){var r=this,i=Tt(Tt({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(a){a.apply(i,r.globalRuntime)}),this.hooks.init.call(),this.hooks.initAsync.getCallbacksNum()===0?(this.inited=!0,n()):this.hooks.initAsync.promise().then(function(){r.inited=!0,n()}).catch(function(a){})}},{key:"getStats",value:function(){return this.stats}},{key:"disableDirtyRectangleRendering",value:function(){var n=this.context.config.renderer,r=n.getConfig(),i=r.enableDirtyRectangleRendering;return!i||this.context.renderingContext.renderReasons.has(W0.CAMERA_CHANGED)}},{key:"render",value:function(n,r,i){var a=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var o=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(o.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),o.renderReasons.size&&this.inited){o.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var s=o.renderReasons.size===1&&o.renderReasons.has(W0.CAMERA_CHANGED),l=!n.disableRenderHooks||!(n.disableRenderHooks&&s);l&&this.renderDisplayObject(o.root,n,o),this.hooks.beginFrame.call(r),l&&o.renderListCurrentFrame.forEach(function(c){a.hooks.beforeRender.call(c),a.hooks.render.call(c),a.hooks.afterRender.call(c)}),this.hooks.endFrame.call(r),o.renderListCurrentFrame=[],o.renderReasons.clear(),i()}}},{key:"renderDisplayObject",value:function(n,r,i){var a=this,o=r.renderer.getConfig(),s=o.enableDirtyCheck,l=o.enableCulling;function c(g){var v=g.renderable,y=g.sortable,x=s?v.dirty||i.dirtyRectangleRenderingDisabled?g:null:g;if(x){var C=l?a.hooks.cull.call(x,a.context.camera):x;C&&(a.stats.rendered+=1,i.renderListCurrentFrame.push(C))}v.dirty=!1,y.renderOrder=a.zIndexCounter,a.zIndexCounter+=1,a.stats.total+=1,y.dirty&&(a.sort(g,y),y.dirty=!1,y.dirtyChildren=[],y.dirtyReason=void 0)}for(var u=[n];u.length>0;){var f,d=u.pop();c(d);for(var h=((f=d.sortable)===null||f===void 0||(f=f.sorted)===null||f===void 0?void 0:f.length)>0?d.sortable.sorted:d.childNodes,p=h.length-1;p>=0;p--)u.push(h[p])}}},{key:"sort",value:function(n,r){var i,a;(r==null||(i=r.sorted)===null||i===void 0?void 0:i.length)>0&&r.dirtyReason!==Sm.Z_INDEX_CHANGED?r.dirtyChildren.forEach(function(o){var s=r.sorted.indexOf(o);s>-1&&r.sorted.splice(s,1);var l=n.childNodes.indexOf(o);if(l>-1)if(r.sorted.length===0)r.sorted.push(o);else{var c=l8e(r.sorted,o);r.sorted.splice(c,0,o)}}):r.sorted=n.childNodes.slice().sort(zF),((a=r.sorted)===null||a===void 0?void 0:a.length)>0&&n.childNodes.filter(function(o){return o.parsedStyle.zIndex}).length===0&&(r.sorted=[])}},{key:"destroy",value:function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()}},{key:"dirtify",value:function(){this.context.renderingContext.renderReasons.add(W0.DISPLAY_OBJECT_CHANGED)}}])}(),Y8e=/\[\s*(.*)=(.*)\s*\]/,X8e=function(){function e(){Pe(this,e)}return Te(e,[{key:"selectOne",value:function(n,r){var i=this;if(n.startsWith("."))return r.find(function(l){return((l==null?void 0:l.classList)||[]).indexOf(i.getIdOrClassname(n))>-1});if(n.startsWith("#"))return r.find(function(l){return l.id===i.getIdOrClassname(n)});if(n.startsWith("[")){var a=this.getAttribute(n),o=a.name,s=a.value;return o?r.find(function(l){return r!==l&&(o==="name"?l.name===s:i.attributeToString(l,o)===s)}):null}return r.find(function(l){return r!==l&&l.nodeName===n})}},{key:"selectAll",value:function(n,r){var i=this;if(n.startsWith("."))return r.findAll(function(l){return r!==l&&((l==null?void 0:l.classList)||[]).indexOf(i.getIdOrClassname(n))>-1});if(n.startsWith("#"))return r.findAll(function(l){return r!==l&&l.id===i.getIdOrClassname(n)});if(n.startsWith("[")){var a=this.getAttribute(n),o=a.name,s=a.value;return o?r.findAll(function(l){return r!==l&&(o==="name"?l.name===s:i.attributeToString(l,o)===s)}):[]}return r.findAll(function(l){return r!==l&&l.nodeName===n})}},{key:"is",value:function(n,r){if(n.startsWith("."))return r.className===this.getIdOrClassname(n);if(n.startsWith("#"))return r.id===this.getIdOrClassname(n);if(n.startsWith("[")){var i=this.getAttribute(n),a=i.name,o=i.value;return a==="name"?r.name===o:this.attributeToString(r,a)===o}return r.nodeName===n}},{key:"getIdOrClassname",value:function(n){return n.substring(1)}},{key:"getAttribute",value:function(n){var r=n.match(Y8e),i="",a="";return r&&r.length>2&&(i=r[1].replace(/"/g,""),a=r[2].replace(/"/g,"")),{name:i,value:a}}},{key:"attributeToString",value:function(n,r){if(!n.getAttribute)return"";var i=n.getAttribute(r);return pt(i)?"":i.toString?i.toString():""}}])}(),Ft=function(e){return e.ATTR_MODIFIED="DOMAttrModified",e.INSERTED="DOMNodeInserted",e.MOUNTED="DOMNodeInsertedIntoDocument",e.REMOVED="removed",e.UNMOUNTED="DOMNodeRemovedFromDocument",e.REPARENT="reparent",e.DESTROY="destroy",e.BOUNDS_CHANGED="bounds-changed",e.CULLED="culled",e}({}),Ms=function(e){function t(n,r,i,a,o,s,l,c){var u;return Pe(this,t),u=jt(this,t,[null]),u.relatedNode=r,u.prevValue=i,u.newValue=a,u.attrName=o,u.attrChange=s,u.prevParsedValue=l,u.newParsedValue=c,u.type=n,u}return Rt(t,e),Te(t)}(nv);Ms.ADDITION=2;Ms.MODIFICATION=1;Ms.REMOVAL=3;function NA(e){var t=e.renderable;t&&(t.renderBoundsDirty=!0,t.boundsDirty=!0)}var q8e=new Ms(Ft.REPARENT,null,"","","",0,"",""),Z8e=Kx(),b5=qt(),K8e=fn(1,1,1),J8e=_n(),Q8e=Kx(),ac=qt(),c0=_n(),oc=Wr(),exe=qt(),txe=Wr(),nxe=qt(),_1=qt(),vu=qt(),C5=_n(),IA=Wr(),LA=Wr(),w5=Wr(),W9={affectChildren:!0},rxe=function(){function e(t){Pe(this,e),this.pendingEvents=new Map,this.boundsChangedEvent=new Mn(Ft.BOUNDS_CHANGED),this.displayObjectDependencyMap=new WeakMap,this.runtime=t}return Te(e,[{key:"matches",value:function(n,r){return this.runtime.sce
37neGraphSelector.is(n,r)}},{key:"querySelector",value:function(n,r){return this.runtime.sceneGraphSelector.selectOne(n,r)}},{key:"querySelectorAll",value:function(n,r){return this.runtime.sceneGraphSelector.selectAll(n,r)}},{key:"attach",value:function(n,r,i){var a,o=!1;n.parentNode&&(o=n.parentNode!==r,this.detach(n));var s=n.nodeName===xe.FRAGMENT,l=$m(r);n.parentNode=r;var c=s?n.childNodes:[n];Jn(i)?c.forEach(function(h){r.childNodes.splice(i,0,h),h.parentNode=r}):c.forEach(function(h){r.childNodes.push(h),h.parentNode=r});var u=r,f=u.sortable;if((f!=null&&(a=f.sorted)!==null&&a!==void 0&&a.length||f.dirty||n.parsedStyle.zIndex)&&(f.dirtyChildren.indexOf(n)===-1&&f.dirtyChildren.push(n),f.dirty=!0,f.dirtyReason=Sm.ADDED),!l){if(s)this.dirtifyFragment(n);else{var d=n.transformable;d&&this.dirtifyWorld(n,d)}o&&n.dispatchEvent(q8e)}}},{key:"detach",value:function(n){var r,i;if(n.parentNode){var a=n.transformable,o=n.parentNode,s=o.sortable;(s!=null&&(r=s.sorted)!==null&&r!==void 0&&r.length||(i=n.style)!==null&&i!==void 0&&i.zIndex)&&(s.dirtyChildren.indexOf(n)===-1&&s.dirtyChildren.push(n),s.dirty=!0,s.dirtyReason=Sm.REMOVED);var l=n.parentNode.childNodes.indexOf(n);l>-1&&n.parentNode.childNodes.splice(l,1),a&&this.dirtifyWorld(n,a),n.parentNode=null}}},{key:"getOrigin",value:function(n){return n.getGeometryBounds(),n.transformable.origin}},{key:"setOrigin",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof r=="number"&&(r=[r,i,a]);var o=n.transformable;if(!(r[0]===o.origin[0]&&r[1]===o.origin[1]&&r[2]===o.origin[2])){var s=o.origin;s[0]=r[0],s[1]=r[1],s[2]=r[2]||0,this.dirtifyLocal(n,o)}}},{key:"rotate",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof r=="number"&&(r=fn(r,i,a));var o=n.transformable;if(n.parentNode===null||!n.parentNode.transformable)this.rotateLocal(n,r);else{var s=oc;u5(s,r[0],r[1],r[2]);var l=this.getRotation(n),c=this.getRotation(n.parentNode);f5(w5,c),y9(w5,w5),Sc(s,w5,s),Sc(o.localRotation,s,l),dm(o.localRotation,o.localRotation),this.dirtifyLocal(n,o)}}},{key:"rotateLocal",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof r=="number"&&(r=fn(r,i,a));var o=n.transformable;u5(LA,r[0],r[1],r[2]),_k(o.localRotation,o.localRotation,LA),this.dirtifyLocal(n,o)}},{key:"setEulerAngles",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof r=="number"&&(r=fn(r,i,a));var o=n.transformable;if(n.parentNode===null||!n.parentNode.transformable)this.setLocalEulerAngles(n,r);else{u5(o.localRotation,r[0],r[1],r[2]);var s=this.getRotation(n.parentNode);f5(IA,y9(oc,s)),_k(o.localRotation,o.localRotation,IA),this.dirtifyLocal(n,o)}}},{key:"setLocalEulerAngles",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;typeof r=="number"&&(r=fn(r,i,a));var s=n.transformable;u5(s.localRotation,r[0],r[1],r[2]),o&&this.dirtifyLocal(n,s)}},{key:"translateLocal",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof r=="number"&&(r=fn(r,i,a));var o=n.transformable;y1(r,b5)||(H3e(r,r,o.localRotation),_c(o.localPosition,o.localPosition,r),this.dirtifyLocal(n,o))}},{key:"setPosition",value:function(n,r){var i,a=n.transformable;if(vu[0]=r[0],vu[1]=r[1],vu[2]=(i=r[2])!==null&&i!==void 0?i:0,!y1(this.getPosition(n),vu)){if(ys(a.position,vu),n.parentNode===null||!n.parentNode.transformable)ys(a.localPosition,vu);else{var o=n.parentNode.transformable;rd(C5,o.worldTransform),Do(C5,C5),gr(a.localPosition,vu,C5)}this.dirtifyLocal(n,a)}}},{key:"setLocalPosition",value:function(n,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=n.transformable;_1[0]=r[0],_1[1]=r[1],_1[2]=(i=r[2])!==null&&i!==void 0?i:0,!y1(o.localPosition,_1)&&(ys(o.localPosition,_1),a&&this.dirtifyLocal(n,o))}},{key:"scaleLocal",value:function(n,r){var i,a=n.transformable;B3e(a.localScale,a.localScale,$i(ac,r[0],r[1],(i=r[2])!==null&&i!==void 0?i:1)),this.dirtifyLocal(n,a)}},{key:"setLocalScale",value:function(n,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=n.transformable;$i(ac,r[0],r[1],(i=r[2])!==null&&i!==void 0?i:o.localScale[2]),!y1(ac,o.localScale)&&(ys(o.localScale,ac),a&&this.dirtifyLocal(n,o))}},{key:"translate",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof r=="number"&&(r=$i(ac,r,i,a)),!y1(r,b5)&&(_c(ac,this.getPosition(n),r),this.setPosition(n,ac))}},{key:"setRotation",value:function(n,r,i,a,o){var s=n.transformable;if(typeof r=="number"&&(r=Z3e(r,i,a,o)),n.parentNode===null||!n.parentNode.transformable)this.setLocalRotation(n,r);else{var l=this.getRotation(n.parentNode);f5(oc,l),y9(oc,oc),Sc(s.localRotation,oc,r),dm(s.localRotation,s.localRotation),this.dirtifyLocal(n,s)}}},{key:"setLocalRotation",value:function(n,r,i,a,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;typeof r=="number"&&(r=wk(oc,r,i,a,o));var l=n.transformable;f5(l.localRotation,r),s&&this.dirtifyLocal(n,l)}},{key:"setLocalSkew",value:function(n,r,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;typeof r=="number"&&(r=J3e(Q8e,r,i));var o=n.transformable;K3e(o.localSkew,r),a&&this.dirtifyLocal(n,o)}},{key:"dirtifyLocal",value:function(n,r){$m(n)||r.localDirtyFlag||(r.localDirtyFlag=!0,r.dirtyFlag||this.dirtifyWorld(n,r))}},{key:"dirtifyWorld",value:function(n,r){r.dirtyFlag||this.unfreezeParentToRoot(n),this.dirtifyWorldInternal(n,r),this.dirtifyToRoot(n,!0)}},{key:"dirtifyFragment",value:function(n){var r=n.transformable;r&&(r.frozen=!1,r.dirtyFlag=!0,r.localDirtyFlag=!0);var i=n.renderable;i&&(i.renderBoundsDirty=!0,i.boundsDirty=!0,i.dirty=!0);for(var a=n.childNodes.length,o=0;o<a;o++)this.dirtifyFragment(n.childNodes[o]);n.nodeName===xe.FRAGMENT&&this.pendingEvents.set(n,!1)}},{key:"triggerPendingEvents",value:function(){var n=this,r=new Set,i=function(o,s){!o.isConnected||r.has(o)||o.nodeName===xe.FRAGMENT||(n.boundsChangedEvent.detail=s,n.boundsChangedEvent.target=
37o,o.isMutationObserved?o.dispatchEvent(n.boundsChangedEvent):o.ownerDocument.defaultView.dispatchEvent(n.boundsChangedEvent,!0),r.add(o))};this.pendingEvents.forEach(function(a,o){o.nodeName!==xe.FRAGMENT&&(W9.affectChildren=a,a?o.forEach(function(s){i(s,W9)}):i(o,W9))}),r.clear(),this.clearPendingEvents()}},{key:"clearPendingEvents",value:function(){this.pendingEvents.clear()}},{key:"dirtifyToRoot",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=n;for(i.renderable&&(i.renderable.dirty=!0);i;)NA(i),i=i.parentNode;r&&n.forEach(function(a){NA(a)}),this.informDependentDisplayObjects(n),this.pendingEvents.set(n,r)}},{key:"updateDisplayObjectDependency",value:function(n,r,i,a){if(r&&r!==i){var o=this.displayObjectDependencyMap.get(r);if(o&&o[n]){var s=o[n].indexOf(a);o[n].splice(s,1)}}if(i){var l=this.displayObjectDependencyMap.get(i);l||(this.displayObjectDependencyMap.set(i,{}),l=this.displayObjectDependencyMap.get(i)),l[n]||(l[n]=[]),l[n].push(a)}}},{key:"informDependentDisplayObjects",value:function(n){var r=this,i=this.displayObjectDependencyMap.get(n);
37i&&Object.keys(i).forEach(function(a){i[a].forEach(function(o){r.dirtifyToRoot(o,!0),o.dispatchEvent(new Ms(Ft.ATTR_MODIFIED,o,r,r,a,Ms.MODIFICATION,r,r)),o.isCustomElement&&o.isConnected&&o.attributeChangedCallback&&o.attributeChangedCallback(a,r,r)})})}},{key:"getPosition",value:function(n){var r=n.transformable;return cm(r.position,this.getWorldTransform(n,r))}},{key:"getRotation",value:function(n){var r=n.transformable;return um(r.rotation,this.getWorldTransform(n,r))}},{key:"getScale",value:function(n){var r=n.transformable;return id(r.scaling,this.getWorldTransform(n,r))}},{key:"getWorldTransform",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.transformable;return!r.localDirtyFlag&&!r.dirtyFlag||(n.parentNode&&n.parentNode.transformable&&this.getWorldTransform(n.parentNode),this.sync(n,r)),r.worldTransform}},{key:"getLocalPosition",value:function(n){return n.transformable.localPosition}},{key:"getLocalRotation",value:function(n){return n.transformable.localRotation}},{key:"getLocalScale",value:function(n){return n.transformable.localScale}},{key:"getLocalSkew",value:function(n){return n.transformable.localSkew}},{key:"calcLocalTransform",value:function(n){var r=n.localSkew[0]!==0||n.localSkew[1]!==0;if(r){dh(n.localTransform,n.localRotation,n.localPosition,fn(1,1,1),n.origin),(n.localSkew[0]!==0||n.localSkew[1]!==0)&&(Pc(c0),c0[4]=Math.tan(n.localSkew[0]),c0[1]=Math.tan(n.localSkew[1]),Ii(n.localTransform,n.localTransform,c0));var i=dh(c0,wk(oc,0,0,0,1),$i(ac,1,1,1),n.localScale,n.origin);Ii(n.localTransform,n.localTransform,i)}else{var a=n.localTransform,o=n.localPosition,s=n.localRotation,l=n.localScale,c=n.origin,u=o[0]!==0||o[1]!==0||o[2]!==0,f=s[3]!==1||s[0]!==0||s[1]!==0||s[2]!==0,d=l[0]!==1||l[1]!==1||l[2]!==1,h=c[0]!==0||c[1]!==0||c[2]!==0;!f&&!d&&!h?u?ml(a,o):Pc(a):dh(a,s,o,l,c)}}},{key:"getLocalTransform",value:function(n){var r=n.transformable;return r.localDirtyFlag&&(this.calcLocalTransform(r),r.localDirtyFlag=!1),r.localTransform}},{key:"setLocalTransform",value:function(n,r){var i=cm(exe,r),a=um(txe,r),o=id(nxe,r);this.setLocalScale(n,o,!1),this.setLocalPosition(n,i,!1),this.setLocalRotation(n,a,void 0,void 0,void 0,!1),this.dirtifyLocal(n,n.transformable)}},{key:"resetLocalTransform",value:function(n){this.setLocalScale(n,K8e,!1),this.setLocalPosition(n,b5,!1),this.setLocalEulerAngles(n,b5,void 0,void 0,!1),this.setLocalSkew(n,Z8e,void 0,!1),this.dirtifyLocal(n,n.transformable)}},{key:"getTransformedGeometryBounds",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2?arguments[2]:void 0,a=this.getGeometryBounds(n,r);if(!Ar.isEmpty(a)){var o=i||new Ar;return o.setFromTransformedAABB(a,this.getWorldTransform(n)),o}return null}},{key:"getGeometryBounds",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=n,a=i.geometry;a.dirty&&Ie.styleValueRegistry.updateGeometry(n);var o=r?a.renderBounds:a.contentBounds||null;return o||new Ar}},{key:"getBounds",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=n,o=a.renderable;if(!o.boundsDirty&&!i&&o.bounds)return o.bounds;if(!o.renderBoundsDirty&&i&&o.renderBounds)return o.renderBounds;var s=i?o.renderBounds:o.bounds,l=this.getTransformedGeometryBounds(n,i,s),c=n.childNodes;if(c.forEach(function(d){var h=r.getBounds(d,i);h&&(l?l.add(h):(l=s||new Ar,l.update(h.center,h.halfExtents)))}),l||(l=new Ar),i){var u=VF(n);if(u){var f=u.parsedStyle.clipPath.getBounds(i);l?f&&(l=f.intersection(l)):l.update(f.center,f.halfExtents)}}return i?(o.renderBounds=l,o.renderBoundsDirty=!1):(o.bounds=l,o.boundsDirty=!1),l}},{key:"getLocalBounds",value:function(n){if(n.parentNode){var r=J8e;n.parentNode.transformable&&(r=Do(c0,this.getWorldTransform(n.parentNode)));var i=this.getBounds(n);if(!Ar.isEmpty(i)){var a=new Ar;return a.setFromTransformedAABB(i,r),a}}return this.getBounds(n)}},{key:"getBoundingClientRect",value:function(n){var r,i,a=this.getGeometryBounds(n);Ar.isEmpty(a)||(i=new Ar,i.setFromTransformedAABB(a,this.getWorldTransform(n)));var o=(r=n.ownerDocument)===null||r===void 0||(r=r.defaultView)===null||r===void 0?void 0:r.getContextService().getBoundingClientRect();if(i){var s=i.getMin(),l=St(s,2),c=l[0],u=l[1],f=i.getMax(),d=St(f,2),h=d[0],p=d[1];return new dd(c+((o==null?void 0:o.left)||0),u+((o==null?void 0:o.top)||0),h-c,p-u)}return new dd((o==null?void 0:o.left)||0,(o==null?void 0:o.top)||0,0,0)}},{key:"dirtifyWorldInternal",value:function(n,r){var i=this;
37if(!r.dirtyFlag){r.dirtyFlag=!0,r.frozen=!1,n.childNodes.forEach(function(s){var l=s.transformable;l.dirtyFlag||i.dirtifyWorldInternal(s,l)});var a=n,o=a.renderable;o&&(o.renderBoundsDirty=!0,o.boundsDirty=!0,o.dirty=!0)}}},{key:"syncHierarchy",value:function(n){var r=n.transformable;if(!r.frozen){r.frozen=!0,(r.localDirtyFlag||r.dirtyFlag)&&this.sync(n,r);for(var i=n.childNodes,a=0;a<i.length;a++)this.syncHierarchy(i[a])}}},{key:"sync",value:function(n,r){if(r.localDirtyFlag&&(this.calcLocalTransform(r),r.localDirtyFlag=!1),r.dirtyFlag){var i=n.parentNode,a=i&&i.transformable;i===null||!a?rd(r.worldTransform,r.localTransform):Ii(r.worldTransform,a.worldTransform,r.localTransform),r.dirtyFlag=!1}}},{key:"unfreezeParentToRoot",value:function(n){for(var r=n.parentNode;r;){var i=r.transformable;i&&(i.frozen=!1),r=r.parentNode}}}])}(),yu={MetricsString:"|ÉqÅ",BaselineSymbol:"M",BaselineMultiplier:1.4,HeightMultiplier:2,Newlines:[10,13],BreakingSpaces:[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288]},RA=/[a-zA-Z0-9\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff!"#$%&'()*+,-./:;]/,ixe=/[!%),.:;?\]}¢°·'""†‡›℃∶、。〃〆〕〗〞﹚﹜!"%'),.:;?!]}~]/,axe=/[$(£¥·'"〈《「『【〔〖〝﹙﹛$(.[{£¥]/,oxe=/[!),.:;?\]}¢·–—'"•"、。〆〞〕〉》」︰︱︲︳﹐﹑﹒﹓﹔﹕﹖﹘﹚﹜!),.:;?︶︸︺︼︾﹀﹂﹗]|}、]/,sxe=/[([{£¥'"‵〈《「『〔〝︴﹙﹛({︵︷︹︻︽︿﹁﹃﹏]/,lxe=/[)\]}〕〉》」』】〙〗〟'"⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、:;,。.]/,cxe=/[([{〔〈《「『【〘〖〝'"⦅«—...‥〳〴〵]/,uxe=/[!%),.:;?\]}¢°'"†‡℃〆〈《「『〕!%),.:;?]}]/,fxe=/[$([{£¥'"々〇〉》」〔$([{⦆¥₩#]/,dxe=new RegExp("".concat(ixe.source,"|").concat(oxe.source,"|").concat(lxe.source,"|").concat(uxe.source)),hxe=new RegExp("".concat(axe.source,"|").concat(sxe.source,"|").concat(cxe.source,"|").concat(fxe.source)),pxe=function(){function e(t){var n=this;Pe(this,e),this.fontMetricsCache={},this.shouldBreakByKinsokuShorui=function(r,i){return n.isBreakingSpace(i)?!1:!!(r&&(hxe.exec(i)||dxe.exec(r)))},this.trimByKinsokuShorui=function(r){var i=Gt(r),a=i[i.length-2];if(!a)return r;var o=a[a.length-1];return i[i.length-2]=a.slice(0,-1),i[i.length-1]=o+i[i.length-1],i},this.runtime=t}return Te(e,[{key:"measureFont",value:function(n,r){if(this.fontMetricsCache[n])return this.fontMetricsCache[n];var i={ascent:0,descent:0,fontSize:0},a=this.runtime.offscreenCanvasCreator.getOrCreateCanvas(r),o=this.runtime.offscreenCanvasCreator.getOrCreateContext(r,{willReadFrequently:!0});o.font=n;var s=yu.MetricsString+yu.BaselineSymbol,l=Math.ceil(o.measureText(s).width),c=Math.ceil(o.measureText(yu.BaselineSymbol).width),u=yu.HeightMultiplier*c;c=c*yu.BaselineMultiplier|0,a.width=l,a.height=u,o.fillStyle="#f00",o.fillRect(0,0,l,u),o.font=n,o.textBaseline="alphabetic",o.fillStyle="#000",o.fillText(s,0,c);var f=o.getImageData(0,0,l||1,u||1).data,d=f.length,h=l*4,p=0,g=0,v=!1;for(p=0;p<c;++p){for(var y=0;y<h;y+=4)if(f[g+y]!==255){v=!0;break}if(!v)g+=h;else break}for(i.ascent=c-p,g=d-h,v=!1,p=u;p>c;--p){for(var x=0;x<h;x+=4)if(f[g+x]!==255){v=!0;break}if(!v)g-=h;else break}return i.descent=p-c,i.fontSize=i.ascent+i.descent,this.fontMetricsCache[n]=i,i}},{key:"measureText",value:function(n,r,i){var a=r.fontSize,o=a===void 0?16:a,s=r.wordWrap,l=s===void 0?!1:s,c=r.lineHeight,u=r.lineWidth,f=u===void 0?1:u,d=r.textBaseline,h=d===void 0?"alphabetic":d,p=r.textAlign,g=p===void 0?"start":p,v=r.letterSpacing,y=v===void 0?0:v,x=r.textPath;r.textPathSide,r.textPathStartOffset;var C=r.leading,_=C===void 0?0:C,S=k8e(r),O=this.measureFont(S,i);O.fontSize===0&&(O.fontSize=o,O.ascent=o);var E=this.runtime.offscreenCanvasCreator.getOrCreateContext(i);E.font=S,r.isOverflowing=!1;var k=l?this.wordWrap(n,r,i):n,$=k.split(/(?:\r\n|\r|\n)/),T=new Array($.length),M=0;if(x){x.getTotalLength();for(var R=0;R<$.length;R++)E.measureText($[R]).width+($[R].length-1)*y}else{for(var N=0;N<$.length;N++){var D=E.measureText($[N]).width+($[N].length-1)*y;T[N]=D,M=Math.max(M,D)}var F=M+f,V=c||O.fontSize+f,z=Math.max(V,O.fontSize+f)+($.length-1)*(V+_);V+=_;var B=0;return h==="middle"?B=-z/2:h==="bottom"||h==="alphabetic"||h==="ideographic"?B=-z:(h==="top"||h==="hanging")&&(B=0),{font:S,width:F,height:z,lines:$,lineWidths:T,lineHeight:V,maxLineWidth:M,fontProperties:O,lineMetrics:T.map(function(G,Y){var K=0;return g==="center"||g==="middle"?K-=G/2:(g==="right"||g==="end")&&(K-=G),new dd(K-f/2,B+Y*V,G+f,V)})}}}},{key:"wordWrap",value:function(n,r,i){var a=this,o=this,s=r.wordWrapWidth,l=s===void 0?0:s,c=r.letterSpacing,u=c===void 0?0:c,f=r.maxLines,d=f===void 0?1/0:f,h=r.textOverflow,p=this.runtime.offscreenCanvasCreator.getOrCreateContext(i),g=l+u,v="";h==="ellipsis"?v="...":h&&h!=="clip"&&(v=h);var y=Array.from(n),x=[],C=0,_=0,S=-1,O={},E=function(B){return a.getFromCache(B,u,O,p)},k=E(v);function $(z,B,G,Y){for(;E(z)<Y&&B<y.length-1&&!o.isNewline(y[B+1]);)B+=1,z+=y[B];for(;E(z)>Y&&B>=G;
37)B-=1,z=z.slice(0,-1);return{lineTxt:z,txtLastCharIndex:B}}function T(z,B){if(!(k<=0||k>g)){if(!x[z]){x[z]=v;return}var G=$(x[z],B,S+1,g-k);x[z]=G.lineTxt+v}}for(var M=0;M<y.length;M++){var R=y[M],N=y[M-1],D=y[M+1],F=E(R);if(this.isNewline(R)){if(C+1>=d){r.isOverflowing=!0,M<y.length-1&&T(C,M-1);break}S=M-1,C+=1,_=0,x[C]="";continue}if(_>0&&_+F>g){var V=$(x[C],M-1,S+1,g);if(V.txtLastCharIndex!==M-1){if(x[C]=V.lineTxt,V.txtLastCharIndex===y.length-1)break;M=V.txtLastCharIndex+1,R=y[M],N=y[M-1],D=y[M+1],F=E(R)}if(C+1>=d){r.isOverflowing=!0,T(C,M-1);break}if(S=M-1,C+=1,_=0,x[C]="",this.isBreakingSpace(R))continue;this.canBreakInLastChar(R)||(x=this.trimToBreakable(x),_=this.sumTextWidthByCache(x[C]||"",E)),this.shouldBreakByKinsokuShorui(R,D)&&(x=this.trimByKinsokuShorui(x),_+=E(N||""))}_+=F,x[C]=(x[C]||"")+R}return x.join(`
38`)}},{key:"isBreakingSpace",value:function(n){return typeof n!="string"?!1:yu.BreakingSpaces.indexOf(n.charCodeAt(0))>=0}},{key:"isNewline",value:function(n){return typeof n!="string"?!1:yu.Newlines.indexOf(n.charCodeAt(0))>=0}},{key:"trimToBreakable",value:function(n){var r=Gt(n),i=r[r.length-2],a=this.findBreakableIndex(i);if(a===-1||!i)return r;var o=i.slice(a,a+1),s=this.isBreakingSpace(o),l=a+1,c=a+(s?0:1);return r[r.length-1]+=i.slice(l,i.length),r[r.length-2]=i.slice(0,c),r}},{key:"canBreakInLastChar",value:function(n){return!(n&&RA.test(n))}},{key:"sumTextWidthByCache",value:function(n,r){return n.split("").reduce(function(i,a){return i+r(a)},0)}},{key:"findBreakableIndex",value:function(n){for(var r=n.length-1;r>=0;r--)if(!RA.test(n[r]))return r;return-1}},{key:"getFromCache",value:function(n,r,i,a){var o=i[n];if(typeof o!="number"){var s=n.length*r,l=a.measureText(n);o=l.width+s,i[n]=o}return o}}])}(),Ie={},gxe=function(e){var t=new B8e,n=new F8e;return e={},Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(e,xe.FRAGMENT,null),xe.CIRCLE,new L8e),xe.ELLIPSE,new R8e),xe.RECT,t),xe.IMAGE,t),xe.GROUP,new V8e),xe.LINE,new j8e),xe.TEXT,new z8e(Ie)),xe.POLYLINE,n),xe.POLYGON,n),Je(Je(Je(e,xe.PATH,new D8e),xe.HTML,new W8e),xe.MESH,null)}(),mxe=function(e){var t=new Y7e,n=new C7;return e={},Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(e,ze.PERCENTAGE,null),ze.NUMBER,new J7e),ze.ANGLE,new G7e),ze.DEFINED_PATH,new U7e),ze.PAINT,t),ze.COLOR,t),ze.FILTER,new X7e),ze.LENGTH,n),ze.LENGTH_PERCENTAGE,n),ze.LENGTH_PERCENTAGE_12,new q7e),Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(e,ze.LENGTH_PERCENTAGE_14,new Z7e),ze.COORDINATE,new C7),ze.OFFSET_DISTANCE,new Q7e),ze.OPACITY_VALUE,new e8e),ze.PATH,new t8e),ze.LIST_OF_POINTS,new n8e),ze.SHADOW_BLUR,new r8e),ze.TEXT,new i8e),ze.TEXT_TRANSFORM,new a8e),ze.TRANSFORM,new M8e),Je(Je(Je(e,ze.TRANSFORM_ORIGIN,new N8e),ze.Z_INDEX,new I8e),ze.MARKER,new K7e)}(),vxe=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof vc<"u"?vc:{}};Ie.CameraContribution=wF;Ie.AnimationTimeline=null;Ie.EasingFunction=null;Ie.offscreenCanvasCreator=new Mb;Ie.sceneGraphSelector=new X8e;Ie.sceneGraphService=new rxe(Ie);Ie.textService=new pxe(Ie);Ie.geometryUpdaterFactory=gxe;Ie.CSSPropertySyntaxFactory=mxe;Ie.styleValueRegistry=new W7e(Ie);Ie.layoutRegistry=null;Ie.globalThis=vxe();Ie.enableStyleSyntax=!0;Ie.enableSizeAttenuation=!1;var yxe=0,O7=new Ms(Ft.INSERTED,null,"","","",0,"",""),E7=new Ms(Ft.REMOVED,null,"","","",0,"",""),ZF=new Mn(Ft.DESTROY),xxe=function(e){function t(){var n;Pe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=jt(this,t,[].concat(i)),n.entity=yxe++,n.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},n.cullable={strategy:b6e.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},n.transformable={dirtyFlag:!1,localDirtyFlag:!1,frozen:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},n.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},n.geometry={contentBounds:void 0,renderBounds:void 0,dirty:!0},n.rBushNode={aabb:void 0},n.namespaceURI="g",n.scrollLeft=0,n.scrollTop=0,n.clientTop=0,n.clientLeft=0,n.destroyed=!1,n.style={}
38,n.computedStyle={},n.parsedStyle={},n.attributes={},n}return Rt(t,e),Te(t,[{key:"className",get:function(){return this.getAttribute("class")||""},set:function(r){this.setAttribute("class",r)}},{key:"classList",get:function(){return this.className.split(" ").filter(function(r){return r!==""})}},{key:"tagName",get:function(){return this.nodeName}},{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}},{key:"parentElement",get:function(){return this.parentNode}},{key:"nextSibling",get:function(){if(this.parentNode){var r=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[r+1]||null}return null}},{key:"previousSibling",get:function(){if(this.parentNode){var r=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[r-1]||null}return null}},{key:"cloneNode",value:function(r){throw new Error($n)}},{key:"appendChild",value:function(r,i){var a;if(r.destroyed)throw new Error(c6e);return Ie.sceneGraphService.attach(r,this,i),(a=this.ownerDocument)!==null&&a!==void 0&&a.defaultView&&(!$m(this)&&r.nodeName===xe.FRAGMENT?this.ownerDocument.defaultView.mountFragment(r):this.ownerDocument.defaultView.mountChildren(r)),this.isMutationObserved&&(O7.relatedNode=this,r.dispatchEvent(O7)),r}},{key:"insertBefore",value:function(r,i){if(!i)this.appendChild(r);else{r.parentElement&&r.parentElement.removeChild(r);var a=this.childNodes.indexOf(i);a===-1?this.appendChild(r):this.appendChild(r,a)}return r}},{key:"replaceChild",value:function(r,i){var a=this.childNodes.indexOf(i);return this.removeChild(i),this.appendChild(r,a),i}},{key:"removeChild",value:function(r){var i;return E7.relatedNode=this,r.dispatchEvent(E7),(i=r.ownerDocument)!==null&&i!==void 0&&i.defaultView&&r.ownerDocument.defaultView.unmountChildren(r),Ie.sceneGraphService.detach(r),r}},{key:"removeChildren",value:function(){for(var r=this.childNodes.length-1;r>=0;r--){var i=this.childNodes[r];this.removeChild(i)}}},{key:"destroyChildren",value:function(){for(var r=this.childNodes.length-1;r>=0;r--){var i=this.childNodes[r];i.childNodes.length>0&&i.destroyChildren(),i.destroy()}}},{key:"matches",value:function(r){return Ie.sceneGraphService.matches(r,this)}},{key:"getElementById",value:function(r){return Ie.sceneGraphService.querySelector("#".concat(r),this)}},{key:"getElementsByName",value:function(r){return Ie.sceneGraphService.querySelectorAll('[name="'.concat(r,'"]'),this)}},{key:"getElementsByClassName",value:function(r){return Ie.sceneGraphService.querySelectorAll(".".concat(r),this)}},{key:"getElementsByTagName",value:function(r){return Ie.sceneGraphService.querySelectorAll(r,this)}},{key:"querySelector",value:function(r){return Ie.sceneGraphService.querySelector(r,this)}},{key:"querySelectorAll",value:function(r){return Ie.sceneGraphService.querySelectorAll(r,this)}},{key:"closest",value:function(r){var i=this;do{if(Ie.sceneGraphService.matches(r,i))return i;i=i.parentElement}while(i!==null);return null}},{key:"find",value:function(r){var i=this,a=null;return this.forEach(function(o){return o!==i&&r(o)?(a=o,!1):!0}),a}},{key:"findAll",value:function(r){var i=this,a=[];return this.forEach(function(o){o!==i&&r(o)&&a.push(o)}),a}},{key:"after",value:function(){var r=this;if(this.parentNode){for(var i=this.parentNode.childNodes.indexOf(this),a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];o.forEach(function(l,c){var u;return(u=r.parentNode)===null||u===void 0?void 0:u.appendChild(l,i+c+1)})}}},{key:"before",value:function(){if(this.parentNode){for(var r,i=this.parentNode.childNodes.indexOf(this),a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=o[0],c=o.slice(1);this.parentNode.appendChild(l,i),(r=l).after.apply(r,Gt(c))}}},{key:"replaceWith",value:function(){this.after.apply(this,arguments),this.remove()}},{key:"append",value:function(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];a.forEach(function(s){return r.appendChild(s)})}},{key:"prepend",value:function(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];a.forEach(function(s,l){return r.appendChild(s,l)})}},{key:"replaceChildren",value:function(){for(;this.childNodes.length&&this.firstChild;)this.removeChild(this.firstChild);this.append.apply(this,arguments)}},{key:"remove",value:function(){return this.parentNode?this.parentNode.removeChild(this):this}},{key:"destroy",value:function(){this.destroyChildren(),this.dispatchEvent(ZF),this.remove(),this.emitter.removeAllListeners(),this.destroyed=!0}},{key:"getGeometryBounds",value:function(){return Ie.sceneGraphService.getGeometryBounds(this)}},{key:"getRenderBounds",value:function(){return Ie.sceneGraphService.getBounds(this,!0)}},{key:"getBounds",value:function(){return Ie.sceneGraphService.getBounds(this)}},{key:"getLocalBounds",value:function(){return Ie.sceneGraphService.getLocalBounds(this)}},{key:"getBoundingClientRect",value:function(){return Ie.sceneGraphService.getBoundingClientRect(this)}},{key:"getClientRects",value:function(){return[this.getBoundingClientRect()]}},{key:"computedStyleMap",value:function(){return new Map(Object.entries(this.computedStyle))}},{key:"getAttributeNames",value:function(){return Object.keys(this.attributes)}},{key:"getAttribute",value:function(r){if(typeof r!="symbol"){var i=this.attributes[r];return i}}},{key:"hasAttribute",value:function(r){return this.getAttributeNames().includes(r)}},{key:"hasAttributes",value:function(){return!!this.getAttributeNames().length}},{key:"removeAttribute",value:function(r){this.setAttribute(r,null),delete this.attributes[r]}},{key:"setAttribute",value:function(r,i,a,o){this.attributes[r]=i}},{key:"getAttributeNS",value:function(r,i){throw new Error($n)}},{key:"getAttributeNode",value:function(r){throw new Error($n)}},{key:"getAttributeNodeNS",value:function(r,i){throw new Error($n)}},{key:"hasAttributeNS",value:function(r,i){throw new Error($n)}},{key:"removeAttributeNS",value:function(r,i){throw new Error($n)}},{key:"removeAttributeNode",value:function(r){throw new Error($n)}},{key:"setAttributeNS",value:function(r,i,a){throw new Error($n)}},{key:"setAttributeNode",value:function(r){throw new Error($n)}},{key:"setAttributeNodeNS",value:function(r){throw new Error($n)}},{key:"toggleAttribute",value:function(r,i){throw new Error($n)}}])}(ar);function un(e){return!!(e!=null&&e.nodeName)}var bxe=Ie.globalThis.Proxy?Ie.globalThis.Proxy:function(){},cs=new Ms(Ft.ATTR_MODIFIED,null,null,null,null,Ms.MODIFICATION,null,null),S1=qt(),Cxe=Wr(),Yn=function(e){function t(n){var r;return Pe(this,t),r=jt(this,t),r.isCustomElement=!1,r.isMutationObserved=!1,r.activeAnimations=[],r.config=n,r.id=n.id||"",r.name=n.name||"",(n.className||n.class)&&(r.className=n.className||n.class),r.nodeName=n.type||xe.GROUP,n.initialParsedStyle&&Object.assign(r.parsedStyle,n.initialParsedStyle),r.initAttributes(n.style),Ie.enableStyleSyntax&&(r.style=new bxe({setProperty:function(a,o){r.setAttribute(a,o)},getPropertyValue:function(a){return r.getAttribute(a)},removeProperty:function(a){r.removeAttribute(a)},item:function(){return""}},{get:function(a,o){return a[o]!==void 0?a[o]:r.getAttribute(o)},set:function(a,o,s){return r.setAttribute(o,s),!0}})),r}return Rt(t,e),Te(t,[{key:"destroy",value:function(){tA(t,"destroy",this)([]),this.getAnimations().forEac
38h(function(r){r.cancel()})}},{key:"cloneNode",value:function(r,i){var a=Tt({},this.attributes);for(var o in a){var s=a[o];un(s)&&o!=="clipPath"&&o!=="offsetPath"&&o!=="textPath"&&(a[o]=s.cloneNode(r)),i&&(a[o]=i(o,s))}var l=new this.constructor(Tt(Tt({},this.config),{},{style:a}));return l.setLocalTransform(this.getLocalTransform()),r&&this.children.forEach(function(c){if(!c.style.isMarker){var u=c.cloneNode(r);l.appendChild(u)}}),l}},{key:"initAttributes",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i={forceUpdateGeometry:!0};Ie.styleValueRegistry.processProperties(this,r,i),this.renderable.dirty=!0}},{key:"setAttribute",value:function(r,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;Rn(i)||(a||i!==this.attributes[r])&&(this.internalSetAttribute(r,i,{memoize:o}),tA(t,"setAttribute",this)([r,i]))}},{key:"internalSetAttribute",value:function(r,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.renderable,s=this.attributes[r],l=this.parsedStyle[r];Ie.styleValueRegistry.processProperties(this,Je({},r,i),a),o.dirty=!0;var c=this.parsedStyle[r];if(this.isConnected&&(cs.relatedNode=this,cs.prevValue=s,cs.newValue=i,cs.attrName=r,cs.prevParsedValue=l,cs.newParsedValue=c,this.isMutationObserved?this.dispatchEvent(cs):(cs.target=this,this.ownerDocument.defaultView.dispatchEvent(cs,!0))),this.isCustomElement&&this.isConnected||!this.isCustomElement){var u,f;(u=(f=this).attributeChangedCallback)===null||u===void 0||u.call(f,r,s,i,l,c)}}},{key:"getBBox",value:function(){var r=this.getBounds(),i=r.getMin(),a=St(i,2),o=a[0],s=a[1],l=r.getMax(),c=St(l,2),u=c[0],f=c[1];return new dd(o,s,u-o,f-s)}},{key:"setOrigin",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Ie.sceneGraphService.setOrigin(this,Hi(r,i,a,!1)),this}},{key:"getOrigin",value:function(){return Ie.sceneGraphService.getOrigin(this)}},{key:"setPosition",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Ie.sceneGraphService.setPosition(this,Hi(r,i,a,!1)),this}},{key:"setLocalPosition",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Ie.sceneGraphService.setLocalPosition(this,Hi(r,i,a,!1)),this}},{key:"translate",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Ie.sceneGraphService.translate(this,Hi(r,i,a,!1)),this}},{key:"translateLocal",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Ie.sceneGraphService.translateLocal(this,Hi(r,i,a,!1)),this}},{key:"getPosition",value:function(){return Ie.sceneGraphService.getPosition(this)}},{key:"getLocalPosition",value:function(){return Ie.sceneGraphService.getLocalPosition(this)}},{key:"scale",value:function(r,i,a){return this.scaleLocal(r,i,a)}},{key:"scaleLocal",value:function(r,i,a){return typeof r=="number"&&(i=i||r,a=a||r,r=Hi(r,i,a,!1)),Ie.sceneGraphService.scaleLocal(this,r),this}},{key:"setLocalScale",value:function(r,i,a){return typeof r=="number"&&(i=i||r,a=a||r,r=Hi(r,i,a,!1)),Ie.sceneGraphService.setLocalScale(this,r),this}},{key:"getLocalScale",value:function(){return Ie.sceneGraphService.getLocalScale(this)}},{key:"getScale",value:function(){return Ie.sceneGraphService.getScale(this)}},{key:"getEulerAngles",value:function(){var r=N9(S1,Ie.sceneGraphService.getWorldTransform(this)),i=St(r,3),a=i[2];return Ka(a)}},{key:"getLocalEulerAngles",value:function(){var r=N9(S1,Ie.sceneGraphService.getLocalRotation(this)),i=St(r,3),a=i[2];return Ka(a)}},{key:"setEulerAngles",value:function(r){return Ie.sceneGraphService.setEulerAngles(this,0,0,r),this}},{key:"setLocalEulerAngles",value:function(r){return Ie.sceneGraphService.setLocalEulerAngles(this,0,0,r),this}}
vendor: 4,626 bytes, line 38
38,{key:"rotateLocal",value:function(r,i,a){return pt(i)&&pt(a)?Ie.sceneGraphService.rotateLocal(this,0,0,r):Ie.sceneGraphService.rotateLocal(this,r,i,a),this}},{key:"rotate",value:function(r,i,a){return pt(i)&&pt(a)?Ie.sceneGraphService.rotate(this,0,0,r):Ie.sceneGraphService.rotate(this,r,i,a),this}},{key:"setRotation",value:function(r,i,a,o){return Ie.sceneGraphService.setRotation(this,r,i,a,o),this}},{key:"setLocalRotation",value:function(r,i,a,o){return Ie.sceneGraphService.setLocalRotation(this,r,i,a,o),this}},{key:"setLocalSkew",value:function(r,i){return Ie.sceneGraphService.setLocalSkew(this,r,i),this}},{key:"getRotation",value:function(){return Ie.sceneGraphService.getRotation(this)}},{key:"getLocalRotation",value:function(){return Ie.sceneGraphService.getLocalRotation(this)}},{key:"getLocalSkew",value:function(){return Ie.sceneGraphService.getLocalSkew(this)}},{key:"getLocalTransform",value:function(){return Ie.sceneGraphService.getLocalTransform(this)}},{key:"getWorldTransform",value:function(){return Ie.sceneGraphService.getWorldTransform(this)}},{key:"setLocalTransform",value:function(r){return Ie.sceneGraphService.setLocalTransform(this,r),this}},{key:"resetLocalTransform",value:function(){Ie.sceneGraphService.resetLocalTransform(this)}},{key:"getAnimations",value:function(){return this.activeAnimations}},{key:"animate",value:function(r,i){var a,o=(a=this.ownerDocument)===null||a===void 0?void 0:a.timeline;return o?o.play(this,r,i):null}},{key:"isVisible",value:function(){var r;return((r=this.parsedStyle)===null||r===void 0?void 0:r.visibility)!=="hidden"}},{key:"interactive",get:function(){return this.isInteractive()},set:function(r){this.style.pointerEvents=r?"auto":"none"}},{key:"isInteractive",value:function(){var r;return((r=this.parsedStyle)===null||r===void 0?void 0:r.pointerEvents)!=="none"}},{key:"isCulled",value:function(){return!!(this.cullable&&this.cullable.enable&&!this.cullable.visible)}},{key:"toFront",value:function(){return this.parentNode&&(this.style.zIndex=Math.max.apply(Math,Gt(this.parentNode.children.map(function(r){return Number(r.style.zIndex)})))+1),this}},{key:"toBack",value:function(){return this.parentNode&&(this.style.zIndex=Math.min.apply(Math,Gt(this.parentNode.children.map(function(r){return Number(r.style.zIndex)})))-1),this}},{key:"getConfig",value:function(){return this.config}},{key:"attr",value:function(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=a[0],l=a[1];return s?Ep(s)?(Object.keys(s).forEach(function(c){r.setAttribute(c,s[c])}),this):a.length===2?(this.setAttribute(s,l),this):this.attributes[s]:this.attributes}},{key:"getMatrix",value:function(r){var i=r||this.getWorldTransform(),a=cm(S1,i),o=St(a,2),s=o[0],l=o[1],c=id(S1,i),u=St(c,2),f=u[0],d=u[1],h=um(Cxe,i),p=N9(S1,h),g=St(p,3),v=g[0],y=g[2];return g6e(v||y,s,l,f,d)}},{key:"getLocalMatrix",value:function(){return this.getMatrix(this.getLocalTransform())}},{key:"setMatrix",value:function(r){var i=oA(r),a=St(i,5),o=a[0],s=a[1],l=a[2],c=a[3],u=a[4];this.setEulerAngles(u).setPosition(o,s).setLocalScale(l,c)}},{key:"setLocalMatrix",value:function(r){var i=oA(r),a=St(i,5),o=a[0],s=a[1],l=a[2],c=a[3],u=a[4];this.setLocalEulerAngles(u).setLocalPosition(o,s).setLocalScale(l,c)}},{key:"show",value:function(){this.forEach(function(r){r.style.visibility="visible"})}},{key:"hide",value:function(){this.forEach(function(r){r.style.visibility="hidden"})}},{key:"getCount",value:function(){return this.childElementCount}},{key:"getParent",value:function(){return this.parentElement}},{key:"getChildren",value:function(){return this.children}},{key:"getFirst",value:function(){return this.firstElementChild}},{key:"getLast",value:function(){return this.lastElementChild}},{key:"getChildByIndex",value:function(r){return this.children[r]||null}},{key:"add",value:function(r,i){return this.appendChild(r,i)}},{key:"set",value:function(r,i){this.config[r]=i}},{key:"get",value:function(r){return this.config[r]}},{key:"moveTo",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.setPosition(r,i,a),this}},{key:"move",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.setPosition(r,i,a),this}},{key:"setZIndex",value:function(r){return this.style.zIndex=r,this}}])}(xxe);Yn.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","display","draggable","droppable","fill","fillOpacity","fillRule","filter","increasedLineWi
38dthForHitTesting","lineCap","lineDash","lineDashOffset","lineJoin","lineWidth","miterLimit","hitArea","offsetDistance","offsetPath","offsetX","offsetY","opacity","pointerEvents","shadowColor","shadowType","shadowBlur","shadowOffsetX","shadowOffsetY","stroke","strokeOpacity","strokeWidth","strokeLinecap","strokeLineJoin","strokeDasharray","strokeDashoffset","transform","transformOrigin","textTransform","visibility","zIndex"]);var Ns=function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Pe(this,t),jt(this,t,[Tt({type:xe.CIRCLE},n)])}return Rt(t,e),Te(t)}(Yn);Ns.PARSED_STYLE_LIST=new Set([].concat(Gt(Yn.PARSED_STYLE_LIST),["cx","cy","cz","r","isBillboard","isSizeAttenuation"]));var wxe=["style"],Fp=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.style,a=df(r,wxe);return Pe(this,t),n=jt(this,t,[Tt({style:i},a)]),n.isCustomElement=!0,n}return Rt(t,e),Te(t)}(Yn);Fp.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","draggable","droppable","opacity","pointerEvents","transform","transformOrigin","zIndex","visibility"]);var rv=function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Pe(this,t),jt(this,t,[Tt({type:xe.ELLIPSE},n)])}return Rt(t,e),Te(t)}(Yn);rv.PARSED_STYLE_LIST=new Set([].concat(Gt(Yn.PARSED_STYLE_LIST),["cx","cy","cz","rx","ry","isBillboard","isSizeAttenuation"]));var _xe=function(e){function t(){return Pe(this,t),jt(this,t,[{type:xe.FRAGMENT}])}return Rt(t,e),Te(t)}(Yn);_xe.PARSED_STYLE_LIST=new Set(["class","className"]);var Yr=function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Pe(this,t),jt(this,t,[Tt({type:xe.GROUP},n)])}return Rt(t,e),Te(t)}(Yn);Yr.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","draggable","droppable","opacity","pointerEvents","transform","transformOrigin","zIndex","visibility"]);var Sxe=["style"],Bp=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.style,a=df(r,Sxe);return Pe(this,t),n=jt(this,t,[Tt({type:xe.HTML,style:i},a)]),n.cullable.enable=!1,n}return Rt(t,e),Te(t,[{key:"getDomElement",value:function(){return this.parsedStyle.$el}},{key:"getClientRects",value:function(){return[this.getBoundingClientRect()]}},{key:"getLocalBounds",value:function(){if(this.parentNode){var r=Do(_n(),this.parentNode.getWorldTransform()),i=this.getBounds();if(!Ar.isEmpty(i)){var a=new Ar;return a.setFromTransformedAABB(i,r),a}}return this.getBounds()}}])}(Yn);Bp.PARSED_STYLE_LIST=new Set([].concat(Gt(Yn.PARSED_STYLE_LIST),["x","y","$el","innerHTML","width","height"]));var iv=function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Pe(this,t),jt(this,t,[Tt({type:xe.IMAGE},n)])}return Rt(t,e),Te(t)}(Yn);iv.PARSED_STYLE_LIST=new Set([].concat(Gt(Yn.PARSED_STYLE_LIST),["x","y","z","src","width","height","isBillboard","billboardRotation","isSizeAttenuation","keepAspectRatio"]));var Oxe=["style"],vf=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.style,a=df(r,Oxe);Pe(this,t),n=jt(this,t,[Tt({type:xe.LINE,style:Tt({x1:0,y1:0,x2:0,y2:0,z1:0,z2:0},i)},a)]),n.markerStartAngle=0,n.markerEndAngle=0;var o=n.parsedStyle,s=o.markerStart,l=o.markerEnd;return s&&un(s)&&(n.markerStartAngle=s.getLocalEulerAngles(),n.appendChild(s)),l&&un(l)&&(n.markerEndAngle=l.getLocalEulerAngles(),n.appendChild(l)),n.transformMarker(!0),n.transformMarker(!1),n}return Rt(t,e),Te(t,[{key:"attributeChangedCallback",value:function(r,i,a,o,s){r==="x1"||r==="y1"||r==="x2"||r==="y2"||r==="markerStartOffset"||r==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):r==="markerStart"?(o&&un(o)&&(this.markerStartAngle=0,o.remove()),s&&un(s)&&(this.markerStartAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!0))):r==="markerEnd"&&(o&&un(o)&&(this.markerEndAngle=0,o.remove()),s&&un(s)&&(this.markerEndAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!1)))}},{key:"transformMarker",value:function(r){var i=this.parsedStyle,a=i.markerStart,o=i.markerEnd,s=i.markerStartOffset,l=i.markerEndOffset,c=i.x1,u=i.x2,f=i.y1,d=i.y2,h=r?a:o;if(!(!h||!un(h))){var p=0,g,v,y,x,C,_;r?(y=c,x=f,g=u-c,v=d-f,C=s||0,_=this.markerStartAngle):(y=u,x=d,g=c-u,v=f-d,C=l||0,_=this.markerEndAngle),p=Math.atan2(v,g),h.setLocalEulerAngles(p*180/Math.PI+_),h.setLocalPosition(y+Math.cos(p)*C,x+Math.sin(p)*C)}}},{key:"getPoint",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=this.parsedStyle,o=a.x1,s=a.y1,l=a.x2,c=a.y2,u=xF(o,s,l,c,r),f=u.x,d=u.y,h=gr(qt(),fn(f,d,0),i?this.getWorldTransform():this.getLocalTransform());
vendor: 6,556 bytes, line 38
38return new mi(h[0],h[1])}},{key:"getPointAtLength",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.getPoint(r/this.getTotalLength(),i)}},{key:"getTotalLength",value:function(){var r=this.parsedStyle,i=r.x1,a=r.y1,o=r.x2,s=r.y2;return yF(i,a,o,s)}}])}(Yn);vf.PARSED_STYLE_LIST=new Set([].concat(Gt(Yn.PARSED_STYLE_LIST),["x1","y1","x2","y2","z1","z2","isBillboard","isSizeAttenuation","markerStart","markerEnd","markerStartOffset","markerEndOffset"]));var Exe=["style"],qi=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.style,a=df(r,Exe);Pe(this,t),n=jt(this,t,[Tt({type:xe.PATH,style:i,initialParsedStyle:{miterLimit:4,d:Tt({},_F)}},a)]),n.markerStartAngle=0,n.markerEndAngle=0,n.markerMidList=[];var o=n.parsedStyle,s=o.markerStart,l=o.markerEnd,c=o.markerMid;return s&&un(s)&&(n.markerStartAngle=s.getLocalEulerAngles(),n.appendChild(s)),c&&un(c)&&n.placeMarkerMid(c),l&&un(l)&&(n.markerEndAngle=l.getLocalEulerAngles(),n.appendChild(l)),n.transformMarker(!0),n.transformMarker(!1),n}return Rt(t,e),Te(t,[{key:"attributeChangedCallback",value:function(r,i,a,o,s){r==="d"?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):r==="markerStartOffset"||r==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):r==="markerStart"?(o&&un(o)&&(this.markerStartAngle=0,o.remove()),s&&un(s)&&(this.markerStartAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!0))):r==="markerEnd"?(o&&un(o)&&(this.markerEndAngle=0,o.remove()),s&&un(s)&&(this.markerEndAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!1))):r==="markerMid"&&this.placeMarkerMid(s)}},{key:"transformMarker",value:function(r){var i=this.parsedStyle,a=i.markerStart,o=i.markerEnd,s=i.markerStartOffset,l=i.markerEndOffset,c=r?a:o;if(!(!c||!un(c))){var u=0,f,d,h,p,g,v;if(r){var y=this.getStartTangent(),x=St(y,2),C=x[0],_=x[1];h=_[0],p=_[1],f=C[0]-_[0],d=C[1]-_[1],g=s||0,v=this.markerStartAngle}else{var S=this.getEndTangent(),O=St(S,2),E=O[0],k=O[1];h=k[0],p=k[1],f=E[0]-k[0],d=E[1]-k[1],g=l||0,v=this.markerEndAngle}u=Math.atan2(d,f),c.setLocalEulerAngles(u*180/Math.PI+v),c.setLocalPosition(h+Math.cos(u)*g,p+Math.sin(u)*g)}}},{key:"placeMarkerMid",value:function(r){var i=this.parsedStyle.d.segments;if(this.markerMidList.forEach(function(u){u.remove()}),r&&un(r))for(var a=1;a<i.length-1;a++){var o=St(i[a].currentPoint,2),s=o[0],l=o[1],c=a===1?r:r.cloneNode(!0);this.markerMidList.push(c),this.appendChild(c),c.setLocalPosition(s,l)}}},{key:"getTotalLength",value:function(){return x7(this)}},{key:"getPointAtLength",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=this.parsedStyle.d.absolutePath,o=Tve(a,r),s=o.x,l=o.y,c=gr(qt(),fn(s,l,0),i?this.getWorldTransform():this.getLocalTransform());return new mi(c[0],c[1])}},{key:"getPoint",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.getPointAtLength(r*x7(this),i)}},{key:"getStartTangent",value:function(){var r=this.parsedStyle.d.segments,i=[];if(r.length>1){var a=r[0].currentPoint,o=r[1].currentPoint,s=r[1].startTangent;i=[],s?(i.push([a[0]-s[0],a[1]-s[1]]),i.push([a[0],a[1]])):(i.push([o[0],o[1]]),i.push([a[0],a[1]]))}return i}},{key:"getEndTangent",value:function(){var r=this.parsedStyle.d.segments,i=r.length,a=[];if(i>1){var o=r[i-2].currentPoint,s=r[i-1].currentPoint,l=r[i-1].endTangent;a=[],l?(a.push([s[0]-l[0],s[1]-l[1]]),a.push([s[0],s[1]])):(a.push([o[0],o[1]]),a.push([s[0],s[1]]))}return a}}])}(Yn);qi.PARSED_STYLE_LIST=new Set([].concat(Gt(Yn.PARSED_STYLE_LIST),["d","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isBillboard","isSizeAttenuation"]));var kxe=["style"],yf=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.style,a=df(r,kxe);Pe(this,t),n=jt(this,t,[Tt({type:xe.POLYGON,style:i,initialParsedStyle:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},a)]),n.markerStartAngle=0,n.markerEndAngle=0,n.markerMidList=[];var o=n.parsedStyle,s=o.markerStart,l=o.markerEnd,c=o.markerMid;return s&&un(s)&&(n.markerStartAngle=s.getLocalEulerAngles(),n.appendChild(s)),c&&un(c)&&n.placeMarkerMid(c),l&&un(l)&&(n.markerEndAngle=l.getLocalEulerAngles(),n.appendChild(l)),n.transformMarker(!0),n.transformMarker(!1),n}return Rt(t,e),Te(t,[{key:"attributeChangedCallback",value:function(r,i,a,o,s){r==="points"?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):r==="markerStartOffset"||r==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):r==="markerStart"?(o&&un(o)&&(this.markerStartAngle=0,o.remove()),s&&un(s)&&(this.markerStartAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!0))):r==="markerEnd"?(o&&un(o)&&(this.markerEndAngle=0,o.remove()),s&&un(s)&&(this.markerEndAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!1))):r==="markerMid"&&this.placeMarkerMid(s)}},{key:"transformMarker",value:function(r){var i=this.parsedStyle,a=i.markerStart,o=i.markerEnd,s=i.markerStartOffset,l=i.markerEndOffset,c=i.points,u=c||{},f=u.points,d=r?a:o;if(!(!d||!un(d)||!f)){var h=0,p,g,v,y,x,C;if(v=f[0][0],y=f[0][1],r)p=f[1][0]-f[0][0],g=f[1][1]-f[0][1],x=s||0,C=this.markerStartAngle;else{var _=f.length;this.parsedStyle.isClosed?(p=f[_-1][0]-f[0][0],g=f[_-1][1]-f[0][1]):(v=f[_-1][0],y=f[_-1][1],p=f[_-2][0]-f[_-1][0],g=f[_-2][1]-f[_-1][1]),x=l||0,C=this.markerEndAngle}h=Math.atan2(g,p),d.setLocalEulerAngles(h*180/Math.PI+C),d.setLocalPosition(v+Math.cos(h)*x,y+Math.sin(h)*x)}}},{key:"placeMarkerMid",value:function(r){var i=this.parsedStyle.points,a=i||{},o=a.points;if(this.markerMidList.forEach(function(f){f.remove()}),this.markerMidList=[],r&&un(r)&&o)for(var s=1;s<(this.parsedStyle.isClosed?o.length:o.length-1);s++){var l=o[s][0],c=o[s][1],u=s===1?r:r.cloneNode(!0);this.markerMidList.push(u),this.appendChild(u),u.setLocalPosition(l,c)}}}])}(Yn);yf.PARSED_STYLE_LIST=new Set([].concat(Gt(Yn.PARSED_STYLE_LIST),["points","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isClosed","isBillboard","isSizeAttenuation"]));var Axe=["style"],av=function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.style,i=df(n,Axe);return Pe(this,t),jt(this,t,[Tt({type:xe.POLYLINE,style:r,initialParsedStyle:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}
38},i)])}return Rt(t,e),Te(t,[{key:"getTotalLength",value:function(){return g7e(this)}},{key:"getPointAtLength",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.getPoint(r/this.getTotalLength(),i)}},{key:"getPoint",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=this.parsedStyle.points.points;if(this.parsedStyle.points.segments.length===0){var o=[],s=0,l,c,u=this.getTotalLength();a.forEach(function(y,x){a[x+1]&&(l=[0,0],l[0]=s/u,c=yF(y[0],y[1],a[x+1][0],a[x+1][1]),s+=c,l[1]=s/u,o.push(l))}),this.parsedStyle.points.segments=o}var f=0,d=0;this.parsedStyle.points.segments.forEach(function(y,x){r>=y[0]&&r<=y[1]&&(f=(r-y[0])/(y[1]-y[0]),d=x)});var h=xF(a[d][0],a[d][1],a[d+1][0],a[d+1][1],f),p=h.x,g=h.y,v=gr(qt(),fn(p,g,0),i?this.getWorldTransform():this.getLocalTransform());return new mi(v[0],v[1])}},{key:"getStartTangent",value:function(){var r=this.parsedStyle.points.points,i=[];return i.push([r[1][0],r[1][1]]),i.push([r[0][0],r[0][1]]),i}},{key:"getEndTangent",value:function(){var r=this.parsedStyle.points.points,i=r.length-1,a=[];return a.push([r[i-1][0],r[i-1][1]]),a.push([r[i][0],r[i][1]]),a}}])}(yf);av.PARSED_STYLE_LIST=new Set([].concat(Gt(yf.PARSED_STYLE_LIST),["points","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isBillboard"]));var zc=function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Pe(this,t),jt(this,t,[Tt({type:xe.RECT},n)])}return Rt(t,e),Te(t)}(Yn);zc.PARSED_STYLE_LIST=new Set([].concat(Gt(Yn.PARSED_STYLE_LIST),["x","y","z","width","height","isBillboard","isSizeAttenuation","radius"]));var $xe=["style"],so=function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.style,i=df(n,$xe);return Pe(this,t),jt(this,t,[Tt({type:xe.TEXT,style:Tt({fill:"black"},r)},i)])}return Rt(t,e),Te(t,[{key:"getComputedTextLength",value:function(){var r;return this.getGeometryBounds(),((r=this.parsedStyle.metrics)===null||r===void 0?void 0:r.maxLineWidth)||0}},{key:"getLineBoundingRects",value:function(){var r;return this.getGeometryBounds(),((r=this.parsedStyle.metrics)===null||r===void 0?void 0:r.lineMetrics)||[]}},{key:"isOverflowing",value:function(){return this.getGeometryBounds(),!!this.parsedStyle.isOverflowing}}])}(Yn);so.PARSED_STYLE_LIST=new Set([].concat(Gt(Yn.PARSED_STYLE_LIST),["x","y","z","isBillboard","billboardRotation","isSizeAttenuation","text","textAlign","textBaseline","fontStyle","fontSize","fontFamily","fontWeight","fontVariant","lineHeight","letterSpacing","leading","wordWrap","wordWrapWidth","maxLines","textOverflow","isOverflowing","textPath","textDecorationLine","textDecorationColor","textDecorationStyle","textPathSide","textPathStartOffset","metrics","dx","dy"]));var Txe=function(){function e(){Pe(this,e),this.registry={},this.define(xe.CIRCLE,Ns),this.define(xe.ELLIPSE,rv),this.define(xe.RECT,zc),this.define(xe.IMAGE,iv),this.define(xe.LINE,vf),this.define(xe.GROUP,Yr),this.define(xe.PATH,qi),this.define(xe.POLYGON,yf),this.define(xe.POLYLINE,av),this.define(xe.TEXT,so),this.define(xe.HTML,Bp)}return Te(e,[{key:"define",value:function(n,r){this.registry[n]=r}},{key:"get",value:function(n){return this.registry[n]}}])}(),KF={number:function(t){return new Tn(t)},percent:function(t){return new Tn(t,"%")},px:function(t){return new Tn(t,"px")},em:function(t){return new Tn(t,"em")},rem:function(t){return new Tn(t,"rem")},deg:function(t){return new Tn(t,"deg")},grad:function(t){return new Tn(t,"grad")},rad:function(t){return new Tn(t,"rad")},turn:function(t){return new Tn(t,"turn")},s:function(t){return new Tn(t,"s")},ms:function(t){return new Tn(t,"ms")},registerProperty:function(t){var n=t.name,r=t.inherits,i=t.interpolable,a=t.initialValue,o=t.syntax;Ie.styleValueRegistry.registerMetadata({n,inh:r,int:i,d:a,syntax:o})},registerLayout:function(t,n){Ie.layoutRegistry.registerLayout(t,n)}},Pxe=function(e){function t(){var n;Pe(this,t),n=jt(this,t),n.defaultView=null,n.ownerDocument=null,n.nodeName="document";try{n.timeline=new Ie.AnimationTimeline(n)}catch{}var r={};return $b.forEach(function(i){var a=i.n,o=i.inh,s=i.d;o&&s&&(r[a]=Hr(s)?s(xe.GROUP):s)}),n.documentElement=new Yr({id:"g-root",style:r}),n.documentElement.ownerDocument=n,n.documentElement.parentNode=n,n.childNodes=[n.documentElement],n}return Rt(t,e),Te(t,[{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}},{key:"createElement",value:function(r,i){if(r==="svg")return this.documentElement;var a=this.defaultView.customElements.get(r);a||(console.warn("Unsupported tagName: ",r),a=r==="tspan"?so:Yr);var o=new a(i);return o.ownerDocument=this,o}},{key:"createElementNS",value:function(r,i,a){return this.createElement(i,a)}},{key:"cloneNode",value:function(r){throw new Error($n)}},{key:"destroy",value:function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch{}}},{key:"elementsFromBBox",value:function(r,i,a,o){var s=this.defaultView.context.rBushRoot,l=s.search({minX:r,minY:i,maxX:a,maxY:o}),c=[];return l.forEach(function(u){var f=u.displayObject,d=f.parsedStyle.pointerEvents,h=d===void 0?"auto":d,p=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(h);(!p||p&&f.isVisible())&&!f.isCulled()&&f.isInteractive()&&c.push(f)}),c.sort(function(u,f){return f.sortable.renderOrder-u.sortable.renderOrder}),c}},{key:"elementFromPointSync",value:function(r,i){var a=this.defaultView.canvas2Viewport({x:r,y:i}),o=a.x,s=a.y,l=this.defaultView.getConfig(),c=l.width,u=l.height;if(o<0||s<0||o>c||s>u)return null;var f=this.defaultView.viewport2Client({x:o,y:s}
38),d=f.x,h=f.y,p=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:r,y:i,viewportX:o,viewportY:s,clientX:d,clientY:h},picked:[]}),g=p.picked;return g&&g[0]||this.documentElement}},{key:"elementFromPoint",value:function(){var n=Ac(Mi().mark(function i(a,o){var s,l,c,u,f,d,h,p,g,v,y;return Mi().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(s=this.defaultView.canvas2Viewport({x:a,y:o}),l=s.x,c=s.y,u=this.defaultView.getConfig(),f=u.width,d=u.height,!(l<0||c<0||l>f||c>d)){C.next=4;break}return C.abrupt("return",null);case 4:return h=this.defaultView.viewport2Client({x:l,y:c}),p=h.x,g=h.y,C.next=7,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:a,y:o,viewportX:l,viewportY:c,clientX:p,clientY:g},picked:[]});case 7:return v=C.sent,y=v.picked,C.abrupt("return",y&&y[0]||this.documentElement);case 10:case"end":return C.stop()}},i,this)}));function r(i,a){return n.apply(this,arguments)}return r}()},{key:"elementsFromPointSync",value:function(r,i){var a=this.defaultView.canvas2Viewport({x:r,y:i}),o=a.x,s=a.y,l=this.defaultView.getConfig(),c=l.width,u=l.height;if(o<0||s<0||o>c||s>u)return[];var f=this.defaultView.viewport2Client({x:o,y:s}),d=f.x,h=f.y,p=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:r,y:i,viewportX:o,viewportY:s,clientX:d,clientY:h},picked:[]}),g=p.picked;return g[g.length-1]!==this.documentElement&&g.push(this.documentElement),g}},{key:"elementsFromPoint",value:function(){var n=Ac(Mi().mark(function i(a,o){var s,l,c,u,f,d,h,p,g,v,y;return Mi().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(s=this.defaultView.canvas2Viewport({x:a,y:o}),l=s.x,c=s.y,u=this.defaultView.getConfig(),f=u.width,d=u.height,!(l<0||c<0||l>f||c>d)){C.next=4;break}return C.abrupt("return",[]);case 4:return h=this.defaultView.viewport2Client({x:l,y:c}),p=h.x,g=h.y,C.next=7,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:a,y:o,viewportX:l,viewportY:c,clientX:p,clientY:g},picked:[]});case 7:return v=C.sent,y=v.picked,y[y.length-1]!==this.documentElement&&y.push(this.documentElement),C.abrupt("return",y);case 11:case"end":return C.stop()}},i,this)}));function r(i,a){return n.apply(this,arguments)}return r}()},{key:"appendChild",value:function(r,i){throw new Error(l0)}},{key:"insertBefore",value:function(r,i){throw new Error(l0)}},{key:"removeChild",value:function(r,i){throw new Error(l0)}},{key:"replaceChild",value:function(r,i,a){throw new Error(l0)}},{key:"append",value:function(){throw new Error(l0)}},{key:"prepend",value:function(){throw new Error(l0)}},{key:"getElementById",value:function(r){return this.documentElement.getElementById(r)}},{key:"getElementsByName",value:function(r){return this.documentElement.getElementsByName(r)}},{key:"getElementsByTagName",value:function(r){return this.documentElement.getElementsByTagName(r)}},{key:"getElementsByClassName",value:function(r){return this.documentElement.getElementsByClassName(r)}},{key:"querySelector",value:function(r){return this.documentElement.querySelector(r)}},{key:"querySelectorAll",value:function(r){return this.documentElement.querySelectorAll(r)}},{key:"find",value:function(r){return this.documentElement.find(r)}},{key:"findAll",value:function(r){return this.documentElement.findAll(r)}}])}(ar),JF=function(){function e(t){Pe(this,e),this.strategies=t}return Te(e,[{key:"apply",value:function(n){var r=n.camera,i=n.renderingService,a=n.renderingContext,o=this.strategies;i.hooks.cull.tap(e.tag,function(s){if(s){var l=s.cullable;return o.length===0?l.visible=a.unculledEntities.indexOf(s.entity)>-1:l.visible=o.every(function(c){return c.isVisible(r,s)}),!s.isCulled()&&s.isVisible()?s:(s.dispatchEvent(new Mn(Ft.CULLED)),null)}return s}),i.hooks.afterRender.tap(e.tag,function(s){s.cullable.visibilityPlaneMask=-1})}}])}();JF.tag="Culling";var QF=function(){function e(){var t=this;Pe(this,e),this.autoPreventDefault=!1,this.rootPointerEvent=new _7(null),this.rootWheelEvent=new S7(null),this.onPointerMove=function(n){var r,i=(r=t.context.renderingContext.root)===null||r===void 0||(r=r.ownerDocument)===null||r===void 0?void 0:r.defaultView;if(!(i.supportsTouchEvents&&n.pointerType==="touch")){var a=t.normalizeToPointerEvent(n,i),o=Pu(a),s;try{for(o.s();!(s=o.n()).done;){var l=s.value,c=t.bootstrapEvent(t.rootPointerEvent,l,i,n);t.context.eventService.mapEvent(c)}}catch(u){o.e(u)}finally{o.f()}
38t.setCursor(t.context.eventService.cursor)}},this.onClick=function(n){var r,i=(r=t.context.renderingContext.root)===null||r===void 0||(r=r.ownerDocument)===null||r===void 0?void 0:r.defaultView,a=t.normalizeToPointerEvent(n,i),o=Pu(a),s;try{for(o.s();!(s=o.n()).done;){var l=s.value,c=t.bootstrapEvent(t.rootPointerEvent,l,i,n);t.context.eventService.mapEvent(c)}}catch(u){o.e(u)}finally{o.f()}t.setCursor(t.context.eventService.cursor)}}return Te(e,[{key:"apply",value:function(n){var r=this;this.context=n;var i=n.renderingService,a=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(o){var s=r.context.renderingService.hooks.pickSync.call({position:o,picked:[],topmost:!0}),l=s.picked;return l[0]||null}),i.hooks.pointerWheel.tap(e.tag,function(o){var s=r.normalizeWheelEvent(o);r.context.eventService.mapEvent(s)}),i.hooks.pointerDown.tap(e.tag,function(o){if(!(a.supportsTouchEvents&&o.pointerType==="touch")){var s=r.normalizeToPointerEvent(o,a);if(r.autoPreventDefault&&s[0].isNormalized){var l=o.cancelable||!("cancelable"in o);l&&o.preventDefault()}var c=Pu(s),u;try{for(c.s();!(u=c.n()).done;){var f=u.value,d=r.bootstrapEvent(r.rootPointerEvent,f,a,o);r.context.eventService.mapEvent(d)}}catch(h){c.e(h)}finally{c.f()}r.setCursor(r.context.eventService.cursor)}}),i.hooks.pointerUp.tap(e.tag,function(o){if(!(a.supportsTouchEvents&&o.pointerType==="touch")){var s=r.context.contextService.getDomElement(),l=r.context.eventService.isNativeEventFromCanvas(s,o),c=l?"":"outside",u=r.normalizeToPointerEvent(o,a),f=Pu(u),d;try{for(f.s();!(d=f.n()).done;){var h=d.value,p=r.bootstrapEvent(r.rootPointerEvent,h,a,o);p.type+=c,r.context.eventService.mapEvent(p)}}catch(g){f.e(g)}finally{f.f()}r.setCursor(r.context.eventService.cursor)}}),i.hooks.pointerMove.tap(e.tag,this.onPointerMove),i.hooks.pointerOver.tap(e.tag,this.onPointerMove),i.hooks.pointerOut.tap(e.tag,this.onPointerMove),i.hooks.click.tap(e.tag,this.onClick),i.hooks.pointerCancel.tap(e.tag,function(o){var s=r.normalizeToPointerEvent(o,a),l=Pu(s),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,f=r.bootstrapEvent(r.rootPointerEvent,u,a,o);r.context.eventService.mapEvent(f)}}catch(d){l.e(d)}finally{l.f()}r.setCursor(r.context.eventService.cursor)})}},{key:"bootstrapEvent",value:function(n,r,i,a){n.view=i,n.originalEvent=null,n.nativeEvent=a,n.pointerId=r.pointerId,n.width=r.width,n.height=r.height,n.isPrimary=r.isPrimary,n.pointerType=r.pointerType,n.pressure=r.pressure,n.tangentialPressure=r.tangentialPressure,n.tiltX=r.tiltX,n.tiltY=r.tiltY,n.twist=r.twist,this.transferMouseData(n,r);var o=this.context.eventService.client2Viewport({x:r.clientX,y:r.clientY}),s=o.x,l=o.y;n.viewport.x=s,n.viewport.y=l;var c=this.context.eventService.viewport2Canvas(n.viewport),u=c.x,f=c.y;return n.canvas.x=u,n.canvas.y=f,n.global.copyFrom(n.canvas),n.offset.copyFrom(n.canvas),n.isTrusted=a.isTrusted,n.type==="pointerleave"&&(n.type="pointerout"),n.type.startsWith("mouse")&&(n.type=n.type.replace("mouse","pointer")),n.type.startsWith("touch")&&(n.type=h8e[n.type]||n.type),n}},{key:"normalizeWheelEvent",value:function(n){var r=this.rootWheelEvent;this.transferMouseData(r,n),r.deltaMode=n.deltaMode,r.deltaX=n.deltaX,r.deltaY=n.deltaY,r.deltaZ=n.deltaZ;var i=this.context.eventService.client2Viewport({x:n.clientX,y:n.clientY}),a=i.x,o=i.y;r.viewport.x=a,r.viewport.y=o;var s=this.context.eventService.viewport2Canvas(r.viewport),l=s.x,c=s.y;return r.canvas.x=l,r.canvas.y=c,r.global.copyFrom(r.canvas),r.offset.copyFrom(r.canvas),r.nativeEvent=n,r.type=n.type,r}},{key:"transferMouseData",value:function(n,r){n.isTrusted=r.isTrusted,n.srcElement=r.srcElement,n.timeStamp=w7.now(),n.type=r.type,n.altKey=r.altKey,n.metaKey=r.metaKey,n.shiftKey=r.shiftKey,n.ctrlKey=r.ctrlKey,n.button=r.button,n.buttons=r.buttons,n.client.x=r.clientX,n.client.y=r.clientY,n.movement.x=r.movementX,n.movement.y=r.movementY,n.page.x=r.pageX,n.page.y=r.pageY,n.screen.x=r.screenX,n.screen.y=r.screenY,n.relatedTarget=null}},{key:"setCursor",value:function(n){this.context.contextService.applyCursorStyle(n||this.context.config.cursor||"default")}},{key:"normalizeToPointerEvent",value:function(n,r){var i=[];if(r.isTouchEvent(n))for(var a=0;a<n.changedTouches.length;a++){var o=n.changedTouches[a];Rn(o.button)&&(o.button=0),Rn(o.buttons)&&(o.buttons=1),Rn(o.isPrimary)&&(o.isPrimary=n.touches.length===1&&n.type==="touchstart"),Rn(o.width)&&(o.width=o.radiusX||1),Rn(o.height)&&(o.height=o.radiusY||1),Rn(o.tiltX)&&(o.tiltX=0),Rn(o.tiltY)&&(o.tiltY=0),Rn(o.pointerType)&&(o.pointerType="touch"),Rn(o.pointerId)&&(o.pointerId=o.identifier||0),Rn(o.pressure)&&(o.pressure=o.force||.5),Rn(o.twist)&&(o.twist=0),Rn(o.tangentialPressure)&&(o.tangentialPressure=0),o.isNormalized=!0,o.type=n.type,i.push(o)}else if(r.isMouseEvent(n)){var s=n;Rn(s.isPrimary)&&(s.isPrimary=!0),Rn(s.width)&&(s.width=1),Rn(s.height)&&(s.height=1),Rn(s.tiltX)&&(s.tiltX=0),Rn(s.tiltY)&&(s.tiltY=0),Rn(s.pointerType)&&(s.pointerType="mouse"),Rn(s.pointerId)&&(s.pointerId=d8e),Rn(s.pressure)&&(s.pressure=.5),Rn(s.twist)&&(s.twist=0),Rn(s.tangentialPressure)&&(s.tangentialPressure=0),s.isNormalized=!0,i.push(s)}else i.push(n);return i}}])}();QF.tag="Event";
38var Mxe=[xe.CIRCLE,xe.ELLIPSE,xe.IMAGE,xe.RECT,xe.LINE,xe.POLYLINE,xe.POLYGON,xe.TEXT,xe.PATH,xe.HTML],Nxe=function(){function e(){Pe(this,e)}return Te(e,[{key:"isVisible",value:function(n,r){var i,a=r.cullable;if(!a.enable)return!0;var o=r.getRenderBounds();if(Ar.isEmpty(o))return!1;var s=n.getFrustum(),l=(i=r.parentNode)===null||i===void 0||(i=i.cullable)===null||i===void 0?void 0:i.visibilityPlaneMask;return a.visibilityPlaneMask=this.computeVisibilityWithPlaneMask(r,o,l||s0.INDETERMINATE,s.planes),a.visible=a.visibilityPlaneMask!==s0.OUTSIDE,a.visible}},{key:"computeVisibilityWithPlaneMask",value:function(n,r,i,a){if(i===s0.OUTSIDE||i===s0.INSIDE)return i;for(var o=s0.INSIDE,s=Mxe.indexOf(n.nodeName)>-1,l=0,c=a.length;l<c;++l){var u=1<<l;if((i&u)!==0&&!(s&&(l===4||l===5))){var f=a[l],d=f.normal,h=f.distance;if(xs(d,r.getPositiveFarPoint(a[l]))+h<0)return s0.OUTSIDE;xs(d,r.getNegativeFarPoint(a[l]))+h<0&&(o|=u)}}return o}}])}(),eB=function(){function e(){Pe(this,e),this.syncTasks=new Map,this.isFirstTimeRendering=!0,this.syncing=!1,this.isFirstTimeRenderingFinished=!1}return Te(e,[{key:"apply",value:function(n){var r=this,i,a=n.renderingService,o=n.renderingContext,s=n.rBushRoot,l=o.root.ownerDocument.defaultView;this.rBush=s;var c=function(g){var v=g.target;v.renderable.dirty=!0,a.dirtify()},u=function(g){r.syncTasks.set(g.target,g.detail.affectChildren),a.dirtify()},f=function(g){var v=g.target;Ie.enableSizeAttenuation&&Ie.styleValueRegistry.updateSizeAttenuation(v,l.getCamera().getZoom())},d=function(g){var v=g.target,y=v.rBushNode;y.aabb&&r.rBush.remove(y.aabb),r.syncTasks.delete(v),Ie.sceneGraphService.dirtifyToRoot(v),a.dirtify()};a.hooks.init.tap(e.tag,function(){l.addEventListener(Ft.MOUNTED,f),l.addEventListener(Ft.UNMOUNTED,d),l.addEventListener(Ft.ATTR_MODIFIED,c),l.addEventListener(Ft.BOUNDS_CHANGED,u)}),a.hooks.destroy.tap(e.tag,function(){l.removeEventListener(Ft.MOUNTED,f),l.removeEventListener(Ft.UNMOUNTED,d),l.removeEventListener(Ft.ATTR_MODIFIED,c),l.removeEventListener(Ft.BOUNDS_CHANGED,u),r.syncTasks.clear()});var h=(i=Ie.globalThis.requestIdleCallback)!==null&&i!==void 0?i:Pb.bind(Ie.globalThis);a.hooks.endFrame.tap(e.tag,function(){r.isFirstTimeRendering?(r.isFirstTimeRendering=!1,r.syncing=!0,h(function(){r.syncRTree(!0),r.isFirstTimeRenderingFinished=!0})):r.syncRTree()})}},{key:"syncNode",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n.isConnected){var i=n.rBushNode;i.aabb&&this.rBush.remove(i.aabb);var a=n.getRenderBounds();if(a){var o=n.renderable;r&&(o.dirtyRenderBounds||(o.dirtyRenderBounds=new Ar),o.dirtyRenderBounds.update(a.center,a.halfExtents));var s=a.getMin(),l=St(s,2),c=l[0],u=l[1],f=a.getMax(),d=St(f,2),h=d[0],p=d[1];i.aabb||(i.aabb={}),i.aabb.displayObject=n,i.aabb.minX=c,i.aabb.minY=u,i.aabb.maxX=h,i.aabb.maxY=p}if(i.aabb&&!isNaN(i.aabb.maxX)&&!isNaN(i.aabb.maxX)&&!isNaN(i.aabb.minX)&&!isNaN(i.aabb.minY))return i.aabb}}},{key:"syncRTree",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!r&&(this.syncing||this.syncTasks.size===0))){this.syncing=!0;var i=[],a=new Set,o=function(l){if(!a.has(l)&&l.renderable){var c=n.syncNode(l,r);c&&(i.push(c),a.add(l))}};this.syncTasks.forEach(function(s,l){s&&l.forEach(o);for(var c=l;c;)o(c),c=c.parentElement}),this.rBush.load(i),i.length=0,this.syncing=!1}}}])}();eB.tag="Prepare";var Ja=function(e){return e.READY="ready",e.BEFORE_RENDER="beforerender",e.RERENDER="rerender",e.AFTER_RENDER="afterrender",e.BEFORE_DESTROY="beforedestroy",e.AFTER_DESTROY="afterdestroy",e.RESIZE="resize",e.DIRTY_RECTANGLE="dirtyrectangle",e.RENDERER_CHANGED="rendererchanged",e}({}),jA=500,Ixe=.1,Lxe=1e3,_5=new Mn(Ft.MOUNTED),S5=new Mn(Ft.UNMOUNTED),H9=new Mn(Ja.BEFORE_RENDER),DA=new Mn(Ja.RERENDER),G9=new Mn(Ja.AFTER_RENDER),tB=function(e){function t(n){var r;Pe(this,t),r=jt(this,t),r.Element=Yn,r.inited=!1,r.context={};var i=n.container,a=n.canvas,o=n.renderer,s=n.width,l=n.height,c=n.background,u=n.cursor,f=n.supportsMutipleCanvasesInOneContainer,d=n.cleanUpOnDestroy,h=d===void 0?!0:d,p=n.offscreenCanvas,g=n.devicePixelRatio,v=n.requestAnimationFrame,y=n.cancelAnimationFrame,x=n.createImage,C=n.supportsTouchEvents,_=n.supportsPointerEvents,S=n.isTouchEvent,O=n.isMouseEvent,E=n.dblClickSpeed,k=s,$=l,T=g||Tb&&window.devicePixelRatio||1;return T=T>=1?Math.ceil(T):1,a&&(k=s||u8e(a)||a.width/T,$=l||f8e(a)||a.height/T),r.customElements=new Txe,r.devicePixelRatio=T,r.requestAnimationFrame=v??Pb.bind(Ie.globalThis),r.cancelAnimationFrame=y??UF.bind(Ie.globalThis),r.supportsTouchEvents=C??"ontouchstart"in Ie.globalThis,r.supportsPointerEvents=_??!!Ie.globalThis.PointerEvent,r.isTouchEvent=S??function(M){return r.supportsTouchEvents&&M 
38instanceof Ie.globalThis.TouchEvent},r.isMouseEvent=O??function(M){return!Ie.globalThis.MouseEvent||M instanceof Ie.globalThis.MouseEvent&&(!r.supportsPointerEvents||!(M instanceof Ie.globalThis.PointerEvent))},p&&(Ie.offscreenCanvas=p),r.document=new Pxe,r.document.defaultView=r,f||o8e(i,r,h),r.initRenderingContext(Tt(Tt({},n),{},{width:k,height:$,background:c??"transparent",cursor:u??"default",cleanUpOnDestroy:h,devicePixelRatio:T,requestAnimationFrame:r.requestAnimationFrame,cancelAnimationFrame:r.cancelAnimationFrame,supportsTouchEvents:r.supportsTouchEvents,supportsPointerEvents:r.supportsPointerEvents,isTouchEvent:r.isTouchEvent,isMouseEvent:r.isMouseEvent,dblClickSpeed:E??200,createImage:x??function(){return new window.Image}})),r.initDefaultCamera(k,$,o.clipSpaceNearZ),r.initRenderer(o,!0),r}return Rt(t,e),Te(t,[{key:"initRenderingContext",value:function(r){this.context.config=r,this.context.renderingContext={root:this.document.documentElement,renderListCurrentFrame:[],unculledEntities:[],renderReasons:new Set,force:!1,dirty:!1}}},{key:"initDefaultCamera",value:function(r,i,a){var o=this,s=new Ie.CameraContribution;s.clipSpaceNearZ=a,s.setType(An.EXPLORING,p7.DEFAULT).setPosition(r/2,i/2,jA).setFocalPoint(r/2,i/2,0).setOrthographic(r/-2,r/2,i/2,i/-2,Ixe,Lxe),s.canvas=this,s.eventEmitter.on(CF.UPDATED,function(){o.context.renderingContext.renderReasons.add(W0.CAMERA_CHANGED),Ie.enableSizeAttenuation&&o.getConfig().renderer.getConfig().enableSizeAttenuation&&o.updateSizeAttenuation()}),this.context.camera=s}},{key:"updateSizeAttenuation",value:function(){var r=this.getCamera().getZoom();this.document.documentElement.forEach(function(i){Ie.styleValueRegistry.updateSizeAttenuation(i,r)})}},{key:"getConfig",value:function(){return this.context.config}},{key:"getRoot",value:function(){return this.document.documentElement}},{key:"getCamera",value:function(){return this.context.camera}},{key:"getContextService",value:function(){return this.context.contextService}},{key:"getEventService",value:function(){return this.context.eventService}},{key:"getRenderingService",value:function(){return this.context.renderingService}},{key:"getRenderingContext",value:function(){return this.context.renderingContext}},{key:"getStats",value:function(){return this.getRenderingService().getStats()}},{key:"ready",get:function(){var r=this;return this.readyPromise||(this.readyPromise=new Promise(function(i){r.resolveReadyPromise=function(){i(r)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise}},{key:"destroy",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,i=arguments.length>1?arguments[1]:void 0;Fr.clearCache(),i||this.dispatchEvent(new Mn(Ja.BEFORE_DESTROY)),this.frameId&&this.cancelAnimationFrame(this.frameId);var a=this.getRoot();r&&(this.unmountChildren(a),this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),this.context.rBushRoot&&this.context.rBushRoot.clear(),i||this.dispatchEvent(new Mn(Ja.AFTER_DESTROY));var o=function(l){l.currentTarget=null,l.manager=null,l.target=null,l.relatedNode=null};o(_5),o(S5),o(H9),o(DA),o(G9),o(cs),o(O7),o(E7),o(ZF)}},{key:"changeSize",value:function(r,i){this.resize(r,i)}},{key:"resize",value:function(r,i){var a=this.context.config;a.width=r,a.height=i,this.getContextService().resize(r,i);var o=this.context.camera,s=o.getProjectionMode();o.setPosition(r/2,i/2,jA).setFocalPoint(r/2,i/2,0),s===Ya.ORTHOGRAPHIC?o.setOrthographic(r/-2,r/2,i/2,i/-2,o.getNear(),o.getFar()):o.setAspect(r/i),this.dispatchEvent(new Mn(Ja.RESIZE,{width:r,height:i}))}},{key:"appendChild",value:function(r,i){return this.document.documentElement.appendChild(r,i)}},{key:"insertBefore",value:function(r,i){return this.document.documentElement.insertBefore(r,i)}},{key:"removeChild",value:function(r){return this.document.documentElement.removeChild(r)}},{key:"removeChildren",value:function(){this.document.documentElement.removeChildren()}},{key:"destroyChildren",value:function(){this.document.documentElement.destroyChildren()}},{key:"render",value:function(r){var i=this;r&&(H9.detail=r,G9.detail=r),this.dispatchEvent(H9);var a=this.getRenderingService();a.render(this.getConfig(),r,function(){i.dispatchEvent(DA)}),this.dispatchEvent(G9)}},{key:"run",value:function(){var r=this,i=function(o,s){r.render(s),r.frameId=r.requestAnimationFrame(i)};i()}},{key:"initRenderer",value:function(r){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!r)throw new Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new r6e,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new QF,new eB,new JF([new Nxe])),this.loadRendererContainerModule(r),this.context.contextService=new this.context.ContextService(Tt(Tt({}
38,Ie),this.context)),this.context.renderingService=new U8e(Ie,this.context),this.context.eventService=new G8e(Ie,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(r,a,!0)):this.context.contextService.initAsync().then(function(){i.initRenderingService(r,a)}).catch(function(o){console.error(o)})}},{key:"initRenderingService",value:function(r){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.context.renderingService.init(function(){i.inited=!0,a?o?i.requestAnimationFrame(function(){i.dispatchEvent(new Mn(Ja.READY))}):i.dispatchEvent(new Mn(Ja.READY)):i.dispatchEvent(new Mn(Ja.RENDERER_CHANGED)),i.readyPromise&&i.resolveReadyPromise(),a||i.getRoot().forEach(function(s){var l=s,c=l.renderable;c&&(c.renderBoundsDirty=!0,c.boundsDirty=!0,c.dirty=!0)}),i.mountChildren(i.getRoot()),r.getConfig().enableAutoRendering&&i.run()})}},{key:"loadRendererContainerModule",value:function(r){var i=this,a=r.getPlugins();a.forEach(function(o){o.context=i.context,o.init(Ie)})}},{key:"setRenderer",value:function(r){var i=this.getConfig();if(i.renderer!==r){var a=i.renderer;i.renderer=r,this.destroy(!1,!0),Gt((a==null?void 0:a.getPlugins())||[]).reverse().forEach(function(o){o.destroy(Ie)}),this.initRenderer(r)}}},{key:"setCursor",value:function(r){var i=this.getConfig();i.cursor=r,this.getContextService().applyCursorStyle(r)}},{key:"unmountChildren",value:function(r){var i=this;r.childNodes.forEach(function(a){i.unmountChildren(a)}),this.inited&&(r.isMutationObserved?r.dispatchEvent(S5):(S5.target=r,this.dispatchEvent(S5,!0)),r!==this.document.documentElement&&(r.ownerDocument=null),r.isConnected=!1),r.isCustomElement&&r.disconnectedCallback&&r.disconnectedCallback()}},{key:"mountChildren",value:function(r){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$m(r);this.inited?r.isConnected||(r.ownerDocument=this.document,r.isConnected=!0,a||(r.isMutationObserved?r.dispatchEvent(_5):(_5.target=r,this.dispatchEvent(_5,!0)))):console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",r.nodeName),r.childNodes.forEach(function(o){i.mountChildren(o,a)}),r.isCustomElement&&r.connectedCallback&&r.connectedCallback()}},{key:"mountFragment",value:function(r){this.mountChildren(r,!1)}},{key:"client2Viewport",value:function(r){return this.getEventService().client2Viewport(r)}},{key:"viewport2Client",value:function(r){return this.getEventService().viewport2Client(r)}},{key:"viewport2Canvas",value:function(r){return this.getEventService().viewport2Canvas(r)}},{key:"canvas2Viewport",value:function(r){return this.getEventService().canvas2Viewport(r)}},{key:"getPointByClient",value:function(r,i){return this.client2Viewport({x:r,y:i})}},{key:"getClientByPoint",value:function(r,i){return this.viewport2Client({x:r,y:i})}}])}(qF);/*!
39 * @antv/g-camera-api
40 * @description A simple implementation of Camera API.
41 * @version 2.0.38
42 * @date 5/9/2025, 8:19:12 AM
43 * @author AntVis
44 * @docs https://g.antv.antgroup.com/
45 */var Rxe=function(e){function t(){var n;Pe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=jt(this,t,[].concat(i)),n.landmarks=[],n}return Rt(t,e),Te(t,[{key:"rotate",value:function(r,i,a){if(this.relElevation=B0(i),this.relAzimuth=B0(r),this.relRoll=B0(a),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===An.EXPLORING){var o=yc(Wr(),[1,0,0],Pn((this.rotateWorld?1:-1)*this.relElevation)),s=yc(Wr(),[0,1,0],Pn((this.rotateWorld?1:-1)*this.relAzimuth)),l=yc(Wr(),[0,0,1],Pn(this.relRoll)),c=Sc(Wr(),s,o);c=Sc(Wr(),c,l);var u=qx(_n(),c);F0(this.matrix,this.matrix,[0,0,-this.distance]),Ii(this.matrix,this.matrix,u),F0(this.matrix,this.matrix,[0,0,this.distance])}else{if(Math.abs(this.elevation)>90)return this;this.computeMatrix()}return this._getAxes(),this.type===An.ORBITING||this.type===An.EXPLORING?this._getPosition():this.type===An.TRACKING&&this._getFocalPoint(),this._update(),this}},{key:"pan",value:function(r,i){var a=Hi(r,i,0),o=fl(this.position);return _c(o,o,fm(qt(),this.right,a[0])),_c(o,o,fm(qt(),this.up,a[1])),this._setPosition(o),this.triggerUpdate(),this}},{key:"dolly",value:function(r){var i=this.forward,a=fl(this.position),o=r*this.dollyingStep,s=this.distance+r*this.dollyingStep;return o=Math.max(Math.min(s,this.maxDistance),this.minDistance)-this.distance,a[0]+=o*i[0],a[1]+=o*i[1],a[2]+=o*i[2],this._setPosition(a),this.type===An.ORBITING||this.type===An.EXPLORING?this._getDistance():this.type===An.TRACKING&&_c(this.focalPoint,a,this.distanceVector),this.triggerUpdate(),this}},{key:"cancelLandmarkAnimation",value:function(){this.landmarkAnimationID!==void 0&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)}},{key:"createLandmark",value:function(r){var i,a,o,s,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=l.position,u=c===void 0?this.position:c,f=l.focalPoint,d=f===void 0?this.focalPoint:f,h=l.roll,p=l.zoom,g=new Ie.CameraContribution;g.setType(this.type,void 0),g.setPosition(u[0],(i=u[1])!==null&&i!==void 0?i:this.position[1],(a=u[2])!==null&&a!==void 0?a:this.position[2]),g.setFocalPoint(d[0],(o=d[1])!==null&&o!==void 0?o:this.focalPoint[1],(s=d[2])!==null&&s!==void 0?s:this.focalPoint[2]),g.setRoll(h??this.roll),g.setZoom(p??this.zoom);var v={name:r,matrix:Xx(g.getWorldTransform()),right:fl(g.right),up:fl(g.up),forward:fl(g.forward),position:fl(g.getPosition()),focalPoint:fl(g.getFocalPoint()),distanceVector:fl(g.getDistanceVector()),distance:g.getDistance(),dollyingStep:g.getDollyingStep(),azimuth:g.getAzimuth(),elevation:g.getElevation(),roll:g.getRoll(),relAzimuth:g.relAzimuth,relElevation:g.relElevation,relRoll:g.relRoll,zoom:g.getZoom()};return this.landmarks.push(v),v}},{key:"gotoLandmark",value:function(r){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=nr(r)?this.landmarks.find(function(M){return M.name===r}):r;if(o){var s=Jn(a)?{duration:a}:a,l=s.easing,c=l===void 0?"linear":l,u=s.duration,f=u===void 0?100:u,d=s.easingFunction,h=d===void 0?void 0:d,p=s.onfinish,g=p===void 0?void 0:p,v=s.onframe,y=v===void 0?void 0:v,x=.01;this.cancelLandmarkAnimation();var C=o.position,_=o.focalPoint,S=o.zoom,O=o.roll,E=h||Ie.EasingFunction(c),k,$=function(){i.setFocalPoint(_),i.setPosition(C),i.setRoll(O),i.setZoom(S),i.computeMatrix(),i.triggerUpdate(),g==null||g()};if(f===0)return $();var T=function(R){k===void 0&&(k=R);var N=R-k;if(N>=f){$();return}var D=E(N/f),F=qt(),V=qt(),z=1,B=0;Z6(F,i.focalPoint,_,D),Z6(V,i.position,C,D),B=i.roll*(1-D)+O*D,z=i.zoom*(1-D)+S*D,i.setFocalPoint(F),i.setPosition(V),i.setRoll(B),i.setZoom(z);var G=Ck(F,_)+Ck(V,C);if(G<=x&&S===void 0&&O===void 0)return $();i.computeMatrix(),i.triggerUpdate(),N<f&&(y==null||y(D),i.landmarkAnimationID=i.canvas.requestAnimationFrame(T))};this.canvas.requestAnimationFrame(T)}}}])}(wF);Ie.CameraContribution=Rxe;/*!
46 * @antv/g-web-animations-api
47 * @description A simple implementation of Web Animations API.
48 * @version 2.1.25
49 * @date 5/23/2025, 7:01:32 AM
50 * @author AntVis
51 * @docs https://g.antv.antgroup.com/
52 */var U9=function(e){function t(n,r,i,a){var o;return Pe(this,t),o=jt(this,t,[n]),o.currentTime=i,o.timelineTime=a,o.target=r,o.type="finish",o.bubbles=!1,o.currentTarget=r,o.defaultPrevented=!1,o.eventPhase=o.AT_TARGET,o.timeStamp=Date.now(),o.currentTime=i,o.timelineTime=a,o}return Rt(t,e),Te(t)}(nv),jxe=0,Dxe=function(){function e(t,n){var r;Pe(this,e),this.currentTimePending=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._playbackRate=1,this._inTimeline=!0,this.effect=t,t.animation=this,this.timeline=n,this.id="".concat(jxe++),this._inEffect=!!this.effect.update(0),this._totalDuration=Number((r=this.effect)===null||r===void 0?void 0:r.getComputedTiming().endTime),this._holdTime=0,this._paused=!1,this.oldPlayState="idle",this.updatePromises()}return Te(e,[{key:"pending",get:function(){return this._startTime===null&&!this._paused&&this.playbackRate!==0||this.currentTimePending}},{key:"playState",get:function(){return this._idle?"idle":this._isFinished?"finished":this._paused?"paused":"running"}},{key:"ready",get:function(){var n=this;
52return this.readyPromise||(this.timeline.animationsWithPromises.indexOf(this)===-1&&this.timeline.animationsWithPromises.push(this),this.readyPromise=new Promise(function(r,i){n.resolveReadyPromise=function(){r(n)},n.rejectReadyPromise=function(){i(new Error)}}),this.pending||this.resolveReadyPromise()),this.readyPromise}},{key:"finished",get:function(){var n=this;return this.finishedPromise||(this.timeline.animationsWithPromises.indexOf(this)===-1&&this.timeline.animationsWithPromises.push(this),this.finishedPromise=new Promise(function(r,i){n.resolveFinishedPromise=function(){r(n)},n.rejectFinishedPromise=function(){i(new Error)}}),this.playState==="finished"&&this.resolveFinishedPromise()),this.finishedPromise}},{key:"currentTime",get:function(){return this.updatePromises(),this._idle||this.currentTimePending?null:this._currentTime},set:function(n){if(n=Number(n),!isNaN(n)){if(this.timeline.restart(),!this._paused&&this._startTime!==null){var r;this._startTime=Number((r=this.timeline)===null||r===void 0?void 0:r.currentTime)-n/this.playbackRate}this.currentTimePending=!1,this._currentTime!==n&&(this._idle&&(this._idle=!1,this._paused=!0),this.tickCurrentTime(n,!0),this.timeline.applyDirtiedAnimation(this))}}},{key:"startTime",get:function(){return this._startTime},set:function(n){if(n!==null){if(this.updatePromises(),n=Number(n),isNaN(n)||this._paused||this._idle)return;this._startTime=n,this.tickCurrentTime((Number(this.timeline.currentTime)-this._startTime)*this.playbackRate),this.timeline.applyDirtiedAnimation(this),this.updatePromises()}}},{key:"playbackRate",get:function(){return this._playbackRate},set:function(n){if(n!==this._playbackRate){this.updatePromises();var r=this.currentTime;this._playbackRate=n,this.startTime=null,this.playState!=="paused"&&this.playState!=="idle"&&(this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this)),r!==null&&(this.currentTime=r),this.updatePromises()}}},{key:"_isFinished",get:function(){return!this._idle&&(this._playbackRate>0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)}},{key:"totalDuration",get:function(){return this._totalDuration}},{key:"_needsTick",get:function(){return this.pending||this.playState==="running"||!this._finishedFlag}},{key:"updatePromises",value:function(){var n;if((n=this.effect.target)!==null&&n!==void 0&&n.destroyed)return this.readyPromise=void 0,this.finishedPromise=void 0,!1;var r=this.oldPlayState,i=this.pending?"pending":this.playState;return this.readyPromise&&i!==r&&(i==="idle"?(this.rejectReadyPromise(),this.readyPromise=void 0):r==="pending"?this.resolveReadyPromise():i==="pending"&&(this.readyPromise=void 0)),this.finishedPromise&&i!==r&&(i==="idle"?(this.rejectFinishedPromise(),this.finishedPromise=void 0):i==="finished"?this.resolveFinishedPromise():r==="finished"&&(this.finishedPromise=void 0)),this.oldPlayState=i,this.readyPromise||this.finishedPromise}},{key:"play",value:function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),this.timeline.animations.indexOf(this)===-1&&this.timeline.animations.push(this),this.updatePromises()}},{key:"pause",value:function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),!this._isFinished&&!this._paused&&!this._idle?this.currentTimePending=!0:this._idle&&(this.rewind(),this._idle=!1),this._startTime=null,this._paused=!0,this.updatePromises()}},{key:"finish",value:function(){this.updatePromises(),!this._idle&&(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())}},{key:"cancel",value:function(){var n=this;if(this.updatePromises(),!!this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var r=new 
52U9(null,this,this.currentTime,null);setTimeout(function(){n.oncancel(r)})}}},{key:"reverse",value:function(){this.updatePromises();var n=this.currentTime;this.playbackRate*=-1,this.play(),n!==null&&(this.currentTime=n),this.updatePromises()}},{key:"updatePlaybackRate",value:function(n){this.playbackRate=n}},{key:"targetAnimations",value:function(){var n,r=(n=this.effect)===null||n===void 0?void 0:n.target;return r.getAnimations()}},{key:"markTarget",value:function(){var n=this.targetAnimations();n.indexOf(this)===-1&&n.push(this)}},{key:"unmarkTarget",value:function(){var n=this.targetAnimations(),r=n.indexOf(this);r!==-1&&n.splice(r,1)}},{key:"tick",value:function(n,r){!this._idle&&!this._paused&&(this._startTime===null?r&&(this.startTime=n-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((n-this._startTime)*this.playbackRate)),r&&(this.currentTimePending=!1,this.fireEvents(n))}},{key:"rewind",value:function(){if(this.playbackRate>=0)this.currentTime=0;else if(this._totalDuration<1/0)this.currentTime=this._totalDuration;else throw new Error("Unable to rewind negative playback rate animation with infinite duration")}},{key:"persist",value:function(){throw new Error($n)}},{key:"addEventListener",value:function(n,r,i){throw new Error($n)}},{key:"removeEventListener",value:function(n,r,i){throw new Error($n)}},{key:"dispatchEvent",value:function(n){throw new Error($n)}},{key:"commitStyles",value:function(){throw new Error($n)}},{key:"ensureAlive",value:function(){if(this.playbackRate<0&&this.currentTime===0){var n;this._inEffect=!!((n=this.effect)!==null&&n!==void 0&&n.update(-1))}else{var r;this._inEffect=!!((r=this.effect)!==null&&r!==void 0&&r.update(this.currentTime))}!this._inTimeline&&(this._inEffect||!this._finishedFlag)&&(this._inTimeline=!0,this.timeline.animations.push(this))}},{key:"tickCurrentTime",value:function(n,r){n!==this._currentTime&&(this._currentTime=n,this._isFinished&&!r&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())}},{key:"fireEvents",value:function(n){var r=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var i=new U9(null,this,this.currentTime,n);setTimeout(function(){r.onfinish&&r.onfinish(i)})}this._finishedFlag=!0}}else{if(this.onframe&&this.playState==="running"){var a=new U9(null,this,this.currentTime,n);this.onframe(a)}this._finishedFlag=!1}}}])}(),Fxe=4,Bxe=.001,zxe=1e-7,Vxe=10,B1=11,O5=1/(B1-1),Wxe=typeof Float32Array=="function",nB=function(t,n){return 1-3*n+3*t},rB=function(t,n){return 3*n-6*t},iB=function(t){return 3*t},Tm=function(t,n,r){return((nB(n,r)*t+rB(n,r))*t+iB(n))*t},aB=function(t,n,r){return 3*nB(n,r)*t*t+2*rB(n,r)*t+iB(n)},Hxe=function(t,n,r,i,a){var o,s,l=0;do s=n+(r-n)/2,o=Tm(s,i,a)-t,o>0?r=s:n=s;while(Math.abs(o)>zxe&&++l<Vxe);return s},Gxe=function(t,n,r,i){for(var a=0;a<Fxe;++a){var o=aB(n,r,i);if(o===0)return n;var s=Tm(n,r,i)-t;n-=s/o}return n},Nb=function(t,n,r,i){if(!(t>=0&&t<=1&&r>=0&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===n&&r===i)return function(l){return l};for(var a=Wxe?new Float32Array(B1):new Array(B1),o=0;o<B1;++o)a[o]=Tm(o*O5,t,r);var s=function(c){for(var u=0,f=1,d=B1-1;f!==d&&a[f]<=c;++f)u+=O5;--f;var h=(c-a[f])/(a[f+1]-a[f]),p=u+h*O5,g=aB(p,t,r);return g>=Bxe?Gxe(c,p,t,r):g===0?p:Hxe(c,u,u+O5,t,r)};return function(l){return l===0||l===1?l:Tm(s(l),n,i)}},Uxe=function(t){return t=t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())}),t.charAt(0)==="-"?t.substring(1):t},E5=function(t){return Math.pow(t,2)},k5=function(t){return Math.pow(t,3)},A5=function(t){return Math.pow(t,4)},$5=function(t){return Math.pow(t,5)},T5=function(t){return Math.pow(t,6)},P5=function(t){return 1-Math.cos(t*Math.PI/2)},M5=function(t){return 1-Math.sqrt(1-t*t)},N5=function(t){return t*t*(3*t-2)},I5=function(t){for(var n,r=4;t<((n=Math.pow(2,--r))-1)/11;);return 1/Math.pow(4,3-r)-7.5625*Math.pow((n*3-2)/22-t,2)},L5=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=St(n,2),i=r[0],a=i===void 0?1:i,o=r[1],s=o===void 0?.5:o,l=yr(Number(a),1,10),c=yr(Number(s),.1,2);return t===0||t===1?t:-l*Math.pow(2,10*(t-1))*Math.sin((t-1-c/(Math.PI*2)*Math.asin(1/l))*(Math.PI*2)/c)},O1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=St(n,4),a=i[0],o=a===void 0?1:a,s=i[1],l=s===void 0?100:s,c=i[2],u=c===void 0?10:c,f=i[3],d=f===void 0?0:f;o=yr(o,.1,1e3),l=yr(l,.1,1e3),u=yr(u,.1,1e3),d=yr(d,.1,1e3);var h=Math.sqrt(l/o),p=u/(2*Math.sqrt(l*o)),g=p<1?h*Math.sqrt(1-p*p):0,v=1,y=p<1?(p*h+-d)/g:-d+h,x=r?r*t/1e3:t;
52return p<1?x=Math.exp(-x*p*h)*(v*Math.cos(g*x)+y*Math.sin(g*x)):x=(v+y*x)*Math.exp(-x*h),t===0||t===1?t:1-x},Y9=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=n,i=St(r,2),a=i[0],o=a===void 0?10:a,s=i[1],l=s==="start"?Math.ceil:Math.floor;return l(yr(t,0,1)*o)/o},FA=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=St(n,4),i=r[0],a=r[1],o=r[2],s=r[3];return Nb(i,a,o,s)(t)},R5=Nb(.42,0,1,1),Va=function(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;return 1-t(1-n,r,i)}},Wa=function(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;return n<.5?t(n*2,r,i)/2:1-t(n*-2+2,r,i)/2}},Ha=function(t){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;return n<.5?(1-t(1-n*2,r,i))/2:(t(n*2-1,r,i)+1)/2}},BA={steps:Y9,"step-start":function(t){return Y9(t,[1,"start"])},"step-end":function(t){return Y9(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":FA,ease:function(t){return FA(t,[.25,.1,.25,1])},in:R5,out:Va(R5),"in-out":Wa(R5),"out-in":Ha(R5),"in-quad":E5,"out-quad":Va(E5),"in-out-quad":Wa(E5),"out-in-quad":Ha(E5),"in-cubic":k5,"out-cubic":Va(k5),"in-out-cubic":Wa(k5),"out-in-cubic":Ha(k5),"in-quart":A5,"out-quart":Va(A5),"in-out-quart":Wa(A5),"out-in-quart":Ha(A5),"in-quint":$5,"out-quint":Va($5),"in-out-quint":Wa($5),"out-in-quint":Ha($5),"in-expo":T5,"out-expo":Va(T5),"in-out-expo":Wa(T5),"out-in-expo":Ha(T5),"in-sine":P5,"out-sine":Va(P5),"in-out-sine":Wa(P5),"out-in-sine":Ha(P5),"in-circ":M5,"out-circ":Va(M5),"in-out-circ":Wa(M5),"out-in-circ":Ha(M5),"in-back":N5,"out-back":Va(N5),"in-out-back":Wa(N5),"out-in-back":Ha(N5),"in-bounce":I5,"out-bounce":Va(I5),"in-out-bounce":Wa(I5),"out-in-bounce":Ha(I5),"in-elastic":L5,"out-elastic":Va(L5),"in-out-elastic":Wa(L5),"out-in-elastic":Ha(L5),spring:O1,"spring-in":O1,"spring-out":Va(O1),"spring-in-out":Wa(O1),"spring-out-in":Ha(O1)},Yxe=function(t){return Uxe(t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},Xxe=function(t){return BA[Yxe(t)]||BA.linear},qxe=function(t){return t},Zxe=1,Kxe=.5,zA=0;function VA(e,t){return function(n){if(n>=1)return 1;var r=1/e;return n+=t*r,n-n%r}}var j5="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",Jxe=new RegExp("cubic-bezier\\(".concat(j5,",").concat(j5,",").concat(j5,",").concat(j5,"\\)")),Qxe=/steps\(\s*(\d+)\s*\)/,ebe=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function Ib(e){var t=Jxe.exec(e);if(t)return Nb.apply(void 0,Gt(t.slice(1).map(Number)));var n=Qxe.exec(e);if(n)return VA(Number(n[1]),zA);var r=ebe.exec(e);return r?VA(Number(r[1]),{start:Zxe,middle:Kxe,end:zA}[r[2]]):Xxe(e)}function tbe(e){return Math.abs(nbe(e)/(e.playbackRate||1))}function nbe(e){var t;return e.duration===0||e.iterations===0?0:(e.duration==="auto"?0:Number(e.duration))*((t=e.iterations)!==null&&t!==void 0?t:1)}var oB=0,Lb=1,ov=2,sB=3;function rbe(e,t,n){if(t===null)return oB;var r=n.endTime;return t<Math.min(n.delay,r)?Lb:t>=Math.min(n.delay+e+n.endDelay,r)?ov:sB}function ibe(e,t,n,r,i){switch(r){case Lb:return t==="backwards"||t==="both"?0:null;case sB:return n-i;case ov:return t==="forwards"||t==="both"?e:null;case oB:return null}}function abe(e,t,n,r,i){var a=i;return e===0?t!==Lb&&(a+=n):a+=r/e,a}function obe(e,t,n,r,i,a){var o=e===1/0?t%1:e%1;return o===0&&n===ov&&r!==0&&(i!==0||a===0)&&(o=1),o}function sbe(e,t,n,r){return e===ov&&t===1/0?1/0:n===1?Math.floor(r)-1:Math.floor(r)}function lbe(e,t,n){var r=e;if(e!=="normal"&&e!=="reverse"){var i=t;e==="alternate-reverse"&&(i+=1),r="normal",i!==1/0&&i%2!==0&&(r="reverse")}return r==="normal"?n:1-n}function cbe(e,t,n){var r=rbe(e,t,n),i=ibe(e,n.fill,t,r,n.delay);if(i===null)return null;var a=n.duration==="auto"?0:n.duration,o=abe(a,r,n.iterations,i,n.iterationStart),s=obe(o,n.iterationStart,r,n.iterations,i,a),l=sbe(r,n.iterations,s,o),c=lbe(n.direction,l,s);return n.currentIteration=l,n.progress=c,n.easingFunction(c)}function ube(e,t,n){var r=fbe(e,t),i=dbe(r,n);return function(a,o){if(o!==null)i.filter(function(l){return o>=l.applyFrom&&o<l.applyTo}
52).forEach(function(l){var c=o-l.startOffset,u=l.endOffset-l.startOffset,f=u===0?0:c/u;a.setAttribute(l.property,l.interpolation(f),!1,!1)});else for(var s in r)lB(s)&&a.setAttribute(s,null)}}function lB(e){return e!=="offset"&&e!=="easing"&&e!=="composite"&&e!=="computedOffset"}function fbe(e,t){for(var n={},r=0;r<e.length;r++)for(var i in e[r])if(lB(i)){var a={offset:e[r].offset,computedOffset:e[r].computedOffset,easing:e[r].easing,easingFunction:Ib(e[r].easing)||t.easingFunction,value:e[r][i]};n[i]=n[i]||[],n[i].push(a)}return n}function dbe(e,t){var n=[];for(var r in e)for(var i=e[r],a=0;a<i.length-1;a++){var o=a,s=a+1,l=i[o].computedOffset,c=i[s].computedOffset,u=l,f=c;a===0&&(u=-1/0,c===0&&(s=o)),a===i.length-2&&(f=1/0,l===1&&(o=s)),n.push({applyFrom:u,applyTo:f,startOffset:i[o].computedOffset,endOffset:i[s].computedOffset,easingFunction:i[o].easingFunction,property:r,interpolation:hbe(r,i[o].value,i[s].value,t)})}return n.sort(function(d,h){return d.startOffset-h.startOffset}),n}var WA=function(t,n,r){return function(i){var a=cB(t,n,i);return Jn(a)?a:r(a)}};function hbe(e,t,n,r){var i=FF[e];if(i&&i.syntax&&i.int){var a=Ie.styleValueRegistry.getPropertySyntax(i.syntax);if(a){var o=a.parser,s=o?o(t,r):t,l=o?o(n,r):n,c=a.mixer(s,l,r);if(c){var u=WA.apply(void 0,Gt(c));return function(f){return f===0?t:f===1?n:u(f)}}}}return WA(!1,!0,function(f){return f?n:t})}function cB(e,t,n){if(typeof e=="number"&&typeof t=="number")return e*(1-n)+t*n;if(typeof e=="boolean"&&typeof t=="boolean"||typeof e=="string"&&typeof t=="string")return n<.5?e:t;if(Array.isArray(e)&&Array.isArray(t)){for(var r=e.length,i=t.length,a=Math.max(r,i),o=[],s=0;s<a;s++)o.push(cB(e[s<r?s:r-1],t[s<i?s:i-1],n));return o}throw new Error("Mismatched interpolation arguments ".concat(e,":").concat(t))}var pbe=function(){function e(){Pe(this,e),this.delay=0,this.direction="normal",this.duration="auto",this._easing="linear",this.easingFunction=qxe,this.endDelay=0,this.fill="auto",this.iterationStart=0,this.iterations=1,this.currentIteration=null,this.progress=null}return Te(e,[{key:"easing",get:function(){return this._easing},set:function(n){this.easingFunction=Ib(n),this._easing=n}}])}();function gbe(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i=r.length,a=0;a<i;a++){if(!t[a]){var o={};"offset"in e&&(o.offset=Number(e.offset)),"easing"in e&&(o.easing=e.easing),"composite"in e&&(o.composite=e.composite),t[a]=o}r[a]!==void 0&&r[a]!==null&&(t[a][n]=r[a])}}return t.sort(function(s,l){return(s.computedOffset||0)-(l.computedOffset||0)}),t}function HA(e,t){if(e===null)return[];Array.isArray(e)||(e=gbe(e));for(var n=e.map(function(l){var c={};t!=null&&t.composite&&(c.composite="auto");for(var u in l){var f=l[u];if(u==="offset"){if(f!==null){if(f=Number(f),!isFinite(f))throw new Error("Keyframe offsets must be numbers.");if(f<0||f>1)throw new Error("Keyframe offsets must be between 0 and 1.");c.computedOffset=f}}else if(u==="composite"&&["replace","add","accumulate","auto"].indexOf(f)===-1)throw new Error("".concat(f," compositing is not supported"));c[u]=f}return c.offset===void 0&&(c.offset=null),c.easing===void 0&&(c.easing=(t==null?void 0:t.easing)||"linear"),c.composite===void 0&&(c.composite="auto"),c}),r=!0,i=-1/0,a=0;a<n.length;a++){var o=n[a].offset;if(pt(o))r=!1;
52else{if(o<i)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");i=o}}n=n.filter(function(l){return Number(l.offset)>=0&&Number(l.offset)<=1});function s(){var l,c=n,u=c.length;if(n[u-1].computedOffset=Number((l=n[u-1].offset)!==null&&l!==void 0?l:1),u>1){var f;n[0].computedOffset=Number((f=n[0].offset)!==null&&f!==void 0?f:0)}for(var d=0,h=Number(n[0].computedOffset),p=1;p<u;p++){var g=n[p].computedOffset;if(!pt(g)&&!pt(h)){for(var v=1;v<p-d;v++)n[d+v].computedOffset=h+(Number(g)-h)*v/(p-d);d=p,h=Number(g)}}}return r||s(),n}var mbe="backwards|forwards|both|none".split("|"),vbe="reverse|alternate|alternate-reverse".split("|");function ybe(e,t){var n=new pbe;return typeof e=="number"&&!isNaN(e)?n.duration=e:e!==void 0&&Object.keys(e).forEach(function(r){if(e[r]!==void 0&&e[r]!==null&&e[r]!=="auto"){if((typeof n[r]=="number"||r==="duration")&&(typeof e[r]!="number"||isNaN(e[r]))||r==="fill"&&mbe.indexOf(e[r])===-1||r==="direction"&&vbe.indexOf(e[r])===-1)return;n[r]=e[r]}}),n}function xbe(e,t){return e=bbe(e??{duration:"auto"}),ybe(e)}function bbe(e){return typeof e=="number"&&(isNaN(e)?e={duration:"auto"}:e={duration:e}),e}var Cbe=function(){function e(t,n,r){var i=this;Pe(this,e),this.composite="replace",this.iterationComposite="replace",this.target=t,this.timing=xbe(r),this.timing.effect=this,this.timing.activeDuration=tbe(this.timing),this.timing.endTime=Math.max(0,this.timing.delay+this.timing.activeDuration+this.timing.endDelay),this.normalizedKeyframes=HA(n,this.timing),this.interpolations=ube(this.normalizedKeyframes,this.timing,this.target);var a=Ie.globalThis.Proxy;this.computedTiming=a?new a(this.timing,{get:function(s,l){return l==="duration"?s.duration==="auto"?0:s.duration:l==="fill"?s.fill==="auto"?"n
52one":s.fill:l==="localTime"?i.animation&&i.animation.currentTime||null:l==="currentIteration"?!i.animation||i.animation.playState!=="running"?null:s.currentIteration||0:l==="progress"?!i.animation||i.animation.playState!=="running"?null:s.progress||0:s[l]},set:function(){return!0}}):this.timing}return Te(e,[{key:"applyInterpolations",value:function(){this.interpolations(this.target,Number(this.timeFraction))}},{key:"update",value:function(n){return n===null?!1:(this.timeFraction=cbe(this.timing.activeDuration,n,this.timing),this.timeFraction!==null)}},{key:"getKeyframes",value:function(){return this.normalizedKeyframes}},{key:"setKeyframes",value:function(n){this.normalizedKeyframes=HA(n)}},{key:"getComputedTiming",value:function(){return this.computedTiming}},{key:"getTiming",value:function(){return this.timing}},{key:"updateTiming",value:function(n){var r=this;Object.keys(n||{}).forEach(function(i){r.timing[i]=n[i]})}}])}();function GA(e,t){return Number(e.id)-Number(t.id)}var wbe=function(){function e(t){var n=this;Pe(this,e),this.animations=[],this.ticking=!1,this.timelineTicking=!1,this.hasRestartedThisFrame=!1,this.animationsWithPromises=[],this.inTick=!1,this.pendingEffects=[],this.currentTime=null,this.rafId=0,this.rafCallbacks=[],this.webAnimationsNextTick=function(r){n.currentTime=r,n.discardAnimations(),n.animations.length===0?n.timelineTicking=!1:n.requestAnimationFrame(n.webAnimationsNextTick)},this.processRafCallbacks=function(r){var i=n.rafCallbacks;n.rafCallbacks=[],r<Number(n.currentTime)&&(r=Number(n.currentTime)),n.animations.sort(GA),n.animations=n.tick(r,!0,n.animations)[0],i.forEach(function(a){a[1](r)}),n.applyPendingEffects()},this.document=t}return Te(e,[{key:"getAnimations",value:function(){return this.discardAnimations(),this.animations.slice()}},{key:"isTicking",value:function(){return this.inTick}},{key:"play",value:function(n,r,i){var a=new Cbe(n,r,i),o=new Dxe(a,this);return this.animations.push(o),this.restartWebAnimationsNextTick(),o.updatePromises(),o.play(),o.updatePromises(),o}},{key:"applyDirtiedAnimation",value:function(n){var r=this;if(!this.inTick){n.markTarget();var i=n.targetAnimations();i.sort(GA);var a=this.tick(Number(this.currentTime),!1,i.slice())[1];a.forEach(function(o){var s=r.animations.indexOf(o);s!==-1&&r.animations.splice(s,1)}),this.applyPendingEffects()}}},{key:"restart",value:function(){return this.ticking||(this.ticking=!0,this.requestAnimationFrame(function(){}),this.hasRestartedThisFrame=!0),this.hasRestartedThisFrame}},{key:"destroy",value:function(){this.document.defaultView.cancelAnimationFrame(this.frameId)}},{key:"applyPendingEffects",value:function(){this.pendingEffects.forEach(function(n){n==null||n.applyInterpolations()}),this.pendingEffects=[]}},{key:"updateAnimationsPromises",value:function(){this.animationsWithPromises=this.animationsWithPromises.filter(function(n){return n.updatePromises()})}},{key:"discardAnimations",value:function(){this.updateAnimationsPromises(),this.animations=this.animations.filter(function(n){return n.playState!=="finished"&&n.playState!=="idle"})}},{key:"restartWebAnimationsNextTick",value:function(){this.timelineTicking||(this.timelineTicking=!0,this.requestAnimationFrame(this.webAnimationsNextTick))}},{key:"rAF",value:function(n){var r=this.rafId++;return this.rafCallbacks.length===0&&(this.frameId=this.document.defaultView.requestAnimationFrame(this.processRafCallbacks)),this.rafCallbacks.push([r,n]),r}},{key:"requestAnimationFrame",value:function(n){var r=this;return this.rAF(function(i){r.updateAnimationsPromises(),n(i),r.updateAnimationsPromises()})}},{key:"tick",value:function(n,r,i){var a=this,o,s;this.inTick=!0,this.hasRestartedThisFrame=!1,this.currentTime=n,this.ticking=!1;var l=[],c=[],u=[],f=[];return i.forEach(function(d){d.tick(n,r),d._inEffect?(c.push(d.effect),d.markTarget()):(l.push(d.effect),d.unmarkTarget()),d._needsTick&&(a.ticking=!0);var h=d._inEffect||d._needsTick;d._inTimeline=h,h?u.push(d):f.push(d)}),(o=this.pendingEffects).push.apply(o,l),(s=this.pendingEffects).push.apply(s,c),this.ticking&&this.requestAnimationFrame(function(){}),this.inTick=!1,[u,f]}}])}();
52Ie.EasingFunction=Ib;Ie.AnimationTimeline=wbe;function ft(e){return new Pm([e],null,e,e.ownerDocument)}let Pm=class fi{constructor(t=null,n=null,r=null,i=null,a=[null,null,null,null,null],o=[],s=[]){this._elements=Array.from(t),this._data=n,this._parent=r,this._document=i,this._enter=a[0],this._update=a[1],this._exit=a[2],this._merge=a[3],this._split=a[4],this._transitions=o,this._facetElements=s}selectAll(t){const n=typeof t=="string"?this._parent.querySelectorAll(t):t;return new fi(n,null,this._elements[0],this._document)}selectFacetAll(t){const n=typeof t=="string"?this._parent.querySelectorAll(t):t;return new fi(this._elements,null,this._parent,this._document,void 0,void 0,n)}select(t){const n=typeof t=="string"?this._parent.querySelectorAll(t)[0]||null:t;return new fi([n],null,n,this._document)}append(t){const n=typeof t=="function"?t:()=>this.createElement(t),r=[];if(this._data!==null){for(let i=0;i<this._data.length;i++){const a=this._data[i],[o,s]=Array.isArray(a)?a:[a,null],l=n(o,i);l.__data__=o,s!==null&&(l.__fromElements__=s),this._parent.appendChild(l),r.push(l)}return new fi(r,null,this._parent,this._document)}else{for(let i=0;i<this._elements.length;i++){const a=this._elements[i],o=a.__data__,s=n(o,i);a.appendChild(s),r.push(s)}return new fi(r,null,r[0],this._document)}}maybeAppend(t,n,r){const i=this._elements[0],a=i.getElementById(t);if(a)return new fi([a],null,this._parent,this._document);const o=typeof n=="string"?this.createElement(n):n();return o.id=t,r&&(o.className=r),i.appendChild(o),new fi([o],null,this._parent,this._document)}data(t,n=i=>i,r=()=>null){const i=[],a=[],o=new Set(this._elements),s=[],l=new Set,c=new Map(this._elements.map((h,p)=>[n(h.__data__,p),h])),u=new Map(this._facetElements.map((h,p)=>[n(h.__data__,p),h])),f=jn(this._elements,h=>r(h.__data__));for(let h=0;h<t.length;h++){const p=t[h],g=n(p,h),v=r(p,h);if(c.has(g)){const y=c.get(g);y.__data__=p,y.__facet__=!1,a.push(y),o.delete(y),c.delete(g)}else if(u.has(g)){const y=u.get(g);y.__data__=p,y.__facet__=!0,a.push(y),u.delete(g)}else if(f.has(g)){const y=f.get(g);s.push([p,y]);for(const x of y)o.delete(x);f.delete(g)}else if(c.has(v)){const y=c.get(v);y.__toData__?y.__toData__.push(p):y.__toData__=[p],l.add(y),o.delete(y)}else i.push(p)}const d=[new fi([],i,this._parent,this._document),new fi(a,null,this._parent,this._document),new fi(o,null,this._parent,this._document),new fi([],s,this._parent,this._document),new fi(l,null,this._parent,this._document)];return new fi(this._elements,null,this._parent,this._document,d)}merge(t){const n=[...this._elements,...t._elements],r=[...this._transitions,...t._transitions];return new fi(n,null,this._parent,this._document,void 0,r)}createElement(t){if(this._document)return this._document.createElement(t,{});const n=fi.registry[t];return n?new n:ld(`Unknown node type: ${t}`)}join(t=o=>o,n=o=>o,r=o=>o.remove(),i=o=>o,a=o=>o.remove()){const o=t(this._enter),s=n(this._update),l=r(this._exit),c=i(this._merge),u=a(this._split);return s.merge(o).merge(l).merge(c).merge(u)}remove(){for(let t=0;t<this._elements.length;t++){const n=this._transitions[t];if(n){const r=Array.isArray(n)?n:[n];Promise.all(r.map(i=>i.finished)).then(()=>{this._elements[t].remove()})}else this._elements[t].remove()}return new fi([],null,this._parent,this._document,void 0,this._transitions)}each(t){for(let n=0;n<this._elements.length;n++){const r=this._elements[n],i=r.__data__;t(i,n,r)}return this}attr(t,n){const r=typeof n!="function"?()=>n:n;return this.each(function(i,a,o){n!==void 0&&(o[t]=r(i,a,o))})}style(t,n){const r=typeof n!="function"?()=>n:n;return this.each(function(i,a,o){n!==void 0&&(o.style[t]=r(i,a,o))})}transition(t){const n=typeof t!="function"?()=>t:t,{_transitions:r}=this;return this.each(function(i,a,o){r[a]=n(i,a,o)})}on(t,n){return this.each(function(r,i,a){a.addEventListener(t,n)}),this}call(t,...n){return t(this,...n),this}node(){return this._elements[0]}nodes(){return this._elements}transitions(){return this._transitions}parent(){return this._parent}};Pm.registry={g:Yr,rect:zc,circle:Ns,path:qi,text:so,ellipse:rv,image:iv,line:vf,polygon:yf,polyline:av,html:Bp};function D5(e,t,n){return Math.max(t,Math.min(e,n))}function Mm(e,t=10){return typeof e!="number"||Math.abs(e)<1e-15?e:parseFloat(e.toFixed(t))}function it(e,t){for(const[n,r]of Object.entries(t))e.style(n,r)}function _be(e,t){return t.forEach((n,r)=>r===0?e.moveTo(n[0],n[1]):e.lineTo(n[0],n[1])),e.closePath(),e}function Sbe(e,t,n){const{arrowSize:r}=n,i=typeof r=="string"?+parseFloat(r)/100*or(e,t):r,a=Math.PI/6,o=Math.atan2(t[1]-e[1],t[0]-e[0]),s=Math.PI/2-o-a,l=[t[0]-i*Math.sin(s),t[1]-i*Math.cos(s)],c=o-a,u=[t[0]-i*Math.cos(c),t[1]-i*Math.sin(c)];return[l,u]}function Xh(e,t,n,r,i){const a=oo(mr(r,t))+Math.PI,o=oo(mr(r,n))+Math.PI;return e.arc(r[0],r[1],i,a,o,o-a<0),e}function uB(e,t,n,r="y",i="between",a=!1){const o=(v,y)=>v==="y"||v===!0?y?180:90:y?90:0,s=r==="y"||r===!0?n:t,l=o(r,a),c=hf(s),[u,f]=Ol(c,v=>s[v]),d=new Gn({domain:[u,f],range:[0,100]}),h=v=>Jn(s[v])&&!Number.isNaN(s[v])?d.map(s[v]):0,p={between:v=>`${e[v]} ${h(v)}%`,start:v=>v===0?`${e[v]} ${h(v)}%`:`${e[v-1]} ${h(v)}%, ${e[v]} ${h(v)}%`,end:v=>v===e.length-1?`${e[v]} ${h(v)}%`:`${e[v]} ${h(v)}%, ${e[v+1]} ${h(v)}%`},g=c.sort((v,y)=>h(v)-h(y)).map(p[i]||p.between).join(",");return`linear-gradient(${l}deg, ${g})`}function sv(e){const[t,n,r,i]=e;return[i,t,n,r]}function xf(e,t,n){const[r,i,,a]=Un(e)?sv(t):t,[o,s]=n,l=e.getCenter(),c=ud(mr(r,l)),u=ud(mr(i,l)),f=u===c&&o!==s?u+Math.PI*2:u;return{startAngle:c,endAngle:f-c>=0?f:Math.PI*2+f,innerRadius:or(a,l),outerRadius:or(r,l)}}function Rb(e){const{colorAttribute:t,opacityAttribute:n=t}=e;return`${n}Opacity`}function fB(e,t){if(!On(e))return"";const n=e.getCenter(),{transform:r}=t;return`translate(${n[0]}, ${n[1]}) ${r||""}`}function jb(e){if(e.length===1)return e[0];const[[t,n,r=0],[i,a,o=0]]=e;return[(t+i)/2,(n+a)/2,(r+o)/2]}var $g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function dB(e,t,n,r,i={}){const{inset:a=0,radius:o=0,insetLeft:s=a,insetTop:l=a,insetRight:c=a,insetBottom:u=a,radiusBottomLeft:f=o,radiusBottomRight:d=o,radiusTopLeft:h=o,radiusTopRight:p=o,minWidth:g=-1/0,maxWidth:v=1/0,minHeight:y=-1/0}=i,x=$g(i,["inset","radius","insetLeft","insetTop","insetRight","insetBottom","radiusBottomLeft","radiusBottomRight","radiusTopLeft","radiusTopRight","minWidth","maxWidth","minHeight"]);if(!On(r)&&!hF(r)){const k=!!Un(r),[$,,T]=k?sv(t):t,[M,R]=$,[N,D]=mr(T,$),F=N>0?M:M+N,V=D>0?R:R+D,z=Math.abs(N),B=Math.abs(D),G=F+s,Y=V+l,K=z-(s+c),Q=B-(l+u),ne=k?D5(K,y,1/0):D5(K,g,v),oe=k?D5(Q,g,v):D5(Q,y,1/0),ae=k?G:G-(ne-K)/2,ce=k?Y-(oe-Q)/2:Y-(oe-Q);return ft(e.createElement("rect",{})).style("x",ae).style("y",ce).style("width",ne).style("height",oe).style("radius",[h,p,d,f]).call(it,x).node()}const{y:C,y1:_}=n,S=r.getCenter(),O=xf(r,t,[C,_]),E=xb().cornerRadius(o).padAngle(a*Math.PI/180);return ft(e.createElement("path",{})).style("d",E(O)).style("transform",`translate(${S[0]}, ${S[1]})`).style("radius",o).style("inset",a).call(it,x).node()}const zp=(e,t)=>{const{colorAttribute:n,opacityAttribute:r="fill",first:i=!0,last:a=!0}=e,o=$g(e,["colorAttribute","opacityAttribute","first","last"]),{coordinate:s,document:l}=t;return(c,u,f)=>{const{color:d,radius:h=0}=f,p=$g(f,["color","radius"]),g=p.lineWidth||1,{stroke:v,radius:y=h,radiusTopLeft:x=y,radiusTopRight:C=y,radiusBottomRight:_=y,radiusBottomLeft:S=y,innerRadius:O=0,innerRadiusTopLeft:E=O,innerRadiusTopRight:k=O,innerRadiusBottomRight:$=O,innerRadiusBottomLeft:T=O,lineWidth:M=n==="stroke"||v?g:0,inset:R=0,insetLeft:N=R,insetRight:D=R,insetBottom:F=R,insetTop:V=R,minWidth:z,maxWidth:B,minHeight:G}=o,Y=$g(o,["stroke","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","lineWidth","inset","insetLeft","insetRight","insetBottom","insetTop","minWidth","maxWidth","minHeight"]),{color:K=d,opacity:Q}
52=u,ne=[i?x:E,i?C:k,a?_:$,a?S:T],oe=["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"];Un(s)&&oe.push(oe.shift());const ae=Object.assign(Object.assign({radius:y},Object.fromEntries(oe.map((ce,fe)=>[ce,ne[fe]]))),{inset:R,insetLeft:N,insetRight:D,insetBottom:F,insetTop:V,minWidth:z,maxWidth:B,minHeight:G});return ft(dB(l,c,u,s,ae)).call(it,p).style("fill","transparent").style(n,K).style(Rb(e),Q).style("lineWidth",M).style("stroke",v===void 0?K:v).call(it,Y).node()}};zp.props={defaultEnterAnimation:"scaleInY",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const bf=(e,t)=>zp(Object.assign({colorAttribute:"fill"},e),t);bf.props=Object.assign(Object.assign({},zp.props),{defaultMarker:"square"});const lv=(e,t)=>zp(Object.assign({colorAttribute:"stroke"},e),t);lv.props=Object.assign(Object.assign({},zp.props),{defaultMarker:"hollowSquare"});var UA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Obe(e,t,n){const[r,i,a,o]=e;if(Un(n)){const c=[t?t[0][0]:i[0],i[1]],u=[t?t[3][0]:a[0],a[1]];return[r,c,u,o]}const s=[i[0],t?t[0][1]:i[1]],l=[a[0],t?t[3][1]:a[1]];return[r,s,l,o]}const Db=(e,t)=>{const{adjustPoints:n=Obe}=e,r=UA(e,["adjustPoints"]),{coordinate:i,document:a}=t;return(o,s,l,c)=>{const{index:u}=s,{color:f}=l,d=UA(l,["color"]),h=c[u+1],p=n(o,h,i),g=!!Un(i),[v,y,x,C]=g?sv(p):p,{color:_=f,opacity:S}=s,O=gf().curve(_b)([v,y,x,C]);return ft(a.createElement("path",{})).call(it,d).style("d",O).style("fill",_).style("fillOpacity",S).call(it,r).node()}};Db.props={defaultMarker:"square"};function Ebe(e,t,n){const[r,i,a,o]=e;if(Un(n)){const c=[t?t[0][0]:(i[0]+a[0])/2,i[1]],u=[t?t[3][0]:(i[0]+a[0])/2,a[1]];return[r,c,u,o]}const s=[i[0],t?t[0][1]:(i[1]+a[1])/2],l=[a[0],t?t[3][1]:(i[1]+a[1])/2];return[r,s,l,o]}const hB=(e,t)=>Db(Object.assign({adjustPoints:Ebe},e),t);hB.props={defaultMarker:"square"};function pd(e){const t=typeof e=="function"?e:e.render;return class extends Fp{connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){t(this)}}}var YA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const kbe=pd(e=>{const{d1:t,d2:n,style1:r,style2:i}=e.attributes,a=e.ownerDocument;ft(e).maybeAppend("line",()=>a.createElement("path",{})).style("d",t).call(it,r),ft(e).maybeAppend("line1",()=>a.createElement("path",{})).style("d",n).call(it,i)});function Abe(e,t){const n=[],r=[];let i=!1,a=null;for(const o of e)!t(o[0])||!t(o[1])?i=!0:(n.push(o),i&&(i=!1,r.push([a,o])),a=o);return[n,r]}const fo=(e,t)=>{const{curve:n,gradient:r=!1,gradientColor:i="between",defined:a=u=>!Number.isNaN(u)&&u!==void 0&&u!==null,connect:o=!1}=e,s=YA(e,["curve","gradient","gradientColor","defined","connect"]),{coordinate:l,document:c}=t;return(u,f,d)=>{const{color:h,lineWidth:p}=d,g=YA(d,["color","lineWidth"]),{color:v=h,size:y=p,seriesColor:x,seriesX:C,seriesY:_}=f,S=fB(l,f),O=Un(l),E=r&&x?uB(x,C,_,r,i,O):v,k=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},g),E&&{stroke:E}),y&&{lineWidth:y}),S&&{transform:S}),s);let $;if(On(l)){const F=l.getCenter();$=V=>N4e().angle((z,B)=>ud(mr(V[B],F))).radius((z,B)=>or(V[B],F)).defined(([z,B])=>a(z)&&a(B)).curve(n)(V)}else $=gf().x(F=>F[0]).y(F=>F[1]).defined(([F,V])=>a(F)&&a(V)).curve(n);const[T,M]=Abe(u,a),R=Ve(k,"connect"),N=!!M.length;if(!N||o&&!Object.keys(R).length)return ft(c.createElement("path",{})).style("d",$(T)||[]).call(it,k).node();if(N&&!o)return ft(c.createElement("path",{})).style("d",$(u)).call(it,k).node();const D=F=>F.map($).join(",");return ft(new kbe).style("style1",Object.assign(Object.assign({},k),R)).style("style2",k).style("d1",D(M)).style("d2",$(u)).node()}};fo.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const pB=(e,t)=>{const{coordinate:n}=t;return(...r)=>{const i=On(n)?_b:Rp;return fo(Object.assign({curve:i},e),t)(...r)}};pB.props=Object.assign(Object.assign({},fo.props),{defaultMarker:"line"});var $be=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const gB=(e,t)=>{const n=$be(e,[]),{coordinate:r}=t;return(...i)=>{const a=On(r)?iF:Un(r)?cF:lF;return fo(Object.assign({curve:a},n),t)(...i)}};gB.props=Object.assign(Object.assign({},fo.props),{defaultMarker:"smooth"});const mB=(e,t)=>fo(Object.assign({curve:dF},e),t);mB.props=Object.assign(Object.assign({},fo.props),{defaultMarker:"hv"});const vB=(e,t)=>fo(Object.assign({curve:fF},e),t);vB.props=Object.assign(Object.assign({},fo.props),{defaultMarker:"vh"});const yB=(e,t)=>fo(Object.assign({curve:uF},e),t);yB.props=Object.assign(Object.assign({},fo.props),{defaultMarker:"hvh"});var Tbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Pbe(e,t,n,r,i){const a=mr(n,t),o=oo(a),s=o+Math.PI/2,l=[r/2*Math.cos(s),r/2*Math.sin(s)],c=[i/2*Math.cos(s),i/2*Math.sin(s)],u=[i/2*Math.cos(o),i/2*Math.sin(o)],f=[r/2*Math.cos(o),r/2*Math.sin(o)],d=h5(t,l),h=h5(n,c),p=h5(h,u),g=h5(n,u),v=mr(g,c),y=mr(n,c),x=mr(t,l),C=mr(x,f),_=mr(t,f),S=mr(d,f);e.moveTo(...d),e.lineTo(...h),e.arcTo(...p,...g,i/2),e.arcTo(...v,...y,i/2),e.lineTo(...x),e.arcTo(...C,..._,r/2),e.arcTo(...S,...d,r/2),e.closePath()}const xB=(e,t)=>{const{document:n}=t;return(r,i,a)=>{const{seriesSize:o,color:s}=i,{color:l}=a,c=Tbe(a,["color"]),u=co();for(let f=0;f<r.length-1;f++){const d=r[f],h=r[f+1],p=o[f],g=o[f+1];[...d,...h].every(Dn)&&Pbe(u,d,h,p,g)}return ft(n.createElement("path",{})).call(it,c).style("fill",s||l).style("d",u.toString()).call(it,e).node()}};xB.props=Object.assign(Object.assign({},fo.props),{defaultMarker:"line"});var Mbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};
vendor: 8,186 bytes, line 52
52const Fb=(e,t,n)=>[["M",e-n,t],["A",n,n,0,1,0,e+n,t],["A",n,n,0,1,0,e-n,t],["Z"]];Fb.style=["fill"];const bB=Fb.bind(void 0);bB.style=["stroke","lineWidth"];const cv=(e,t,n)=>[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]];cv.style=["fill"];const CB=cv.bind(void 0);CB.style=["fill"];const wB=cv.bind(void 0);wB.style=["stroke","lineWidth"];const Bb=(e,t,n)=>{const r=n*.618;return[["M",e-r,t],["L",e,t-n],["L",e+r,t],["L",e,t+n],["Z"]]};Bb.style=["fill"];const _B=Bb.bind(void 0);_B.style=["stroke","lineWidth"];const zb=(e,t,n)=>{const r=n*Math.sin(.3333333333333333*Math.PI);return[["M",e-n,t+r],["L",e,t-r],["L",e+n,t+r],["Z"]]};zb.style=["fill"];const SB=zb.bind(void 0);SB.style=["stroke","lineWidth"];const Vb=(e,t,n)=>{const r=n*Math.sin(.3333333333333333*Math.PI);return[["M",e-n,t-r],["L",e+n,t-r],["L",e,t+r],["Z"]]};Vb.style=["fill"];const OB=Vb.bind(void 0);OB.style=["stroke","lineWidth"];const Wb=(e,t,n)=>{const r=n/2*Math.sqrt(3);return[["M",e,t-n],["L",e+r,t-n/2],["L",e+r,t+n/2],["L",e,t+n],["L",e-r,t+n/2],["L",e-r,t-n/2],["Z"]]};Wb.style=["fill"];const EB=Wb.bind(void 0);EB.style=["stroke","lineWidth"];const Hb=(e,t,n)=>{const r=n-1.5;return[["M",e-n,t-r],["L",e+n,t+r],["L",e+n,t-r],["L",e-n,t+r],["Z"]]};Hb.style=["fill"];const kB=Hb.bind(void 0);kB.style=["stroke","lineWidth"];const AB=(e,t,n)=>[["M",e,t+n],["L",e,t-n]];AB.style=["stroke","lineWidth"];const $B=(e,t,n)=>[["M",e-n,t-n],["L",e+n,t+n],["M",e+n,t-n],["L",e-n,t+n]];$B.style=["stroke","lineWidth"];const TB=(e,t,n)=>[["M",e-n/2,t-n],["L",e+n/2,t-n],["M",e,t-n],["L",e,t+n],["M",e-n/2,t+n],["L",e+n/2,t+n]];TB.style=["stroke","lineWidth"];const PB=(e,t,n)=>[["M",e-n,t],["L",e+n,t],["M",e,t-n],["L",e,t+n]];PB.style=["stroke","lineWidth"];const MB=(e,t,n)=>[["M",e-n,t],["L",e+n,t]];MB.style=["stroke","lineWidth"];const Gb=(e,t,n)=>[["M",e-n,t],["L",e+n,t]];Gb.style=["stroke","lineWidth"];const NB=Gb.bind(void 0);NB.style=["stroke","lineWidth"];const IB=(e,t,n)=>[["M",e-n,t],["A",n/2,n/2,0,1,1,e,t],["A",n/2,n/2,0,1,0,e+n,t]];IB.style=["stroke","lineWidth"];const LB=(e,t,n)=>[["M",e-n-1,t-2.5],["L",e,t-2.5],["L",e,t+2.5],["L",e+n+1,t+2.5]];LB.style=["stroke","lineWidth"];const RB=(e,t,n)=>[["M",e-n-1,t+2.5],["L",e,t+2.5],["L",e,t-2.5],["L",e+n+1,t-2.5]];RB.style=["stroke","lineWidth"];const jB=(e,t,n)=>[["M",e-(n+1),t+2.5],["L",e-n/2,t+2.5],["L",e-n/2,t-2.5],["L",e+n/2,t-2.5],["L",e+n/2,t+2.5],["L",e+n+1,t+2.5]];jB.style=["stroke","lineWidth"];const DB=(e,t,n)=>[["M",e-5,t+2.5],["L",e-5,t],["L",e,t],["L",e,t-3],["L",e,t+3],["L",e+6.5,t+3]];DB.style=["stroke","lineWidth"];const qh=new Map([["bowtie",Hb],["cross",$B],["dash",NB],["diamond",Bb],["dot",Gb],["hexagon",Wb],["hollowBowtie",kB],["hollowDiamond",_B],["hollowHexagon",EB],["hollowPoint",bB],["hollowSquare",wB],["hollowTriangle",SB],["hollowTriangleDown",OB],["hv",LB],["hvh",jB],["hyphen",MB],["line",AB],["plus",PB],["point",Fb],["rect",CB],["smooth",IB],["square",cv],["tick",TB],["triangleDown",Vb],["triangle",zb],["vh",RB],["vhv",DB]]);function Nbe(e,t){var{d:n,fill:r,lineWidth:i,path:a,stroke:o,color:s}=t,l=Mbe(t,["d","fill","lineWidth","path","stroke","color"]);const c=qh.get(e)||qh.get("point");return(...u)=>new qi({style:Object.assign(Object.assign({},l),{d:c(...u),stroke:c.style.includes("stroke")?s||o:"",fill:c.style.includes("fill")?s||r:"",lineWidth:c.style.includes("lineWidth")?i||i||2:0})})}function Ibe(e,t){qh.set(e,t)}function Ub(e){return e.replace(/-(\w)/g,function(t,n){return n.toUpperCase()})}function Lbe(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}var Rbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function FB(e,t,n,r){if(t.length===1)return;const{size:i}=n;if(e==="fixed")return i;if(e==="normal"||pF(r)){const[[a,o],[s,l]]=t,c=Math.abs((s-a)/2),u=Math.abs((l-o)/2);return Math.max(0,(c+u)/2)}return i}const Kt=(e,t)=>{const{colorAttribute:n,symbol:r,mode:i="auto"}=e,a=Rbe(e,["colorAttribute","symbol","mode"]),o=qh.get(Ub(r))||qh.get("point"),{coordinate:s,document:l}=t;return(c,u,f)=>{const{lineWidth:d,color:h}=f,p=a.stroke?d||1:d,{color:g=h,transform:v,opacity:y}=u,[x,C]=jb(c),S=FB(i,c,u,s)||a.r||f.r;return ft(l.createElement("path",{})).call(it,f).style("fill","transparent").style("d",o(x,C,S)).style("lineWidth",p).style("transform",v).style("transformOrigin",`${x-S} ${C-S}`).style("stroke",g).style(Rb(e),y).style(n,g).call(it,a).node()}};Kt.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const BB=(e,t)=>Kt(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},e),t);BB.props=Object.assign({defaultMarker:"hollowBowtie"},Kt.props);const zB=(e,t)=>Kt(Object.assign({colorAttribute:"stroke",symbol:"diamond"},e),t);zB.props=Object.assign({defaultMarker:"hollowDiamond"},Kt.props);const VB=(e,t)=>Kt(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},e),t);VB.props=Object.assign({defaultMarker:"hollowHexagon"},Kt.props);const WB=(e,t)=>Kt(Object.assign({colorAttribute:"stroke",symbol:"point"},e),t);WB.props=Object.assign({defaultMarker:"hollowPoint"},Kt.props);const HB=(e,t)=>Kt(Object.assign({colorAttribute:"stroke",symbol:"square"},e),t);HB.props=Object.assign({defaultMarker:"hollowSquare"},Kt.props);const GB=(e,t)=>Kt(Object.assign({colorAttribute:"stroke",symbol:"triangle"},e),t);GB.props=Object.assign({defaultMarker:"hollowTriangle"},Kt.props);const UB=(e,t)=>Kt(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},e),t);UB.props=Object.assign({defaultMarker:"hollowTriangleDown"},Kt.props);var jbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const YB=(e,t)=>{const{colorAttribute:n,mode:r="auto"}=e,i=jbe(e,["colorAttribute","mode"]),{coordinate:a,document:o}=t;return(s,l,c)=>{const{lineWidth:u,color:f}=c,d=i.stroke?u||1:u,{color:h=f,transform:p,opacity:g}=l,[v,y]=jb(s),C=FB(r,s,l,a)||i.r||c.r;return ft(o.createElement("circle",{})).call(it,c).style("fill","transparent").style("cx",v).style("cy",y).style("r",C).style("lineWidth",d).style("transform",p).style("transformOrigin",`${v} ${y}`).style("stroke",h).style(Rb(e),g).style(n,h).call(it,i).node()}},Yb=(e,t)=>YB(Object.assign({colorAttribute:"fill"},e),t);Yb.props={defaultMarker:"circle",defaultEnterAnimation:"fadeIn",defaultExitAnimation:"fadeOut"};const XB=(e,t)=>YB(Object.assign({colorAttribute:"stroke"},e),t);XB.props=Object.assign({defaultMarker:"hollowPoint"},Yb.props);const qB=(e,t)=>Kt(Object.assign({colorAttribute:"fill",symbol:"bowtie"},e),t);qB.props=Object.assign({defaultMarker:"bowtie"},Kt.props);const ZB=(e,t)=>Kt(Object.assign({colorAttribute:"stroke",symbol:"cross"},e),t);ZB.props=Object.assign({defaultMarker:"cross"},Kt.props);const KB=(e,t)=>Kt(Object.assign({colorAttribute:"fill",symbol:"diamond"},e),t);KB.props=Object.assign({defaultMarker:"diamond"},Kt.props);const JB=(e,t)=>Kt(Object.assign({colorAttribute:"fill",symbol:"hexagon"},e),t);JB.props=Object.assign({defaultMarker:"hexagon"},Kt.props);const QB=(e,t)=>Kt(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},e),t);QB.props=Object.assign({defaultMarker:"hyphen"},Kt.props);const ez=(e,t)=>Kt(Object.assign({colorAttribute:"stroke",symbol:"line"},e),t);ez.props=Object.assign({defaultMarker:"line"},Kt.props);const tz=(e,t)=>Kt(Object.assign({colorAttribute:"stroke",symbol:"plus"},e),t);tz.props=Object.assign({defaultMarker:"plus"},Kt.props);const nz=(e,t)=>Kt(Object.assign({colorAttribute:"fill",symbol:"point"},e),t);nz.props=Object.assign({defaultMarker:"point"},Kt.props);const rz=(e,t)=>Kt(Object.assign({colorAttribute:"fill",symbol:"square"},e),t);rz.props=Object.assign({defaultMarker:"square"},Kt.props);const iz=(e,t)=>
52Kt(Object.assign({colorAttribute:"stroke",symbol:"tick"},e),t);iz.props=Object.assign({defaultMarker:"tick"},Kt.props);const az=(e,t)=>Kt(Object.assign({colorAttribute:"fill",symbol:"triangle"},e),t);az.props=Object.assign({defaultMarker:"triangle"},Kt.props);const oz=(e,t)=>Kt(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},e),t);oz.props=Object.assign({defaultMarker:"triangleDown"},Kt.props);var XA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Xb=(e,t)=>{const{arrow:n=!0,arrowSize:r="40%"}=e,i=XA(e,["arrow","arrowSize"]),{document:a}=t;return(o,s,l)=>{const{defaultColor:c}=l,u=XA(l,["defaultColor"]),{color:f=c,transform:d}=s,[h,p]=o,g=co();if(g.moveTo(...h),g.lineTo(...p),n){const[v,y]=Sbe(h,p,{arrowSize:r});g.moveTo(...v),g.lineTo(...p),g.lineTo(...y)}return ft(a.createElement("path",{})).call(it,u).style("d",g.toString()).style("stroke",f).style("transform",d).call(it,i).node()}};Xb.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};function sz(e,t){t(e),e.children&&e.children.forEach(function(n){n&&sz(n,t)})}function Vp(e){uv(e,!0)}function Vc(e){uv(e,!1)}function uv(e,t){var n=t?"visible":"hidden";sz(e,function(r){r.attr("visibility",n)})}var Dbe=function(e){lr(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,ot([],ee(n),!1))||this;return i.isMutationObserved=!0,i.addEventListener(Ft.INSERTED,function(){Vc(i)}),i}return t}(Yr);function lz(e){var t=e.appendChild(new Dbe({class:"offscreen"}));return Vc(t),t}function Fbe(e){for(var t=e;t;){if(t.className==="offscreen")return!0;t=t.parent}return!1}var qb=function(e){lr(t,e);function t(n){n===void 0&&(n={});var r=n.style,i=ei(n,["style"]);return e.call(this,Ne({style:Ne({text:"",fill:"black",fontFamily:"sans-serif",fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1,textAlign:"start",textBaseline:"middle"},r)},i))||this}return Object.defineProperty(t.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=lz(this)),this._offscreen},enumerable:!1,configurable:!0}),t.prototype.disconnectedCallback=function(){var n;(n=this._offscreen)===null||n===void 0||n.destroy()},t}(so);function gd(e){return e*Math.PI/180}function cz(e){return Number((e*180/Math.PI).toPrecision(5))}var tr=function(){function e(t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=0),this.x=0,this.y=0,this.width=0,this.height=0,this.x=t,this.y=n,this.width=r,this.height=i}return Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e.prototype.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}},e.prototype.isPointIn=function(t,n){return t>=this.left&&t<=this.right&&n>=this.top&&n<=this.bottom},e}();function Ta(e,t){return Hr(e)?e.apply(void 0,ot([],ee(t),!1)):e}var ho=function(e,t){var n=function(i){return"".concat(t,"-").concat(i)},r=Object.fromEntries(Object.entries(e).map(function(i){var a=ee(i,2),o=a[0],s=a[1],l=n(s);return[o,{name:l,class:".".concat(l),id:"#".concat(l),toString:function(){return l}}]}));return Object.assign(r,{prefix:n}),r},Bbe=5,uz=function(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=Bbe),Object.entries(t).forEach(function(i){var a=ee(i,2),o=a[0],s=a[1],l=e;Object.prototype.hasOwnProperty.call(t,o)&&(s?Pl(s)?(Pl(e[o])||(l[o]={}),n<r?uz(e[o],s,n+1,r):l[o]=t[o]):Dr(s)?(l[o]=[],l[o]=l[o].concat(s)):l[o]=s:l[o]=s)})},Nl=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r+=1)uz(e,t[r]);return e},zbe=function(e){return e!==void 0&&e!=null&&!Number.isNaN(e)},F5,Vbe=o3e(function(e,t){var n=t.fontSize,r=t.fontFamily,i=t.fontWeight,a=t.fontStyle,o=t.fontVariant;return F5||(F5=Ie.offscreenCanvasCreator.getOrCreateContext(void 0)),F5.font=[a,o,i,"".concat(n,"px"),r].join(" "),F5.measureText(e).width},function(e,t){return[e,Object.values(t||fz(e)).join()].join("")},4096),fz=function(e){var t=e.style.fontFamily||"sans-serif",n=e.style.fontWeight||"normal",r=e.style.fontStyle||"normal",i=e.style.fontVariant,a=e.style.fontSize;return a=typeof a=="object"?a.value:a,{fontSize:a,fontFamily:t,fontWeight:n,fontStyle:r,fontVariant:i}};
52function dz(e){return e.nodeName==="text"?e:e.nodeName==="g"&&e.children.length===1&&e.children[0].nodeName==="text"?e.children[0]:null}function hz(e,t){var n=dz(e);n&&n.attr(t)}function k7(e,t,n){n===void 0&&(n="..."),hz(e,{wordWrap:!0,wordWrapWidth:t,maxLines:1,textOverflow:n})}function Wbe(e,t,n,r){n===void 0&&(n=2),r===void 0&&(r="top"),hz(e,{wordWrap:!0,wordWrapWidth:t,maxLines:n,textBaseline:r})}function Nm(e){var t=e.canvas,n=e.touches,r=e.offsetX,i=e.offsetY;if(t){var a=t.x,o=t.y;return[a,o]}if(n){var s=n[0],l=s.clientX,c=s.clientY;return[l,c]}return r&&i?[r,i]:[0,0]}function rf(e){return typeof e=="function"?e():nr(e)||Jn(e)?new qb({style:{text:String(e)}}):e}function Hbe(e,t){return e.reduce(function(n,r){return(n[r[t]]=n[r[t]]||[]).push(r),n},{})}function da(e,t,n,r,i){return r===void 0&&(r=!0),i===void 0&&(i=function(a){a.node().removeChildren()}),e?n(t):(r&&i(t),null)}function di(e,t,n,r,i){return r===void 0&&(r=!0),i===void 0&&(i=!1),r&&e===t||i&&e===n?!0:e>t&&e<n}var Gbe=function(e,t){return function(n){return e*(1-n)+t*n}};function Ube(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0;return function(i){var a=new Array(r),o=new Array(n),s=0;for(s=0;s<r;++s)a[s]=Zb(e[s],t[s]);for(;s<n;++s)o[s]=t[s];for(s=0;s<r;++s)o[s]=a[s](i);return o}}function Ybe(e,t){e===void 0&&(e={}),t===void 0&&(t={});var n={},r={};return Object.entries(t).forEach(function(i){var a=ee(i,2),o=a[0],s=a[1];o in e?n[o]=Zb(e[o],s):r[o]=s}),function(i){return Object.entries(n).forEach(function(a){var o=ee(a,2),s=o[0],l=o[1];return r[s]=l(i)}),r}}function Zb(e,t){return typeof e=="number"&&typeof t=="number"?Gbe(e,t):Array.isArray(e)&&Array.isArray(t)?Ube(e,t):typeof e=="object"&&typeof t=="object"?Ybe(e,t):function(n){return e}}function Xbe(e,t,n,r){if(!r)return e.attr("__keyframe_data__",n),null;var i=r.duration,a=i===void 0?0:i,o=Zb(t,n),s=Math.ceil(+a/16),l=new Array(s).fill(0).map(function(c,u,f){return{__keyframe_data__:o(u/(f.length-1))}});return e.animate(l,Ne({fill:"both"},r))}function qA(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<e.length;a++){var o=e[a],s=o.x,l=o.y,c=o.width,u=o.height,f=ee([s+c,l+u],2),d=f[0],h=f[1];s<t&&(t=s),l<n&&(n=l),d>r&&(r=d),h>i&&(i=h)}return new tr(t,n,r-t,i-n)}var qbe=function(e,t,n){var r=e.width,i=e.height,a=n.flexDirection,o=a===void 0?"row":a;n.flexWrap;var s=n.justifyContent,l=s===void 0?"flex-start":s;n.alignContent;var c=n.alignItems,u=c===void 0?"flex-start":c,f=o==="row",d=o==="row"||o==="column",h=f?d?[1,0]:[-1,0]:d?[0,1]:[0,-1],p=ee([0,0],2),g=p[0],v=p[1],y=t.map(function(k){var $,T=k.width,M=k.height,R=ee([g,v],2),N=R[0],D=R[1];return $=ee([g+T*h[0],v+M*h[1]],2),g=$[0],v=$[1],new tr(N,D,T,M)}),x=qA(y),C={"flex-start":0,"flex-end":f?r-x.width:i-x.height,center:f?(r-x.width)/2:(i-x.height)/2},_=y.map(function(k){var $=k.x,T=k.y,M=tr.fromRect(k);return M.x=f?$+C[l]:$,M.y=f?T:T+C[l],M});qA(_);var S=function(k){var $=ee(f?["height",i]:["width",r],2),T=$[0],M=$[1];switch(u){case"flex-start":return 0;case"flex-end":return M-k[T];case"center":return M/2-k[T]/2;default:return 0}},O=_.map(function(k){var $=k.x,T=k.y,M=tr.fromRect(k);return M.x=f?$:$+S(M),M.y=f?T+S(M):T,M}),E=O.map(function(k){var $,T,M=tr.fromRect(k);return M.x+=($=e.x)!==null&&$!==void 0?$:0,M.y+=(T=e.y)!==null&&T!==void 0?T:0,M});return E},Zbe=function(e,t,n){return[]};const Kbe=function(e,t,n){if(t.length===0)return[];var r={flex:qbe,grid:Zbe},i=n.display in r?r[n.display]:null;return(i==null?void 0:i.call(null,e,t,n))||[]};function yl(e,t){return[e[0]*t,e[1]*t]}function z1(e,t){return[e[0]+t[0],e[1]+t[1]]}function X9(e,t){return[e[0]-t[0],e[1]-t[1]]}function xu(e,t){return[Math.min(e[0],t[0]),Math.min(e[1],t[1])]}function bu(e,t){return[Math.max(e[0],t[0]),Math.max(e[1],t[1])]}function Zh(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}function pz(e){if(e[0]===0&&e[1]===0)return[0,0];var t=Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2));return[e[0]/t,e[1]/t]}function Jbe(e,t){return t?[e[1],-e[0]]:[-e[1],e[0]]}function A7(e,t){return+e.toPrecision(t)}function ZA(e,t){var n={},r=Array.isArray(t)?t:[t];for(var i in e)r.includes(i)||(n[i]=e[i]);return n}function Qbe(e,t,n,r){var i,a=[],o=!!r,s,l,c=[1/0,1/0],u=[-1/0,-1/0],f,d,h;if(o){i=ee(r,2),c=i[0],u=i[1];for(var p=0,g=e.length;p<g;p+=1){var v=e[p];c=xu(c,v),u=bu(u,v)}}for(var p=0,y=e.length;p<y;p+=1){var v=e[p];if(p===0)h=v;else if(p===y-1)d=v,a.push(h),a.push(d);else{var x=[p?p-1:y-1,p-1][1];s=e[x],l=e[p+1];var C=[0,0];C=X9(l,s),C=yl(C,t);var _=Zh(v,s),S=Zh(v,l),O=_+S;O!==0&&(_/=O,S/=O);var E=yl(C,-_),k=yl(C,S);d=z1(v,E),f=z1(v,k),f=xu(f,bu(l,v)),f=bu(f,xu(l,v)),E=X9(f,v),E=yl(E,-_/S),d=z1(v,E),d=xu(d,bu(s,v)),d=bu(d,xu(s,v)),k=X9(v,d),k=yl(k,S/_),f=z1(v,k),o&&(d=bu(d,c),d=xu(d,u),f=bu(f,c),f=xu(f,u)),a.push(h),a.push(d),h=f}}return a}function eCe(e,t,n){n===void 0&&(n=[[0,0],[1,1]]);for(var r=!1,i=[],a=0,o=e.length;a<o;a+=2)i.push([e[a],e[a+1]]);for(var s=Qbe(i,.4,r,n),l=i.length,c=[],u,f,d,a=0;a<l-1;a+=1)u=s[a*2],f=s[a*2+1],d=i[a+1],c.push(["C",u[0],u[1],f[0],f[1],d[0],d[1]]);return c}var tCe=["$el","cx","cy","d","dx","dy","fill","fillOpacity","filter","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","height","img","increasedLineWi
52dthForHitTesting","innerHTML","isBillboard","billboardRotation","isSizeAttenuation","isClosed","isOverflowing","leading","letterSpacing","lineDash","lineHeight","lineWidth","markerEnd","markerEndOffset","markerMid","markerStart","markerStartOffset","maxLines","metrics","miterLimit","offsetX","offsetY","opacity","path","points","r","radius","rx","ry","shadowColor","src","stroke","strokeOpacity","text","textAlign","textBaseline","textDecorationColor","textDecorationLine","textDecorationStyle","textOverflow","textPath","textPathSide","textPathStartOffset","transform","transformOrigin","visibility","width","wordWrap","wordWrapWidth","x","x1","x2","y","y1","y2","z1","z2","zIndex"];function nCe(e){return tCe.includes(e)}function KA(e){var t={};for(var n in e)nCe(n)&&(t[n]=e[n]);return t}function rCe(e,t){if(e.length<=t)return e;for(var n=Math.floor(e.length/t),r=[],i=0;i<e.length;i+=n)r.push(e[i]);return r}function Kb(e,t,n){var r=e.getBBox(),i=r.width,a=r.height,o=t/Math.max(i,a);return e.style.transform="scale(".concat(o,")"),o}function iCe(e,t){var n=new Map;return e.forEach(function(r){var i=t(r);n.has(i)||n.set(i,[]),n.get(i).push(r)}),n}function aCe(e){throw new Error(e)}var oCe=function(){function e(i,a,o,s,l,c,u){i===void 0&&(i=null),a===void 0&&(a=null),o===void 0&&(o=null),s===void 0&&(s=null),l===void 0&&(l=[null,null,null,null,null]),c===void 0&&(c=[]),u===void 0&&(u=[]),t.add(this),this._elements=Array.from(i),this._data=a,this._parent=o,this._document=s,this._enter=l[0],this._update=l[1],this._exit=l[2],this._merge=l[3],this._split=l[4],this._transitions=c,this._facetElements=u}e.prototype.selectAll=function(i){var a=typeof i=="string"?this._parent.querySelectorAll(i):i;return new n(a,null,this._elements[0],this._document)},e.prototype.selectFacetAll=function(i){var a=typeof i=="string"?this._parent.querySelectorAll(i):i;return new n(this._elements,null,this._parent,this._document,void 0,void 0,a)},e.prototype.select=function(i){var a=typeof i=="string"?this._parent.querySelectorAll(i)[0]||null:i;return new n([a],null,a,this._document)},e.prototype.append=function(i){var a=this,o=typeof i=="function"?i:function(){return a.createElement(i)},s=[];if(this._data!==null){for(var l=0;l<this._data.length;l++){var c=this._data[l],u=ee(Array.isArray(c)?c:[c,null],2),f=u[0],d=u[1],h=o(f,l);h.__data__=f,d!==null&&(h.__fromElements__=d),this._parent.appendChild(h),s.push(h)}return new n(s,null,this._parent,this._document)}for(var l=0;l<this._elements.length;l++){var p=this._elements[l],f=p.__data__,h=o(f,l);p.appendChild(h),s.push(h)}return new n(s,null,s[0],this._document)},e.prototype.maybeAppend=function(i,a){var o=x9(this,t,"m",r).call(this,i[0]==="#"?i:"#".concat(i),a);return o.attr("id",i),o},e.prototype.maybeAppendByClassName=function(i,a){var o=i.toString(),s=x9(this,t,"m",r).call(this,o[0]==="."?o:".".concat(o),a);return s.attr("className",o),s},e.prototype.maybeAppendByName=function(i,a){var o=x9(this,t,"m",r).call(this,'[name="'.concat(i,'"]'),a);return o.attr("name",i),o},e.prototype.data=function(i,a,o){var s,l;a===void 0&&(a=function(T){return T}),o===void 0&&(o=function(){return null});for(var c=[],u=[],f=new Set(this._elements),d=[],h=new Set,p=new Map(this._elements.map(function(T,M){return[a(T.__data__,M),T]})),g=new Map(this._facetElements.map(function(T,M){return[a(T.__data__,M),T]})),v=iCe(this._elements,function(T){return o(T.__data__)}),y=0;y<i.length;y++){var x=i[y],C=a(x,y),_=o(x,y);if(p.has(C)){var S=p.get(C);S.__data__=x,S.__facet__=!1,u.push(S),f.delete(S),p.delete(C)}else if(g.has(C)){var S=g.get(C);S.__data__=x,S.__facet__=!0,u.push(S),g.delete(C)}else if(v.has(C)){var O=v.get(C);d.push([x,O]);try{for(var E=(s=void 0,Ap(O)),k=E.next();!k.done;k=E.next()){var S=k.value;f.delete(S)}}catch(T){s={error:T}}finally{try{k&&!k.done&&(l=E.return)&&l.call(E)}finally{if(s)throw s.error}}v.delete(C)}else if(p.has(_)){var S=p.get(_);S.__toData__?S.__toData__.push(x):S.__toData__=[x],h.add(S),f.delete(S)}else c.push(x)}var $=[new n([],c,this._parent,this._document),new n(u,null,this._parent,this._document),new n(f,null,this._parent,this._document),new n([],d,this._parent,this._document),new n(h,null,this._parent,this._document)];return new n(this._elements,null,this._parent,this._document,$)},e.prototype.merge=function(i){var a=ot(ot([],ee(this._elements),!1),ee(i._elements),!1),o=ot(ot([],ee(this._transitions),!1),ee(i._transitions),!1);return new n(a,null,this._parent,this._document,void 0,o)},e.prototype.createElement=function(i){if(this._document)return this._document.createElement(i,{});var a=n.registry[i];return a?new a:aCe("Unknown node type: ".concat(i))},e.prototype.join=function(i,a,o,s,l){i===void 0&&(i=function(p){return p}),a===void 0&&(a=function(p){return p}),o===void 0&&(o=function(p){return p.remove()}),s===void 0&&(s=function(p){return p}),l===void 0&&(l=function(p){return p.remove()});var c=i(this._enter),u=a(this._update),f=o(this._exit),d=s(this._merge),h=l(this._split);return u.merge(c).merge(f).merge(d).merge(h)},e.prototype.remove=function(){for(var i=function(s){var l=a._elements[s],c=a._transitions[s];c?c.then(function(){return l.remove()}):l.remove()},a=this,o=0;o<this._elements.length;o++)i(o);return new n([],null,this._parent,this._document,void 0,this._transitions)},e.prototype.each=function(i){for(var a=0;a<this._elements.length;a++){var o=this._elements[a],s=o.__data__;i.call(o,s,a)}return this},e.prototype.attr=function(i,a){var o=typeof a!="function"?function(){return a}:a;return this.each(function(s,l){a!==void 0&&(this[i]=o.call(this,s,l))})},e.prototype.style=function(i,a,o){o===void 0&&(o=!0);var s=typeof a!="function"||!o?function(){return a}:a;return this.each(function(l,c){a!==void 0&&(this.style[i]=s.call(this,l,c))})},e.prototype.styles=function(i,a){return i===void 0&&(i={}),a===void 0&&(a=!0),this.each(function(o,s){var l=this;
52Object.entries(i).forEach(function(c){var u=ee(c,2),f=u[0],d=u[1],h=typeof d!="function"||!a?function(){return d}:d;d!==void 0&&l.attr(f,h.call(l,o,s))})})},e.prototype.update=function(i,a){a===void 0&&(a=!0);var o=typeof i!="function"||!a?function(){return i}:i;return this.each(function(s,l){i&&this.update&&this.update(o.call(this,s,l))})},e.prototype.maybeUpdate=function(i,a){a===void 0&&(a=!0);var o=typeof i!="function"||!a?function(){return i}:i;return this.each(function(s,l){i&&this.update&&this.update(o.call(this,s,l))})},e.prototype.transition=function(i){this._transitions;var a=new Array(this._elements.length);return this.each(function(o,s){a[s]=i.call(this,o,s)}),this._transitions=Jme(a),this},e.prototype.on=function(i,a){return this.each(function(){this.addEventListener(i,a)}),this},e.prototype.call=function(i){for(var a=[],o=1;o<arguments.length;o++)a[o-1]=arguments[o];return i.call.apply(i,ot([this._parent,this],ee(a),!1)),this},e.prototype.node=function(){return this._elements[0]},e.prototype.nodes=function(){return this._elements},e.prototype.transitions=function(){return this._transitions.filter(function(i){return!!i})},e.prototype.parent=function(){return this._parent};var t,n,r;return n=e,t=new WeakSet,r=function(a,o){var s=this._elements[0],l=s.querySelector(a);if(l)return new n([l],null,this._parent,this._document);var c=typeof o=="string"?this.createElement(o):o();return s.appendChild(c),new n([c],null,this._parent,this._document)},e.registry={g:Yr,rect:zc,circle:Ns,path:qi,text:qb,ellipse:rv,image:iv,line:vf,polygon:yf,polyline:av,html:Bp},e}();function _t(e){return new oCe([e],null,e,e.ownerDocument)}function sCe(e,t,n){return e.querySelector(t)?_t(e).select(t):_t(e).append(n)}function vi(e){if(Jn(e))return[e,e,e,e];if(Dr(e)){var t=e.length;if(t===1)return[e[0],e[0],e[0],e[0]];if(t===2)return[e[0],e[1],e[0],e[1]];if(t===3)return[e[0],e[1],e[2],e[1]];if(t===4)return e}return[0,0,0,0]}function JA(e){var t=e.getLocalBounds(),n=t.min,r=t.max,i=ee([n,r],2),a=ee(i[0],2),o=a[0],s=a[1],l=ee(i[1],2),c=l[0],u=l[1];return{x:o,y:s,width:c-o,height:u-s,left:o,bottom:u,top:s,right:c}}function lCe(e,t){var n=ee(e,2),r=n[0],i=n[1],a=ee(t,2),o=a[0],s=a[1];return r!==o&&i===s}function cCe(e,t){var n,r,i=t.attributes;try{for(var a=Ap(Object.entries(i)),o=a.next();!o.done;o=a.next()){var s=ee(o.value,2),l=s[0],c=s[1];l!=="id"&&l!=="className"&&e.attr(l,c)}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}function Jb(e){return e.toString().charAt(0).toUpperCase()+e.toString().slice(1)}function uCe(e){return e.toString().charAt(0).toLowerCase()+e.toString().slice(1)}function fCe(e,t){return"".concat(t).concat(Jb(e))}function QA(e,t,n){var r;n===void 0&&(n=!0);var i=t||((r=e.match(/^([a-z][a-z0-9]+)/))===null||r===void 0?void 0:r[0])||"",a=e.replace(new RegExp("^(".concat(i,")")),"");return n?uCe(a):a}function dCe(e,t){Object.entries(t).forEach(function(n){var r=ee(n,2),i=r[0],a=r[1];ot([e],ee(e.querySelectorAll(i)),!1).filter(function(o){return o.matches(i)}).forEach(function(o){if(o){var s=o;s.style.cssText+=Object.entries(a).reduce(function(l,c){return"".concat(l).concat(c.join(":"),";")},"")}})})}var B5=function(e,t){if(!(e!=null&&e.startsWith(t)))return!1;var n=e[t.length];return n>="A"&&n<="Z"};function Wt(e,t,n){n===void 0&&(n=!1);var r={};return Object.entries(e).forEach(function(i){var a=ee(i,2),o=a[0],s=a[1];if(!(o==="className"||o==="class")){if(B5(o,"show")&&B5(QA(o,"show"),t)!==n)o===fCe(t,"show")?r[o]=s:r[o.replace(new RegExp(Jb(t)),"")]=s;else if(!B5(o,"show")&&B5(o,t)!==n){var l=QA(o,t);l==="filter"&&typeof s=="function"||(r[l]=s)}}}),r}function gs(e,t){return Object.entries(e).reduce(function(n,r){var i=ee(r,2),a=i[0],o=i[1];return a.startsWith("show")?n["show".concat(t).concat(a.slice(4))]=o:n["".concat(t).concat(Jb(a))]=o,n},{})}function Il(e,t){t===void 0&&(t=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],r={},i={};return Object.entries(e).forEach(function(a){var o=ee(a,2),s=o[0],l=o[1];t.includes(s)||(n.indexOf(s)!==-1?i[s]=l:r[s]=l)}),[r,i]}function hCe(e,t,n){var r=e.getBBox(),i=r.width,a=r.height,o=ee([t,n].map(function(c,u){var f;return c.includes("%")?parseFloat(((f=c.match(/[+-]?([0-9]*[.])?[0-9]+/))===null||f===void 0?void 0:f[0])||"0")/100*(u===0?i:a):c}),2),s=o[0],l=o[1];return[s,l]}function gz(e,t){if(t)try{var n=/translate\(([+-]*[\d]+[%]*),[ ]*([+-]*[\d]+[%]*)\)/g,r=t.replace(n,function(i,a,o){return"translate(".concat(hCe(e,a,o),")")});e.attr("transform",r)}catch{}}function pCe(e){var t;return((t=e[0])===null||t===void 0?void 0:t.map(function(n,r){return e.map(function(i){return i[r]})}))||[]}var e$=function(e,t){if(t==null){e.innerHTML="";return}e.replaceChildren?Array.isArray(t)?e.replaceChildren.apply(e,ot([],ee(t),!1)):e.replaceChildren(t):(e.innerHTML="",Array.isArray(t)?t.forEach(function(n){return e.appendChild(n)}):e.appendChild(t))};function gCe(){uv(this,this.attributes.visibility!=="hidden")}var ri=function(e){lr(t,e);function t(n,r){r===void 0&&(r={});var i=e.call(this,Nl({},{style:r},n))||this;return i.initialized=!1,i._defaultOptions=r,i}return Object.defineProperty(t.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=lz(this)),this._offscreen}
52,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultOptions",{get:function(){return this._defaultOptions},enumerable:!1,configurable:!0}),t.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this),this.initialized=!0},t.prototype.disconnectedCallback=function(){var n;(n=this._offscreen)===null||n===void 0||n.destroy()},t.prototype.attributeChangedCallback=function(n){n==="visibility"&&gCe.call(this)},t.prototype.update=function(n,r){var i;return this.attr(Nl({},this.attributes,n||{})),(i=this.render)===null||i===void 0?void 0:i.call(this,this.attributes,this,r)},t.prototype.clear=function(){this.removeChildren()},t.prototype.bindEvents=function(n,r){},t.prototype.getSubShapeStyle=function(n){n.x,n.y,n.transform,n.transformOrigin,n.class,n.className,n.zIndex;var r=ei(n,["x","y","transform","transformOrigin","class","className","zIndex"]);return r},t}(Fp),mz=function(e,t,n){return[["M",e-n,t],["A",n,n,0,1,0,e+n,t],["A",n,n,0,1,0,e-n,t],["Z"]]},mCe=mz,vCe=function(e,t,n){return[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]]},yCe=function(e,t,n){return[["M",e-n,t],["L",e,t-n],["L",e+n,t],["L",e,t+n],["Z"]]},xCe=function(e,t,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",e-n,t+r],["L",e,t-r],["L",e+n,t+r],["Z"]]},bCe=function(e,t,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",e-n,t-r],["L",e+n,t-r],["L",e,t+r],["Z"]]},CCe=function(e,t,n){var r=n/2*Math.sqrt(3);return[["M",e,t-n],["L",e+r,t-n/2],["L",e+r,t+n/2],["L",e,t+n],["L",e-r,t+n/2],["L",e-r,t-n/2],["Z"]]},wCe=function(e,t,n){var r=n-1.5;return[["M",e-n,t-r],["L",e+n,t+r],["L",e+n,t-r],["L",e-n,t+r],["Z"]]},vz=function(e,t,n){return[["M",e,t+n],["L",e,t-n]]},_Ce=function(e,t,n){return[["M",e-n,t-n],["L",e+n,t+n],["M",e+n,t-n],["L",e-n,t+n]]},SCe=function(e,t,n){return[["M",e-n/2,t-n],["L",e+n/2,t-n],["M",e,t-n],["L",e,t+n],["M",e-n/2,t+n],["L",e+n/2,t+n]]},OCe=function(e,t,n){return[["M",e-n,t],["L",e+n,t],["M",e,t-n],["L",e,t+n]]},ECe=function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},yz=function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},kCe=yz,ACe=function(e,t,n){return[["M",e-n,t],["A",n/2,n/2,0,1,1,e,t],["A",n/2,n/2,0,1,0,e+n,t]]},$Ce=function(e,t,n){return[["M",e-n-1,t-2.5],["L",e,t-2.5],["L",e,t+2.5],["L",e+n+1,t+2.5]]},TCe=function(e,t,n){return[["M",e-n-1,t+2.5],["L",e,t+2.5],["L",e,t-2.5],["L",e+n+1,t-2.5]]},PCe=function(e,t,n){return[["M",e-(n+1),t+2.5],["L",e-n/2,t+2.5],["L",e-n/2,t-2.5],["L",e+n/2,t-2.5],["L",e+n/2,t+2.5],["L",e+n+1,t+2.5]]};function MCe(e,t){return[["M",e-5,t+2.5],["L",e-5,t],["L",e,t],["L",e,t-3],["L",e,t+3],["L",e+6.5,t+3]]}var NCe=function(e,t,n){return[["M",e-n,t-n],["L",e+n,t],["L",e-n,t+n],["Z"]]};function ICe(e){var t="default";if(Ep(e)&&e instanceof Image)t="image";else if(Hr(e))t="symbol";else if(nr(e)){var n=new RegExp("data:(image|text)");e.match(n)?t="base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(e)?t="url":t="symbol"}return t}function LCe(e){var t=ICe(e);return["base64","url","image"].includes(t)?"image":e&&t==="symbol"?"path":null}var gn=function(e){lr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r){var i=n.x,a=i===void 0?0:i,o=n.y,s=o===void 0?0:o,l=this.getSubShapeStyle(n),c=l.symbol,u=l.size,f=u===void 0?16:u,d=ei(l,["symbol","size"]),h=LCe(c);da(!!h,_t(r),function(p){p.maybeAppendByClassName("marker",h).attr("className","marker ".concat(h,"-marker")).call(function(g){if(h==="image"){var v=f*2;g.styles({img:c,width:v,height:v,x:a-f,y:s-f})}else{var v=f/2,y=Hr(c)?c:t.getSymbol(c);g.styles(Ne({d:y==null?void 0:y(a,s,v)},d))}})})},t.MARKER_SYMBOL_MAP=new Map,t.registerSymbol=function(n,r){t.MARKER_SYMBOL_MAP.set(n,r)},t.getSymbol=function(n){return t.MARKER_SYMBOL_MAP.get(n)},t.getSymbols=function(){return Array.from(t.MARKER_SYMBOL_MAP.keys())},t}(ri);gn.registerSymbol("cross",_Ce);gn.registerSymbol("hyphen",ECe);gn.registerSymbol("line",vz);gn.registerSymbol("plus",OCe);gn.registerSymbol("tick",SCe);gn.registerSymbol("circle",mz);gn.registerSymbol("point",mCe);gn.registerSymbol("bowtie",wCe);gn.registerSymbol("hexagon",CCe);gn.registerSymbol("square",vCe);gn.registerSymbol("diamond",yCe);gn.registerSymbol("triangle",xCe);gn.registerSymbol("triangle-down",bCe);gn.registerSymbol("line",vz);
52gn.registerSymbol("dot",yz);gn.registerSymbol("dash",kCe);gn.registerSymbol("smooth",ACe);gn.registerSymbol("hv",$Ce);gn.registerSymbol("vh",TCe);gn.registerSymbol("hvh",PCe);gn.registerSymbol("vhv",MCe);var RCe=function(e){lr(t,e);function t(n){var r=this,i=n.style,a=ei(n,["style"]);return r=e.call(this,_e({},{type:"column"},Ne({style:i},a)))||this,r.columnsGroup=new Yr({name:"columns"}),r.appendChild(r.columnsGroup),r.render(),r}return t.prototype.render=function(){var n=this.attributes,r=n.columns,i=n.x,a=n.y;this.columnsGroup.style.transform="translate(".concat(i,", ").concat(a,")"),_t(this.columnsGroup).selectAll(".column").data(r.flat()).join(function(o){return o.append("rect").attr("className","column").each(function(s){this.attr(s)})},function(o){return o.each(function(s){this.attr(s)})},function(o){return o.remove()})},t.prototype.update=function(n){this.attr(Nl({},this.attributes,n)),this.render()},t.prototype.clear=function(){this.removeChildren()},t}(Yn),jCe=function(e){lr(t,e);function t(n){var r=this,i=n.style,a=ei(n,["style"]);return r=e.call(this,_e({},{type:"lines"},Ne({style:i},a)))||this,r.linesGroup=r.appendChild(new Yr),r.areasGroup=r.appendChild(new Yr),r.render(),r}return t.prototype.render=function(){var n=this.attributes,r=n.lines,i=n.areas,a=n.x,o=n.y;this.style.transform="translate(".concat(a,", ").concat(o,")"),r&&this.renderLines(r),i&&this.renderAreas(i)},t.prototype.clear=function(){this.linesGroup.removeChildren(),this.areasGroup.removeChildren()},t.prototype.update=function(n){this.attr(Nl({},this.attributes,n)),this.render()},t.prototype.renderLines=function(n){_t(this.linesGroup).selectAll(".line").data(n).join(function(r){return r.append("path").attr("className","line").each(function(i){this.attr(i)})},function(r){return r.each(function(i){this.attr(i)})},function(r){return r.remove()})},t.prototype.renderAreas=function(n){_t(this.linesGroup).selectAll(".area").data(n).join(function(r){return r.append("path").attr("className","area").each(function(i){this.attr(i)})},function(r){return r.each(function(i){this.style(i)})},function(r){return r.remove()})},t}(Yn);function DCe(e,t){var n,r=t.x,i=t.y,a=ee(i.getOptions().range||[0,0],2),o=a[0],s=a[1];return s>o&&(n=ee([o,s],2),s=n[0],o=n[1]),e.map(function(l){var c=l.map(function(u,f){return[r.map(f),yr(i.map(u),s,o)]});return c})}function Kh(e,t){t===void 0&&(t=!1);var n=t?e.length-1:0,r=e.map(function(i,a){return ot([a===n?"M":"L"],ee(i),!1)});return t?r.reverse():r}function Im(e,t){if(t===void 0&&(t=!1),e.length<=2)return Kh(e);for(var n=[],r=e.length,i=0;i<r;i+=1){var a=t?e[r-i-1]:e[i];lm(a,n.slice(-2))||n.push.apply(n,ot([],ee(a),!1))}var o=eCe(n);return t?o.unshift(ot(["M"],ee(e[r-1]),!1)):o.unshift(ot(["M"],ee(e[0]),!1)),o}function Qb(e,t,n){var r=Ih(e);return r.push(["L",t,n],["L",0,n],["Z"]),r}function FCe(e,t,n,r){return e.map(function(i){return Qb(t?Im(i):Kh(i),n,r)})}function BCe(e,t,n){for(var r=[],i=e.length-1;i>=0;i-=1){var a=e[i],o=Kh(a),s=void 0;if(i===0)s=Qb(o,t,n);else{var l=e[i-1],c=Kh(l,!0);c[0][0]="L",s=ot(ot(ot([],ee(o),!1),ee(c),!1),[["Z"]],!1)}r.push(s)}return r}function zCe(e,t,n){for(var r=[],i=e.length-1;i>=0;i-=1){var a=e[i],o=Im(a),s=void 0;if(i===0)s=Qb(o,t,n);else{var l=e[i-1],c=Im(l,!0),u=a[0];c[0][0]="L",s=ot(ot(ot([],ee(o),!1),ee(c),!1),[ot(["M"],ee(u),!1),["Z"]],!1)}r.push(s)}return r}function t$(e){return e.length===0?[0,0]:[sm(t3e(e,function(t){return sm(t)||0})),om(e3e(e,function(t){return om(t)||0}))]}function n$(e){for(var t=Ih(e),n=t[0].length,r=ee([Array(n).fill(0),Array(n).fill(0)],2),i=r[0],a=r[1],o=0;o<t.length;o+=1)for(var s=t[o],l=0;l<n;l+=1)s[l]>=0?(s[l]+=i[l],i[l]=s[l]):(s[l]+=a[l],a[l]=s[l]);return t}var VCe=function(e){lr(t,e);function t(n){return e.call(this,n,{type:"line",x:0,y:0,width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return Object.defineProperty(t.prototype,"rawData",{get:function(){var n=this.attributes.data;if(!n||(n==null?void 0:n.length)===0)return[[]];var r=Ih(n);return Jn(r[0])?[r]:r}
52,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.attributes.isStack?n$(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"baseline",{get:function(){var n=this.scales.y,r=ee(n.getOptions().domain||[0,0],2),i=r[0],a=r[1];return a<0?n.map(a):n.map(i<0?0:i)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerShape",{get:function(){var n=this.attributes,r=n.width,i=n.height;return{width:r,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linesStyle",{get:function(){var n=this,r=this.attributes,i=r.type,a=r.isStack,o=r.smooth;if(i!=="line")throw new Error("linesStyle can only be used in line type");var s=Wt(this.attributes,"area"),l=Wt(this.attributes,"line"),c=this.containerShape.width,u=this.data;if(u[0].length===0)return{lines:[],areas:[]};var f=this.scales,d=f.x,h=f.y,p=DCe(u,{x:d,y:h}),g=[];if(s){var v=this.baseline;a?g=o?zCe(p,c,v):BCe(p,c,v):g=FCe(p,o,c,v)}return{lines:p.map(function(y,x){return Ne({stroke:n.getColor(x),d:o?Im(y):Kh(y)},l)}),areas:g.map(function(y,x){return Ne({d:y,fill:n.getColor(x)},s)})}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsStyle",{get:function(){var n=this,r=Wt(this.attributes,"column"),i=this.attributes,a=i.isStack,o=i.type,s=i.scale;if(o!=="column")throw new Error("columnsStyle can only be used in column type");var l=this.containerShape.height,c=this.rawData;if(!c)return{columns:[]};a&&(c=n$(c));var u=this.createScales(c),f=u.x,d=u.y,h=ee(t$(c),2),p=h[0],g=h[1],v=new Gn({domain:[0,g-(p>0?0:p)],range:[0,l*s]}),y=f.getBandWidth(),x=this.rawData;return{columns:c.map(function(C,_){return C.map(function(S,O){var E=y/c.length,k=function(){return{x:f.map(O)+E*_,y:S>=0?d.map(S):d.map(0),width:E,height:v.map(Math.abs(S))}},$=function(){return{x:f.map(O),y:d.map(S),width:y,height:v.map(x[_][O])}};return Ne(Ne({fill:n.getColor(_)},r),a?$():k())})})}},enumerable:!1,configurable:!0}),t.prototype.render=function(n,r){sCe(r,".container","rect").attr("className","container").node();var i=n.type,a=n.x,o=n.y,s="spark".concat(i),l=Ne({x:a,y:o},i==="line"?this.linesStyle:this.columnsStyle);_t(r).selectAll(".spark").data([i]).join(function(c){return c.append(function(u){return u==="line"?new jCe({className:s,style:l}):new RCe({className:s,style:l})}).attr("className","spark ".concat(s))},function(c){return c.update(l)},function(c){return c.remove()})},t.prototype.getColor=function(n){var r=this.attributes.color;return Dr(r)?r[n%r.length]:Hr(r)?r.call(null,n):r},t.prototype.createScales=function(n){var r,i,a=this.attributes,o=a.type,s=a.scale,l=a.range,c=l===void 0?[]:l,u=a.spacing,f=this.containerShape,d=f.width,h=f.height,p=ee(t$(n),2),g=p[0],v=p[1],y=new Gn({domain:[(r=c[0])!==null&&r!==void 0?r:g,(i=c[1])!==null&&i!==void 0?i:v],range:[h,h*(1-s)]});return o==="line"?{type:o,x:new Gn({domain:[0,n[0].length-1],range:[0,d]}),y}:{type:o,x:new sd({domain:n[0].map(function(x,C){return C}),range:[0,d],paddingInner:u,paddingOuter:u/2,align:.5}),y}},t.tag="sparkline",t}(ri);function WCe(e){return typeof e=="boolean"?!1:"enter"in e&&"update"in e&&"exit"in e}function r$(e){if(!e)return{enter:!1,update:!1,exit:!1};var t=["enter","update","exit"],n=Object.fromEntries(Object.entries(e).filter(function(r){var i=ee(r,1),a=i[0];return!t.includes(a)}));return Object.fromEntries(t.map(function(r){return WCe(e)?e[r]===!1?[r,!1]:[r,Ne(Ne({},e[r]),n)]:[r,n]}))}function Nd(e,t){e?e.finished.then(t):t()}function HCe(e,t){e.length===0?t():Promise.all(e.map(function(n){return n==null?void 0:n.finished})).then(t)}function xz(e,t){"update"in e?e.update(t):e.attr(t)}function bz(e,t,n){if(t.length===0)return null;if(!n){var r=t.slice(-1)[0];return xz(e,{style:r}),null}return e.animate(t,n)}function GCe(e,t){return!(e.nodeName!=="text"||t.nodeName!=="text"||e.attributes.text!==t.attributes.text)}function UCe(e,t,n,r){if(r===void 0&&(r="destroy"),GCe(e,t))return e.remove(),[null];var i=function(){r==="destroy"?e.destroy():r==="hide"&&Vc(e),t.isVisible()&&Vp(t)};if(!n)return i(),[null];var a=n.duration,o=a===void 0?0:a,s=n.delay,l=s===void 0?0:s,c=Math.ceil(+o/2),u=+o/4,f=ee(e.getGeometryBounds().center,2),d=f[0],h=f[1],p=ee(t.getGeometryBounds().center,2),g=p[0],v=p[1],y=ee([(d+g)/2-d,(h+v)/2-h],2),x=y[0],C=y[1],_=e.style.opacity,S=_===void 0?1:_,O=t.style.opacity,E=O===void 0?1:O,k=e.style.transform||"",$=t.style.transform||"",T=e.animate([{opacity:S,transform:"translate(0, 0) ".concat(k)},{opacity:0,transform:"translate(".concat(x,", ").concat(C,") ").concat(k)}],Ne(Ne({fill:"both"},n),{duration:l+c+u})),M=t.animate([{opacity:0,transform:"translate(".concat(-x,", ").concat(-C,") ").concat($),offset:.01},{opacity:E,transform:"translate(0, 0) ".concat($)}],Ne(Ne({fill:"both"},n),{duration:c+u,delay:l+c-u}));return Nd(M,i),[T,M]}function Vo(e,t,n){var r={},i={};return Object.entries(t).forEach(function(a){var o=ee(a,2),s=o[0],l=o[1];if(!pt(l)){var c=e.style[s]||e.parsedStyle[s]||0;c!==l&&(r[s]=c,i[s]=l)}}),n?bz(e,[r,i],Ne({fill:"both"},n)):(xz(e,i),null)}function fv(e,t){return e.style.opacity||(e.style.opacity=1),Vo(e,{opacity:0}
52,t)}var Cz={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},wz={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},_z={x:0,y:0,orientation:"horizontal",showLabel:!0,type:"start"},ss=ho({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),gc=ho({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),YCe=function(e){lr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r){var i=n.x,a=n.y,o=n.size,s=o===void 0?10:o,l=n.radius,c=l===void 0?s/4:l,u=n.orientation,f=ei(n,["x","y","size","radius","orientation"]),d=s,h=d*2.4,p=_t(r).maybeAppendByClassName(gc.iconRect,"rect").styles(Ne(Ne({},f),{width:d,height:h,radius:c,x:i-d/2,y:a-h/2,transformOrigin:"center"})),g=i+1/3*d-d/2,v=i+2/3*d-d/2,y=a+1/4*h-h/2,x=a+3/4*h-h/2;p.maybeAppendByClassName("".concat(gc.iconLine,"-1"),"line").styles(Ne({x1:g,x2:g,y1:y,y2:x},f)),p.maybeAppendByClassName("".concat(gc.iconLine,"-2"),"line").styles(Ne({x1:v,x2:v,y1:y,y2:x},f)),u==="vertical"&&(p.node().style.transform="rotate(90)")},t}(ri),Sz=function(e){lr(t,e);function t(n){return e.call(this,n,_z)||this}return t.prototype.renderLabel=function(n){var r=this,i=this.attributes,a=i.x,o=i.y,s=i.showLabel,l=Wt(this.attributes,"label"),c=l.x,u=c===void 0?0:c,f=l.y,d=f===void 0?0:f,h=l.transform,p=l.transformOrigin,g=ei(l,["x","y","transform","transformOrigin"]),v=ee(Il(g,[]),2),y=v[0],x=v[1],C=_t(n).maybeAppendByClassName(gc.labelGroup,"g").styles(x),_=Ne(Ne({},wz),y),S=_.text,O=ei(_,["text"]);da(!!s,C,function(E){r.label=E.maybeAppendByClassName(gc.label,"text").styles(Ne(Ne({},O),{x:a+u,y:o+d,transform:h,transformOrigin:p,text:"".concat(S)})),r.label.on("mousedown",function(k){k.stopPropagation()}),r.label.on("touchstart",function(k){k.stopPropagation()})})},t.prototype.renderIcon=function(n){var r=this.attributes,i=r.x,a=r.y,o=r.orientation,s=r.type,l=Ne(Ne({x:i,y:a,orientation:o},Cz),Wt(this.attributes,"icon")),c=this.attributes.iconShape,u=c===void 0?function(){return new YCe({style:l})}:c,f=_t(n).maybeAppendByClassName(gc.iconGroup,"g");f.selectAll(gc.icon.class).data([u]).join(function(d){return d.append(typeof u=="string"?u:function(){return u(s)}).attr("className",gc.icon.name)},function(d){return d.update(l)},function(d){return d.remove()})},t.prototype.render=function(n,r){this.renderIcon(r),this.renderLabel(r)},t}(ri),Oz=function(e){lr(t,e);function t(n){var r=e.call(this,n,Ne(Ne(Ne({x:0,y:0,animate:{duration:100,fill:"both"},brushable:!0,formatter:function(i){return i.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},gs(_z,"handle")),gs(Cz,"handleIcon")),gs(wz,"handleLabel")))||this;return r.range=[0,1],r.onDragStart=function(i){return function(a){a.stopPropagation(),r.target=i,r.prevPos=r.getOrientVal(Nm(a));var o=r.availableSpace,s=o.x,l=o.y,c=r.getBBox(),u=c.x,f=c.y;r.selectionStartPos=r.getRatio(r.prevPos-r.getOrientVal([s,l])-r.getOrientVal([+u,+f])),r.selectionWidth=0,document.addEventListener("pointermove",r.onDragging),document.addEventListener("pointerup",r.onDragEnd)}},r.onDragging=function(i){var a=r.attributes,o=a.slidable,s=a.brushable,l=a.type;i.stopPropagation();var c=r.getOrientVal(Nm(i)),u=c-r.prevPos;if(u){var f=r.getRatio(u);switch(r.target){case"start":o&&r.setValuesOffset(f);break;case"end":o&&r.setValuesOffset(0,f);break;case"selection":o&&r.setValuesOffset(f,f);break;case"track":if(!s)return;r.selectionWidth+=f,l==="range"?r.innerSetValues([r.selectionStartPos,r.selectionStartPos+r.selectionWidth].sort(),!0):r.innerSetValues([0,r.selectionStartPos+r.selectionWidth],!0);break}r.prevPos=c}},r.onDragEnd=function(){document.removeEventListener("pointermove",r.onDragging),document.removeEventListener("pointermove",r.onDragging),document.removeEventListener("pointerup",r.onDragEnd),r.target="",r.updateHandlesPosition(!1)},r.onValueChange=function(i){var a=r.attributes,o=a.onChange,s=a.type,l=s==="range"?i:i[1],c=s==="range"?r.getValues():r.getValues()[1],u=new Mn("valuechange",{detail:{oldValue:l,value:c}});r.dispatchEvent(u),o==null||o(c)},r.selectionStartPos=0,r.selectionWidth=0,r.prevPos=0,r.target="",r}return Object.defineProperty(t.prototype,"values",{get:function(){return this.attributes.values},set:function(n){this.attributes.values=this.clampValues(n)}
52,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sparklineStyle",{get:function(){var n=this.attributes.orientation;if(n!=="horizontal")return null;var r=Wt(this.attributes,"sparkline");return Ne(Ne({zIndex:0},this.availableSpace),r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shape",{get:function(){var n=this.attributes,r=n.trackLength,i=n.trackSize,a=ee(this.getOrientVal([[r,i],[i,r]]),2),o=a[0],s=a[1];return{width:o,height:s}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"availableSpace",{get:function(){var n=this.attributes;n.x,n.y;var r=n.padding,i=ee(vi(r),4),a=i[0],o=i[1],s=i[2],l=i[3],c=this.shape,u=c.width,f=c.height;return{x:l,y:a,width:u-(l+o),height:f-(a+s)}},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.values},t.prototype.setValues=function(n,r){n===void 0&&(n=[0,0]),r===void 0&&(r=!1),this.attributes.values=n;var i=r===!1?!1:this.attributes.animate;this.updateSelectionArea(i),this.updateHandlesPosition(i)},t.prototype.updateSelectionArea=function(n){var r=this.calcSelectionArea();this.foregroundGroup.selectAll(ss.selection.class).each(function(i,a){Vo(this,r[a],n)})},t.prototype.updateHandlesPosition=function(n){this.attributes.showHandle&&(this.startHandle&&Vo(this.startHandle,this.getHandleStyle("start"),n),this.endHandle&&Vo(this.endHandle,this.getHandleStyle("end"),n))},t.prototype.innerSetValues=function(n,r){n===void 0&&(n=[0,0]),r===void 0&&(r=!1);var i=this.values,a=this.clampValues(n);this.attributes.values=a,this.setValues(a),r&&this.onValueChange(i)},t.prototype.renderTrack=function(n){var r=this.attributes,i=r.x,a=r.y,o=Wt(this.attributes,"track");this.trackShape=_t(n).maybeAppendByClassName(ss.track,"rect").styles(Ne(Ne({x:i,y:a},this.shape),o))},t.prototype.renderBrushArea=function(n){var r=this.attributes,i=r.x,a=r.y,o=r.brushable;this.brushArea=_t(n).maybeAppendByClassName(ss.brushArea,"rect").styles(Ne({x:i,y:a,fill:"transparent",cursor:o?"crosshair":"default"},this.shape))},t.prototype.renderSparkline=function(n){var r=this,i=this.attributes,a=i.x,o=i.y,s=i.orientation,l=_t(n).maybeAppendByClassName(ss.sparklineGroup,"g");da(s==="horizontal",l,function(c){var u=Ne(Ne({},r.sparklineStyle),{x:a,y:o});c.maybeAppendByClassName(ss.sparkline,function(){return new VCe({style:u})}).update(u)})},t.prototype.renderHandles=function(){var n=this,r,i=this.attributes,a=i.showHandle,o=i.type,s=o==="range"?["start","end"]:["end"],l=a?s:[],c=this;(r=this.foregroundGroup)===null||r===void 0||r.selectAll(ss.handle.class).data(l.map(function(u){return{type:u}}),function(u){return u.type}).join(function(u){return u.append(function(f){var d=f.type;return new Sz({style:n.getHandleStyle(d)})}).each(function(f){var d=f.type;this.attr("class","".concat(ss.handle.name," ").concat(d,"-handle"));var h="".concat(d,"Handle");c[h]=this,this.addEventListener("pointerdown",c.onDragStart(d))})},function(u){return u.each(function(f){var d=f.type;this.update(c.getHandleStyle(d))})},function(u){return u.each(function(f){var d=f.type,h="".concat(d,"Handle");c[h]=void 0}).remove()})},t.prototype.renderSelection=function(n){var r=this.attributes,i=r.x,a=r.y,o=r.type,s=r.selectionType;this.foregroundGroup=_t(n).maybeAppendByClassName(ss.foreground,"g");var l=Wt(this.attributes,"selection"),c=function(f){return f.style("visibility",function(d){return d.show?"visible":"hidden"}).style("cursor",function(d){return s==="select"?"grab":s==="invert"?"crosshair":"default"}).styles(Ne(Ne({},l),{transform:"translate(".concat(i,", ").concat(a,")")}))},u=this;this.foregroundGroup.selectAll(ss.selection.class).data(o==="value"?[]:this.calcSelectionArea().map(function(f,d){return{style:Ne({},f),index:d,show:s==="select"?d===1:d!==1}}),function(f){return f.index}).join(function(f){return f.append("rect").attr("className",ss.selection.name).call(c).each(function(d,h){var p=this;h===1?(u.selectionShape=_t(this),this.on("pointerdown",function(g){p.attr("cursor","grabbing"),u.onDragStart("selection")(g)}),u.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),u.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),u.dispatchCustomEvent(this,"click","
52selectionClick"),this.addEventListener("pointerdown",function(){p.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){p.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){p.attr("cursor","pointer")})):this.on("pointerdown",u.onDragStart("track"))})},function(f){return f.call(c)},function(f){return f.remove()}),this.updateSelectionArea(!1),this.renderHandles()},t.prototype.render=function(n,r){this.renderTrack(r),this.renderSparkline(r),this.renderBrushArea(r),this.renderSelection(r)},t.prototype.clampValues=function(n,r){var i;r===void 0&&(r=4);var a=ee(this.range,2),o=a[0],s=a[1],l=ee(this.getValues().map(function(v){return A7(v,r)}),2),c=l[0],u=l[1],f=Array.isArray(n)?n:[c,n??u],d=ee((f||[c,u]).map(function(v){return A7(v,r)}),2),h=d[0],p=d[1];if(this.attributes.type==="value")return[0,yr(p,o,s)];h>p&&(i=ee([p,h],2),h=i[0],p=i[1]);var g=p-h;return g>s-o?[o,s]:h<o?c===o&&u===p?[o,p]:[o,g+o]:p>s?u===s&&c===h?[h,s]:[s-g,s]:[h,p]},t.prototype.calcSelectionArea=function(n){var r=ee(this.clampValues(n),2),i=r[0],a=r[1],o=this.availableSpace,s=o.x,l=o.y,c=o.width,u=o.height;return this.getOrientVal([[{y:l,height:u,x:s,width:i*c},{y:l,height:u,x:i*c+s,width:(a-i)*c},{y:l,height:u,x:a*c,width:(1-a)*c}],[{x:s,width:c,y:l,height:i*u},{x:s,width:c,y:i*u+l,height:(a-i)*u},{x:s,width:c,y:a*u,height:(1-a)*u}]])},t.prototype.calcHandlePosition=function(n){var r=this.attributes.handleIconOffset,i=this.availableSpace,a=i.x,o=i.y,s=i.width,l=i.height,c=ee(this.clampValues(),2),u=c[0],f=c[1],d=n==="start"?-r:r,h=(n==="start"?u:f)*this.getOrientVal([s,l])+d;return{x:a+this.getOrientVal([h,s/2]),y:o+this.getOrientVal([l/2,h])}},t.prototype.inferTextStyle=function(n){var r=this.attributes.orientation;return r==="horizontal"?{}:n==="start"?{transformOrigin:"left center",transform:"rotate(90)",textAlign:"start"}:n==="end"?{transformOrigin:"right center",transform:"rotate(90)",textAlign:"end"}:{}},t.prototype.calcHandleText=function(n){var r,i=this.attributes,a=i.type,o=i.orientation,s=i.formatter,l=i.autoFitLabel,c=Wt(this.attributes,"handle"),u=Wt(c,"label"),f=c.spacing,d=this.getHandleSize(),h=this.clampValues(),p=n==="start"?h[0]:h[1],g=s(p),v=new qb({style:Ne(Ne(Ne({},u),this.inferTextStyle(n)),{text:g})}),y=v.getBBox(),x=y.width,C=y.height;if(v.destroy(),!l){if(a==="value")return{text:g,x:0,y:-C-f};var _=f+d+(o==="horizontal"?x/2:0);return r={text:g},r[o==="horizontal"?"x":"y"]=n==="start"?-_:_,r}var S=0,O=0,E=this.availableSpace,k=E.width,$=E.height,T=this.calcSelectionArea()[1],M=T.x,R=T.y,N=T.width,D=T.height,F=f+d;if(o==="horizontal"){var V=F+x/2;if(n==="start"){var z=M-F-x;S=z>0?-V:V}else{var B=k-M-N-F>x;S=B?V:-V}}else{var G=F,Y=C+F;n==="start"?O=R-d>C?-Y:G:O=$-(R+D)-d>C?Y:-G}return{x:S,y:O,text:g}},t.prototype.getHandleLabelStyle=function(n){var r=Wt(this.attributes,"handleLabel");return Ne(Ne(Ne({},r),this.calcHandleText(n)),this.inferTextStyle(n))},t.prototype.getHandleIconStyle=function(){var n=this.attributes.handleIconShape,r=Wt(this.attributes,"handleIcon"),i=this.getOrientVal(["ew-resize","ns-resize"]),a=this.getHandleSize();return Ne({cursor:i,shape:n,size:a},r)},t.prototype.getHandleStyle=function(n){var r=this.attributes,i=r.x,a=r.y,o=r.showLabel,s=r.showLabelOnInteraction,l=r.orientation,c=this.calcHandlePosition(n),u=c.x,f=c.y,d=this.calcHandleText(n),h=o;return!o&&s&&(this.target?h=!0:h=!1),Ne(Ne(Ne({},gs(this.getHandleIconStyle(),"icon")),gs(Ne(Ne({},this.getHandleLabelStyle(n)),d),"label")),{transform:"translate(".concat(u+i,", ").concat(f+a,")"),orientation:l,showLabel:h,type:n,zIndex:3})},t.prototype.getHandleSize=function(){var n=this.attributes,r=n.handleIconSize,i=n.width,a=n.height;return r||Math.floor((this.getOrientVal([+a,+i])+4)/2.4)},t.prototype.getOrientVal=function(n){var r=ee(n,2),i=r[0],a=r[1],o=this.attributes.orientation;return o==="horizontal"?i:a},t.prototype.setValuesOffset=function(n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=this.attributes.type,o=ee(this.getValues(),2),s=o[0],l=o[1],c=a==="range"?n:0,u=[s+c,l+r].sort();i?this.setValues(u):this.innerSetValues(u,!0)},t.prototype.getRatio=function(n){var r=this.availableSpace,i=r.width,a=r.height;return n/this.getOrientVal([i,a])},t.prototype.dispatchCustomEvent=function(n,r,i){var a=this;n.on(r,function(o){o.stopPropagation(),a.dispatchEvent(new Mn(i,{detail:o}
52))})},t.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var n=this.brushArea;this.dispatchCustomEvent(n,"click","trackClick"),this.dispatchCustomEvent(n,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(n,"pointerleave","trackMouseleave"),n.on("pointerdown",this.onDragStart("track"))},t.prototype.onScroll=function(n){var r=this.attributes.scrollable;if(r){var i=n.deltaX,a=n.deltaY,o=a||i,s=this.getRatio(o);this.setValuesOffset(s,s,!0)}},t.tag="slider",t}(ri),XCe=function(e){lr(t,e);function t(n){var r=e.call(this,n,{x:0,y:0,isRound:!0,orientation:"vertical",padding:[2,2,2,2],scrollable:!0,slidable:!0,thumbCursor:"default",trackSize:10,value:0})||this;return r.range=[0,1],r.onValueChange=function(i){var a=r.attributes.value;if(i!==a){var o={detail:{oldValue:i,value:a}};r.dispatchEvent(new Mn("scroll",o)),r.dispatchEvent(new Mn("valuechange",o))}},r.onTrackClick=function(i){var a=r.attributes.slidable;if(a){var o=ee(r.getLocalPosition(),2),s=o[0],l=o[1],c=ee(r.padding,4),u=c[0],f=c[3],d=r.getOrientVal([s+f,l+u]),h=r.getOrientVal(Nm(i)),p=(h-d)/r.trackLength;r.setValue(p,!0)}},r.onThumbMouseenter=function(i){r.dispatchEvent(new Mn("thumbMouseenter",{detail:i.detail}))},r.onTrackMouseenter=function(i){r.dispatchEvent(new Mn("trackMouseenter",{detail:i.detail}))},r.onThumbMouseleave=function(i){r.dispatchEvent(new Mn("thumbMouseleave",{detail:i.detail}))},r.onTrackMouseleave=function(i){r.dispatchEvent(new Mn("trackMouseleave",{detail:i.detail}))},r}return Object.defineProperty(t.prototype,"padding",{get:function(){var n=this.attributes.padding;return vi(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var n=this.attributes.value,r=ee(this.range,2),i=r[0],a=r[1];return yr(n,i,a)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trackLength",{get:function(){var n=this.attributes,r=n.viewportLength,i=n.trackLength,a=i===void 0?r:i;return a},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"availableSpace",{get:function(){var n=this.attributes.trackSize,r=this.trackLength,i=ee(this.padding,4),a=i[0],o=i[1],s=i[2],l=i[3],c=ee(this.getOrientVal([[r,n],[n,r]]),2),u=c[0],f=c[1];return{x:l,y:a,width:+u-(l+o),height:+f-(a+s)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trackRadius",{get:function(){var n=this.attributes,r=n.isRound,i=n.trackSize;return r?i/2:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"thumbRadius",{get:function(){var n=this.attributes,r=n.isRound,i=n.thumbRadius;if(!r)return 0;var a=this.availableSpace,o=a.width,s=a.height;return i||this.getOrientVal([s,o])/2},enumerable:!1,configurable:!0}),t.prototype.getValues=function(n){n===void 0&&(n=this.value);var r=this.attributes,i=r.viewportLength,a=r.contentLength,o=i/a,s=ee(this.range,2),l=s[0],c=s[1],u=n*(c-l-o);return[u,u+o]},t.prototype.getValue=function(){return this.value},t.prototype.renderSlider=function(n){var r=this.attributes,i=r.x,a=r.y,o=r.orientation,s=r.trackSize,l=r.padding,c=r.slidable,u=Wt(this.attributes,"track"),f=Wt(this.attributes,"thumb"),d=Ne(Ne({x:i,y:a,brushable:!1,orientation:o,padding:l,selectionRadius:this.thumbRadius,showHandle:!1,slidable:c,trackLength:this.trackLength,trackRadius:this.trackRadius,trackSize:s,values:this.getValues()},gs(u,"track")),gs(f,"selection"));this.slider=_t(n).maybeAppendByClassName("scrollbar",function(){return new Oz({style:d})}).update(d).node()},t.prototype.render=function(n,r){this.renderSlider(r)},t.prototype.setValue=function(n,r){r===void 0&&(r=!1);var i=this.attributes.value,a=ee(this.range,2),o=a[0],s=a[1];this.slider.setValues(this.getValues(yr(n,o,s)),r),this.onValueChange(i)},t.prototype.bindEvents=function(){var n=this;this.slider.addEventListener("trackClick",function(r){r.stopPropagation(),n.onTrackClick(r.detail)}),this.onHover()},t.prototype.getOrientVal=function(n){var r=this.attributes.orientation;return r==="horizontal"?n[0]:n[1]},t.prototype.onHover=function(){this.slider.addEventListener("selectionMouseenter",this.onThumbMouseenter),this.slider.addEventListener("trackMouseenter",this.onTrackMouseenter),this.slider.addEventListener("selectionMouseleave",this.onThumbMouseleave),this.slider.addEventListener("trackMouseleave",this.onTrackMouseleave)},t.tag="scrollbar",t}(ri),eC={data:[],animate:{enter:!1,update:{duration:100,easing:"ease-in-out-sine",fill:"both"},exit:{duration:100,fill:"both"}},showArrow:!0,showGrid:!0,showLabel:!0,showLine:!0,showTick:!0,showTitle:!0,showTrunc:!1,dataThreshold:100,lineLineWidth:1,lineStroke:"black",crossPadding:10,titleFill:"black",titleFontSize:12,titlePosition:"lb",titleSpacing:0,titleTextAlign:"center",titleTextBaseline:"middle",lineArrow:function(){return new qi({style:{d:[["M",10,10],["L",-10,0],["L",10,-10],["L",0,0],["L",10,10],["Z"]],fill:"black",transformOrigin:"center"}})},labelAlign:"parallel",labelDirection:"positive",labelFontSize:12,labelSpacing:0,gridConnect:"line",gridControlAngles:[],gridDirection:"positive",gridLength:0,gridType:"segment",lineArrowOffset:15,lineArrowSize:10,tickDirection:"positive",tickLength:5,tickLineWidth:1,tickStroke:"black",labelOverlap:[]};_e({},eC,{style:{type:"arc"}});_e({},eC,{style:{}});var Sn=ho({mainGroup:"main-group",gridGroup:"grid-group",grid:"grid",lineGroup:"line-group",line:"line",tickGroup:"tick-group",tick:"tick",tickItem:"tick-item",labelGroup:"label-group",label:"label",labelItem:"label-item",titleGroup:"title-group",title:"title",lineFirst:"line-first",lineSecond:"line-second"},"axis"),md=ho({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");
52function Ez(e){return e.reduce(function(t,n,r){return t.push(ot([r===0?"M":"L"],ee(n),!1)),t},[])}function qCe(e,t,n){var r=t.connect,i=r===void 0?"line":r,a=t.center;if(i==="line")return Ez(e);if(!a)return[];var o=Zh(e[0],a),s=n?0:1;return e.reduce(function(l,c,u){return u===0?l.push(ot(["M"],ee(c),!1)):l.push(ot(["A",o,o,0,0,s],ee(c),!1)),l},[])}function $7(e,t,n){return t.type==="surround"?qCe(e,t,n):Ez(e)}function ZCe(e,t,n){var r=n.type,i=n.connect,a=n.center,o=n.closed,s=o?[["Z"]]:[],l=ee([$7(e,n),$7(t.slice().reverse(),n,!0)],2),c=l[0],u=l[1],f=ee([e[0],t.slice(-1)[0]],2),d=f[0],h=f[1],p=function(x,C){return[c,x,u,C,s].flat()};if(i==="line"||r==="surround")return p([ot(["L"],ee(h),!1)],[ot(["L"],ee(d),!1)]);if(!a)throw new Error("Arc grid need to specified center");var g=ee([Zh(h,a),Zh(d,a)],2),v=g[0],y=g[1];return p([ot(["A",v,v,0,0,1],ee(h),!1),ot(["L"],ee(h),!1)],[ot(["A",y,y,0,0,0],ee(d),!1),ot(["L"],ee(d),!1)])}function KCe(e,t,n,r){var i=n.animate,a=n.isBillboard,o=t.map(function(s,l){return{id:s.id||"grid-line-".concat(l),d:$7(s.points,n)}});return e.selectAll(md.line.class).data(o,function(s){return s.id}).join(function(s){return s.append("path").each(function(l,c){var u=Ta(KA(Ne({d:l.d},r)),[l,c,o]);this.attr(Ne({class:md.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:a},u))})},function(s){return s.transition(function(l,c){var u=Ta(KA(Ne({d:l.d},r)),[l,c,o]);return Vo(this,u,i.update)})},function(s){return s.transition(function(){var l=this,c=fv(this,i.exit);return Nd(c,function(){return l.remove()}),c})}).transitions()}function JCe(e,t,n){var r=n.animate,i=n.connect,a=n.areaFill;if(t.length<2||!a||!i)return[];for(var o=Array.isArray(a)?a:[a,"transparent"],s=function(p){return o[p%o.length]},l=[],c=0;c<t.length-1;c++){var u=ee([t[c].points,t[c+1].points],2),f=u[0],d=u[1],h=ZCe(f,d,n);l.push({d:h,fill:s(c)})}return e.selectAll(md.region.class).data(l,function(p,g){return g}).join(function(p){return p.append("path").each(function(g,v){var y=Ta(g,[g,v,l]);this.attr(y)}).attr("className",md.region.name)},function(p){return p.transition(function(g,v){var y=Ta(g,[g,v,l]);return Vo(this,y,r.update)})},function(p){return p.transition(function(){var g=this,v=fv(this,r.exit);return Nd(v,function(){return g.remove()}),v})}).transitions()}function QCe(e){var t=e.data,n=t===void 0?[]:t,r=e.closed;return r?n.map(function(i){var a=i.points,o=ee(a,1),s=o[0];return Ne(Ne({},i),{points:ot(ot([],ee(a),!1),[s],!1)})}):n}var ewe=function(e){lr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r){n.type,n.center,n.areaFill,n.closed;var i=ei(n,["type","center","areaFill","closed"]),a=QCe(n),o=_t(r).maybeAppendByClassName(md.lineGroup,"g"),s=_t(r).maybeAppendByClassName(md.regionGroup,"g"),l=KCe(o,a,n,i),c=JCe(s,a,n);return ot(ot([],ee(l),!1),ee(c),!1)},t}(ri);function kz(e,t){return Object.fromEntries(Object.entries(e).map(function(n){var r=ee(n,2),i=r[0],a=r[1];return[i,Ta(a,t)]}))}function tC(e,t){return t&&Hr(t)?e.filter(t):e}function Az(e,t){var n=t.startAngle,r=t.endAngle;return(r-n)*e+n}function dv(e,t){if(t.type==="linear"){var n=ee(t.startPos,2),r=n[0],i=n[1],a=ee(t.endPos,2),o=a[0],s=a[1],l=ee([o-r,s-i],2),c=l[0],u=l[1];return pz([c,u])}var f=gd(Az(e,t));return[-Math.sin(f),Math.cos(f)]}function nC(e,t,n){var r=dv(e,n);return Jbe(r,t!=="positive")}function Wp(e,t){return nC(e,t.labelDirection,t)}function twe(e,t){var n=ee(t.startPos,2),r=n[0],i=n[1],a=ee(t.endPos,2),o=a[0],s=a[1],l=ee([o-r,s-i],2),c=l[0],u=l[1];return[r+c*e,i+u*e]}function nwe(e,t){var n=t.radius,r=ee(t.center,2),i=r[0],a=r[1],o=gd(Az(e,t));return[i+n*Math.cos(o),a+n*Math.sin(o)]}function hv(e,t){return t.type==="linear"?twe(e,t):nwe(e,t)}function rC(e){return dv(0,e)[1]===0}function $z(e){return dv(0,e)[0]===0}function Tz(e,t){return t-e===360}function i$(e,t,n,r,i){var a=t-e,o=ee([i,i],2),s=o[0],l=o[1],c=ee([gd(e),gd(t)],2),u=c[0],f=c[1],d=function($){return[n+i*Math.cos($),r+i*Math.sin($)]},h=ee(d(u),2),p=h[0],g=h[1],v=ee(d(f),2),y=v[0],x=v[1];if(Tz(e,t)){var C=(f+u)/2,_=ee(d(C),2),S=_[0],O=_[1];return[["M",p,g],["A",s,l,0,1,0,S,O],["A",s,l,0,1,0,y,x]]}var E=a>180?1:0,k=e>t?0:1;return"M".concat(p,",").concat(g,",A").concat(s,",").concat(l,",0,").concat(E,",").concat(k,",").concat(y,",").concat(x)}function rwe(e){var t=e.attributes,n=t.startAngle,r=t.endAngle,i=t.center,a=t.radius;return ot(ot([n,r],ee(i),!1),[a],!1)}function iwe(e,t,n,r){var i=t.startAngle,a=t.endAngle,o=t.center,s=t.radius;return e.selectAll(Sn.line.class).data([{d:i$.apply(void 0,ot(ot([i,a],ee(o),!1),[s],!1))}],function(l,c){return c}).join(function(l){return l.append("path").attr("className",Sn.line.name).styles(t).styles({d:function(c){return c.d}})},function(l){return l.transition(function(){var c=this,u=Xbe(this,rwe(this),ot(ot([i,a],ee(o),!1),[s],!1),r.update);if(u){var f=function(){var d=an(c.attributes,"__keyframe_data__");c.style.d=i$.apply(void 0,ot([],ee(d),!1))};u.onframe=f,u.onfinish=f}return u}).styles(t)},function(l){return l.remove()}).styles(n).transitions()}function awe(e,t){t.truncRange,t.truncShape,t.lineExtension}function owe(e,t,n){n===void 0&&(n=[0,0]);var r=ee([e,t,n],3),i=ee(r[0],2),a=i[0],o=i[1],s=ee(r[1],2),l=s[0],c=s[1],u=ee(r[2],2),f=u[0],d=u[1],h=ee([l-a,c-o],2),p=h[0],g=h[1],v=Math.sqrt(Math.pow(p,2)+Math.pow(g,2)),y=ee([-f/v,d/v],2),x=y[0],C=y[1];return[x*p,x*g,C*p,C*g]}function a$(e){var t=ee(e,2),n=ee(t[0],2),r=n[0],i=n[1],a=ee(t[1],2),o=a[0],s=a[1];return{x1:r,y1:i,x2:o,y2:s}}function swe(e,t,n,r){var i=t.showTrunc,a=t.startPos,o=t.endPos,s=t.truncRange,l=t.lineExtension,c=ee([a,o],2),u=ee(c[0],2),f=u[0],d=u[1],h=ee(c[1],2),p=h[0],g=h[1],v=ee(l?owe(a,o,l):new Array(4).fill(0),4),y=v[0],x=v[1],C=v[2],_=v[3],S=function(B){return e.selectAll(Sn.line.class).data(B,function(G,Y){return Y}).join(function(G){return G.append("line").attr("className",function(Y){return"".concat(Sn.line.name," ").concat(Y.className)}).styles(n).transition(function(Y){return Vo(this,a$(Y.line),!1)})},function(G){return G.styles(n).transition(function(Y){var K=Y.line;return Vo(this,a$(K),r.update)})},function(G){return G.remove()}).transitions()};if(!i||!s)return S([{line:[[f+y,d+x],[p+C,g+_]],className:Sn.line.name}]);var O=ee(s,2),E=O[0],k=O[1],$=p-f,T=g-d,M=ee([f+$*E,d+T*E],2),R=M[0],N=M[1],D=ee([f+$*k,d+T*k],2),F=D[0],V=D[1],z=S([{line:[[f+y,d+x],[R,N]],className:Sn.lineFirst.name},{line:[[F,V],[p+C,g+_]],className:Sn.lineSecond.name}]);return awe(e,t),z}function lwe(e,t,n,r){var i=n.showArrow,a=n.showTrunc,o=n.lineArrow,s=n.lineArrowOffset,l=n.lineArrowSize,c;if(t==="arc"?c=e.select(Sn.line.class):a?c=e.select(Sn.lineSecond.class):c=e.select(Sn.line.class),!i||!o||n.type==="arc"&&Tz(n.startAngle,n.endAngle)){var u=c.node();u&&(u.style.markerEnd=void 0);return}var f=rf(o);f.attr(r),Kb(f,l),c.style("markerEnd",f).style("markerEndOffset",-s)}function cwe(e,t,n){var r=t.type,i,a=Wt(t,"line");return r==="linear"?i=swe(e,t,ZA(a,"arrow"),n):i=iwe(e,t,ZA(a,"arrow"),n),lwe(e,r,t,a),i}function uwe(e,t){return nC(e,t.gridDirection,t)}function Pz(e){var t=e.type,n=e.gridCenter;return t==="linear"?n:n||e.center}function fwe(e,t){var n=t.gridLength;return e.map(function(r,i){var a=r.value,o=ee(hv(a,t),2),s=o[0],l=o[1],c=ee(yl(uwe(a,t),n),2),u=c[0],f=c[1];return{id:i,points:[[s,l],[s+u,l+f]]}})}function dwe(e,t){var n=t.gridControlAngles,r=Pz(t);if(!r)throw new Error("grid center is not provide");if(e.length<2)throw new Error("Invalid grid data");if(!n||n.length===0)throw new Error("Invalid gridControlAngles");var i=ee(r,2),a=i[0],o=i[1];return e.map(function(s,l){var c=s.value,u=ee(hv(c,t),2),f=u[0],d=u[1],h=ee([f-a,d-o],2),p=h[0],g=h[1],v=[];
52return n.forEach(function(y){var x=gd(y),C=ee([Math.cos(x),Math.sin(x)],2),_=C[0],S=C[1],O=p*_-g*S+a,E=p*S+g*_+o;v.push([O,E])}),{points:v,id:l}})}function hwe(e,t,n,r){var i=Wt(n,"grid"),a=i.type,o=i.areaFill,s=Pz(n),l=tC(t,n.gridFilter),c=a==="segment"?fwe(l,n):dwe(l,n),u=Ne(Ne({},i),{center:s,areaFill:Hr(o)?l.map(function(f,d){return Ta(o,[f,d,l])}):o,animate:r,data:c});return e.selectAll(Sn.grid.class).data([1]).join(function(f){return f.append(function(){return new ewe({style:u})}).attr("className",Sn.grid.name)},function(f){return f.transition(function(){return this.update(u)})},function(f){return f.remove()}).transitions()}var T7=function(){function e(t,n,r,i){this.set(t,n,r,i)}return Object.defineProperty(e.prototype,"left",{get:function(){return this.x1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.defined("x2")&&this.defined("x1")?this.x2-this.x1:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.defined("y2")&&this.defined("y1")?this.y2-this.y1:void 0},enumerable:!1,configurable:!0}),e.prototype.rotatedPoints=function(t,n,r){var i=this,a=i.x1,o=i.y1,s=i.x2,l=i.y2,c=Math.cos(t),u=Math.sin(t),f=n-n*c+r*u,d=r-n*u-r*c,h=[[c*a-u*l+f,u*a+c*l+d],[c*s-u*l+f,u*s+c*l+d],[c*a-u*o+f,u*a+c*o+d],[c*s-u*o+f,u*s+c*o+d]];return h},e.prototype.set=function(t,n,r,i){return r<t?(this.x2=t,this.x1=r):(this.x1=t,this.x2=r),i<n?(this.y2=n,this.y1=i):(this.y1=n,this.y2=i),this},e.prototype.defined=function(t){return this[t]!==Number.MAX_VALUE&&this[t]!==-Number.MAX_VALUE},e}();function P7(e,t){var n=e.getEulerAngles()||0;e.setEulerAngles(0);var r=e.getBounds(),i=ee(r.min,2),a=i[0],o=i[1],s=ee(r.max,2),l=s[0],c=s[1],u=e.getBBox(),f=u.width,d=u.height,h=d,p=0,g=0,v=a,y=o,x=dz(e);if(x){h-=1.5;var C=x.style.textAlign,_=x.style.textBaseline;C==="center"?v=(a+l)/2:(C==="right"||C==="end")&&(v=l),_==="middle"?y=(o+c)/2:_==="bottom"&&(y=c)}var S=ee(vi(t),4),O=S[0],E=O===void 0?0:O,k=S[1],$=k===void 0?0:k,T=S[2],M=T===void 0?E:T,R=S[3],N=R===void 0?$:R,D=new T7((p+=a)-N,(g+=o)-E,p+f+$,g+h+M);return e.setEulerAngles(n),D.rotatedPoints(gd(n),v,y)}function V1(e,t){return t[0]<=Math.max(e[0][0],e[1][0])&&t[0]<=Math.min(e[0][0],e[1][0])&&t[1]<=Math.max(e[0][1],e[1][1])&&t[1]<=Math.min(e[0][1],e[1][1])}function W1(e,t,n){var r=(t[1]-e[1])*(n[0]-t[0])-(t[0]-e[0])*(n[1]-t[1]);return r===0?0:r<0?2:1}function pwe(e,t){var n=W1(e[0],e[1],t[0]),r=W1(e[0],e[1],t[1]),i=W1(t[0],t[1],e[0]),a=W1(t[0],t[1],e[1]);return!!(n!==r&&i!==a||n===0&&V1(e,t[0])||r===0&&V1(e,t[1])||i===0&&V1(t,e[0])||a===0&&V1(t,e[1]))}function gwe(e,t){var n=e.length;if(n<3)return!1;var r=[t,[9999,t[1]]],i=0,a=0;do{var o=[e[a],e[(a+1)%n]];if(pwe(o,r)){if(W1(o[0],t,o[1])===0)return V1(o,t);i++}a=(a+1)%n}while(a!==0);return!!(i&1)}function mwe(e,t){return t.every(function(n){return gwe(e,n)})}function vwe(e,t,n){var r=e.x1,i=e.x2,a=e.y1,o=e.y2,s=[[r,a],[i,a],[i,o],[r,o]],l=P7(t,n);return mwe(s,l)}function ywe(e,t){var n=ee(e,4),r=n[0],i=n[1],a=n[2],o=n[3],s=ee(t,4),l=s[0],c=s[1],u=s[2],f=s[3],d=a-r,h=o-i,p=u-l,g=f-c,v=d*g-p*h;if(v===0)return!1;var y=v>0,x=r-l,C=i-c,_=d*C-h*x;if(_<0===y)return!1;var S=p*C-g*x;return!(S<0===y||_>v===y||S>v===y)}function xwe(e,t){var n=[[e[0],e[1],e[2],e[3]],[e[2],e[3],e[4],e[5]],[e[4],e[5],e[6],e[7]],[e[6],e[7],e[0],e[1]]];return n.some(function(r){return ywe(t,r)})}function bwe(e,t,n){var r,i,a=P7(e,n).flat(1),o=P7(t,n).flat(1),s=[[a[0],a[1],a[2],a[3]],[a[0],a[1],a[4],a[5]],[a[4],a[5],a[6],a[7]],[a[2],a[3],a[6],a[7]]];try{for(var l=Ap(s),c=l.next();!c.done;c=l.next()){var u=c.value;if(xwe(o,u))return!0}}catch(f){r={error:f}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return!1}function Cwe(e,t){var n=e.type,r=e.labelDirection,i=e.crossSize;if(!i)return!1;if(n==="arc"){var a=e.center,o=e.radius,s=ee(a,2),l=s[0],c=s[1],u=r==="negative"?0:i,f=-o-u,d=o+u,h=ee(vi(t),4),p=h[0],g=h[1],v=h[2],y=h[3];return new T7(l+f-y,c+f-p,l+d+g,c+d+v)}var x=ee(e.startPos,2),C=x[0],_=x[1],S=ee(e.endPos,2),O=S[0],E=S[1],k=ee($z(e)?[-t,0,t,0]:[0,t,0,-t],4),$=k[0],T=k[1],M=k[2],R=k[3],N=Wp(0,e),D=yl(N,i),F=new T7(C,_,O,E);return F.x1+=R,F.y1+=$,F.x2+=T+D[0],F.y2+=M+D[1],F}function pv(e,t,n){var r,i,a=t.crossPadding,o=new Set,s=null,l=Cwe(t,a),c=function(p){return l?vwe(l,p):!0},u=function(p,g){return!p||!p.firstChild?!0:!bwe(p.firstChild,g.firstChild,vi(n))};try{for(var f=Ap(e),d=f.next();!d.done;d=f.next()){var h=d.value;c(h)?!s||u(s,h)?s=h:(o.add(s),o.add(h)):o.add(h)}}catch(p){r={error:p}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}return Array.from(o)}function q9(e,t){return t===void 0&&(t={}),pt(e)?0:typeof e=="number"?e:Math.floor(Vbe(e,t))}function wwe(e,t,n,r){if(!(e.length<=0)){var i=t.suffix,a=i===void 0?"...":i,o=t.minLength,s=t.maxLength,l=s===void 0?1/0:s,c=t.step,u=c===void 0?" ":c,f=t.margin,d=f===void 0?[0,0,0,0]:f,h=fz(r.getTextShape(e[0])),p=q9(u,h),g=o?q9(o,h):p,v=q9(l,h);(pt(v)||v===1/0)&&(v=Math.max.apply(null,e.map(function(O){return O.getBBox().width})));var y=e.slice(),x=ee(d,4);x[0],x[1],x[2],x[3];for(var C=function(O){if(y.forEach(function(E){r.ellipsis(r.getTextShape(E),O,a)}),y=pv(e,n,d),y.length<1)return{value:void 0}},_=v;_>g+p;_-=p){var S=C(_);if(typeof S=="object")return S.value}}}var _we={parity:function(e,t){var n=t.seq,r=n===void 0?2:n;return e.filter(function(i,a){return a%r?(Vc(i),!1):!0})}},Swe=function(e){return e.filter(zbe)};function Owe(e,t,n,r){var i=e.length,a=t.keepHeader,o=t.keepTail;if(!(i<=1||i===2&&a&&o)){var s=_we.parity,l=function(C){return C.forEac
52h(r.show),C},c=2,u=e.slice(),f=e.slice(),d=Math.min.apply(Math,ot([1],ee(e.map(function(C){return C.getBBox().width})),!1));if(n.type==="linear"&&(rC(n)||$z(n))){var h=JA(e[0]).left,p=JA(e[i-1]).right,g=Math.abs(p-h)||1;c=Math.max(Math.floor(i*d/g),c)}var v,y;for(a&&(v=u.splice(0,1)[0]),o&&(y=u.splice(-1,1)[0],u.reverse()),l(u);c<e.length&&pv(Swe(y?ot(ot([y],ee(f),!1),[v],!1):ot([v],ee(f),!1)),n,t==null?void 0:t.margin).length;){if(y&&!v&&c%2===0){var x=u.splice(0,1);x.forEach(r.hide)}else if(y&&v){var x=u.splice(0,1);x.forEach(r.hide)}f=s(l(u),{seq:c}),c++}}}function Ewe(e,t,n,r){var i,a,o=t.optionalAngles,s=o===void 0?[0,45,90]:o,l=t.margin,c=t.recoverWhenFailed,u=c===void 0?!0:c,f=e.map(function(y){return y.getLocalEulerAngles()}),d=function(){return pv(e,n,l).length<1},h=function(y){return e.forEach(function(x,C){var _=Array.isArray(y)?y[C]:y;r.rotate(x,+_)})};try{for(var p=Ap(s),g=p.next();!g.done;g=p.next()){var v=g.value;if(h(v),d())return}}catch(y){i={error:y}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}u&&h(f)}function kwe(e){var t=e.type,n=e.labelDirection;return t==="linear"&&rC(e)?n==="negative"?"bottom":"top":"middle"}function Awe(e,t,n,r,i){var a,o=t.maxLines,s=o===void 0?3:o,l=t.recoverWhenFailed,c=l===void 0?!0:l,u=t.margin,f=u===void 0?[0,0,0,0]:u,d=Ta((a=t.wordWrapWidth)!==null&&a!==void 0?a:50,[i]),h=e.map(function(C){return C.attr("maxLines")||1}),p=Math.min.apply(Math,ot([],ee(h),!1)),g=function(){return pv(e,n,f).length<1},v=kwe(n),y=function(C){return e.forEach(function(_,S){var O=Array.isArray(C)?C[S]:C;r.wrap(_,d,O,v)})};if(!(p>s)){if(n.type==="linear"&&rC(n)){if(y(s),g())return}else for(var x=p;x<=s;x++)if(y(x),g())return;c&&y(h)}}var $we=new Map([["hide",Owe],["rotate",Ewe],["ellipsis",wwe],["wrap",Awe]]);function Twe(e,t,n){return t.labelOverlap.length<1?!1:n==="hide"?!Fbe(e[0]):n==="rotate"?!e.some(function(r){var i;return!!(!((i=r.attr("transform"))===null||i===void 0)&&i.includes("rotate"))}):n==="ellipsis"||n==="wrap"?e.filter(function(r){return r.querySelector("text")}).length>=1:!0}function Pwe(e,t,n,r){var i=t.labelOverlap,a=i===void 0?[]:i;a.length&&a.forEach(function(o){var s=o.type,l=$we.get(s);Twe(e,t,s)&&(l==null||l(e,o,t,r,n))})}function Mwe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(r){return r==="positive"?-1:1};return e.reduce(function(r,i){return r*n(i)},1)}function o$(e){for(var t=e;t<0;)t+=360;return Math.round(t%360)}function M7(e,t){var n=ee(e,2),r=n[0],i=n[1],a=ee(t,2),o=a[0],s=a[1],l=ee([r*o+i*s,r*s-i*o],2),c=l[0],u=l[1];return Math.atan2(u,c)}function Nwe(e){var t=(e+360)%180;return di(t,-90,90)||(t+=180),t}function Iwe(e,t,n){var r,i=n.labelAlign,a=(r=t.style.transform)===null||r===void 0?void 0:r.includes("rotate");if(a)return t.getLocalEulerAngles();var o=0,s=Wp(e.value,n),l=dv(e.value,n);return i==="horizontal"?0:(i==="perpendicular"?o=M7([1,0],s):o=M7([l[0]<0?-1:1,0],l),Nwe(cz(o)))}function Mz(e,t,n){var r=n.type,i=n.labelAlign,a=Wp(e,n),o=o$(t),s=o$(cz(M7([1,0],a))),l="center",c="middle";return r==="linear"?[90,270].includes(s)&&o===0?(l="center",c=a[1]===1?"top":"bottom"):!(s%180)&&[90,270].includes(o)?l="center":s===0?(di(o,0,90,!1,!0)||di(o,0,90)||di(o,270,360))&&(l="start"):s===90?di(o,0,90,!1,!0)?l="start":(di(o,90,180)||di(o,270,360))&&(l="end"):s===270?di(o,0,90,!1,!0)?l="end":(di(o,90,180)||di(o,270,360))&&(l="start"):s===180&&(o===90?l="start":(di(o,0,90)||di(o,270,360))&&(l="end")):i==="parallel"?di(s,0,180,!0)?c="top":c="bottom":i==="horizontal"?di(s,90,270,!1)?l="end":(di(s,270,360,!1)||di(s,0,90))&&(l="start"):i==="perpendicular"&&(di(s,90,270)?l="end":l="start"),{textAlign:l,textBaseline:c}}function Lwe(e,t,n){t.setLocalEulerAngles(e);var r=t.__data__.value,i=Mz(r,e,n),a=t.querySelector(Sn.labelItem.class);a&&Nz(a,i)}function s$(e,t,n){var r=n.showTick,i=n.tickLength,a=n.tickDirection,o=n.labelDirection,s=n.labelSpacing,l=t.indexOf(e),c=Ta(s,[e,l,t]),u=ee([Wp(e.value,n),Mwe(o,a)],2),f=u[0],d=u[1],h=d===1?Ta(r?i:0,[e,l,t]):0,p=ee(z1(yl(f,c+h),hv(e.value,n)),2),g=p[0],v=p[1];return{x:g,y:v}}function Rwe(e,t,n,r){var i=r.labelFormatter,a=Hr(i)?function(){return rf(Ta(i,[e,t,n,Wp(e.value,r)]))}:function(){return rf(e.label||"")};return a}function Nz(e,t){e.nodeName==="text"&&e.attr(t)}function jwe(e,t){Pwe(this.node().childNodes,e,t,{hide:Vc,show:Vp,rotate:function(n,r){Lwe(+r,n,e)},ellipsis:function(n,r,i){n&&k7(n,r||1/0,i)},wrap:function(n,r,i){n&&Wbe(n,r,i)},getTextShape:function(n){return n.querySelector("text")}})}function l$(e,t,n,r,i){var a=n.indexOf(t),o=_t(e).append(Rwe(t,a,n,i)).attr("className",Sn.labelItem.name).node(),s=ee(Il(kz(r,[t,a,n])),2),l=s[0],c=s[1],u=c.transform,f=ei(c,["transform"]);gz(o,u);var d=Iwe(t,o,i);return o.getLocalEulerAngles()||o.setLocalEulerAngles(d),Nz(o,Ne(Ne({},Mz(t.value,d,i)),l)),e.attr(f),o}function Dwe(e,t,n,r,i){var a=tC(t,n.labelFilter),o=Wt(n,"label"),s,l=e.selectAll(Sn.label.class).data(a,function(c,u){return u}).join(function(c){return c.append("g").attr("className",Sn.label.name).transition(function(u){l$(this,u,t,o,n);var f=s$(u,t,n),d=f.x,h=f.y;return this.style.transform="translate(".concat(d,", ").concat(h,")"),null})},function(c){return c.transition(function(u){var f=this.querySelector(Sn.labelItem.class),d=l$(this,u,t,o,n),h=UCe(f,d,r.update),p=s$(u,t,n),g=p.x,v=p.y,y=Vo(this,{transform:"translate(".concat(g,", ").concat(v,")")},r.update);return ot(ot([],ee(h),!1),[y],!1)})},function(c){return s=c,c.transition(function(){var u=this,f=fv(this.childNodes[0],r.exit);return Nd(f,function(){return _t(u).remove()}),f}),s}).transitions();return HCe(l,function(){jwe.call(e,n,i)}),l}function Iz(e,t){return nC(e,t.tickDirection,t)}function Fwe(e,t){var n=ee(e,2),r=n[0],i=n[1];return[[0,0],[r*t,i*t]]}function Bwe(e,t,n,r,i){var a=i.tickLength,o=ee(Fwe(r,Ta(a,[e,t,n])),2),s=ee(o[0],2),l=s[0],c=s[1],u=ee(o[1],2),f=u[0],d=u[1];return{x1:l,x2:f,y1:c,y2:d}}function zwe(e,t,n,r,i){var a=i.tickFormatter,o=Iz(t.value,i),s="line";return Hr(a)&&(s=function(){return Ta(a,[t,n,r,o])}),e.append(s).attr("className",Sn.tickItem.name)}function Vwe(e,t,n,r,i,a,o){var s=Iz(e.value,a),l=Bwe(e,t,n,s,a),c=l.x1,u=l.x2,f=l.y1,d=l.y2,h=ee(Il(kz(o,[e,t,n,s])),2),p=h[0],g=h[1];r.node().nodeName==="line"&&r.styles(Ne({x1:c,x2:u,y1:f,y2:d},p)),i.attr(g),r.styles(p)}function c$(e,t,n,r,i,a){var o=zwe(_t(this),e,t,n,r);Vwe(e,t,n,o,this,r,i);var s=ee(hv(e.value,r),2),l=s[0],c=s[1];return Vo(this,{transform:"translate(".concat(l,", ").concat(c,")")},a)}function Wwe(e,t,n,r){var i=tC(t,n.tickFilter),a=Wt(n,"tick");return e.selectAll(Sn.tick.class).data(i,function(o){return o.id||o.label}).join(function(o){return o.append("g").attr("className",Sn.tick.name).transition(function(s,l){return c$.call(this,s,l,i,n,a,!1)})},function(o){return o.transition(function(s,l){return this.removeChildren(),c$.call(this,s,l,i,n,a,r.update)})},function(o){return o.transition(function(){var s=this,l=fv(this.childNodes[0],r.exit);return Nd(l,function(){return s.remove()}),l})}).transitions()}var u$=ho({text:"text"},"title");
52function gv(e){return/\S+-\S+/g.test(e)?e.split("-").map(function(t){return t[0]}):e.length>2?[e[0]]:e.split("")}function Hwe(e,t){var n=e.attributes,r=n.position,i=n.spacing,a=n.inset,o=n.text,s=e.getBBox(),l=t.getBBox(),c=gv(r),u=ee(vi(o?i:0),4),f=u[0],d=u[1],h=u[2],p=u[3],g=ee(vi(a),4),v=g[0],y=g[1],x=g[2],C=g[3],_=ee([p+d,f+h],2),S=_[0],O=_[1],E=ee([C+y,v+x],2),k=E[0],$=E[1];if(c[0]==="l")return new tr(s.x,s.y,l.width+s.width+S+k,Math.max(l.height+$,s.height));if(c[0]==="t")return new tr(s.x,s.y,Math.max(l.width+k,s.width),l.height+s.height+O+$);var T=ee([t.attributes.width||l.width,t.attributes.height||l.height],2),M=T[0],R=T[1];return new tr(l.x,l.y,M+s.width+S+k,R+s.height+O+$)}function Gwe(e,t){var n=Object.entries(t).reduce(function(r,i){var a=ee(i,2),o=a[0],s=a[1],l=e.node().attr(o);return l||(r[o]=s),r},{});e.styles(n)}function Uwe(e){var t,n,r,i,a=e,o=a.width,s=a.height,l=a.position,c=ee([+o/2,+s/2],2),u=c[0],f=c[1],d=ee([+u,+f,"center","middle"],4),h=d[0],p=d[1],g=d[2],v=d[3],y=gv(l);return y.includes("l")&&(t=ee([0,"start"],2),h=t[0],g=t[1]),y.includes("r")&&(n=ee([+o,"end"],2),h=n[0],g=n[1]),y.includes("t")&&(r=ee([0,"top"],2),p=r[0],v=r[1]),y.includes("b")&&(i=ee([+s,"bottom"],2),p=i[0],v=i[1]),{x:h,y:p,textAlign:g,textBaseline:v}}var Lz=function(e){lr(t,e);function t(n){return e.call(this,n,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return t.prototype.getAvailableSpace=function(){var n=this,r=this.attributes,i=r.width,a=r.height,o=r.position,s=r.spacing,l=r.inset,c=n.querySelector(u$.text.class);if(!c)return new tr(0,0,+i,+a);var u=c.getBBox(),f=u.width,d=u.height,h=ee(vi(s),4),p=h[0],g=h[1],v=h[2],y=h[3],x=ee([0,0,+i,+a],4),C=x[0],_=x[1],S=x[2],O=x[3],E=gv(o);if(E.includes("i"))return new tr(C,_,S,O);E.forEach(function(V,z){var B,G,Y,K;V==="t"&&(B=ee(z===0?[d+v,+a-d-v]:[0,+a],2),_=B[0],O=B[1]),V==="r"&&(G=ee([+i-f-y],1),S=G[0]),V==="b"&&(Y=ee([+a-d-p],1),O=Y[0]),V==="l"&&(K=ee(z===0?[f+g,+i-f-g]:[0,+i],2),C=K[0],S=K[1])});var k=ee(vi(l),4),$=k[0],T=k[1],M=k[2],R=k[3],N=ee([R+T,$+M],2),D=N[0],F=N[1];return new tr(C+R,_+$,S-D,O-F)},t.prototype.getBBox=function(){return this.title?this.title.getBBox():new tr(0,0,0,0)},t.prototype.render=function(n,r){var i=this;n.width,n.height,n.position,n.spacing;var a=ei(n,["width","height","position","spacing"]),o=ee(Il(a),1),s=o[0],l=Uwe(n),c=l.x,u=l.y,f=l.textAlign,d=l.textBaseline;da(!!a.text,_t(r),function(h){i.title=h.maybeAppendByClassName(u$.text,"text").styles(s).call(Gwe,{x:c,y:u,textAlign:f,textBaseline:d}).node()})},t}(ri);function Ywe(e,t,n){var r=n.titlePosition,i=r===void 0?"lb":r,a=n.titleSpacing,o=gv(i),s=e.node().getLocalBounds(),l=ee(s.min,2),c=l[0],u=l[1],f=ee(s.halfExtents,2),d=f[0],h=f[1],p=ee(t.node().getLocalBounds().halfExtents,2),g=p[0],v=p[1],y=ee([c+d,u+h],2),x=y[0],C=y[1],_=ee(vi(a),4),S=_[0],O=_[1],E=_[2],k=_[3];if(["start","end"].includes(i)&&n.type==="linear"){var $=n.startPos,T=n.endPos,M=ee(i==="start"?[$,T]:[T,$],2),R=M[0],N=M[1],D=pz([-N[0]+R[0],-N[1]+R[1]]),F=ee(yl(D,S),2),V=F[0],z=F[1];return{x:R[0]+V,y:R[1]+z}}return o.includes("t")&&(C-=h+v+S),o.includes("r")&&(x+=d+g+O),o.includes("l")&&(x-=d+g+k),o.includes("b")&&(C+=h+v+E),{x,y:C}}function Xwe(e,t,n){var r=e.getGeometryBounds().halfExtents,i=r[1]*2;if(t==="vertical"){if(n==="left")return"rotate(-90) translate(0, ".concat(i/2,")");if(n==="right")return"rotate(-90) translate(0, -".concat(i/2,")")}return""}function f$(e,t,n,r,i){var a=Wt(r,"title"),o=ee(Il(a),2),s=o[0],l=o[1],c=l.transform,u=l.transformOrigin,f=ei(l,["transform","transformOrigin"]);t.styles(f);var d=c||Xwe(e.node(),s.direction,s.position);e.styles(Ne(Ne({},s),{transformOrigin:u})),gz(e.node(),d);var h=Ywe(_t(n._offscreen||n.querySelector(Sn.mainGroup.class)),t,r),p=h.x,g=h.y,v=Vo(t.node(),{transform:"translate(".concat(p,", ").concat(g,")")},i);return v}function qwe(e,t,n,r){var i=n.titleText;return e.selectAll(Sn.title.class).data([{title:i}].filter(function(a){return!!a.title}),function(a,o){return a.title}).join(function(a){return a.append(function(){return rf(i)}).attr("className",Sn.title.name).transition(function(){return f$(_t(this),e,t,n,r.enter)})},function(a){return a.transition(function(){return f$(_t(this),e,t,n,r.update)})},function(a){return a.remove()}).transitions()}function d$(e,t,n,r){var i=e.showLine,a=e.showTick,o=e.showLabel,s=t.maybeAppendByClassName(Sn.lineGroup,"g"),l=da(i,s,function(h){return cwe(h,e,r)})||[],c=t.maybeAppendByClassName(Sn.tickGroup,"g"),u=da(a,c,function(h){return Wwe(h,n,e,r)})||[],f=t.maybeAppendByClassName(Sn.labelGroup,"g"),d=da(o,f,function(h){return Dwe(h,n,e,r,t.node())})||[];return ot(ot(ot([],ee(l),!1),ee(u),!1),ee(d),!1).filter(function(h){return!!h})}var iC=function(e){lr(t,e);function t(n){return e.call(this,n,eC)||this}return t.prototype.render=function(n,r,i){var a=this,o=n.titleText,s=n.data,l=n.animate,c=n.showTitle,u=n.showGrid,f=n.dataThreshold,d=n.truncRange,h=rCe(s,f).filter(function(S){var O=S.value;return!(d&&O>d[0]&&O<d[1])}),p=r$(i===void 0?l:i),g=_t(r).maybeAppendByClassName(Sn.gridGroup,"g"),v=da(u,g,function(S){return hwe(S,h,n,p)})||[],y=_t(r).maybeAppendByClassName(Sn.mainGroup,"g");o&&(!this.initialized&&p.enter||this.initialized&&p.update)&&d$(n,_t(this.offscreenGroup),h,r$(!1));var x=d$(n,_t(y.node()),h,p),C=_t(r).maybeAppendByClassName(Sn.titleGroup,"g"),_=da(c,C,function(S){return qwe(S,a,n,p)})||[];return ot(ot(ot([],ee(v),!1),ee(x),!1),ee(_),!1).flat().filter(function(S){return!!S})},t}(ri),Ga=ho({prevBtnGroup:"prev-btn-group",prevBtn:"prev-btn",nextBtnGroup:"next-btn-group",nextBtn:"next-btn",pageInfoGroup:"page-info-group",pageInfo:"page-info",playWindow:"play-window",contentGroup:"content-group",controller:"controller",clipPath:"clip-path"},"navigator"),Zwe=function(e){lr(t,e);function t(n){var r=e.call(this,n,{x:0,y:0,animate:{easing:"linear",duration:200,fill:"both"},buttonCursor:"pointer",buttonFill:"black",buttonD:NCe(0,0,6),buttonSize:12,controllerPadding:5,controllerSpacing:5,formatter:function(i,a){return"".concat(i,"/").concat(a)},defaultPage:0,loop:!1,orientation:"horizontal",pageNumFill:"black",pageNumFontSize:12,pageNumTextAlign:"start",pageNumTextBaseline:"middle"})||this;return r.playState="idle",r.contentGroup=r.appendChild(new Yr({class:Ga.contentGroup.name})),r.playWindow=r.contentGroup.appendChild(new Yr({class:Ga.playWindow.name})),r.innerCurrPage=r.defaultPage,r}return Object.defineProperty(t.prototype,"defaultPage",{get:function(){var n=this.attributes.defaultPage;return yr(n,0,Math.max(this.pageViews.length-1,0))}
52,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageViews",{get:function(){return this.playWindow.children},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"controllerShape",{get:function(){return this.totalPages>1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageShape",{get:function(){var n=this.pageViews,r=ee(pCe(n.map(function(f){var d=f.getBBox(),h=d.width,p=d.height;return[h,p]})).map(function(f){return Math.max.apply(Math,ot([],ee(f),!1))}),2),i=r[0],a=r[1],o=this.attributes,s=o.pageWidth,l=s===void 0?i:s,c=o.pageHeight,u=c===void 0?a:c;return{pageWidth:l,pageHeight:u}},enumerable:!1,configurable:!0}),t.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(t.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),t.prototype.getBBox=function(){var n=e.prototype.getBBox.call(this),r=n.x,i=n.y,a=this.controllerShape,o=this.pageShape,s=o.pageWidth,l=o.pageHeight;return new tr(r,i,s+a.width,l)},t.prototype.goTo=function(n){var r=this,i=this.attributes.animate,a=this,o=a.currPage,s=a.playState,l=a.playWindow,c=a.pageViews;if(s!=="idle"||n<0||c.length<=0||n>=c.length)return null;c[o].setLocalPosition(0,0),this.prepareFollowingPage(n);var u=ee(this.getFollowingPageDiff(n),2),f=u[0],d=u[1];this.playState="running";var h=bz(l,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-f,", ").concat(-d,")")}],i);return Nd(h,function(){r.innerCurrPage=n,r.playState="idle",r.setVisiblePages([n]),r.updatePageInfo()}),h},t.prototype.prev=function(){var n=this.attributes.loop,r=this.pageViews.length,i=this.currPage;if(!n&&i<=0)return null;var a=n?(i-1+r)%r:yr(i-1,0,r);return this.goTo(a)},t.prototype.next=function(){var n=this.attributes.loop,r=this.pageViews.length,i=this.currPage;if(!n&&i>=r-1)return null;var a=n?(i+1)%r:yr(i+1,0,r);return this.goTo(a)},t.prototype.renderClipPath=function(n){var r=this.pageShape,i=r.pageWidth,a=r.pageHeight;if(!i||!a){this.contentGroup.style.clipPath=void 0;return}this.clipPath=n.maybeAppendByClassName(Ga.clipPath,"rect").styles({width:i,height:a}),this.contentGroup.attr("clipPath",this.clipPath.node())},t.prototype.setVisiblePages=function(n){this.playWindow.children.forEach(function(r,i){n.includes(i)?Vp(r):Vc(r)})},t.prototype.adjustControllerLayout=function(){var n=this,r=n.prevBtnGroup,i=n.nextBtnGroup,a=n.pageInfoGroup,o=this.attributes,s=o.orientation,l=o.controllerPadding,c=a.getBBox(),u=c.width;c.height;var f=ee(s==="horizontal"?[-180,0]:[-90,90],2),d=f[0],h=f[1];r.setLocalEulerAngles(d),i.setLocalEulerAngles(h);var p=r.getBBox(),g=p.width,v=p.height,y=i.getBBox(),x=y.width,C=y.height,_=Math.max(g,u,x),S=s==="horizontal"?{offset:[[0,0],[g/2+l,0],[g+u+l*2,0]],textAlign:"start"}:{offset:[[_/2,-v-l],[_/2,0],[_/2,C+l]],textAlign:"center"},O=ee(S.offset,3),E=ee(O[0],2),k=E[0],$=E[1],T=ee(O[1],2),M=T[0],R=T[1],N=ee(O[2],2),D=N[0],F=N[1],V=S.textAlign,z=a.querySelector("text");z&&(z.style.textAlign=V),r.setLocalPosition(k,$),a.setLocalPosition(M,R),i.setLocalPosition(D,F)},t.prototype.updatePageInfo=function(){var n,r=this,i=r.currPage,a=r.pageViews,o=r.attributes.formatter;a.length<2||((n=this.pageInfoGroup.querySelector(Ga.pageInfo.class))===null||n===void 0||n.attr("text",o(i+1,a.length)),this.adjustControllerLayout())},t.prototype.getFollowingPageDiff=function(n){var r=this.currPage;if(r===n)return[0,0];var i=this.attributes.orientation,a=this.pageShape,o=a.pageWidth,s=a.pageHeight,l=n<r?-1:1;return i==="horizontal"?[l*o,0]:[0,l*s]},t.prototype.prepareFollowingPage=function(n){var r=this,i=r.currPage,a=r.pageViews;if(this.setVisiblePages([n,i]),n!==i){var o=ee(this.getFollowingPageDiff(n),2),s=o[0],l=o[1];a[n].setLocalPosition(s,l)}},t.prototype.renderController=function(n){var r=this,i=this.attributes.controllerSpacing,a=this.pageShape,o=a.pageWidth,s=a.pageHeight,l=this.pageViews.length>=2,c=n.maybeAppendByClassName(Ga.controller,"g");if(uv(c.node(),l),!!l){var u=Wt(this.attributes,"button"),f=Wt(this.attributes,"pageNum"),d=ee(Il(u),2),h=d[0],p=d[1],g=h.size,v=ei(h,["size"]),y=!c.select(Ga.prevBtnGroup.class).node(),x=c.maybeAppendByClassName(Ga.prevBtnGroup,"g").styles(p);this.prevBtnGroup=x.node();var C=x.maybeAppendByClassName(Ga.prevBtn,"path"),_=c.maybeAppendByClassName(Ga.nextBtnGroup,"g").styles(p);this.nextBtnGroup=_.node();var S=_.maybeAppendByClassName(Ga.nextBtn,"path");
52[C,S].forEach(function(E){E.styles(Ne(Ne({},v),{transformOrigin:"center"})),Kb(E.node(),g)});var O=c.maybeAppendByClassName(Ga.pageInfoGroup,"g");this.pageInfoGroup=O.node(),O.maybeAppendByClassName(Ga.pageInfo,"text").styles(f),this.updatePageInfo(),c.node().setLocalPosition(o+i,s/2),y&&(this.prevBtnGroup.addEventListener("click",function(){r.prev()}),this.nextBtnGroup.addEventListener("click",function(){r.next()}))}},t.prototype.render=function(n,r){var i=n.x,a=i===void 0?0:i,o=n.y,s=o===void 0?0:o;this.attr("transform","translate(".concat(a,", ").concat(s,")"));var l=_t(r);this.renderClipPath(l),this.renderController(l),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},t.prototype.bindEvents=function(){var n=this,r=qR(function(){return n.render(n.attributes,n)},50);this.playWindow.addEventListener(Ft.INSERTED,r),this.playWindow.addEventListener(Ft.REMOVED,r)},t}(ri);function Kwe(e,t,n){var r=Math.round((e-n)/t);return n+r*t}function Jwe(e,t,n){var r=1.4,i=r*n;return[["M",e-n,t-i],["L",e+n,t-i],["L",e+n,t+i],["L",e-n,t+i],["Z"]]}var Rz=1.4,jz=.4;function Qwe(e,t,n){var r=n,i=r*Rz,a=r/2,o=r/6,s=e+i*jz;return[["M",e,t],["L",s,t+a],["L",e+i,t+a],["L",e+i,t-a],["L",s,t-a],["Z"],["M",s,t+o],["L",e+i-2,t+o],["M",s,t-o],["L",e+i-2,t-o]]}function e_e(e,t,n){var r=n,i=r*Rz,a=r/2,o=r/6,s=t+i*jz;return[["M",e,t],["L",e-a,s],["L",e-a,t+i],["L",e+a,t+i],["L",e+a,s],["Z"],["M",e-o,s],["L",e-o,t+i-2],["M",e+o,s],["L",e+o,t+i-2]]}gn.registerSymbol("hiddenHandle",Jwe);gn.registerSymbol("verticalHandle",Qwe);gn.registerSymbol("horizontalHandle",e_e);function t_e(e,t,n,r){var i,a=ee(e,2),o=a[0],s=a[1],l=ee(t,2),c=l[0],u=l[1],f=ee(n,2),d=f[0],h=f[1],p=ee([c,u],2),g=p[0],v=p[1],y=v-g;return g>v&&(i=ee([v,g],2),g=i[0],v=i[1]),y>s-o?[o,s]:g<o?d===o&&h===v?[o,v]:[o,y+o]:v>s?h===s&&d===g?[g,s]:[s-y,s]:[g,v]}function ws(e,t,n){return e===void 0&&(e="horizontal"),e==="horizontal"?t:n}var _a=ho({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item");function n_e(e){var t=e.querySelector(_a.marker.class);return t?t.style:{}}var r_e=function(e){lr(t,e);function t(n){return e.call(this,n,{span:[1,1],marker:function(){return new Ns({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this}return Object.defineProperty(t.prototype,"showValue",{get:function(){var n=this.attributes.valueText;return n?typeof n=="string"||typeof n=="number"?n!=="":typeof n=="function"?!0:n.attr("text")!=="":!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actualSpace",{get:function(){var n=this.labelGroup,r=this.valueGroup,i=this.attributes.markerSize,a=n.node().getBBox(),o=a.width,s=a.height,l=r.node().getBBox(),c=l.width,u=l.height;return{markerWidth:i,labelWidth:o,valueWidth:c,height:Math.max(i,s,u)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"span",{get:function(){var n=this.attributes.span;if(!n)return[1,1];var r=ee(vi(n),2),i=r[0],a=r[1],o=this.showValue?a:0,s=i+o;return[i/s,o/s]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shape",{get:function(){var n,r=this.attributes,i=r.markerSize,a=r.width,o=this.actualSpace,s=o.markerWidth,l=o.height,c=this.actualSpace,u=c.labelWidth,f=c.valueWidth,d=ee(this.spacing,2),h=d[0],p=d[1];if(a){var g=a-i-h-p,v=ee(this.span,2),y=v[0],x=v[1];n=ee([y*g,x*g],2),u=n[0],f=n[1]}var C=s+u+f+h+p;return{width:C,height:l,markerWidth:s,labelWidth:u,valueWidth:f}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"spacing",{get:function(){var n=this.attributes.spacing;if(!n)return[0,0];var r=ee(vi(n),2),i=r[0],a=r[1];return this.showValue?[i,a]:[i,0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layout",{get:function(){var n=this.shape,r=n.markerWidth,i=n.labelWidth,a=n.valueWidth,o=n.width,s=n.height,l=ee(this.spacing,2),c=l[0],u=l[1];return{height:s,width:o,markerWidth:r,labelWidth:i,valueWidth:a,position:[r/2,r+c,r+i+c+u]}}
52,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleSize",{get:function(){var n=n_e(this.markerGroup.node()),r=this.attributes,i=r.markerSize,a=r.markerStrokeWidth,o=a===void 0?n.strokeWidth:a,s=r.markerLineWidth,l=s===void 0?n.lineWidth:s,c=r.markerStroke,u=c===void 0?n.stroke:c,f=+(o||l||(u?1:0))*Math.sqrt(2),d=this.markerGroup.node().getBBox(),h=d.width,p=d.height;return(1-f/Math.max(h,p))*i},enumerable:!1,configurable:!0}),t.prototype.renderMarker=function(n){var r=this,i=this.attributes.marker,a=Wt(this.attributes,"marker");this.markerGroup=n.maybeAppendByClassName(_a.markerGroup,"g").style("zIndex",0),da(!!i,this.markerGroup,function(){var o,s=r.markerGroup.node(),l=(o=s.childNodes)===null||o===void 0?void 0:o[0],c=typeof i=="string"?new gn({style:{symbol:i},className:_a.marker.name}):i();l?c.nodeName===l.nodeName?l instanceof gn?l.update(Ne(Ne({},a),{symbol:i})):(cCe(l,c),_t(l).styles(a)):(l.remove(),_t(c).attr("className",_a.marker.name).styles(a),s.appendChild(c)):(c instanceof gn||_t(c).attr("className",_a.marker.name).styles(a),s.appendChild(c)),r.markerGroup.node().scale(1/r.markerGroup.node().getScale()[0]);var u=Kb(r.markerGroup.node(),r.scaleSize);r.markerGroup.node().style._transform="scale(".concat(u,")")})},t.prototype.renderLabel=function(n){var r=Wt(this.attributes,"label"),i=r.text,a=ei(r,["text"]);this.labelGroup=n.maybeAppendByClassName(_a.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(_a.label,function(){return rf(i)}).styles(a)},t.prototype.renderValue=function(n){var r=this,i=Wt(this.attributes,"value"),a=i.text,o=ei(i,["text"]);this.valueGroup=n.maybeAppendByClassName(_a.valueGroup,"g").style("zIndex",0),da(this.showValue,this.valueGroup,function(){r.valueGroup.maybeAppendByClassName(_a.value,function(){return rf(a)}).styles(o)})},t.prototype.renderBackground=function(n){var r=this.shape,i=r.width,a=r.height,o=Wt(this.attributes,"background");this.background=n.maybeAppendByClassName(_a.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(_a.background,"rect").styles(Ne({width:i,height:a},o))},t.prototype.adjustLayout=function(){var n=this.layout,r=n.labelWidth,i=n.valueWidth,a=n.height,o=ee(n.position,3),s=o[0],l=o[1],c=o[2],u=a/2;this.markerGroup.styles({transform:"translate(".concat(s,", ").concat(u,")").concat(this.markerGroup.node().style._transform)}),this.labelGroup.styles({transform:"translate(".concat(l,", ").concat(u,")")}),k7(this.labelGroup.select(_a.label.class).node(),Math.ceil(r)),this.showValue&&(this.valueGroup.styles({transform:"translate(".concat(c,", ").concat(u,")")}),k7(this.valueGroup.select(_a.value.class).node(),Math.ceil(i)))},t.prototype.render=function(n,r){var i=_t(r),a=n.x,o=a===void 0?0:a,s=n.y,l=s===void 0?0:s;i.styles({transform:"translate(".concat(o,", ").concat(l,")")}),this.renderMarker(i),this.renderLabel(i),this.renderValue(i),this.renderBackground(i),this.adjustLayout()},t}(ri),Cu=ho({page:"item-page",navigator:"navigator",item:"item"},"items"),h$=function(e,t,n){return n===void 0&&(n=!0),e?t(e):n},i_e=function(e){lr(t,e);function t(n){var r=e.call(this,n,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:m9,mouseenter:m9,mouseleave:m9})||this;return r.navigatorShape=[0,0],r}return Object.defineProperty(t.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"grid",{get:function(){var n=this.attributes,r=n.gridRow,i=n.gridCol,a=n.data;if(!r&&!i)throw new Error("gridRow and gridCol can not be set null at the same time");return r&&i?[r,i]:r?[r,a.length]:[a.length,i]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderData",{get:function(){var n=this.attributes,r=n.data,i=n.layout,a=Wt(this.attributes,"item"),o=r.map(function(s,l){var c=s.id,u=c===void 0?l:c,f=s.label,d=s.value;return{id:"".concat(u),index:l,style:Ne({layout:i,labelText:f,valueText:d},Object.fromEntries(Object.entries(a).map(function(h){var p=ee(h,2),g=p[0],v=p[1];return[g,Ta(v,[s,l,r])]})))}});return o}
52,enumerable:!1,configurable:!0}),t.prototype.getGridLayout=function(){var n=this,r=this.attributes,i=r.orientation,a=r.width,o=r.rowPadding,s=r.colPadding,l=ee(this.navigatorShape,1),c=l[0],u=ee(this.grid,2),f=u[0],d=u[1],h=d*f,p=0;return this.pageViews.children.map(function(g,v){var y,x,C=Math.floor(v/h),_=v%h,S=n.ifHorizontal(d,f),O=[Math.floor(_/S),_%S];i==="vertical"&&O.reverse();var E=ee(O,2),k=E[0],$=E[1],T=(a-c-(d-1)*s)/d,M=g.getBBox().height,R=ee([0,0],2),N=R[0],D=R[1];return i==="horizontal"?(y=ee([p,k*(M+o)],2),N=y[0],D=y[1],p=$===d-1?0:p+T+s):(x=ee([$*(T+s),p],2),N=x[0],D=x[1],p=k===f-1?0:p+M+o),{page:C,index:v,row:k,col:$,pageIndex:_,width:T,height:M,x:N,y:D}})},t.prototype.getFlexLayout=function(){var n=this.attributes,r=n.width,i=n.height,a=n.rowPadding,o=n.colPadding,s=ee(this.navigatorShape,1),l=s[0],c=ee(this.grid,2),u=c[0],f=c[1],d=ee([r-l,i],2),h=d[0],p=d[1],g=ee([0,0,0,0,0,0,0,0],8),v=g[0],y=g[1],x=g[2],C=g[3],_=g[4],S=g[5],O=g[6],E=g[7];return this.pageViews.children.map(function(k,$){var T,M,R,N,D=k.getBBox(),F=D.width,V=D.height,z=O===0?0:o,B=O+z+F;if(B<=h&&h$(_,function(Y){return Y<f}))return T=ee([O+z,E,B],3),v=T[0],y=T[1],O=T[2],{width:F,height:V,x:v,y,page:x,index:$,pageIndex:C++,row:S,col:_++};M=ee([S+1,0,0,E+V+a],4),S=M[0],_=M[1],O=M[2],E=M[3];var G=E+V;return G<=p&&h$(S,function(Y){return Y<u})?(R=ee([O,E,F],3),v=R[0],y=R[1],O=R[2],{width:F,height:V,x:v,y,page:x,index:$,pageIndex:C++,row:S,col:_++}):(N=ee([0,0,F,0,x+1,0,0,0],8),v=N[0],y=N[1],O=N[2],E=N[3],x=N[4],C=N[5],S=N[6],_=N[7],{width:F,height:V,x:v,y,page:x,index:$,pageIndex:C++,row:S,col:_++})})},Object.defineProperty(t.prototype,"itemsLayout",{get:function(){this.navigatorShape=[0,0];var n=this.attributes.layout==="grid"?this.getGridLayout:this.getFlexLayout,r=n.call(this);return r.slice(-1)[0].page>0?(this.navigatorShape=[55,0],n.call(this)):r},enumerable:!1,configurable:!0}),t.prototype.ifHorizontal=function(n,r){var i=this.attributes.orientation;return ws(i,n,r)},t.prototype.flattenPage=function(n){n.querySelectorAll(Cu.item.class).forEach(function(r){n.appendChild(r)}),n.querySelectorAll(Cu.page.class).forEach(function(r){var i=n.removeChild(r);i.destroy()})},t.prototype.renderItems=function(n){var r=this.attributes,i=r.click,a=r.mouseenter,o=r.mouseleave;this.flattenPage(n);var s=this.dispatchCustomEvent.bind(this);_t(n).selectAll(Cu.item.class).data(this.renderData,function(l){return l.id}).join(function(l){return l.append(function(c){var u=c.style;return new r_e({style:u})}).attr("className",Cu.item.name).on("click",function(){i==null||i(this),s("itemClick",{item:this})}).on("pointerenter",function(){a==null||a(this),s("itemMouseenter",{item:this})}).on("pointerleave",function(){o==null||o(this),s("itemMouseleave",{item:this})})},function(l){return l.each(function(c){var u=c.style;this.update(u)})},function(l){return l.remove()})},t.prototype.relayoutNavigator=function(){var n,r=this.attributes,i=r.layout,a=r.width,o=((n=this.pageViews.children[0])===null||n===void 0?void 0:n.getBBox().height)||0,s=ee(this.navigatorShape,2),l=s[0],c=s[1];this.navigator.update(i==="grid"?{pageWidth:a-l,pageHeight:o-c}:{})},t.prototype.adjustLayout=function(){var n=this,r=Object.entries(Hbe(this.itemsLayout,"page")).map(function(a){var o=ee(a,2),s=o[0],l=o[1];return{page:s,layouts:l}}),i=ot([],ee(this.navigator.getContainer().children),!1);r.forEach(function(a){var o=a.layouts,s=n.pageViews.appendChild(new Yr({className:Cu.page.name}));o.forEach(function(l){var c=l.x,u=l.y,f=l.index,d=l.width,h=l.height,p=i[f];s.appendChild(p),f3e(p,"__layout__",l),p.update({x:c,y:u,width:d,height:h})})}),this.relayoutNavigator()},t.prototype.renderNavigator=function(n){var r=this.attributes.orientation,i=Wt(this.attributes,"nav"),a=Nl({orientation:r},i),o=this;return n.selectAll(Cu.navigator.class).data(["nav"]).join(function(s){return s.append(function(){return new Zwe({style:a})}).attr("className",Cu.navigator.name).each(function(){o.navigator=this})},function(s){return s.each(function(){this.update(a)})},function(s){return s.remove()}),this.navigator},t.prototype.getBBox=function(){return this.navigator.getBBox()},t.prototype.render=function(n,r){var i=this.attributes.data;if(!(!i||i.length===0)){var a=this.renderNavigator(_t(r));this.renderItems(a.getContainer()),this.adjustLayout()}},t.prototype.dispatchCustomEvent=function(n,r){var i=new Mn(n,{detail:r});this.dispatchEvent(i)},t}(ri),E1=ho({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),Dz={showLabel:!0,formatter:function(e){return e.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0},a_e=function(e){lr(t,e);function t(n){return e.call(this,n,Dz)||this}return t.prototype.render=function(n,r){var i=_t(r).maybeAppendByClassName(E1.markerGroup,"g");this.renderMarker(i);var a=_t(r).maybeAppendByClassName(E1.labelGroup,"g");this.renderLabel(a)},t.prototype.renderMarker=function(n){var r=this,i=this.attributes,a=i.orientation,o=i.markerSymbol,s=o===void 0?ws(a,"horizontalHandle","verticalHandle"):o;da(!!s,n,function(l){var c=Wt(r.attributes,"marker"),u=Ne({symbol:s},c);r.marker=l.maybeAppendByClassName(E1.marker,function(){return new gn({style:u})}).update(u)})},t.prototype.renderLabel=function(n){var r=this,i=this.attributes,a=i.showLabel,o=i.orientation,s=i.spacing,l=s===void 0?0:s,c=i.formatter;da(a,n,function(u){var f,d=Wt(r.attributes,"label"),h=d.text,p=ei(d,["text"]),g=((f=u.select(E1.marker.class))===null||f===void 0?void 0:f.node().getBBox())||{},v=g.width,y=v===void 0?0:v,x=g.height,C=x===void 0?0:x,_=ee(ws(o,[0,C+l,"center","top"],[y+l,0,"start","middle"]),4),S=_[0],O=_[1],E=_[2],k=_[3];u.maybeAppendByClassName(E1.label,"text").styles(Ne(Ne({},p),{x:S,y:O,text:c(h).toString(),textAlign:E,textBaseline:k}))})},t}(ri),Fz={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},o_e=Nl({},Fz,{}),s_e=Nl({},Fz,gs(Dz,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroun
vendor: 5,208 bytes, line 52
52dFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"}),l_e=.01,pi=ho({title:"title",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend"),c_e=function(e){lr(t,e);function t(n){return e.call(this,n,o_e)||this}return t.prototype.renderTitle=function(n,r,i){var a=this.attributes,o=a.showTitle,s=a.titleText,l=Wt(this.attributes,"title"),c=ee(Il(l),2),u=c[0],f=c[1];this.titleGroup=n.maybeAppendByClassName(pi.titleGroup,"g").styles(f);var d=Ne(Ne({width:r,height:i},u),{text:o?s:""});this.title=this.titleGroup.maybeAppendByClassName(pi.title,function(){return new Lz({style:d})}).update(d)},t.prototype.renderItems=function(n,r){var i=r.x,a=r.y,o=r.width,s=r.height,l=Wt(this.attributes,"title",!0),c=ee(Il(l),2),u=c[0],f=c[1],d=Ne(Ne({},u),{width:o,height:s,x:0,y:0});this.itemsGroup=n.maybeAppendByClassName(pi.itemsGroup,"g").styles(Ne(Ne({},f),{transform:"translate(".concat(i,", ").concat(a,")")}));var h=this;this.itemsGroup.selectAll(pi.items.class).data(["items"]).join(function(p){return p.append(function(){return new i_e({style:d})}).attr("className",pi.items.name).each(function(){h.items=_t(this)})},function(p){return p.update(d)},function(p){return p.remove()})},t.prototype.adjustLayout=function(){var n=this.attributes.showTitle;if(n){var r=this.title.node().getAvailableSpace(),i=r.x,a=r.y;this.itemsGroup.node().style.transform="translate(".concat(i,", ").concat(a,")")}},Object.defineProperty(t.prototype,"availableSpace",{get:function(){var n=this.attributes,r=n.showTitle,i=n.width,a=n.height;return r?this.title.node().getAvailableSpace():new tr(0,0,i,a)},enumerable:!1,configurable:!0}),t.prototype.getBBox=function(){var n,r,i=(n=this.title)===null||n===void 0?void 0:n.node(),a=(r=this.items)===null||r===void 0?void 0:r.node();return!i||!a?e.prototype.getBBox.call(this):Hwe(i,a)},t.prototype.render=function(n,r){var i=this.attributes,a=i.width,o=i.height,s=i.x,l=s===void 0?0:s,c=i.y,u=c===void 0?0:c,f=_t(r);r.style.transform="translate(".concat(l,", ").concat(u,")"),this.renderTitle(f,a,o),this.renderItems(f,this.availableSpace),this.adjustLayout()},t}(ri),u_e={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(e){return e.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},Z9=ho({background:"background",labelGroup:"label-group",label:"label"},"indicator"),f_e=function(e){lr(t,e);function t(n){var r=e.call(this,n,u_e)||this;return r.point=[0,0],r.group=r.appendChild(new Yr({})),r.isMutationObserved=!0,r}return t.prototype.renderBackground=function(){if(this.label){var n=this.attributes,r=n.position,i=n.padding,a=ee(vi(i),4),o=a[0],s=a[1],l=a[2],c=a[3],u=this.label.node().getLocalBounds(),f=u.min,d=u.max,h=new tr(f[0]-c,f[1]-o,d[0]+s-f[0]+c,d[1]+l-f[1]+o),p=this.getPath(r,h),g=Wt(this.attributes,"background");this.background=_t(this.group).maybeAppendByClassName(Z9.background,"path").styles(Ne(Ne({},g),{d:p})),this.group.appendChild(this.label.node())}},t.prototype.renderLabel=function(){var n=this.attributes,r=n.formatter,i=n.labelText,a=Wt(this.attributes,"label"),o=ee(Il(a),2),s=o[0],l=o[1];s.text;var c=ei(s,["text"]);if(this.label=_t(this.group).maybeAppendByClassName(Z9.labelGroup,"g").styles(l),!!i){var u=this.label.maybeAppendByClassName(Z9.label,function(){return rf(r(i))}).style("text",r(i).toString());u.selectAll("text").styles(c)}},t.prototype.adjustLayout=function(){var n=ee(this.point,2),r=n[0],i=n[1],a=this.attributes,o=a.x,s=a.y;this.group.attr("transform","translate(".concat(o-r,", ").concat(s-i,")"))},t.prototype.getPath=function(n,r){var i=this.attributes.radius,a=r.x,o=r.y,s=r.width,l=r.height,c=[["M",a+i,o],["L",a+s-i,o],["A",i,i,0,0,1,a+s,o+i],["L",a+s,o+l-i],["A",i,i,0,0,1,a+s-i,o+l],["L",a+i,o+l],["A",i,i,0,0,1,a,o+l-i],["L",a,o+i],["A",i,i,0,0,1,a+i,o],["Z"]],u={top:4,right:6,bottom:0,left:2},f=u[n],d=this.createCorner([c[f].slice(-2),c[f+1].slice(-2)]);return c.splice.apply(c,ot([f+1,1],ee(d),!1)),c[0][0]="M",c},t.prototype.createCorner=function(n,r){r===void 0&&(r=10);var i=.8,a=lCe.apply(void 0,ot([],ee(n),!1)),o=ee(n,2),s=ee(o[0],2),l=s[0],c=s[1],u=ee(o[1],2),f=u[0],d=u[1],h=ee(a?[f-l,[l,f]]:[d-c,[c,d]],2),p=h[0],g=ee(h[1],2),v=g[0],y=g[1],x=p/2,C=p/Math.abs(p),_=r*C,S=_/2,O=_*Math.sqrt(3)/2*i,E=ee([v,v+x-S,v+x,v+x+S,y],5),k=E[0],$=E[1],T=E[2],M=E[3],R=E[4];return a?(this.point=[T,c-O],[["L",k,c],["L",$,c],["L",T,c-O],["L",M,c],["L",R,c]]):(this.point=[l+O,T],[["L",l,k],["L",l,$],["L",l+O,T],["L",l,M],["L",l,R]])},t.prototype.applyVisibility=function(){var n=this.attributes.visibility;n==="hidden"?Vc(this):Vp(this)},t.prototype.bindEvents=function(){this.label.on(Ft.BOUNDS_CHANGED,this.renderBackgroun
52d)},t.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},t}(ri);function d_e(e,t){for(var n=1;n<e.length;n+=1){var r=e[n-1],i=e[n];if(t>=r&&t<=i)return[r,i]}return[t,t]}function h_e(e,t,n){var r=Array.from(t),i=e.length;return new Array(i).fill(0).reduce(function(a,o,s){var l=r[s%r.length];return a+=" ".concat(e[s],":").concat(l).concat(s<i-1?" ".concat(e[s+1],":").concat(l):"")},"l(".concat(n==="horizontal"?"0":"270",")"))}function p$(e,t){var n=ee(d_e(e,t),2),r=n[0],i=n[1];return{tick:t>(r+i)/2?i:r,range:[r,i]}}var Jh=ho({trackGroup:"background-group",track:"background",selectionGroup:"ribbon-group",selection:"ribbon",clipPath:"clip-path"},"ribbon");function Bz(e){var t=e.orientation,n=e.size,r=e.length;return ws(t,[r,n],[n,r])}function zz(e){var t=e.type,n=ee(Bz(e),2),r=n[0],i=n[1];return t==="size"?[["M",0,i],["L",0+r,0],["L",0+r,i],["Z"]]:[["M",0,i],["L",0,0],["L",0+r,0],["L",0+r,i],["Z"]]}function p_e(e){return zz(e)}function g_e(e){var t=e.orientation,n=e.color,r=e.block,i=e.partition,a;if(Hr(n)){var o=20;a=new Array(o).fill(0).map(function(c,u,f){return n(u/(f.length-1))})}else a=n;var s=a.length,l=a.map(function(c){return Ec(c).toString()});return s?s===1?l[0]:r?h_e(i,l,t):l.reduce(function(c,u,f){return c+=" ".concat(f/(s-1),":").concat(u)},"l(".concat(ws(t,"0","270"),")")):""}function m_e(e){var t=e.orientation,n=e.range;if(!n)return[];var r=ee(Bz(e),2),i=r[0],a=r[1],o=ee(n,2),s=o[0],l=o[1],c=ws(t,s*i,0),u=ws(t,0,s*a),f=ws(t,l*i,i),d=ws(t,a,l*a);return[["M",c,u],["L",c,d],["L",f,d],["L",f,u],["Z"]]}function v_e(e,t){var n=Wt(t,"track");e.maybeAppendByClassName(Jh.track,"path").styles(Ne({d:zz(t)},n))}function y_e(e,t){var n=Wt(t,"selection"),r=g_e(t),i=e.maybeAppendByClassName(Jh.selection,"path").styles(Ne({d:p_e(t),fill:r},n)),a=i.maybeAppendByClassName(Jh.clipPath,"path").styles({d:m_e(t)}).node();i.style("clipPath",a)}var x_e=function(e){lr(t,e);function t(n){return e.call(this,n,{type:"color",orientation:"horizontal",size:30,range:[0,1],length:200,block:!1,partition:[],color:["#fff","#000"],trackFill:"#e5e5e5"})||this}return t.prototype.render=function(n,r){var i=_t(r).maybeAppendByClassName(Jh.trackGroup,"g");v_e(i,n);var a=_t(r).maybeAppendByClassName(Jh.selectionGroup,"g");y_e(a,n)},t}(ri);function b_e(e){return{min:Math.min.apply(Math,ot([],ee(e.map(function(t){return t.value})),!1)),max:Math.max.apply(Math,ot([],ee(e.map(function(t){return t.value})),!1))}}var C_e=function(e){lr(t,e);function t(n){var r=e.call(this,n,s_e)||this;return r.eventToOffsetScale=new Gn({}),r.innerRibbonScale=new Gn({}),r.cacheLabelBBox=null,r.cacheHandleBBox=null,r.onHovering=function(i){var a=r.attributes,o=a.data,s=a.block;i.stopPropagation();var l=r.getValueByCanvasPoint(i);if(s){var c=p$(o.map(function(d){var h=d.value;return h}),l).range,u=r.getRealSelection(c);r.showIndicator((c[0]+c[1])/2,"".concat(u[0],"-").concat(u[1])),r.dispatchIndicated(l,c)}else{var f=r.getTickValue(l);r.showIndicator(f,"".concat(r.getRealValue(f))),r.dispatchIndicated(f)}},r.onDragStart=function(i){return function(a){a.stopPropagation(),r.attributes.slidable&&(r.target=i,r.prevValue=r.getTickValue(r.getValueByCanvasPoint(a)),document.addEventListener("mousemove",r.onDragging),document.addEventListener("touchmove",r.onDragging),document.addEventListener("mouseleave",r.onDragEnd),document.addEventListener("mouseup",r.onDragEnd),document.addEventListener("mouseup",r.onDragEnd),document.addEventListener("touchend",r.onDragEnd))}},r.onDragging=function(i){var a=r.target;r.updateMouse();var o=ee(r.selection,2),s=o[0],l=o[1],c=r.getTickValue(r.getValueByCanvasPoint(i)),u=c-r.prevValue;a==="start"?s!==c&&r.updateSelection(c,l):a==="end"?l!==c&&r.updateSelection(s,c):a==="ribbon"&&u!==0&&(r.prevValue=c,r.updateSelection(u,u,!0))},r.onDragEnd=function(){r.style.cursor="pointer",document.removeEventListener("mousemove",r.onDragging),document.removeEventListener("touchmove",r.onDragging),document.removeEventListener("mouseup",r.onDragEnd),document.removeEventListener("touchend",r.onDragEnd)},r}return Object.defineProperty(t.prototype,"handleOffsetRatio",{get:function(){return this.ifHorizontal(.5,.5)}
52,enumerable:!1,configurable:!0}),t.prototype.getBBox=function(){var n=this.attributes,r=n.width,i=n.height;return new tr(0,0,r,i)},t.prototype.render=function(n,r){var i=this,a=n.showLabel;this.renderTitle(_t(r));var o=this.availableSpace,s=o.x,l=o.y,c=_t(r).maybeAppendByClassName(pi.contentGroup,"g").styles({transform:"translate(".concat(s,", ").concat(l,")")}),u=c.maybeAppendByClassName(pi.labelGroup,"g").styles({zIndex:1});da(!!a,u,function(d){i.renderLabel(d)});var f=c.maybeAppendByClassName(pi.ribbonGroup,"g").styles({zIndex:0});this.handlesGroup=c.maybeAppendByClassName(pi.handlesGroup,"g").styles({zIndex:2}),this.renderHandles(),this.renderRibbon(f),this.renderIndicator(c),this.adjustLabel(),this.adjustHandles()},Object.defineProperty(t.prototype,"range",{get:function(){var n=this.attributes,r=n.data,i=n.domain;return i?{min:i[0],max:i[1]}:b_e(r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ribbonScale",{get:function(){var n=this.range,r=n.min,i=n.max;return this.innerRibbonScale.update({domain:[r,i],range:[0,1]}),this.innerRibbonScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ribbonRange",{get:function(){var n=ee(this.selection,2),r=n[0],i=n[1],a=this.ribbonScale;return[a.map(r),a.map(i)]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selection",{get:function(){var n=this.range,r=n.min,i=n.max,a=this.attributes.defaultValue,o=a===void 0?[r,i]:a,s=ee(o,2),l=s[0],c=s[1];return[l,c]},enumerable:!1,configurable:!0}),t.prototype.ifHorizontal=function(n,r){return ws(this.attributes.orientation,typeof n=="function"?n():n,typeof r=="function"?r():r)},t.prototype.renderTitle=function(n){var r=this.attributes,i=r.showTitle,a=r.titleText,o=r.width,s=r.height,l=Wt(this.attributes,"title"),c=Ne(Ne({},l),{width:o,height:s,text:a}),u=this;n.selectAll(pi.title.class).data(i?[a]:[]).join(function(f){return f.append(function(){return new Lz({style:c})}).attr("className",pi.title.name).each(function(){u.title=this})},function(f){return f.update(c)},function(f){return f.each(function(){u.title=void 0}).remove()})},Object.defineProperty(t.prototype,"availableSpace",{get:function(){if(this.title)return this.title.getAvailableSpace();var n=this.attributes,r=n.width,i=n.height;return new tr(0,0,r,i)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFixedSpacing",{get:function(){var n=this.attributes.showTick;return n?5:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelPosition",{get:function(){var n=this.attributes,r=n.orientation,i=n.labelDirection,a={vertical:{positive:"right",negative:"left"},horizontal:{positive:"bottom",negative:"top"}};return a[r][i]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelBBox",{get:function(){var n,r=this.attributes.showLabel;if(!r)return new tr(0,0,0,0);if(this.cacheLabelBBox)return this.cacheLabelBBox;var i=((n=this.label.querySelector(Sn.labelGroup.class))===null||n===void 0?void 0:n.children.slice(-1)[0]).getBBox(),a=i.width,o=i.height;return this.cacheLabelBBox=new tr(0,0,a,o),this.cacheLabelBBox},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelShape",{get:function(){var n=this.attributes,r=n.showLabel,i=n.labelSpacing,a=i===void 0?0:i;if(!r)return{width:0,height:0,size:0,length:0};var o=this.labelBBox,s=o.width,l=o.height,c=this.ifHorizontal(l,s)+a+this.labelFixedSpacing,u=this.ifHorizontal(s,l);return{width:s,height:l,size:c,length:u}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ribbonBBox",{get:function(){var n=this.attributes,r=n.showHandle,i=n.ribbonSize,a=this.availableSpace,o=a.width,s=a.height,l=this.labelShape,c=l.size,u=l.length,f=ee(this.ifHorizontal([s,o],[o,s]),2),d=f[0],h=f[1],p=r?this.handleShape:{size:0,length:0},g=p.size,v=p.length,y=this.handleOffsetRatio,x=0,C=this.labelPosition;i?x=i:["bottom","right"].includes(C)?x=Math.min(d-c,(d-g)/y):d*(1-y)>g?x=Math.max(d-c,0):x=Math.max((d-c-g)/y,0);var _=Math.max(v,u),S=h-_,O=ee(this.ifHorizontal([S,x],[x,S]),2),E=O[0],k=O[1],$=["top","left"].includes(C)?c:0,T=ee(this.ifHorizontal([_/2,$],[$,_/2]),2),M=T[0],R=T[1];return new tr(M,R,E,k)}
52,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ribbonShape",{get:function(){var n=this.ribbonBBox,r=n.width,i=n.height;return this.ifHorizontal({size:i,length:r},{size:r,length:i})},enumerable:!1,configurable:!0}),t.prototype.renderRibbon=function(n){var r=this.attributes,i=r.data,a=r.type,o=r.orientation,s=r.color,l=r.block,c=Wt(this.attributes,"ribbon"),u=this.range,f=u.min,d=u.max,h=this.ribbonBBox,p=h.x,g=h.y,v=this.ribbonShape,y=v.length,x=v.size,C=Nl({transform:"translate(".concat(p,", ").concat(g,")"),length:y,size:x,type:a,orientation:o,color:s,block:l,partition:i.map(function(_){return(_.value-f)/(d-f)}),range:this.ribbonRange},c);this.ribbon=n.maybeAppendByClassName(pi.ribbon,function(){return new x_e({style:C})}).update(C)},t.prototype.getHandleClassName=function(n){return"".concat(pi.prefix("".concat(n,"-handle")))},t.prototype.renderHandles=function(){var n=this.attributes,r=n.showHandle,i=n.orientation,a=Wt(this.attributes,"handle"),o=ee(this.selection,2),s=o[0],l=o[1],c=Ne(Ne({},a),{orientation:i}),u=a.shape,f=u===void 0?"slider":u,d=f==="basic"?a_e:Sz,h=this;this.handlesGroup.selectAll(pi.handle.class).data(r?[{value:s,type:"start"},{value:l,type:"end"}]:[],function(p){return p.type}).join(function(p){return p.append(function(){return new d({style:c})}).attr("className",function(g){var v=g.type;return"".concat(pi.handle," ").concat(h.getHandleClassName(v))}).each(function(g){var v=g.type,y=g.value;this.update({labelText:y});var x="".concat(v,"Handle");h[x]=this,this.addEventListener("pointerdown",h.onDragStart(v))})},function(p){return p.update(c).each(function(g){var v=g.value;this.update({labelText:v})})},function(p){return p.each(function(g){var v=g.type,y="".concat(v,"Handle");h[y]=void 0}).remove()})},t.prototype.adjustHandles=function(){var n=ee(this.selection,2),r=n[0],i=n[1];this.setHandlePosition("start",r),this.setHandlePosition("end",i)},Object.defineProperty(t.prototype,"handleBBox",{get:function(){if(this.cacheHandleBBox)return this.cacheHandleBBox;if(!this.attributes.showHandle)return new tr(0,0,0,0);var n=this.startHandle.getBBox(),r=n.width,i=n.height,a=this.endHandle.getBBox(),o=a.width,s=a.height,l=ee([Math.max(r,o),Math.max(i,s)],2),c=l[0],u=l[1];return this.cacheHandleBBox=new tr(0,0,c,u),this.cacheHandleBBox},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handleShape",{get:function(){var n=this.handleBBox,r=n.width,i=n.height,a=ee(this.ifHorizontal([i,r],[r,i]),2),o=a[0],s=a[1];return{width:r,height:i,size:o,length:s}},enumerable:!1,configurable:!0}),t.prototype.setHandlePosition=function(n,r){var i=this.attributes.handleFormatter,a=this.ribbonBBox,o=a.x,s=a.y,l=this.ribbonShape.size,c=this.getOffset(r),u=ee(this.ifHorizontal([o+c,s+l*this.handleOffsetRatio],[o+l*this.handleOffsetRatio,s+c]),2),f=u[0],d=u[1],h=this.handlesGroup.select(".".concat(this.getHandleClassName(n))).node();h==null||h.update({transform:"translate(".concat(f,", ").concat(d,")"),formatter:i})},t.prototype.renderIndicator=function(n){var r=Wt(this.attributes,"indicator");this.indicator=n.maybeAppendByClassName(pi.indicator,function(){return new f_e({})}).update(r)},Object.defineProperty(t.prototype,"labelData",{get:function(){var n=this,r=this.attributes.data;return r.reduce(function(i,a,o,s){var l,c,u=(l=a==null?void 0:a.id)!==null&&l!==void 0?l:o.toString();if(i.push(Ne(Ne({},a),{id:u,index:o,type:"value",label:(c=a==null?void 0:a.label)!==null&&c!==void 0?c:a.value.toString(),value:n.ribbonScale.map(a.value)})),o<s.length-1){var f=s[o+1],d=ee([a.value,f.value],2),h=d[0],p=d[1],g=(h+p)/2;i.push(Ne(Ne({},a),{id:u,index:o,type:"range",range:[h,p],label:[h,p].join("~"),value:n.ribbonScale.map(g)}))}return i},[])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelStyle",{get:function(){var n=ee(["center","middle"],2),r=n[0],i=n[1],a=this.labelPosition;return a==="top"?i="bottom":a==="bottom"?i="top":a==="left"?r="end":a==="right"&&(r="start"),{labelTextAlign:r,labelTextBaseline:i}},enumerable:!1,configurable:!0}),t.prototype.renderLabel=function(n){var r=this.attributes,i=r.showTick,a=i===void 0?!1:i,o=r.labelFilter,s=r.labelFormatter,l=Wt(this.attributes,"tick"),c=Wt(this.attributes,"label"),u=c.align,f=Nl(Ne({showLine:!1,showGrid:!1,showTick:a,type:"linear",startPos:[0,0],endPos:[0,0],tickDirection:"negative",labelTransform:"rotate(0)"},this.labelStyle),gs(l,"tick"),gs(c,"label"),{data:this.labelData}),d={tickFilter:function(p,g,v){return(p==null?void 0:p.type)!=="value"?!1:o?o(p,p.index,v.filter(function(y){return y.type!=="value"})):!0},labelFilter:function(p,g,v){return(p==null?void 0:p.type)!==u?!1:o?o(p,p.index,v.filter(function(y){return y.type===u})):!0},labelFormatter:s},h=Ne(Ne(Ne({},f),d),{labelOverlap:[{type:"hide"}]});this.label=n.maybeAppendByClassName(pi.label,function(){return new iC({style:h})}).node(),this.label.update(h,!1)},Object.defineProperty(t.prototype,"labelAxisStyle",{get:function(){var n=this.attributes,r=n.showTick,i=n.labelDirection,a=n.labelSpacing,o=n.tickLength,s=this.ribbonShape.size,l=this.labelPosition,c=this.labelFixedSpacing,u=ee([0,0,0],3),f=u[0],d=u[1],h=u[2],p=o??s;
52return r?(h=p,d=c,i==="positive"?l==="right"?(f=p,h=p):l==="bottom"&&(f=h):i==="negative"&&(l==="top"||l==="left")&&(f=s)):i==="positive"?l==="right"?d=p:l==="bottom"&&(f=s+c,d=a):i==="negative"&&(l==="left"||l==="top")&&(d=a),{offset:f,spacing:d,tickLength:h}},enumerable:!1,configurable:!0}),t.prototype.adjustLabel=function(){var n=this.attributes.showLabel;if(n){var r=this.ribbonBBox,i=r.x,a=r.y,o=r.width,s=r.height,l=this.labelAxisStyle,c=l.offset,u=l.spacing,f=l.tickLength,d=ee(this.ifHorizontal([[i,a+c],[i+o,a+c]],[[i+c,a+s],[i+c,a]]),2),h=d[0],p=d[1];this.label.update({startPos:h,endPos:p,tickLength:f,labelSpacing:u},!1)}},t.prototype.bindEvents=function(){this.style.cursor="pointer",this.ribbon.on("pointerdown",this.onDragStart("ribbon")),this.ribbon.on("pointermove",this.onHovering),this.addEventListener("pointerout",this.hideIndicator)},t.prototype.showIndicator=function(n,r){r===void 0&&(r="".concat(n));var i=this.attributes.showIndicator;if(!i||typeof n!="number"){this.hideIndicator();return}var a=this.range,o=a.min,s=a.max,l=this.ribbonBBox,c=l.x,u=l.y,f=yr(n,o,s),d=this.getOffset(f),h=this.ifHorizontal([d+c,u],[c,d+u]);this.indicator.update({x:h[0],y:h[1],position:this.ifHorizontal("top","left"),labelText:r}),Vp(this.indicator.node())},t.prototype.hideIndicator=function(){Vc(this.indicator.node())},t.prototype.updateMouse=function(){this.attributes.slidable&&(this.style.cursor="grabbing")},t.prototype.setSelection=function(n,r){this.updateSelection(n,r)},t.prototype.updateSelection=function(n,r,i){var a;i===void 0&&(i=!1);var o=ee(this.selection,2),s=o[0],l=o[1],c=ee([n,r],2),u=c[0],f=c[1];i&&(u+=s,f+=l);var d=this.range,h=d.min,p=d.max;a=ee(t_e([h,p],[u,f],this.selection),2),u=a[0],f=a[1],this.update({defaultValue:[u,f]}),this.dispatchSelection()},Object.defineProperty(t.prototype,"step",{get:function(){var n=this.attributes.step,r=n===void 0?1:n,i=this.range,a=i.min,o=i.max;return Rn(r)?A7((o-a)*l_e,0):r},enumerable:!1,configurable:!0}),t.prototype.getTickValue=function(n){var r=this.attributes,i=r.data,a=r.block,o=this.range.min;return a?p$(i.map(function(s){var l=s.value;return l}),n).tick:Kwe(n,this.step,o)},t.prototype.getValueByCanvasPoint=function(n){var r=this.range,i=r.min,a=r.max,o=ee(this.ribbon.node().getPosition(),2),s=o[0],l=o[1],c=this.ifHorizontal(s,l),u=this.ifHorizontal.apply(this,ot([],ee(Nm(n)),!1)),f=u-c,d=yr(this.getOffset(f,!0),i,a);return d},t.prototype.getOffset=function(n,r){r===void 0&&(r=!1);var i=this.range,a=i.min,o=i.max,s=this.ribbonShape.length,l=this.eventToOffsetScale;return l.update({domain:[a,o],range:[0,s]}),r?l.invert(n):l.map(n)},t.prototype.getRealSelection=function(n){var r=this.range.max,i=ee(n,2),a=i[0],o=i[1];return this.ifHorizontal([a,o],[r-o,r-a])},t.prototype.getRealValue=function(n){var r=this.range.max;return this.ifHorizontal(n,r-n)},t.prototype.dispatchSelection=function(){var n=this.getRealSelection(this.selection),r=new Mn("valuechange",{detail:{value:n}});this.dispatchEvent(r)},t.prototype.dispatchIndicated=function(n,r){var i=this,a=this.range.max,o=this.ifHorizontal(function(){return{value:n,range:r}},function(){return{value:a-n,range:r?i.getRealSelection(r):void 0}}),s=new Mn("indicate",{detail:o});this.dispatchEvent(s)},t}(ri);function N7(e){return e===void 0&&(e=""),{CONTAINER:"".concat(e,"tooltip"),TITLE:"".concat(e,"tooltip-title"),LIST:"".concat(e,"tooltip-list"),LIST_ITEM:"".concat(e,"tooltip-list-item"),NAME:"".concat(e,"tooltip-list-item-name"),MARKER:"".concat(e,"tooltip-list-item-marker"),NAME_LABEL:"".concat(e,"tooltip-list-item-name-label"),VALUE:"".concat(e,"tooltip-list-item-value"),CROSSHAIR_X:"".concat(e,"tooltip-crosshair-x"),CROSSHAIR_Y:"".concat(e,"tooltip-crosshair-y")}}var g$={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"};function w_e(e){var t;e===void 0&&(e="");var n=N7(e);return t={},t[".".concat(n.CONTAINER)]={position:"absolute",visibility:"visible","z-index":8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},t[".".concat(n.TITLE)]={color:"rgba(0, 0, 0, 0.45)"},t[".".concat(n.LIST)]={margin:"0px","list-style-type":"none",padding:"0px"},t[".".concat(n.LIST_ITEM)]={"list-style-type":"none",display:"flex","line-height":"2em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},t[".".concat(n.MARKER)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},t[".".concat(n.NAME)]={display:"flex","align-items":"center","max-width":"216px"},t[".".concat(n.NAME_LABEL)]=Ne({flex:1}
52,g$),t[".".concat(n.VALUE)]=Ne({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},g$),t[".".concat(n.CROSSHAIR_X)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},t[".".concat(n.CROSSHAIR_Y)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},t}var __e=function(e){lr(t,e);function t(n){var r=this,i,a,o=(a=(i=n.style)===null||i===void 0?void 0:i.template)===null||a===void 0?void 0:a.prefixCls,s=N7(o);return r=e.call(this,n,{data:[],x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],enterable:!1,container:{x:0,y:0},bounding:null,template:{prefixCls:"",container:'<div class="'.concat(s.CONTAINER,'"></div>'),title:'<div class="'.concat(s.TITLE,'"></div>'),item:'<li class="'.concat(s.LIST_ITEM,`" data-index={index}>
53        <span class="`).concat(s.NAME,`">
54          <span class="`).concat(s.MARKER,`" style="background:{color}"></span>
55          <span class="`).concat(s.NAME_LABEL,`" title="{name}">{name}</span>
56        </span>
57        <span class="`).concat(s.VALUE,`" title="{value}">{value}</span>
58      </li>`)},style:w_e(o)})||this,r.timestamp=-1,r.prevCustomContentKey=r.attributes.contentKey,r.initShape(),r.render(r.attributes,r),r}return Object.defineProperty(t.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),t.prototype.getContainer=function(){return this.element},Object.defineProperty(t.prototype,"elementSize",{get:function(){var n=this.element.offsetWidth,r=this.element.offsetHeight;return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HTMLTooltipItemsElements",{get:function(){var n=this.attributes,r=n.data,i=n.template;return r.map(function(a,o){var s=a.name,l=s===void 0?"":s,c=a.color,u=c===void 0?"black":c,f=a.index,d=ei(a,["name","color","index"]),h=Ne({name:l,color:u,index:f??o},d);return $k(n3e(i.item,h))})},enumerable:!1,configurable:!0}),t.prototype.render=function(n,r){this.renderHTMLTooltipElement(),this.updatePosition()},t.prototype.destroy=function(){var n;(n=this.element)===null||n===void 0||n.remove(),e.prototype.destroy.call(this)},t.prototype.show=function(n,r){var i=this;if(n!==void 0&&r!==void 0){var a=this.element.style.visibility==="hidden",o=function(){i.attributes.x=n??i.attributes.x,i.attributes.y=r??i.attributes.y,i.updatePosition()};a?this.closeTransition(o):o()}this.element.style.visibility="visible"},t.prototype.hide=function(n,r){n===void 0&&(n=0),r===void 0&&(r=0);var i=this.attributes.enterable;i&&this.isCursorEntered(n,r)||(this.element.style.visibility="hidden")},t.prototype.initShape=function(){var n=this.attributes.template;this.element=$k(n.container),this.id&&this.element.setAttribute("id",this.id)},t.prototype.renderCustomContent=function(){if(!(this.prevCustomContentKey!==void 0&&this.prevCustomContentKey===this.attributes.contentKey)){this.prevCustomContentKey=this.attributes.contentKey;var n=this.attributes.content;n&&(typeof n=="string"?this.element.innerHTML=n:e$(this.element,n))}},t.prototype.renderHTMLTooltipElement=function(){var n,r,i=this.attributes,a=i.template,o=i.title,s=i.enterable,l=i.style,c=i.content,u=N7(a.prefixCls),f=this.element;if(this.element.style.pointerEvents=s?"auto":"none",c)this.renderCustomContent();else{o?(f.innerHTML=a.title,f.getElementsByClassName(u.TITLE)[0].innerHTML=o):(r=(n=f.getElementsByClassName(u.TITLE))===null||n===void 0?void 0:n[0])===null||r===void 0||r.remove();var d=this.HTMLTooltipItemsElements,h=document.createElement("ul");h.className=u.LIST,e$(h,d);var p=this.element.querySelector(".".concat(u.LIST));p?p.replaceWith(h):f.appendChild(h)}dCe(f,l)},t.prototype.getRelativeOffsetFromCursor=function(n){var r=this.attributes,i=r.position,a=r.offset,o=n||i,s=o.split("-"),l={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},c=this.elementSize,u=c.width,f=c.height,d=[-u/2,-f/2];return s.forEach(function(h){var p=ee(d,2),g=p[0],v=p[1],y=ee(l[h],2),x=y[0],C=y[1];d=[g+(u/2+a[0])*x,v+(f/2+a[1])*C]}),d},t.prototype.setOffsetPosition=function(n){var r=ee(n,2),i=r[0],a=r[1],o=this.attributes,s=o.x,l=s===void 0?0:s,c=o.y,u=c===void 0?0:c,f=o.container,d=f.x,h=f.y;this.element.style.left="".concat(+l+d+i,"px"),this.element.style.top="".concat(+u+h+a,"px")},t.prototype.updatePosition=function(){var n=this.attributes.showDelay,r=n===void 0?60:n,i=Date.now();this.timestamp>0&&i-this.timestamp<r||(this.timestamp=i,this.setOffsetPosition(this.autoPosition(this.getRelativeOffsetFromCursor())))},t.prototype.autoPosition=function(n){var r=ee(n,2),i=r[0],a=r[1],o=this.attributes,s=o.x,l=o.y,c=o.bounding,u=o.position;if(!c)return[i,a];var f=this.element,d=f.offsetWidth,h=f.offsetHeight,p=ee([+s+i,+l+a],2),g=p[0],v=p[1],y={left:"r
58ight",right:"left",top:"bottom",bottom:"top"},x=c.x,C=c.y,_=c.width,S=c.height,O={left:g<x,right:g+d>x+_,top:v<C,bottom:v+h>C+S},E=[];u.split("-").forEach(function($){O[$]?E.push(y[$]):E.push($)});var k=E.join("-");return this.getRelativeOffsetFromCursor(k)},t.prototype.isCursorEntered=function(n,r){if(this.element){var i=this.element.getBoundingClientRect(),a=i.x,o=i.y,s=i.width,l=i.height;return new tr(a,o,s,l).isPointIn(n,r)}return!1},t.prototype.closeTransition=function(n){var r=this,i=this.element.style.transition;this.element.style.transition="none",n(),setTimeout(function(){r.element.style.transition=i},10)},t.tag="tooltip",t}(ri),S_e=function(e){lr(t,e);function t(n){var r=e.call(this,n)||this;r.layoutEvents=[Ft.BOUNDS_CHANGED,Ft.INSERTED,Ft.REMOVED],r.$margin=vi(0),r.$padding=vi(0);var i=n.style||{},a=i.margin,o=a===void 0?0:a,s=i.padding,l=s===void 0?0:s;return r.margin=o,r.padding=l,r.isMutationObserved=!0,r.bindEvents(),r}return Object.defineProperty(t.prototype,"margin",{get:function(){return this.$margin},set:function(n){this.$margin=vi(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this.$padding},set:function(n){this.$padding=vi(n)},enumerable:!1,configurable:!0}),t.prototype.getBBox=function(){var n=this.attributes,r=n.x,i=r===void 0?0:r,a=n.y,o=a===void 0?0:a,s=n.width,l=n.height,c=ee(this.$margin,4),u=c[0],f=c[1],d=c[2],h=c[3];return new tr(i-h,o-u,s+h+f,l+u+d)},t.prototype.appendChild=function(n,r){return n.isMutationObserved=!0,e.prototype.appendChild.call(this,n,r),n},t.prototype.getAvailableSpace=function(){var n=this.attributes,r=n.width,i=n.height,a=ee(this.$padding,4),o=a[0],s=a[1],l=a[2],c=a[3],u=ee(this.$margin,4),f=u[0],d=u[3];return new tr(c+d,o+f,r-c-s,i-o-l)},t.prototype.layout=function(){if(!(!this.attributes.display||!this.isConnected)&&!this.children.some(function(o){return!o.isConnected}))try{var n=this.attributes,r=n.x,i=n.y;this.style.transform="translate(".concat(r,", ").concat(i,")");var a=Kbe(this.getAvailableSpace(),this.children.map(function(o){return o.getBBox()}),this.attributes);this.children.forEach(function(o,s){var l=a[s],c=l.x,u=l.y;o.style.transform="translate(".concat(c,", ").concat(u,")")})}catch{}},t.prototype.bindEvents=function(){var n=this;this.layoutEvents.forEach(function(r){n.addEventListener(r,function(i){i.target&&(i.target.isMutationObserved=!0,n.layout())})})},t.prototype.attributeChangedCallback=function(n,r,i){n==="margin"?this.margin=i:n==="padding"&&(this.padding=i),this.layout()},t}(Yr),K9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function O_e(e){const{min:[t,n],max:[r,i]}=e.getLocalBounds();let a=0,o=0;return t>0&&(a=t),r<0&&(a=r),n>0&&(o=n),i<0&&(o=i),[a,o]}function E_e(e,t=[]){const[n=0,r=0,i=n,a=r]=t,o=e.parentNode,s=o.getEulerAngles();o.setEulerAngles(0);const{min:l,halfExtents:c}=e.getLocalBounds(),[u,f]=l,[d,h]=c;return o.setEulerAngles(s),{x:u-a,y:f-n,width:d*2+a+r,height:h*2+n+i}}function k_e(e,t,n,r,i=!0,a=!0){const o=f=>gf()(f);if(!t[0]&&!t[1])return o([O_e(e),t]);if(!n.length)return o([[0,0],t]);const[s,l]=n,c=[...l],u=[...s];if(l[0]!==s[0]){const f=i?-4:4;c[1]=l[1],a&&!i&&(c[0]=Math.max(s[0],l[0]-f),l[1]<s[1]?u[1]=c[1]:(u[1]=s[1],u[0]=Math.max(u[0],c[0]-f))),!a&&!i&&(c[0]=Math.max(s[0],l[0]-f),l[1]>s[1]?u[1]=c[1]:(u[1]=s[1],u[0]=Math.max(u[0],c[0]-f))),!a&&i&&(c[0]=Math.min(s[0],l[0]-f),l[1]>s[1]?u[1]=c[1]:(u[1]=s[1],u[0]=Math.min(u[0],c[0]-f))),a&&i&&(c[0]=Math.min(s[0],l[0]-f),l[1]<s[1]?u[1]=c[1]:(u[1]=s[1],u[0]=Math.min(u[0],c[0]-f)))}return o([l,c,u,s,t])}const Vz=pd(e=>{const t=e.attributes,{className:n,class:r,transform:i,rotate:a,labelTransform:o,labelTransformOrigin:s,x:l,y:c,x0:u=l,y0:f=c,text:d,background:h,connector:p,startMarker:g,endMarker:v,coordCenter:y,innerHTML:x}=t,C=K9(t,["className","class","transform","rotate","labelTransform","labelTransformOrigin","x","y","x0","y0","text","background","connector","startMarker","endMarker","coordCenter","innerHTML"]);if(e.style.transform=`translate(${l}, ${c})`,[l,c,u,f].some(B=>
58!Jn(B))){e.children.forEach(B=>B.remove());return}const _=Ve(C,"background"),{padding:S}=_,O=K9(_,["padding"]),E=Ve(C,"connector"),{points:k=[]}=E,$=K9(E,["points"]);let T;x?T=ft(e).maybeAppend("html","html",n).style("zIndex",0).style("innerHTML",x).call(it,Object.assign({transform:o,transformOrigin:s},C)).node():T=ft(e).maybeAppend("text","text").style("zIndex",0).style("text",d).call(it,Object.assign({textBaseline:"middle",transform:o,transformOrigin:s},C)).node();const M=ft(e).maybeAppend("background","rect").style("zIndex",-1).call(it,E_e(T,S)).call(it,h?O:{}).node(),R=+u<y[0],N=+f<y[1],D=[+u-+l,+f-+c],F=k_e(M,D,k,y,R,N),V=g&&new gn({id:"startMarker",style:Object.assign({x:0,y:0},Ve(C,"startMarker"))}),z=v&&new gn({id:"endMarker",style:Object.assign({x:0,y:0},Ve(C,"endMarker"))});ft(e).maybeAppend("connector","path").style("zIndex",0).style("d",F).style("markerStart",V).style("markerEnd",z).call(it,p?$:{})}),Wz=(e,t)=>{const{coordinate:n}=t;return(r,i,a)=>{const{color:o,text:s="",fontSize:l,rotate:c=0,transform:u=""}=i,f={text:String(s),stroke:o,fill:o,fontSize:l},[[d,h]]=r;return ft(new Vz).style("x",d).style("y",h).call(it,a).style("transform",`${u}rotate(${+c})`).style("coordCenter",n.getCenter()).call(it,f).call(it,e).node()}};Wz.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var I7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function A_e(e){const t=e/Math.sqrt(2),n=e*Math.sqrt(2),[r,i]=[-t,t-n],[a,o]=[0,0],[s,l]=[t,t-n];return[["M",r,i],["A",e,e,0,1,1,s,l],["L",a,o],["Z"]]}function $_e(e){const{min:t,max:n}=e.getLocalBounds();return[(t[0]+n[0])*.5,(t[1]+n[1])*.5]}const T_e=pd(e=>{const t=e.attributes,{class:n,x:r,y:i,transform:a}=t,o=I7(t,["class","x","y","transform"]),s=Ve(o,"marker"),{size:l=24}=s,c=()=>A_e(l/2),u=ft(e).maybeAppend("marker",()=>new gn({})).call(h=>h.node().update(Object.assign({symbol:c},s))).node(),[f,d]=$_e(u);ft(e).maybeAppend("text","text").style("x",f).style("y",d).call(it,o)}),Hz=(e,t)=>{const n=I7(e,[]);return(r,i,a)=>{const{color:o}=a,s=I7(a,["color"]),{color:l=o,text:c=""}=i,u={text:String(c),stroke:l,fill:l},[[f,d]]=r;return ft(new T_e).call(it,s).style("transform",`translate(${f},${d})`).call(it,u).call(it,n).node()}};Hz.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Gz=(e,t)=>{const{coordinate:n}=t;return(r,i,a)=>{const{color:o,text:s="",fontSize:l,rotate:c=0,transform:u=""}=i,f={text:String(s),stroke:o,fill:o,fontSize:l,textAlign:"center",textBaseline:"middle"},[[d,h]]=r;return ft(new so).style("x",d).style("y",h).call(it,a).style("transformOrigin","center center").style("transform",`${u}rotate(${c}deg)`).style("coordCenter",n.getCenter()).call(it,f).call(it,e).node()}};Gz.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var P_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function M_e(e,t){const n=[],r=[],i=[];let a=!1,o=null;const s=e.length/2;for(let l=0;l<s;l++){const c=e[l],u=e[l+s];if([...c,...u].some(f=>!t(f)))a=!0;else{if(n.push(c),r.push(u),a&&o){a=!1;const[f,d]=o;i.push([f,c,d,u])}o=[c,u]}}return[n.concat(r),i]}const m$=pd(e=>{const{areaPath:t,connectPath:n,areaStyle:r,connectStyle:i}=e.attributes,a=e.ownerDocument;ft(e).maybeAppend("connect-path",()=>a.createElement("path",{})).style("d",n).call(it,i),ft(e).maybeAppend("area-path",()=>a.createElement("path",{})).style("d",t).call(it,r)}),Go=(e,t)=>{const{curve:n,gradient:r=!1,defined:i=c=>!Number.isNaN(c)&&c!==void 0&&c!==null,connect:a=!1}=e,o=P_e(e,["curve","gradient","defined","connect"]),{coordinate:s,document:l}=t;return(c,u,f)=>{const{color:d}=f,{color:h=d,seriesColor:p,seriesX:g,seriesY:v}=u,y=Un(s),x=fB(s,u),C=r&&p?uB(p,g,v,r,void 0,y):h,_=Object.assign(Object.assign(Object.assign(Object.assign({},f),{stroke:C,fill:C}),x&&{transform:x}),o),[S,O]=M_e(c,i),E=Ve(_,"connect"),k=!!O.length,$=T=>ft(l.createElement("path",{})).style("d",T||"").call(it,_).node();if(On(s)){const T=M=>{const R=s.getCenter(),N=M.slice(0,M.length/2),D=M.slice(M.length/2);return I4e().angle((F,V)=>ud(mr(N[V],R))).outerRadius((F,V)=>or(N[V],R)).innerRadius((F,V)=>or(D[V],R)).defined((F,V)=>[...N[V],...D[V]].every(i)).curve(n)(D)};return!k||a&&!Object.keys(E).length?$(T(S)):k&&!a?$(T(c)):ft(new m$).style("areaStyle",_).style("connectStyle",Object.assign(Object.assign({},E),o)).style("areaPath",T(c)).style("connectPath",O.map(T).join("")).node()}else{const T=M=>{const R=M.slice(0,M.length/2),N=M.slice(M.length/2);return y?c7().y((D,F)=>R[F][1]).x1((D,F)=>R[F][0]).x0((D,F)=>N[F][0]).defined((D,F)=>[...R[F],...N[F]].every(i)).curve(n)(R):c7().x((D,F)=>R[F][0]).y1((D,F)=>R[F][1]).y0((D,F)=>N[F][1]).defined((D,F)=>[...R[F],...N[F]].every(i)).curve(n)(R)};return!k||a&&!Object.keys(E).length?$(T(S)):k&&!a?$(T(c)):ft(new m$).style("areaStyle",_).style("connectStyle",Object.assign(Object.assign({},E),o)).style("areaPath",T(c)).style("connectPath",O.map(T).join("")).node()}}};Go.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Uz=(e,t)=>
vendor: 2,956 bytes, line 58
58{const{coordinate:n}=t;return(...r)=>{const i=On(n)?_b:Rp;return Go(Object.assign({curve:i},e),t)(...r)}};Uz.props=Object.assign(Object.assign({},Go.props),{defaultMarker:"square"});var N_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Yz=(e,t)=>{const n=N_e(e,[]),{coordinate:r}=t;return(...i)=>{const a=On(r)?iF:Un(r)?cF:lF;return Go(Object.assign({curve:a},n),t)(...i)}};Yz.props=Object.assign(Object.assign({},Go.props),{defaultMarker:"smooth"});const Xz=(e,t)=>(...n)=>Go(Object.assign({curve:uF},e),t)(...n);Xz.props=Object.assign(Object.assign({},Go.props),{defaultMarker:"hvh"});const qz=(e,t)=>(...n)=>Go(Object.assign({curve:fF},e),t)(...n);qz.props=Object.assign(Object.assign({},Go.props),{defaultMarker:"vh"});const Zz=(e,t)=>(...n)=>Go(Object.assign({curve:dF},e),t)(...n);Zz.props=Object.assign(Object.assign({},Go.props),{defaultMarker:"hv"});const Kz=(e,t)=>{const{arrow:n=!1}=e;return(...r)=>Xb(Object.assign(Object.assign({},e),{arrow:n}),t)(...r)};Kz.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var v$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Jz=(e,t)=>{const n=v$(e,[]),{document:r}=t;return(i,a,o)=>{const{color:s}=o,l=v$(o,["color"]),{color:c=s,transform:u}=a,[f,d]=i,h=co();return h.moveTo(f[0],f[1]),h.bezierCurveTo(f[0]/2+d[0]/2,f[1],f[0]/2+d[0]/2,d[1],d[0],d[1]),ft(r.createElement("path",{})).call(it,l).style("d",h.toString()).style("stroke",c).style("transform",u).call(it,n).node()}};Jz.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var y$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function I_e(e,t,n,r){const i=co();if(On(n)){const a=n.getCenter(),o=or(e,a),l=(or(t,a)-o)*r+o;return i.moveTo(e[0],e[1]),Xh(i,e,t,a,l),i.lineTo(t[0],t[1]),i}return Un(n)?(i.moveTo(e[0],e[1]),i.lineTo(e[0]+(t[0]-e[0])*r,e[1]),i.lineTo(e[0]+(t[0]-e[0])*r,t[1]),i.lineTo(t[0],t[1]),i):(i.moveTo(e[0],e[1]),i.lineTo(e[0],e[1]+(t[1]-e[1])*r),i.lineTo(t[0],e[1]+(t[1]-e[1])*r),i.lineTo(t[0],t[1]),i)}const Qz=(e,t)=>
58{const{cornerRatio:n=1/3}=e,r=y$(e,["cornerRatio"]),{coordinate:i,document:a}=t;return(o,s,l)=>{const{defaultColor:c}=l,u=y$(l,["defaultColor"]),{color:f=c,transform:d}=s,[h,p]=o,g=I_e(h,p,i,n);return ft(a.createElement("path",{})).call(it,u).style("d",g.toString()).style("stroke",f).style("transform",d).call(it,r).node()}};Qz.props={defaultMarker:"vhv",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var x$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const eV=(e,t)=>{const n=x$(e,[]),{coordinate:r,document:i}=t;return(a,o,s)=>{const{color:l}=s,c=x$(s,["color"]),{color:u=l,transform:f}=o,[d,h]=a,p=co();if(p.moveTo(d[0],d[1]),On(r)){const g=r.getCenter();p.quadraticCurveTo(g[0],g[1],h[0],h[1])}else{const g=WD(d,h),v=or(d,h)/2;Xh(p,d,h,g,v)}return ft(i.createElement("path",{})).call(it,c).style("d",p.toString()).style("stroke",u).style("transform",f).call(it,n).node()}};eV.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};function tV(e={}){const{shapes:t}=e;return[{name:"color"},{name:"opacity"},{name:"shape",range:t},{name:"enterType"},{name:"enterDelay",scaleKey:"enter"},{name:"enterDuration",scaleKey:"enter"},{name:"enterEasing"},{name:"key",scale:"identity"},{name:"groupKey",scale:"identity"},{name:"label",scale:"identity"}]}function Zi(e={}){return[...tV(e),{name:"title",scale:"identity"}]}function Wc(){return[{type:W3,channel:"color"},{type:G3,channel:["x","y"]}]}function Id(){return[{type:W3,channel:"x"},{type:G3,channel:["y"]}]}function L_e(){return[{type:W3,channel:"color"},{type:G3,channel:["position"]}]}
58function Ld(e={}){return tV(e)}function _r(){return[{type:mD}]}function Pr(){return[]}function J9(e,t){return e.getBandWidth(e.invert(t))}function Cf(e,t,n={}){const{x:r,y:i,series:a}=t,{x:o,y:s,series:l}=e,{style:{bandOffset:c=l?0:.5,bandOffsetX:u=c,bandOffsetY:f=c}={}}=n,d=!!(o!=null&&o.getBandWidth),h=!!(s!=null&&s.getBandWidth),p=!!(l!=null&&l.getBandWidth);return!d&&!h?g=>g:(g,v)=>{const y=d?J9(o,r[v]):0,x=h?J9(s,i[v]):0,_=p&&a?(J9(l,a[v])/2+ +a[v])*y:0,[S,O]=g;return[S+u*y+_,O+f*x]}}function Lm(e){return parseFloat(e)/100}function aC(e,t,n,r){const{x:i,y:a}=n,{innerWidth:o,innerHeight:s}=r.getOptions(),l=Array.from(e,c=>{const u=i[c],f=a[c],d=typeof u=="string"?Lm(u)*o:+u,h=typeof f=="string"?Lm(f)*s:+f;return[[d,h]]});return[e,l]}function As(e){return typeof e=="function"?e:t=>t[e]}function Q9(e,t){return Array.from(e,As(t))}function oC(e,t){const{source:n=u=>u.source,target:r=u=>u.target,value:i=u=>u.value}=t,{links:a,nodes:o}=e,s=Q9(a,n),l=Q9(a,r),c=Q9(a,i);return{links:a.map((u,f)=>({target:l[f],source:s[f],value:c[f]})),nodes:o||Array.from(new Set([...s,...l]),u=>({key:u}))}}var R_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const nV=(e,t)=>{const{coordinate:n,document:r}=t;return(i,a,o)=>{const{color:s}=o,l=R_e(o,["color"]),{color:c=s,src:u="",size:f=32,transform:d=""}=a;let{width:h=f,height:p=f}=e;const[[g,v]]=i,[y,x]=n.getSize();h=typeof h=="string"?Lm(h)*y:h,p=typeof p=="string"?Lm(p)*x:p;const C=g-Number(h)/2,_=v-Number(p)/2;return ft(r.createElement("image",{})).call(it,l).style("x",C).style("y",_).style("src",u).style("stroke",c).style("transform",d).call(it,e).style("width",h).style("height",p).node()}};nV.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var j_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function D_e(e,t){const n=co();if(On(t)){const r=t.getCenter(),i=[...e,e[0]],a=i.map(o=>or(o,r));return i.forEach((o,s)=>{if(s===0){n.moveTo(o[0],o[1]);return}const l=a[s],c=e[s-1],u=a[s-1];u!==void 0&&Math.abs(l-u)<1e-10?Xh(n,c,o,r,l):n.lineTo(o[0],o[1])}),n.closePath(),n}return _be(n,e)}const rV=(e,t)=>{const{coordinate:n,document:r}=t;return(i,a,o)=>{const{color:s}=o,l=j_e(o,["color"]),{color:c=s,transform:u}=a,f=D_e(i,n);return ft(r.createElement("path",{})).call(it,l).style("d",f.toString()).style("stroke",c).style("fill",c).style("transform",u).call(it,e).node()}};rV.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var b$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function F_e(e,t){const[n,r,i,a]=e,o=co();if(On(t)){const s=t.getCenter(),l=or(s,n);return o.moveTo(n[0],n[1]),o.quadraticCurveTo(s[0],s[1],i[0],i[1]),Xh(o,i,a,s,l),o.quadraticCurveTo(s[0],s[1],r[0],r[1]),Xh(o,r,n,s,l),o.closePath(),o}return o.moveTo(n[0],n[1]),o.bezierCurveTo(n[0]/2+i[0]/2,n[1],n[0]/2+i[0]/2,i[1],i[0],i[1]),o.lineTo(a[0],a[1]),o.bezierCurveTo(a[0]/2+r[0]/2,a[1],a[0]/2+r[0]/2,r[1],r[0],r[1]),o.lineTo(n[0],n[1]),o.closePath(),o}const iV=(e,t)=>{const n=b$(e,[]),{coordinate:r,document:i}=t;return(a,o,s)=>{const{color:l}=s,c=b$(s,["color"]),{color:u=l,transform:f}=o,d=F_e(a,r);return ft(i.createElement("path",{})).call(it,c).style("d",d.toString()).style("fill",u||l).style("stroke",u||l).style("transform",f).call(it,n).node()}};iV.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var B_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function z_e(e,t){const n=co();if(!On(t))n.moveTo(...e[0]),n.lineTo(...e[1]),n.moveTo(...e[2]),n.lineTo(...e[3]),n.moveTo(...e[4]),n.lineTo(...e[5]),n.lineTo(...e[6]),n.lineTo(...e[7]),n.closePath(),n.moveTo(...e[8]),n.lineTo(...e[9]),n.moveTo(...e[10]),n.lineTo(...e[11]),n.moveTo(...e[12]),n.lineTo(...e[13]);else{const r=t.getCenter(),[i,a]=r,o=oo(mr(e[0],r)),s=oo(mr(e[1],r)),l=or(r,e[2]),c=or(r,e[3]),u=or(r,e[8]),f=or(r,e[10]),d=or(r,e[11
58]);n.moveTo(...e[0]),n.arc(i,a,l,o,s),n.arc(i,a,l,s,o,!0),n.moveTo(...e[2]),n.lineTo(...e[3]),n.moveTo(...e[4]),n.arc(i,a,c,o,s),n.lineTo(...e[6]),n.arc(i,a,f,s,o,!0),n.closePath(),n.moveTo(...e[8]),n.arc(i,a,u,o,s),n.arc(i,a,u,s,o,!0),n.moveTo(...e[10]),n.lineTo(...e[11]),n.moveTo(...e[12]),n.arc(i,a,d,o,s),n.arc(i,a,d,s,o,!0)}return n}const aV=(e,t)=>{const{coordinate:n,document:r}=t;return(i,a,o)=>{const{color:s,transform:l}=a,{color:c,fill:u=c,stroke:f=c}=o,d=B_e(o,["color","fill","stroke"]),h=z_e(i,n);return ft(r.createElement("path",{})).call(it,d).style("d",h.toString()).style("stroke",f).style("fill",s||u).style("transform",l).call(it,e).node()}};aV.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var V_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function W_e(e,t,n=4){const r=co();if(!On(t))return r.moveTo(...e[2]),r.lineTo(...e[3]),r.lineTo(e[3][0]-n,e[3][1]),r.lineTo(e[10][0]-n,e[10][1]),r.lineTo(e[10][0]+n,e[10][1]),r.lineTo(e[3][0]+n,e[3][1]),r.lineTo(...e[3]),r.closePath(),r.moveTo(...e[10]),r.lineTo(...e[11]),r.moveTo(e[3][0]+n/2,e[8][1]),r.arc(e[3][0],e[8][1],n/2,0,Math.PI*2),r.closePath(),r;const i=t.getCenter(),[a,o]=i,s=or(i,e[3]),l=or(i,e[8]),c=or(i,e[10]),u=oo(mr(e[2],i)),f=Math.asin(n/l),d=u-f,h=u+f;r.moveTo(...e[2]),r.lineTo(...e[3]),r.moveTo(Math.cos(d)*s+a,Math.sin(d)*s+o),r.arc(a,o,s,d,h),r.lineTo(Math.cos(h)*c+a,Math.sin(h)*c+o),r.arc(a,o,c,h,d,!0),r.lineTo(Math.cos(d)*s+a,Math.sin(d)*s+o),r.closePath(),r.moveTo(...e[10]),r.lineTo(...e[11]);const p=(d+h)/2;return r.moveTo(Math.cos(p)*(l+n/2)+a,Math.sin(p)*(l+n/2)+o),r.arc(Math.cos(p)*l+a,Math.sin(p)*l+o,n/2,p,Math.PI*2+p),r.closePath(),r}const oV=(e,t)=>{const{coordinate:n,document:r}=t;return(i,a,o)=>{const{color:s,transform:l}=a,c=4,{color:u,fill:f=u,stroke:d=u}=o,h=V_e(o,["color","fill","stroke"]),p=W_e(i,n,c);return ft(r.createElement("path",{})).call(it,h).style("d",p.toString()).style("stroke",d).style("fill",s||f).style("transform",l).call(it,e).node()}};oV.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var C$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function H_e(e,t,n){return e.createElement("path",{style:Object.assign({d:`M ${t},${t} L -${t},0 L ${t},-${t} L 0,0 Z`,transformOrigin:"center"},n)})}function G_e(e,t){if(!On(t))return gf().x(r=>r[0]).y(r=>r[1])(e);const n=t.getCenter();return xb()({startAngle:0,endAngle:Math.PI*2,outerRadius:or(e[0],n),innerRadius:or(e[1],n)})}function U_e(e,t){if(!On(e))return t;const[n,r]=e.getCenter();return`translate(${n}, ${r}) ${t||""}`}const sC=(e,t)=>{const{arrow:n,arrowSize:r=4}=e,i=C$(e,["arrow","arrowSize"]),{coordinate:a,document:o}=t;return(s,l,c)=>{const{color:u,lineWidth:f}=c,d=C$(c,["color","lineWidth"]),{color:h=u,size:p=f}=l,g=n?H_e(o,r,Object.assign({fill:i.stroke||h,stroke:i.stroke||h},Ve(i,"arrow"))):null,v=G_e(s,a),y=U_e(a,l.transform);return ft(o.createElement("path",{})).call(it,d).style("d",v).style("stroke",h).style("lineWidth",p).style("transform",y).style("markerEnd",g).call(it,i).node()}};sC.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var w$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Y_e(e,t,n){return[["M",e,t],["L",e+2*n,t-n],["L",e+2*n,t+n],["Z"]]}function X_e(e){return gf().x(t=>t[0]).y(t=>t[1])(e)}function q_e(e,t,n,r,i,a,o=0){const[[s,l],[c,u]]=t;if(Un(e)){const v=s+n,y=c+r,x=v+o,C=l+i,_=u+a;return[[v,C],[x,C],[x,_],[y,_]]}
vendor: 5,984 bytes, line 58
58const f=l-n,d=u-r,h=f-o,p=s-i,g=c-a;return[[p,f],[p,h],[g,h],[g,d]]}const sV=(e,t)=>{const{offsetX:n=0,sourceOffsetX:r=n,targetOffsetX:i=n,offsetY:a=0,sourceOffsetY:o=a,targetOffsetY:s=a,connectLength1:l,endMarker:c=!0}=e,u=w$(e,["offsetX","sourceOffsetX","targetOffsetX","offsetY","sourceOffsetY","targetOffsetY","connectLength1","endMarker"]),{coordinate:f}=t;return(d,h,p)=>{const{color:g,connectLength1:v}=p,y=w$(p,["color","connectLength1"]),{color:x,transform:C}=h,_=q_e(f,d,o,s,r,i,l??v),S=Ve(Object.assign(Object.assign({},u),p),"endMarker");return ft(new qi).call(it,y).style("d",X_e(_)).style("stroke",x||g).style("transform",C).style("markerEnd",c?new gn({className:"marker",style:Object.assign(Object.assign({},S),{symbol:Y_e})}):null).call(it,u).node()}};sV.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};function Z_e(e,t,n,r){const i=t.length/2,a=t.slice(0,i),o=t.slice(i);let s=Pd(a,(h,p)=>Math.abs(h[1]-o[p][1]));s=Math.max(Math.min(s,i-2),1);const l=h=>[a[h][0],(a[h][1]+o[h][1])/2],c=l(s),u=l(s-1),f=l(s+1),d=oo(mr(f,u))/Math.PI*180;return{x:c[0],y:c[1],transform:`rotate(${d})`,textAlign:"center",textBaseline:"middle"}}function lV(e,t,n,r){const{bounds:i}=n,[[a,o],[s,l]]=i,c=s-a,u=l-o,f=d=>{const{x:h,y:p}=d,g=Gk(n.x,c),v=Gk(n.y,u);return Object.assign(Object.assign({},d),{x:(g||h)+a,y:(v||p)+o})};return f(e==="left"?{x:0,y:u/2,textAlign:"start",textBaseline:"middle"}:e==="right"?{x:c,y:u/2,textAlign:"end",textBaseline:"middle"}:e==="top"?{x:c/2,y:0,textAlign:"center",textBaseline:"top"}:e==="bottom"?{x:c/2,y:u,textAlign:"center",textBaseline:"bottom"}:e==="top-left"?{x:0,y:0,textAlign:"start",textBaseline:"top"}:e==="top-right"?{x:c,y:0,textAlign:"end",textBaseline:"top"}:e==="bottom-left"?{x:0,y:u,textAlign:"start",textBaseline:"bottom"}:e==="bottom-right"?{x:c,y:u,textAlign:"end",textBaseline:"bottom"}:{x:c/2,y:u/2,textAlign:"center",textBaseline:"middle"})}function cV(e,t,n,r){const{y:i,y1:a,autoRotate:o,rotateToAlignArc:s}=n,l=r.getCenter(),c=xf(r,t,[i,a]),{innerRadius:u,outerRadius:f,startAngle:d,endAngle:h}=c,p=e==="inside"?(d+h)/2:h,g=lC(p,o,s),v=(()=>{const[y,x]=t,C=u+(f-u)*.5,[_,S]=e==="inside"?Qh(l,p,C):WD(y,x);return{x:_,y:S}})();return Object.assign(Object.assign({},v),{textAlign:e==="inside"?"center":"start",textBaseline:"middle",rotate:g})}function Qh(e,t,n){return[e[0]+Math.sin(t)*n,e[1]-Math.cos(t)*n]}function lC(e,t,n){if(!t)return 0;const r=n?0:Math.sin(e)<0?90:-90;return e/Math.PI*180+r}function K_e(e,t,n,r){const{y:i,y1:a,autoRotate:o,rotateToAlignArc:s,radius:l=.5,offset:c=0}=n,u=xf(r,t,[i,a]),{startAngle:f,endAngle:d}=u,h=r.getCenter(),p=(f+d)/2,v={textAlign:"center",textBaseline:"middle",rotate:lC(p,o,s)},{innerRadius:y,outerRadius:x}=u,_=y+(x-y)*l+c,[S,O]=Qh(h,p,_);return Object.assign({x:S,y:O},v)}function _$(e){return e===void 0?null:e}function uV(e,t,n,r){const{bounds:i}=n,[a]=i;return{x:_$(a[0]),y:_$(a[1])}}function sl(e,t,n,r){const{bounds:i}=n;return i.length===1?uV(e,t,n):(K3(r)?cV:Md(r)?K_e:lV)(e,t,n,r)}function J_e(e,t,n,r,i){const[a,o]=Qh(e,t,n),[s,l]=Qh(e,t,r),c=Math.sin(t)>0?1:-1;return[[a,o],[s,l],[s+c*i,l]]}function fV(e,t,n){const r=xf(n,e,[t.y,t.y1]),{innerRadius:i,outerRadius:a}=r;return i+(a-i)}function dV(e,t,n){const r=xf(n,e,[t.y,t.y1]),{startAngle:i,endAngle:a}=r;return(i+a)/2}function cC(e,t,n,r){const{autoRotate:i,rotateToAlignArc:a,offset:o=0,connector:s=!0,connectorLength:l=o,connectorLength2:c=0,connectorDistance:u=0}=n,f=r.getCenter(),d=dV(t,n,r),h=Math.sin(d)>0?1:-1,p=lC(d,i,a),g={textAlign:h>0||K3(r)?"start":"end",textBaseline:"middle",rotate:p},v=fV(t,n,r),y=v+(s?l:o),[[x,C],[_,S],[O,E]]=J_e(f,d,v,y,s?c:0),k=s?+u*h:0,$=O+k,T=E,M={connector:s,connectorPoints:[[_-$,S-T],[O-$,E-T]]};return Object.assign(Object.assign({x0:x,y0:C,x:O+k,y:E},g),M)}function Q_e(e,t,n,r){const{bounds:i}=n;return i.length===1?uV(e,t,n):(K3(r)?cV:Md(r)?cC:lV)(e,t,n,r)}function S$(e,t={}){const{labelHeight:n=14,height:r}=t,i=zo(e,c=>c.y),a=i.length,o=new Array(a);for(let c=0;c<a;c++){const u=i[c],{y:f}=u;o[c]={y:f,y1:f+n,labels:[f]}}let s=!0;for(;s;){s=!1;for(let c=o.length-1;c>0;c--){const u=o[c],f=o[c-1];if(f.y1>u.y){s=!0,f.labels.push(...u.labels),o.splice(c,1),f.y1+=u.y1-u.y;const d=f.y1-f.y;f.y1=Math.max(Math.min(f.y1,r),d),f.y=f.y1-d}}}let l=0;for(const c of o){const{y:u,labels:f}=c;let d=u-n;for(const h of f){const p=i[l++],v=d+n-h;p.connectorPoints[0][1]-=v,p.y=d+n,d+=n}}}function O$(e,t){const n=zo(e,s=>s.y),{height:r,labelHeight:i=14}=t,a=Math.ceil(r/i);if(n.length<=a)return S$(n,t);const o=[];for(let s=0;s<n.length;s++)s<n.length-a?(n[s].opacity=0,n[s].connector=!1):o.push(n[s]);S$(o,t)}var eSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const z5=new WeakMap;function tSe(e,t,n){const{connectorLength:r,connectorLength2:i,connectorDistance:a}=t,o=eSe(cC("outside",e,t,n),[]),s=n.getCenter(),l=fV(e,t,n),c=dV(e,t,n),u=l+r+i,f=Math.sin(c)>0?1:-1,d=s[0]+(u+ +a)*f,{x:h}=o,p=d-h;return o.x+=p,o.connectorPoints[0][0]-=p,o}function nSe(e,t,n,r,i,a){if(!Md(r))return{};if(z5.has(t))return z5.get(t);const o=a.map(d=>tSe(d,n,r)),{width:s,height:l}=r.getOptions(),c=o.filter(d=>d.x<s/2),u=o.filter(d=>d.x>=s/2),f=Object.assign(Object.assign({},i),{height:l});return O$(c,f),O$(u,f),o.forEach((d,h)=>z5.set(a[h],d)),z5.get(t)}var rSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function iSe(e,t,n,r){if(!Md(r))return{};
58const{connectorLength:i,connectorLength2:a,connectorDistance:o}=n,s=rSe(cC("outside",t,n,r),[]),{x0:l,y0:c}=s,u=r.getCenter(),d=j4e(r)+i,h=ud([l-u[0],c-u[1]]),p=Math.sin(h)>0?1:-1,[g,v]=Qh(u,h,d);return s.x=g+(a+o)*p,s.y=v,s}const aSe=Object.freeze(Object.defineProperty({__proto__:null,area:Z_e,bottom:sl,bottomLeft:sl,bottomRight:sl,inside:sl,left:sl,outside:Q_e,right:sl,spider:nSe,surround:iSe,top:sl,topLeft:sl,topRight:sl},Symbol.toStringTag,{value:"Module"}));var E$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function oSe(e,t){return e!==void 0?e:Md(t)?"inside":Un(t)?"right":"top"}function sSe(e,t,n,r,i,a){const{position:o}=t,{render:s}=i,l=oSe(o,n),u=r[s?"htmlLabel":l==="inside"?"innerLabel":"label"],f=Object.assign({},u,t),d=aSe[Ub(l)];if(!d)throw new Error(`Unknown position: ${l}`);return Object.assign(Object.assign({},u),d(l,e,f,n,i,a))}const hV=(e,t)=>{const{coordinate:n,theme:r}=t,{render:i}=e;return(a,o,s,l)=>{const{text:c,x:u,y:f,transform:d="",transformOrigin:h,className:p=""}=o,g=E$(o,["text","x","y","transform","transformOrigin","className"]),v=sSe(a,o,n,r,e,l),{rotate:y=0,transform:x=""}=v,C=E$(v,["rotate","transform"]);return ft(new Vz).call(it,C).style("text",`${c}`).style("className",`${p} g2-label`).style("innerHTML",i?i(c,o.datum,o.index):void 0).style("labelTransform",`${x} rotate(${+y}) ${d}`.trim()).style("labelTransformOrigin",h).style("coordCenter",n.getCenter()).call(it,g).node()}};hV.props={defaultMarker:"point"};var k$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const uC=(e,t)=>{const{arrow:n,colorAttribute:r}=e,i=k$(e,["arrow","colorAttribute"]),{coordinate:a,document:o}=t;return(s,l,c)=>{const{color:u,stroke:f}=c,d=k$(c,["color","stroke"]),{d:h,color:p=u}=l,[g,v]=a.getSize();return ft(o.createElement("path",{})).call(it,d).style("d",typeof h=="function"?h({width:g,height:v}):h).style(r,p).call(it,i).node()}};uC.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const pV=(e,t)=>uC(Object.assign({colorAttribute:"fill"},e),t);pV.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const gV=(e,t)=>uC(Object.assign({fill:"none",colorAttribute:"stroke"},e),t);gV.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var lSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const mV=(e,t)=>{const{document:n}=t;return(r,i,a)=>{const{transform:o}=i,{color:s}=a,l=lSe(a,["color"]),{color:c=s}=i,[u,...f]=r,d=co();return d.moveTo(...u),f.forEach(([h,p])=>{d.lineTo(h,p)}),d.closePath(),ft(n.createElement("path",{})).call(it,l).style("d",d.toString()).style("stroke",c||s).style("fill",c||s).style("fillOpacity",.4).style("transform",o).call(it,e).node()}};mV.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};function vV(e){var t,n,r,i=e||1;function a(s,l){++t>i&&(r=n,o(1),++t),n[s]=l}function o(s){t=0,n=Object.create(null),s||(r=Object.create(null))}return o(),{clear:o,has:function(s){return n[s]!==void 0||r[s]!==void 0},get:function(s){var l=n[s];if(l!==void 0)return l;if((l=r[s])!==void 0)return a(s,l),l},set:function(s,l){n[s]!==void 0?n[s]=l:a(s,l)}}}vV(3);function yV(e,t=(...r)=>`${r[0]}`,n=16){const r=vV(n);return(...i)=>{const a=t(...i);let o=r.get(a);
58return r.has(a)?r.get(a):(o=e(...i),r.set(a,o),o)}}function cSe(e){return typeof e=="string"?e.split(" ").map(t=>{const[n,r]=t.split(":");return[+n,r]}):e}function Rm(e,t,n){const r=e?e():document.createElement("canvas");return r.width=t,r.height=n,r}const uSe=yV((e,t,n)=>{const r=Rm(n,e*2,e*2),i=r.getContext("2d"),a=e,o=e;if(t===1)i.beginPath(),i.arc(a,o,e,0,2*Math.PI,!1),i.fillStyle="rgba(0,0,0,1)",i.fill();else{const s=i.createRadialGradient(a,o,e*t,a,o,e);s.addColorStop(0,"rgba(0,0,0,1)"),s.addColorStop(1,"rgba(0,0,0,0)"),i.fillStyle=s,i.fillRect(0,0,2*e,2*e)}return r},e=>`${e}`);function fSe(e,t){const r=Rm(t,256,1).getContext("2d"),i=r.createLinearGradient(0,0,256,1);return cSe(e).forEach(([a,o])=>{i.addColorStop(a,o)}),r.fillStyle=i,r.fillRect(0,0,256,1),r.getImageData(0,0,256,1).data}function dSe(e,t,n,r,i,a){const{blur:o}=i;let s=r.length;for(;s--;){const{x:l,y:c,value:u,radius:f}=r[s],d=Math.min(u,n),h=l-f,p=c-f,g=uSe(f,1-o,a),v=(d-t)/(n-t);e.globalAlpha=Math.max(v,.001),e.drawImage(g,h,p)}return e}function hSe(e,t,n,r,i){const{minOpacity:a,opacity:o,maxOpacity:s,useGradientOpacity:l}=i,c=0,u=0,f=t,d=n,h=e.getImageData(c,u,f,d),p=h.data,g=p.length;for(let v=3;v<g;v+=4){const y=p[v],x=y*4;if(!x)continue;const C=o||Math.max(0,Math.min(s,Math.max(a,y)));p[v-3]=r[x],p[v-2]=r[x+1],p[v-1]=r[x+2],p[v]=l?r[x+3]:C}return h}function pSe(e,t,n,r,i,a,o){const s=Object.assign({blur:.85,minOpacity:0,opacity:.6,maxOpacity:1,gradient:[[.25,"rgb(0,0,255)"],[.55,"rgb(0,255,0)"],[.85,"yellow"],[1,"rgb(255,0,0)"]]},a);s.minOpacity*=255,s.opacity*=255,s.maxOpacity*=255;const c=Rm(o,e,t).getContext("2d"),u=fSe(s.gradient,o);c.clearRect(0,0,e,t),dSe(c,n,r,i,s,o);const f=hSe(c,e,t,u,s),h=Rm(o,e,t).getContext("2d");return h.putImageData(f,0,0),h}var gSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function mSe(e,t){return Object.keys(e).reduce((n,r)=>{const i=e[r];return t(i,r)||(n[r]=i),n},{})}const xV=(e,t)=>{const{gradient:n,opacity:r,maxOpacity:i,minOpacity:a,blur:o,useGradientOpacity:s}=e,l=gSe(e,["gradient","opacity","maxOpacity","minOpacity","blur","useGradientOpacity"]),{coordinate:c,createCanvas:u,document:f}=t;return(d,h,p)=>{const{transform:g}=h,[v,y]=c.getSize(),x=d.map(E=>({x:E[0],y:E[1],value:E[2],radius:E[3]})),C=$a(d,E=>E[2]),_=bn(d,E=>E[2]),O=v&&y?pSe(v,y,C,_,x,mSe({gradient:n,opacity:r,minOpacity:a,maxOpacity:i,blur:o,useGradientOpacity:s},E=>E===void 0),u):{canvas:null};return ft(f.createElement("image",{})).call(it,p).style("x",0).style("y",0).style("width",v).style("height",y).style("src",O.canvas.toDataURL()).style("transform",g).call(it,l).node()}};xV.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var vSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const bV=(e,t)=>{const{render:n}=e,r=vSe(e,["render"]);return i=>{const[[a,o]]=i;return n(Object.assign(Object.assign({},r),{x:a,y:o}),t)}};bV.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const A$=5e3;function $$(e,t,n){return e+(t-e)*n}function ySe(e,t,n,r){return t===0?[[e+1/2*n/Math.PI/2,r/2],[e+1/2*n/Math.PI,r],[e+n/4,r]]:t===1?[[e+1/2*n/Math.PI/2*(Math.PI-2),r],[e+1/2*n/Math.PI/2*(Math.PI-1),r/2],[e+n/4,0]]:t===2?[[e+1/2*n/Math.PI/2,-r/2],[e+1/2*n/Math.PI,-r],[e+n/4,-r]]:[[e+1/2*n/Math.PI/2*(Math.PI-2),-r],[e+1/2*n/Math.PI/2*(Math.PI-1),-r/2],[e+n/4,0]]}function xSe(e,t,n,r,i,a,o){const s=Math.ceil(2*e/n*4)*4,l=[];let c=r;for(;c<-Math.PI*2;)c+=Math.PI*2;for(;c>0;)c-=Math.PI*2;c=c/Math.PI/2*n;const u=a-e+c-e*2;l.push(["M",u,t]);let f=0;for(let d=0;d<s;++d){const h=d%4,p=ySe(d*n/4,h,n,i);l.push(["C",p[0][0]+u,-p[0][1]+t,p[1][0]+u,-p[1][1]+t,p[2][0]+u,-p[2][1]+t]),d===s-1&&(f=p[2][0])}return l.push(["L",f+u,o+e]),l.push(["L",u,o+e]),l.push(["Z"]),l}function bSe(e,t,n,r,i,a,o,s,l,c,u){const{fill:f,fillOpacity:d,opacity:h}=i;for(let p=0;p<r;p++){const g=r<=1?1:p/(r-1),v=xSe(s,o+s*n,l,0,s/40,e,t),y=u.createElement("path",{style:{d:v,fill:f,opacity:$$(.2,.9,g)*Number(h||d)}});a.appendChild(y);try{const x=[{transform:"translate(0, 0)"},{transform:`translate(${l*2}, 0)`}];y.animate(x,{duration:$$(.5*A$,A$,g)*2,iterations:1/0})}catch{console.warn("off-screen group animate error!")}}}function CSe(e,t,n){return`
59      M ${e} ${t-n} 
60      a ${n} ${n} 0 1 0 0 ${n*2}
61      a ${n} ${n} 0 1 0 0 ${-n*2}
62      Z
63    `}function wSe(e,t,n){const i=n*.618;return`
64      M ${e-i} ${t-n}
65      L ${e+i} ${t-n}
66      L ${e+i} ${t+n}
67      L ${e-i} ${t+n}
68      Z
69    `}function _Se(e,t,n){return`
70      M ${e} ${t-n}
71      L ${e+n} ${t}
72      L ${e} ${t+n}
73      L ${e-n} ${t}
74      Z
75    `}function SSe(e,t,n){return`
76      M ${e} ${t-n}
77      L ${e+n} ${t+n}
78      L ${e-n} ${t+n}
79      Z
80    `}function OSe(e,t,n){const r=n*4/3,i=Math.max(r,n*2),a=r/2,o=e,s=a+t-i/2,l=Math.asin(a/((i-a)*.85)),c=Math.sin(l)*a,u=Math.cos(l)*a,f=o-u,d=s+c,h=e,p=s+a/Math.sin(l);return`
81      M ${f} ${d}
82      A ${a} ${a} 0 1 1 ${f+u*2} ${d}
83      Q ${h} ${p} ${e} ${t+i/2}
84      Q ${h} ${p} ${f} ${d}
85      Z 
86    `}const T$={pin:OSe,rect:wSe,circle:CSe,diamond:_Se,triangle:SSe};var P$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ESe=(e="circle")=>T$[e]||T$.circle,CV=(e,t)=>{if(!t)return;const{coordinate:n}=t,{liquidOptions:r,styleOptions:i}=e,{liquidShape:a,percent:o}=r,{background:s,outline:l={},wave:c={}}=i,u=P$(i,["background","outline","wave"]),{border:f=2,distance:d=0}=l,h=P$(l,["border","distance"]),{length:p=192,count:g=3}=c;return(v,y,x)=>{const{document:C}=t.canvas,{color:_,fillOpacity:S}=x,O=Object.assign(Object.assign({fill:_},x),u),E=C.createElement("g",{}),[k,$]=n.getCenter(),T=n.getSize(),M=Math.min(...T)/2,N=(Hr(a)?a:ESe(a
vendor: 7,668 bytes, line 86
86))(k,$,M,...T);if(Object.keys(s).length){const V=C.createElement("path",{style:Object.assign({d:N,fill:"#fff"},s)});E.appendChild(V)}if(o>0){const V=C.createElement("path",{style:{d:N}});E.appendChild(V),E.style.clipPath=V,bSe(k,$,1-o,g,O,E,V.getBBox().y,M*2,p,!0,C)}const D=C.createElement("path",{style:{d:N,fill:"transparent",lineWidth:f+2*d,stroke:"#fff"}}),F=C.createElement("path",{style:Object.assign(Object.assign(Object.assign({d:N,stroke:_,strokeOpacity:S,lineWidth:f},O),h),{fill:"transparent"})});return E.appendChild(D),E.appendChild(F),E}};CV.props={};const M$=(e,t)=>Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))/2,kSe=(e,t)=>{if(!t)return;const{coordinate:n}=t;if(!(n!=null&&n.getCenter))return;const r=n.getCenter();return(i,a,o)=>{const{document:s}=t.canvas,{color:l,index:c}=a,u=s.createElement("g",{}),f=M$(i[0],i[1]),d=M$(i[0],r)*2,h=s.createElement("path",{style:Object.assign(Object.assign(Object.assign({d:[["M",...i[0]],["A",f,f,0,1,0,...i[1]],["A",d+f*2,d+f*2,0,0,0,...i[2]],["A",f,f,0,1,c===0?0:1,...i[3]],["A",d,d,0,0,1,...i[0]],["Z"]]},o),Yx(e,["shape","last","first"])),{fill:l||o.color})});return u.appendChild(h),u}};function N$(e,t){return e.getBandWidth(e.invert(t))}const I$={rect:bf,hollow:lv,funnel:Db,pyramid:hB},wV=()=>(e,t,n,r)=>{const{x:i,y:a,y1:o,series:s,size:l}=n,c=t.x,u=t.series,[f]=r.getSize(),d=l?l.map(g=>+g/f):null,h=l?(g,v,y)=>{const x=g+v/2,C=d[y];return[x-C/2,x+C/2]}:(g,v,y)=>[g,g+v],p=Array.from(e,g=>{const v=N$(c,i[g]),y=u?N$(u,s==null?void 0:s[g]):1,x=v*y,C=(+(s==null?void 0:s[g])||0)*v,_=+i[g]+C,[S,O]=h(_,x,g),E=+a[g],k=+o[g];return[[S,E],[O,E],[O,k],[S,k]].map(N=>r.map(N))});return[e,p]};wV.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:I$,channels:[...Zi({shapes:Object.keys(I$)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size"}],preInference:[..._r(),{type:Tp},{type:pf}],postInference:[...Pr(),...Id()],interaction:{shareTooltip:!0}};const L$={rect:bf,hollow:lv},_V=()=>(e,t,n,r)=>{const{x:i,x1:a,y:o,y1:s}=n,l=Array.from(e,c=>{const u=[+i[c],+o[c]],f=[+a[c],+o[c]],d=[+a[c],+s[c]],h=[+i[c],+s[c]];return[u,f,d,h].map(p=>r.map(p))});return[e,l]};_V.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:L$,channels:[...Zi({shapes:Object.keys(L$)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[..._r(),{type:Tp}],postInference:[...Pr(),...Id()],interaction:{shareTooltip:!0}};const R$={line:pB,smooth:gB,hv:mB,vh:vB,hvh:yB,trail:xB},ASe=(e,t,n,r)=>{var i,a;const{series:o,x:s,y:l}=n,{x:c,y:u}=t;if(s===void 0||l===void 0)throw new Error("Missing encode for x or y channel.");const f=o?Array.from(jn(e,v=>o[v]).values()):[e],d=f.map(v=>v[0]).filter(v=>v!==void 0),h=(((i=c==null?void 0:c.getBandWidth)===null||i===void 0?void 0:i.call(c))||0)/2,p=(((a=u==null?void 0:u.getBandWidth)===null||a===void 0?void 0:a.call(u))||0)/2,g=Array.from(f,v=>v.map(y=>r.map([+s[y]+h,+l[y]+p])));return[d,g,f]},$Se=(e,t,n,r)=>{const i=Object.entries(n).filter(([o])=>o.startsWith("position")).map(([,o])=>o);if(i.length===0)throw new Error("Missing encode for position channel.");On(r)&&i.push(i[0]);const a=Array.from(e,o=>{const s=i.map(u=>+u[o]),l=r.map(s),c=[];for(let u=0;u<l.length;u+=2)c.push([l[u],l[u+1]]);return c});return[e,a]},SV=()=>(e,t,n,r)=>(J3(r)?$Se:ASe)(e,t,n,r);SV.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:R$,channels:[...Zi({shapes:Object.keys(R$)}),{name:"x"},{name:"y"},{name:"position",independent:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[..._r(),{type:SD},{type:db}],postInference:[...Pr(),...Id(),...L_e()],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};const j$={hollow:WB,hollowDiamond:zB,hollowHexagon:VB,hollowSquare:HB,hollowTriangleDown:UB,hollowTriangle:GB,hollowBowtie:BB,hollowCircle:XB,point:nz,plus:tz,diamond:KB,square:rz,triangle:az,hexagon:JB,cross:ZB,bowtie:qB,hyphen:QB,line:ez,tick:iz,triangleDown:oz,circle:Yb},OV=e=>(t,n,r,i)=>{const{x:a,y:o,x1:s,y1:l,size:c,dx:u,dy:f}=r,[d,h]=i.getSize(),p=Cf(n,r,e),g=y=>{const x=+((u==null?void 0:u[y])||0),C=+((f==null?void 0:f[y])||0),_=s?(+a[y]+ +s[y])/2:+a[y],S=l?(+o[y]+ +l[y])/2:+o[y],O=_+x,E=S+C;return[O,E]},v=c?Array.from(t,y=>{const[x,C]=g(y),_=+c[y],S=_/d,O=_/h,E=[x-S,C-O],k=[x+S,C+O];return[i.map(p(E,y)),i.map(p(k,y))]}):Array.from(t,y=>[i.map(p(g(y),y))]);return[t,v]};OV.props={defaultShape:"hollow",defaultLabelShape:"label",composite:!1,shape:j$,channels:[...Zi({shapes:Object.keys(j$)}),{name:"x",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size",quantitative:"sqrt"},{name:"dx",scale:"identity"},{name:"dy",scale:"identity"}],preInference:[..._r(),{type:pf},{type:H3}],postInference:[...Pr(),{type:gD},...Wc()]};const D$={text:Wz,badge:Hz,tag:Gz},EV=e=>{const{cartesian:t=!1}=e;return t?aC:(n,r,i,a)=>{const{x:o,y:s}=i,l=Cf(r,i,e),c=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(l(f,u))]});return[n,c]}};EV.props={defaultShape:"text",defaultLabelShape:"label",composite:!1,shape:D$,channels:[...Zi({shapes:Object.keys(D$)}),{name:"x",required:!0},{name:"y",required:!0},{name:"text",scale:"identity"},{name:"fontSize",scale:"identity"},{name:"rotate",scale:"identity"}],preInference:[..._r(),{type:Y3},{type:U3}],postInference:[...Pr(),...Wc()]};const F$={cell:bf,hollow:lv},kV=()=>(e,t,n,r)=>{const{x:i,y:a}=n,o=t.x,s=t.y,l=Array.from(e,c=>{const u=o.getBandWidth(o.invert(+i[c])),f=s.getBandWidth(s.invert(+a[c])),d=+i[c],h=+a[c],p=[d,h],g=[d+u,h],v=[d+u,h+f],y=[d,h+f];return[p,g,v,y].map(x=>r.map(x))});return[e,l]};kV.props={defaultShape:"cell",defaultLabelShape:"label",shape:F$,composite:!1,channels:[...Zi({shapes:Object.keys(F$)}),{name:"x",required:!0,scale:"band"},{name:"y",required:!0,scale:"band"}],preInference:[..._r(),{type:pf},{type:H3},{type:hb}],postInference:[...Pr(),...Wc()]};const B$={area:Uz,smooth:Yz,hvh:Xz,vh:qz,hv:Zz},AV=()=>(e,t,n,r)=>{var i,a;const{x:o,y:s,y1:l,series:c}=n,{x:u,y:f}=t,d=c?Array.from(jn(e,y=>c[y]).values()):[e],h=d.map(y=>y[0]).filter(y=>y!==void 0),p=(((i=u==null?void 0:u.getBandWidth)===null||i===void 0?void 0:i.call(u))||0)/2,g=(((a=f==null?void 0:f.getBandWidth)===null||a===void 0?void 0:a.call(f))||0)/2,v=Array.from(d,y=>{const x=y.length,C=new Array(x*2);for(let _=0;_<y.length;_++){const S=y[_];C[_]=r.map([+o[S]+p,+s[S]+g]),C[x+_]=r.map([+o[S]+p,+l[S]+g])}return C});return[h,v,d]};AV.props={defaultShape:"area",defaultLabelShape:"label",composite:!1,shape:B$,channels:[...Zi({shapes:Object.keys(B$)}),{name:"x",required:!0},{name:"y",required:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[..._r(),{type:db},{type:Tp},{type:hb}],postInference:[...Pr(),...Id()],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};const z$={link:Kz,arc:eV,smooth:Jz,vhv:Qz},fC=e=>(t,n,r,i)=>{const{x:a,y:o,x1:s=a,y1:l=o}=r,c=Cf(n,r,e),u=t.map(f=>[i.map(c([+a[f],+o[f]],f)),i.map(c([+s[f],+l[f]],f))]);return[t,u]};fC.props={defaultShape:"link",defaultLabelShape:"label",composite:!1,shape:z$,channels:[...Zi({shapes:Object.keys(z$)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[..._r(),{type:xD},{type:bD}],postInference:[...Pr(),...Wc()]};const V$={image:nV},$V=e=>{const{cartesian:t}=e;return t?aC:(n,r,i,a)=>{const{x:o,y:s}=i,l=Cf(r,i,e),c=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(l(f,u))]});return[n,c]}};$V.props={defaultShape:"image",defaultLabelShape:"label",composite:!1,shape:V$,channels:[...Zi({shapes:Object.keys(V$)}),{name:"x",required:!0},{name:"y",required:!0},{name:"src",scale:"identity"},{name:"size"}],preInference:[..._r(),{type:Y3},{type:U3}],postInference:[...Pr(),...Wc()]};
86const W$={polygon:rV,ribbon:iV},TV=()=>(e,t,n,r)=>{const i=Object.entries(n).filter(([s])=>s.startsWith("x")).map(([,s])=>s),a=Object.entries(n).filter(([s])=>s.startsWith("y")).map(([,s])=>s),o=e.map(s=>{const l=[];for(let c=0;c<i.length;c++){const u=i[c][s];if(u===void 0)break;const f=a[c][s];l.push(r.map([+u,+f]))}return l});return[e,o]};TV.props={defaultShape:"polygon",defaultLabelShape:"label",composite:!1,shape:W$,channels:[...Zi({shapes:Object.keys(W$)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[..._r()],postInference:[...Pr(),...Wc()]};const H$={box:aV,violin:oV},PV=()=>(e,t,n,r)=>{const{x:i,y:a,y1:o,y2:s,y3:l,y4:c,series:u}=n,f=t.x,d=t.series,h=Array.from(e,p=>{const g=f.getBandWidth(f.invert(+i[p])),v=d?d.getBandWidth(d.invert(+(u==null?void 0:u[p]))):1,y=g*v,x=(+(u==null?void 0:u[p])||0)*g,C=+i[p]+x+y/2,[_,S,O,E,k]=[+a[p],+o[p],+s[p],+l[p],+c[p]];return[[C-y/2,k],[C+y/2,k],[C,k],[C,E],[C-y/2,E],[C+y/2,E],[C+y/2,S],[C-y/2,S],[C-y/2,O],[C+y/2,O],[C,S],[C,_],[C-y/2,_],[C+y/2,_]].map(T=>r.map(T))});return[e,h]};PV.props={defaultShape:"box",defaultLabelShape:"label",composite:!1,shape:H$,channels:[...Zi({shapes:Object.keys(H$)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[..._r(),{type:pf}],postInference:[...Pr(),...Id()],interaction:{shareTooltip:!0}};const G$={vector:Xb},MV=()=>(e,t,n,r)=>{const{x:i,y:a,size:o,rotate:s}=n,[l,c]=r.getSize(),u=e.map(f=>{const d=+s[f]/180*Math.PI,h=+o[f],p=h/l,g=h/c,v=p*Math.cos(d),y=-g*Math.sin(d);return[r.map([+i[f]-v/2,+a[f]-y/2]),r.map([+i[f]+v/2,+a[f]+y/2])]});return[e,u]};MV.props={defaultShape:"vector",defaultLabelShape:"label",composite:!1,shape:G$,channels:[...Zi({shapes:Object.keys(G$)}),{name:"x",required:!0},{name:"y",required:!0},{name:"rotate",required:!0,scale:"identity"},{name:"size",required:!0}],preInference:[..._r()],postInference:[...Pr(),...Wc()]};const U$={line:sC},NV=e=>(t,n,r,i)=>{const{y:a}=r,o=Cf(n,r,_e({style:{bandOffset:0}},e)),s=Array.from(t,l=>{const c=[0,a[l]],u=[1,a[l]];return[c,u].map(f=>i.map(o(f,l)))});return[t,s]};NV.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:U$,channels:[...Ld({shapes:Object.keys(U$)}),{name:"y",required:!0}],preInference:[..._r(),{type:vD}],postInference:[...Pr()]};const Y$={line:sC},IV=e=>(t,n,r,i)=>{const{x:a}=r,o=Cf(n,r,_e({style:{bandOffset:0}},e)),s=Array.from(t,l=>{const c=[a[l],1],u=[a[l],0];return[c,u].map(f=>i.map(o(f,l)))});return[t,s]};IV.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:Y$,channels:[...Ld({shapes:Object.keys(Y$)}),{name:"x",required:!0}],preInference:[..._r(),{type:yD}],postInference:[...Pr()]};const X$={connector:sV},LV=(...e)=>fC(...e);LV.props={defaultShape:"connector",defaultLabelShape:"label",composite:!1,shape:X$,channels:[...Ld({shapes:Object.keys(X$)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[..._r()],postInference:[...Pr()]};function q$(e,t,n,r){if(t)return()=>[0,1];const{[e]:i,[`${e}1`]:a}=n;return o=>{var s;const l=((s=r.getBandWidth)===null||s===void 0?void 0:s.call(r,r.invert(+a[o])))||0;return[i[o],a[o]+l]}}function dC(e={}){const{extendX:t=!1,extendY:n=!1}=e;return(r,i,a,o)=>{const s=q$("x",t,a,i.x),l=q$("y",n,a,i.y),c=Array.from(r,u=>{const[f,d]=s(u),[h,p]=l(u);return[[f,h],[d,h],[d,p],[f,p]].map(C=>o.map(C))});return[r,c]}}const Z$={range:bf},RV=()=>dC();RV.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:Z$,channels:[...Ld({shapes:Object.keys(Z$)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[..._r()],postInference:[...Pr()]};const K$={range:bf},jV=()=>dC({extendY:!0});jV.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:K$,channels:[...Ld({shapes:Object.keys(K$)}),{name:"x",required:!0}],preInference:[..._r(),{type:CD}],postInference:[...Pr()]};const J$={range:bf},DV=()=>dC({extendX:!0});DV.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:J$,channels:[...Ld({shapes:Object.keys(J$)}),{name:"y",required:!0}],preInference:[..._r(),{type:wD}],postInference:[...Pr()]};function TSe(e){return e.target.depth}function PSe(e){return e.depth}function MSe(e,t){return t-1-e.height}function jm(e,t){return e.sourceLinks.length?e.depth:t-1}
vendor: 5,129 bytes, line 86
86function NSe(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?$a(e.sourceLinks,TSe)-1:0}function V5(e){return function(){return e}}function Q$(e,t){return Dm(e.source,t.source)||e.index-t.index}function eT(e,t){return Dm(e.target,t.target)||e.index-t.index}function Dm(e,t){return e.y0-t.y0}function e4(e){return e.value}function ISe(e){return e.index}function LSe(e){return e.nodes}function RSe(e){return e.links}function tT(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function nT({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const i of t.sourceLinks)i.y0=n+i.width/2,n+=i.width;for(const i of t.targetLinks)i.y1=r+i.width/2,r+=i.width}}function jSe(){let e=0,t=0,n=1,r=1,i=24,a=8,o,s=ISe,l=jm,c,u,f,d=LSe,h=RSe,p=6;function g(V){const z={nodes:d(V),links:h(V)};return v(z),y(z),x(z),C(z),O(z),nT(z),z}g.update=function(V){return nT(V),V},g.nodeId=function(V){return arguments.length?(s=typeof V=="function"?V:V5(V),g):s},g.nodeAlign=function(V){return arguments.length?(l=typeof V=="function"?V:V5(V),g):l},g.nodeDepth=function(V){return arguments.length?(c=V,g):c},g.nodeSort=function(V){return arguments.length?(u=V,g):u},g.nodeWidth=function(V){return arguments.length?(i=+V,g):i},g.nodePadding=function(V){return arguments.length?(a=o=+V,g):a},g.nodes=function(V){return arguments.length?(d=typeof V=="function"?V:V5(V),g):d},g.links=function(V){return arguments.length?(h=typeof V=="function"?V:V5(V),g):h},g.linkSort=function(V){return arguments.length?(f=V,g):f},g.size=function(V){return arguments.length?(e=t=0,n=+V[0],r=+V[1],g):[n-e,r-t]},g.extent=function(V){return arguments.length?(e=+V[0][0],n=+V[1][0],t=+V[0][1],r=+V[1][1],g):[[e,t],[n,r]]},g.iterations=function(V){return arguments.length?(p=+V,g):p};function v({nodes:V,links:z}){V.forEach((G,Y)=>{G.index=Y,G.sourceLinks=[],G.targetLinks=[]});const B=new Map(V.map(G=>[s(G),G]));if(z.forEach((G,Y)=>{G.index=Y;let{source:K,target:Q}=G;typeof K!="object"&&(K=G.source=tT(B,K)),typeof Q!="object"&&(Q=G.target=tT(B,Q)),K.sourceLinks.push(G),Q.targetLinks.push(G)}),f!=null)for(const{sourceLinks:G,targetLinks:Y}of V)G.sort(f),Y.sort(f)}function y({nodes:V}){for(const z of V)z.value=z.fixedValue===void 0?Math.max(io(z.sourceLinks,e4),io(z.targetLinks,e4)):z.fixedValue}function x({nodes:V}){const z=V.length;let B=new Set(V),G=new Set,Y=0;for(;B.size;){if(B.forEach(K=>{K.depth=Y;for(const{target:Q}of K.sourceLinks)G.add(Q)}),++Y>z)throw new Error("circular link");B=G,G=new Set}if(c){const K=Math.max(bn(V,ne=>ne.depth)+1,0);let Q;for(let ne=0;ne<V.length;ne++)Q=V[ne],Q.depth=c.call(null,Q,K)}}function C({nodes:V}){const z=V.length;let B=new Set(V),G=new Set,Y=0;for(;B.size;){if(B.forEach(K=>{K.height=Y;for(const{source:Q}of K.targetLinks)G.add(Q)}),++Y>z)throw new Error("circular link");B=G,G=new Set}}function _({nodes:V}){const z=Math.max(bn(V,Y=>Y.depth)+1,0),B=(n-e-i)/(z-1),G=new Array(z).fill(0).map(()=>[]);for(const Y of V){const K=Math.max(0,Math.min(z-1,Math.floor(l.call(null,Y,z))));Y.layer=K,Y.x0=e+K*B,Y.x1=Y.x0+i,G[K]?G[K].push(Y):G[K]=[Y]}if(u)for(const Y of G)Y.sort(u);return G}function S(V){const z=$a(V,B=>(r-t-(B.length-1)*o)/io(B,e4));for(const B of V){let G=t;for(const Y of B){Y.y0=G,Y.y1=G+Y.value*z,G=Y.y1+o;for(const K of Y.sourceLinks)K.width=K.value*z}G=(r-G+o)/(B.length+1);for(let Y=0;Y<B.length;++Y){const K=B[Y];K.y0+=G*(Y+1),K.y1+=G*(Y+1)}N(B)}}function O(V){const z=_(V);o=Math.min(a,(r-t)/(bn(z,B=>B.length)-1)),S(z);for(let B=0;B<p;++B){const G=Math.pow(.99,B),Y=Math.max(1-G,(B+1)/p);k(z,G,Y),E(z,G,Y)}}function E(V,z,B){for(let G=1,Y=V.length;G<Y;++G){const K=V[G];for(const Q of K){let ne=0,oe=0;for(const{source:ce,value:fe}of Q.targetLinks){const le=fe*(Q.layer-ce.layer);ne+=D(ce,Q)*le,oe+=le}if(!(oe>0))continue;const ae=(ne/oe-Q.y0)*z;Q.y0+=ae,Q.y1+=ae,R(Q)}u===void 0&&K.sort(Dm),K.length&&$(K,B)}}function k(V,z,B){for(let G=V.length,Y=G-2;Y>=0;--Y){const K=V[Y];for(const Q of K){let ne=0,oe=0;for(const{target:ce,value:fe}of Q.sourceLinks){const le=fe*(ce.layer-Q.layer);ne+=F(Q,ce)*le,oe+=le}if(!(oe>0))continue;const ae=(ne/oe-Q.y0)*z;Q.y0+=ae,Q.y1+=ae,R(Q)}u===void 0&&K.sort(Dm),K.length&&$(K,B)}}function $(V,z){const B=V.length>>1,G=V[B];M(V,G.y0-o,B-1,z),T(V,G.y1+o,B+1,z),M(V,r,V.length-1,z),T(V,t,0,z)}function T(V,z,B,G){for(;B<V.length;++B){const Y=V[B],K=(z-Y.y0)*G;K>1e-6&&(Y.y0+=K,Y.y1+=K),z=Y.y1+o}}function M(V,z,B,G){for(;B>=0;--B){const Y=V[B],K=(Y.y1-z)*G;K>1e-6&&(Y.y0-=K,Y.y1-=K),z=Y.y0-o}}function R({sourceLinks:V,targetLinks:z}){if(f===void 0){for(const{source:{sourceLinks:B}}of z)B.sort(eT);for(const{target:{targetLinks:B}}of V)B.sort(Q$)}}function N(V){if(f===void 0)for(const{sourceLinks:z,targetLinks:B}of V)z.sort(eT),B.sort(Q$)}function D(V,z){let B=V.y0-(V.sourceLinks.length-1)*o/2;for(const{target:G,width:Y}of V.sourceLinks){if(G===z)break;B+=Y+o}for(const{source:G,width:Y}of z.targetLinks){if(G===V)break;B-=Y}return B}function F(V,z){let B=z.y0-(z.targetLinks.length-1)*o/2;for(const{source:G,width:Y}of z.targetLinks){if(G===V)break;B+=Y+o}for(const{target:G,width:Y}of V.sourceLinks){if(G===z)break;B-=Y}return B}return g}
86const DSe={nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodes:e=>e.nodes,links:e=>e.links,nodeSort:void 0,linkSort:void 0,iterations:6},FSe={left:PSe,right:MSe,center:NSe,justify:jm};function BSe(e){const t=typeof e;return t==="string"?FSe[e]||jm:t==="function"?e:jm}const FV=e=>t=>{const{nodeId:n,nodeSort:r,nodeAlign:i,nodeWidth:a,nodePadding:o,nodeDepth:s,nodes:l,links:c,linkSort:u,iterations:f}=Object.assign({},DSe,e),d=jSe().nodeSort(r).linkSort(u).links(c).nodes(l).nodeWidth(a).nodePadding(o).nodeDepth(s).nodeAlign(BSe(i)).iterations(f).extent([[0,0],[1,1]]);typeof n=="function"&&d.nodeId(n);const h=d(t),{nodes:p,links:g}=h,v=p.map(x=>{const{x0:C,x1:_,y0:S,y1:O}=x;return Object.assign(Object.assign({},x),{x:[C,_,_,C],y:[S,S,O,O]})}),y=g.map(x=>{const{source:C,target:_}=x,S=C.x1,O=_.x0,E=x.width/2;return Object.assign(Object.assign({},x),{x:[S,S,O,O],y:[x.y0+E,x.y0-E,x.y1+E,x.y1-E]})});return{nodes:v,links:y}};FV.props={};function Is(e,t,n={},r=!1){if(Ml(e)||Array.isArray(e)&&r)return e;const i=Ve(e,t);return _e(n,i)}function Fm(e,t={}){return Ml(e)||Array.isArray(e)||!BV(e)?e:_e(t,e)}function BV(e){if(Object.keys(e).length===0)return!0;const{title:t,items:n}=e;return t!==void 0||n!==void 0}function Ls(e,t){return typeof e=="object"?Ve(e,t):e}var zSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const VSe={nodeId:e=>e.key,nodeWidth:.02,nodePadding:.02},WSe={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{stroke:"#000"}},HSe={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{fillOpacity:.5,stroke:void 0}},GSe={textAlign:e=>e.x[0]<.5?"start":"end",position:e=>e.x[0]<.5?"right":"left",fontSize:10},zV=e=>{const{data:t,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:l={},tooltip:c={},interaction:u}=e,{links:f,nodes:d}=oC(t,n),h=Ve(n,"node"),p=Ve(n,"link"),{key:g=T=>T.key,color:v=g}=h,{links:y,nodes:x}=FV(Object.assign(Object.assign(Object.assign({},VSe),{nodeId:As(g)}),a))({links:f,nodes:d}),C=Ve(i,"label"),{text:_=g,spacing:S=5}=C,O=zSe(C,["text","spacing"]),E=As(g),k=Is(c,"node",{title:E,items:[{field:"value"}]},!0),$=Is(c,"link",{title:"",items:[T=>({name:"source",value:E(T.source)}),T=>({name:"target",value:E(T.target)})]});return[_e({},WSe,{data:x,encode:Object.assign(Object.assign({},h),{color:v}),scale:r,style:Ve(i,"node"),labels:[Object.assign(Object.assign(Object.assign({},GSe),{text:_,dx:T=>T.x[0]<.5?S:-S}),O),...o],tooltip:k,animate:Ls(l,"node"),axis:!1,interaction:u}),_e({},HSe,{data:y,encode:p,labels:s,style:Object.assign({fill:p.color?void 0:"#aaa",lineWidth:0},Ve(i,"link")),tooltip:$,animate:Ls(l,"link"),interaction:u})]};zV.props={};function USe(e,t){return t.value-e.value}function YSe(e,t){return t.frequency-e.frequency}function XSe(e,t){return`${e.id}`.localeCompare(`${t.id}`)}function qSe(e,t){return`${e.name}`.localeCompare(`${t.name}`)}const ZSe=Object.freeze(Object.defineProperty({__proto__:null,frequency:YSe,id:XSe,name:qSe,weight:USe},Symbol.toStringTag,{value:"Module"})),KSe={y:0,thickness:.05,weight:!1,marginRatio:.1,id:e=>e.id,source:e=>e.source,target:e=>e.target,sourceWeight:e=>e.value||1,targetWeight:e=>e.value||1,sortBy:null};function JSe(e){const{y:t,thickness:n,weight:r,marginRatio:i,id:a,source:o,target:s,sourceWeight:l,targetWeight:c,sortBy:u}=Object.assign(Object.assign({},KSe),e);function f(v){const y=v.nodes.map(C=>Object.assign({},C)),x=v.edges.map(C=>Object.assign({},C));return d(y,x),h(y),p(y,x),g(y,x),{nodes:y,edges:x}}function d(v,y){y.forEach(_=>{_.source=o(_),_.target=s(_),_.sourceWeight=l(_),_.targetWeight=c(_)});const x=jn(y,_=>_.source),C=jn(y,_=>_.target);return v.forEach(_=>{_.id=a(_);const S=x.has(_.id)?x.get(_.id):[],O=C.has(_.id)?C.get(_.id):[];_.frequency=S.length+O.length,_.value=io(S,E=>E.sourceWeight)+io(O,E=>E.targetWeight)}),{nodes:v,edges:y}}function h(v,y){const x=typeof u=="function"?u:ZSe[u];x&&v.sort(x)}function p(v,y){const x=v.length;if(!x)throw ld("Invalid nodes: it's empty!");if(!r){const S=1/x;return v.forEach((O,E)=>{O.x=(E+.5)*S,O.y=t}),{nodes:v,edges:y}}const C=i/(2*x),_=v.reduce((S,O)=>S+=O.value,0);return v.reduce((S,O)=>{O.weight=O.value/_,O.width=O.weight*(1-i),O.height=n;const E=C+S,k=E+O.width,$=t-n/2,T=$+n;return O.x=[E,k,k,E],O.y=[$,$,T,T],S+O.width+2*C},0),{nodes:v,edges:y}}function g(v,y){const x=new Map(v.map(S=>[S.id,S]));
86if(!r)return y.forEach(S=>{const O=o(S),E=s(S),k=x.get(O),$=x.get(E);k&&$&&(S.x=[k.x,$.x],S.y=[k.y,$.y])}),{nodes:v,edges:y};y.forEach(S=>{S.x=[0,0,0,0],S.y=[t,t,t,t]});const C=jn(y,S=>S.source),_=jn(y,S=>S.target);v.forEach(S=>{const{edges:O,width:E,x:k,y:$,value:T,id:M}=S,R=C.get(M)||[],N=_.get(M)||[];let D=0;R.map(F=>{const V=F.sourceWeight/T*E;F.x[0]=k[0]+D,F.x[1]=k[0]+D+V,D+=V}),N.forEach(F=>{const V=F.targetWeight/T*E;F.x[3]=k[0]+D,F.x[2]=k[0]+D+V,D+=V})})}return f}const hC=e=>t=>JSe(e)(t);hC.props={};var rT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const t4={y:0,thickness:.05,marginRatio:.1,id:e=>e.key,source:e=>e.source,target:e=>e.target,sourceWeight:e=>e.value||1,targetWeight:e=>e.value||1,sortBy:null},QSe={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{opacity:1,fillOpacity:1,lineWidth:1}},eOe={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{opacity:.5,lineWidth:1}},tOe={position:"outside",fontSize:10},VV=(e,t)=>{const{data:n,encode:r={},scale:i,style:a={},layout:o={},nodeLabels:s=[],linkLabels:l=[],animate:c={},tooltip:u={}}=e,{nodes:f,links:d}=oC(n,r),h=Ve(r,"node"),p=Ve(r,"link"),{key:g=F=>F.key,color:v=g}=h,{linkEncodeColor:y=F=>F.source}=p,{nodeWidthRatio:x=t4.thickness,nodePaddingRatio:C=t4.marginRatio}=o,_=rT(o,["nodeWidthRatio","nodePaddingRatio"]),{nodes:S,edges:O}=hC(Object.assign(Object.assign(Object.assign(Object.assign({},t4),{id:As(g),thickness:x,marginRatio:C}),_),{weight:!0}))({nodes:f,edges:d}),E=Ve(a,"label"),{text:k=g}=E,$=rT(E,["text"]),T=Is(u,"node",{title:"",items:[F=>({name:F.key,value:F.value})]},!0),M=Is(u,"link",{title:"",items:[F=>({name:`${F.source} -> ${F.target}`,value:F.value})]}),{height:R,width:N}=t,D=Math.min(R,N);return[_e({},eOe,{data:O,encode:Object.assign(Object.assign({},p),{color:y}),labels:l,style:Object.assign({fill:y?void 0:"#aaa"},Ve(a,"link")),tooltip:M,animate:Ls(c,"link")}),_e({},QSe,{data:S,encode:Object.assign(Object.assign({},h),{color:v}),scale:i,style:Ve(a,"node"),coordinate:{type:"polar",outerRadius:(D-20)/D,startAngle:-Math.PI*2,endAngle:0},labels:[Object.assign(Object.assign(Object.assign({},tOe),{text:k}),$),...s],tooltip:T,animate:Ls(c,"node"),axis:!1})]};VV.props={};const iT={path:pV,hollow:gV},WV=e=>(t,n,r,i)=>[t,t.map(()=>[[0,0]])];WV.props={defaultShape:"path",defaultLabelShape:"label",shape:iT,composite:!1,channels:[...Zi({shapes:Object.keys(iT)}),{name:"d",scale:"identity"}],preInference:[..._r()],postInference:[...Pr()]};function nOe(e,t){return e.parent===t.parent?1:2}function rOe(e){return e.reduce(iOe,0)/e.length}function iOe(e,t){return e+t.x}function aOe(e){return 1+e.reduce(oOe,0)}function oOe(e,t){return Math.max(e,t.y)}function sOe(e){for(var t;t=e.children;)e=t[0];return e}function lOe(e){for(var t;t=e.children;)e=t[t.length-1];return e}function cOe(){var e=nOe,t=1,n=1,r=!1;function i(a){var o,s=0;a.eachAfter(function(d){var h=d.children;h?(d.x=rOe(h),d.y=aOe(h)):(d.x=o?s+=e(d,o):0,d.y=0,o=d)});var l=sOe(a),c=lOe(a),u=l.x-e(l,c)/2,f=c.x+e(c,l)/2;return a.eachAfter(r?function(d){d.x=(d.x-a.x)*t,d.y=(a.y-d.y)*n}:function(d){d.x=(d.x-u)/(f-u)*t,d.y=(1-(a.y?d.y/a.y:1))*n})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(r=!1,t=+a[0],n=+a[1],i):r?null:[t,n]},i.nodeSize=function(a){return arguments.length?(r=!0,t=+a[0],n=+a[1],i):r?[t,n]:null},i}function uOe(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function fOe(){return this.eachAfter(uOe)}function dOe(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function hOe(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function pOe(e,t){for(var n=this,r=[n],i=[],a,o,s,l=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++l,this);return this}function gOe(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function mOe(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function vOe(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function yOe(e){for(var t=this,n=xOe(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function xOe(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function bOe(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function COe(){return Array.from(this)}function wOe(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function _Oe(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*SOe(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function Rd(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=kOe)):t===void 0&&(t=EOe);for(var n=new vd(e),r,i=[n],a,o,s,l;r=i.pop();)if((o=t(r.data))&&(l=(o=Array.from(o)).length))for(r.children=o,s=l-1;s>=0;--s)i.push(a=o[s]=new vd(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(HV)}function OOe(){return Rd(this).eachBefore(AOe)}function EOe(e){return e.children}function kOe(e){return Array.isArray(e)?e[1]:null}function AOe(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function HV(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function vd(e){this.data=e,this.depth=this.height=0,this.parent=null}vd.prototype=Rd.prototype={constructor:vd,count:fOe,each:dOe,eachAfter:pOe,eachBefore:hOe,find:gOe,sum:mOe,sort:vOe,path:yOe,ancestors:bOe,descendants:COe,leaves:wOe,links:_Oe,copy:OOe,[Symbol.iterator]:SOe};function Tg(e){return e==null?null:GV(e)}function GV(e){if(typeof e!="function")throw new Error;return e}function Mu(){return 0}function b0(e){return function(){return e}}const $Oe=1664525,TOe=1013904223,aT=4294967296;function POe(){let e=1;return()=>(e=($Oe*e+TOe)%aT)/aT}function MOe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function NOe(e,t){let n=e.length,r,i;for(;n;)i=t()*n--|0,r=e[n],e[n]=e[i],e[i]=r;return e}function IOe(e,t){for(var n=0,r=(e=NOe(Array.from(e),t)).length,i=[],a,o;n<r;)a=e[n],o&&UV(o,a)?++n:(o=ROe(i=LOe(i,a)),n=0);return o}function LOe(e,t){var n,r;if(n4(t,e))return[t];for(n=0;n<e.length;++n)if(W5(t,e[n])&&n4(H1(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(W5(H1(e[n],e[r]),t)&&W5(H1(e[n],t),e[r])&&W5(H1(e[r],t),e[n])&&n4(YV(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function W5(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function UV(e,t){var n=e.r-t.r+Math.max(e.r,t.r,1)*1e-9,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function n4(e,t){for(var n=0;n<t.length;++n)if(!UV(e,t[n]))return!1;return!0}function ROe(e){switch(e.length){case 1:return jOe(e[0]);case 2:return H1(e[0],e[1]);case 3:return YV(e[0],e[1],e[2])}}function jOe(e){return{x:e.x,y:e.y,r:e.r}}function H1(e,t){var n=e.x,r=e.y,i=e.r,a=t.x,o=t.y,s=t.r,l=a-n,c=o-r,u=s-i,f=Math.sqrt(l*l+c*c);
vendor: 4,174 bytes, line 86
86return{x:(n+a+l/f*u)/2,y:(r+o+c/f*u)/2,r:(f+i+s)/2}}function YV(e,t,n){var r=e.x,i=e.y,a=e.r,o=t.x,s=t.y,l=t.r,c=n.x,u=n.y,f=n.r,d=r-o,h=r-c,p=i-s,g=i-u,v=l-a,y=f-a,x=r*r+i*i-a*a,C=x-o*o-s*s+l*l,_=x-c*c-u*u+f*f,S=h*p-d*g,O=(p*_-g*C)/(S*2)-r,E=(g*v-p*y)/S,k=(h*C-d*_)/(S*2)-i,$=(d*y-h*v)/S,T=E*E+$*$-1,M=2*(a+O*E+k*$),R=O*O+k*k-a*a,N=-(Math.abs(T)>1e-6?(M+Math.sqrt(M*M-4*T*R))/(2*T):R/M);return{x:r+O+E*N,y:i+k+$*N,r:N}}function oT(e,t,n){var r=e.x-t.x,i,a,o=e.y-t.y,s,l,c=r*r+o*o;c?(a=t.r+n.r,a*=a,l=e.r+n.r,l*=l,a>l?(i=(c+l-a)/(2*c),s=Math.sqrt(Math.max(0,l/c-i*i)),n.x=e.x-i*r-s*o,n.y=e.y-i*o+s*r):(i=(c+a-l)/(2*c),s=Math.sqrt(Math.max(0,a/c-i*i)),n.x=t.x+i*r-s*o,n.y=t.y+i*o+s*r)):(n.x=t.x+n.r,n.y=t.y)}function sT(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function lT(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,a=(t.y*n.r+n.y*t.r)/r;return i*i+a*a}function H5(e){this._=e,this.next=null,this.previous=null}function DOe(e,t){if(!(a=(e=MOe(e)).length))return 0;var n,r,i,a,o,s,l,c,u,f,d;if(n=e[0],n.x=0,n.y=0,!(a>1))return n.r;if(r=e[1],n.x=-r.r,r.x=n.r,r.y=0,!(a>2))return n.r+r.r;oT(r,n,i=e[2]),n=new H5(n),r=new H5(r),i=new H5(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;e:for(l=3;l<a;++l){oT(n._,r._,i=e[l]),i=new H5(i),c=r.next,u=n.previous,f=r._.r,d=n._.r;do if(f<=d){if(sT(c._,i._)){r=c,n.next=r,r.previous=n,--l;continue e}f+=c._.r,c=c.next}else{if(sT(u._,i._)){n=u,n.next=r,r.previous=n,--l;continue e}d+=u._.r,u=u.previous}while(c!==u.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,o=lT(n);(i=i.next)!==r;)(s=lT(i))<o&&(n=i,o=s);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=IOe(n,t),l=0;l<a;++l)n=e[l],n.x-=i.x,n.y-=i.y;return i.r}function FOe(e){return Math.sqrt(e.value)}function BOe(){var e=null,t=1,n=1,r=Mu;function i(a){const o=POe();return a.x=t/2,a.y=n/2,e?a.eachBefore(cT(e)).eachAfter(r4(r,.5,o)).eachBefore(uT(1)):a.eachBefore(cT(FOe)).eachAfter(r4(Mu,1,o)).eachAfter(r4(r,a.r/Math.min(t,n),o)).eachBefore(uT(Math.min(t,n)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=Tg(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],n=+a[1],i):[t,n]},i.padding=function(a){return arguments.length?(r=typeof a=="function"?a:b0(+a),i):r},i}function cT(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function r4(e,t,n){return function(r){if(i=r.children){var i,a,o=i.length,s=e(r)*t||0,l;if(s)for(a=0;a<o;++a)i[a].r+=s;if(l=DOe(i,n),s)for(a=0;a<o;++a)i[a].r-=s;r.r=l+s}}}function uT(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function XV(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Hp(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,c=e.value&&(r-t)/e.value;++s<l;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*c}function zOe(){var e=1,t=1,n=0,r=!1;function i(o){var s=o.height+1;return o.x0=o.y0=n,o.x1=e,o.y1=t/s,o.eachBefore(a(t,s)),r&&o.eachBefore(XV),o}function a(o,s){return function(l){l.children&&Hp(l,l.x0,o*(l.depth+1)/s,l.x1,o*(l.depth+2)/s);var c=l.x0,u=l.y0,f=l.x1-n,d=l.y1-n;f<c&&(c=f=(c+f)/2),d<u&&(u=d=(u+d)/2),l.x0=c,l.y0=u,l.x1=f,l.y1=d}}return i.round=function(o){return arguments.length?(r=!!o,i):r},i.size=function(o){return arguments.length?(e=+o[0],t=+o[1],i):[e,t]},i.padding=function(o){return arguments.length?(n=+o,i):n},i}var VOe={depth:-1},fT={},i4={};function WOe(e){return e.id}function HOe(e){return e.parentId}function L7(){var e=WOe,t=HOe,n;function r(i){var a=Array.from(i),o=e,s=t,l,c,u,f,d,h,p,g,v=new Map;if(n!=null){const y=a.map((_,S)=>GOe(n(_,S,i))),x=y.map(dT),C=new Set(y).add("");for(const _ of x)C.has(_)||(C.add(_),y.push(_),x.push(dT(_)),a.push(i4));o=(_,S)=>y[S],s=(_,S)=>x[S]}for(u=0,l=a.length;u<l;++u)c=a[u],h=a[u]=new vd(c),(p=o(c,u,i))!=null&&(p+="")&&(g=h.id=p,v.set(g,v.has(g)?fT:h)),(p=s(c,u,i))!=null&&(p+="")&&(h.parent=p);for(u=0;u<l;++u)if(h=a[u],p=h.parent){if(d=v.get(p),!d)throw new Error("missing: "+p);if(d===fT)throw new Error("ambiguous: "+p);d.children?d.children.push(h):d.children=[h],h.parent=d}else{if(f)throw new Error("multiple roots");f=h}if(!f)throw new Error("no root");
86if(n!=null){for(;f.data===i4&&f.children.length===1;)f=f.children[0],--l;for(let y=a.length-1;y>=0&&(h=a[y],h.data===i4);--y)h.data=null}if(f.parent=VOe,f.eachBefore(function(y){y.depth=y.parent.depth+1,--l}).eachBefore(HV),f.parent=null,l>0)throw new Error("cycle");return f}return r.id=function(i){return arguments.length?(e=Tg(i),r):e},r.parentId=function(i){return arguments.length?(t=Tg(i),r):t},r.path=function(i){return arguments.length?(n=Tg(i),r):n},r}function GOe(e){e=`${e}`;let t=e.length;return R7(e,t-1)&&!R7(e,t-2)&&(e=e.slice(0,-1)),e[0]==="/"?e:`/${e}`}function dT(e){let t=e.length;if(t<2)return"";for(;--t>1&&!R7(e,t););return e.slice(0,t)}function R7(e,t){if(e[t]==="/"){let n=0;for(;t>0&&e[--t]==="\\";)++n;if((n&1)===0)return!0}return!1}function UOe(e,t){return e.parent===t.parent?1:2}function a4(e){var t=e.children;return t?t[0]:e.t}function o4(e){var t=e.children;return t?t[t.length-1]:e.t}function YOe(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function XOe(e){for(var t=0,n=0,r=e.children,i=r.length,a;--i>=0;)a=r[i],a.z+=t,a.m+=t,t+=a.s+(n+=a.c)}function qOe(e,t,n){return e.a.parent===t.parent?e.a:n}function Pg(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Pg.prototype=Object.create(vd.prototype);function ZOe(e){for(var t=new Pg(e,0),n,r=[t],i,a,o,s;n=r.pop();)if(a=n._.children)for(n.children=new Array(s=a.length),o=s-1;o>=0;--o)r.push(i=n.children[o]=new Pg(a[o],o)),i.parent=n;return(t.parent=new Pg(null,0)).children=[t],t}function KOe(){var e=UOe,t=1,n=1,r=null;function i(c){var u=ZOe(c);if(u.eachAfter(a),u.parent.m=-u.z,u.eachBefore(o),r)c.eachBefore(l);else{var f=c,d=c,h=c;c.eachBefore(function(x){x.x<f.x&&(f=x),x.x>d.x&&(d=x),x.depth>h.depth&&(h=x)});var p=f===d?1:e(f,d)/2,g=p-f.x,v=t/(d.x+p+g),y=n/(h.depth||1);c.eachBefore(function(x){x.x=(x.x+g)*v,x.y=x.depth*y})}return c}function a(c){var u=c.children,f=c.parent.children,d=c.i?f[c.i-1]:null;if(u){XOe(c);var h=(u[0].z+u[u.length-1].z)/2;d?(c.z=d.z+e(c._,d._),c.m=c.z-h):c.z=h}else d&&(c.z=d.z+e(c._,d._));c.parent.A=s(c,d,c.parent.A||f[0])}function o(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function s(c,u,f){if(u){for(var d=c,h=c,p=u,g=d.parent.children[0],v=d.m,y=h.m,x=p.m,C=g.m,_;p=o4(p),d=a4(d),p&&d;)g=a4(g),h=o4(h),h.a=c,_=p.z+x-d.z-v+e(p._,d._),_>0&&(YOe(qOe(p,c,f),c,_),v+=_,y+=_),x+=p.m,v+=d.m,C+=g.m,y+=h.m;p&&!o4(h)&&(h.t=p,h.m+=x-y),d&&!a4(g)&&(g.t=d,g.m+=v-C,f=c)}return f}function l(c){c.x*=t,c.y=c.depth*n}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(r=!1,t=+c[0],n=+c[1],i):r?null:[t,n]},i.nodeSize=function(c){return arguments.length?(r=!0,t=+c[0],n=+c[1],i):r?[t,n]:null},i}function mv(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,c=e.value&&(i-n)/e.value;++s<l;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*c}var qV=(1+Math.sqrt(5))/2;function ZV(e,t,n,r,i,a){for(var o=[],s=t.children,l,c,u=0,f=0,d=s.length,h,p,g=t.value,v,y,x,C,_,S,O;u<d;){h=i-n,p=a-r;do v=s[f++].value;while(!v&&f<d);for(y=x=v,S=Math.max(p/h,h/p)/(g*e),O=v*v*S,_=Math.max(x/O,O/y);f<d;++f){if(v+=c=s[f].value,c<y&&(y=c),c>x&&(x=c),O=v*v*S,C=Math.max(x/O,O/y),C>_){v-=c;break}_=C}o.push(l={value:v,dice:h<p,children:s.slice(u,f)}),l.dice?Hp(l,n,r,i,g?r+=p*v/g:a):mv(l,n,r,g?n+=h*v/g:i,a),g-=v,u=f}return o}const KV=function e(t){function n(r,i,a,o,s){ZV(t,r,i,a,o,s)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(qV);function JOe(){var e=KV,t=!1,n=1,r=1,i=[0],a=Mu,o=Mu,s=Mu,l=Mu,c=Mu;function u(d){return d.x0=d.y0=0,d.x1=n,d.y1=r,d.eachBefore(f),i=[0],t&&d.eachBefore(XV),d}function f(d){var h=i[d.depth],p=d.x0+h,g=d.y0+h,v=d.x1-h,y=d.y1-h;v<p&&(p=v=(p+v)/2),y<g&&(g=y=(g+y)/2),d.x0=p,d.y0=g,d.x1=v,d.y1=y,d.children&&(h=i[d.depth+1]=a(d)/2,p+=c(d)-h,g+=o(d)-h,v-=s(d)-h,y-=l(d)-h,v<p&&(p=v=(p+v)/2),y<g&&(g=y=(g+y)/2),e(d,p,g,v,y))}return u.round=function(d){return arguments.length?(t=!!d,u):t},u.size=function(d){return arguments.length?(n=+d[0],r=+d[1],u):[n,r]},u.tile=function(d){return arguments.length?(e=GV(d),u):e},u.padding=function(d){return arguments.length?u.paddingInner(d).paddingOuter(d):u.paddingInner()},u.paddingInner=function(d){return arguments.length?(a=typeof d=="function"?d:b0(+d),u):a},u.paddingOuter=function(d){return arguments.length?u.paddingTop(d).paddingRight(d).paddingBottom(d).paddingLeft(d):u.paddingTop()},u.paddingTop=function(d){return arguments.length?(o=typeof d=="function"?d:b0(+d),u):o},u.paddingRight=function(d){return arguments.length?(s=typeof d=="function"?d:b0(+d),u):s},u.paddingBottom=function(d){return arguments.length?(l=typeof d=="function"?d:b0(+d),u):l},u.paddingLeft=function(d){return arguments.length?(c=typeof d=="function"?d:b0(+d),u):c},u}function QOe(e,t,n,r,i){var a=e.children,o,s=a.length,l,c=new Array(s+1);for(c[0]=l=o=0;o<s;++o)c[o+1]=l+=a[o].value;u(0,s,e.value,t,n,r,i);function u(f,d,h,p,g,v,y){if(f>=d-1){var x=a[f];x.x0=p,x.y0=g,x.x1=v,x.y1=y;return}for(var C=c[f],_=h/2+C,S=f+1,O=d-1;S<O;){var E=S+O>>>1;c[E]<_?S=E+1:O=E}_-c[S-1]<c[S]-_&&f+1<S&&--S;var k=c[S]-C,$=h-k;if(v-p>y-g){var T=h?(p*$+v*k)/h:v;u(f,S,k,p,g,T,y),u(S,d,$,T,g,v,y)}
86else{var M=h?(g*$+y*k)/h:y;u(f,S,k,p,g,v,M),u(S,d,$,p,M,v,y)}}}function eEe(e,t,n,r,i){(e.depth&1?mv:Hp)(e,t,n,r,i)}const tEe=function e(t){function n(r,i,a,o,s){if((l=r._squarify)&&l.ratio===t)for(var l,c,u,f,d=-1,h,p=l.length,g=r.value;++d<p;){for(c=l[d],u=c.children,f=c.value=0,h=u.length;f<h;++f)c.value+=u[f].value;c.dice?Hp(c,i,a,o,g?a+=(s-a)*c.value/g:s):mv(c,i,a,g?i+=(o-i)*c.value/g:o,s),g-=c.value}else r._squarify=l=ZV(t,r,i,a,o,s),l.ratio=t}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(qV);function nEe(e,t){return Array.isArray(e)?typeof t=="function"?L7().path(t)(e):L7()(e):Rd(e)}function JV(e,t=[e.data.name]){e.id=e.id||e.data.name,e.path=t,e.children&&e.children.forEach(n=>{n.id=`${e.id}/${n.data.name}`,n.path=[...t,n.data.name],JV(n,n.path)})}function QV(e){const t=an(e,["data","name"]);t.replaceAll&&(e.path=t.replaceAll(".","/").split("/")),e.children&&e.children.forEach(n=>{QV(n)})}function rEe(e,t){const n={treemapBinary:QOe,treemapDice:Hp,treemapSlice:mv,treemapSliceDice:eEe,treemapSquarify:KV,treemapResquarify:tEe},r=e==="treemapSquarify"?n[e].ratio(t):n[e];if(!r)throw new TypeError("Invalid tile method!");return r}function eW(e,t,n){const{value:r}=n,i=rEe(t.tile,t.ratio),a=nEe(e,t.path);Dr(e)?QV(a):JV(a),r?a.sum(l=>t.ignoreParentValue&&l.children?0:As(r)(l)).sort(t.sort):a.count(),JOe().tile(i).size(t.size).round(t.round).paddingInner(t.paddingInner).paddingOuter(t.paddingOuter).paddingTop(t.paddingTop).paddingRight(t.paddingRight).paddingBottom(t.paddingBottom).paddingLeft(t.paddingLeft)(a);const o=a.descendants().map(l=>Object.assign(l,{id:l.id.replace(/^\//,""),x:[l.x0,l.x1],y:[l.y0,l.y1]}));return[o.filter(typeof t.layer=="function"?t.layer:l=>l.height===t.layer),o]}var iEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const aEe=(e,t)=>({tile:"treemapSquarify",ratio:.5*(1+Math.sqrt(5)),size:[e,t],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,sort:(n,r)=>r.value-n.value,layer:0}),oEe=(e,t)=>({type:"rect",axis:!1,encode:{x:"x",y:"y",key:"id",color:n=>n.path[1]},scale:{x:{domain:[0,e],range:[0,1]},y:{domain:[0,t],range:[0,1]}},style:{stroke:"#fff"},state:{active:{opacity:.6},inactive:{opacity:1}}}),sEe={fontSize:10,text:e=>kp(e.path),position:"inside",fill:"#000",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:e=>e.x1-e.x0,isTreemapLabel:!0},lEe={title:e=>{var t,n;return(n=(t=e.path)===null||t===void 0?void 0:t.join)===null||n===void 0?void 0:n.call(t,".")},items:[{field:"value"}]},cEe={title:e=>kp(e.path),items:[{field:"value"}]},tW=(e,t)=>{const{width:n,height:r,options:i}=t,{data:a,encode:o={},scale:s,style:l={},layout:c={},labels:u=[],tooltip:f={}}=e,d=iEe(e,["data","encode","scale","style","layout","labels","tooltip"]),h=an(i,["interaction","treemapDrillDown"]),p=_e({},aEe(n,r),c,{layer:h?x=>x.depth===1:c.layer}),[g,v]=eW(a,p,o),y=Ve(l,"label");return _e({},oEe(n,r),Object.assign(Object.assign({data:g,scale:s,style:l,labels:[Object.assign(Object.assign(Object.assign({},sEe),y),h&&{cursor:"pointer"}),...u]},d),{encode:o,tooltip:Fm(f,lEe),axis:!1}),h?{interaction:Object.assign(Object.assign({},d.interaction),{treemapDrillDown:h?Object.assign(Object.assign({},h),{originData:v,layout:p}):void 0}),encode:Object.assign({color:x=>kp(x.path)},o),tooltip:Fm(f,cEe)}:{})};tW.props={};var uEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const fEe=(e,t)=>({size:[e,t],padding:0,sort:(n,r)=>r.value-n.value}),dEe=(e,t,n)=>({type:"point",axis:!1,legend:!1,scale:{x:{domain:[0,e]},y:{domain:[0,t]},size:{type:"identity"}},encode:{x:"x",y:"y",size:"r",shape:"point"},style:{fill:n.color?void 0:r=>r.height===0?"#ddd":"#fff",stroke:n.color?void 0:r=>r.height===0?"":"#000"}}),hEe={text:"",position:"inside",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:e=>e.r*2},pEe={title:e=>e.data.name,items:[{field:"value"}]},gEe=(e,t,n)=>{const{value:r}=n,i=Dr(e)?L7().path(t.path)(e):Rd(e);return r?i.sum(a=>As(r)(a)).sort(t.sort):i.count(),BOe().size(t.size).padding(t.padding)(i),i.descendants()},nW=(e,t)=>
86{const{width:n,height:r}=t,{data:i,encode:a={},scale:o={},style:s={},layout:l={},labels:c=[],tooltip:u={}}=e,f=uEe(e,["data","encode","scale","style","layout","labels","tooltip"]),d=dEe(n,r,a),h=gEe(i,_e({},fEe(n,r),l),_e({},d.encode,a)),p=Ve(s,"label");return _e({},d,Object.assign(Object.assign({data:h,encode:a,scale:o,style:s,labels:[Object.assign(Object.assign({},hEe),p),...c]},f),{tooltip:Fm(u,pEe),axis:!1}))};nW.props={};var hT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function mEe(e,t){return $a(e,n=>t[n])}function vEe(e,t){return bn(e,n=>t[n])}function rW(e,t){const n=pC(e,t)*2.5-gC(e,t)*1.5;return $a(e,r=>t[r]>=n?t[r]:NaN)}function pC(e,t){return F3(e,.25,n=>t[n])}function yEe(e,t){return F3(e,.5,n=>t[n])}function gC(e,t){return F3(e,.75,n=>t[n])}function iW(e,t){const n=gC(e,t)*2.5-pC(e,t)*1.5;return bn(e,r=>t[r]<=n?t[r]:NaN)}function xEe(){return(e,t)=>{const{encode:n}=t,{y:r,x:i}=n,{value:a}=r,{value:o}=i;return[Array.from(jn(e,c=>o[+c]).values()).flatMap(c=>{const u=rW(c,a),f=iW(c,a);return c.filter(d=>a[d]<u||a[d]>f)}),t]}}const aW=e=>{const{data:t,encode:n,style:r={},tooltip:i={},transform:a,animate:o}=e,s=hT(e,["data","encode","style","tooltip","transform","animate"]),{point:l=!0}=r,c=hT(r,["point"]),{y:u}=n,f={y:u,y1:u,y2:u,y3:u,y4:u},d={y1:pC,y2:yEe,y3:gC},h=Is(i,"box",{items:[{channel:"y",name:"min"},{channel:"y1",name:"q1"},{channel:"y2",name:"q2"},{channel:"y3",name:"q3"},{channel:"y4",name:"max"}]},!0),p=Is(i,"point",{title:{channel:"x"},items:[{name:"outlier",channel:"y"}]});if(!l)return Object.assign({type:"box",data:t,transform:[Object.assign(Object.assign({type:"groupX",y:mEe},d),{y4:vEe})],encode:Object.assign(Object.assign({},n),f),style:c,tooltip:h},s);const g=Ve(c,"box"),v=Ve(c,"point");return[Object.assign({type:"box",data:t,transform:[Object.assign(Object.assign({type:"groupX",y:rW},d),{y4:iW})],encode:Object.assign(Object.assign({},n),f),style:g,tooltip:h,animate:Ls(o,"box")},s),{type:"point",data:t,transform:[{type:xEe}],encode:n,style:Object.assign({},v),tooltip:p,animate:Ls(o,"point")}]};aW.props={};const bEe={shape:bV},oW=e=>{const{cartesian:t}=e;return t?aC:(n,r,i,a)=>{const{x:o,y:s}=i,l=Cf(r,i,e),c=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(l(f,u))]});return[n,c]}};oW.props={defaultShape:"shape",defaultLabelShape:"label",composite:!1,shape:bEe,channels:[{name:"x",required:!0},{name:"y",required:!0}],preInference:[..._r(),{type:Y3},{type:U3},{type:_D}]};function CEe(e,t){var n,r=1;e==null&&(e=0),t==null&&(t=0);function i(){var a,o=n.length,s,l=0,c=0;for(a=0;a<o;++a)s=n[a],l+=s.x,c+=s.y;for(l=(l/o-e)*r,c=(c/o-t)*r,a=0;a<o;++a)s=n[a],s.x-=l,s.y-=c}return i.initialize=function(a){n=a},i.x=function(a){return arguments.length?(e=+a,i):e},i.y=function(a){return arguments.length?(t=+a,i):t},i.strength=function(a){return arguments.length?(r=+a,i):r},i}function wEe(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return sW(this.cover(t,n),t,n,e)}function sW(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,a=e._root,o={data:r},s=e._x0,l=e._y0,c=e._x1,u=e._y1,f,d,h,p,g,v,y,x;if(!a)return e._root=o,e;for(;a.length;)if((g=t>=(f=(s+c)/2))?s=f:c=f,(v=n>=(d=(l+u)/2))?l=d:u=d,i=a,!(a=a[y=v<<1|g]))return i[y]=o,e;if(h=+e._x.call(null,a.data),p=+e._y.call(null,a.data),t===h&&n===p)return o.next=a,i?i[y]=o:e._root=o,e;do i=i?i[y]=new Array(4):e._root=new Array(4),(g=t>=(f=(s+c)/2))?s=f:c=f,(v=n>=(d=(l+u)/2))?l=d:u=d;while((y=v<<1|g)===(x=(p>=d)<<1|h>=f));return i[x]=a,i[y]=o,e}function _Ee(e){var t,n,r=e.length,i,a,o=new Array(r),s=new Array(r),l=1/0,c=1/0,u=-1/0,f=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(a=+this._y.call(null,t))||(o[n]=i,s[n]=a,i<l&&(l=i),i>u&&(u=i),a<c&&(c=a),a>f&&(f=a));if(l>u||c>f)return this;for(this.cover(l,c).cover(u,f),n=0;n<r;++n)sW(this,o[n],s[n],e[n]);return this}function SEe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,a=(r=Math.floor(t))+1;else{for(var o=i-n||1,s=this._root,l,c;n>e||e>=i||r>t||t>=a;)switch(c=(t<r)<<1|e<n,l=new Array(4),l[c]=s,s=l,o*=2,c){case 0:i=n+o,a=r+o;break;case 1:n=i-o,a=r+o;break;case 2:i=n+o,r=a-o;break;case 3:n=i-o,r=a-o;break}this._root&&this._root.length&&(this._root=s)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this}function OEe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function EEe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Ui(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function kEe(e,t,n){var r,i=this._x0,a=this._y0,o,s,l,c,u=this._x1,f=this._y1,d=[],h=this._root,p,g;for(h&&d.push(new Ui(h,i,a,u,f)),n==null?n=1/0:(i=e-n,a=t-n,u=e+n,f=t+n,n
86*=n);p=d.pop();)if(!(!(h=p.node)||(o=p.x0)>u||(s=p.y0)>f||(l=p.x1)<i||(c=p.y1)<a))if(h.length){var v=(o+l)/2,y=(s+c)/2;d.push(new Ui(h[3],v,y,l,c),new Ui(h[2],o,y,v,c),new Ui(h[1],v,s,l,y),new Ui(h[0],o,s,v,y)),(g=(t>=y)<<1|e>=v)&&(p=d[d.length-1],d[d.length-1]=d[d.length-1-g],d[d.length-1-g]=p)}else{var x=e-+this._x.call(null,h.data),C=t-+this._y.call(null,h.data),_=x*x+C*C;if(_<n){var S=Math.sqrt(n=_);i=e-S,a=t-S,u=e+S,f=t+S,r=h.data}}return r}function AEe(e){if(isNaN(u=+this._x.call(null,e))||isNaN(f=+this._y.call(null,e)))return this;var t,n=this._root,r,i,a,o=this._x0,s=this._y0,l=this._x1,c=this._y1,u,f,d,h,p,g,v,y;if(!n)return this;if(n.length)for(;;){if((p=u>=(d=(o+l)/2))?o=d:l=d,(g=f>=(h=(s+c)/2))?s=h:c=h,t=n,!(n=n[v=g<<1|p]))return this;if(!n.length)break;(t[v+1&3]||t[v+2&3]||t[v+3&3])&&(r=t,y=v)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):t?(a?t[v]=a:delete t[v],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[y]=n:this._root=n),this):(this._root=a,this)}function $Ee(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function TEe(){return this._root}function PEe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function MEe(e){var t=[],n,r=this._root,i,a,o,s,l;for(r&&t.push(new Ui(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,a=n.x0,o=n.y0,s=n.x1,l=n.y1)&&r.length){var c=(a+s)/2,u=(o+l)/2;(i=r[3])&&t.push(new Ui(i,c,u,s,l)),(i=r[2])&&t.push(new Ui(i,a,u,c,l)),(i=r[1])&&t.push(new Ui(i,c,o,s,u)),(i=r[0])&&t.push(new Ui(i,a,o,c,u))}return this}function NEe(e){var t=[],n=[],r;for(this._root&&t.push(new Ui(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var i=r.node;if(i.length){var a,o=r.x0,s=r.y0,l=r.x1,c=r.y1,u=(o+l)/2,f=(s+c)/2;(a=i[0])&&t.push(new Ui(a,o,s,u,f)),(a=i[1])&&t.push(new Ui(a,u,s,l,f)),(a=i[2])&&t.push(new Ui(a,o,f,u,c)),(a=i[3])&&t.push(new Ui(a,u,f,l,c))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function IEe(e){return e[0]}function LEe(e){return arguments.length?(this._x=e,this):this._x}function REe(e){return e[1]}function jEe(e){return arguments.length?(this._y=e,this):this._y}function lW(e,t,n){var r=new mC(t??IEe,n??REe,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function mC(e,t,n,r,i,a){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function pT(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Ki=lW.prototype=mC.prototype;Ki.copy=function(){var e=new mC(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=pT(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var i=0;i<4;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=new Array(4)}):t.target[i]=pT(r));return e};Ki.add=wEe;Ki.addAll=_Ee;Ki.cover=SEe;Ki.data=OEe;Ki.extent=EEe;Ki.find=kEe;Ki.remove=AEe;Ki.removeAll=$Ee;Ki.root=TEe;Ki.size=PEe;Ki.visit=MEe;Ki.visitAfter=NEe;Ki.x=LEe;Ki.y=jEe;function Aa(e){return function(){return e}}function M0(e){return(e()-.5)*1e-6}function DEe(e){return e.index}function gT(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function FEe(e){var t=DEe,n=f,r,i=Aa(30),a,o,s,l,c,u=1;e==null&&(e=[]);function f(v){return 1/Math.min(s[v.source.index],s[v.target.index])}function d(v){for(var y=0,x=e.length;y<u;++y)for(var C=0,_,S,O,E,k,$,T;C<x;++C)_=e[C],S=_.source,O=_.target,E=O.x+O.vx-S.x-S.vx||M0(c),k=O.y+O.vy-S.y-S.vy||M0(c),$=Math.sqrt(E*E+k*k),$=($-a[C])/$*v*r[C],E*=$,k*=$,O.vx-=E*(T=l[C]),O.vy-=k*T,S.vx+=E*(T=1-T),S.vy+=k*T}function h(){if(o){var v,y=o.length,x=e.length,C=new Map(o.map((S,O)=>[t(S,O,o),S])),_;for(v=0,s=new Array(y);v<x;++v)_=e[v],_.index=v,typeof _.source!="object"&&(_.source=gT(C,_.source)),typeof _.target!="object"&&(_.target=gT(C,_.target)),s[_.source.index]=(s[_.source.index]||0)+1,s[_.target.index]=(s[_.target.index]||0)+1;for(v=0,l=new Array(x);v<x;++v)_=e[v],l[v]=s[_.source.index]/(s[_.source.index]+s[_.target.index]);r=new Array(x),p(),a=new Array(x),g()}}function p(){if(o)for(var v=0,y=e.length;v<y;++v)r[v]=+n(e[v],v,e)}function g(){if(o)for(var v=0,y=e.length;v<y;++v)a[v]=+i(e[v],v,e)}return d.initialize=function(v,y){o=v,c=y,h()},d.links=function(v){return arguments.length?(e=v,h(),d):e},d.id=function(v){return arguments.length?(t=v,d):t},d.iterations=function(v){return arguments.length?(u=+v,d):u},d.strength=function(v){return arguments.length?(n=typeof v=="function"?v:Aa(+v),p(),d):n},d.distance=function(v){return arguments.length?(i=typeof v=="function"?v:Aa(+v),g(),d):i},d}var BEe={value:()=>{}};function cW(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Mg(n)}function Mg(e){this._=e}function zEe(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Mg.prototype=cW.prototype={constructor:Mg,on:function(e,t){var n=this._,r=zEe(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=VEe(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=mT(n[i],e.name,t);else if(t==null)for(i in n)n[i]=mT(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Mg(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function VEe(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function mT(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=BEe,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var yd=0,G1=0,k1=0,uW=1e3,Bm,U1,zm=0,af=0,vv=0,ep=typeof performance=="object"&&performance.now?performance:Date,fW=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function dW(){return af||(fW(WEe),af=ep.now()+vv)}function WEe(){af=0}function j7(){this._call=this._time=this._next=null}j7.prototype=hW.prototype={constructor:j7,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?dW():+n)+(t==null?0:+t),!this._next&&U1!==this&&(U1?U1._next=this:Bm=this,U1=this),this._call=e,this._time=n,D7()},stop:function(){this._call&&(this._call=null,this._time=1/0,D7())}};function hW(e,t,n){var r=new j7;return r.restart(e,t,n),r}function HEe(){dW(),++yd;for(var e=Bm,t;e;)(t=af-e._time)>=0&&e._call.call(void 0,t),e=e._next;--yd}function vT(){af=(zm=ep.now())+vv,yd=G1=0;try{HEe()}finally{yd=0,UEe(),af=0}}function GEe(){var e=ep.now(),t=e-zm;t>uW&&(vv-=t,zm=e)}
86function UEe(){for(var e,t=Bm,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Bm=n);U1=e,D7(r)}function D7(e){if(!yd){G1&&(G1=clearTimeout(G1));var t=e-af;t>24?(e<1/0&&(G1=setTimeout(vT,e-ep.now()-vv)),k1&&(k1=clearInterval(k1))):(k1||(zm=ep.now(),k1=setInterval(GEe,uW)),yd=1,fW(vT))}}const YEe=1664525,XEe=1013904223,yT=4294967296;function qEe(){let e=1;return()=>(e=(YEe*e+XEe)%yT)/yT}function ZEe(e){return e.x}function KEe(e){return e.y}var JEe=10,QEe=Math.PI*(3-Math.sqrt(5));function eke(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,s=new Map,l=hW(f),c=cW("tick","end"),u=qEe();e==null&&(e=[]);function f(){d(),c.call("tick",t),n<r&&(l.stop(),c.call("end",t))}function d(g){var v,y=e.length,x;g===void 0&&(g=1);for(var C=0;C<g;++C)for(n+=(a-n)*i,s.forEach(function(_){_(n)}),v=0;v<y;++v)x=e[v],x.fx==null?x.x+=x.vx*=o:(x.x=x.fx,x.vx=0),x.fy==null?x.y+=x.vy*=o:(x.y=x.fy,x.vy=0);return t}function h(){for(var g=0,v=e.length,y;g<v;++g){if(y=e[g],y.index=g,y.fx!=null&&(y.x=y.fx),y.fy!=null&&(y.y=y.fy),isNaN(y.x)||isNaN(y.y)){var x=JEe*Math.sqrt(.5+g),C=g*QEe;y.x=x*Math.cos(C),y.y=x*Math.sin(C)}(isNaN(y.vx)||isNaN(y.vy))&&(y.vx=y.vy=0)}}function p(g){return g.initialize&&g.initialize(e,u),g}return h(),t={tick:d,restart:function(){return l.restart(f),t},stop:function(){return l.stop(),t},nodes:function(g){return arguments.length?(e=g,h(),s.forEach(p),t):e},alpha:function(g){return arguments.length?(n=+g,t):n},alphaMin:function(g){return arguments.length?(r=+g,t):r},alphaDecay:function(g){return arguments.length?(i=+g,t):+i},alphaTarget:function(g){return arguments.length?(a=+g,t):a},velocityDecay:function(g){return arguments.length?(o=1-g,t):1-o},randomSource:function(g){return arguments.length?(u=g,s.forEach(p),t):u},force:function(g,v){return arguments.length>1?(v==null?s.delete(g):s.set(g,p(v)),t):s.get(g)},find:function(g,v,y){var x=0,C=e.length,_,S,O,E,k;for(y==null?y=1/0:y*=y,x=0;x<C;++x)E=e[x],_=g-E.x,S=v-E.y,O=_*_+S*S,O<y&&(k=E,y=O);return k},on:function(g,v){return arguments.length>1?(c.on(g,v),t):c.on(g)}}}function tke(){var e,t,n,r,i=Aa(-30),a,o=1,s=1/0,l=.81;function c(h){var p,g=e.length,v=lW(e,ZEe,KEe).visitAfter(f);for(r=h,p=0;p<g;++p)t=e[p],v.visit(d)}function u(){if(e){var h,p=e.length,g;for(a=new Array(p),h=0;h<p;++h)g=e[h],a[g.index]=+i(g,h,e)}}function f(h){var p=0,g,v,y=0,x,C,_;if(h.length){for(x=C=_=0;_<4;++_)(g=h[_])&&(v=Math.abs(g.value))&&(p+=g.value,y+=v,x+=v*g.x,C+=v*g.y);h.x=x/y,h.y=C/y}else{g=h,g.x=g.data.x,g.y=g.data.y;do p+=a[g.data.index];while(g=g.next)}h.value=p}function d(h,p,g,v){if(!h.value)return!0;var y=h.x-t.x,x=h.y-t.y,C=v-p,_=y*y+x*x;if(C*C/l<_)return _<s&&(y===0&&(y=M0(n),_+=y*y),x===0&&(x=M0(n),_+=x*x),_<o&&(_=Math.sqrt(o*_)),t.vx+=y*h.value*r/_,t.vy+=x*h.value*r/_),!0;if(h.length||_>=s)return;(h.data!==t||h.next)&&(y===0&&(y=M0(n),_+=y*y),x===0&&(x=M0(n),_+=x*x),_<o&&(_=Math.sqrt(o*_)));do h.data!==t&&(C=a[h.data.index]*r/_,t.vx+=y*C,t.vy+=x*C);while(h=h.next)}return c.initialize=function(h,p){e=h,n=p,u()},c.strength=function(h){return arguments.length?(i=typeof h=="function"?h:Aa(+h),u(),c):i},c.distanceMin=function(h){return arguments.length?(o=h*h,c):Math.sqrt(o)},c.distanceMax=function(h){return arguments.length?(s=h*h,c):Math.sqrt(s)},c.theta=function(h){return arguments.length?(l=h*h,c):Math.sqrt(l)},c}function nke(e){var t=Aa(.1),n,r,i;typeof e!="function"&&(e=Aa(e==null?0:+e));function a(s){for(var l=0,c=n.length,u;l<c;++l)u=n[l],u.vx+=(i[l]-u.x)*r[l]*s}function o(){if(n){var s,l=n.length;for(r=new Array(l),i=new Array(l),s=0;s<l;++s)r[s]=isNaN(i[s]=+e(n[s],s,n))?0:+t(n[s],s,n)}}return a.initialize=function(s){n=s,o()},a.strength=function(s){return arguments.length?(t=typeof s=="function"?s:Aa(+s),o(),a):t},a.x=function(s){return arguments.length?(e=typeof s=="function"?s:Aa(+s),o(),a):e},a}function rke(e){var t=Aa(.1),n,r,i;typeof e!="function"&&(e=Aa(e==null?0:+e));function a(s){for(var l=0,c=n.length,u;l<c;++l)u=n[l],u.vy+=(i[l]-u.y)*r[l]*s}function o(){if(n){var s,l=n.length;for(r=new Array(l),i=new Array(l),s=0;s<l;++s)r[s]=isNaN(i[s]=+e(n[s],s,n))?0:+t(n[s],s,n)}}return a.initialize=function(s){n=s,o()},a.strength=function(s){return arguments.length?(t=typeof s=="function"?s:Aa(+s),o(),a):t},a.y=function(s){return arguments.length?(e=typeof s=="function"?s:Aa(+s),o(),a):e},a}var ike=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ake={joint:!0},oke={type:"link",axis:!1,legend:!1,encode:{x:[e=>e.source.x,e=>e.target.x],y:[e=>e.source.y,e=>e.target.y]},style:{stroke:"#999",strokeOpacity:.6}},ske={type:"point",axis:!1,legend:!1,encode:{x:"x",y:"y",size:5,color:"group",shape:"point"},style:{stroke:"#fff"}},lke={text:""};function cke(e,t,n){const{nodes:r,links:i}=e,{joint:a,nodeStrength:o,linkStrength:s}=t,{nodeKey:l=p=>p.id,linkKey:c=p=>p.id}=n,u=tke(),f=FEe(i).id(As(c));typeof o=="function"&&u.strength(o),typeof s=="function"&&f.strength(s);const d=eke(r).force("link",f).force("charge",u);a?d.force("center",CEe()):d.force("x",nke()).force("y",rke()),d.stop();const h=Math.ceil(Math.log(d.alphaMin())/Math.log(1-d.alphaDecay()));for(let p=0;p<h;p++)d.tick();return{nodesData:r,linksData:i}}const pW=e=>{const{data:t,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:l={},tooltip:c={}}=e,{nodeKey:u=O=>O.id,linkKey:f=O=>O.id}=n,d=ike(n,["nodeKey","linkKey"]),h=Object.assign({nodeKey:u,linkKey:f},d),p=Ve(h,"node"),g=Ve(h,"link"),{links:v,nodes:y}=oC(t,h),{nodesData:x,linksData:C}=cke({links:v,nodes:y},_e({},ake,a),h),_=Is(c,"link",{items:[O=>({name:"source",value:As(f)(O.source)}),O=>({name:"target",value:As(f)(O.target)})]}),S=Is(c,"node",{items:[O=>({name:"key",value:As(u)(O)})]},!0);return[_e({},oke,{data:C,encode:g,labels:s,style:Ve(i,"link"),tooltip:_,animate:Ls(l,"link")}),_e({},ske,{data:x,encode:Object.assign({},p),scale:r,style:Ve(i,"node"),tooltip:S,labels:[Object.assign(Object.assign({},lke),Ve(i,"label")),...o],animate:Ls(l,"link")})]};pW.props={};const gW=e=>t=>n=>{const{field:r="value",nodeSize:i,separation:a,sortBy:o,as:s=["x","y"]}=t,[l,c]=s,u=Rd(n,p=>p.children).sum(p=>p[r]).sort(o),f=e();f.size([1,1]),i&&f.nodeSize(i),a&&f.separation(a),f(u);const d=[];u.each(p=>{p[l]=p.x,p[c]=p.y,p.name=p.data.name,d.push(p)});const h=u.links();return h.forEach(p=>{p[l]=[p.source[l],p.target[l]],p[c]=[p.source[c],p.target[c]]}),{nodes:d,edges:h}},mW=e=>gW(cOe)(e);mW.props={};const vW=e=>gW(KOe)(e);vW.props={};const uke={sortBy:(e,t)=>t.value-e.value},fke={axis:!1,legend:!1,type:"point",encode:{x:"x",y:"y",size:2,shape:"point"}},dke={type:"link",encode:{x:"x",y:"y",shape:"smooth"}},hke={text:"",fontSize:10},yW=e=>{const{data:t,encode:n={},scale:r={},style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:l={},tooltip:c={}}=e,u=n==null?void 0:n.value,{nodes:f,edges:d}=vW(Object.assign(Object.assign(Object.assign({},uke),a),{field:u}))(t),h=Is(c,"node",{title:"name",items:["value"]},!0),p=Is(c,"link",{title:"",items:[g=>({name:"source",value:g.source.name}),g=>({name:"target",value:g.target.name})]});return[_e({},dke,{data:d,encode:Ve(n,"link"),scale:Ve(r,"link"),labels:s,style:Object.assign({stroke:"#999"},Ve(i,"link")),tooltip:p,animate:Ls(l,"link")}),_e({},fke,{data:f,scale:Ve(r,"node"),encode:Ve(n,"node"),labels:[Object.assign(Object.assign({},hke),Ve(i,"label")),...o],style:Object.assign({},Ve(i,"node")),tooltip:h,animate:Ls(l,"node")})]};yW.props={};var pke=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}
86return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})},gke=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function mke(e,t){const{text:n="text",value:r="value"}=t;return e.map(i=>Object.assign(Object.assign({},i),{text:i[n],value:i[r]}))}const vke=()=>({axis:!1,type:"text",encode:{x:"x",y:"y",text:"text",rotate:"rotate",fontSize:"size",shape:"tag"},scale:{x:{range:[0,1]},y:{range:[0,1]}},style:{fontFamily:e=>e.fontFamily},tooltip:{items:[e=>({name:e.text,value:e.value})]}}),vC=(e,t)=>pke(void 0,void 0,void 0,function*(){const{width:n,height:r}=t,{data:i,encode:a={},scale:o,style:s={},layout:l={}}=e,c=gke(e,["data","encode","scale","style","layout"]),u=mke(i,a);return _e({},vke(),Object.assign(Object.assign({data:{value:u,transform:[Object.assign({type:"wordCloud",size:[n,r]},l)]},encode:a,scale:o,style:s},c),{axis:!1}))});vC.props={};var gh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const yke=(e,t)=>{const{shape:n,radius:r}=e,i=gh(e,["shape","radius"]),a=Ve(i,"pointer"),o=Ve(i,"pin"),{shape:s}=a,l=gh(a,["shape"]),{shape:c}=o,u=gh(o,["shape"]),{coordinate:f,theme:d}=t;return(h,p)=>{const g=h.map(D=>f.invert(D)),[v,y,x]=D4e(f,"polar"),C=f.clone(),{color:_}=p,S=Vx({startAngle:v,endAngle:y,innerRadius:x,outerRadius:r});S.push(["cartesian"]),C.update({transformations:S});const O=g.map(D=>C.map(D)),[E,k]=jb(O),[$,T]=f.getCenter(),M=Object.assign(Object.assign({x1:E,y1:k,x2:$,y2:T,stroke:_},l),i),R=Object.assign(Object.assign({cx:$,cy:T,stroke:_},u),i),N=ft(new Yr);return Ml(s)||(typeof s=="function"?N.append(()=>s(O,p,C,d)):N.append("line").call(it,M).node()),Ml(c)||(typeof c=="function"?N.append(()=>c(O,p,C,d)):N.append("circle").call(it,R).node()),N.node()}},xT={coordinate:{type:"radial",innerRadius:.9,outerRadius:1,startAngle:-11/10*Math.PI,endAngle:1/10*Math.PI},axis:{x:!1},legend:!1,tooltip:!1,encode:{x:"x",y:"y",color:"color"},scale:{color:{range:["#30BF78","#D0D0D0"]}}},xke={style:{shape:yke,lineWidth:4,pointerLineCap:"round",pinR:10,pinFill:"#fff",radius:.6}},bke={type:"text",style:{x:"50%",y:"60%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"},tooltip:!1};function Cke(e){if(Jn(e)){const t=Math.max(0,Math.min(e,1));return{percent:t,target:t,total:1}}return e}function wke(e,t){const{name:n="score",target:r,total:i,percent:a,thresholds:o=[]}=Cke(e),s=a||r,l=a?1:i,c=Object.assign({y:{domain:[0,l]}},t);return o.length?{targetData:[{x:n,y:s,color:"target"}],totalData:o.map((u,f)=>({x:n,y:f>=1?u-o[f-1]:u,color:f})),target:s,total:l,scale:c}:{targetData:[{x:n,y:s,color:"target"}],totalData:[{x:n,y:s,color:"target"},{x:n,y:l-s,color:"total"}],target:s,total:l,scale:c}}function _ke(e,{target:t,total:n}){const{content:r}=e;return r?r(t,n):t.toString()}const xW=e=>{const{data:t={},scale:n={},style:r={},animate:i={},transform:a=[]}=e,o=gh(e,["data","scale","style","animate","transform"]),{targetData:s,totalData:l,target:c,total:u,scale:f}=wke(t,n),d=Ve(r,"text"),{tooltip:h}=d,p=gh(d,["tooltip"]),g=T9e(r,["pointer","pin"]),v=Ve(r,"arc"),y=v.shape;return[_e({},xT,Object.assign({type:"interval",transform:[{type:"stackY"}],data:l,scale:f,style:y==="round"?Object.assign(Object.assign({},v),{shape:kSe}):v,animate:typeof i=="object"?Ve(i,"arc"):i},o)),_e({},xT,xke,Object.assign({type:"point",data:s,scale:f,style:g,animate:typeof i=="object"?Ve(i,"indicator"):i},o)),_e({},bke,{style:Object.assign({text:_ke(p,{target:c,total:u})},p),tooltip:h,animate:typeof i=="object"?Ve(i,"text"):i})]};xW.props={};const bT={density:mV},bW=()=>(e,t,n,r)=>{const{x:i,series:a}=n,o=Object.entries(n).filter(([f])=>f.startsWith("y")).map(([,f])=>f),s=Object.entries(n).filter(([f])=>f.startsWith("size")).map(([,f])=>f);if(i===void 0||o===void 0||s===void 0)throw new Error("Missing encode for x or y or size channel.");const l=t.x,c=t.series,u=Array.from(e,f=>{const d=l.getBandWidth(l.invert(+i[f])),h=c?c.getBandWidth(c.invert(+(a==null?void 0:a[f]))):1,p=d*h,g=(+(a==null?void 0:a[f])||0)*d,v=+i[f]+g+p/2;return[...o.map((x,C)=>[v+ +s[C][f]/e.length,+o[C][f]]),...o.map((x,C)=>[v-+s[C][f]/e.length,+o[C][f]]).reverse()].map(x=>r.map(x))});return[e,u]};bW.props={defaultShape:"density",defaultLabelShape:"label",composite:!1,shape:bT,channels:[...Zi({shapes:Object.keys(bT)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"size",required:!0},{name:"series",scale:"band"},{name:"size",required:!0,scale:"identity"}],preInference:[..._r(),{type:Tp},{type:pf}],postInference:[...Pr(),...Id()],interaction:{shareTooltip:!0}};const CT={heatmap:xV},CW=e=>(t,n,r,i)=>{const{x:a,y:o,size:s,color:l}=r,c=Array.from(t,u=>{const f=s?+s[u]:40;return[...i.map([+a[u],+o[u]]),l[u],f]});return[[0],[c]]};CW.props={defaultShape:"heatmap",defaultLabelShape:"label",composite:!1,shape:CT,channels:[...Zi({shapes:Object.keys(CT)}),{name:"x",required:!0},{name:"y",required:!0},{name:"color",scale:"identity",required:!0},{name:"size"}],preInference:[..._r(),{type:pf},{type:H3}],postInference:[...Pr(),...Wc()]};var Ske=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Oke={axis:{x:!1,y:!1},legend:!1,tooltip:!1,encode:{x:"type",y:"percent"},scale:{y:{domain:[0,1]}},style:{shape:CV},animate:{enter:{type:"fadeIn"}}}
vendor: 5,160 bytes, line 86
86,Eke={type:"text",style:{x:"50%",y:"50%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"},animate:{enter:{type:"fadeIn"}}},wW=e=>{const{data:t={},style:n={},animate:r}=e,i=Ske(e,["data","style","animate"]),a=Math.max(0,Jn(t)?t:t==null?void 0:t.percent),o=[{percent:a,type:"liquid"}],s=Object.assign(Object.assign({},Ve(n,"text")),Ve(n,"content")),l=Ve(n,"outline"),c=Ve(n,"wave"),u=Ve(n,"background");return[_e({},Oke,Object.assign({type:"interval",data:o,style:{liquidOptions:{percent:a,liquidShape:n==null?void 0:n.shape},styleOptions:Object.assign(Object.assign({},n),{outline:l,wave:c,background:u})},animate:r},i)),_e({},Eke,{style:Object.assign({text:`${Mm(a*100)} %`},s),animate:r})]};wW.props={};const _W=()=>["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];_W.props={};const SW=()=>["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"];SW.props={};const OW=e=>new sd(e);OW.props={};const EW=e=>new Gn(e);EW.props={};const kW=e=>new jj(e);kW.props={};const AW=e=>new zj(e);AW.props={};const $W=e=>new Hj(e);$W.props={};const TW=e=>new b9e(e);TW.props={};const PW=e=>new s9e(e);PW.props={};const MW=e=>new Uj(e);MW.props={};const NW=e=>new V3(e);NW.props={};const IW=e=>new Qj(e);IW.props={};const LW=e=>new Kj(e);LW.props={};const RW=e=>new a9e(e);RW.props={};const jW=e=>new o7(e);jW.props={};const DW=e=>new sb(e);DW.props={};function yC({colorDefault:e,colorBlack:t,colorWhite:n,colorStroke:r,colorBackground:i,padding1:a,padding2:o,padding3:s,alpha90:l,alpha65:c,alpha45:u,alpha25:f,alpha10:d,category10:h,category20:p,sizeDefault:g=1,padding:v="auto",margin:y=16}){return{padding:v,margin:y,size:g,color:e,category10:h,category20:p,enter:{duration:300,fill:"both",delay:0},update:{duration:300,fill:"both",delay:0},exit:{duration:300,fill:"both",delay:0},view:{viewFill:i,plotFill:"transparent",mainFill:"transparent",contentFill:"transparent"},line:{line:{fill:"",strokeOpacity:1,lineWidth:1,lineCap:"round"}},point:{point:{r:3,fillOpacity:.95,lineWidth:0},hollow:{r:3,strokeOpacity:.95,lineWidth:1},plus:{r:3,strokeOpacity:.95,lineWidth:3},diamond:{r:3,strokeOpacity:.95,lineWidth:1}},interval:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},area:{area:{fillOpacity:.85,lineWidth:0}},polygon:{polygon:{fillOpacity:.95}},cell:{cell:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},rect:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},link:{link:{fill:"",strokeOpacity:1}},vector:{vector:{fillOpacity:1}},box:{box:{fillOpacity:.95,stroke:t,lineWidth:1}},text:{text:{fill:"#1D2129",fontSize:12,lineWidth:0,connectorStroke:r,connectorStrokeOpacity:.45,connectorLineWidth:1,backgroundFill:r,backgroundFillOpacity:.15,backgroundPadding:[2,4],startMarkerSymbol:"circle",startMarkerSize:4,endMarkerSymbol:"circle",endMarkerSize:4},badge:{fill:"#1D2129",fillOpacity:.65,lineWidth:0,fontSize:10,textAlign:"center",textBaseline:"middle",markerFill:r,markerFillOpacity:.25,markerStrokeOpacity:0}},lineX:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},lineY:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},rangeX:{range:{fill:r,fillOpacity:.15,lineWidth:0}},rangeY:{range:{fill:r,fillOpacity:.15,lineWidth:0}},connector:{connector:{stroke:r,strokeOpacity:.45,lineWidth:1,connectLength1:12,endMarker:!0,endMarkerSize:6,endMarkerFill:r,endMarkerFillOpacity:.95}},axis:{arrow:!1,gridLineDash:[3,4],gridLineWidth:.5,gridStroke:t,gridStrokeOpacity:d,labelAlign:"horizontal",labelFill:t,labelOpacity:u,labelFontSize:12,labelFontWeight:"normal",labelSpacing:a,line:!1,lineLineWidth:.5,lineStroke:t,lineStrokeOpacity:u,tickLength:4,tickLineWidth:1,tickStroke:t,tickOpacity:u,titleFill:t,titleOpacity:l,titleFontSize:12,titleFontWeight:"normal",titleSpacing:12,titleTransformOrigin:"center",lineArrowOffset:6,lineArrowSize:6},axisTop:{gridDirection:"positive",labelDirection:"negative",tickDirection:"negative",titlePosition:"top",titleSpacing:12,labelSpacing:4,titleTextBaseline:"middle"},axisBottom:{gridDirection:"negative",labelDirection:"positive",tickDirection:"positive",titlePosition:"bottom",titleSpacing:12,labelSpacing:4,titleTextBaseline:"bottom",titleTransform:"translate(0, 8)"},axisLeft:{gridDirection:"positive",labelDirection:"negative",labelSpacing:4,tickDirection:"negative",titlePosition:"left",titleSpacing:12,titleTextBaseline:"middle",titleDirection:"vertical",titleTransform:"rotate(-90) translate(0, -8)",titleTransformOrigin:"center"},axisRight:{gridDirection:"negative",labelDirection:"positive",labelSpacing:4,tickDirection:"positive",titlePosition:"right",titleSpacing:12,titleTextBaseline:"top",titleDirection:"vertical",titleTransformOrigin:"center"},axisLinear:{girdClosed:!0,gridConnect:"arc",gridDirection:"negative",gridType:"surround",titlePosition:"top",titleSpacing:0},axisArc:{title:!1,titlePosition:"inner",line:!1,tick:!0,labelSpacing:4},axisRadar:{girdClosed:!0,gridStrokeOpacity:.3,gridType:"surround",tick:!1,titlePosition:"start"}
86,legendCategory:{backgroundFill:"transparent",itemBackgroundFill:"transparent",itemLabelFill:t,itemLabelFillOpacity:l,itemLabelFontSize:12,itemLabelFontWeight:"normal",itemMarkerFillOpacity:1,itemMarkerSize:8,itemSpacing:[a,a],itemValueFill:t,itemValueFillOpacity:.65,itemValueFontSize:12,itemValueFontWeight:"normal",navButtonFill:t,navButtonFillOpacity:.65,navPageNumFill:t,navPageNumFillOpacity:.45,navPageNumFontSize:12,padding:8,title:!1,titleFill:t,titleFillOpacity:.65,titleFontSize:12,titleFontWeight:"normal",titleSpacing:4,tickStroke:t,tickStrokeOpacity:.25,rowPadding:a,colPadding:o,maxRows:3,maxCols:3},legendContinuous:{handleHeight:12,handleLabelFill:t,handleLabelFillOpacity:u,handleLabelFontSize:12,handleLabelFontWeight:"normal",handleMarkerFill:t,handleMarkerFillOpacity:.6,handleMarkerLineWidth:1,handleMarkerStroke:t,handleMarkerStrokeOpacity:.25,handleWidth:10,labelFill:t,labelFillOpacity:u,labelFontSize:12,labelFontWeight:"normal",labelSpacing:3,tick:!0,tickLength:12,ribbonSize:12,ribbonFill:"#aaa",handle:!0,handleLabel:!1,handleShape:"slider",handleIconSize:12/1.8,indicator:!1,titleFontSize:12,titleSpacing:4,titleFontWeight:"normal",titleFillOpacity:l,tickStroke:t,tickStrokeOpacity:u},label:{fill:t,fillOpacity:.65,fontSize:12,fontWeight:"normal",stroke:void 0,offset:12,connectorStroke:t,connectorStrokeOpacity:.45,connectorLineWidth:1,connectorLength:12,connectorLength2:8,connectorDistance:4},innerLabel:{fill:n,fontSize:12,fillOpacity:.85,fontWeight:"normal",stroke:void 0,offset:0},htmlLabel:{fontSize:12,opacity:.65,color:t,fontWeight:"normal"},slider:{trackSize:16,trackFill:r,trackFillOpacity:1,selectionFill:e,selectionFillOpacity:.15,handleIconSize:10,handleIconFill:"#f7f7f7",handleIconFillOpacity:1,handleIconStroke:t,handleIconStrokeOpacity:.25,handleIconLineWidth:1,handleIconRadius:2,handleLabelFill:t,handleLabelFillOpacity:.45,handleLabelFontSize:12,handleLabelFontWeight:"normal"},scrollbar:{padding:[0,0,0,0],trackSize:6,isRound:!0,slidable:!0,scrollable:!0,trackFill:"#e5e5e5",trackFillOpacity:0,thumbFill:"#000",thumbFillOpacity:.15,thumbHighlightedFillOpacity:.2},title:{spacing:8,titleFill:t,titleFillOpacity:l,titleFontSize:16,titleFontWeight:"bold",titleTextBaseline:"top",subtitleFill:t,subtitleFillOpacity:c,subtitleFontSize:12,subtitleFontWeight:"normal",subtitleTextBaseline:"top"},tooltip:{css:{".g2-tooltip":{"font-family":"sans-serif"}}}}}const kke={colorBlack:"#1D2129",colorWhite:"#ffffff",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1},Ake=yC(kke),xC=e=>_e({},Ake,e);xC.props={};const FW=e=>_e({},xC(),{category10:"category10",category20:"category20"},e);FW.props={};const $ke={colorBlack:"#fff",colorWhite:"#000",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.25},Tke=yC($ke),BW=e=>_e({},Tke,{tooltip:{crosshairsStroke:"#fff",crosshairsLineWidth:1,crosshairsStrokeOpacity:.25,css:{".g2-tooltip":{background:"#1f1f1f",opacity:.95},".g2-tooltip-title":{color:"#A6A6A6"},".g2-tooltip-list-item-name-label":{color:"#A6A6A6"},".g2-tooltip-list-item-value":{color:"#A6A6A6"}}}},e),zW=e=>Object.assign({},BW(),{category10:"category10",category20:"category20"},e);zW.props={};const Pke={colorBlack:"#000",colorWhite:"#fff",colorStroke:"#888",colorDefault:"#4e79a7",colorBackgroun
vendor: 4,991 bytes, line 86
86d:"transparent",category10:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],category20:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1},Mke=yC(Pke),VW=e=>_e({},Mke,{text:{text:{fontSize:10}},axis:{gridLineDash:[0,0],gridLineWidth:1,gridStroke:"#ddd",gridStrokeOpacity:1,labelOpacity:1,labelStrokeOpacity:1,labelFontSize:10,line:!0,lineLineWidth:1,lineStroke:"#888",lineStrokeOpacity:1,tickLength:5,tickStrokeOpacity:1,titleOpacity:1,titleStrokeOpacity:1,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},axisLeft:{gridFilter:(t,n)=>n!==0},axisRight:{gridFilter:(t,n)=>n!==0},legendCategory:{itemLabelFillOpacity:1,itemLabelFontSize:10,itemValueFillOpacity:1,itemValueFontSize:10,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},legendContinuous:{handleLabelFontSize:10,labelFillOpacity:.45,labelFontSize:10},label:{fontSize:10},innerLabel:{fontSize:10},htmlLabel:{fontSize:10},slider:{handleLabelFontSize:10,trackFillOpacity:.05}},e);VW.props={};function Nke(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Vm(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ike(e){return e=Vm(Math.abs(e)),e?e[1]:NaN}function Lke(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Rke(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var jke=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function F7(e){if(!(t=jke.exec(e)))throw new Error("invalid format: "+e);var t;return new bC({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}F7.prototype=bC.prototype;function bC(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}bC.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Dke(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var WW;function Fke(e,t){var n=Vm(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(WW=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Vm(e,Math.max(0,t+a-1))[0]}function wT(e,t){var n=Vm(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const _T={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Nke,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>wT(e*100,t),r:wT,s:Fke,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ST(e){return e}var OT=Array.prototype.map,ET=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Bke(e){var t=e.grouping===void 0||e.thousands===void 0?ST:Lke(OT.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?ST:Rke(OT.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f){f=F7(f);var d=f.fill,h=f.align,p=f.sign,g=f.symbol,v=f.zero,y=f.width,x=f.comma,C=f.precision,_=f.trim,S=f.type;S==="n"?(x=!0,S="g"):_T[S]||(C===void 0&&(C=12),_=!0,S="g"),(v||d==="0"&&h==="=")&&(v=!0,d="0",h="=");var O=g==="$"?n:g==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",E=g==="$"?r:/[%p]/.test(S)?o:"",k=_T[S],$=/[defgprs%]/.test(S);C=C===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function T(M){var R=O,N=E,D,F,V;if(S==="c")N=k(M)+N,M="";else{M=+M;var z=M<0||1/M<0;if(M=isNaN(M)?l:k(Math.abs(M),C),_&&(M=Dke(M)),z&&+M==0&&p!=="+"&&(z=!1),R=(z?p==="("?p:s:p==="-"||p==="("?"":p)+R,N=(S==="s"?ET[8+WW/3]:"")+N+(z&&p==="("?")":""),$){for(D=-1,F=M.length;++D<F;
86)if(V=M.charCodeAt(D),48>V||V>57){N=(V===46?i+M.slice(D+1):M.slice(D))+N,M=M.slice(0,D);break}}}x&&!v&&(M=t(M,1/0));var B=R.length+M.length+N.length,G=B<y?new Array(y-B+1).join(d):"";switch(x&&v&&(M=t(G+M,G.length?y-N.length:1/0),G=""),h){case"<":M=R+M+N+G;break;case"=":M=R+G+M+N;break;case"^":M=G.slice(0,B=G.length>>1)+R+M+N+G.slice(B);break;default:M=G+R+M+N;break}return a(M)}return T.toString=function(){return f+""},T}function u(f,d){var h=c((f=F7(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(Ike(d)/3)))*3,g=Math.pow(10,-p),v=ET[8+p/3];return function(y){return h(g*y)+v}}return{format:c,formatPrefix:u}}var G5,Hc;zke({thousands:",",grouping:[3],currency:["$",""]});function zke(e){return G5=Bke(e),Hc=G5.format,G5.formatPrefix,G5}var Vke=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Wke(e){return class extends Fp{constructor(t){super(t),this.descriptor=e}connectedCallback(){var t,n;(n=(t=this.descriptor).render)===null||n===void 0||n.call(t,this.attributes,this)}update(t={}){var n,r;this.attr(_e({},this.attributes,t)),(r=(n=this.descriptor).render)===null||r===void 0||r.call(n,this.attributes,this)}}}function kT(e,t,n){return e.querySelector(t)?ft(e).select(t):ft(e).append(n)}function yv(e){return Array.isArray(e)?e.join(", "):`${e||""}`}function HW(e,t){const n={flexDirection:"row",justifyContent:"flex-start",alignItems:"center"};let{flexDirection:r,justifyContent:i,alignItems:a}=n;const o={top:["row","flex-start","center"],bottom:["row","flex-start","center"],left:["column","flex-start","center"],right:["column","flex-start","center"],center:["column","center","center"]};return e in o&&([r,i,a]=o[e]),Object.assign({display:"flex",flexDirection:r,justifyContent:i,alignItems:a},t)}class GW extends S_e{get child(){var t;return(t=this.children)===null||t===void 0?void 0:t[0]}update(t){var n;this.attr(t);const{subOptions:r}=t;(n=this.child)===null||n===void 0||n.update(r)}}class Hke extends GW{update(t){var n;const{subOptions:r}=t;this.attr(t),(n=this.child)===null||n===void 0||n.update(r)}}function $s(e,t){var n;return(n=e.filter(r=>r.getOptions().name===t))===null||n===void 0?void 0:n[0]}function Gke(e){return e==="horizontal"||e===0}function Uke(e){return e==="vertical"||e===-Math.PI/2}function UW(e,t,n){const{bbox:r}=e,{position:i="top",size:a,length:o}=t,s=["top","bottom","center"].includes(i),[l,c]=s?[r.height,r.width]:[r.width,r.height],{defaultSize:u,defaultLength:f}=n.props,d=a||u||l,h=o||f||c,p=s?"horizontal":"vertical",[g,v]=s?[h,d]:[d,h];return{orientation:p,width:g,height:v,size:d,length:h}}function Yke(e){return e.find(t=>t.getOptions().domain.length>0).getOptions().domain}function xv(e){const t=["arrow","crosshairs","grid","handle","handleLabel","indicator","label","line","tick","tip","title","trunc"],{style:n}=e,r=Vke(e,["style"]),i={};return Object.entries(r).forEach(([a,o])=>{t.includes(a)?i[`show${jc(a)}`]=o:i[a]=o}),Object.assign(Object.assign({},i),n)}var YW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function XW(e,t){const{eulerAngles:n,origin:r}=t;r&&e.setOrigin(r),n&&e.rotate(n[0],n[1],n[2])}function qW(e){const{innerWidth:t,innerHeight:n,depth:r}=e.getOptions();return[t,n,r]}function Xke(e,t){const{width:n,height:r}=t.getOptions();return i=>{if(!pF(t))return i;const a=e==="bottom"?[i,1]:[0,i],o=t.map(a);if(e==="bottom"){const s=o[0];return new Gn({domain:[0,n],range:[0,1]}).map(s)}else if(e==="left"){const s=o[1];return new Gn({domain:[0,r],range:[0,1]}).map(s)}return i}}function qke(e,t,n){if(e.getTicks)return e.getTicks();if(!n)return t;const[r,i]=Ol(t,o=>+o),{tickCount:a}=e.getOptions();return n(r,i,a)}function Zke(e,t){if(On(t))return h=>h;
86const n=t.getOptions(),{innerWidth:r,innerHeight:i,insetTop:a,insetBottom:o,insetLeft:s,insetRight:l}=n,[c,u,f]=e==="left"||e==="right"?[a,o,i]:[s,l,r],d=new Gn({domain:[0,1],range:[c/f,1-u/f]});return h=>d.map(h)}function ZW(e,t,n,r,i,a,o,s){var l;(n!==void 0||a!==void 0)&&e.update(Object.assign(Object.assign({},n&&{tickCount:n}),a&&{tickMethod:a}));const c=qke(e,t,a),u=i?c.filter(i):c,f=y=>y instanceof Date?String(y):typeof y=="object"&&y?y:String(y),d=r||((l=e.getFormatter)===null||l===void 0?void 0:l.call(e))||f,h=Zke(o,s),p=Xke(o,s),g=y=>["top","bottom","center","outer"].includes(y),v=y=>["left","right"].includes(y);return On(s)||Un(s)?u.map((y,x,C)=>{var _,S;const O=((_=e.getBandWidth)===null||_===void 0?void 0:_.call(e,y))/2||0,E=h(e.map(y)+O);return{value:K3(s)&&o==="center"||Un(s)&&((S=e.getTicks)===null||S===void 0?void 0:S.call(e))&&g(o)||Un(s)&&v(o)?1-E:E,label:f(d(Mm(y),x,C)),id:String(x)}}):u.map((y,x,C)=>{var _;const S=((_=e.getBandWidth)===null||_===void 0?void 0:_.call(e,y))/2||0,O=p(h(e.map(y)+S));return{value:v(o)?1-O:O,label:f(d(Mm(y),x,C)),id:String(x)}})}function Kke(e,t,n="xy"){const[r,i,a]=qW(t);return n==="xy"?e.includes("bottom")||e.includes("top")?i:r:n==="xz"?e.includes("bottom")||e.includes("top")?a:r:e.includes("bottom")||e.includes("top")?i:a}function Jke(e=[],t){if(e.length>0)return e;const{labelAutoRotate:n,labelAutoHide:r,labelAutoEllipsis:i,labelAutoWrap:a}=t,o=[],s=(l,c)=>{c&&o.push(Object.assign(Object.assign({},l),c))};return s({type:"rotate",optionalAngles:[0,15,30,45,60,90]},n),s({type:"ellipsis",minLength:20},i),s({type:"hide"},r),s({type:"wrap",wordWrapWidth:100,maxLines:3,recoveryWhenFail:!0},a),o}function Qke(e,t,n,r,i){const{x:a,y:o,width:s,height:l}=t,c=[a+s/2,o+l/2],u=Math.min(s,l)/2,[f,d]=Sb(i),[h,p]=qW(i),g=Math.min(h,p)/2,v={center:c,radius:u,startAngle:f,endAngle:d,gridLength:(r-n)*g};if(e==="inner"){const{insetLeft:y,insetTop:x}=i.getOptions();return Object.assign(Object.assign({},v),{center:[c[0]-y,c[1]-x],labelAlign:"perpendicular",labelDirection:"positive",tickDirection:"positive",gridDirection:"negative"})}return Object.assign(Object.assign({},v),{labelAlign:"parallel",labelDirection:"negative",tickDirection:"negative",gridDirection:"positive"})}function eAe(e,t,n){return R4e(t)||J3(t)?!1:e===void 0?!!n.getTicks:e}function tAe(e){const{depth:t}=e.getOptions();return t?{tickIsBillboard:!0,lineIsBillboard:!0,labelIsBillboard:!0,titleIsBillboard:!0,gridIsBillboard:!0}:{}}function nAe(e,t,n,r,i){const{x:a,y:o,width:s,height:l}=n;if(e==="bottom")return{startPos:[a,o],endPos:[a+s,o]};if(e==="left")return{startPos:[a+s,o+l],endPos:[a+s,o]};if(e==="right")return{startPos:[a,o+l],endPos:[a,o]};if(e==="top")return{startPos:[a,o+l],endPos:[a+s,o+l]};if(e==="center"){if(t==="vertical")return{startPos:[a,o],endPos:[a,o+l]};if(t==="horizontal")return{startPos:[a,o],endPos:[a+s,o]};if(typeof t=="number"){const[c,u]=r.getCenter(),[f,d]=Q3(r),[h,p]=Sb(r),g=Math.min(s,l)/2,{insetLeft:v,insetTop:y}=r.getOptions(),x=f*g,C=d*g,[_,S]=[c+a-v,u+o-y],[O,E]=[Math.cos(t),Math.sin(t)],k=[_+C*O,S+C*E],$=[_+x*O,S+x*E],T=()=>{const{domain:R}=i.getOptions();return R.length},M=On(r)&&i?T():3;return{startPos:k,endPos:$,gridClosed:Math.abs(p-h-360)<1e-6,gridCenter:[_,S],gridControlAngles:new Array(M).fill(0).map((R,N,D)=>(p-h)/M*N)}}}return{}}const rAe=e=>{const{order:t,size:n,position:r,orientation:i,labelFormatter:a,tickFilter:o,tickCount:s,tickMethod:l,important:c={},style:u={},indexBBox:f,title:d,grid:h=!1}=e,p=YW(e,["order","size","position","orientation","labelFormatter","tickFilter","tickCount","tickMethod","important","style","indexBBox","title","grid"]);return({scales:[g],value:v,coordinate:y,theme:x})=>{const{bbox:C}=v,{domain:_}=g.getOptions(),S=ZW(g,_,s,a,o,l,r,y),O=f?S.map((N,D)=>{const F=f.get(D);return!F||F[0]!==N.label?N:Object.assign(Object.assign({},N),{bbox:F[1]})}):S,[E,k]=Q3(y),$=Qke(r,C,E,k,y),{axis:T,axisArc:M={}}=x,R=xv(_e({},T,M,$,Object.assign(Object.assign({type:"arc",data:O,titleText:yv(d),grid:h},p),c)));return new iC({style:Yx(R,["transform"])})}};function iAe(e,t,n,r,i,a){const o=n.axis,s=["top","right","bottom","left"].includes(i)?n[`axis${ub(i)}`]:n.axisLinear,l=e.getOptions().name,c=n[`axis${jc(l)}`]||{};return Object.assign({},o,s,c)}function aAe(e,t,n,r,i,a){const o=iAe(e,t,n,r,i);return i==="center"?Object.assign(Object.assign(Object.assign(Object.assign({},o),{labelDirection:r==="right"?"negative":"positive"}),r==="center"?{labelTransform:"translate(50%,0)"}:null),{tickDirection:r==="right"?"negative":"positive",labelSpacing:r==="center"?0:4,titleSpacing:Uke(a)?10:0,tick:r==="center"?!1:void 0}):o}const oAe=e=>{const{direction:t="left",important:n={},labelFormatter:r,order:i,orientation:a,actualPosition:o,position:s,size:l,style:c={},title:u,tickCount:f,tickFilter:d,tickMethod:h,transform:p,indexBBox:g}=e,v=YW(e,["direction","important","labelFormatter","order","orientation","actualPosition","position","size","style","title","tickCount","tickFilter","tickMethod","transform","indexBBox"]);return({scales:y,value:x,coordinate:C,theme:_})=>{const{bbox:S}=x,[O]=y,{domain:E,xScale:k}=O.getOptions(),$=aAe(O,C,_,t,s,a),T=Object.assign(Object.assign(Object.assign({},$),c),v),M=Kke(o||s,C,e.plane),R=nAe(s,a,S,C,k),N=tAe(C),D=ZW(O,E,f,r,d,h,s,C),F=g?D.map((B,G)=>{const Y=g.get(G);return!Y||Y[0]!==B.label?B:Object.assign(Object.assign({},B),{bbox:Y[1]})}):D,V=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},T),{type:"linear",data:F,crossSize:l,titleText:yv(u),labelOverlap:Jke(p,T),grid:eAe(T.grid,C,O),gridLength:M,line:!0,indexBBox:g}),T.line?null:{lineOpacity:0}),R),N),n);return V.labelOverlap.find(B=>B.type==="hide")&&(V.crossSize=!1),new iC({className:"axis",style:xv(V)})}},KW=e=>t=>{const{labelFormatter:n,labelFilter:r=()=>!0}=t;return i=>{var a;const{scales:[o]}=i,s=((a=o.getTicks)===null||a===void 0?void 0:a.call(o))||o.getOptions().domain,l=typeof n=="string"?Hc(n):n,c=(f,d,h)=>r(s[d],d,s),u=Object.assign(Object.assign({},t),{labelFormatter:l,labelFilter:c,scale:o});return e(u)(i)}},Gc=KW(oAe),JW=KW(rAe);Gc.props={defaultPosition:"center",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]};JW.props={defaultPosition:"outer",defaultOrientation:"vertical",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const QW=e=>(...t)=>{const n=Gc(Object.assign({},{crossPadding:50},e))(...t);return XW(n,e),n};QW.props=Object.assign(Object.assign({},Gc.props),{defaultPosition:"bottom"});const eH=e=>(...t)=>{const n=Gc(Object.assign({},{crossPadding:10},e))(...t);return XW(n,e),n};eH.props=Object.assign(Object.assign({},Gc.props),{defaultPosition:"left"});var sAe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function lAe(e){const t=e%(Math.PI*2);return t===Math.PI/2?{titleTransform:"translate(0, 50%)"}:t>-Math.PI/2&&t<Math.PI/2?{titleTransform:"translate(50%, 0)"}:t>Math.PI/2&&t<Math.PI*3/2?{titleTransform:"translate(-50%, 0)"}:{}}function cAe(e,t,n,r){const{radar:i}=e,[a]=r,o=a.getOptions().name,[s,l]=Sb(n),{axisRadar:c={}}=t;return Object.assign(Object.assign({},c),{grid:o==="position",gridConnect:"line",gridControlAngles:new Array(i.count).fill(0).map((u,f)=>(l-s)/i.count*f)})}const tH=e=>{const{important:t={}}=e,n=sAe(e,["important"]);return r=>{const{theme:i,coordinate:a,scales:o}=r;return Gc(Object.assign(Object.assign(Object.assign({},n),lAe(e.orientation)),{important:Object.assign(Object.assign({},cAe(e,i,a,o)),t)}))(r)}};tH.props=Object.assign(Object.assign({},Gc.props),{defaultPosition:"center"});var uAe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function fAe(e,t){const n=$s(e,"shape"),r=$s(e,"color"),i=n?n.clone():null,a=[];for(const[s,l]of t){const c=s.type,f=((r==null?void 0:r.getOptions().domain.length)>0?r==null?void 0:r.getOptions().domain:l.data).map((d,h)=>{var p;return i?i.map(d||"point"):((p=s==null?void 0:s.style)===null||p===void 0?void 0:p.shape)||l.defaultShape||"point"});typeof c=="string"&&a.push([c,f])}if(a.length===0)return["point",["point"]];if(a.length===1||!n)return a[0];const{range:o}=n.getOptions();return a.map(([s,l])=>{let c=0;for(let u=0;u<a.length;u++){const f=o[u%o.length];l[u]===f&&c++}return[c/l.length,[s,l]]}).sort((s,l)=>l[0]-s[0])[0][1]}function dAe(e,t){const{scales:n,library:r,markState:i}=t,[a,o]=fAe(n,i),{itemMarker:s,itemMarkerSize:l}=e,c=(d,h)=>{var p,g,v;const y=((v=(g=(p=r[`mark.${a}`])===null||p===void 0?void 0:p.props)===null||g===void 0?void 0:g.shape[d])===null||v===void 0?void 0:v.props.defaultMarker)||kp(d.split(".")),x=typeof l=="function"?l(h):l;return()=>Nbe(y,{color:h.color})(0,0,x)},u=d=>`${o[d]}`;return $s(n,"shape")&&!s?(d,h)=>c(u(h),d):typeof s=="function"?(d,h)=>{const p=s(d.id,h);return typeof p=="string"?c(p,d):p}:(d,h)=>c(s||u(h),d)}function hAe(e){const t=$s(e,"opacity");if(t){const{range:n}=t.getOptions();return(r,i)=>n[i]}}function pAe(e,t){const n=$s(e,"size");return n instanceof zj?n.map(NaN)*2:t}function gAe(e,t){const{labelFormatter:n=d=>`${d}`}=e,{scales:r,theme:i}=t,a=i.legendCategory.itemMarkerSize,o=pAe(r,a),s={itemMarker:dAe(Object.assign(Object.assign({},e),{itemMarkerSize:o}),t),itemMarkerSize:o,itemMarkerOpacity:hAe(r)},l=typeof n=="string"?Hc(n):n,c=$s(r,"color"),u=Yke(r),f=c?d=>c.map(d):()=>t.theme.color;return Object.assign(Object.assign({},s),{data:u.map(d=>({id:d,label:l(d),color:f(d)}))})}function mAe(e,t,n){const{position:r}=t;if(r==="center"){const{bbox:o}=e,{width:s,height:l}=o;return{width:s,height:l}}const{width:i,height:a}=UW(e,t,n);return{width:i,height:a}}function vAe(e){return Object.assign(Object.assign({},e),{data:(e==null?void 0:e.data.filter(t=>t.id!==""))||[]})}const CC=e=>{const{labelFormatter:t,layout:n,order:r,orientation:i,position:a,size:o,title:s,cols:l,itemMarker:c}=e,u=uAe(e,["labelFormatter","layout","order","orientation","position","size","title","cols","itemMarker"]),{gridRow:f}=u;return d=>{const{value:h,theme:p}=d,{bbox:g}=h,{width:v,height:y}=mAe(h,e,CC),x=HW(a,n),C=Object.assign(Object.assign(Object.assign(Object.assign({orientation:["right","left","center"].includes(a)?"vertical":"horizontal",width:v,height:y,layout:l!==void 0?"grid":"flex"},l!==void 0&&{gridCol:l}),f!==void 0&&{gridRow:f}),{titleText:yv(s)}),gAe(e,d)),{legendCategory:_={}}=p,S=xv(Object.assign({},_,vAe(C),u)),O=new Hke({style:Object.assign(Object.assign({x:g.x,y:g.y,width:g.width,height:g.height},x),{subOptions:S})});return O.appendChild(new c_e({className:"legend-category",style:S})),O}};CC.props={defaultPosition:"top",defaultOrder:1,defaultSize:40,defaultCrossPadding:[12,12],defaultPadding:[12,12]};var yAe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function xAe(e,t,n){return e.size=t,Gke(n)?e.height=t:e.width=t,e}function bAe(e,t,n){const{size:r}=t,i=UW(e,t,n);return xAe(i,r,i.orientation)}function CAe(e){return t=>({value:t/e,label:String(t)})}function wAe(e,t,n,r,i){const a=t.thresholds,o=CAe(r);return Object.assign(Object.assign({},e),{color:i,data:[n,...a,r].map(o)})}function _Ae(e,t,n){const i=[-1/0,...t.thresholds,1/0].map((a,o)=>({value:o,label:a}));return Object.assign(Object.assign({},e),{data:i,color:n,labelFilter:(a,o)=>o>0&&o<i.length-1})}function B7(e){const{domain:t}=e.getOptions(),[n,r]=[t[0],lD(t)];return[n,r]}function SAe(e,t){const n=e.getOptions(),r=e.clone();return r.update(Object.assign(Object.assign({},n),{range:[Ec(t).toString()]})),r}function OAe(e,t,n,r,i,a){const{length:o}=e,s=n||r,l=i.color?a.legendContinuous.ribbonFill||"black":a.color,c=t||SAe(s,l),[u,f]=B7(c),[d,h]=B7([t,n,r].filter(p=>p!==void 0).find(p=>!(p instanceof sb)));return Object.assign(Object.assign({},e),{domain:[d,h],data:c.getTicks().map(p=>({value:p})),color:new Array(Math.floor(o)).fill(0).map((p,g)=>{const v=(f-u)/(o-1)*g+u,y=c.map(v)||l,x=r?r.map(v):1;return y.replace(/rgb[a]*\(([\d]{1,3}) *, *([\d]{1,3}) *, *([\d]{1,3})[\S\s]*\)/,(C,_,S,O)=>`rgba(${_}, ${S}, ${O}, ${x})`)})})}function EAe(e,t,n,r,i,a){const o=$s(e,"color"),s=bAe(n,r,i);if(o instanceof V3){const{range:u}=o.getOptions(),[f,d]=B7(o);return o instanceof Kj||o instanceof Qj?wAe(s,o,f,d,u):_Ae(s,o,u)}const l=$s(e,"size"),c=$s(e,"opacity");return OAe(s,o,l,c,t,a)}const Uc=e=>{const{labelFormatter:t,layout:n,order:r,orientation:i,position:a,size:o,title:s,style:l,crossPadding:c,padding:u}=e,f=yAe(e,["labelFormatter","layout","order","orientation","position","size","title","style","crossPadding","padding"]);return({scales:d,value:h,theme:p,scale:g})=>{const{bbox:v}=h,{x:y,y:x,width:C,height:_}=v,S=HW(a,n),{legendContinuous:O={}}=p,E=xv(Object.assign({},O,Object.assign(Object.assign({titleText:yv(s),labelAlign:"value",labelFormatter:typeof t=="string"?$=>Hc(t)($.label):t},EAe(d,g,h,e,Uc,p)),l),f)),k=new GW({style:Object.assign(Object.assign({x:y,y:x,width:C,height:_},S),{subOptions:E})});return k.appendChild(new C_e({className:"legend-continuous",style:E})),k}};Uc.props={defaultPosition:"top",defaultOrientation:"vertical",defaultOrder:1,defaultSize:60,defaultLength:200,defaultLegendSize:60,defaultPadding:[20,10],defaultCrossPadding:[12,12]};const nH=e=>(...t)=>Uc(Object.assign({},{block:!0},e))(...t);nH.props=Object.assign(Object.assign({},Uc.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const wC=e=>t=>{const{scales:n}=t,r=$s(n,"size");return Uc(Object.assign({},{type:"size",data:r.getTicks().map((i,a)=>({value:i,label:String(i)}))},e))(t)};wC.props=Object.assign(Object.assign({},Uc.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const rH=e=>wC(Object.assign({},{block:!0},e));rH.props=Object.assign(Object.assign({},Uc.props),{defaultPosition:"top",defaultOrientation:"horizontal"});var kAe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function AT(e,t,n,r){switch(r){case"center":return{x:e+n/2,y:t,textAlign:"middle"};case"right":return{x:e+n,y:t,textAlign:"right"};default:return{x:e,y:t,textAlign:"left"}}}const AAe=Wke({render(e,t){const{width:n,title:r,subtitle:i,spacing:a=2,align:o="left",x:s,y:l}=e,c=kAe(e,["width","title","subtitle","spacing","align","x","y"]);t.style.transform=`translate(${s}, ${l})`;const u=Ve(c,"title"),f=Ve(c,"subtitle"),h=kT(t,".title","text").attr("className","title").call(it,Object.assign(Object.assign(Object.assign({},AT(0,0,n,o)),{fontSize:14,textBaseline:"top",text:r}),u)).node().getLocalBounds();kT(t,".sub-title","text").attr("className","sub-title").call(p=>
86{if(!i)return p.node().remove();p.node().attr(Object.assign(Object.assign(Object.assign({},AT(0,h.max[1]+a,n,o)),{fontSize:12,textBaseline:"top",text:i}),f))})}}),iH=e=>({value:t,theme:n})=>{const{x:r,y:i,width:a,height:o}=t.bbox;return new AAe({style:_e({},n.title,Object.assign({x:r,y:i,width:a,height:o},e))})};iH.props={defaultPosition:"top",defaultOrder:2,defaultSize:36,defaultCrossPadding:[20,20],defaultPadding:[12,12]};function $Ae(e,t,n){return Math.min(n,Math.max(t,e))}function mh(e){return!!e.getBandWidth}function xd(e,t,n){if(!mh(e))return e.invert(t);const{adjustedRange:r}=e,{domain:i}=e.getOptions(),a=n?-1:0,o=e.getStep(),s=n?r:r.map(u=>u+o),l=jve(s,t),c=$Ae(l+a,0,i.length-1);return i[c]}function bc(e,t,n){if(!t)return e.getOptions().domain;if(!mh(e)){const l=zo(t);if(!n)return l;const[c]=l,{range:u}=e.getOptions(),[f,d]=u,h=f>d?-1:1,p=e.invert(e.map(c)+h*n);return[c,p]}const{domain:r}=e.getOptions(),i=t[0],a=r.indexOf(i);if(n){const l=a+Math.round(r.length*n);return r.slice(a,l)}const o=t[t.length-1],s=r.indexOf(o);return r.slice(a,s+1)}function Ng(e,t,n,r,i,a){const{x:o,y:s}=i,l=(h,p)=>{const[g,v]=a.invert(h);return[xd(o,g,p),xd(s,v,p)]},c=l([e,t],!0),u=l([n,r],!1),f=bc(o,[c[0],u[0]]),d=bc(s,[c[1],u[1]]);return[f,d]}function Wm(e,t){const[n,r]=e,i=a=>a.getStep?a.getStep():0;return[t.map(n),t.map(r)+i(t)]}function TAe(e,t,n){const{x:r,y:i}=t,[a,o]=e,s=Wm(a,r),l=Wm(o,i),c=[s[0],l[0]],u=[s[1],l[1]],[f,d]=n.map(c),[h,p]=n.map(u);return[f,d,h,p]}var PAe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function MAe(e,t,n){const{x:r,y:i,width:a,height:o}=e;if(t==="left")return[r+a-n,i];if(t==="right")return[r,i];if(t==="bottom")return[r,i];if(t==="top")return[r,i+o-n]}const Gp=e=>{const{orientation:t,labelFormatter:n,size:r,style:i={},position:a}=e,o=PAe(e,["orientation","labelFormatter","size","style","position"]);return s=>{var l;const{scales:[c],value:u,theme:f,coordinate:d}=s,{bbox:h}=u,{width:p,height:g}=h,{slider:v={}}=f,y=((l=c.getFormatter)===null||l===void 0?void 0:l.call(c))||(k=>k+""),x=typeof n=="string"?Hc(n):n,C=t==="horizontal",_=Un(d)&&C,{trackSize:S=v.trackSize}=i,[O,E]=MAe(h,a,S);return new Oz({className:"slider",style:Object.assign({},v,Object.assign(Object.assign({x:O,y:E,trackLength:C?p:g,orientation:t,formatter:k=>{const $=x||y,T=_?1-k:k,M=xd(c,T,!0);return $(M)},sparklineData:IAe(e,s)},i),o))})}};function NAe(e,t){const[n]=Array.from(e.entries()).filter(([i])=>i.type==="line"||i.type==="area").filter(([i])=>i.slider).map(([i])=>{const{encode:a,slider:o}=i;if(o!=null&&o.x){const s=l=>{const c=a[l];return[l,c?c.value:void 0]};return Object.fromEntries(t.map(s))}});if(!(n!=null&&n.series))return n==null?void 0:n.y;const r=n.series.reduce((i,a,o)=>(i[a]=i[a]||[],i[a].push(n.y[o]),i),{});return Object.values(r)}function IAe(e,t){const{markState:n}=t;return Dr(e.sparklineData)?e.sparklineData:NAe(n,["y","series"])}Gp.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const aH=e=>Gp(Object.assign(Object.assign({},e),{orientation:"horizontal"}));aH.props=Object.assign(Object.assign({},Gp.props),{defaultPosition:"bottom"});const oH=e=>Gp(Object.assign(Object.assign({},e),{orientation:"vertical"}));oH.props=Object.assign(Object.assign({},Gp.props),{defaultPosition:"left"});var LAe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Up=e=>{const{orientation:t,labelFormatter:n,style:r}=e,i=LAe(e,["orientation","labelFormatter","style"]);return({scales:[a],value:o,theme:s})=>{const{bbox:l}=o,{x:c,y:u,width:f,height:d}=l,{scrollbar:h={}}=s,{ratio:p,range:g}=a.getOptions(),v=t==="horizontal"?f:d,y=v/p,[x,C]=g,_=C>x?0:1;return new XCe({className:"g2-scrollbar",style:Object.assign({},h,Object.assign(Object.assign(Object.assign(Object.assign({},r),{x:c,y:u,trackLength:v,value:_}),i),{orientation:t,contentLength:y,viewportLength:v}))})}};Up.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const sH=e=>Up(Object.assign(Object.assign({},e),{orientation:"horizontal"}));sH.props=Object.assign(Object.assign({},Up.props),{defaultPosition:"bottom"});const lH=e=>Up(Object.assign(Object.assign({},e),{orientation:"vertical"}));lH.props=Object.assign(Object.assign({},Up.props),{defaultPosition:"left"});const cH=e=>()=>new Yr;cH.props={};const _C=(e,t)=>{const{coordinate:r}=t;return(i,a,o)=>{const[s]=i,{transform:l="",fillOpacity:c=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=Un(r)?["left bottom",`scale(1, ${1e-4})`]:["left top",`scale(${1e-4}, 1)`],p=[{transform:`${l} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0}
86,{transform:`${l} ${h}`.trimStart(),transformOrigin:d,fillOpacity:c,strokeOpacity:u,opacity:f,offset:.01},{transform:`${l} scale(1, 1)`.trimStart(),transformOrigin:d,fillOpacity:c,strokeOpacity:u,opacity:f}];return s.animate(p,Object.assign(Object.assign({},o),e))}},RAe=(e,t)=>{const{coordinate:r}=t;return(i,a,o)=>{const[s]=i,{transform:l="",fillOpacity:c=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=Un(r)?["left bottom",`scale(1, ${1e-4})`]:["left top",`scale(${1e-4}, 1)`],p=[{transform:`${l} scale(1, 1)`.trimStart(),transformOrigin:d},{transform:`${l} ${h}`.trimStart(),transformOrigin:d,fillOpacity:c,strokeOpacity:u,opacity:f,offset:.99},{transform:`${l} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0}];return s.animate(p,Object.assign(Object.assign({},o),e))}},uH=(e,t)=>{const{coordinate:r}=t;return KF.registerProperty({name:"scaleInYRadius",inherits:!1,initialValue:"",interpolable:!0,syntax:ze.NUMBER}),(i,a,o)=>{const[s]=i,l=u=>{const{__data__:f,style:d}=u,{fillOpacity:h=1,strokeOpacity:p=1,opacity:g=1}=d,{points:v,y,y1:x}=f,C=xf(r,v,[y,x]),{innerRadius:_,outerRadius:S}=C,O=[{scaleInYRadius:_+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{scaleInYRadius:_+1e-4,fillOpacity:h,strokeOpacity:p,opacity:g,offset:.01},{scaleInYRadius:S,fillOpacity:h,strokeOpacity:p,opacity:g}];return u.animate(O,Object.assign(Object.assign({},o),e))},c=u=>{const{style:f}=u,{transform:d="",fillOpacity:h=1,strokeOpacity:p=1,opacity:g=1}=f,[v,y]=Un(r)?["left top",`scale(${1e-4}, 1)`]:["left bottom",`scale(1, ${1e-4})`],x=[{transform:`${d} ${y}`.trimStart(),transformOrigin:v,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${d} ${y}`.trimStart(),transformOrigin:v,fillOpacity:h,strokeOpacity:p,opacity:g,offset:.01},{transform:`${d} scale(1, 1)`.trimStart(),transformOrigin:v,fillOpacity:h,strokeOpacity:p,opacity:g}];return u.animate(x,Object.assign(Object.assign({},o),e))};return On(r)?l(s):c(s)}},jAe=(e,t)=>{const{coordinate:r}=t;return(i,a,o)=>{const[s]=i,{transform:l="",fillOpacity:c=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=Un(r)?["left top",`scale(${1e-4}, 1)`]:["left bottom",`scale(1, ${1e-4})`],p=[{transform:`${l} scale(1, 1)`.trimStart(),transformOrigin:d},{transform:`${l} ${h}`.trimStart(),transformOrigin:d,fillOpacity:c,strokeOpacity:u,opacity:f,offset:.99},{transform:`${l} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0}];return s.animate(p,Object.assign(Object.assign({},o),e))}},fH=e=>(t,n,r)=>{const[i]=t,{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=i.style,l=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:a,strokeOpacity:o,opacity:s}];return i.animate(l,Object.assign(Object.assign({},r),e))};fH.props={};const dH=e=>(t,n,r)=>{const[i]=t,{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=i.style,l=[{fillOpacity:a,strokeOpacity:o,opacity:s},{fillOpacity:0,strokeOpacity:0,opacity:0}];return i.animate(l,Object.assign(Object.assign({},r),e))};dH.props={};const DAe={opacity:1,strokeOpacity:1,fillOpacity:1,lineWidth:0,x:0,y:0,cx:0,cy:0,r:0,rx:0,ry:0,width:0,height:0},FAe={[xe.CIRCLE]:["cx","cy","r"],[xe.ELLIPSE]:["cx","cy","rx","ry"],[xe.RECT]:["x","y","width","height"],[xe.IMAGE]:["x","y","width","height"],[xe.LINE]:["x1","y1","x2","y2"],[xe.POLYLINE]:["points"],[xe.POLYGON]:["points"]};function bd(e,t,n=!1){const r={};for(const i of t){const a=e.style[i];a?r[i]=a:n&&(r[i]=DAe[i])}return r}const tp=["fill","stroke","fillOpacity","strokeOpacity","opacity","lineWidth"];function z7(e){const{min:t,max:n}=e.getLocalBounds(),[r,i]=t,[a,o]=n,s=o-i,l=a-r;return[r,i,l,s]}function BAe(e){const[t,n,r,i]=e;return`
87    M ${t} ${n}
88    L ${t+r} ${n}
89    L ${t+r} ${n+i}
90    L ${t} ${n+i}
91    Z
92  `}function zAe(e,t){const[n,r,i,a]=z7(e),o=a/i,s=Math.ceil(Math.sqrt(t/o)),l=Math.ceil(t/s),c=[],u=a/l;let f=0,d=t;for(;d>0;){const h=Math.min(d,s),p=i/h;for(let g=0;g<h;g++){const v=n+g*p,y=r+f*u;c.push(BAe([v,y,p,u]))}d-=h,f+=1}return c}function VAe(e="pack"){return typeof e=="function"?e:zAe}function WAe(e,t,n){let{transform:r}=e.style;const{transform:i}=t.style;hH(t,e);let a=tp;if(e.nodeName===xe.GROUP){const[l,c,u,f]=z7(e),[d,h,p,g]=z7(t),v=l-d,y=c-h,x=u/p,C=f/g;r=`translate(${v}, ${y}) scale(${x}, ${C})`}else a=a.concat(FAe[e.nodeName]||[]);const o=[Object.assign({transform:r??"none"},bd(e,a,!0)),Object.assign({transform:i??"none"},bd(t,a,!0))];return t.animate(o,n)}function hH(e,t){e.__data__=t.__data__,e.className=t.className,e.markType=t.markType,t.parentNode.replaceChild(e,t)}function HAe(e,t){const{nodeName:n}=e;if(n==="path")return e;const r=new qi({style:Object.assign(Object.assign({},bd(e,tp)),{d:t})});return hH(r,e),r}function $T(e,t){const n=e.indexOf(t),r=e.lastIndexOf(t);return n===r}function GAe(e){return!$T(e,"m")||!$T(e,"M")}function TT(e){const t=E7e(e);if(t&&!GAe(t))return t}function PT(e){const{nodeName:t}=e;if(t==="path"){const n=an(e,"attributes");return n.markerEnd||n.markerStart}return!1}function SC(e,t,n,r){const{nodeName:i}=t,{nodeName:a}=n,o=TT(t),s=TT(n),l=i===a&&i!=="path",c=o===void 0||s===void 0,u=PT(t)||PT(n);if(l||c||u)return WAe(t,n,r);const f=HAe(e,o),d=[Object.assign({},bd(t,tp)),Object.assign({},bd(n,tp))];if(o!==s){d[0].d=o,d[1].d=s;const h=f.animate(d,r);return h.onfinish=()=>{fb(f,n),f.style.d=s,f.style.transform="none"},f.style.transform="none",h}return null}function UAe(e,t,n,r){e.style.visibility="hidden";const i=r(e,t.length);return t.map((a,o)=>{const s=new qi({style:Object.assign({d:i[o]},bd(e,tp))});return SC(a,s,a,n)})}function YAe(e,t,n,r){const i=r(t,e.length),{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=t.style,l=[{fillOpacity:0,strokeOpacity:0,opacity:0}
92,{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:a,strokeOpacity:o,opacity:s}],c=t.animate(l,n);return[...e.map((f,d)=>{const h=new qi({style:{d:i[d],fill:t.style.fill}});return SC(f,f,h,n)}),c]}const pH=e=>(t,n,r)=>{const i=VAe(e.split),a=Object.assign(Object.assign({},r),e),{length:o}=t,{length:s}=n;if(o===1&&s===1||o>1&&s>1){const[l]=t,[c]=n;return SC(l,l,c,a)}if(o===1&&s>1){const[l]=t;return UAe(l,n,a,i)}if(o>1&&s===1){const[l]=n;return YAe(t,l,a,i)}return null};pH.props={};const gH=(e,t)=>{KF.registerProperty({name:"waveInArcAngle",inherits:!1,initialValue:"",interpolable:!0,syntax:ze.NUMBER});const{coordinate:r}=t;return(i,a,o)=>{const[s]=i;if(!On(r))return _C(e,t)(i,a,o);const{__data__:l,style:c}=s,{radius:u=0,inset:f=0,fillOpacity:d=1,strokeOpacity:h=1,opacity:p=1}=c,{points:g,y:v,y1:y}=l,x=xb().cornerRadius(u).padAngle(f*Math.PI/180),C=xf(r,g,[v,y]),{startAngle:_,endAngle:S}=C,O=[{waveInArcAngle:_+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{waveInArcAngle:_+1e-4,fillOpacity:d,strokeOpacity:h,opacity:p,offset:.01},{waveInArcAngle:S,fillOpacity:d,strokeOpacity:h,opacity:p}],E=s.animate(O,Object.assign(Object.assign({},o),e));return E.onframe=function(){s.style.d=x(Object.assign(Object.assign({},C),{endAngle:Number(s.style.waveInArcAngle)}))},E.onfinish=function(){s.style.d=x(Object.assign(Object.assign({},C),{endAngle:S}))},E}};gH.props={};const XAe=e=>(n,r,i)=>{const[a]=n,{transform:o="",fillOpacity:s=1,strokeOpacity:l=1,opacity:c=1}=a.style,u="center center",f=[{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:l,opacity:c,offset:.01},{transform:`${o} scale(1)`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:l,opacity:c}];return a.animate(f,Object.assign(Object.assign({},i),e))},qAe=e=>(n,r,i)=>{const[a]=n,{transform:o="",fillOpacity:s=1,strokeOpacity:l=1,opacity:c=1}=a.style,u="center center",f=[{transform:`${o} scale(1)`.trimStart(),transformOrigin:u},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:l,opacity:c,offset:.99},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0}];return a.animate(f,Object.assign(Object.assign({},i),e))},mH=e=>(t,n,r)=>{var i,a;const[o]=t,s=((a=(i=o).getTotalLength)===null||a===void 0?void 0:a.call(i))||0,l=[{lineDash:[0,s]},{lineDash:[s,0]}];return o.animate(l,Object.assign(Object.assign({},r),e))};mH.props={};const vH=(e,t)=>(n,r,i)=>{const[a]=n,{min:[o,s],halfExtents:l}=a.getLocalBounds(),c=l[0]*2,u=l[1]*2,f=new qi({style:{d:`M${o},${s}L${o+c},${s}L${o+c},${s+u}L${o},${s+u}Z`}});return a.appendChild(f),a.style.clipPath=f,_C(e,t)([f],r,i)};vH.props={};const yH=(e,t)=>(n,r,i)=>{const[a]=n,{min:[o,s],halfExtents:l}=a.getLocalBounds(),c=l[0]*2,u=l[1]*2,f=new qi({style:{d:`M${o},${s}L${o+c},${s}L${o+c},${s+u}L${o},${s+u}Z`}});return a.appendChild(f),a.style.clipPath=f,uH(e,t)([f],r,i)};yH.props={};const MT="main-layer",V7="label-layer",ds="element",Hm="view",np="plot",NT="component",W7="label",IT="area";/*!
93 * @antv/g-plugin-canvas-path-generator
94 * @description A G plugin of path generator with Canvas2D API
95 * @version 2.1.19
96 * @date 5/9/2025, 8:19:59 AM
97 * @author AntVis
98 * @docs https://g.antv.antgroup.com/
99 */function ZAe(e,t){var n=t.cx,r=n===void 0?0:n,i=t.cy,a=i===void 0?0:i,o=t.r;e.arc(r,a,o,0,Math.PI*2,!1)}function KAe(e,t){var n=t.cx,r=n===void 0?0:n,i=t.cy,a=i===void 0?0:i,o=t.rx,s=t.ry;if(e.ellipse)e.ellipse(r,a,o,s,0,0,Math.PI*2,!1);else{var l=o>s?o:s,c=o>s?1:o/s,u=o>s?s/o:1;e.save(),e.scale(c,u),e.arc(r,a,l,0,Math.PI*2)}}function JAe(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.markerStart,s=t.markerEnd,l=t.markerStartOffset,c=t.markerEndOffset,u=0,f=0,d=0,h=0,p=0,g,v;o&&un(o)&&l&&(g=i-n,v=a-r,p=Math.atan2(v,g),u=Math.cos(p)*(l||0),f=Math.sin(p)*(l||0)),s&&un(s)&&c&&(g=n-i,v=r-a,p=Math.atan2(v,g),d=Math.cos(p)*(c||0),h=Math.sin(p)*(c||0)),e.moveTo(n+u,r+f),e.lineTo(i+d,a+h)}function QAe(e,t){var n=t.markerStart,r=t.markerEnd,i=t.markerStartOffset,a=t.markerEndOffset,o=t.d,s=o.absolutePath,l=o.segments,c=0,u=0,f=0,d=0,h=0,p,g;if(n&&un(n)&&i){var v=n.parentNode.getStartTangent(),y=St(v,2),x=y[0],C=y[1];p=x[0]-C[0],g=x[1]-C[1],h=Math.atan2(g,p),c=Math.cos(h)*(i||0),u=Math.sin(h)*(i||0)}if(r&&un(r)&&a){var _=r.parentNode.getEndTangent(),S=St(_,2),O=S[0],E=S[1];p=O[0]-E[0],g=O[1]-E[1],h=Math.atan2(g,p),f=Math.cos(h)*(a||0),d=Math.sin(h)*(a||0)}for(var k=0;k<s.length;k++){var $=s[k],T=$[0],M=s[k+1],R=k===0&&(c!==0||u!==0),N=(k===s.length-1||M&&(M[0]==="M"||M[0]==="Z"))&&f!==0&&d!==0,D=R?[c,u]:[0,0],F=St(D,2),V=F[0],z=F[1],B=N?[f,d]:[0,0],G=St(B,2),Y=G[0],K=G[1];switch(T){case"M":e.moveTo($[1]+V,$[2]+z);break;case"L":e.lineTo($[1]+Y,$[2]+K);break;case"Q":e.quadraticCurveTo($[1],$[2],$[3]+Y,$[4]+K);break;case"C":e.bezierCurveTo($[1],$[2],$[3],$[4],$[5]+Y,$[6]+K);break;case"A":{var Q=l[k].arcParams,ne=Q.cx,oe=Q.cy,ae=Q.rx,ce=Q.ry,fe=Q.startAngle,le=Q.endAngle,be=Q.xRotation,Ce=Q.sweepFlag;if(e.ellipse)e.ellipse(ne,oe,ae,ce,be,fe,le,!!(1-Ce));else{var $e=ae>ce?ae:ce,Me=ae>ce?1:ae/ce,Le=ae>ce?ce/ae:1;e.translate(ne,oe),e.rotate(be),e.scale(Me,Le),e.arc(0,0,$e,fe,le,!!(1-Ce)),e.scale(1/Me,1/Le),e.rotate(-be),e.translate(-ne,-oe)}N&&e.lineTo($[6]+f,$[7]+d);break}case"Z":e.closePath();break}}}function e$e(e,t){var n=t.markerStart,r=t.markerEnd,i=t.markerStartOffset,a=t.markerEndOffset,o=t.points.points,s=o.length,l=o[0][0],c=o[0][1],u=o[s-1][0],f=o[s-1][1],d=0,h=0,p=0,g=0,v=0,y,x;n&&un(n)&&i&&(y=o[1][0]-o[0][0],x=o[1][1]-o[0][1],v=Math.atan2(x,y),d=Math.cos(v)*(i||0),h=Math.sin(v)*(i||0)),r&&un(r)&&a&&(y=o[s-1][0]-o[0][0],x=o[s-1][1]-o[0][1],v=Math.atan2(x,y),p=Math.cos(v)*(a||0),g=Math.sin(v)*(a||0)),e.moveTo(l+(d||p),c+(h||g));for(var C=1;C<s-1;C++){var _=o[C];e.lineTo(_[0],_[1])}e.lineTo(u,f)}function t$e(e,t){var n=t.markerStart,r=t.markerEnd,i=t.markerStartOffset,a=t.markerEndOffset,o=t.points.points,s=o.length,l=o[0][0],c=o[0][1],u=o[s-1][0],f=o[s-1][1],d=0,h=0,p=0,g=0,v=0,y,x;n&&un(n)&&i&&(y=o[1][0]-o[0][0],x=o[1][1]-o[0][1],v=Math.atan2(x,y),d=Math.cos(v)*(i||0),h=Math.sin(v)*(i||0)),r&&un(r)&&a&&(y=o[s-2][0]-o[s-1][0],x=o[s-2][1]-o[s-1][1],v=Math.atan2(x,y),p=Math.cos(v)*(a||0),g=Math.sin(v)*(a||0)),e.moveTo(l+d,c+h);for(var C=1;C<s-1;C++){var _=o[C];e.lineTo(_[0],_[1])}e.lineTo(u+p,f+g)}
99function n$e(e,t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.radius,s=t.width,l=t.height,c=s,u=l,f=o&&o.some(function(S){return S!==0});if(!f)e.rect(r,a,c,u);else{var d=s>0?1:-1,h=l>0?1:-1,p=d+h===0,g=o.map(function(S){return yr(S,0,Math.min(Math.abs(c)/2,Math.abs(u)/2))}),v=St(g,4),y=v[0],x=v[1],C=v[2],_=v[3];e.moveTo(d*y+r,a),e.lineTo(c-d*x+r,a),x!==0&&e.arc(c-d*x+r,h*x+a,x,-h*Math.PI/2,d>0?0:Math.PI,p),e.lineTo(c+r,u-h*C+a),C!==0&&e.arc(c-d*C+r,u-h*C+a,C,d>0?0:Math.PI,h>0?Math.PI/2:1.5*Math.PI,p),e.lineTo(d*_+r,u+a),_!==0&&e.arc(d*_+r,u-h*_+a,_,h>0?Math.PI/2:-Math.PI/2,d>0?Math.PI:0,p),e.lineTo(r,h*y+a),y!==0&&e.arc(d*y+r,h*y+a,y,d>0?Math.PI:0,h>0?Math.PI*1.5:Math.PI/2,p)}}var r$e=function(e){function t(){var n;Pe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=jt(this,t,[].concat(i)),n.name="canvas-path-generator",n}return Rt(t,e),Te(t,[{key:"init",value:function(){var r,i=(r={},Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(r,xe.CIRCLE,ZAe),xe.ELLIPSE,KAe),xe.RECT,n$e),xe.LINE,JAe),xe.POLYLINE,t$e),xe.POLYGON,e$e),xe.PATH,QAe),xe.TEXT,void 0),xe.GROUP,void 0),xe.IMAGE,void 0),Je(Je(Je(r,xe.HTML,void 0),xe.MESH,void 0),xe.FRAGMENT,void 0));this.context.pathGeneratorFactory=i}},{key:"destroy",value:function(){delete this.context.pathGeneratorFactory}}])}(Bc);/*!
100 * @antv/g-plugin-canvas-picker
101 * @description A G plugin for picking in canvas
102 * @version 2.1.23
103 * @date 5/30/2025, 2:56:22 AM
104 * @author AntVis
105 * @docs https://g.antv.antgroup.com/
106 */var i$e=qt(),a$e=qt(),o$e=qt(),s$e=_n(),xH=function(){function e(){var t=this;Pe(this,e),this.isHit=function(n,r,i,a){var o=t.context.pointInPathPickerFactory[n.nodeName];if(o){var s=Do(s$e,i),l=gr(a$e,$i(o$e,r[0],r[1],0),s);if(o(n,new mi(l[0],l[1]),a,t.isPointInPath,t.context,t.runtime))return!0}return!1},this.isPointInPath=function(n,r){var i=t.runtime.offscreenCanvasCreator.getOrCreateContext(t.context.config.offscreenCanvas),a=t.context.pathGeneratorFactory[n.nodeName];return a&&(i.beginPath(),a(i,n.parsedStyle),i.closePath()),i.isPointInPath(r.x,r.y)}}return Te(e,[{key:"apply",value:function(n,r){var i,a=this,o=n.renderingService,s=n.renderingContext;this.context=n,this.runtime=r;var l=(i=s.root)===null||i===void 0?void 0:i.ownerDocument;o.hooks.pick.tapPromise(e.tag,function(){var c=Ac(Mi().mark(function u(f){return Mi().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",a.pick(l,f));case 1:case"end":return h.stop()}},u)}));return function(u){return c.apply(this,arguments)}}()),o.hooks.pickSync.tap(e.tag,function(c){return a.pick(l,c)})}},{key:"pick",value:function(n,r){var i=r.topmost,a=r.position,o=a.x,s=a.y,l=$i(i$e,o,s,0),c=n.elementsFromBBox(l[0],l[1],l[0],l[1]),u=[],f=Pu(c),d;try{for(f.s();!(d=f.n()).done;){var h=d.value,p=h.getWorldTransform(),g=this.isHit(h,l,p,!1);if(g){var v=VF(h);if(v){var y=v.parsedStyle.clipPath,x=this.isHit(y,l,y.getWorldTransform(),!0);if(x){if(i)return r.picked=[h],r;u.push(h)}}else{if(i)return r.picked=[h],r;u.push(h)}}}}catch(C){f.e(C)}finally{f.f()}return r.picked=u,r}}])}();xH.tag="CanvasPicker";function l$e(e,t,n){var r=e.parsedStyle,i=r.cx,a=i===void 0?0:i,o=r.cy,s=o===void 0?0:o,l=r.r,c=r.fill,u=r.stroke,f=r.lineWidth,d=f===void 0?1:f,h=r.increasedLineWidthForHitTesting,p=h===void 0?0:h,g=r.pointerEvents,v=g===void 0?"auto":g,y=(d+p)/2,x=El(a,s,t.x,t.y),C=mf(v,c,u),_=St(C,2),S=_[0],O=_[1];return S&&O||n?x<=l+y:S?x<=l:O?x>=l-y&&x<=l+y:!1}function U5(e,t,n,r){return e/(n*n)+t/(r*r)}function c$e(e,t,n){var r=e.parsedStyle,i=r.cx,a=i===void 0?0:i,o=r.cy,s=o===void 0?0:o,l=r.rx,c=r.ry,u=r.fill,f=r.stroke,d=r.lineWidth,h=d===void 0?1:d,p=r.increasedLineWidthForHitTesting,g=p===void 0?0:p,v=r.pointerEvents,y=v===void 0?"auto":v,x=t.x,C=t.y,_=mf(y,u,f),S=St(_,2),O=S[0],E=S[1],k=(h+g)/2,$=(x-a)*(x-a),T=(C-s)*(C-s);return O&&E||n?U5($,T,l+k,c+k)<=1:O?U5($,T,l,c)<=1:E?U5($,T,l-k,c-k)>=1&&U5($,T,l+k,c+k)<=1:!1}function Du(e,t,n,r,i,a){return i>=e&&i<=e+n&&a>=t&&a<=t+r}function u$e(e,t,n,r,i,a,o){var s=i/2;return Du(e-s,t-s,n,i,a,o)||Du(e+n-s,t-s,i,r,a,o)||Du(e+s,t+r-s,n,i,a,o)||Du(e-s,t+s,i,r,a,o)}function Y5(e,t,n,r,i,a,o,s){var l=(Math.atan2(s-t,o-e)+Math.PI*2)%(Math.PI*2),c={x:e+n*Math.cos(l),y:t+n*Math.sin(l)};return El(c.x,c.y,o,s)<=a/2}function Cc(e,t,n,r,i,a,o){var s=Math.min(e,n),l=Math.max(e,n),c=Math.min(t,r),u=Math.max(t,r),f=i/2;return a>=s-f&&a<=l+f&&o>=c-f&&o<=u+f?X4e(e,t,n,r,a,o)<=i/2:!1}function bH(e,t,n,r,i){var a=e.length;if(a<2)return!1;for(var o=0;o<a-1;o++){var s=e[o][0],l=e[o][1],c=e[o+1][0],u=e[o+1][1];if(Cc(s,l,c,u,t,n,r))return!0}if(i){var f=e[0],d=e[a-1];if(Cc(f[0],f[1],d[0],d[1],t,n,r))return!0}return!1}var f$e=1e-6;function s4(e){return Math.abs(e)<f$e?0:e<0?-1:1}function d$e(e,t,n){return(n[0]-e[0])*(t[1]-e[1])===(t[0]-e[0])*(n[1]-e[1])&&Math.min(e[0],t[0])<=n[0]&&n[0]<=Math.max(e[0],t[0])&&Math.min(e[1],t[1])<=n[1]&&n[1]<=Math.max(e[1],t[1])}
106function CH(e,t,n){var r=!1,i=e.length;if(i<=2)return!1;for(var a=0;a<i;a++){var o=e[a],s=e[(a+1)%i];if(d$e(o,s,[t,n]))return!0;s4(o[1]-n)>0!=s4(s[1]-n)>0&&s4(t-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}function LT(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];if(r=CH(a,t,n),r)break}return r}function h$e(e,t,n){var r=e.parsedStyle,i=r.x1,a=r.y1,o=r.x2,s=r.y2,l=r.lineWidth,c=l===void 0?1:l,u=r.increasedLineWidthForHitTesting,f=u===void 0?0:u,d=r.pointerEvents,h=d===void 0?"auto":d,p=r.fill,g=r.stroke,v=mf(h,p,g),y=St(v,2),x=y[1];return!x&&!n||!c?!1:Cc(i,a,o,s,c+f,t.x,t.y)}function p$e(e,t,n,r,i){for(var a=!1,o=t/2,s=0;s<e.length;s++){var l=e[s],c=l.currentPoint,u=l.params,f=l.prePoint,d=l.box;if(!(d&&!Du(d.x-o,d.y-o,d.width+t,d.height+t,n,r)))switch(l.command){case"L":case"Z":if(a=Cc(f[0],f[1],c[0],c[1],t,n,r),a)return!0;break;case"Q":var h=t6e(f[0],f[1],u[1],u[2],u[3],u[4],n,r);if(a=h<=t/2,a)return!0;break;case"C":var p=rA(f[0],f[1],u[1],u[2],u[3],u[4],u[5],u[6],n,r,i);if(a=p<=t/2,a)return!0;break;case"A":l.cubicParams||(l.cubicParams=Jx(f[0],f[1],u[1],u[2],u[3],u[4],u[5],u[6],u[7],void 0));for(var g=l.cubicParams,v=f,y=0;y<g.length;y+=6){var x=rA(v[0],v[1],g[y],g[y+1],g[y+2],g[y+3],g[y+4],g[y+5],n,r,i);if(v=[g[y+4],g[y+5]],a=x<=t/2,a)return!0}break}}return a}function g$e(e,t,n,r,i,a){var o=e.parsedStyle,s=o.lineWidth,l=s===void 0?1:s,c=o.increasedLineWidthForHitTesting,u=c===void 0?0:c,f=o.stroke,d=o.fill,h=o.d,p=o.pointerEvents,g=p===void 0?"auto":p,v=h.segments,y=h.hasArc,x=h.polylines,C=h.polygons,_=mf(g,(C==null?void 0:C.length)&&d,f),S=St(_,2),O=S[0],E=S[1],k=x7(e),$=!1;return O||n?(y?$=r(e,t):$=LT(C,t.x,t.y)||LT(x,t.x,t.y),$):((E||n)&&($=p$e(v,l+u,t.x,t.y,k)),$)}function m$e(e,t,n){var r=e.parsedStyle,i=r.stroke,a=r.fill,o=r.lineWidth,s=o===void 0?1:o,l=r.increasedLineWidthForHitTesting,c=l===void 0?0:l,u=r.points,f=r.pointerEvents,d=f===void 0?"auto":f,h=mf(d,a,i),p=St(h,2),g=p[0],v=p[1],y=!1;return(v||n)&&(y=bH(u.points,s+c,t.x,t.y,!0)),!y&&(g||n)&&(y=CH(u.points,t.x,t.y)),y}function v$e(e,t,n){var r=e.parsedStyle,i=r.lineWidth,a=i===void 0?1:i,o=r.increasedLineWidthForHitTesting,s=o===void 0?0:o,l=r.points,c=r.pointerEvents,u=c===void 0?"auto":c,f=r.fill,d=r.stroke,h=mf(u,f,d),p=St(h,2),g=p[1];return!g&&!n||!a?!1:bH(l.points,a+s,t.x,t.y,!1)}function y$e(e,t,n,r,i){var a=e.parsedStyle,o=a.radius,s=a.fill,l=a.stroke,c=a.lineWidth,u=c===void 0?1:c,f=a.increasedLineWidthForHitTesting,d=f===void 0?0:f,h=a.x,p=h===void 0?0:h,g=a.y,v=g===void 0?0:g,y=a.width,x=a.height,C=a.pointerEvents,_=C===void 0?"auto":C,S=mf(_,s,l),O=St(S,2),E=O[0],k=O[1],$=o&&o.some(function(N){return N!==0}),T=u+d;if($){var R=!1;return(k||n)&&(R=x$e(p,v,y,x,o.map(function(N){return yr(N,0,Math.min(Math.abs(y)/2,Math.abs(x)/2))}),T,t.x,t.y)),!R&&(E||n)&&(R=r(e,t)),R}else{var M=T/2;if(E&&k||n)return Du(p-M,v-M,y+M,x+M,t.x,t.y);if(E)return Du(p,v,y,x,t.x,t.y);if(k)return u$e(p,v,y,x,T,t.x,t.y)}return!1}function x$e(e,t,n,r,i,a,o,s){var l=St(i,4),c=l[0],u=l[1],f=l[2],d=l[3];return Cc(e+c,t,e+n-u,t,a,o,s)||Cc(e+n,t+u,e+n,t+r-f,a,o,s)||Cc(e+n-f,t+r,e+d,t+r,a,o,s)||Cc(e,t+r-d,e,t+c,a,o,s)||Y5(e+n-u,t+u,u,1.5*Math.PI,2*Math.PI,a,o,s)||Y5(e+n-f,t+r-f,f,0,.5*Math.PI,a,o,s)||Y5(e+d,t+r-d,d,.5*Math.PI,Math.PI,a,o,s)||Y5(e+c,t+c,c,Math.PI,1.5*Math.PI,a,o,s)}function b$e(e,t,n,r,i,a){var o=e.parsedStyle,s=o.pointerEvents,l=s===void 0?"auto":s,c=o.x,u=c===void 0?0:c,f=o.y,d=f===void 0?0:f,h=o.width,p=o.height;if(l==="non-transparent-pixel"){var g=i.config.offscreenCanvas,v=a.offscreenCanvasCreator.getOrCreateCanvas(g),y=a.offscreenCanvasCreator.getOrCreateContext(g,{willReadFrequently:!0});v.width=h,v.height=p,i.defaultStyleRendererFactory[xe.IMAGE].render(y,Tt(Tt({},e.parsedStyle),{},{x:0,y:0}),e,void 0,void 0,void 0);var x=y.getImageData(t.x-u,t.y-d,1,1).data;return x.every(function(C){return C!==0})}return!0}function C$e(e,t,n,r){var i=e.getGeometryBounds();return t.x>=i.min[0]&&t.y>=i.min[1]&&t.x<=i.max[0]&&t.y<=i.max[1]}var w$e=function(e){function t(){var n;Pe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=jt(this,t,[].concat(i)),n.name="canvas-picker",n}return Rt(t,e),Te(t,[{key:"init",value:function(){var r,i=(r={},Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(r,xe.CIRCLE,l$e),xe.ELLIPSE,c$e),xe.RECT,y$e),xe.LINE,h$e),xe.POLYLINE,v$e),xe.POLYGON,m$e),xe.PATH,g$e),xe.TEXT,C$e),xe.GROUP,null),xe.IMAGE,b$e),Je(Je(r,xe.HTML,null),xe.MESH,null));this.context.pointInPathPickerFactory=i,this.addRenderingPlugin(new xH)}},{key:"destroy",value:function(){delete this.context.pointInPathPickerFactory,this.removeAllRenderingPlugins()}}])}(Bc);function ls(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var _$e=0;function S$e(e){return"__private_"+_$e+++"_"+e}/*!
107 * @antv/g-plugin-image-loader
108 * @description A G plugin for loading image
109 * @version 2.1.23
110 * @date 5/30/2025, 2:54:46 AM
111 * @author AntVis
112 * @docs https://g.antv.antgroup.com/
113 */var O$e=function(){function e(){Pe(this,e),this.cacheStore=new Map}return Te(e,[{key:"onRefAdded",value:function(n){}},{key:"has",value:function(n){return this.cacheStore.has(n)}},{key:"put",value:function(n,r,i){return this.cacheStore.has(n)?!1:(this.cacheStore.set(n,{value:r,counter:new Set([i.entity])}),this.onRefAdded(i),!0)}},{key:"get",value:function(n,r){var i=this.cacheStore.get(n);return i?(i.counter.has(r.entity)||(i.counter.add(r.entity),this.onRefAdded(r)),i.value):null}},{key:"update",value:function(n,r,i){var a=this.cacheStore.get(n);return a?(a.value=Tt(Tt({},a.value),r),a.counter.has(i.entity)||(a.counter.add(i.entity),this.onRefAdded(i)),!0):!1}},{key:"release",value:function(n,r){var i=this.cacheStore.get(n);return i?(i.counter.delete(r.entity),i.counter.size<=0&&this.cacheStore.delete(n),!0):!1}},{key:"releaseRef",value:function(n){var r=this;
vendor: 5,586 bytes, line 113
113Array.from(this.cacheStore.keys()).forEach(function(i){r.release(i,n)})}},{key:"getSize",value:function(){return this.cacheStore.size}},{key:"clear",value:function(){this.cacheStore.clear()}}])}(),l4=[],c4=[],H7=function(){function e(){Pe(this,e)}return Te(e,null,[{key:"stop",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.api;e.rafId&&(n.cancelAnimationFrame(e.rafId),e.rafId=null)}},{key:"executeTask",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.api;l4.length<=0&&c4.length<=0||(c4.forEach(function(r){return r()}),c4=l4.splice(0,e.TASK_NUM_PER_FRAME),e.rafId=n.requestAnimationFrame(function(){e.executeTask(n)}))}},{key:"sliceImage",value:function(n,r,i,a){for(var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:e.api,l=n.naturalWidth||n.width,c=n.naturalHeight||n.height,u=r-o,f=i-o,d=Math.ceil(l/u),h=Math.ceil(c/f),p={tileSize:[r,i],gridSize:[h,d],tiles:Array(h).fill(null).map(function(){return Array(d).fill(null)})},g=function(x){for(var C=function(O){l4.push(function(){var E=O*u,k=x*f,$=[Math.min(r,l-E),Math.min(i,c-k)],T=$[0],M=$[1],R=s.createCanvas();R.width=r,R.height=i;var N=R.getContext("2d");N.drawImage(n,E,k,T,M,0,0,T,M),p.tiles[x][O]={x:E,y:k,tileX:O,tileY:x,data:R},a()})},_=0;_<d;_++)C(_)},v=0;v<h;v++)g(v);return e.stop(),e.executeTask(),p}}])}();H7.TASK_NUM_PER_FRAME=10;var Sa=new O$e;Sa.onRefAdded=function(t){var n=this;t.addEventListener(Ft.DESTROY,function(){n.releaseRef(t)},{once:!0})};var OC=function(){function e(t,n){Pe(this,e),this.gradientCache={},this.patternCache={},this.context=t,this.runtime=n}return Te(e,[{key:"getImageSync",value:function(n,r,i){var a=nr(n)?n:n.src;if(Sa.has(a)){var o=Sa.get(a,r);if(o.img.complete)return i==null||i(o),o}return this.getOrCreateImage(n,r).then(function(s){i==null||i(s)}).catch(function(s){console.error(s)}),null}},{key:"getOrCreateImage",value:function(n,r){var i=this,a=nr(n)?n:n.src;if(!nr(n)&&!Sa.has(a)){var o={img:n,size:[n.naturalWidth||n.width,n.naturalHeight||n.height],tileSize:X5(n)};Sa.put(a,o,r)}if(Sa.has(a)){var s=Sa.get(a,r);return s.img.complete?Promise.resolve(s):new Promise(function(l,c){s.img.addEventListener("load",function(){s.size=[s.img.naturalWidth||s.img.width,s.img.naturalHeight||s.img.height],s.tileSize=X5(s.img),l(s)}),s.img.addEventListener("error",function(u){c(u)})})}return new Promise(function(l,c){var u=i.context.config.createImage();if(u){var f={img:u,size:[0,0],tileSize:X5(u)};Sa.put(a,f,r),u.onload=function(){f.size=[u.naturalWidth||u.width,u.naturalHeight||u.height],f.tileSize=X5(f.img),l(f)},u.onerror=function(d){c(d)},u.crossOrigin="Anonymous",u.src=a}})}},{key:"createDownSampledImage",value:function(){var t=Ac(Mi().mark(function r(i,a){var o,s,l,c,u,f,d,h,p,g,v,y,x,C;return Mi().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,this.getOrCreateImage(i,a);case 2:if(o=S.sent,!(typeof o.downSamplingRate<"u")){S.next=5;break}return S.abrupt("return",o);case 5:if(s=this.context.config.enableLargeImageOptimization,l=typeof s=="boolean"?{}:s,c=l.maxDownSampledImageSize,u=c===void 0?2048:c,f=l.downSamplingRateThreshold,d=f===void 0?.5:f,h=this.runtime.globalThis.createImageBitmap,p=St(o.size,2),g=p[0],v=p[1],y=o.img,x=Math.min((u+u)/(g+v),Math.max(.01,Math.min(d,.5))),C=Tt(Tt({},o),{},{downSamplingRate:x}),Sa.update(o.img.src,C,a),!h){S.next=25;break}return S.prev=14,S.next=17,h(o.img,{resizeWidth:g*x,resizeHeight:v*x});case 17:y=S.sent,S.next=23;break;case 20:S.prev=20,S.t0=S.catch(14),x=1;case 23:S.next=26;break;case 25:x=1;case 26:return C=Tt(Tt({},this.getImageSync(i,a)),{},{downSampled:y,downSamplingRate:x}),Sa.update(o.img.src,C,a),S.abrupt("return",C);case 29:case"end":return S.stop()}},r,this,[[14,20]])}));function n(r,i){return t.apply(this,arguments)}return n}()},{key:"createImageTiles",value:function(){var t=Ac(Mi().mark(function r(i,a,o,s){var l,c,u,f,d;return Mi().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,this.getOrCreateImage(i,s);case 2:return l=p.sent,c=s.ownerDocument.defaultView,u=c.requestAnimationFrame,f=c.cancelAnimationFrame,H7.api={requestAnimationFrame:u,cancelAnimationFrame:f,createCanvas:function(){return Mb.createCanvas()}},d=Tt(Tt({},l),H7.sliceImage(l.img,l.tileSize[0],l.tileSize[0],o)),Sa.update(l.img.src,d,s),p.abrupt("return",d);case 8:case"end":return p.stop()}},r,this)}));function n(r,i,a,o){return t.apply(this,arguments)}return n}()},{key:"releaseImage",value:function(n,r){Sa.release(nr(n)?n:n.src,r)}},{key:"releaseImageRef",value:function(n){Sa.releaseRef(n)}},{key:"getOrCreatePatternSync",value:function(n,r,i,a,o,s,l){var c=this.generatePatternKey(r);if(c&&this.patternCache[c])return this.patternCache[c];var u=r.image,f=r.repetition,d=r.transform,h,p=!1;if(nr(u)){var g=this.getImageSync(u,n,l);h=g==null?void 0:g.img}else a?(h=a,p=!0):h=u;var v=h&&i.createPattern(h,f);if(v){var y;d?y=YF(DF(d),new Yn({})):y=Pc(_n()),p&&tj(y,y,[1/o,1/o,1]),v.setTransform({a:y[0],b:y[1],c:y[4],d:y[5],e:y[12]+s[0],f:y[13]+s[1]})}return c&&v&&(this.patternCache[c]=v),v}},{key:"getOrCreateGradient",value:function(n,r){var i=this.generateGradientKey(n),a=n.type,o=n.steps,s=n.min,l=n.width,c=n.height,u=n.angle,f=n.cx,d=n.cy,h=n.size;if(this.gradientCache[i])return this.gradientCache[i];var p=null;if(a===xc.LinearGradient){var g=q6e(s,l,c,u),v=g.x1,y=g.y1,x=g.x2,C=g.y2;p=r.createLinearGradient(v,y,x,C)}else if(a===xc.RadialGradient){var _=Z6e(s,l,c,f,d,h),S=_.x,O=_.y,E=_.r;p=r.createRadialGradient(S,O,0,S,O,E)}
113return p&&(o.forEach(function(k){var $=k.offset,T=k.color;if($.unit===He.kPercentage){var M;(M=p)===null||M===void 0||M.addColorStop($.value/100,T.toString())}}),this.gradientCache[i]=p),this.gradientCache[i]}},{key:"generateGradientKey",value:function(n){var r=n.type,i=n.min,a=n.width,o=n.height,s=n.steps,l=n.angle,c=n.cx,u=n.cy,f=n.size;return"gradient-".concat(r,"-").concat((l==null?void 0:l.toString())||0,"-").concat((c==null?void 0:c.toString())||0,"-").concat((u==null?void 0:u.toString())||0,"-").concat((f==null?void 0:f.toString())||0,"-").concat(i[0],"-").concat(i[1],"-").concat(a,"-").concat(o,"-").concat(s.map(function(d){var h=d.offset,p=d.color;return"".concat(h).concat(p)}).join("-"))}},{key:"generatePatternKey",value:function(n){var r=n.image,i=n.repetition;if(nr(r))return"pattern-".concat(r,"-").concat(i);if(r.nodeName==="rect")return"pattern-".concat(r.entity,"-").concat(i)}}])}();OC.isSupportTile=!!Mb.createCanvas();function X5(e){if(!e.complete)return[0,0];var t=e.naturalWidth||e.width,n=e.naturalHeight||e.height,r=256;return[256,512].forEach(function(i){var a=Math.ceil(n/i),o=Math.ceil(t/i);a*o<1e3&&(r=i)}),[r,r]}var wH=function(){function e(){Pe(this,e)}return Te(e,[{key:"apply",value:function(n){var r=n.renderingService,i=n.renderingContext,a=n.imagePool,o=i.root.ownerDocument.defaultView,s=function(f,d,h){var p=f.parsedStyle,g=p.width,v=p.height;g&&!v?f.setAttribute("height",h/d*g):!g&&v&&f.setAttribute("width",d/h*v)},l=function(f){var d=f.target,h=d.nodeName,p=d.attributes;if(h===xe.IMAGE){var g=p.src,v=p.keepAspectRatio;a.getImageSync(g,d,function(y){var x=y.img,C=x.width,_=x.height;v&&s(d,C,_),d.renderable.dirty=!0,r.dirtify()})}},c=function(f){var d=f.target,h=f.attrName,p=f.prevValue,g=f.newValue;d.nodeName!==xe.IMAGE||h!=="src"||(p!==g&&a.releaseImage(p,d),nr(g)&&a.getOrCreateImage(g,d).then(function(v){var y=v.img,x=y.width,C=y.height;d.attributes.keepAspectRatio&&s(d,x,C),d.renderable.dirty=!0,r.dirtify()}).catch(function(){}))};r.hooks.init.tap(e.tag,function(){o.addEventListener(Ft.MOUNTED,l),o.addEventListener(Ft.ATTR_MODIFIED,c)}),r.hooks.destroy.tap(e.tag,function(){o.removeEventListener(Ft.MOUNTED,l),o.removeEventListener(Ft.ATTR_MODIFIED,c)})}}])}();wH.tag="LoadImage";var E$e=function(e){function t(){var n;Pe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=jt(this,t,[].concat(i)),n.name="image-loader",n}return Rt(t,e),Te(t,[{key:"init",value:function(r){this.context.imagePool=new OC(this.context,r),this.addRenderingPlugin(new wH)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])}(Bc);/*!
114 * @antv/g-plugin-canvas-renderer
115 * @description A G plugin of renderer implementation with Canvas2D API
116 * @version 2.2.23
117 * @date 5/30/2025, 2:55:32 AM
118 * @author AntVis
119 * @docs https://g.antv.antgroup.com/
120 */var Er=S$e("renderState"),_H=function(){function e(t){Pe(this,e),this.removedRBushNodeAABBs=[],this.renderQueue=[],Object.defineProperty(this,Er,{writable:!0,value:{restoreStack:[],prevObject:null,currentContext:new Map}}),this.clearFullScreenLastFrame=!1,this.clearFullScreen=!1,this.vpMatrix=_n(),this.dprMatrix=_n(),this.tmpMat4=_n(),this.vec3a=qt(),this.vec3b=qt(),this.vec3c=qt(),this.vec3d=qt(),this.canvasRendererPluginOptions=t}return Te(e,[{key:"apply",value:function(n,r){var i=this;this.context=n;var a=this.context,o=a.config,s=a.camera,l=a.renderingService,c=a.renderingContext,u=a.rBushRoot,f=a.pathGeneratorFactory,d=o.renderer.getConfig().enableRenderingOptimization;o.renderer.getConfig().enableDirtyCheck=!1,o.renderer.getConfig().enableDirtyRectangleRendering=!1,this.rBush=u,this.pathGeneratorFactory=f;var h=n.contextService,p=c.root.ownerDocument.defaultView,g=function(C){var _=C.target,S=_.rBushNode;S.aabb&&i.removedRBushNodeAABBs.push(S.aabb)},v=function(C){var _=C.target,S=_.rBushNode;S.aabb&&i.removedRBushNodeAABBs.push(S.aabb)};l.hooks.init.tap(e.tag,function(){p.addEventListener(Ft.UNMOUNTED,g),p.addEventListener(Ft.CULLED,v);var x=h.getDPR(),C=o.width,_=o.height,S=h.getContext();i.clearRect(S,0,0,C*x,_*x,o.background)}),l.hooks.destroy.tap(e.tag,function(){p.removeEventListener(Ft.UNMOUNTED,g),p.removeEventListener(Ft.CULLED,v),i.renderQueue=[],i.removedRBushNodeAABBs=[],ls(i,Er)[Er]={restoreStack:[],prevObject:null,currentContext:null}}),l.hooks.beginFrame.tap(e.tag,function(){var x,C=h.getContext(),_=h.getDPR(),S=o.width,O=o.height,E=i.canvasRendererPluginOptions,k=E.dirtyObjectNumThreshold,$=E.dirtyObjectRatioThreshold,T=l.getStats(),M=T.total,R=T.rendered,N=R/M;
120i.clearFullScreen=i.clearFullScreenLastFrame||!((x=p.context.renderingPlugins[1])!==null&&x!==void 0&&x.isFirstTimeRenderingFinished)||l.disableDirtyRectangleRendering()||R>k&&N>$,C&&(typeof C.resetTransform=="function"?C.resetTransform():C.setTransform(1,0,0,1,0,0),i.clearFullScreen&&i.clearRect(C,0,0,S*_,O*_,o.background))});var y=function(C,_){for(var S=[C];S.length>0;){var O,E=S.pop();E.isVisible()&&!E.isCulled()&&(d?i.renderDisplayObjectOptimized(E,_,i.context,ls(i,Er)[Er],r):i.renderDisplayObject(E,_,i.context,ls(i,Er)[Er],r));for(var k=((O=E.sortable)===null||O===void 0||(O=O.sorted)===null||O===void 0?void 0:O.length)>0?E.sortable.sorted:E.childNodes,$=k.length-1;$>=0;$--)S.push(k[$])}};l.hooks.endFrame.tap(e.tag,function(){if(c.root.childNodes.length===0){i.clearFullScreenLastFrame=!0;return}d=o.renderer.getConfig().enableRenderingOptimization,ls(i,Er)[Er]={restoreStack:[],prevObject:null,currentContext:ls(i,Er)[Er].currentContext},ls(i,Er)[Er].currentContext.clear(),i.clearFullScreenLastFrame=!1;var x=h.getContext(),C=h.getDPR();if(pc(i.dprMatrix,[C,C,1]),Ii(i.vpMatrix,i.dprMatrix,s.getOrthoMatrix()),i.clearFullScreen)d?(x.save(),y(c.root,x),x.restore()):y(c.root,x),i.removedRBushNodeAABBs=[];else{var _=i.safeMergeAABB.apply(i,[i.mergeDirtyAABBs(i.renderQueue)].concat(Gt(i.removedRBushNodeAABBs.map(function(ae){var ce=ae.minX,fe=ae.minY,le=ae.maxX,be=ae.maxY,Ce=new Ar;return Ce.setMinMax([ce,fe,0],[le,be,0]),Ce}))));if(i.removedRBushNodeAABBs=[],Ar.isEmpty(_)){i.renderQueue=[];return}var S=i.convertAABB2Rect(_),O=S.x,E=S.y,k=S.width,$=S.height,T=gr(i.vec3a,[O,E,0],i.vpMatrix),M=gr(i.vec3b,[O+k,E,0],i.vpMatrix),R=gr(i.vec3c,[O,E+$,0],i.vpMatrix),N=gr(i.vec3d,[O+k,E+$,0],i.vpMatrix),D=Math.min(T[0],M[0],N[0],R[0]),F=Math.min(T[1],M[1],N[1],R[1]),V=Math.max(T[0],M[0],N[0],R[0]),z=Math.max(T[1],M[1],N[1],R[1]),B=Math.floor(D),G=Math.floor(F),Y=Math.ceil(V-D),K=Math.ceil(z-F);x.save(),i.clearRect(x,B,G,Y,K,o.background),x.beginPath(),x.rect(B,G,Y,K),x.clip(),x.setTransform(i.vpMatrix[0],i.vpMatrix[1],i.vpMatrix[4],i.vpMatrix[5],i.vpMatrix[12],i.vpMatrix[13]);var Q=o.renderer.getConfig(),ne=Q.enableDirtyRectangleRenderingDebug;ne&&p.dispatchEvent(new Mn(Ja.DIRTY_RECTANGLE,{dirtyRect:{x:B,y:G,width:Y,height:K}}));var oe=i.searchDirtyObjects(_);oe.sort(function(ae,ce){return ae.sortable.renderOrder-ce.sortable.renderOrder}).forEach(function(ae){ae&&ae.isVisible()&&!ae.isCulled()&&i.renderDisplayObject(ae,x,i.context,ls(i,Er)[Er],r)}),x.restore(),i.renderQueue.forEach(function(ae){i.saveDirtyAABB(ae)}),i.renderQueue=[]}
120ls(i,Er)[Er].restoreStack.forEach(function(){x.restore()}),ls(i,Er)[Er].restoreStack=[]}),l.hooks.render.tap(e.tag,function(x){i.clearFullScreen||i.renderQueue.push(x)})}},{key:"clearRect",value:function(n,r,i,a,o,s){n.clearRect(r,i,a,o),s&&(n.fillStyle=s,n.fillRect(r,i,a,o))}},{key:"renderDisplayObjectOptimized",value:function(n,r,i,a,o){var s=n.nodeName,l=!1,c=!1,u=this.context.styleRendererFactory[s],f=this.pathGeneratorFactory[s],d=n.parsedStyle.clipPath;if(d){l=!a.prevObject||!X6(d.getWorldTransform(),a.prevObject.getWorldTransform()),l&&(this.applyWorldTransform(r,d),a.prevObject=null);var h=this.pathGeneratorFactory[d.nodeName];h&&(r.save(),c=!0,r.beginPath(),h(r,d.parsedStyle),r.closePath(),r.clip())}if(u){l=!a.prevObject||!X6(n.getWorldTransform(),a.prevObject.getWorldTransform()),l&&this.applyWorldTransform(r,n);var p=!a.prevObject;if(!p){var g=a.prevObject.nodeName;s===xe.TEXT?p=g!==xe.TEXT:s===xe.IMAGE?p=g!==xe.IMAGE:p=g===xe.TEXT||g===xe.IMAGE}u.applyStyleToContext(r,n,p,a),a.prevObject=n}f&&(r.beginPath(),f(r,n.parsedStyle),s!==xe.LINE&&s!==xe.PATH&&s!==xe.POLYLINE&&r.closePath()),u&&u.drawToContext(r,n,ls(this,Er)[Er],this,o),c&&r.restore(),n.renderable.dirty=!1}},{key:"renderDisplayObject",value:function(n,r,i,a,o){var s=n.nodeName,l=a.restoreStack[a.restoreStack.length-1];l&&!(n.compareDocumentPosition(l)&ar.DOCUMENT_POSITION_CONTAINS)&&(r.restore(),a.restoreStack.pop());var c=this.context.styleRendererFactory[s],u=this.pathGeneratorFactory[s],f=n.parsedStyle.clipPath;if(f){this.applyWorldTransform(r,f);var d=this.pathGeneratorFactory[f.nodeName];d&&(r.save(),a.restoreStack.push(n),r.beginPath(),d(r,f.parsedStyle),r.closePath(),r.clip())}c&&(this.applyWorldTransform(r,n),r.save(),this.applyAttributesToContext(r,n)),u&&(r.beginPath(),u(r,n.parsedStyle),s!==xe.LINE&&s!==xe.PATH&&s!==xe.POLYLINE&&r.closePath()),c&&(c.render(r,n.parsedStyle,n,i,this,o),r.restore()),n.renderable.dirty=!1}},{key:"applyAttributesToContext",value:function(n,r){var i=r.parsedStyle,a=i.stroke,o=i.fill,s=i.opacity,l=i.lineDash,c=i.lineDashOffset;l&&n.setLineDash(l),pt(c)||(n.lineDashOffset=c),pt(s)||(n.globalAlpha*=s),!pt(a)&&!Array.isArray(a)&&!a.isNone&&(n.strokeStyle=r.attributes.stroke),!pt(o)&&!Array.isArray(o)&&!o.isNone&&(n.fillStyle=r.attributes.fill)}},{key:"convertAABB2Rect",value:function(n){var r=n.getMin(),i=n.getMax(),a=Math.floor(r[0]),o=Math.floor(r[1]),s=Math.ceil(i[0]),l=Math.ceil(i[1]),c=s-a,u=l-o;return{x:a,y:o,width:c,height:u}}},{key:"mergeDirtyAABBs",value:function(n){var r=new Ar;return n.forEach(function(i){var a=i.getRenderBounds();r.add(a);var o=i.renderable.dirtyRenderBounds;o&&r.add(o)}),r}},{key:"searchDirtyObjects",value:function(n){var r=n.getMin(),i=St(r,2),a=i[0],o=i[1],s=n.getMax(),l=St(s,2),c=l[0],u=l[1],f=this.rBush.search({minX:a,minY:o,maxX:c,maxY:u});return f.map(function(d){var h=d.displayObject;return h})}},{key:"saveDirtyAABB",value:function(n){var r=n.renderable;r.dirtyRenderBounds||(r.dirtyRenderBounds=new Ar);var i=n.getRenderBounds();i&&r.dirtyRenderBounds.update(i.center,i.halfExtents)}},{key:"applyWorldTransform",value:function(n,r,i){i?(rd(this.tmpMat4,r.getLocalTransform()),Ii(this.tmpMat4,i,this.tmpMat4),Ii(this.tmpMat4,this.vpMatrix,this.tmpMat4)):(rd(this.tmpMat4,r.getWorldTransform()),Ii(this.tmpMat4,this.vpMatrix,this.tmpMat4)),n.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])}},{key:"safeMergeAABB",value:function(){for(var n=new Ar,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return i.forEach(function(o){n.add(o)}),n}}])}();_H.tag="CanvasRenderer";function Gm(e,t,n,r,i,a,o){var s,l;if(e.image.nodeName==="rect"){var c=e.image.parsedStyle,u=c.width,f=c.height;l=r.contextService.getDPR();var d=r.config.offscreenCanvas;s=a.offscreenCanvasCreator.getOrCreateCanvas(d),s.width=u*l,s.height=f*l;var h=a.offscreenCanvasCreator.getOrCreateContext(d),p={restoreStack:[],prevObject:null,currentContext:new Map};e.image.forEach(function(v){i.renderDisplayObject(v,h,r,p,a)}
120),p.restoreStack.forEach(function(){h.restore()})}var g=o.getOrCreatePatternSync(t,e,n,s,l,t.getGeometryBounds().min,function(){t.renderable.dirty=!0,r.renderingService.dirtify()});return g}function Um(e,t,n,r){var i;if(e.type===xc.LinearGradient||e.type===xc.RadialGradient){var a=t.getGeometryBounds(),o=a&&a.halfExtents[0]*2||1,s=a&&a.halfExtents[1]*2||1,l=a&&a.min||[0,0];i=r.getOrCreateGradient(Tt(Tt({type:e.type},e.value),{},{min:l,width:o,height:s}),n)}return i}var q5=["shadowBlur","shadowOffsetX","shadowOffsetY"],RT=["lineCap","lineJoin","miterLimit"],Ir={globalAlpha:1,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",filter:"none",globalCompositeOperation:"source-over",strokeStyle:"#000",strokeOpacity:1,lineWidth:1,lineDash:[],lineDashOffset:0,lineCap:"butt",lineJoin:"miter",miterLimit:10,fillStyle:"#000",fillOpacity:1},jT={};function ur(e,t,n,r){var i=r.has(t)?r.get(t):Ir[t];return i!==n&&(t==="lineDash"?e.setLineDash(n):e[t]=n,r.set(t,n)),i}var k$e=function(){function e(t){Pe(this,e),this.imagePool=t}return Te(e,[{key:"applyAttributesToContext",value:function(n,r){}},{key:"render",value:function(n,r,i,a,o,s){}},{key:"applyCommonStyleToContext",value:function(n,r,i,a){var o=i?jT:a.prevObject.parsedStyle,s=r.parsedStyle;(i||s.opacity!==o.opacity)&&ur(n,"globalAlpha",pt(s.opacity)?Ir.globalAlpha:s.opacity,a.currentContext),(i||s.blend!==o.blend)&&ur(n,"globalCompositeOperation",pt(s.blend)?Ir.globalCompositeOperation:s.blend,a.currentContext)}},{key:"applyStrokeFillStyleToContext",value:function(n,r,i,a){var o=i?jT:a.prevObject.parsedStyle,s=r.parsedStyle,l=s.lineWidth,c=l===void 0?Ir.lineWidth:l,u=s.fill&&!s.fill.isNone,f=s.stroke&&!s.stroke.isNone&&c>0;if(f){if(i||r.attributes.stroke!==a.prevObject.attributes.stroke){var d=!pt(s.stroke)&&!Array.isArray(s.stroke)&&!s.stroke.isNone?r.attributes.stroke:Ir.strokeStyle;ur(n,"strokeStyle",d,a.currentContext)}(i||s.lineWidth!==o.lineWidth)&&ur(n,"lineWidth",pt(s.lineWidth)?Ir.lineWidth:s.lineWidth,a.currentContext),(i||s.lineDash!==o.lineDash)&&ur(n,"lineDash",s.lineDash||Ir.lineDash,a.currentContext),(i||s.lineDashOffset!==o.lineDashOffset)&&ur(n,"lineDashOffset",pt(s.lineDashOffset)?Ir.lineDashOffset:s.lineDashOffset,a.currentContext);for(var h=0;h<RT.length;h++){var p=RT[h];(i||s[p]!==o[p])&&ur(n,p,pt(s[p])?Ir[p]:s[p],a.currentContext)}}if(u&&(i||r.attributes.fill!==a.prevObject.attributes.fill)){var g=!pt(s.fill)&&!Array.isArray(s.fill)&&!s.fill.isNone?r.attributes.fill:Ir.fillStyle;ur(n,"fillStyle",g,a.currentContext)}}},{key:"applyStyleToContext",value:function(n,r,i,a){var o=r.nodeName;this.applyCommonStyleToContext(n,r,i,a),o===xe.IMAGE||this.applyStrokeFillStyleToContext(n,r,i,a)}},{key:"applyShadowAndFilterStyleToContext",value:function(n,r,i,a){var o=r.parsedStyle;if(i){ur(n,"shadowColor",o.shadowColor.toString(),a.currentContext);for(var s=0;s<q5.length;s++){var l=q5[s];ur(n,l,o[l]||Ir[l],a.currentContext)}}o.filter&&o.filter.length&&ur(n,"filter",r.attributes.filter,a.currentContext)}},{key:"clearShadowAndFilterStyleForContext",value:function(n,r,i,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(r){ur(n,"shadowColor",Ir.shadowColor,a.currentContext);for(var s=0;s<q5.length;s++){var l=q5[s];ur(n,l,Ir[l],a.currentContext)}}if(i)if(r&&o){var c=n.filter;!pt(c)&&c.indexOf("drop-shadow")>-1&&ur(n,"filter",c.replace(/drop-shadow\([^)]*\)/,"").trim()||Ir.filter,a.currentContext)}else ur(n,"filter",Ir.filter,a.currentContext)}},{key:"fillToContext",value:function(n,r,i,a,o){var s=this,l=r.parsedStyle,c=l.fill,u=l.fillRule,f=null;if(Array.isArray(c)&&c.length>0)c.forEach(function(h){var p=ur(n,"fillStyle",Um(h,r,n,s.imagePool),i.currentContext);f=f??p,u?n.fill(u):n.fill()});else{if(nf(c)){var d=Gm(c,r,n,r.ownerDocument.defaultView.context,a,o,this.imagePool);d&&(n.fillStyle=d,f=!0)}u?n.fill(u):n.fill()}f!==null&&ur(n,"fillStyle",f,i.currentContext)}},{key:"strokeToContext",value:function(n,r,i,a,o){var s=this,l=r.parsedStyle.stroke,c=null;if(Array.isArray(l)&&l.length>0)l.forEach(function(d){var h=ur(n,"strokeStyle",Um(d,r,n,s.imagePool),i.currentContext);c=c??h,n.stroke()});else{if(nf(l)){var u=Gm(l,r,n,r.ownerDocument.defaultView.context,a,o,this.imagePool);if(u){var f=ur(n,"strokeStyle",u,i.currentContext);c=c??f}}n.stroke()}c!==null&&ur(n,"strokeStyle",c,i.currentContext)}},{key:"drawToContext",value:function(n,r,i,a,o){var s,l=r.nodeName,c=r.parsedStyle,u=c.opacity,f=u===void 0?Ir.globalAlpha:u,d=c.fillOpacity,h=d===void 0?Ir.fillOpacity:d,p=c.strokeOpacity,g=p===void 0?Ir.strokeOpacity:p,v=c.lineWidth,y=v===void 0?Ir.lineWidth:v,x=c.fill&&!c.fill.isNone,C=c.stroke&&!c.stroke.isNone&&y>0;if(!(!x&&!C)){var _=!pt(c.shadowColor)&&c.shadowBlur>0,S=c.shadowType==="inner",O=((s=c.fill)===null||s===void 0?void 0:s.alpha)===0,E=!!(c.filter&&c.filter.length),k=_&&C&&(l===xe.PATH||l===xe.LINE||l===xe.POLYLINE||O||S),$=null;if(x){k||this.applyShadowAndFilterStyleToContext(n,r,_,i);var T=f*h;$=ur(n,"globalAlpha",T,i.currentContext),this.fillToContext(n,r,i,a,o),k||this.clearShadowAndFilterStyleForContext(n,_,E,i)}if(C){var M=!1,R=f*g,N=ur(n,"globalAlpha",R,i.currentContext);if($=x?$:N,k&&(this.applyShadowAndFilterStyleToContext(n,r,_,i),M=!0,S)){var D=n.globalCompositeOperation;n.globalCompositeOperation="source-atop",this.strokeToContext(n,r,i,a,o),n.globalCompositeOperation=D,this.clearShadowAndFilterStyleForContext(n,_,E,i,!0)}this.strokeToContext(n,r,i,a,o),M&&this.clearShadowAndFilterStyleForContext(n,_,E,i)}$!==null&&ur(n,"globalAlpha",$,i.currentContext)}}}])}(),EC=function(e){function t(){return Pe(this,t),jt(this,t,arguments)}return Rt(t,e),Te(t,[{key:"render",value:function(r,i,a,o,s,l){var c=i.fill,u=i.fillRule,f=i.opacity,d=f===void 0?1:f,h=i.fillOpacity,p=h===void 0?1:h,g=i.stroke,v=i.strokeOpacity,y=v===void 0?1:v,x=i.lineWidth,C=x===void 0?1:x,_=i.lineCap,S=i.lineJoin,O=i.shadowType,E=i.shadowColor,k=i.shadowBlur,$=i.filter,T=i.miterLimit,M=c&&!c.isNone,R=g&&!g.isNone&&C>0,N=(c==null?void 0:c.alpha)===0,D=!!($&&$.length),F=!pt(E)&&k>0,V=a.nodeName,z=O==="inner",B=R&&F&&(V===xe.PATH||V===xe.LINE||V===xe.POLYLINE||N||z);M&&(r.globalAlpha=d*p,B||Ym(a,r,F),SH(r,a,c,u,o,s,l,this.imagePool),B||this.clearShadowAndFilter(r,D,F)),R&&(r.globalAlpha=d*y,r.lineWidth=C,pt(T)||(r.miterLimit=T),pt(_)||(r.lineCap=_),pt(S)||(r.lineJoin=S),B&&(z&&(r.globalCompositeOperation="source-atop"),Ym(a,r,!0),z&&(G7(r,a,g,o,s,l,this.imagePool),r.globalCompositeOperation=Ir.globalCompositeOperation,this.clearShadowAndFilter(r,D,!0))),G7(r,a,g,o,s,l,this.imagePool))}}
120,{key:"clearShadowAndFilter",value:function(r,i,a){if(a&&(r.shadowColor="transparent",r.shadowBlur=0),i){var o=r.filter;!pt(o)&&o.indexOf("drop-shadow")>-1&&(r.filter=o.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}}}])}(k$e);function Ym(e,t,n){var r=e.parsedStyle,i=r.filter,a=r.shadowColor,o=r.shadowBlur,s=r.shadowOffsetX,l=r.shadowOffsetY;i&&i.length&&(t.filter=e.style.filter),n&&(t.shadowColor=a.toString(),t.shadowBlur=o||0,t.shadowOffsetX=s||0,t.shadowOffsetY=l||0)}function SH(e,t,n,r,i,a,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1;Array.isArray(n)?n.forEach(function(c){e.fillStyle=Um(c,t,e,s),l||(r?e.fill(r):e.fill())}):(nf(n)&&(e.fillStyle=Gm(n,t,e,i,a,o,s)),l||(r?e.fill(r):e.fill()))}function G7(e,t,n,r,i,a,o){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1;Array.isArray(n)?n.forEach(function(l){e.strokeStyle=Um(l,t,e,o),s||e.stroke()}):(nf(n)&&(e.strokeStyle=Gm(n,t,e,r,i,a,o)),s||e.stroke())}function A$e(e,t){var n=St(e,4),r=n[0],i=n[1],a=n[2],o=n[3],s=St(t,4),l=s[0],c=s[1],u=s[2],f=s[3],d=Math.max(r,l),h=Math.max(i,c),p=Math.min(r+a,l+u),g=Math.min(i+o,c+f);return p<=d||g<=h?null:[d,h,p-d,g-h]}function $$e(e,t){var n=gr(qt(),[e[0],e[1],0],t),r=gr(qt(),[e[0]+e[2],e[1],0],t),i=gr(qt(),[e[0],e[1]+e[3],0],t),a=gr(qt(),[e[0]+e[2],e[1]+e[3],0],t);return[Math.min(n[0],r[0],i[0],a[0]),Math.min(n[1],r[1],i[1],a[1]),Math.max(n[0],r[0],i[0],a[0])-Math.min(n[0],r[0],i[0],a[0]),Math.max(n[1],r[1],i[1],a[1])-Math.min(n[1],r[1],i[1],a[1])]}var T$e=function(e){function t(){return Pe(this,t),jt(this,t,arguments)}return Rt(t,e),Te(t,[{key:"renderDownSampled",value:function(r,i,a,o){var s=o.src,l=o.imageCache;if(!l.downSampled){this.imagePool.createDownSampledImage(s,a).then(function(){a.ownerDocument&&(a.renderable.dirty=!0,a.ownerDocument.defaultView.context.renderingService.dirtify())}).catch(function(c){console.error(c)});return}r.drawImage(l.downSampled,Math.floor(o.drawRect[0]),Math.floor(o.drawRect[1]),Math.ceil(o.drawRect[2]),Math.ceil(o.drawRect[3]))}},{key:"renderTile",value:function(r,i,a,o){var s=o.src,l=o.imageCache,c=o.imageRect,u=o.drawRect,f=l.size,d=r.getTransform(),h=d.a,p=d.b,g=d.c,v=d.d,y=d.e,x=d.f;if(r.resetTransform(),!(l!=null&&l.gridSize)){this.imagePool.createImageTiles(s,[],function(){a.ownerDocument&&(a.renderable.dirty=!0,a.ownerDocument.defaultView.context.renderingService.dirtify())},a).catch(function(F){console.error(F)});return}
120for(var C=[f[0]/c[2],f[1]/c[3]],_=[l.tileSize[0]/C[0],l.tileSize[1]/C[1]],S=[Math.floor((u[0]-c[0])/_[0]),Math.ceil((u[0]+u[2]-c[0])/_[0])],O=S[0],E=S[1],k=[Math.floor((u[1]-c[1])/_[1]),Math.ceil((u[1]+u[3]-c[1])/_[1])],$=k[0],T=k[1],M=$;M<=T;M++)for(var R=O;R<=E;R++){var N=l.tiles[M][R];if(N){var D=[Math.floor(c[0]+N.tileX*_[0]),Math.floor(c[1]+N.tileY*_[1]),Math.ceil(_[0]),Math.ceil(_[1])];r.drawImage(N.data,D[0],D[1],D[2],D[3])}}r.setTransform(h,p,g,v,y,x)}},{key:"render",value:function(r,i,a){var o=i.x,s=o===void 0?0:o,l=i.y,c=l===void 0?0:l,u=i.width,f=i.height,d=i.src,h=i.shadowColor,p=i.shadowBlur,g=this.imagePool.getImageSync(d,a),v=g==null?void 0:g.img,y=u,x=f;if(v){y||(y=v.width),x||(x=v.height);var C=!pt(h)&&p>0;Ym(a,r,C);try{var _=a.ownerDocument.defaultView.getContextService().getDomElement(),S=_.width,O=_.height,E=r.getTransform(),k=E.a,$=E.b,T=E.c,M=E.d,R=E.e,N=E.f,D=JR(k,T,0,0,$,M,0,0,0,0,1,0,R,N,0,1),F=$$e([s,c,y,x],D),V=A$e([0,0,S,O],F);if(!V)return;if(!a.ownerDocument.defaultView.getConfig().enableLargeImageOptimization){t.renderFull(r,i,a,{image:v,drawRect:[s,c,y,x]});return}var z=F[2]/g.size[0];if(z<(g.downSamplingRate||.5)){this.renderDownSampled(r,i,a,{src:d,imageCache:g,drawRect:[s,c,y,x]});return}if(!OC.isSupportTile){t.renderFull(r,i,a,{image:v,drawRect:[s,c,y,x]});return}this.renderTile(r,i,a,{src:d,imageCache:g,imageRect:F,drawRect:V})}catch{}}}},{key:"drawToContext",value:function(r,i,a,o,s){this.render(r,i.parsedStyle,i)}}],[{key:"renderFull",value:function(r,i,a,o){r.drawImage(o.image,Math.floor(o.drawRect[0]),Math.floor(o.drawRect[1]),Math.ceil(o.drawRect[2]),Math.ceil(o.drawRect[3]))}}])}(EC),P$e=function(e){function t(){return Pe(this,t),jt(this,t,arguments)}return Rt(t,e),Te(t,[{key:"render",value:function(r,i,a,o,s,l){a.getBounds();var c=i.lineWidth,u=c===void 0?1:c,f=i.textAlign,d=f===void 0?"start":f,h=i.textBaseline,p=h===void 0?"alphabetic":h,g=i.lineJoin,v=g===void 0?"miter":g,y=i.miterLimit,x=y===void 0?10:y,C=i.letterSpacing,_=C===void 0?0:C,S=i.stroke,O=i.fill,E=i.fillRule,k=i.fillOpacity,$=k===void 0?1:k,T=i.strokeOpacity,M=T===void 0?1:T,R=i.opacity,N=R===void 0?1:R,D=i.metrics,F=i.x,V=F===void 0?0:F,z=i.y,B=z===void 0?0:z,G=i.dx,Y=i.dy,K=i.shadowColor,Q=i.shadowBlur,ne=D.font,oe=D.lines,ae=D.height,ce=D.lineHeight,fe=D.lineMetrics;r.font=ne,r.lineWidth=u,r.textAlign=d==="middle"?"center":d;var le=p;le==="alphabetic"&&(le="bottom"),r.lineJoin=v,pt(x)||(r.miterLimit=x);var be=B;p==="middle"?be+=-ae/2-ce/2:p==="bottom"||p==="alphabetic"||p==="ideographic"?be+=-ae:(p==="top"||p==="hanging")&&(be+=-ce);var Ce=V+(G||0);be+=Y||0,oe.length===1&&(le==="bottom"?(le="middle",be-=.5*ae):le==="top"&&(le="middle",be+=.5*ae)),r.textBaseline=le;var $e=!pt(K)&&Q>0;Ym(a,r,$e);for(var Me=0;Me<oe.length;Me++){var Le=u/2+Ce;be+=ce,!pt(S)&&!S.isNone&&u&&this.drawLetterSpacing(r,a,oe[Me],fe[Me],d,Le,be,_,O,E,$,S,M,N,!0,o,s,l),pt(O)||this.drawLetterSpacing(r,a,oe[Me],fe[Me],d,Le,be,_,O,E,$,S,M,N,!1,o,s,l)}}},{key:"drawLetterSpacing",value:function(r,i,a,o,s,l,c,u,f,d,h,p,g,v,y,x,C,_){if(u===0){y?this.strokeText(r,i,a,l,c,p,g,x,C,_):this.fillText(r,i,a,l,c,f,d,h,v,x,C,_);return}var S=r.textAlign;r.textAlign="left";var O=l;s==="center"||s==="middle"?O=l-o.width/2:(s==="right"||s==="end")&&(O=l-o.width);for(var E=Array.from(a),k=r.measureText(a).width,$=0,T=0;T<E.length;++T){var M=E[T];y?this.strokeText(r,i,M,O,c,p,g,x,C,_):this.fillText(r,i,M,O,c,f,d,h,v,x,C,_),$=r.measureText(a.substring(T+1)).width,O+=k-$+u,k=$}r.textAlign=S}},{key:"fillText",value:function(r,i,a,o,s,l,c,u,f,d,h,p){SH(r,i,l,c,d,h,p,this.imagePool,!0);var g,v=!pt(u)&&u!==1;v&&(g=r.globalAlpha,r.globalAlpha=u*f),r.fillText(a,o,s),v&&(r.globalAlpha=g)}},{key:"strokeText",value:function(r,i,a,o,s,l,c,u,f,d){G7(r,i,l,u,f,d,this.imagePool,!0);var h,p=!pt(c)&&c!==1;p&&(h=r.globalAlpha,r.globalAlpha=c),r.strokeText(a,o,s),p&&(r.globalAlpha=h)}},{key:"drawToContext",value:function(r,i,a,o,s){this.render(r,i.parsedStyle,i,i.ownerDocument.defaultView.context,o,s)}}])}(EC),M$e=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Pe(this,t),n=jt(this,t),n.name="canvas-renderer",n.options=r,n}return Rt(t,e),Te(t,[{key:"init",value:function(){var r,i=Tt({dirtyObjectNumThreshold:500,dirtyObjectRatioThreshold:.8}
120,this.options),a=this.context.imagePool,o=new EC(a),s=(r={},Je(Je(Je(Je(Je(Je(Je(Je(Je(Je(r,xe.CIRCLE,o),xe.ELLIPSE,o),xe.RECT,o),xe.IMAGE,new T$e(a)),xe.TEXT,new P$e(a)),xe.LINE,o),xe.POLYLINE,o),xe.POLYGON,o),xe.PATH,o),xe.GROUP,void 0),Je(Je(Je(r,xe.HTML,void 0),xe.MESH,void 0),xe.FRAGMENT,void 0));this.context.defaultStyleRendererFactory=s,this.context.styleRendererFactory=s,this.addRenderingPlugin(new _H(i))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins(),delete this.context.defaultStyleRendererFactory,delete this.context.styleRendererFactory}}])}(Bc);/*!
121 * @antv/g-plugin-dom-interaction
122 * @description A G plugin
123 * @version 2.1.24
124 * @date 5/9/2025, 8:20:12 AM
125 * @author AntVis
126 * @docs https://g.antv.antgroup.com/
127 */var OH=function(){function e(){Pe(this,e)}return Te(e,[{key:"apply",value:function(n,r){var i=this,a=n.renderingService,o=n.renderingContext,s=n.config;this.context=n;var l=o.root.ownerDocument.defaultView,c=function(k){a.hooks.pointerMove.call(k)},u=function(k){a.hooks.pointerUp.call(k)},f=function(k){a.hooks.pointerDown.call(k)},d=function(k){a.hooks.pointerOver.call(k)},h=function(k){a.hooks.pointerOut.call(k)},p=function(k){a.hooks.pointerCancel.call(k)},g=function(k){a.hooks.pointerWheel.call(k)},v=function(k){a.hooks.click.call(k)},y=function(k){r.globalThis.document.addEventListener("pointermove",c,!0),k.addEventListener("pointerdown",f,!0),k.addEventListener("pointerleave",h,!0),k.addEventListener("pointerover",d,!0),r.globalThis.addEventListener("pointerup",u,!0),r.globalThis.addEventListener("pointercancel",p,!0)},x=function(k){k.addEventListener("touchstart",f,!0),k.addEventListener("touchend",u,!0),k.addEventListener("touchmove",c,!0),k.addEventListener("touchcancel",p,!0)},C=function(k){r.globalThis.document.addEventListener("mousemove",c,!0),k.addEventListener("mousedown",f,!0),k.addEventListener("mouseout",h,!0),k.addEventListener("mouseover",d,!0),r.globalThis.addEventListener("mouseup",u,!0)},_=function(k){r.globalThis.document.removeEventListener("pointermove",c,!0),k.removeEventListener("pointerdown",f,!0),k.removeEventListener("pointerleave",h,!0),k.removeEventListener("pointerover",d,!0),r.globalThis.removeEventListener("pointerup",u,!0),r.globalThis.removeEventListener("pointercancel",p,!0)},S=function(k){k.removeEventListener("touchstart",f,!0),k.removeEventListener("touchend",u,!0),k.removeEventListener("touchmove",c,!0),k.removeEventListener("touchcancel",p,!0)},O=function(k){r.globalThis.document.removeEventListener("mousemove",c,!0),k.removeEventListener("mousedown",f,!0),k.removeEventListener("mouseout",h,!0),k.removeEventListener("mouseover",d,!0),r.globalThis.removeEventListener("mouseup",u,!0)};a.hooks.init.tap(e.tag,function(){var E=i.context.contextService.getDomElement();r.globalThis.navigator.msPointerEnabled?(E.style.msContentZooming="none",E.style.msTouchAction="none"):l.supportsPointerEvents&&(E.style.touchAction="none"),l.supportsPointerEvents?y(E):C(E),l.supportsTouchEvents&&x(E),s.useNativeClickEvent&&E.addEventListener("click",v,!0),E.addEventListener("wheel",g,{passive:!0,capture:!0})}),a.hooks.destroy.tap(e.tag,function(){var E=i.context.contextService.getDomElement();r.globalThis.navigator.msPointerEnabled?(E.style.msContentZooming="",E.style.msTouchAction=""):l.supportsPointerEvents&&(E.style.touchAction=""),l.supportsPointerEvents?_(E):O(E),l.supportsTouchEvents&&S(E),s.useNativeClickEvent&&E.removeEventListener("click",v,!0),E.removeEventListener("wheel",g,!0)})}}])}();OH.tag="DOMInteraction";var N$e=function(e){function t(){var n;Pe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=jt(this,t,[].concat(i)),n.name="dom-interaction",n}return Rt(t,e),Te(t,[{key:"init",value:function(){this.addRenderingPlugin(new OH)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])}(Bc);/*!
128 * @antv/g-plugin-html-renderer
129 * @description A G plugin for rendering HTML
130 * @version 2.1.24
131 * @date 5/9/2025, 8:20:22 AM
132 * @author AntVis
133 * @docs https://g.antv.antgroup.com/
134 */var I$e="g-canvas-camera",EH=function(){function e(){Pe(this,e),this.displayObjectHTMLElementMap=new WeakMap}return Te(e,[{key:"joinTransformMatrix",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0,0];return"matrix(".concat([n[0],n[1],n[4],n[5],n[12]+r[0],n[13]+r[1]].join(","),")")}},{key:"apply",value:function(n,r){var i=this,a=n.camera,o=n.renderingContext,s=n.renderingService;this.context=n;var l=o.root.ownerDocument.defaultView,c=l.context.eventService.nativeHTMLMap,u=function(y,x){x.style.transform=i.joinTransformMatrix(y.getWorldTransform(),y.getOrigin())},f=function(y){var x=y.target;if(x.nodeName===xe.HTML){i.$camera||(i.$camera=i.createCamera(a));var C=i.getOrCreateEl(x);
vendor: 11,417 bytes, lines 134-148
134i.$camera.appendChild(C),Object.keys(x.attributes).forEach(function(_){i.updateAttribute(_,x)}),u(x,C),c.set(C,x)}},d=function(y){var x=y.target;if(x.nodeName===xe.HTML&&i.$camera){var C=i.getOrCreateEl(x);C&&(C.remove(),c.delete(C))}},h=function(y){var x=y.target;if(x.nodeName===xe.HTML){var C=y.attrName;i.updateAttribute(C,x)}},p=function(y){var x=y.target,C=x.nodeName===xe.FRAGMENT?x.childNodes:[x];C.forEach(function(_){if(_.nodeName===xe.HTML){var S=i.getOrCreateEl(_);u(_,S)}})},g=function(){if(i.$camera){var y=i.context.config,x=y.width,C=y.height;i.$camera.parentElement.style.width="".concat(x||0,"px"),i.$camera.parentElement.style.height="".concat(C||0,"px")}};s.hooks.init.tap(e.tag,function(){l.addEventListener(Ja.RESIZE,g),l.addEventListener(Ft.MOUNTED,f),l.addEventListener(Ft.UNMOUNTED,d),l.addEventListener(Ft.ATTR_MODIFIED,h),l.addEventListener(Ft.BOUNDS_CHANGED,p)}),s.hooks.endFrame.tap(e.tag,function(){i.$camera&&o.renderReasons.has(W0.CAMERA_CHANGED)&&(i.$camera.style.transform=i.joinTransformMatrix(a.getOrthoMatrix()))}),s.hooks.destroy.tap(e.tag,function(){i.$camera&&i.$camera.remove(),l.removeEventListener(Ja.RESIZE,g),l.removeEventListener(Ft.MOUNTED,f),l.removeEventListener(Ft.UNMOUNTED,d),l.removeEventListener(Ft.ATTR_MODIFIED,h),l.removeEventListener(Ft.BOUNDS_CHANGED,p)})}},{key:"createCamera",value:function(n){var r=this.context.config,i=r.document,a=r.width,o=r.height,s=this.context.contextService.getDomElement(),l=s.parentNode;if(l){var c=I$e,u=l.querySelector("#".concat(c));if(!u){var f=(i||document).createElement("div");f.style.overflow="hidden",f.style.pointerEvents="none",f.style.position="absolute",f.style.left="0px",f.style.top="0px",f.style.width="".concat(a||0,"px"),f.style.height="".concat(o||0,"px");var d=(i||document).createElement("div");u=d,d.id=c,d.style.position="absolute",d.style.left="".concat(s.offsetLeft||0,"px"),d.style.top="".concat(s.offsetTop||0,"px"),d.style.transformOrigin="left top",d.style.transform=this.joinTransformMatrix(n.getOrthoMatrix()),d.style.pointerEvents="none",d.style.width="100%",d.style.height="100%",f.appendChild(d),l.appendChild(f)}return u}return null}},{key:"getOrCreateEl",value:function(n){var r=this.context.config.document,i=this.displayObjectHTMLElementMap.get(n);return i||(i=(r||document).createElement("div"),n.parsedStyle.$el=i,this.displayObjectHTMLElementMap.set(n,i),n.id&&(i.id=n.id),n.name&&i.setAttribute("name",n.name),n.className&&(i.className=n.className),i.style.position="absolute",i.style["will-change"]="transform",i.style.transform=this.joinTransformMatrix(n.getWorldTransform(),n.getOrigin())),i}},{key:"updateAttribute",value:function(n,r){var i=this.getOrCreateEl(r);switch(n){case"innerHTML":var a=r.parsedStyle.innerHTML;nr(a)?i.innerHTML=a:(i.innerHTML="",i.appendChild(a));break;case"x":i.style.left="".concat(r.parsedStyle.x,"px");break;case"y":i.style.top="".concat(r.parsedStyle.y,"px");break;case"transformOrigin":var o=r.parsedStyle.transformOrigin;i.style["transform-origin"]="".concat(o[0].buildCSSText(null,null,"")," ").concat(o[1].buildCSSText(null,null,""));break;case"width":var s=r.parsedStyle.width;i.style.width=Jn(s)?"".concat(s,"px"):s.toString();break;case"height":var l=r.parsedStyle.height;i.style.height=Jn(l)?"".concat(l,"px"):l.toString();break;case"zIndex":var c=r.parsedStyle.zIndex;i.style["z-index"]="".concat(c);break;case"visibility":var u=r.parsedStyle.visibility;i.style.visibility=u;break;case"pointerEvents":var f=r.parsedStyle.pointerEvents,d=f===void 0?"auto":f;i.style.pointerEvents=d;break;case"opacity":var h=r.parsedStyle.opacity;i.style.opacity="".concat(h);break;case"fill":var p=r.parsedStyle.fill,g="";km(p)?p.isNone?g="transparent":g=r.getAttribute("fill"):Array.isArray(p)?g=r.getAttribute("fill"):nf(p),i.style.background=g;break;case"stroke":var v=r.parsedStyle.stroke,y="";km(v)?v.isNone?y="transparent":y=r.getAttribute("stroke"):Array.isArray(v)?y=r.getAttribute("stroke"):nf(v),i.style["border-color"]=y,i.style["border-style"]="solid";break;case"lineWidth":var x=r.parsedStyle.lineWidth;i.style["border-width"]="".concat(x||0,"px");break;case"lineDash":i.style["border-style"]="dashed";break;case"filter":var C=r.style.filter;i.style.filter=C;break;default:!pt(r.style[n])&&r.style[n]!==""&&(i.style[n]=r.style[n])}}}])}();EH.tag="HTMLRendering";var L$e=function(e){function t(){var n;Pe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=jt(this,t,[].concat(i)),n.name="html-renderer",n}return Rt(t,e),Te(t,[{key:"init",value:function(){this.addRenderingPlugin(new EH)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])}(Bc);/*!
135 * @antv/g-canvas
136 * @description A renderer implemented by Canvas 2D API
137 * @version 2.0.44
138 * @date 5/30/2025, 2:57:07 AM
139 * @author AntVis
140 * @docs https://g.antv.antgroup.com/
141 */var R$e=function(){function e(t){Pe(this,e),this.renderingContext=t.renderingContext,this.canvasConfig=t.config}return Te(e,[{key:"init",value:function(){var n=this.canvasConfig,r=n.container,i=n.canvas;if(i)this.$canvas=i,r&&i.parentElement!==r&&r.appendChild(i),this.$container=i.parentElement,this.canvasConfig.container=this.$container;else if(r&&(this.$container=nr(r)?document.getElementById(r):r,this.$container)){var a=document.createElement("canvas");this.$container.appendChild(a),this.$container.style.position||(this.$container.style.position="relative"),this.$canvas=a}this.context=this.$canvas.getContext("2d"),this.resize(this.canvasConfig.width,this.canvasConfig.height)}},{key:"getContext",value:function(){return this.context}},{key:"getDomElement",value:function(){return this.$canvas}},{key:"getDPR",value:function(){return this.dpr}},{key:"getBoundingClientRect",value:function(){if(this.$canvas.getBoundingClientRect)return this.$canvas.getBoundingClientRect()}},{key:"destroy",value:function(){this.$container&&this.$canvas&&this.$canvas.parentNode&&this.$container.removeChild(this.$canvas)}},{key:"resize",value:function(n,r){var i=this.canvasConfig.devicePixelRatio;this.dpr=i,this.$canvas&&(this.$canvas.width=this.dpr*n,this.$canvas.height=this.dpr*r,c8e(this.$canvas,n,r)),this.renderingContext.renderReasons.add(W0.CAMERA_CHANGED)}},{key:"applyCursorStyle",value:function(n){this.$container&&this.$container.style&&(this.$container.style.cursor=n)}},{key:"toDataURL",value:function(){var t=Ac(Mi().mark(function r(){var i,a,o,s=arguments;return Mi().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return i=s.length>0&&s[0]!==void 0?s[0]:{},a=i.type,o=i.encoderOptions,c.abrupt("return",this.context.canvas.toDataURL(a,o));case 3:case"end":return c.stop()}},r,this)}));function n(){return t.apply(this,arguments)}return n}()}])}(),j$e=function(e){function t(){var n;Pe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=jt(this,t,[].concat(i)),n.name="canvas-context-register",n}return Rt(t,e),Te(t,[{key:"init",value:function(){this.context.ContextService=R$e}},{key:"destroy",value:function(){delete this.context.ContextService}}])}(Bc),kH=function(e){function t(n){var r;return Pe(this,t),r=jt(this,t,[n]),r.registerPlugin(new j$e),r.registerPlugin(new E$e),r.registerPlugin(new r$e),r.registerPlugin(new M$e),r.registerPlugin(new N$e),r.registerPlugin(new w$e),r.registerPlugin(new L$e),r}return Rt(t,e),Te(t)}(i6e);/*!
142 * @antv/g-plugin-dragndrop
143 * @description A G plugin for Drag n Drop implemented with PointerEvents
144 * @version 2.0.35
145 * @date 5/9/2025, 8:20:14 AM
146 * @author AntVis
147 * @docs https://g.antv.antgroup.com/
148 */var AH=function(){function e(t){Pe(this,e),this.dragndropPluginOptions=t}return Te(e,[{key:"apply",value:function(n){var r=this,i=n.renderingService,a=n.renderingContext,o=a.root.ownerDocument,s=o.defaultView,l=function(u){var f=u.target,d=f===o,h=d&&r.dragndropPluginOptions.isDocumentDraggable?o:f.closest&&f.closest("[draggable=true]");if(h){var p=!1,g=u.timeStamp,v=[u.clientX,u.clientY],y=null,x=[u.clientX,u.clientY],C=function(){var S=Ac(Mi().mark(function O(E){var k,$,T,M,R,N;return Mi().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(p){F.next=8;break}if(k=E.timeStamp-g,$=sa([E.clientX,E.clientY],v),!(k<=r.dragndropPluginOptions.dragstartTimeThreshold||$<=r.dragndropPluginOptions.dragstartDistanceThreshold)){F.next=5;break}return F.abrupt("return");case 5:E.type="dragstart",h.dispatchEvent(E),p=!0;case 8:if(E.type="drag",E.dx=E.clientX-x[0],E.dy=E.clientY-x[1],h.dispatchEvent(E),x=[E.clientX,E.clientY],d){F.next=21;break}return T=r.dragndropPluginOptions.overlap==="pointer"?[E.canvasX,E.canvasY]:f.getBounds().center,F.next=17,o.elementsFromPoint(T[0],T[1]);case 17:M=F.sent,R=M[M.indexOf(f)+1],N=(R==null?void 0:R.closest("[droppable=true]"))||(r.dragndropPluginOptions.isDocumentDroppable?o:null),y!==N&&(y&&(E.type="dragleave",E.target=y,y.dispatchEvent(E)),N&&(E.type="dragenter",E.target=N,N.dispatchEvent(E)),y=N,y&&(E.type="dragover",E.target=y,y.dispatchEvent(E)));case 21:case"end":return F.stop()}},O)}));return function(E){return S.apply(this,arguments)}}();s.addEventListener("pointermove",C);var _=function(O){if(p){O.detail={preventClick:!0};var E=O.clone();y&&(E.type="drop",E.target=y,y.dispatchEvent(E)),E.type="dragend",h.dispatchEvent(E),p=!1}s.removeEventListener("pointermove",C)};f.addEventListener("pointerup",_,{once:!0}),f.addEventListener("pointerupoutside",_,{once:!0})}};i.hooks.init.tap(e.tag,function(){s.addEventListener("pointerdown",l)}),i.hooks.destroy.tap(e.tag,function(){s.removeEventListener("pointerdown",l)})}}])}();AH.tag="Dragndrop";var $H=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Pe(this,t),n=jt(this,t),n.name="dragndrop",n.options=r,n}return Rt(t,e),Te(t,[{key:"init",value:function(){this.addRenderingPlugin(new AH(Tt({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}},{key:"setOptions",value:function(r){Object.assign(this.plugins[0].dragndropPluginOptions,r)}}])}(Bc),D$e="*",kC=function(){function e(){this._events={}}return e.prototype.on=function(t,n,r){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:n,once:!!r}),this},e.prototype.once=function(t,n){return this.on(t,n,!0)},e.prototype.emit=function(t){for(var n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var a=this._events[t]||[],o=this._events[D$e]||[],s=function(l){for(var c=l.length,u=0;u<c;u++)if(l[u]){var f=l[u],d=f.callback,h=f.once;h&&(l.splice(u,1),l.length===0&&delete n._events[t],c--,u--),d.apply(n,r)}};s(a),s(o)},e.prototype.off=function(t,n){if(!t)this._events={};else if(!n)delete this._events[t];else{for(var r=this._events[t]||[],i=r.length,a=0;a<i;a++)r[a].callback===n&&(r.splice(a,1),i--,a--);r.length===0&&delete this._events[t]}return this},e.prototype.getEvents=function(){return this._events},e}();const xn={BEFORE_RENDER:"beforerender",AFTER_RENDER:"afterrender",BEFORE_PAINT:"beforepaint",AFTER_PAINT:"afterpaint",BEFORE_CLEAR:"beforeclear",AFTER_CLEAR:"afterclear",BEFORE_DESTROY:"beforedestroy",AFTER_DESTROY:"afterdestroy",BEFORE_CHANGE_SIZE:"beforechangesize",AFTER_CHANGE_SIZE:"afterchangesize",POINTER_TAP:"pointertap",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_OVER:"pointerover",POINTER_OUT:"pointerout",POINTER_MO
vendor: 9,056 bytes, line 148
148VE:"pointermove",POINTER_ENTER:"pointerenter",POINTER_LEAVE:"pointerleave",POINTER_UPOUTSIDE:"pointerupoutside",DRAG_START:"dragstart",DRAG:"drag",DRAG_END:"dragend",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"DROP",CLICK:"click",DBLCLICK:"dblclick"},F$e={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,max:Math.max,min:Math.min,round:Math.round,sqrt:Math.sqrt,pow:Math.pow};class Rr extends Error{constructor(t,n,r){super(t),this.position=n,this.token=r,this.name="ExpressionError"}}var kt;(function(e){e[e.STRING=0]="STRING",e[e.NUMBER=1]="NUMBER",e[e.BOOLEAN=2]="BOOLEAN",e[e.NULL=3]="NULL",e[e.IDENTIFIER=4]="IDENTIFIER",e[e.OPERATOR=5]="OPERATOR",e[e.FUNCTION=6]="FUNCTION",e[e.DOT=7]="DOT",e[e.BRACKET_LEFT=8]="BRACKET_LEFT",e[e.BRACKET_RIGHT=9]="BRACKET_RIGHT",e[e.PAREN_LEFT=10]="PAREN_LEFT",e[e.PAREN_RIGHT=11]="PAREN_RIGHT",e[e.COMMA=12]="COMMA",e[e.QUESTION=13]="QUESTION",e[e.COLON=14]="COLON",e[e.DOLLAR=15]="DOLLAR"})(kt||(kt={}));const B$e=new Set([32,9,10,13]),z$e=new Set([43,45,42,47,37,33,38,124,61,60,62]),V$e=new Map([["true",kt.BOOLEAN],["false",kt.BOOLEAN],["null",kt.NULL]]),u4=new Map([["===",!0],["!==",!0],["<=",!0],[">=",!0],["&&",!0],["||",!0],["+",!0],["-",!0],["*",!0],["/",!0],["%",!0],["!",!0],["<",!0],[">",!0]]),W$e=new Map([[46,kt.DOT],[91,kt.BRACKET_LEFT],[93,kt.BRACKET_RIGHT],[40,kt.PAREN_LEFT],[41,kt.PAREN_RIGHT],[44,kt.COMMA],[63,kt.QUESTION],[58,kt.COLON],[36,kt.DOLLAR]]),TH=new Map;for(const[e,t]of W$e.entries())TH.set(e,{type:t,value:String.fromCharCode(e)});function Y1(e){return e>=48&&e<=57}function U7(e){return e>=97&&e<=122||e>=65&&e<=90||e===95}function DT(e){return U7(e)||Y1(e)}function H$e(e){return z$e.has(e)}var dr;(function(e){e[e.Program=0]="Program",e[e.Literal=1]="Literal",e[e.Identifier=2]="Identifier",e[e.MemberExpression=3]="MemberExpression",e[e.CallExpression=4]="CallExpression",e[e.BinaryExpression=5]="BinaryExpression",e[e.UnaryExpression=6]="UnaryExpression",e[e.ConditionalExpression=7]="ConditionalExpression"})(dr||(dr={}));const G$e=new Map([["||",2],["&&",3],["===",4],["!==",4],[">",5],[">=",5],["<",5],["<=",5],["+",6],["-",6],["*",7],["/",7],["%",7],["!",8]]),U$e={type:dr.Literal,value:null},Y$e={type:dr.Literal,value:!0},X$e={type:dr.Literal,value:!1},q$e=e=>{let t=0;const n=e.length,r=()=>t>=n?null:e[t],i=()=>e[t++],a=f=>{const d=r();return d!==null&&d.type===f},o=f=>f.type===kt.OPERATOR?G$e.get(f.value)||-1:f.type===kt.DOT||f.type===kt.BRACKET_LEFT?9:f.type===kt.QUESTION?1:-1,s=f=>{let d,h;if(i().type===kt.DOT){if(!a(kt.IDENTIFIER)){const g=r();throw new Rr("Expected property name",t,g?g.value:"<end of input>")}const p=i();d={type:dr.Identifier,name:p.value},h=!1}else{if(d=c(0),!a(kt.BRACKET_RIGHT)){const p=r();throw new Rr("Expected closing bracket",t,p?p.value:"<end of input>")}i(),h=!0}return{type:dr.MemberExpression,object:f,property:d,computed:h}},l=()=>{const f=r();if(!f)throw new Rr("Unexpected end of input",t,"<end of input>");if(f.type===kt.OPERATOR&&(f.value==="!"||f.value==="-")){i();const d=l();return{type:dr.UnaryExpression,operator:f.value,argument:d,prefix:!0}}switch(f.type){case kt.NUMBER:return i(),{type:dr.Literal,value:Number(f.value)};case kt.STRING:return i(),{type:dr.Literal,value:f.value};case kt.BOOLEAN:return i(),f.value==="true"?Y$e:X$e;case kt.NULL:return i(),U$e;case kt.IDENTIFIER:return i(),{type:dr.Identifier,name:f.value};case kt.FUNCTION:return(()=>{const d=i(),h=[];if(!a(kt.PAREN_LEFT)){const p=r();throw new Rr("Expected opening parenthesis after function name",t,p?p.value:"<end of input>")}for(i();;){if(a(kt.PAREN_RIGHT)){i();break}if(!r()){const g=r();throw new Rr("Expected closing parenthesis",t,g?g.value:"<end of input>")}if(h.length>0){if(!a(kt.COMMA)){const g=r();throw new Rr("Expected comma between function arguments",t,g?g.value:"<end of input>")}i()}const p=c(0);h.push(p)}return{type:dr.CallExpression,callee:{type:dr.Identifier,name:d.value},arguments:h}})();case kt.PAREN_LEFT:{i();const d=c(0);if(!a(kt.PAREN_RIGHT)){const h=r();throw new Rr("Expected closing parenthesis",t,h?h.value:"<end of input>")}return i(),d}default:throw new Rr(`Unexpected token: ${f.type}`,t,f.value)}},c=(f=0)=>{let d=l();for(;t<n;){const h=e[t],p=o(h);if(p<=f)break;if(h.type!==kt.QUESTION)if(h.type!==kt.OPERATOR){if(h.type!==kt.DOT&&h.type!==kt.BRACKET_LEFT)break;d=s(d)}else{i();const g=c(p);d={type:dr.BinaryExpression,operator:h.value,left:d,right:g}}else{i();const g=c(0);if(!a(kt.COLON)){const y=r();throw new Rr("Expected : in conditional expression",t,y?y.value:"<end of input>")}i();const v=c(0);d={type:dr.ConditionalExpression,test:d,consequent:g,alternate:v}}}return d},u=c();return{type:dr.Program,body:u}},Z$e=(e,t,n)=>{let r=t;n&&(r={...t,context:{...t.context,...n}});const i=a=>{switch(a.type){case dr.Literal:return(o=>o.value)(a);case dr.Identifier:return(o=>{if(!(o.name in r.context))throw new Rr(`Undefined variable: ${o.name}`);return r.context[o.name]})(a);case dr.MemberExpression:return(o=>{const s=i(o.object);if(s==null)throw new Rr("Cannot access property of null or undefined");return s[o.computed?i(o.property):o.property.name]})(a);case dr.CallExpression:return(o=>{const s=r.functions[o.callee.name];if(!s)throw new Rr(`Undefined function: ${o.callee.name}`);return s(...o.arguments.map(l=>i(l)))})(a);case dr.BinaryExpression:return(o=>{if(o.operator==="&&"){const c=i(o.left);return c&&i(o.right)}if(o.operator==="||")return i(o.left)||i(o.right);const s=i(o.left),l=i(o.right);switch(o.operator){case"+":return s+l;case"-":return s-l;case"*":return s*l;case"/":return s/l;case"%":return s%l;case"===":return s===l;case"!==":return s!==l;case">":return s>l;case">=":return s>=l;case"<":return s<l;case"<=":return s<=l;default:throw new Rr(`Unknown operator: ${o.operator}`)}})(a);case dr.UnaryExpression:return(o=>{const s=i(o.argument);if(o.prefix)switch(o.operator){case"!":return!s;case"-":if(typeof s!="number")throw new Rr(`Cannot apply unary - to non-number: ${s}`);return-s;default:throw new Rr(`Unknown operator: ${o.operator}`)}throw new Rr(`Postfix operators are not supported: ${o.operator}`)})(a);case dr.ConditionalExpression:return(o=>{const s=i(o.test);return i(s?o.consequent:o.alternate)})(a);default:throw new Rr(`Evaluation error: Unsupported node type: ${a.type}`)}};return i(e.body)};function K$e(e){const t=(i=>{const a=i,o=a.length,s=new Array(Math.ceil(o/3));let l=0,c=0;function u(v){const y=c+1;c++;let x="",C=!1;for(;c<o;){const _=a.charCodeAt(c);if(_===v)return C||(x=a.substring(y,c)),c++,{type:kt.STRING,value:x};_===92?(C||(x=a.substring(y,c),C=!0),c++,x+=a[c]):C&&(x+=a[c]),c++}throw new Rr(`Unterminated string starting with ${String.fromCharCode(v)}`,c,a.substring(Math.max(0,c-10),c))}function f(){const v=c;for(a.charCodeAt(c)===45&&c++;c<o&&Y1(a.charCodeAt(c));)c++;if(c<o&&a.charCodeAt(c)===46)for(c++;c<o&&Y1(a.charCodeAt(c));)c++;const y=a.slice(v,c);return{type:kt.NUMBER,value:y}}function d(){c++;const v=c;if(c<o&&U7(a.charCodeAt(c)))for(c++;c<o&&DT(a.charCodeAt(c));)c++;const y=a.slice(v,c);return{type:kt.FUNCTION,value:y}}function h(){const v=c++;for(;c<o&&DT(a.charCodeAt(c));)c++;const y=a.slice(v,c),x=V$e.get(y);return x?{type:x,value:y}:{type:kt.IDENTIFIER,value:y}}function p(){if(c+2<o){const y=a.substring(c,c+3);if(u4.has(y))return c+=3,{type:kt.OPERATOR,value:y}}if(c+1<o){const y=a.substring(c,c+2);if(u4.has(y))return c+=2,{type:kt.OPERATOR,value:y}}const v=a[c];if(u4.has(v))return c++,{type:kt.OPERATOR,value:v};throw new Rr(`Unknown operator at position ${c}: ${a.substring(c,c+1)}`,c,a.substring(Math.max(0,c-10),c))}for(;c<o;){const v=a.charCodeAt(c);if(g=v,B$e.has(g)){c++;continue}const y=TH.get(v);if(y)s[l++]=y,c++;else if(v!==34&&v!==39)if(Y1(v)||v===45&&c+1<o&&Y1(a.charCodeAt(c+1)))s[l++]=f();else if(v!==64)if(U7(v))s[l++]=h();else{if(!H$e(v))throw new Rr(`Unexpected character: ${a[c]}`,c,a.substring(Math.max(0,c-10),c));s[l++]=p()}else s[l++]=d();else s[l++]=u(v)}var g;return l===s.length?s:s.slice(0,l)})(e),n=q$e(t),r=((i={},a={})=>({context:i,functions:a}))({},F$e);return(i={})=>Z$e(n,r,i)}const J$e=["style","encode","labels","children"],Q$e=yV(e=>{const t=K$e(e);return(...n)=>{const r=Array.from({length:n.length},(a,o)=>String.fromCharCode(97+o)),i=Object.fromEntries(n.map((a,o)=>[r[o],a]));return t(Object.assign(Object.assign({},i),{global:Object.assign({},i)}))}},e=>e,128);function Ig(e,t=!0){if(Array.isArray(e))return e.map((n,r)=>Ig(e[r],t));if(typeof e=="object"&&e)return u3e(e,(n,r)=>t&&J$e.includes(r)?Ig(n,r==="children"):t?n:Ig(n,!1));if(typeof e=="string"){const n=e.trim();if(n.startsWith("{")&&n.endsWith("}"))return Q$e(n.slice(1,-1))}return e}const eTe=[["legendCategory",[[["color","discrete"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"],["size","constant"]],[["color","constant"],["o
148pacity","discrete"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","discrete"]],[["color","discrete"],["opacity","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"]],[["color","discrete"],["opacity","constant"],["size","constant"]],[["color","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"]],[["color","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["shape","discrete"]],[["color","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"]],[["color","discrete"],["opacity","constant"]],[["color","discrete"],["shape","constant"]],[["color","constant"],["shape","discrete"]],[["color","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"]],[["color","discrete"]]]],["legendContinuousSize",[[["color","continuous"],["opacity","continuous"],["size","continuous"]],[["color","constant"],["opacity","continuous"],["size","continuous"]],[["color","continuous"],["size","continuous"]],[["color","constant"],["size","continuous"]],[["size","continuous"],["opacity","continuous"]],[["size","continuous"]]]],["legendContinuousBlockSize",[[["color","distribution"],["opacity","distribution"],["size","distribution"]],[["color","distribution"],["size","distribution"]]]],["legendContinuousBlock",[[["color","distribution"],["opacity","continuous"]],[["color","distribution"]]]],["legendContinuous",[[["color","continuous"],["opacity","continuous"]],[["color","continuous"]],[["opacity","continuous"]]]]];var tTe={}.toString,bv=function(e,t){return tTe.call(e)==="[object "+t+"]"};const PH=function(e){return bv(e,"Function")},MH=function(e){return Array.isArray?Array.isArray(e):bv(e,"Array")},nTe=function(e){var t=typeof e;return e!==null&&t==="object"||t==="function"};function rTe(e,t){if(e){var n;if(MH(e))for(var r=0,i=e.length;r<i&&(n=t(e[r],r),n!==!1);r++);else if(nTe(e)){for(var a in e)if(e.hasOwnProperty(a)&&(n=t(e[a],a),n===!1))break}}}var iTe=function(e){return typeof e=="object"&&e!==null},FT=function(e){if(!iTe(e)||!bv(e,"Object"))return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t};const aTe=function(e){return bv(e,"String")};var oTe=Object.values?function(e){return Object.values(e)}:function(e){var t=[];return rTe(e,function(n,r){PH(e)&&r==="prototype"||t.push(n)}),t};const sTe=function(e,t){if(!PH(e))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var s=e.apply(this,r);return o.set(a,s),s};return n.cache=new Map,n};var lTe=5;function NH(e,t,n,r){n=n||0,r=r||lTe;
148for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];a!==null&&FT(a)?(FT(e[i])||(e[i]={}),n<r?NH(e[i],a,n+1,r):e[i]=t[i]):MH(a)?(e[i]=[],e[i]=e[i].concat(a)):a!==void 0&&(e[i]=a)}}var IH=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r+=1)NH(e,t[r]);return e};const AC=function(e){return e};var Z5;sTe(function(e,t){t===void 0&&(t={});var n=t.fontSize,r=t.fontFamily,i=t.fontWeight,a=t.fontStyle,o=t.fontVariant;return Z5||(Z5=document.createElement("canvas").getContext("2d")),Z5.font=[a,o,i,n+"px",r].join(" "),Z5.measureText(aTe(e)?e:"").width},function(e,t){return t===void 0&&(t={}),nve([e],oTe(t)).join("")});function LH(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e?t.reduce(function(r,i){return function(a){return i(r(a))}},e):AC}function RH(e){return e instanceof Float32Array||e instanceof Array}var jH=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},DH=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};function cTe(e){return function(t){for(var n=[],r=0;r<t.length-1;r+=2){var i=[t[r],t[r+1]],a=e(i);n.push.apply(n,DH([],jH(a),!1))}return n}}function uTe(e){return function(t){for(var n=[],r=0;r<t.length-1;r+=3){var i=[t[r],t[r+1],t[r+2]],a=e(i);n.push.apply(n,DH([],jH(a),!1))}return n}}function FH(e,t,n){for(;e<t;)e+=Math.PI*2;for(;e>n;)e-=Math.PI*2;return e}var fTe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},dTe=function(e,t,n,r,i){var a=fTe(e,2),o=a[0],s=a[1],l=Td();return y3e(l,[o,s])},BT=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},hTe=function(e,t,n,r,i){var a=new Gn({range:[t,t+r]}),o=new Gn({range:[n,n+i]});return{transform:function(s){var l=BT(s,2),c=l[0],u=l[1];return[a.map(c),o.map(u)]},untransform:function(s){var l=BT(s,2),c=l[0],u=l[1];return[a.invert(c),o.invert(u)]}}},pTe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},gTe=function(e,t,n,r,i){var a=pTe(e,1),o=a[0];return o(t,n,r,i)},mTe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},vTe=function(e,t,n,r,i){var a=mTe(e,1),o=a[0];return o},f4=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},yTe=function(e,t,n,r,i){var a=f4(e,4),o=a[0],s=a[1],l=a[2],c=a[3],u=new Gn({range:[l,c]}),f=new Gn({range:[o,s]}),d=i/r,h=d>1?1:d,p=d>1?1/d:1;return{transform:function(g){var v=f4(g,2),y=v[0],x=v[1],C=f.map(y),_=u.map(x),S=_*Math.cos(C)*h,O=_*Math.sin(C)*p,E=S*.5+.5,k=O*.5+.5;return[E,k]},untransform:function(g){var v=f4(g,2),y=v[0],x=v[1],C=(y-.5)*2/h,_=(x-.5)*2/p,S=Math.sqrt(Math.pow(C,2)+Math.pow(_,2)),O=Math.atan2(_,C),E=FH(O,o,s),k=f.invert(E),$=u.invert(S);return[k,$]}}},zT=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},xTe=function(e,t,n,r,i){return{transform:function(a){var o=zT(a,2),s=o[0],l=o[1];return[l,s]},untransform:function(a){var o=zT(a,2),s=o[0],l=o[1];return[l,s]}}},bTe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Cv=function(e,t,n,r,i){var a=bTe(e,2),o=a[0],s=a[1],l=Td();return b3e(l,[o,s])},$C=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},TC=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;
148r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},CTe=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Cv.apply(void 0,TC([[-1,-1]],$C(t),!1))},wTe=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Cv.apply(void 0,TC([[-1,1]],$C(t),!1))},_Te=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Cv.apply(void 0,TC([[1,-1]],$C(t),!1))},STe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},OTe=function(e,t,n,r,i){var a=STe(e,1),o=a[0],s=Td();return x3e(s,o)},d4=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},ETe=function(e,t,n,r,i){var a=d4(e,4),o=a[0],s=a[1],l=a[2],c=a[3],u=(s-0)/(2*Math.PI)+1,f=(c-l)/u,d=f/(Math.PI*2),h=new Gn({range:[l,l+f*.99]}),p=new Gn({range:[o,s]}),g=i/r,v=g>1?1:g,y=g>1?1/g:1;return{transform:function(x){var C=d4(x,2),_=C[0],S=C[1],O=p.map(_),E=h.map(S),k=Math.cos(O)*(d*O+E)*v,$=Math.sin(O)*(d*O+E)*y,T=k*.5+.5,M=$*.5+.5;return[T,M]},untransform:function(x){var C=d4(x,2),_=C[0],S=C[1],O=(_-.5)*2/v,E=(S-.5)*2/y,k=Math.sqrt(Math.pow(O,2)+Math.pow(E,2)),$=Math.atan2(E,O)+Math.floor(k/f)*Math.PI*2,T=FH($,o,s),M=k-d*T,R=p.invert(T),N=h.invert(M);return[R,N]}}},kTe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},ATe=function(e,t,n,r,i){var a=kTe(e,4),o=a[0],s=a[1],l=a[2],c=a[3],u=new Gn({range:[l,c]});return{transform:function(f){for(var d=[],h=f.length,p=new Hj({domain:new Array(h).fill(0).map(function(C,_){return _}),range:[o,s]}),g=0;g<h;g++){var v=f[g],y=p.map(g),x=u.map(v);d.push(y,x)}return d},untransform:function(f){for(var d=[],h=0;h<f.length;h+=2){var p=f[h+1];d.push(u.invert(p))}return d}}},H0=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};function BH(e){return 1/Math.tan(e)}var $Te=function(e,t,n,r,i){var a=H0(e,1),o=a[0],s=BH(o);return{transform:function(l){var c=H0(l,2),u=c[0],f=c[1],d=u+f*s;return[d,f]},untransform:function(l){var c=H0(l,2),u=c[0],f=c[1],d=u-f*s;return[d,f]}}},TTe=function(e,t,n,r,i){var a=H0(e,1),o=a[0],s=BH(o);return{transform:function(l){var c=H0(l,2),u=c[0],f=c[1],d=f+u*s;return[u,d]},untransform:function(l){var c=H0(l,2),u=c[0],f=c[1],d=f-u*s;return[u,d]}}},ao=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};function rp(e,t,n,r,i){var a=e<t,o=(a?t-r:i-t)||i-r,s=a?-1:1;return s*o*(n+1)/(n+o/((e-t)*s))+t}function ip(e,t,n,r,i){var a=e<t,o=(a?t-r:i-t)||i-r,s=a?-1:1;return o/(o*(n+1)/(e-t)-n*s)+t}function Xm(e,t,n){if(!n)return e;var r=new Gn({range:[0,1],domain:[0,t]});return r.map(e)}var PTe=function(e,t,n,r,i){var a=ao(e,3),o=a[0],s=a[1],l=a[2],c=l===void 0?!1:l,u=Xm(o,r,c);return{transform:function(f){var d=ao(f,2),h=d[0],p=d[1],g=rp(h,u,s,0,1);return[g,p]},untransform:function(f){var d=ao(f,2),h=d[0],p=d[1],g=ip(h,u,s,0,1);return[g,p]}}},MTe=function(e,t,n,r,i){var a=ao(e,3),o=a[0],s=a[1],l=a[2],c=l===void 0?!1:l,u=Xm(o,i,c);return{transform:function(f){var d=ao(f,2),h=d[0],p=d[1],g=rp(p,u,s,0,1);return[h,g]},untransform:function(f){var d=ao(f,2),h=d[0],p=d[1],g=ip(p,u,s,0,1);return[h,g]}}},NTe=function(e,t,n,r,i){var a=ao(e,5),o=a[0],s=a[1],l=a[2],c=a[3],u=a[4],f=u===void 0?!1:u,d=Xm(o,r,f),h=Xm(s,i,f);return{transform:function(p){var g=ao(p,2),v=g[0],y=g[1],x=rp(v,d,l,0,1),C=rp(y,h,c,0,1);return[x,C]},untransform:function(p){var g=ao(p,2),v=g[0],y=g[1],x=ip(v,d,l,0,1),C=ip(y,h,c,0,1);return[x,C]}}},ITe=function(e,t,n,r,i){var a=ao(e,5),o=a[0],s=a[1],l=a[2],c=a[3],u=a[4],f=u===void 0?!1:u,d=new Gn({range:[0,r]}),h=new Gn({range:[0,i]}),p=f?o:d.map(o),g=f?s:h.map(s);return{transform:function(v){var y=ao(v,2),x=y[0],C=y[1],_=d.map(x)-p,S=h.map(C)-g,O=Math.sqrt(_*_+S*S);if(O>l)return[x,C];var E=rp(O,0,c,0,l),k=Math.atan2(S,_),$=p+E*Math.cos(k),T=g+E*Math.sin(k);return[d.invert($),h.invert(T)]},untransform:function(v){var y=ao(v,2),x=y[0],C=y[1],_=d.map(x)-p,S=h.map(C)-g,O=Math.sqrt(_*_+S*S);if(O>l)return[x,C];var E=ip(O,0,c,0,l),k=Math.atan2(S,_),$=p+E*Math.cos(k),T=g+E*Math.sin(k);return[d.invert($),h.invert(T)]}}},VT=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},LTe=function(e,t,n,r,i,a,o){var s=new Gn({range:[t,t+i]}),l=new Gn({range:[n,n+a]}),c=new Gn({range:[r,r+o]});return{transform:function(u){var f=VT(u,3),d=f[0],h=f[1],p=f[2];return[s.map(d),l.map(h),c.map(p)]},untransform:function(u){var f=VT(u,3),d=f[0],h=f[1],p=f[2];
148return[s.invert(d),l.invert(h),c.invert(p)]}}},RTe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},jTe=function(e,t,n,r,i,a,o){var s=RTe(e,3),l=s[0],c=s[1],u=s[2];return ml(_n(),[l,c,u])},WT=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},DTe=function(e,t,n,r,i,a,o){return{transform:function(s){var l=WT(s,3),c=l[0],u=l[1],f=l[2];return[u,c,f]},untransform:function(s){var l=WT(s,3),c=l[0],u=l[1],f=l[2];return[u,c,f]}}},FTe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},BTe=function(e,t,n,r,i,a,o){var s=FTe(e,3),l=s[0],c=s[1],u=s[2];return pc(_n(),[l,c,u])},u0=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},f0=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},zTe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},VTe=function(){function e(t){this.options={x:0,y:0,width:300,height:150,transformations:[]},this.transformers={cartesian:hTe,translate:dTe,custom:gTe,matrix:vTe,polar:yTe,transpose:xTe,scale:Cv,"shear.x":$Te,"shear.y":TTe,reflect:CTe,"reflect.x":wTe,"reflect.y":_Te,rotate:OTe,helix:ETe,parallel:ATe,fisheye:NTe,"fisheye.x":PTe,"fisheye.y":MTe,"fisheye.circular":ITe},this.update(t)}return e.prototype.update=function(t){this.options=IH({},this.options,t),this.recoordinate()},e.prototype.clone=function(){return new e(this.options)},e.prototype.getOptions=function(){return this.options},e.prototype.clear=function(){this.update({transformations:[]})},e.prototype.getSize=function(){var t=this.options,n=t.width,r=t.height;return[n,r]},e.prototype.getCenter=function(){var t=this.options,n=t.x,r=t.y,i=t.width,a=t.height;return[(n*2+i)/2,(r*2+a)/2]},e.prototype.transform=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.options.transformations;return this.update({transformations:f0(f0([],u0(r),!1),[f0([],u0(t),!1)],!1)}),this},e.prototype.map=function(t){return this.output(t)},e.prototype.invert=function(t){return this.input(t)},e.prototype.recoordinate=function(){this.output=this.compose(),this.input=this.compose(!0)},e.prototype.compose=function(t){var n,r;t===void 0&&(t=!1);var i=t?f0([],u0(this.options.transformations),!1).reverse():this.options.transformations,a=t?function(E){return E.untransform}:function(E){return E.transform},o=[],s=[],l=function(E,k){return k===void 0&&(k=!0),s.push(k?cTe(E):E)};try{for(var c=zTe(i),u=c.next();!u.done;u=c.next()){var f=u0(u.value),d=f[0],h=f.slice(1),p=this.transformers[d];if(p){var g=this.options,v=g.x,y=g.y,x=g.width,C=g.height,_=p(f0([],u0(h),!1),v,y,x,C);if(RH(_))o.push(_);else{if(o.length){var S=this.createMatrixTransform(o,t);l(S),o.splice(0,o.length)}var O=a(_)||AC;l(O,d!=="parallel")}}}}catch(E){n={error:E}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(o.length){var O=this.createMatrixTransform(o,t);l(O)}return LH.apply(void 0,f0([],u0(s),!1))},e.prototype.createMatrixTransform=function(t,n){var r=Td();return n&&t.reverse(),t.forEach(function(i){return C3e(r,r,i)}),n&&m3e(r,p3e(r)),function(i){var a=[i[0],i[1],1];return pj(a,a,r),[a[0],a[1]]}},e}(),d0=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},h0=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;
148r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},WTe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},HTe=function(){function e(t){this.options={x:0,y:0,z:0,width:300,height:150,depth:150,transformations:[]},this.transformers={cartesian3D:LTe,translate3D:jTe,scale3D:BTe,transpose3D:DTe},this.update(t)}return e.prototype.update=function(t){this.options=IH({},this.options,t),this.recoordinate()},e.prototype.clone=function(){return new e(this.options)},e.prototype.getOptions=function(){return this.options},e.prototype.clear=function(){this.update({transformations:[]})},e.prototype.getSize=function(){var t=this.options,n=t.width,r=t.height,i=t.depth;return[n,r,i]},e.prototype.getCenter=function(){var t=this.options,n=t.x,r=t.y,i=t.z,a=t.width,o=t.height,s=t.depth;return[(n*2+a)/2,(r*2+o)/2,(i*2+s)/2]},e.prototype.transform=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.options.transformations;return this.update({transformations:h0(h0([],d0(r),!1),[h0([],d0(t),!1)],!1)}),this},e.prototype.map=function(t){return this.output(t)},e.prototype.invert=function(t){return this.input(t)},e.prototype.recoordinate=function(){this.output=this.compose(),this.input=this.compose(!0)},e.prototype.compose=function(t){var n,r;t===void 0&&(t=!1);var i=t?h0([],d0(this.options.transformations),!1).reverse():this.options.transformations,a=t?function($){return $.untransform}:function($){return $.transform},o=[],s=[],l=function($,T){return T===void 0&&(T=!0),s.push(T?uTe($):$)};try{for(var c=WTe(i),u=c.next();!u.done;u=c.next()){var f=d0(u.value),d=f[0],h=f.slice(1),p=this.transformers[d];if(p){var g=this.options,v=g.x,y=g.y,x=g.z,C=g.width,_=g.height,S=g.depth,O=p(h0([],d0(h),!1),v,y,x,C,_,S);if(RH(O))o.push(O);else{if(o.length){var E=this.createMatrixTransform(o,t);l(E),o.splice(0,o.length)}var k=a(O)||AC;l(k,!0)}}}}catch($){n={error:$}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(o.length){var k=this.createMatrixTransform(o,t);l(k)}return LH.apply(void 0,h0([],d0(s),!1))},e.prototype.createMatrixTransform=function(t,n){var r=_n();return n&&t.reverse(),t.forEach(function(i){return Zx(r,r,i)}),n&&Do(r,Xx(r)),function(i){var a=[i[0],i[1],i[2],1];return Cs(a,a,r),[a[0],a[1],a[2]]}},e}(),GTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Yp(e){return(t,...n)=>_e({},e(t,...n),t)}function wf(e){return(t,...n)=>_e({},t,e(t,...n))}function UTe(e){return e instanceof Date?!1:typeof e=="object"}function PC(e,t){if(!e)return t;if(Array.isArray(e))return e;if(UTe(e)){const{value:n=t}=e,r=GTe(e,["value"]);return Object.assign(Object.assign({},r),{value:n})}return e}var YTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const zH=()=>e=>{const{children:t}=e;if(!Array.isArray(t))return[];const{x:n=0,y:r=0,width:i,height:a,data:o}=e;return t.map(s=>{var{data:l,x:c,y:u,width:f,height:d}=s,h=YTe(s,["data","x","y","width","height"]);return Object.assign(Object.assign({},h),{data:PC(l,o),x:c??n,y:u??r,width:f??i,height:d??a})})};zH.props={};var XTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const VH=()=>e=>{const{children:t}=e;if(!Array.isArray(t))return[];const{direction:n="row",ratio:r=t.map(()=>1),padding:i=0,data:a}=e,[o,s,l,c]=n==="col"?["y","height","width","x"]:["x","width","height","y"],u=r.reduce((g,v)=>g+v),f=e[s]-i*(t.length-1),d=r.map(g=>f*(g/u)),h=[];let p=e[o]||0;for(let g=0;g<d.length;g+=1){const v=t[g],{data:y}=v,x=XTe(v,["data"]),C=PC(y,a);h.push(Object.assign({[o]:p,[s]:d[g],[c]:e[c]||0,[l]:e[l],data:C},x)),p+=d[g]+i}return h};VH.props={};var h4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const WH=()=>e=>{const{children:t}=e,n=h4(e,["children"]);if(!Array.isArray(t))return[];const{data:r,scale:i={},axis:a={},legend:o={},encode:s={},transform:l=[]}=n,c=h4(n,["data","scale","axis","legend","encode","transform"]),u=t.map(f=>{var{data:d,scale:h={},axis:p={},legend:g={},encode:v={},transform:y=[]}=f,x=h4(f,["data","scale","axis","legend","encode","transform"]);return Object.assign({data:PC(d,r),scale:_e({},i,h),encode:_e({},s,v),transform:[...l,...y],axis:p&&a?_e({},a,p):!1,legend:g&&o?_e({},o,g):!1},x)});return[Object.assign(Object.assign({},c),{marks:u,type:"standardView"})]};WH.props={};var qTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const HH=({static:e=!1}={})=>t=>{const{width:n,height:r,depth:i,paddingLeft:a,paddingRight:o,paddingTop:s,paddingBottom:l,padding:c,inset:u,insetLeft:f,insetTop:d,insetRight:h,insetBottom:p,margin:g,marginLeft:v,marginBottom:y,marginTop:x,marginRight:C,data:_,co
148ordinate:S,theme:O,component:E,interaction:k,x:$,y:T,z:M,key:R,frame:N,labelTransform:D,parentKey:F,clip:V,viewStyle:z,title:B}=t,G=qTe(t,["width","height","depth","paddingLeft","paddingRight","paddingTop","paddingBottom","padding","inset","insetLeft","insetTop","insetRight","insetBottom","margin","marginLeft","marginBottom","marginTop","marginRight","data","coordinate","theme","component","interaction","x","y","z","key","frame","labelTransform","parentKey","clip","viewStyle","title"]);return[Object.assign(Object.assign({type:"standardView",x:$,y:T,z:M,key:R,width:n,height:r,depth:i,padding:c,paddingLeft:a,paddingRight:o,paddingTop:s,inset:u,insetLeft:f,insetTop:d,insetRight:h,insetBottom:p,paddingBottom:l,theme:O,coordinate:S,component:E,interaction:k,frame:N,labelTransform:D,margin:g,marginLeft:v,marginBottom:y,marginTop:x,marginRight:C,parentKey:F,clip:V,style:z},!e&&{title:B}),{marks:[Object.assign(Object.assign(Object.assign({},G),{key:`${R}-0`,data:_}),e&&{title:B})]})]};HH.props={};class Xp{constructor(t){this.$value=t}static of(t){return new Xp(t)}call(t,...n){return this.$value=t(this.$value,...n),this}value(){return this.$value}}var ZTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const KTe=Yp(e=>{const{encode:t,data:n,scale:r,shareSize:i=!1}=e,{x:a,y:o}=t,s=(l,c)=>{var u;if(l===void 0||!i)return{};const f=jn(n,p=>p[l]),d=((u=r==null?void 0:r[c])===null||u===void 0?void 0:u.domain)||Array.from(f.keys()),h=d.map(p=>f.has(p)?f.get(p).length:1);return{domain:d,flex:h}};return{scale:{x:Object.assign(Object.assign({paddingOuter:0,paddingInner:.1,guide:a===void 0?null:{position:"top"}},a===void 0&&{paddingInner:0}),s(a,"x")),y:Object.assign(Object.assign({range:[0,1],paddingOuter:0,paddingInner:.1,guide:o===void 0?null:{position:"right"}},o===void 0&&{paddingInner:0}),s(o,"y"))}}}),MC=wf(e=>{const{data:t,scale:n,legend:r}=e,i=[e];let a,o,s;for(;i.length;){const d=i.shift(),{children:h,encode:p={},scale:g={},legend:v={}}=d,{color:y}=p,{color:x}=g,{color:C}=v;y!==void 0&&(a=y),x!==void 0&&(o=x),C!==void 0&&(s=C),Array.isArray(h)&&i.push(...h)}const l=()=>{var d;const h=(d=n==null?void 0:n.color)===null||d===void 0?void 0:d.domain;if(h!==void 0)return[h];if(a===void 0)return[void 0];const p=typeof a=="function"?a:v=>v[a],g=t.map(p);return g.some(v=>typeof v=="number")?[Ol(g)]:[Array.from(new Set(g)),"ordinal"]},c=typeof a=="string"?a:"",[u,f]=l();return Object.assign({encode:{color:{type:"column",value:u??[]}},scale:{color:_e({},o,{domain:u,type:f})}},r===void 0&&{legend:{color:_e({title:c},s)}})}),NC=Yp(()=>({animate:{enterType:"fadeIn"}})),IC=wf(()=>({frame:!1,encode:{shape:"hollow"},style:{lineWidth:0}})),LC=wf(()=>({type:"cell"})),GH=wf(e=>{const{data:t}=e;return{data:{type:"inline",value:t,transform:[{type:"custom",callback:()=>{const{data:r,encode:i}=e,{x:a,y:o}=i,s=a?Array.from(new Set(r.map(u=>u[a]))):[],l=o?Array.from(new Set(r.map(u=>u[o]))):[];return(()=>{if(s.length&&l.length){const u=[];for(const f of s)for(const d of l)u.push({[a]:f,[o]:d});return u}if(s.length)return s.map(u=>({[a]:u}));if(l.length)return l.map(u=>({[o]:u}))})()}}]}}}),UH=wf((e,t=JTe,n=QTe,r=ePe,i={})=>{const{data:a,encode:o,children:s,scale:l,x:c=0,y:u=0,shareData:f=!1,key:d}=e,{value:h}=a,{x:p,y:g}=o,{color:v}=l,{domain:y}=v;return{children:(C,_,S)=>{const{x:O,y:E}=_,{paddingLeft:k,paddingTop:$,marginLeft:T,marginTop:M}=S,{domain:R}=O.getOptions(),{domain:N}=E.getOptions(),D=hf(C),F=C.map(t),V=C.map(({x:Q,y:ne})=>[O.invert(Q),E.invert(ne)]),B=V.map(([Q,ne])=>oe=>{const{[p]:ae,[g]:ce}=oe;return(p!==void 0?ae===Q:!0)&&(g!==void 0?ce===ne:!0)}).map(Q=>h.filter(Q)),G=f?bn(B,Q=>Q.length):void 0,Y=V.map(([Q,ne])=>({columnField:p,columnIndex:R.indexOf(Q),columnValue:Q,columnValuesLength:R.length,rowField:g,rowIndex:N.indexOf(ne),rowValue:ne,rowValuesLength:N.length})),K=Y.map(Q=>Array.isArray(s)?s:[s(Q)].flat(1));return D.flatMap(Q=>{const[ne,oe,ae,ce]=F[Q],fe=Y[Q],le=B[Q];return K[Q].map(Ce=>{var $e,Me,{scale:Le,key:je,facet:Ge=!0,axis:nt={},legend:Ze={}}=Ce,Ue=ZTe(Ce,["scale","key","facet","axis","legend"]);const Qe=(($e=Le==null?void 0:Le.y)===null||$e===void 0?void 0:$e.guide)||nt.y,Pt=((Me=Le==null?void 0:Le.x)===null||Me===void 0?void 0:Me.guide)||nt.x,nn={x:{tickCount:p?5:void 0},y:{tickCount:g?5:void 0}},At=Ge?le:le.length===0?[]:h,ct={color:{domain:y}},sn={x:HT(Pt,n)(fe,At),y:HT(Qe,r)(fe,At)};return Object.assign(Object.assign({key:`${je}-${Q}`,data:At,margin:0,x:ne+k+c+T,y:oe+$+u+M,parentKey:d,width:ae,height:ce,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!!At.length,dataDomain:G,scale:_e(nn,Le,ct),axis:_e({},nt,sn),legend:!1},Ue),i)})})}}});function JTe(e){const{points:t}=e;return gb(t)}function wv(e,t){return t.length?_e({title:!1,tick:null,label:null},e):_e({title:!1,tick:null,label:null,grid:null},e)}function QTe(e){return(t,n)=>{const{rowIndex:r,rowValuesLength:i,columnIndex:a,columnValuesLength:o}=t;if(r!==i-1)return wv(e,n);const s=a!==o-1?!1:void 0,l=n.length?void 0:null;return _e({title:s,grid:l},e)}}function ePe(e){return(t,n)=>{const{rowIndex:r,columnIndex:i}=t;if(i!==0)return wv(e,n);const a=r!==0?!1:void 0,o=n.length?void 0:null;return _e({title:a,grid:o},e)}}function HT(e,t){return typeof e=="function"?e:e===null||e===!1?()=>null:t(e)}const YH=()=>e=>[Xp.of(e).call(LC).call(MC).call(NC).call(KTe).call(IC).call(GH).call(UH).value(
148)];YH.props={};var Y7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const tPe=Yp(e=>({scale:{x:{guide:null,paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),nPe=wf(e=>{const{data:t,children:n,x:r=0,y:i=0,key:a}=e;return{children:(s,l,c)=>{const{x:u,y:f}=l,{paddingLeft:d,paddingTop:h,marginLeft:p,marginTop:g}=c,{domain:v}=u.getOptions(),{domain:y}=f.getOptions(),x=hf(s),C=s.map(({points:E})=>gb(E)),_=s.map(({x:E,y:k})=>[u.invert(E),f.invert(k)]),S=_.map(([E,k])=>({columnField:E,columnIndex:v.indexOf(E),columnValue:E,columnValuesLength:v.length,rowField:k,rowIndex:y.indexOf(k),rowValue:k,rowValuesLength:y.length})),O=S.map(E=>Array.isArray(n)?n:[n(E)].flat(1));return x.flatMap(E=>{const[k,$,T,M]=C[E],[R,N]=_[E],D=S[E];return O[E].map(V=>{var z,B;const{scale:G,key:Y,encode:K,axis:Q,interaction:ne}=V,oe=Y7(V,["scale","key","encode","axis","interaction"]),ae=(z=G==null?void 0:G.y)===null||z===void 0?void 0:z.guide,ce=(B=G==null?void 0:G.x)===null||B===void 0?void 0:B.guide,fe={x:{facet:!1},y:{facet:!1}},le={x:iPe(ce)(D,t),y:aPe(ae)(D,t)},be={x:{tickCount:5},y:{tickCount:5}};return Object.assign({data:t,parentKey:a,key:`${Y}-${E}`,x:k+d+r+p,y:$+h+i+g,width:T,height:M,margin:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!0,scale:_e(fe,G),axis:_e(be,Q,le),legend:!1,encode:_e({},K,{x:R,y:N}),interaction:_e({},ne,{legendFilter:!1})},oe)})})}}}),rPe=wf(e=>{const{encode:t}=e,n=Y7(e,["encode"]),{position:r=[],x:i=r,y:a=[...r].reverse()}=t,o=Y7(t,["position","x","y"]),s=[];for(const l of[i].flat(1))for(const c of[a].flat(1))s.push({$x:l,$y:c});return Object.assign(Object.assign({},n),{data:s,encode:Object.assign(Object.assign({},o),{x:"$x",y:"$y"}),scale:Object.assign(Object.assign({},[i].flat(1).length===1&&{x:{paddingInner:0}}),[a].flat(1).length===1&&{y:{paddingInner:0}})})});function iPe(e){return typeof e=="function"?e:e===null?()=>null:(t,n)=>{const{rowIndex:r,rowValuesLength:i}=t;if(r!==i-1)return wv(e,n)}}function aPe(e){return typeof e=="function"?e:e===null?()=>null:(t,n)=>{const{columnIndex:r}=t;if(r!==0)return wv(e,n)}}const oPe=()=>e=>[Xp.of(e).call(LC).call(MC).call(nPe).call(rPe).call(NC).call(IC).call(tPe).value()];var sPe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const lPe=Yp(e=>({scale:{x:{guide:{type:"axisArc"},paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),cPe=Yp(e=>({coordinate:{type:"polar"}})),uPe=e=>{const{encode:t}=e,n=sPe(e,["encode"]),{position:r}=t;return Object.assign(Object.assign({},n),{encode:{x:r}})};function GT(e){return t=>null}function fPe(e){const{points:t}=e,[n,r,i,a]=t,o=or(n,a),s=mr(n,a),l=mr(r,i),c=VD(s,l),u=1/Math.sin(c/2),f=o/(1+u),d=f*Math.sqrt(2),[h,p]=i,v=ud(s)+c/2,y=f*u,x=h+y*Math.sin(v),C=p-y*Math.cos(v);return[x-d/2,C-d/2,d,d]}const dPe=()=>e=>[Xp.of(e).call(LC).call(uPe).call(MC).call(cPe).call(GH).call(UH,fPe,GT,GT,{frame:!1}).call(NC).call(IC).call(lPe).value()];function hPe(e,t,n){const i=n,a=[0,i],o=[-i+1,1];if(e==="normal")return a;
148if(e==="reverse")return o;if(e==="alternate")return t%2===0?a:o;if(e==="reverse-alternate")return t%2===0?o:a}function pPe(e,t,n){const r=[e];for(;r.length;){const i=r.pop();i.animate=_e({enter:{duration:t},update:{duration:t,easing:n,type:"morphing",fill:"both"},exit:{type:"fadeOut",duration:t}},i.animate||{});const{children:a}=i;Array.isArray(a)&&r.push(...a)}return e}const XH=()=>e=>{const{children:t=[],duration:n=1e3,iterationCount:r=1,direction:i="normal",easing:a="ease-in-out-sine"}=e,o=t.length;if(!Array.isArray(t)||o===0)return[];const{key:s}=t[0],l=t.map(c=>Object.assign(Object.assign({},c),{key:s})).map(c=>pPe(c,n,a));return function*(){let c=0,u;for(;r==="infinite"||c<r;){const[f,d]=hPe(i,c,o);for(let h=f;h<d;h+=1){const p=Math.abs(h);u!==p&&(yield l[p]),u=p}c++}}};XH.props={};var gPe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const qH=()=>e=>{const{type:t,data:n,scale:r,encode:i,style:a,animate:o,key:s,state:l}=e,c=gPe(e,["type","data","scale","encode","style","animate","key","state"]);return[Object.assign(Object.assign({type:"geoView"},c),{children:[{type:"geoPath",key:`${s}-0`,data:{value:n},scale:r,encode:i,style:a,animate:o,state:l}]})]};qH.props={};var yt=1e-6,ZH=1e-12,Qt=Math.PI,wr=Qt/2,UT=Qt/4,Pa=Qt*2,Ai=180/Qt,hr=Qt/180,hn=Math.abs,jd=Math.atan,Ll=Math.atan2,Ut=Math.cos,K5=Math.ceil,KH=Math.exp,qm=Math.log,p4=Math.pow,It=Math.sin,to=Math.sign||function(e){return e>0?1:e<0?-1:0},pa=Math.sqrt,RC=Math.tan;function JH(e){return e>1?0:e<-1?Qt:Math.acos(e)}function lo(e){return e>1?wr:e<-1?-wr:Math.asin(e)}function no(){}function Zm(e,t){e&&XT.hasOwnProperty(e.type)&&XT[e.type](e,t)}var YT={Feature:function(e,t){Zm(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)Zm(n[r].geometry,t)}},XT={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){X7(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)X7(n[r],t,0)},Polygon:function(e,t){qT(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)qT(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)Zm(n[r],t)}};function X7(e,t,n){var r=-1,i=e.length-n,a;for(t.lineStart();++r<i;)a=e[r],t.point(a[0],a[1],a[2]);t.lineEnd()}function qT(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)X7(e[n],t,1);t.polygonEnd()}function C0(e,t){e&&YT.hasOwnProperty(e.type)?YT[e.type](e,t):Zm(e,t)}function q7(e){return[Ll(e[1],e[0]),lo(e[2])]}function Cd(e){var t=e[0],n=e[1],r=Ut(n);return[r*Ut(t),r*It(t),It(n)]}function J5(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Km(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function g4(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Q5(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Z7(e){var t=pa(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function K7(e,t){function n(r,i){return r=e(r,i),t(r[0],r[1])}return e.invert&&t.invert&&(n.invert=function(r,i){return r=t.invert(r,i),r&&e.invert(r[0],r[1])}),n}function J7(e,t){return hn(e)>Qt&&(e-=Math.round(e/Pa)*Pa),[e,t]}J7.invert=J7;function QH(e,t,n){return(e%=Pa)?t||n?K7(KT(e),JT(t,n)):KT(e):t||n?JT(t,n):J7}function ZT(e){return function(t,n){return t+=e,hn(t)>Qt&&(t-=Math.round(t/Pa)*Pa),[t,n]}}function KT(e){var t=ZT(e);return t.invert=ZT(-e),t}function JT(e,t){var n=Ut(e),r=It(e),i=Ut(t),a=It(t);function o(s,l){var c=Ut(l),u=Ut(s)*c,f=It(s)*c,d=It(l),h=d*n+u*r;return[Ll(f*i-h*a,u*n-d*r),lo(h*i+f*a)]}return o.invert=function(s,l){var c=Ut(l),u=Ut(s)*c,f=It(s)*c,d=It(l),h=d*i-f*a;return[Ll(f*i+d*a,u*n+h*r),lo(h*n-u*r)]},o}function mPe(e){e=QH(e[0]*hr,e[1]*hr,e.length>2?e[2]*hr:0);function t(n){return n=e(n[0]*hr,n[1]*hr),n[0]*=Ai,n[1]*=Ai,n}return t.invert=function(n){return n=e.invert(n[0]*hr,n[1]*hr),n[0]*=Ai,n[1]*=Ai,n},t}function vPe(e,t,n,r,i,a){if(n){var o=Ut(t),s=It(t),l=r*n;i==null?(i=t+r*Pa,a=t-l/2):(i=QT(o,i),a=QT(o,a),(r>0?i<a:i>a)&&(i+=r*Pa));for(var c,u=i;r>0?u>a:u<a;u-=l)c=q7([o,-s*Ut(u),-s*It(u)]),e.point(c[0],c[1])}}function QT(e,t){t=Cd(t),t[0]-=e,Z7(t);var n=JH(-t[1]);return((-t[2]<0?-n:n)+Pa-yt)%Pa}function eG(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:no,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Lg(e,t){return hn(e[0]-t[0])<yt&&hn(e[1]-t[1])<yt}function eg(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function tG(e,t,n,r,i){var a=[],o=[],s,l;if(e.forEach(function(p){if(!((g=p.length-1)<=0)){var g,v=p[0],y=p[g],x;if(Lg(v,y)){if(!v[2]&&!y[2]){for(i.lineStart(),s=0;s<g;++s)i.point((v=p[s])[0],v[1]);i.lineEnd();return}y[0]+=2*yt}a.push(x=new eg(v,p,null,!0)),o.push(x.o=new eg(v,null,x,!1)),a.push(x=new eg(y,p,null,!1)),o.push(x.o=new eg(y,null,x,!0))}}),!!a.length){for(o.sort(t),eP(a),eP(o),s=0,l=o.length;s<l;++s)o[s].e=n=!n;for(var c=a[0],u,f;;){for(var d=c,h=!0;d.v;)if((d=d.n)===c)return;u=d.z,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(h)for(s=0,l=u.length;s<l;
vendor: 23,551 bytes, line 148
148++s)i.point((f=u[s])[0],f[1]);else r(d.x,d.n.x,1,i);d=d.n}else{if(h)for(u=d.p.z,s=u.length-1;s>=0;--s)i.point((f=u[s])[0],f[1]);else r(d.x,d.p.x,-1,i);d=d.p}d=d.o,u=d.z,h=!h}while(!d.v);i.lineEnd()}}}function eP(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function m4(e){return hn(e[0])<=Qt?e[0]:to(e[0])*((hn(e[0])+Qt)%Pa-Qt)}function yPe(e,t){var n=m4(t),r=t[1],i=It(r),a=[It(n),-Ut(n),0],o=0,s=0,l=new Ku;i===1?r=wr+yt:i===-1&&(r=-wr-yt);for(var c=0,u=e.length;c<u;++c)if(d=(f=e[c]).length)for(var f,d,h=f[d-1],p=m4(h),g=h[1]/2+UT,v=It(g),y=Ut(g),x=0;x<d;++x,p=_,v=O,y=E,h=C){var C=f[x],_=m4(C),S=C[1]/2+UT,O=It(S),E=Ut(S),k=_-p,$=k>=0?1:-1,T=$*k,M=T>Qt,R=v*O;if(l.add(Ll(R*$*It(T),y*E+R*Ut(T))),o+=M?k+$*Pa:k,M^p>=n^_>=n){var N=Km(Cd(h),Cd(C));Z7(N);var D=Km(a,N);Z7(D);var F=(M^k>=0?-1:1)*lo(D[2]);(r>F||r===F&&(N[0]||N[1]))&&(s+=M^k>=0?1:-1)}}return(o<-yt||o<yt&&l<-ZH)^s&1}function nG(e,t,n,r){return function(i){var a=t(i),o=eG(),s=t(o),l=!1,c,u,f,d={point:h,lineStart:g,lineEnd:v,polygonStart:function(){d.point=y,d.lineStart=x,d.lineEnd=C,u=[],c=[]},polygonEnd:function(){d.point=h,d.lineStart=g,d.lineEnd=v,u=kj(u);var _=yPe(c,r);u.length?(l||(i.polygonStart(),l=!0),tG(u,bPe,_,n,i)):_&&(l||(i.polygonStart(),l=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),u=c=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function h(_,S){e(_,S)&&i.point(_,S)}function p(_,S){a.point(_,S)}function g(){d.point=p,a.lineStart()}function v(){d.point=h,a.lineEnd()}function y(_,S){f.push([_,S]),s.point(_,S)}function x(){s.lineStart(),f=[]}function C(){y(f[0][0],f[0][1]),s.lineEnd();var _=s.clean(),S=o.result(),O,E=S.length,k,$,T;if(f.pop(),c.push(f),f=null,!!E){if(_&1){if($=S[0],(k=$.length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),O=0;O<k;++O)i.point((T=$[O])[0],T[1]);i.lineEnd()}return}E>1&&_&2&&S.push(S.pop().concat(S.shift())),u.push(S.filter(xPe))}}return d}}function xPe(e){return e.length>1}function bPe(e,t){return((e=e.x)[0]<0?e[1]-wr-yt:wr-e[1])-((t=t.x)[0]<0?t[1]-wr-yt:wr-t[1])}const tP=nG(function(){return!0},CPe,_Pe,[-Qt,-wr]);function CPe(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var s=a>0?Qt:-Qt,l=hn(a-t);hn(l-Qt)<yt?(e.point(t,n=(n+o)/2>0?wr:-wr),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(a,n),i=0):r!==s&&l>=Qt&&(hn(t-r)<yt&&(t-=r*yt),hn(a-s)<yt&&(a-=s*yt),n=wPe(t,n,a,o),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),i=0),e.point(t=a,n=o),r=s},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function wPe(e,t,n,r){var i,a,o=It(e-n);return hn(o)>yt?jd((It(t)*(a=Ut(r))*It(n)-It(r)*(i=Ut(t))*It(e))/(i*a*o)):(t+r)/2}function _Pe(e,t,n,r){var i;if(e==null)i=n*wr,r.point(-Qt,i),r.point(0,i),r.point(Qt,i),r.point(Qt,0),r.point(Qt,-i),r.point(0,-i),r.point(-Qt,-i),r.point(-Qt,0),r.point(-Qt,i);else if(hn(e[0]-t[0])>yt){var a=e[0]<t[0]?Qt:-Qt;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function SPe(e){var t=Ut(e),n=2*hr,r=t>0,i=hn(t)>yt;function a(u,f,d,h){vPe(h,e,n,d,u,f)}function o(u,f){return Ut(u)*Ut(f)>t}function s(u){var f,d,h,p,g;return{lineStart:function(){p=h=!1,g=1},point:function(v,y){var x=[v,y],C,_=o(v,y),S=r?_?0:c(v,y):_?c(v+(v<0?Qt:-Qt),y):0;if(!f&&(p=h=_)&&u.lineStart(),_!==h&&(C=l(f,x),(!C||Lg(f,C)||Lg(x,C))&&(x[2]=1)),_!==h)g=0,_?(u.lineStart(),C=l(x,f),u.point(C[0],C[1])):(C=l(f,x),u.point(C[0],C[1],2),u.lineEnd()),f=C;else if(i&&f&&r^_){var O;!(S&d)&&(O=l(x,f,!0))&&(g=0,r?(u.lineStart(),u.point(O[0][0],O[0][1]),u.point(O[1][0],O[1][1]),u.lineEnd()):(u.point(O[1][0],O[1][1]),u.lineEnd(),u.lineStart(),u.point(O[0][0],O[0][1],3)))}_&&(!f||!Lg(f,x))&&u.point(x[0],x[1]),f=x,h=_,d=S},lineEnd:function(){h&&u.lineEnd(),f=null},clean:function(){return g|(p&&h)<<1}}}function l(u,f,d){var h=Cd(u),p=Cd(f),g=[1,0,0],v=Km(h,p),y=J5(v,v),x=v[0],C=y-x*x;if(!C)return!d&&u;var _=t*y/C,S=-t*x/C,O=Km(g,v),E=Q5(g,_),k=Q5(v,S);g4(E,k);var $=O,T=J5(E,$),M=J5($,$),R=T*T-M*(J5(E,E)-1);if(!(R<0)){var N=pa(R),D=Q5($,(-T-N)/M);if(g4(D,E),D=q7(D),!d)return D;var F=u[0],V=f[0],z=u[1],B=f[1],G;V<F&&(G=F,F=V,V=G);var Y=V-F,K=hn(Y-Qt)<yt,Q=K||Y<yt;if(!K&&B<z&&(G=z,z=B,B=G),Q?K?z+B>0^D[1]<(hn(D[0]-F)<yt?z:B):z<=D[1]&&D[1]<=B:Y>Qt^(F<=D[0]&&D[0]<=V)){var ne=Q5($,(-T+N)/M);return g4(ne,E),[D,q7(ne)]}}}function c(u,f){var d=r?e:Qt-e,h=0;return u<-d?h|=1:u>d&&(h|=2),f<-d?h|=4:f>d&&(h|=8),h}return nG(o,s,a,r?[0,-e]:[-Qt,e-Qt])}function OPe(e,t,n,r,i,a){var o=e[0],s=e[1],l=t[0],c=t[1],u=0,f=1,d=l-o,h=c-s,p;if(p=n-o,!(!d&&p>0)){if(p/=d,d<0){if(p<u)return;p<f&&(f=p)}else if(d>0){if(p>f)return;p>u&&(u=p)}if(p=i-o,!(!d&&p<0)){if(p/=d,d<0){if(p>f)return;p>u&&(u=p)}else if(d>0){if(p<u)return;p<f&&(f=p)}if(p=r-s,!(!h&&p>0)){if(p/=h,h<0){if(p<u)return;p<f&&(f=p)}else if(h>0){if(p>f)return;p>u&&(u=p)}if(p=a-s,!(!h&&p<0)){if(p/=h,h<0){if(p>f)return;p>u&&(u=p)}else if(h>0){if(p<u)return;p<f&&(f=p)}return u>0&&(e[0]=o+u*d,e[1]=s+u*h),f<1&&(t[0]=o+f*d,t[1]=s+f*h),!0}}}}}var X1=1e9,tg=-X1;function rG(e,t,n,r){function i(c,u){return e<=c&&c<=n&&t<=u&&u<=r}function a(c,u,f,d){var h=0,p=0;if(c==null||(h=o(c,f))!==(p=o(u,f))||l(c,u)<0^f>0)do d.point(h===0||h===3?e:n,h>1?r:t);while((h=(h+f+4)%4)!==p);else d.point(u[0],u[1])}function o(c,u){return hn(c[0]-e)<yt?u>0?0:3:hn(c[0]-n)<yt?u>0?2:1:hn(c[1]-t)<yt?u>0?1:0:u>0?3:2}function s(c,u){return l(c.x,u.x)}function l(c,u){var f=o(c,1),d=o(u,1);return f!==d?f-d:f===0?u[1]-c[1]:f===1?c[0]-u[0]:f===2?c[1]-u[1]:u[0]-c[0]}return function(c){var u=c,f=eG(),d,h,p,g,v,y,x,C,_,S,O,E={point:k,lineStart:R,lineEnd:N,polygonStart:T,polygonEnd:M};function k(F,V){i(F,V)&&u.point(F,V)}function $(){for(var F=0,V=0,z=h.length;V<z;++V)for(var B=h[V],G=1,Y=B.length,K=B[0],Q,ne,oe=K[0],ae=K[1];G<Y;++G)Q=oe,ne=ae,K=B[G],oe=K[0],ae=K[1],ne<=r?ae>r&&(oe-Q)*(r-ne)>(ae-ne)*(e-Q)&&++F:ae<=r&&(oe-Q)*(r-ne)<(ae-ne)*(e-Q)&&--F;return F}function T(){u=f,d=[],h=[],O=!0}function M(){var F=$(),V=O&&F,z=(d=kj(d)).length;(V||z)&&(c.polygonStart(),V&&(c.lineStart(),a(null,null,1,c),c.lineEnd()),z&&tG(d,s,F,a,c),c.polygonEnd()),u=c,d=h=p=null}function R(){E.point=D,h&&h.push(p=[]),S=!0,_=!1,x=C=NaN}function N(){d&&(D(g,v),y&&_&&f.rejoin(),d.push(f.result())),E.point=k,_&&u.lineEnd()}function D(F,V){var z=i(F,V);if(h&&p.push([F,V]),S)g=F,v=V,y=z,S=!1,z&&(u.lineStart(),u.point(F,V));else if(z&&_)u.point(F,V);else{var B=[x=Math.max(tg,Math.min(X1,x)),C=Math.max(tg,Math.min(X1,C))],G=[F=Math.max(tg,Math.min(X1,F)),V=Math.max(tg,Math.min(X1,V))];OPe(B,G,e,t,n,r)?(_||(u.lineStart(),u.point(B[0],B[1])),u.point(G[0],G[1]),z||u.lineEnd(),O=!1):z&&(u.lineStart(),u.point(F,V),O=!1)}x=F,C=V,_=z}return E}}function nP(e,t,n){var r=T0(e,t-yt,n).concat(t);return function(i){return r.map(function(a){return[i,a]})}}function rP(e,t,n){var r=T0(e,t-yt,n).concat(t);return function(i){return r.map(function(a){return[a,i]})}}function EPe(){var e,t,n,r,i,a,o,s,l=10,c=l,u=90,f=360,d,h,p,g,v=2.5;function y(){return{type:"MultiLineString",coordinates:x()}}function x(){return T0(K5(r/u)*u,n,u).map(p).concat(T0(K5(s/f)*f,o,f).map(g)).concat(T0(K5(t/l)*l,e,l).filter(function(C){return hn(C%u)>yt}).map(d)).concat(T0(K5(a/c)*c,i,c).filter(function(C){return hn(C%f)>yt}).map(h))}return y.lines=function(){return x().map(function(C){return{type:"LineString",coordinates:C}})},y.outline=function(){return{type:"Polygon",coordinates:[p(r).concat(g(o).slice(1),p(n).reverse().slice(1),g(s).reverse().slice(1))]}},y.extent=function(C){return arguments.length?y.extentMajor(C).extentMinor(C):y.extentMinor()},y.extentMajor=function(C){return arguments.length?(r=+C[0][0],n=+C[1][0],s=+C[0][1],o=+C[1][1],r>n&&(C=r,r=n,n=C),s>o&&(C=s,s=o,o=C),y.precision(v)):[[r,s],[n,o]]},y.extentMinor=function(C){return arguments.length?(t=+C[0][0],e=+C[1][0],a=+C[0][1],i=+C[1][1],t>e&&(C=t,t=e,e=C),a>i&&(C=a,a=i,i=C),y.precision(v)):[[t,a],[e,i]]},y.step=function(C){return arguments.length?y.stepMajor(C).stepMinor(C):y.stepMinor()},y.stepMajor=function(C){return arguments.length?(u=+C[0],f=+C[1],y):[u,f]},y.stepMinor=function(C){return arguments.length?(l=+C[0],c=+C[1],y):[l,c]},y.precision=function(C){return arguments.length?(v=+C,d=nP(a,i,90),h=rP(t,e,v),p=nP(s,o,90),g=rP(r,n,v),y):v},y.extentMajor([[-180,-90+yt],[180,90-yt]]).extentMinor([[-180,-80-yt],[180,80+yt]])}function kPe(){return EPe()()}const ap=e=>e;var v4=new Ku,Q7=new Ku,iG,aG,e8,t8,xl={point:no,lineStart:no,lineEnd:no,polygonStart:function(){xl.lineStart=APe,xl.lineEnd=TPe},polygonEnd:function(){xl.lineStart=xl.lineEnd=xl.point=no,v4.add(hn(Q7)),Q7=new Ku},result:function(){var e=v4/2;return v4=new Ku,e}};function APe(){xl.point=$Pe}function $Pe(e,t){xl.point=oG,iG=e8=e,aG=t8=t}function oG(e,t){Q7.add(t8*e-e8*t),e8=e,t8=t}function TPe(){oG(iG,aG)}var wd=1/0,Jm=wd,op=-wd,Qm=op,e3={point:PPe,lineStart:no,lineEnd:no,polygonStart:no,polygonEnd:no,result:function(){var e=[[wd,Jm],[op,Qm]];return op=Qm=-(Jm=wd=1/0),e}};function PPe(e,t){e<wd&&(wd=e),e>op&&(op=e),t<Jm&&(Jm=t),t>Qm&&(Qm=t)}var n8=0,r8=0,q1=0,t3=0,n3=0,N0=0,i8=0,a8=0,Z1=0,sG,lG,ms,vs,Qa={point:of,lineStart:iP,lineEnd:aP,polygonStart:function(){Qa.lineStart=IPe,Qa.lineEnd=LPe},polygonEnd:function(){Qa.point=of,Qa.lineStart=iP,Qa.lineEnd=aP},result:function(){var e=Z1?[i8/Z1,a8/Z1]:N0?[t3/N0,n3/N0]:q1?[n8/q1,r8/q1]:[NaN,NaN];return n8=r8=q1=t3=n3=N0=i8=a8=Z1=0,e}};function of(e,t){n8+=e,r8+=t,++q1}function iP(){Qa.point=MPe}function MPe(e,t){Qa.point=NPe,of(ms=e,vs=t)}function NPe(e,t){var n=e-ms,r=t-vs,i=pa(n*n+r*r);t3+=i*(ms+e)/2,n3+=i*(vs+t)/2,N0+=i,of(ms=e,vs=t)}function aP(){Qa.point=of}function IPe(){Qa.point=RPe}function LPe(){cG(sG,lG)}function RPe(e,t){Qa.point=cG,of(sG=ms=e,lG=vs=t)}function cG(e,t){var n=e-ms,r=t-vs,i=pa(n*n+r*r);t3+=i*(ms+e)/2,n3+=i*(vs+t)/2,N0+=i,i=vs*e-ms*t,i8+=i*(ms+e),a8+=i*(vs+t),Z1+=i*3,of(ms=e,vs=t)}function uG(e){this._context=e}uG.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._context.moveTo(e,t),this._point=1;break}case 1:{this._context.lineTo(e,t);break}default:{this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Pa);break}}},result:no};var o8=new Ku,y4,fG,dG,K1,J1,sp={point:no,lineStart:function(){sp.point=jPe},lineEnd:function(){y4&&hG(fG,dG),sp.point=no},polygonStart:function(){y4=!0},polygonEnd:function(){y4=null},result:function(){var e=+o8;return o8=new Ku,e}};function jPe(e,t){sp.point=hG,fG=K1=e,dG=J1=t}function hG(e,t){K1-=e,J1-=t,o8.add(pa(K1*K1+J1*J1)),K1=e,J1=t}let oP,r3,sP,lP;class cP{constructor(t){this._append=t==null?pG:DPe(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(t,n){switch(this._point){case 0:{this._append`M${t},${n}`,this._point=1;break}case 1:{this._append`L${t},${n}`;break}default:{if(this._append`M${t},${n}`,this._radius!==sP||this._append!==r3){const r=this._radius,i=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,sP=r,r3=this._append,lP=this._,this._=i}this._+=lP;break}}}result(){const t=this._;return this._="",t.length?t:null}}function pG(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function DPe(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return pG;if(t!==oP){const n=10**t;oP=t,r3=function(i){let a=1;this._+=i[0];for(const o=i.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+i[a]}}return r3}function gG(e,t){let n=3,r=4.5,i,a;function o(s){return s&&(typeof r=="function"&&a.pointRadius(+r.apply(this,arguments)),C0(s,i(a))),a.result()}return o.area=function(s){return C0(s,i(xl)),xl.result()},o.measure=function(s){return C0(s,i(sp)),sp.result()},o.bounds=function(s){return C0(s,i(e3)),e3.result()},o.centroid=function(s){return C0(s,i(Qa)),Qa.result()},o.projection=function(s){return arguments.length?(i=s==null?(e=null,ap):(e=s).stream,o):e},o.context=function(s){return arguments.length?(a=s==null?(t=null,new cP(n)):new uG(t=s),typeof r!="function"&&a.pointRadius(r),o):t},o.pointRadius=function(s){return arguments.length?(r=typeof s=="function"?s:(a.pointRadius(+s),+s),o):r},o.digits=function(s){if(!arguments.length)return n;if(s==null)n=null;else{const l=Math.floor(s);if(!(l>=0))throw new RangeError(`invalid digits: ${s}`);n=l}return t===null&&(a=new cP(n)),o},o.projection(e).digits(n).context(t)}function _v(e){return function(t){var n=new s8;for(var r in e)n[r]=e[r];return n.stream=t,n}}function s8(){}s8.prototype={constructor:s8,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function jC(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),C0(n,e.stream(e3)),t(e3.result()),r!=null&&e.clipExtent(r),e}function Sv(e,t,n){return jC(e,function(r){var i=t[1][0]-t[0][0],a=t[1][1]-t[0][1],o=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),s=+t[0][0]+(i-o*(r[1][0]+r[0][0]))/2,l=+t[0][1]+(a-o*(r[1][1]+r[0][1]))/2;e.scale(150*o).translate([s,l])},n)}function DC(e,t,n){return Sv(e,[[0,0],t],n)}function FC(e,t,n){return jC(e,function(r){var i=+t,a=i/(r[1][0]-r[0][0]),o=(i-a*(r[1][0]+r[0][0]))/2,s=-a*r[0][1];e.scale(150*a).translate([o,s])},n)}function BC(e,t,n){return jC(e,function(r){var i=+t,a=i/(r[1][1]-r[0][1]),o=-a*r[0][0],s=(i-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([o,s])},n)}var uP=16,FPe=Ut(30*hr);function fP(e,t){return+t?zPe(e,t):BPe(e)}function BPe(e){return _v({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function zPe(e,t){function n(r,i,a,o,s,l,c,u,f,d,h,p,g,v){var y=c-r,x=u-i,C=y*y+x*x;if(C>4*t&&g--){var _=o+d,S=s+h,O=l+p,E=pa(_*_+S*S+O*O),k=lo(O/=E),$=hn(hn(O)-1)<yt||hn(a-f)<yt?(a+f)/2:Ll(S,_),T=e($,k),M=T[0],R=T[1],N=M-r,D=R-i,F=x*N-y*D;(F*F/C>t||hn((y*N+x*D)/C-.5)>.3||o*d+s*h+l*p<FPe)&&(n(r,i,a,o,s,l,M,R,$,_/=E,S/=E,O,g,v),v.point(M,R),n(M,R,$,_,S,O,c,u,f,d,h,p,g,v))}}return function(r){var i,a,o,s,l,c,u,f,d,h,p,g,v={point:y,lineStart:x,lineEnd:_,polygonStart:function(){r.polygonStart(),v.lineStart=S},polygonEnd:function(){r.polygonEnd(),v.lineStart=x}};function y(k,$){k=e(k,$),r.point(k[0],k[1])}function x(){f=NaN,v.point=C,r.lineStart()}function C(k,$){var T=Cd([k,$]),M=e(k,$);n(f,d,u,h,p,g,f=M[0],d=M[1],u=k,h=T[0],p=T[1],g=T[2],uP,r),r.point(f,d)}function _(){v.point=y,r.lineEnd()}function S(){x(),v.point=O,v.lineEnd=E}function O(k,$){C(i=k,$),a=f,o=d,s=h,l=p,c=g,v.point=C}function E(){n(f,d,u,h,p,g,a,o,i,s,l,c,uP,r),v.lineEnd=_,_()}return v}}var VPe=_v({point:function(e,t){this.stream.point(e*hr,t*hr)}});function WPe(e){return _v({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function HPe(e,t,n,r,i){function a(o,s){return o*=r,s*=i,[t+e*o,n-e*s]}return a.invert=function(o,s){return[(o-t)/e*r,(n-s)/e*i]},a}function dP(e,t,n,r,i,a){if(!a)return HPe(e,t,n,r,i);var o=Ut(a),s=It(a),l=o*e,c=s*e,u=o/e,f=s/e,d=(s*n-o*t)/e,h=(s*t+o*n)/e;function p(g,v){return g*=r,v*=i,[l*g-c*v+t,n-c*g-l*v]}return p.invert=function(g,v){return[r*(u*g-f*v+d),i*(h-f*g-u*v)]},p}function Ds(e){return zC(function(){return e})()}function zC(e){var t,n=150,r=480,i=250,a=0,o=0,s=0,l=0,c=0,u,f=0,d=1,h=1,p=null,g=tP,v=null,y,x,C,_=ap,S=.5,O,E,k,$,T;function M(F){return k(F[0]*hr,F[1]*hr)}function R(F){return F=k.invert(F[0],F[1]),F&&[F[0]*Ai,F[1]*Ai]}M.stream=function(F){return $&&T===F?$:$=VPe(WPe(u)(g(O(_(T=F)))))},M.preclip=function(F){return arguments.length?(g=F,p=void 0,D()):g},M.postclip=function(F){return arguments.length?(_=F,v=y=x=C=null,D()):_},M.clipAngle=function(F){return arguments.length?(g=+F?SPe(p=F*hr):(p=null,tP),D()):p*Ai},M.clipExtent=function(F){return arguments.length?(_=F==null?(v=y=x=C=null,ap):rG(v=+F[0][0],y=+F[0][1],x=+F[1][0],C=+F[1][1]),D()):v==null?null:[[v,y],[x,C]]},M.scale=function(F){return arguments.length?(n=+F,N()):n},M.translate=function(F){return arguments.length?(r=+F[0],i=+F[1],N()):[r,i]},M.center=function(F){return arguments.length?(a=F[0]%360*hr,o=F[1]%360*hr,N()):[a*Ai,o*Ai]},M.rotate=function(F){return arguments.length?(s=F[0]%360*hr,l=F[1]%360*hr,c=F.length>2?F[2]%360*hr:0,N()):[s*Ai,l*Ai,c*Ai]},M.angle=function(F){return arguments.length?(f=F%360*hr,N()):f*Ai},M.reflectX=function(F){return arguments.length?(d=F?-1:1,N()):d<0},M.reflectY=function(F){return arguments.length?(h=F?-1:1,N()):h<0},M.precision=function(F){return arguments.length?(O=fP(E,S=F*F),D()):pa(S)},M.fitExtent=function(F,V){return Sv(M,F,V)},M.fitSize=function(F,V){return DC(M,F,V)},M.fitWidth=function(F,V){return FC(M,F,V)},M.fitHeight=function(F,V){return BC(M,F,V)};function N(){var F=dP(n,0,0,d,h,f).apply(null,t(a,o)),V=dP(n,r-F[0],i-F[1],d,h,f);return u=QH(s,l,c),E=K7(t,V),k=K7(u,E),O=fP(E,S),D()}function D(){return $=T=null,M}return function(){return t=e.apply(this,arguments),M.invert=t.invert&&R,N()}}function VC(e){var t=0,n=Qt/3,r=zC(e),i=r(t,n);return i.parallels=function(a){return arguments.length?r(t=a[0]*hr,n=a[1]*hr):[t*Ai,n*Ai]},i}function GPe(e){var t=Ut(e);function n(r,i){return[r*t,It(i)/t]}return n.invert=function(r,i){return[r/t,lo(i*t)]},n}function mG(e,t){var n=It(e),r=(n+It(t))/2;if(hn(r)<yt)return GPe(e);var i=1+n*(2*r-n),a=pa(i)/r;function o(s,l){var c=pa(i-2*r*It(l))/r;return[c*It(s*=r),a-c*Ut(s)]}return o.invert=function(s,l){var c=a-l,u=Ll(s,hn(c))*to(c);return c*r<0&&(u-=Qt*to(s)*to(c)),[u/r,lo((i-(s*s+c*c)*r*r)/(2*r))]},o}function i3(){return VC(mG).scale(155.424).center([0,33.6442])}function vG(){return i3().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function UPe(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function YPe(){var e,t,n=vG(),r,i=i3().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,o=i3().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s,l,c={point:function(d,h){l=[d,h]}};function u(d){var h=d[0],p=d[1];return l=null,r.point(h,p),l||(a.point(h,p),l)||(s.point(h,p),l)}u.invert=function(d){var h=n.scale(),p=n.translate(),g=(d[0]-p[0])/h,v=(d[1]-p[1])/h;return(v>=.12&&v<.234&&g>=-.425&&g<-.214?i:v>=.166&&v<.234&&g>=-.214&&g<-.115?o:n).invert(d)},u.stream=function(d){return e&&t===d?e:e=UPe([n.stream(t=d),i.stream(d),o.stream(d)])},u.precision=function(d){return arguments.length?(n.precision(d),i.precision(d),o.precision(d),f()):n.precision()},u.scale=function(d){return arguments.length?(n.scale(d),i.scale(d*.35),o.scale(d),u.translate(n.translate())):n.scale()},u.translate=function(d){if(!arguments.length)return n.translate();var h=n.scale(),p=+d[0],g=+d[1];return r=n.translate(d).clipExtent([[p-.455*h,g-.238*h],[p+.455*h,g+.238*h]]).stream(c),a=i.translate([p-.307*h,g+.201*h]).clipExtent([[p-.425*h+yt,g+.12*h+yt],[p-.214*h-yt,g+.234*h-yt]]).stream(c),s=o.translate([p-.205*h,g+.212*h]).clipExtent([[p-.214*h+yt,g+.166*h+yt],[p-.115*h-yt,g+.234*h-yt]]).stream(c),f()},u.fitExtent=function(d,h){return Sv(u,d,h)},u.fitSize=function(d,h){return DC(u,d,h)},u.fitWidth=function(d,h){return FC(u,d,h)},u.fitHeight=function(d,h){return BC(u,d,h)};function f(){return e=t=null,u}return u.scale(1070)}function yG(e){return function(t,n){var r=Ut(t),i=Ut(n),a=e(r*i);return a===1/0?[2,0]:[a*i*It(t),a*It(n)]}}function qp(e){return function(t,n){var r=pa(t*t+n*n),i=e(r),a=It(i),o=Ut(i);return[Ll(t*a,r*o),lo(r&&n*a/r)]}}var WC=yG(function(e){return pa(2/(1+e))});WC.invert=qp(function(e){return 2*lo(e/2)});function XPe(){return Ds(WC).scale(124.75).clipAngle(180-.001)}var HC=yG(function(e){return(e=JH(e))&&e/It(e)});HC.invert=qp(function(e){return e});function qPe(){return Ds(HC).scale(79.4188).clipAngle(180-.001)}function Zp(e,t){return[e,qm(RC((wr+t)/2))]}Zp.invert=function(e,t){return[e,2*jd(KH(t))-wr]};function ZPe(){return xG(Zp).scale(961/Pa)}function xG(e){var t=Ds(e),n=t.center,r=t.scale,i=t.translate,a=t.clipExtent,o=null,s,l,c;t.scale=function(f){return arguments.length?(r(f),u()):r()},t.translate=function(f){return arguments.length?(i(f),u()):i()},t.center=function(f){return arguments.length?(n(f),u()):n()},t.clipExtent=function(f){return arguments.length?(f==null?o=s=l=c=null:(o=+f[0][0],s=+f[0][1],l=+f[1][0],c=+f[1][1]),u()):o==null?null:[[o,s],[l,c]]};function u(){var f=Qt*r(),d=t(mPe(t.rotate()).invert([0,0]));return a(o==null?[[d[0]-f,d[1]-f],[d[0]+f,d[1]+f]]:e===Zp?[[Math.max(d[0]-f,o),s],[Math.min(d[0]+f,l),c]]:[[o,Math.max(d[1]-f,s)],[l,Math.min(d[1]+f,c)]])}return u()}function ng(e){return RC((wr+e)/2)}function bG(e,t){var n=Ut(e),r=e===t?It(e):qm(n/Ut(t))/qm(ng(t)/ng(e)),i=n*p4(ng(e),r)/r;if(!r)return Zp;function a(o,s){i>0?s<-wr+yt&&(s=-wr+yt):s>wr-yt&&(s=wr-yt);var l=i/p4(ng(s),r);return[l*It(r*o),i-l*Ut(r*o)]}return a.invert=function(o,s){var l=i-s,c=to(r)*pa(o*o+l*l),u=Ll(o,hn(l))*to(l);return l*r<0&&(u-=Qt*to(o)*to(l)),[u/r,2*jd(p4(i/c,1/r))-wr]},a}function KPe(){return VC(bG).scale(109.5).parallels([30,30])}function lp(e,t){return[e,t]}lp.invert=lp;function JPe(){return Ds(lp).scale(152.63)}function CG(e,t){var n=Ut(e),r=e===t?It(e):(n-Ut(t))/(t-e),i=n/r+e;if(hn(r)<yt)return lp;function a(o,s){var l=i-s,c=r*o;return[l*It(c),i-l*Ut(c)]}return a.invert=function(o,s){var l=i-s,c=Ll(o,hn(l))*to(l);return l*r<0&&(c-=Qt*to(o)*to(l)),[c/r,i-to(r)*pa(o*o+l*l)]},a}function QPe(){return VC(CG).scale(131.154).center([0,13.9389])}var vh=1.340264,yh=-.081106,xh=893e-6,bh=.003796,a3=pa(3)/2,eMe=12;function GC(e,t){var n=lo(a3*It(t)),r=n*n,i=r*r*r;return[e*Ut(n)/(a3*(vh+3*yh*r+i*(7*xh+9*bh*r))),n*(vh+yh*r+i*(xh+bh*r))]}GC.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,a=0,o,s,l;a<eMe&&(s=n*(vh+yh*r+i*(xh+bh*r))-t,l=vh+3*yh*r+i*(7*xh+9*bh*r),n-=o=s/l,r=n*n,i=r*r*r,!(hn(o)<ZH));++a);return[a3*e*(vh+3*yh*r+i*(7*xh+9*bh*r))/Ut(n),lo(It(n)/a3)]};function tMe(){return Ds(GC).scale(177.158)}function UC(e,t){var n=Ut(t),r=Ut(e)*n;return[n*It(e)/r,It(t)/r]}UC.invert=qp(jd);function nMe(){return Ds(UC).scale(144.049).clipAngle(60)}function rMe(){var e=1,t=0,n=0,r=1,i=1,a=0,o,s,l=null,c,u,f,d=1,h=1,p=_v({point:function(_,S){var O=C([_,S]);this.stream.point(O[0],O[1])}}),g=ap,v,y;function x(){return d=e*r,h=e*i,v=y=null,C}function C(_){var S=_[0]*d,O=_[1]*h;if(a){var E=O*o-S*s;S=S*o+O*s,O=E}return[S+t,O+n]}return C.invert=function(_){var S=_[0]-t,O=_[1]-n;if(a){var E=O*o+S*s;S=S*o-O*s,O=E}return[S/d,O/h]},C.stream=function(_){return v&&y===_?v:v=p(g(y=_))},C.postclip=function(_){return arguments.length?(g=_,l=c=u=f=null,x()):g},C.clipExtent=function(_){return arguments.length?(g=_==null?(l=c=u=f=null,ap):rG(l=+_[0][0],c=+_[0][1],u=+_[1][0],f=+_[1][1]),x()):l==null?null:[[l,c],[u,f]]},C.scale=function(_){return arguments.length?(e=+_,x()):e},C.translate=function(_){return arguments.length?(t=+_[0],n=+_[1],x()):[t,n]},C.angle=function(_){return arguments.length?(a=_%360*hr,s=It(a),o=Ut(
148a),x()):a*Ai},C.reflectX=function(_){return arguments.length?(r=_?-1:1,x()):r<0},C.reflectY=function(_){return arguments.length?(i=_?-1:1,x()):i<0},C.fitExtent=function(_,S){return Sv(C,_,S)},C.fitSize=function(_,S){return DC(C,_,S)},C.fitWidth=function(_,S){return FC(C,_,S)},C.fitHeight=function(_,S){return BC(C,_,S)},C}function YC(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),t*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}YC.invert=function(e,t){var n=t,r=25,i;do{var a=n*n,o=a*a;n-=i=(n*(1.007226+a*(.015085+o*(-.044475+.028874*a-.005916*o)))-t)/(1.007226+a*(.015085*3+o*(-.044475*7+.028874*9*a-.005916*11*o)))}while(hn(i)>yt&&--r>0);return[e/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function iMe(){return Ds(YC).scale(175.295)}function XC(e,t){return[Ut(t)*It(e),It(t)]}XC.invert=qp(lo);function aMe(){return Ds(XC).scale(249.5).clipAngle(90+yt)}function qC(e,t){var n=Ut(t),r=1+Ut(e)*n;return[n*It(e)/r,It(t)/r]}qC.invert=qp(function(e){return 2*jd(e)});function oMe(){return Ds(qC).scale(250).clipAngle(142)}function ZC(e,t){return[qm(RC((wr+t)/2)),-e]}ZC.invert=function(e,t){return[-t,2*jd(KH(e))-wr]};function sMe(){var e=xG(ZC),t=e.center,n=e.rotate;return e.center=function(r){return arguments.length?t([-r[1],r[0]]):(r=t(),[r[1],-r[0]])},e.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}const lMe=Object.freeze(Object.defineProperty({__proto__:null,geoAlbers:vG,geoAlbersUsa:YPe,geoAzimuthalEqualArea:XPe,geoAzimuthalEqualAreaRaw:WC,geoAzimuthalEquidistant:qPe,geoAzimuthalEquidistantRaw:HC,geoConicConformal:KPe,geoConicConformalRaw:bG,geoConicEqualArea:i3,geoConicEqualAreaRaw:mG,geoConicEquidistant:QPe,geoConicEquidistantRaw:CG,geoEqualEarth:tMe,geoEqualEarthRaw:GC,geoEquirectangular:JPe,geoEquirectangularRaw:lp,geoGnomonic:nMe,geoGnomonicRaw:UC,geoIdentity:rMe,geoMercator:ZPe,geoMercatorRaw:Zp,geoNaturalEarth1:iMe,geoNaturalEarth1Raw:YC,geoOrthographic:aMe,geoOrthographicRaw:XC,geoProjection:Ds,geoProjectionMutator:zC,geoStereographic:oMe,geoStereographicRaw:qC,geoTransverseMercator:sMe,geoTransverseMercatorRaw:ZC},Symbol.toStringTag,{value:"Module"}));var cMe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function uMe(e){if(typeof e=="function")return e;const t=`geo${jc(e)}`,n=lMe[t];if(!n)throw new Error(`Unknown coordinate: ${e}`);return n}function fMe(e){return{type:"FeatureCollection",features:e.flatMap(t=>dMe(t).features)}}function dMe(e){const t={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featureCollection"};if(!e||!e.type)return null;const n=t[e.type];if(!n)return null;if(n==="geometry")return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:e}]};if(n==="feature")return{type:"FeatureCollection",features:[e]};if(n==="featureCollection")return e}function hMe(e,t){var n;for(const[r,i]of Object.entries(t))(n=e[r])===null||n===void 0||n.call(e,i)}function pMe(e,t,n,r){const i=()=>{const s=t.filter(wG);return s.find(c=>c.sphere)?{type:"Sphere"}:fMe(s.filter(c=>!c.sphere).flatMap(c=>c.data.value))},{outline:a=i()}=r,{size:o="fitExtent"}=r;if(o==="fitExtent")return gMe(e,a,n);if(o==="fitWidth")return mMe(e,a,n)}function gMe(e,t,n){const{x:r,y:i,width:a,height:o}=n;e.fitExtent([[r,i],[a,o]],t)}function mMe(e,t,n){const{width:r,height:i}=n,[[a,o],[s,l]]=gG(e.fitWidth(r,t)).bounds(t),c=Math.ceil(l-o),u=Math.min(Math.ceil(s-a),c),f=e.scale()*(u-1)/u,[d,h]=e.translate(),p=h+(i-c)/2;e.scale(f).translate([d,p]).precision(.2)}function vMe(e){const{data:t}=e;if(Array.isArray(t))return Object.assign(Object.assign({},e),{data:{value:t}});const{type:n}=t;return n==="graticule10"?Object.assign(Object.assign({},e),{data:{value:[kPe()]}}):n==="sphere"?Object.assign(Object.assign({},e),{sphere:!0,data:{value:[{type:"Sphere"}]}}):e}function wG(e){return e.type==="geoPath"}const _G=()=>e=>{const{children:t,coordinate:n={}}=e;if(!Array.isArray(t))return[];const{type:r="equalEarth"}=n,i=cMe(n,["type"]),a=uMe(r),o=t.map(vMe);let s;function l(){return[["custom",(f,d,h,p)=>{const g=a();pMe(g,o,{x:f,y:d,width:h,height:p},i),hMe(g,i),s=gG(g);const y=new Gn({domain:[f,f+h]}),x=new Gn({domain:[d,d+p]}),C=S=>{const O=g(S);
148if(!O)return[null,null];const[E,k]=O;return[y.map(E),x.map(k)]},_=S=>{if(!S)return null;const[O,E]=S,k=[y.invert(O),x.invert(E)];return g.invert(k)};return{transform:S=>C(S),untransform:S=>_(S)}}]]}function c(f){const{style:d,tooltip:h={}}=f;return Object.assign(Object.assign({},f),{type:"path",tooltip:Fm(h,{title:"id",items:[{channel:"color"}]}),style:Object.assign(Object.assign({},d),{d:p=>s(p)||[]})})}const u=f=>wG(f)?c(f):f;return[Object.assign(Object.assign({},e),{type:"view",scale:{x:{type:"identity"},y:{type:"identity"}},axis:!1,coordinate:{type:l},children:o.flatMap(u)})]};_G.props={};function yMe(e){return Qp(e,t=>t.className==="component")}function xMe(e){return Qp(e,t=>t.className==="element")}function bMe(e){return Qp(e,t=>t.className==="label")}function Kr(e,t,n,r=i=>!0){return i=>{if(!r(i))return;n.emit(`plot:${e}`,i);const{target:a}=i;if(!a)return;const{className:o}=a;if(o==="plot")return;const s=xMe(a),l=yMe(a),c=bMe(a),u=s||l||c;if(!u)return;const{className:f,markType:d}=u,h=Object.assign(Object.assign({},i),{nativeEvent:!0});f==="element"?(h.data={data:aD(u,t)},n.emit(`element:${e}`,h),n.emit(`${d}:${e}`,h)):f==="label"?(h.data={data:u.attributes.datum},n.emit(`label:${e}`,h),n.emit(`${o}:${e}`,h)):(n.emit(`component:${e}`,h),n.emit(`${o}:${e}`,h))}}function SG(){return(e,t,n)=>{const{container:r,view:i}=e,a=Kr(xn.CLICK,i,n,E=>E.detail===1),o=Kr(xn.DBLCLICK,i,n,E=>E.detail===2),s=Kr(xn.POINTER_TAP,i,n),l=Kr(xn.POINTER_DOWN,i,n),c=Kr(xn.POINTER_UP,i,n),u=Kr(xn.POINTER_OVER,i,n),f=Kr(xn.POINTER_OUT,i,n),d=Kr(xn.POINTER_MOVE,i,n),h=Kr(xn.POINTER_ENTER,i,n),p=Kr(xn.POINTER_LEAVE,i,n),g=Kr(xn.POINTER_UPOUTSIDE,i,n),v=Kr(xn.DRAG_START,i,n),y=Kr(xn.DRAG,i,n),x=Kr(xn.DRAG_END,i,n),C=Kr(xn.DRAG_ENTER,i,n),_=Kr(xn.DRAG_LEAVE,i,n),S=Kr(xn.DRAG_OVER,i,n),O=Kr(xn.DROP,i,n);return r.addEventListener("click",a),r.addEventListener("click",o),r.addEventListener("pointertap",s),r.addEventListener("pointerdown",l),r.addEventListener("pointerup",c),r.addEventListener("pointerover",u),r.addEventListener("pointerout",f),r.addEventListener("pointermove",d),r.addEventListener("pointerenter",h),r.addEventListener("pointerleave",p),r.addEventListener("pointerupoutside",g),r.addEventListener("dragstart",v),r.addEventListener("drag",y),r.addEventListener("dragend",x),r.addEventListener("dragenter",C),r.addEventListener("dragleave",_),r.addEventListener("dragover",S),r.addEventListener("drop",O),()=>{r.removeEventListener("click",a),r.removeEventListener("click",o),r.removeEventListener("pointertap",s),r.removeEventListener("pointerdown",l),r.removeEventListener("pointerup",c),r.removeEventListener("pointerover",u),r.removeEventListener("pointerout",f),r.removeEventListener("pointermove",d),r.removeEventListener("pointerenter",h),r.removeEventListener("pointerleave",p),r.removeEventListener("pointerupoutside",g),r.removeEventListener("dragstart",v),r.removeEventListener("drag",y),r.removeEventListener("dragend",x),r.removeEventListener("dragenter",C),r.removeEventListener("dragleave",_),r.removeEventListener("dragover",S),r.removeEventListener("drop",O)}}}SG.props={reapplyWhenUpdate:!0};function CMe(){return{"component.axisRadar":tH,"component.axisLinear":Gc,"component.axisArc":JW,"component.legendContinuousBlock":nH,"component.legendContinuousBlockSize":rH,"component.legendContinuousSize":wC,"interaction.event":SG,"composition.mark":HH,"composition.view":WH,"shape.label.label":hV}}var wMe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Kn(e,t){const n=Object.assign(Object.assign({},CMe()),t),r=a=>{if(typeof a!="string")return a;const o=`${e}.${a}`;return n[o]||ld(`Unknown Component: ${o}`)};return[(a,o)=>{const{type:s}=a,l=wMe(a,["type"]);s||ld("Plot type is required!");const c=r(s);return c==null?void 0:c(l,o)},r]}function OG(e){const{canvas:t,group:n}=e;return(t==null?void 0:t.document)||(n==null?void 0:n.ownerDocument)||ld("Cannot find library document")}var hP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function _Me(e,t,n){const[r]=Kn("coordinate",n),{innerHeight:i,innerWidth:a,insetLeft:o,insetTop:s,insetRight:l,insetBottom:c}=e,{coordinates:u=[]}=t,f=AMe(u),d=f[0].type==="cartesian3D",h=Object.assign(Object.assign({},e),{x:o,y:s,width:a-o-l,height:i-c-s,transformations:f.flatMap(r)});return d?new HTe(h):new VTe(h)}function EG(e,t){const{coordinate:n={},coordinates:r}=e,i=hP(e,["coordinate","coordinates"]);if(r)return e;const{type:a,transform:o=[]}=n,s=hP(n,["type","transform"]);if(!a)return Object.assign(Object.assign({},i),{coordinates:o});const[,l]=Kn("coordinate",t),{transform:c=!1}=l(a).props||{};if(c)throw new Error(`Unknown coordinate: ${a}.`);return Object.assign(Object.assign({},i),{coordinates:[Object.assign({type:a},s),...o]})}function Ho(e,t){return e.filter(n=>n.type===t)}function Fu(e){return Ho(e,"polar").length>0}function SMe(e){return Ho(e,"helix").length>0}function G0(e){return Ho(e,"transpose").length%2===1}function OMe(e){return Ho(e,"parallel").length>0}function kG(e){return Ho(e,"theta").length>0}function EMe(e){return Ho(e,"reflect").length>0}function Ch(e){return Ho(e,"radial").length>0}function AG(e){return Ho(e,"radar").length>0}function kMe(e){return Ho(e,"reflectY").length>0}function AMe(e){return e.find(t=>t.type==="cartesian"||t.type==="cartesian3D")?e:[...e,{type:"cartesian"}]}function Bt(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const $Me=Bt("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),TMe=Bt("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),PMe=Bt("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),MMe=Bt("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),NMe=Bt("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),IMe=Bt("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),LMe=Bt("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),RMe=Bt("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),jMe=Bt("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),DMe=Bt("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),FMe=Bt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Ov(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function KC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Dd(){}var sf=.7,_d=1/sf,U0="\\s*([+-]?\\d+)\\s*",cp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ts="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",BMe=/^#([0-9a-f]{3,8})$/,zMe=new RegExp(`^rgb\\(${U0},${U0},${U0}\\)$`),VMe=new RegExp(`^rgb\\(${Ts},${Ts},${Ts}\\)$`),WMe=new RegExp(`^rgba\\(${U0},${U0},${U0},${cp}\\)$`),HMe=new RegExp(`^rgba\\(${Ts},${Ts},${Ts},${cp}\\)$`),GMe=new RegExp(`^hsl\\(${cp},${Ts},${Ts}\\)$`),UMe=new RegExp(`^hsla\\(${cp},${Ts},${Ts},${cp}\\)$`),pP={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};Ov(Dd,JC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:gP,formatHex:gP,formatHex8:YMe,formatHsl:XMe,formatRgb:mP,toString:mP});function gP(){return this.rgb().formatHex()}function YMe(){return this.rgb().formatHex8()}function XMe(){return TG(this).formatHsl()}function mP(){return this.rgb().formatRgb()}function JC(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=BMe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?vP(t):n===3?new Li(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?rg(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?rg(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=zMe.exec(e))?new Li(t[1],t[2],t[3],1):(t=VMe.exec(e))?new Li(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=WMe.exec(e))?rg(t[1],t[2],t[3],t[4]):(t=HMe.exec(e))?rg(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=GMe.exec(e))?bP(t[1],t[2]/100,t[3]/100,1):(t=UMe.exec(e))?bP(t[1],t[2]/100,t[3]/100,t[4]):pP.hasOwnProperty(e)?vP(pP[e]):e==="transparent"?new Li(NaN,NaN,NaN,0):null}function vP(e){return new Li(e>>16&255,e>>8&255,e&255,1)}function rg(e,t,n,r){return r<=0&&(e=t=n=NaN),new Li(e,t,n,r)}function $G(e){return e instanceof Dd||(e=JC(e)),e?(e=e.rgb(),new Li(e.r,e.g,e.b,e.opacity)):new Li}
vendor: 8,442 bytes, line 148
148function up(e,t,n,r){return arguments.length===1?$G(e):new Li(e,t,n,r??1)}function Li(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Ov(Li,up,KC(Dd,{brighter(e){return e=e==null?_d:Math.pow(_d,e),new Li(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?sf:Math.pow(sf,e),new Li(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Li(Uu(this.r),Uu(this.g),Uu(this.b),o3(this.opacity))},displayable(){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:yP,formatHex:yP,formatHex8:qMe,formatRgb:xP,toString:xP}));function yP(){return`#${Bu(this.r)}${Bu(this.g)}${Bu(this.b)}`}function qMe(){return`#${Bu(this.r)}${Bu(this.g)}${Bu(this.b)}${Bu((isNaN(this.opacity)?1:this.opacity)*255)}`}function xP(){const e=o3(this.opacity);return`${e===1?"rgb(":"rgba("}${Uu(this.r)}, ${Uu(this.g)}, ${Uu(this.b)}${e===1?")":`, ${e})`}`}function o3(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Uu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bu(e){return e=Uu(e),(e<16?"0":"")+e.toString(16)}function bP(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ro(e,t,n,r)}function TG(e){if(e instanceof Ro)return new Ro(e.h,e.s,e.l,e.opacity);if(e instanceof Dd||(e=JC(e)),!e)return new Ro;if(e instanceof Ro)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Ro(o,s,l,e.opacity)}function ZMe(e,t,n,r){return arguments.length===1?TG(e):new Ro(e,t,n,r??1)}function Ro(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ov(Ro,ZMe,KC(Dd,{brighter(e){return e=e==null?_d:Math.pow(_d,e),new Ro(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?sf:Math.pow(sf,e),new Ro(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Li(x4(e>=240?e-240:e+120,i,r),x4(e,i,r),x4(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ro(CP(this.h),ig(this.s),ig(this.l),o3(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=o3(this.opacity);return`${e===1?"hsl(":"hsla("}${CP(this.h)}, ${ig(this.s)*100}%, ${ig(this.l)*100}%${e===1?")":`, ${e})`}`}}));function CP(e){return e=(e||0)%360,e<0?e+360:e}function ig(e){return Math.max(0,Math.min(1,e||0))}function x4(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const KMe=Math.PI/180,JMe=180/Math.PI;var PG=-.14861,QC=1.78277,ew=-.29227,Ev=-.90649,fp=1.97294,wP=fp*Ev,_P=fp*QC,SP=QC*ew-Ev*PG;function QMe(e){if(e instanceof Yu)return new Yu(e.h,e.s,e.l,e.opacity);e instanceof Li||(e=$G(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(SP*r+wP*t-_P*n)/(SP+wP-_P),a=r-i,o=(fp*(n-i)-ew*a)/Ev,s=Math.sqrt(o*o+a*a)/(fp*i*(1-i)),l=s?Math.atan2(o,a)*JMe-120:NaN;return new Yu(l<0?l+360:l,s,i,e.opacity)}function Rs(e,t,n,r){return arguments.length===1?QMe(e):new Yu(e,t,n,r??1)}function Yu(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ov(Yu,Rs,KC(Dd,{brighter(e){return e=e==null?_d:Math.pow(_d,e),new Yu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?sf:Math.pow(sf,e),new Yu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*KMe,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Li(255*(t+n*(PG*r+QC*i)),255*(t+n*(ew*r+Ev*i)),255*(t+n*(fp*r)),this.opacity)}}));function eNe(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function tNe(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return eNe((n-r/t)*t,o,i,a,s)}}const tw=e=>()=>e;function MG(e,t){return function(n){return e+n*t}}function nNe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function rNe(e,t){var n=t-e;return n?MG(e,n>180||n<-180?n-360*Math.round(n/360):n):tw(isNaN(e)?t:e)}function iNe(e){return(e=+e)==1?Y0:function(t,n){return n-t?nNe(t,n,e):tw(isNaN(t)?n:t)}}function Y0(e,t){var n=t-e;return n?MG(e,n):tw(isNaN(e)?t:e)}const AYe=function e(t){var n=iNe(t);function r(i,a){var o=n((i=up(i)).r,(a=up(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),c=Y0(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function aNe(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=up(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(l){return s.r=r(l),s.g=i(l),s.b=a(l),s+""}}}var oNe=aNe(tNe);function NG(e){return function t(n){n=+n;function r(i,a){var o=e((i=Rs(i)).h,(a=Rs(a)).h),s=Y0(i.s,a.s),l=Y0(i.l,a.l),c=Y0(i.opacity,a.opacity);return function(u){return i.h=o(u),i.s=s(u),i.l=l(Math.pow(u,n)),i.opacity=c(u),i+""}}return r.gamma=t,r}(1)}NG(rNe);var nw=NG(Y0);const Xn=e=>oNe(e[e.length-1]);var IG=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Bt);const sNe=Xn(IG);var LG=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Bt);const lNe=Xn(LG);var RG=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Bt);const cNe=Xn(RG);var jG=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Bt);const uNe=Xn(jG);var DG=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Bt);const fNe=Xn(DG);var FG=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Bt);const dNe=Xn(FG);var BG=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Bt);const hNe=Xn(BG);var zG=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d
1487191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Bt);const pNe=Xn(zG);var VG=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Bt);const gNe=Xn(VG);var WG=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Bt);const mNe=Xn(WG);var HG=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Bt);const vNe=Xn(HG);var GG=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Bt);const yNe=Xn(GG);var UG=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Bt);const xNe=Xn(UG);var YG=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Bt);const bNe=Xn(YG);var XG=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Bt);const CNe=Xn(XG);var qG=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Bt);const wNe=Xn(qG);var ZG=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Bt);const _Ne=Xn(ZG);var KG=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Bt);const SNe=Xn(KG);var JG=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Bt);const ONe=Xn(JG);var QG=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Bt);const ENe=Xn(QG);var eU=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Bt);const kNe=Xn(eU);var tU=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ec
148ae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Bt);const ANe=Xn(tU);var nU=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Bt);const $Ne=Xn(nU);var rU=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Bt);const TNe=Xn(rU);var iU=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Bt);const PNe=Xn(iU);var aU=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Bt);const MNe=Xn(aU);var oU=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Bt);const NNe=Xn(oU);function INe(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const LNe=nw(Rs(300,.5,0),Rs(-240,.5,1));var RNe=nw(Rs(-100,.75,.35),Rs(80,1.5,.8)),jNe=nw(Rs(260,.75,.35),Rs(80,1.5,.8)),ag=Rs();function DNe(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return ag.h=360*e-100,ag.s=1.5-1.5*t,ag.l=.8-.9*t,ag+""}var og=up(),FNe=Math.PI/3,BNe=Math.PI*2/3;function zNe(e){var t;return e=(.5-e)*Math.PI,og.r=255*(t=Math.sin(e))*t,og.g=255*(t=Math.sin(e+FNe))*t,og.b=255*(t=Math.sin(e+BNe))*t,og+""}function VNe(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function kv(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const WNe=kv(Bt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc
1485c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var HNe=kv(Bt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),GNe=kv(Bt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),UNe=kv(Bt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));const l8=Object.freeze(Object.defineProperty({__proto__:null,interpolateBlues:ANe,interpolateBrBG:sNe,interpolateBuGn:mNe,interpolateBuPu:vNe,interpolateCividis:INe,interpolateCool:jNe,interpolateCubehelixDefault:LNe,interpolateGnBu:yNe,interpolateGreens:$Ne,interpolateGreys:TNe,interpolateInferno:GNe,interpolateMagma:HNe,interpolateOrRd:xNe,interpolateOranges:NNe,interpolatePRGn:lNe,interpolatePiYG:cNe,interpolatePlasma:UNe,interpolatePuBu:CNe,interpolatePuBuGn:bNe,interpolatePuOr:uNe,interpolatePuRd:wNe,interpolatePurples:PNe,interpolateRainbow:DNe,interpolateRdBu:fNe,interpolateRdGy:dNe,interpolateRdPu:_Ne,interpolateRdYlBu:hNe,interpolateRdYlGn:pNe,interpolateReds:MNe,interpolateSinebow:zNe,interpolateSpectral:gNe,interpolateTurbo:VNe,interpolateViridis:WNe,interpolateWarm:RNe,interpolateYlGn:ONe,interpolateYlGnBu:SNe,interpolateYlOrBr:ENe,interpolateYlOrRd:kNe,schemeAccent:TMe,schemeBlues:tU,schemeBrBG:IG,schemeBuGn:WG,schemeBuPu:HG,schemeCategory10:$Me,schemeDark2:PMe,schemeGnBu:GG,schemeGreens:nU,schemeGreys:rU,schemeObservable10:MMe,schemeOrRd:UG,schemeOranges:oU,schemePRGn:LG,schemePaired:NMe,sc
148hemePastel1:IMe,schemePastel2:LMe,schemePiYG:RG,schemePuBu:XG,schemePuBuGn:YG,schemePuOr:jG,schemePuRd:qG,schemePurples:iU,schemeRdBu:DG,schemeRdGy:FG,schemeRdPu:ZG,schemeRdYlBu:BG,schemeRdYlGn:zG,schemeReds:aU,schemeSet1:RMe,schemeSet2:jMe,schemeSet3:DMe,schemeSpectral:VG,schemeTableau10:FMe,schemeYlGn:JG,schemeYlGnBu:KG,schemeYlOrBr:QG,schemeYlOrRd:eU},Symbol.toStringTag,{value:"Module"}));function YNe(e,t,n,r,i,a){const{guide:o={}}=n,s=rIe(e,t,n);if(typeof s!="string")return n;const l=iIe(s,e,t,n),c=eIe(s,l,n);return Object.assign(Object.assign(Object.assign({},n),oIe(s,e,t,n,r)),{domain:c,range:aIe(s,e,t,n,c,i,a),expectedDomain:l,guide:o,name:e,type:s})}function XNe(e,t){const n={};for(const r of e){const{values:i,name:a}=r,o=t[a];for(const s of i){const{name:l,value:c}=s;n[l]=c.map(u=>o.map(u))}}return n}function qNe(e,t){const n=Array.from(e.values()).flatMap(i=>i.channels);tb(n,i=>i.map(a=>t.get(a.scale.uid)),i=>i.name).filter(([,i])=>i.some(a=>typeof a.getOptions().groupTransform=="function")&&i.every(a=>a.getTicks)).map(i=>i[1]).forEach(i=>{const a=i.map(o=>o.getOptions().groupTransform)[0];a(i)})}function ZNe(e,t){var n;const{components:r=[]}=t,i=["scale","encode","axis","legend","data","transform"],a=Array.from(new Set(e.flatMap(s=>s.channels.map(l=>l.scale)))),o=new Map(a.map(s=>[s.name,s]));for(const s of r){const l=QNe(s);for(const c of l){const u=o.get(c),f=((n=s.scale)===null||n===void 0?void 0:n[c])||{},{independent:d=!1}=f;if(u&&!d){const{guide:h}=u,p=typeof h=="boolean"?{}:h;u.guide=_e({},p,s),Object.assign(u,f)}else{const h=Object.assign(Object.assign({},f),{expectedDomain:f.domain,name:c,guide:Yx(s,i)});a.push(h)}}}return a}function KNe(e){if(!e||!Array.isArray(e))return[ef,ef];let t,n;return[a=>{var o;t=a.map.bind(a),n=(o=a.invert)===null||o===void 0?void 0:o.bind(a);const s=e.filter(([d])=>typeof d=="function"),l=e.filter(([d])=>typeof d!="function"),c=new Map(l);if(a.map=d=>{for(const[h,p]of s)if(h(d))return p;return c.has(d)?c.get(d):t(d)},!n)return a;const u=new Map(l.map(([d,h])=>[h,d])),f=new Map(s.map(([d,h])=>[h,d]));return a.invert=d=>f.has(d)?d:u.has(d)?u.get(d):n(d),a},a=>(t!==null&&(a.map=t),n!==null&&(a.invert=n),a)]}function OP(e,t){const n=Object.keys(e);for(const r of Object.values(t)){const{name:i}=r.getOptions();if(!(i in e))e[i]=r;else{const a=n.filter(l=>l.startsWith(i)).map(l=>+(l.replace(i,"")||0)),o=bn(a)+1,s=`${i}${o}`;e[s]=r,r.getOptions().key=s}}return e}function EP(e,t){const[n]=Kn("scale",t),{relations:r}=e,[i]=KNe(r),a=n(e);return i(a)}function JNe(e){const t=e.flatMap(n=>Array.from(n.values())).flatMap(n=>n.channels.map(r=>r.scale));kP(t,"x"),kP(t,"y")}function QNe(e){const{channels:t=[],type:n,scale:r={}}=e,i=["shape","color","opacity","size"];return t.length!==0?t:n==="axisX"?["x"]:n==="axisY"?["y"]:n==="legends"?Object.keys(r).filter(a=>i.includes(a)):[]}function kP(e,t){const n=e.filter(({name:a,facet:o=!0})=>o&&a===t),r=n.flatMap(a=>a.domain),i=n.every(sU)?Ol(r):n.every(lU)?Array.from(new Set(r)):null;if(i!==null)for(const a of n)a.domain=i}function eIe(e,t,n){const{ratio:r}=n;return r==null?t:sU({type:e})?tIe(t,r,e):lU({type:e})?nIe(t,r):t}function tIe(e,t,n){const r=e.map(Number),i=new Gn({domain:r,range:[r[0],r[0]+(r[r.length-1]-r[0])*t]});return n==="time"?e.map(a=>new Date(i.map(a))):e.map(a=>i.map(a))}function nIe(e,t){const n=Math.round(e.length*t);return e.slice(0,n)}function sU(e){const{type:t}=e;return typeof t!="string"?!1:["linear","log","pow","time"].includes(t)}function lU(e){const{type:t}=e;return typeof t!="string"?!1:["band","point","ordinal"].includes(t)}function rIe(e,t,n){const{type:r,domain:i,range:a,quantitative:o,ordinal:s}=n;return r!==void 0?r:yIe(t)?"identity":typeof a=="string"?"linear":(i||a||[]).length>2?b4(e,s):i!==void 0?PP([i])?b4(e,s):MP(t)?"time":$P(e,a,o):PP(t)?b4(e,s):MP(t)?"time":$P(e,a,o)}function iIe(e,t,n,r){const{domain:i}=r;if(i!==void 0)return i;switch(e){case"linear":case"time":case"log":case"pow":case"sqrt":case"quantize":case"threshold":return TP(hIe(n,r),r);case"band":case"ordinal":case"point":return pIe(n);case"quantile":return gIe(n);case"sequential":return TP(mIe(n),r);default:return[]}}function aIe(e,t,n,r,i,a,o){const{range:s}=r;if(typeof s=="string")return sIe(s);if(s!==void 0)return s;const{rangeMin:l,rangeMax:c}=r;switch(e){case"linear":case"time":case"log":case"pow":case"sqrt":{const u=AP(n,r,i,a,o),[f,d]=vIe(t,u);return[l??f,c??d]}case"band":case"point":return[l??(t==="size"?5:0),c??(t==="size"?10:1)];case"ordinal":return AP(n,r,i,a,o);case"sequential":return;case"constant":return[n[0][0]];default:return[]}}function oIe(e,t,n,r,i){switch(e){case"linear":case"time":case"log":case"pow":case"sqrt":return uIe(i,r);case"band":case"point":return fIe(e,t,i,r);case"sequential":return cIe(r);default:return r}}function AP(e,t,n,r,i){const[a]=Kn("palette",i),{category10:o,category20:s}=r,l=M9e(n).length<=o.length?o:s,{palette:c=l,offset:u}=t;if(Array.isArray(c))return c;try{return a({type:c})}catch{const d=lIe(c,n,u);if(d)return d;throw new Error(`Unknown Component: ${c} `)}}function sIe(e){return e.split("-")}
148function lIe(e,t,n=r=>r){if(!e)return null;const r=jc(e),i=l8[`scheme${r}`],a=l8[`interpolate${r}`];if(!i&&!a)return null;if(i){if(!i.some(Array.isArray))return i;const o=i[t.length];if(o)return o}return t.map((o,s)=>a(n(s/t.length)))}function cIe(e){const{palette:t="ylGnBu",offset:n}=e,r=jc(t),i=l8[`interpolate${r}`];if(!i)throw new Error(`Unknown palette: ${r}`);return{interpolator:n?a=>i(n(a)):i}}function uIe(e,t){const{interpolate:n=Mp,nice:r=!1,tickCount:i=5}=t;return Object.assign(Object.assign({},t),{interpolate:n,nice:r,tickCount:i})}function fIe(e,t,n,r){if(r.padding!==void 0||r.paddingInner!==void 0||r.paddingOuter!==void 0)return Object.assign(Object.assign({},r),{unknown:NaN});const i=dIe(e,t,n),{paddingInner:a=i,paddingOuter:o=i}=r;return Object.assign(Object.assign({},r),{paddingInner:a,paddingOuter:o,padding:i,unknown:NaN})}function dIe(e,t,n){return t==="enterDelay"||t==="enterDuration"||t==="size"?0:e==="band"?kG(n)?0:.1:e==="point"?.5:0}function b4(e,t){return t||(xIe(e)?"point":"ordinal")}function $P(e,t,n){return n||(e!=="color"||t?"linear":"sequential")}function TP(e,t){if(e.length===0)return e;const{domainMin:n,domainMax:r}=t,[i,a]=e;return[n??i,r??a]}function hIe(e,t){const{zero:n=!1}=t;let r=1/0,i=-1/0;for(const a of e)for(const o of a)Dn(o)&&(r=Math.min(r,+o),i=Math.max(i,+o));return r===1/0?[]:n?[Math.min(0,r),i]:[r,i]}function pIe(e){return Array.from(new Set(e.flat()))}function gIe(e){return e.flat().sort()}function mIe(e){let t=1/0,n=-1/0;for(const r of e)for(const i of r)Dn(i)&&(t=Math.min(t,+i),n=Math.max(n,+i));return t===1/0?[]:[t<0?-n:t,n]}function vIe(e,t){return e==="enterDelay"?[0,1e3]:e=="enterDuration"?[300,1e3]:e.startsWith("y")||e.startsWith("position")?[1,0]:e==="color"?[P9e(t),lD(t)]:e==="opacity"?[0,1]:e==="size"?[1,10]:[0,1]}function PP(e){return rw(e,t=>{const n=typeof t;return n==="string"||n==="boolean"})}function MP(e){return rw(e,t=>t instanceof Date)}function yIe(e){return rw(e,cd)}function rw(e,t){for(const n of e)if(n.some(t))return!0;return!1}function xIe(e){return e.startsWith("x")||e.startsWith("y")||e.startsWith("position")||e.startsWith("size")}function bIe(e){return e.startsWith("x")||e.startsWith("y")||e.startsWith("position")||e==="enterDelay"||e==="enterDuration"||e==="updateDelay"||e==="updateDuration"||e==="exitDelay"||e==="exitDuration"}function CIe(e){if(!e||!e.type)return!1;if(typeof e.type=="function")return!0;const{type:t,domain:n,range:r,interpolator:i}=e,a=n&&n.length>0,o=r&&r.length>0;return!!(["linear","sqrt","log","time","pow","threshold","quantize","quantile","ordinal","band","point"].includes(t)&&a&&o||["sequential"].includes(t)&&a&&(o||i)||["constant","identity"].includes(t)&&o)}const wIe={linear:"linear",identity:"identity",log:"log",pow:"pow",sqrt:"sqrt",sequential:"sequential"},_Ie={threshold:"threshold",quantize:"quantize",quantile:"quantile"},SIe={ordinal:"ordinal",band:"band",point:"point"},OIe={constant:"constant"};var Yc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function EIe(e,t,n){const{coordinates:r=[],title:i}=t,[,a]=Kn("component",n),o=e.filter(({guide:u})=>u!==null),s=[],l=RIe(t,e,n);if(s.push(...l),i){const{props:u}=a("title"),{defaultPosition:f,defaultOrientation:d,defaultOrder:h,defaultSize:p,defaultCrossPadding:g}=u,v=typeof i=="string"?{title:i}:i;s.push(Object.assign({type:"title",position:f,orientation:d,order:h,crossPadding:g[0],defaultSize:p},v))}return PIe(o,r).forEach(([u,f])=>{const{props:d}=a(u),{defaultPosition:h,defaultPlane:p="xy",defaultOrientation:g,defaultSize:v,defaultOrder:y,defaultLength:x,defaultPadding:C=[0,0],defaultCrossPadding:_=[0,0]}=d,S=_e({},...f),{guide:O,field:E}=S,k=Array.isArray(O)?O:[O];for(const $ of k){const[T,M]=IIe(u,h,g,$,f,o,r);if(!T&&!M)continue;const R=T==="left"||T==="right",N=R?C[1]:C[0],D=R?_[1]:_[0],{size:F,order:V=y,length:z=x,padding:B=N,crossPadding:G=D}=$;s.push(Object.assign(Object.assign({title:E},$),{defaultSize:v,length:z,position:T,plane:p,orientation:M,padding:B,order:V,crossPadding:G,size:F,type:u,scales:f}))}}),s}function NP(e,t,n,r,i){const[a]=Kn("component",r),{scaleInstances:o,scale:s,bbox:l}=e,c=Yc(e,["scaleInstances","scale","bbox"]),u={bbox:l,library:r};return a(c)({coordinate:t,library:r,markState:i,scales:o,theme:n,value:u,scale:s})}function kIe(e){return e.map(t=>{const n=_e(t,t.style);return delete n.style,n})}function cU(e,t){const n=["left","right","bottom","top"];return Qx(e,({type:a,position:o,group:s})=>n.includes(o)?s===void 0?a.startsWith("legend")?`legend-${o}`:Symbol("independent"):s==="independent"?Symbol("independent"):s:Symbol("independent")).flatMap(([,a])=>{if(a.length===1)return a[0];if(t!==void 0){const u=a.filter(g=>g.length!==void 0).map(g=>g.length),f=io(u);if(f>t)return a.forEach(g=>g.group=Symbol("independent")),a;const d=t-f,h=a.length-u.length,p=d/h;a.forEach(g=>{g.length===void 0&&(g.length=p)})}const o=bn(a,u=>u.size),s=bn(a,u=>u.order),l=bn(a,u=>u.crossPadding),c=a[0].position;return{type:"group",size:o,order:s,position:c,children:a,crossPadding:l}})}function AIe(e,t){const n=["shape","size","color","opacity"],r=(d,h)=>
148d==="constant"&&h==="size",i=e.filter(({type:d,name:h})=>typeof d=="string"&&n.includes(h)&&!r(d,h)),a=i.filter(({type:d})=>d==="constant"),o=i.filter(({type:d})=>d!=="constant"),l=Qx(o,d=>d.field?d.field:Symbol("independent")).map(([d,h])=>[d,[...h,...a]]).filter(([,d])=>d.some(h=>h.type!=="constant")),c=new Map(l);if(c.size===0)return[];const u=d=>d.sort(([h],[p])=>h.localeCompare(p));return Array.from(c).map(([,d])=>{const p=N9e(d).sort((g,v)=>v.length-g.length).map(g=>({combination:g,option:g.map(v=>[v.name,$Ie(v)])}));for(const{option:g,combination:v}of p)if(!g.every(y=>y[1]==="constant")&&g.every(y=>y[1]==="discrete"||y[1]==="constant"))return["legendCategory",v];for(const[g,v]of eTe)for(const{option:y,combination:x}of p)if(v.some(C=>lm(u(C),u(y))))return[g,x];return null}).filter(Dn)}function $Ie(e){const{type:t}=e;return typeof t!="string"?null:t in wIe?"continuous":t in SIe?"discrete":t in _Ie?"distribution":t in OIe?"constant":null}function TIe(e,t){return e.map(n=>{const{name:r}=n;if(SMe(t)||kG(t)||G0(t)&&(Fu(t)||Ch(t)))return null;if(r.startsWith("x"))return Fu(t)?["axisArc",[n]]:Ch(t)?["axisLinear",[n]]:[G0(t)?"axisY":"axisX",[n]];if(r.startsWith("y"))return Fu(t)?["axisLinear",[n]]:Ch(t)?["axisArc",[n]]:[G0(t)?"axisX":"axisY",[n]];if(r.startsWith("z"))return["axisZ",[n]];if(r.startsWith("position")){if(AG(t))return["axisRadar",[n]];if(!Fu(t))return["axisY",[n]]}return null}).filter(Dn)}function PIe(e,t){const n=e.filter(r=>CIe(r));return[...AIe(n),...TIe(n,t)]}function c8(e){const t=Ho(e,"polar");if(t.length){const r=t[t.length-1],{startAngle:i,endAngle:a}=NR(r);return[i,a]}const n=Ho(e,"radial");if(n.length){const r=n[n.length-1],{startAngle:i,endAngle:a}=RR(r);return[i,a]}return[-Math.PI/2,Math.PI/2*3]}function MIe(e){const t=/position(\d*)/g.exec(e);return t?+t[1]:null}function NIe(e,t,n,r,i){const{name:a}=n[0];if(e==="axisRadar"){const o=r.filter(d=>d.name.startsWith("position")),s=MIe(a);if(s===null)return[null,null];const[l,c]=c8(i),u=AG(i)?o.length:o.length-1;return["center",(c-l)/u*s+l]}if(e==="axisY"&&OMe(i))return G0(i)?["center","horizontal"]:["center","vertical"];if(e==="axisLinear"){const[o]=c8(i);return["center",o]}return e==="axisArc"?t[0]==="inner"?["inner",null]:["outer",null]:Fu(i)?["center",null]:Ch(i)?["center",null]:e==="axisX"&&EMe(i)||e==="axisX"&&kMe(i)?["top",null]:t}function IIe(e,t,n,r,i,a,o){const[s]=c8(o),l=[r.position||t,s??n];return typeof e=="string"&&e.startsWith("axis")?NIe(e,l,i,a,o):typeof e=="string"&&e.startsWith("legend")&&Fu(o)&&r.position==="center"?["center","vertical"]:l}function LIe(e,t,n=[]){return e==="x"?G0(n)?`${t}Y`:`${t}X`:e==="y"?G0(n)?`${t}X`:`${t}Y`:null}function RIe(e,t,n){const[,r]=Kn("component",n),{coordinates:i}=e;function a(o,s,l,c){const u=LIe(s,o,i);if(!c||!u)return;const{props:f}=r(u),{defaultPosition:d,defaultSize:h,defaultOrder:p,defaultCrossPadding:[g]}=f;return Object.assign(Object.assign({position:d,defaultSize:h,order:p,type:u,crossPadding:g},c),{scales:[l]})}return t.filter(o=>o.slider||o.scrollbar).flatMap(o=>{const{slider:s,scrollbar:l,name:c}=o;return[a("slider",c,o,s),a("scrollbar",c,o,l)]}).filter(o=>!!o)}function uU(e,t,n,r,i,a){const{type:o}=e;if(!["left","right","bottom","top"].includes(r)||typeof o!="string")return;const l=o;return(l.startsWith("axis")?zIe:l.startsWith("group")?jIe:l.startsWith("legendContinuous")?VIe:l==="legendCategory"?WIe:l.startsWith("slider")?BIe:l==="title"?FIe:l.startsWith("scrollbar")?DIe:()=>{})(e,t,n,r,i,a)}function jIe(e,t,n,r,i,a){const{children:o}=e,s=bn(o,c=>c.crossPadding);o.forEach(c=>c.crossPadding=s),o.forEach(c=>uU(c,t,n,r,i,a));const l=bn(o,c=>c.size);e.size=l,o.forEach(c=>c.size=l)}function DIe(e,t,n,r,i,a){const{trackSize:o=6}=_e({},i.scrollbar,e);e.size=o}function FIe(e,t,n,r,i,a){const o=_e({},i.title,e),{title:s,subtitle:l,spacing:c=0}=o,u=Yc(o,["title","subtitle","spacing"]);if(s){const f=Ve(u,"title"),d=s3(s,f);e.size=d.height}if(l){const f=Ve(u,"subtitle"),d=s3(l,f);e.size+=c+d.height}}function BIe(e,t,n,r,i,a){const o=()=>{const{slider:u}=i;return _e({},u,e)},{trackSize:s,handleIconSize:l}=o(),c=Math.max(s,l*2.4);e.size=c}function zIe(e,t,n,r,i,a){var o;e.transform=e.transform||[{type:"hide"}];const s=r==="left"||r==="right",l=fU(e,r,i),{tickLength:c=0,labelSpacing:u=0,titleSpacing:f=0,labelAutoRotate:d}
148=l,h=Yc(l,["tickLength","labelSpacing","titleSpacing","labelAutoRotate"]),p=Av(e,a),g=$v(h,p),v=c+u;if(g&&g.length){const x=bn(g,_=>_.width),C=bn(g,_=>_.height);if(s)e.size=x+v;else{const{tickFilter:_,labelTransform:S}=e;UIe(p,g,t,n,_)&&!S&&d!==!1&&d!==null?(e.labelTransform="rotate(90)",e.size=x+v):(e.labelTransform=(o=e.labelTransform)!==null&&o!==void 0?o:"rotate(0)",e.size=C+v)}}else e.size=c;const y=Tv(h);y&&(s?e.size+=f+y.width:e.size+=f+y.height)}function VIe(e,t,n,r,i,a){const s=(()=>{const{legendContinuous:_}=i;return _e({},_,e)})(),{labelSpacing:l=0,titleSpacing:c=0}=s,u=Yc(s,["labelSpacing","titleSpacing"]),f=r==="left"||r==="right",d=Ve(u,"ribbon"),{size:h}=d,p=Ve(u,"handleIcon"),{size:g}=p,v=Math.max(h,g*2.4);e.size=v;const y=Av(e,a),x=$v(u,y);if(x){const _=f?"width":"height",S=bn(x,O=>O[_]);e.size+=S+l}const C=Tv(u);C&&(f?e.size=Math.max(e.size,C.width):e.size+=c+C.height)}function WIe(e,t,n,r,i,a){const s=(()=>{const{legendCategory:D}=i,{title:F}=e,[V,z]=Array.isArray(F)?[F,void 0]:[void 0,F];return _e({title:V},D,Object.assign(Object.assign({},e),{title:z}))})(),{itemSpacing:l,itemMarkerSize:c,titleSpacing:u,rowPadding:f,colPadding:d,maxCols:h=1/0,maxRows:p=1/0}=s,g=Yc(s,["itemSpacing","itemMarkerSize","titleSpacing","rowPadding","colPadding","maxCols","maxRows"]),{cols:v,length:y}=e,x=D=>Math.min(D,p),C=D=>Math.min(D,h),_=r==="left"||r==="right",S=y===void 0?t+(_?0:n[0]+n[1]):y,O=Tv(g),E=Av(e,a),k=$v(g,E,"itemLabel"),$=Math.max(k[0].height,c)+f,T=(D,F=0)=>c+D+l[0]+F;_?(()=>{let D=-1/0,F=0,V=1,z=0,B=-1/0,G=-1/0;const Y=O?O.height:0,K=S-Y;for(const{width:Q}of k){const ne=T(Q,d);D=Math.max(D,ne),F+$>K?(V++,B=Math.max(B,z),G=Math.max(G,F),z=1,F=$):(F+=$,z++)}V<=1&&(B=z,G=F),e.size=D*C(V),e.length=G+Y,_e(e,{cols:C(V),gridRow:B})})():typeof v=="number"?(()=>{const D=Math.ceil(k.length/v),F=bn(k,V=>T(V.width))*v;e.size=$*x(D)-f,e.length=Math.min(F,S)})():(()=>{let D=1,F=0,V=-1/0;for(const{width:z}of k){const B=T(z,d);F+B>S?(V=Math.max(V,F),F=B,D++):F+=B}D===1&&(V=F),e.size=$*x(D)-f,e.length=V})(),O&&(_?e.size=Math.max(e.size,O.width):e.size+=u+O.height)}function Av(e,t){const[n]=Kn("scale",t),{scales:r,tickCount:i,tickMethod:a}=e,o=r.find(s=>s.type!=="constant"&&s.type!=="identity");return i!==void 0&&(o.tickCount=i),a!==void 0&&(o.tickMethod=a),n(o)}function $v(e,t,n="label"){const{labelFormatter:r,tickFilter:i,label:a=!0}=e,o=Yc(e,["labelFormatter","tickFilter","label"]);if(!a)return null;const s=HIe(t,r,i),l=Ve(o,n),c=s.map((d,h)=>Object.fromEntries(Object.entries(l).map(([p,g])=>[p,typeof g=="function"?g(d,h):g]))),u=s.map((d,h)=>{const p=c[h];return s3(d,p)});if(!c.some(d=>d.transform)){const d=s.map((h,p)=>p);e.indexBBox=new Map(d.map(h=>[h,[s[h],u[h]]]))}return u}function Tv(e){const t=c=>c===!1||c===null,{title:n}=e,r=Yc(e,["title"]);if(t(n)||n===void 0)return null;const i=Ve(r,"title"),{direction:a,transform:o}=i,s=Array.isArray(n)?n.join(","):n;return typeof s!="string"?null:s3(s,Object.assign(Object.assign({},i),{transform:o||(a==="vertical"?"rotate(-90)":"")}))}function fU(e,t,n){const{title:r}=e,[i,a]=Array.isArray(r)?[r,void 0]:[void 0,r],{axis:o,[`axis${ub(t)}`]:s}=n;return _e({title:i},o,s,Object.assign(Object.assign({},e),{title:a}))}function dU(e,t){const n=e.getTicks?e.getTicks():e.getOptions().domain;return t?n.filter(t):n}function HIe(e,t,n){const i=dU(e,n).map(o=>typeof o=="number"?Mm(o):o),a=t?typeof t=="string"?Hc(t):t:e.getFormatter?e.getFormatter():o=>`${o}`;return i.map(a)}function GIe(e,t){return e.getBandWidth?e.getBandWidth(t)/2:0}function UIe(e,t,n,r,i){if(io(t,h=>h.width)>n)return!0;const o=e.clone();o.update({range:[0,n]});const s=dU(e,i),l=s.map(h=>o.map(h)+GIe(o,h)),c=s.map((h,p)=>p),u=-r[0],f=n+r[1],d=(h,p)=>{const{width:g}=p;return[h-g/2,h+g/2]};for(let h=0;h<c.length;h++){const p=l[h],[g,v]=d(p,t[h]);if(g<u||v>f)return!0;const y=l[h+1];if(y){const[x]=d(y,t[h+1]);if(v>x)return!0}}return!1}function s3(e,t){const n=YIe(e),{filter:r}=t,i=Yc(t,["filter"]);return n.attr(Object.assign(Object.assign({},i),{visibility:"none"})),n.getBBox()}function YIe(e){return e instanceof Yn?e:new so({style:{text:`${e}`}})}function XIe(e){const t=e.find(({type:i})=>i==="axisX"),n=e.find(({type:i})=>i==="axisY"),r=e.find(({type:i})=>i==="axisZ");
148t&&n&&r&&(t.plane="xy",n.plane="xy",r.plane="yz",r.origin=[t.bbox.x,t.bbox.y,0],r.eulerAngles=[0,-90,0],r.bbox.x=t.bbox.x,r.bbox.y=t.bbox.y,e.push(Object.assign(Object.assign({},t),{plane:"xz",showLabel:!1,showTitle:!1,origin:[t.bbox.x,t.bbox.y,0],eulerAngles:[-90,0,0]})),e.push(Object.assign(Object.assign({},n),{plane:"yz",showLabel:!1,showTitle:!1,origin:[n.bbox.x+n.bbox.width,n.bbox.y,0],eulerAngles:[0,-90,0]})),e.push(Object.assign(Object.assign({},r),{plane:"xz",actualPosition:"left",showLabel:!1,showTitle:!1,eulerAngles:[90,-90,0]})))}function qIe(e,t,n,r){var i,a;const{width:o,height:s,depth:l,x:c=0,y:u=0,z:f=0,inset:d=(i=n.inset)!==null&&i!==void 0?i:0,insetLeft:h=d,insetTop:p=d,insetBottom:g=d,insetRight:v=d,margin:y=(a=n.margin)!==null&&a!==void 0?a:0,marginLeft:x=y,marginBottom:C=y,marginTop:_=y,marginRight:S=y,padding:O=n.padding,paddingBottom:E=O,paddingLeft:k=O,paddingRight:$=O,paddingTop:T=O}=KIe(e,t,n,r),M=1/4,R=(Ce,$e,Me,Le,je)=>{const{marks:Ge}=t;if(Ge.length===0)return[Le,je];if(Ce-Le-je-Ce*M>0)return[Le,je];const Ue=Ce*(1-M);return[$e==="auto"?Ue*Le/(Le+je):Le,Me==="auto"?Ue*je/(Le+je):je]},N=Ce=>Ce==="auto"?20:Ce??20,D=N(T),F=N(E),V=IP(e,s-D-F,[D+_,F+C],["left","right"],t,n,r),{paddingLeft:z,paddingRight:B}=V,G=o-x-S,[Y,K]=R(G,k,$,z,B),Q=G-Y-K,ne=IP(e,Q,[Y+x,K+S],["bottom","top"],t,n,r),{paddingTop:oe,paddingBottom:ae}=ne,ce=s-C-_,[fe,le]=R(ce,E,T,ae,oe),be=ce-fe-le;return{width:o,height:s,depth:l,insetLeft:h,insetTop:p,insetBottom:g,insetRight:v,innerWidth:Q,innerHeight:be,paddingLeft:Y,paddingRight:K,paddingTop:le,paddingBottom:fe,marginLeft:x,marginBottom:C,marginTop:_,marginRight:S,x:c,y:u,z:f}}function ZIe(e){const{height:t,width:n,padding:r=0,paddingLeft:i=r,paddingRight:a=r,paddingTop:o=r,paddingBottom:s=r,margin:l=16,marginLeft:c=l,marginRight:u=l,marginTop:f=l,marginBottom:d=l,inset:h=0,insetLeft:p=h,insetRight:g=h,insetTop:v=h,insetBottom:y=h}=e,x=S=>S==="auto"?20:S,C=n-x(i)-x(a)-c-u-p-g,_=t-x(o)-x(s)-f-d-v-y;return{width:C,height:_}}function KIe(e,t,n,r){const{coordinates:i}=t;if(!Fu(i)&&!Ch(i))return t;const a=e.filter(y=>typeof y.type=="string"&&y.type.startsWith("axis"));if(a.length===0)return t;const o=a.map(y=>{const x=y.type==="axisArc"?"arc":"linear";return fU(y,x,n)}),s=bn(o,y=>{var x;return(x=y.labelSpacing)!==null&&x!==void 0?x:0}),l=a.flatMap((y,x)=>{const C=o[x],_=Av(y,r);return $v(C,_)}).filter(Dn),c=bn(l,y=>y.height)+s,u=a.flatMap((y,x)=>{const C=o[x];return Tv(C)}).filter(y=>y!==null),f=u.length===0?0:bn(u,y=>y.height),{inset:d=c,insetLeft:h=d,insetBottom:p=d,insetTop:g=d+f,insetRight:v=d}=t;return Object.assign(Object.assign({},t),{insetLeft:h,insetBottom:p,insetTop:g,insetRight:v})}function IP(e,t,n,r,i,a,o){const s=jn(e,p=>p.position),{padding:l=a.padding,paddingLeft:c=l,paddingRight:u=l,paddingBottom:f=l,paddingTop:d=l}=i,h={paddingBottom:f,paddingLeft:c,paddingTop:d,paddingRight:u};for(const p of r){const g=`padding${ub(Ub(p))}`,v=s.get(p)||[],y=h[g],x=$=>{$.size===void 0&&($.size=$.defaultSize)},C=$=>{$.type==="group"?($.children.forEach(x),$.size=bn($.children,T=>T.size)):$.size=$.defaultSize},_=$=>{$.size||(y!=="auto"?C($):(uU($,t,n,p,a,o),x($)))},S=$=>{$.type.startsWith("axis")&&$.labelAutoHide===void 0&&($.labelAutoHide=!0)},O=p==="bottom"||p==="top",E=$a(v,$=>$.order),k=v.filter($=>$.type.startsWith("axis")&&$.order==E);if(k.length&&(k[0].crossPadding=0),typeof y=="number")v.forEach(x),v.forEach(S);else if(v.length===0)h[g]=0;else{const $=O?t+n[0]+n[1]:t,T=cU(v,$);T.forEach(_);const M=T.reduce((R,{size:N,crossPadding:D=12})=>R+N+D,0);h[g]=M}}return h}function JIe(e,t,n){const r=jn(e,O=>`${O.plane||"xy"}-${O.position}`),{paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:s,marginLeft:l,marginTop:c,marginBottom:u,marginRight:f,innerHeight:d,innerWidth:h,insetBottom:p,insetLeft:g,insetRight:v,insetTop:y,height:x,width:C,depth:_}=n,S={xy:C4({width:C,height:x,paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:s,marginLeft:l,marginTop:c,marginBottom:u,marginRight:f,innerHeight:d,innerWidth:h,insetBottom:p,insetLeft:g,insetRight:v,insetTop:y}),yz:C4({width:_,height:x,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:_,innerHe
148ight:x,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0}),xz:C4({width:C,height:_,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:C,innerHeight:_,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0})};for(const[O,E]of r.entries()){const[k,$]=O.split("-"),T=S[k][$],[M,R]=cD(E,N=>typeof N.type!="string"?!1:!!($==="center"||N.type.startsWith("axis")&&["inner","outer"].includes($)));M.length&&QIe(M,t,T,$),R.length&&lLe(E,t,T)}}function C4({width:e,height:t,paddingLeft:n,paddingRight:r,paddingTop:i,paddingBottom:a,marginLeft:o,marginTop:s,marginBottom:l,marginRight:c,innerHeight:u,innerWidth:f,insetBottom:d,insetLeft:h,insetRight:p,insetTop:g}){const v=n+o,y=i+s,x=r+c,C=a+l,_=e-o-c,S=[v+h,y+g,f-h-p,u-g-d,"center",null,null];return{top:[v,0,f,y,"vertical",!0,pr,o,_],right:[e-x,y,x,u,"horizontal",!1,pr],bottom:[v,t-C,f,C,"vertical",!1,pr,o,_],left:[0,y,v,u,"horizontal",!0,pr],"top-left":[v,0,f,y,"vertical",!0,pr],"top-right":[v,0,f,y,"vertical",!0,pr],"bottom-left":[v,t-C,f,C,"vertical",!1,pr],"bottom-right":[v,t-C,f,C,"vertical",!1,pr],center:S,inner:S,outer:S}}function QIe(e,t,n,r){const[i,a]=cD(e,o=>!!(typeof o.type=="string"&&o.type.startsWith("axis")));eLe(i,t,n,r),cLe(a,t,n)}function eLe(e,t,n,r){r==="center"?L4e(t)?sLe(e,t,n):On(t)?rLe(e,t,n):J3(t)&&iLe(e,t,n,e[0].orientation):r==="inner"?tLe(e,t,n):r==="outer"&&nLe(e,t,n)}function tLe(e,t,n){const[r,i,,a]=n,[o,s]=t.getCenter(),[l]=Q3(t),c=a/2,u=l*c,f=o-u,d=s-u;for(let h=0;h<e.length;h++){const p=e[h];p.bbox={x:r+f,y:i+d,width:u*2,height:u*2}}}function nLe(e,t,n){const[r,i,a,o]=n;for(const s of e)s.bbox={x:r,y:i,width:a,height:o}}function rLe(e,t,n){const[r,i,a,o]=n;for(const s of e)s.bbox={x:r,y:i,width:a,height:o}}function iLe(e,t,n,r){r==="horizontal"?oLe(e,t,n):r==="vertical"&&aLe(e,t,n)}function aLe(e,t,n){const[r,i,,a]=n,o=new Array(e.length).fill(0),l=t.map(o).filter((c,u)=>u%2===0).map(c=>c+r);for(let c=0;c<e.length;c++){const u=e[c],f=l[c],d=l[c+1]-f;u.bbox={x:f,y:i,width:d,height:a}}}function oLe(e,t,n){const[r,i,a]=n,o=new Array(e.length).fill(0),l=t.map(o).filter((c,u)=>u%2===1).map(c=>c+i);for(let c=0;c<e.length;c++){const u=e[c],f=l[c],d=l[c+1]-f;u.bbox={x:r,y:f,width:a,height:d}}}function sLe(e,t,n,r){const[i,a,o,s]=n;for(const l of e)l.bbox={x:i,y:a,width:o,height:s},l.radar={index:e.indexOf(l),count:e.length}}function lLe(e,t,n){const[r,i,a,o,s,l,c,u,f]=n,[d,h,p,g,v,y,x,C]=s==="vertical"?["y",i,"x",r,"height",o,"width",a]:["x",r,"y",i,"width",a,"height",o];e.sort(($,T)=>c==null?void 0:c($.order,T.order));const _=$=>$==="title"||$==="group"||$.startsWith("legend"),S=($,T,M)=>M===void 0?T:_($)?M:T,O=($,T,M)=>M===void 0?T:_($)?M:T,E=l?h+y:h;for(let $=0,T=E;$<e.length;$++){const M=e[$],{crossPadding:R=0,type:N}=M,{size:D}=M;M.bbox={[d]:l?T-D-R:T+R,[p]:O(N,g,u),[v]:D,[x]:S(N,C,f)},T+=(D+R)*(l?-1:1)}const k=e.filter($=>$.type==="group");for(const $ of k){const{bbox:T,children:M}=$,R=T[x],N=R/M.length,D=M.reduce((G,Y)=>{var K;const Q=(K=Y.layout)===null||K===void 0?void 0:K.justifyContent;return Q||G},"flex-start"),F=M.map((G,Y)=>{const{length:K=N,padding:Q=0}=G;return K+(Y===M.length-1?0:Q)}),V=io(F),z=R-V,B=D==="flex-start"?0:D==="center"?z/2:z;for(let G=0,Y=T[p]+B;G<M.length;G++){const K=M[G],{padding:Q=0}=K,ne=G===M.length-1?0:Q;K.bbox={[v]:T[v],[d]:T[d],[p]:Y,[x]:F[G]-ne},_e(K,{layout:{justifyContent:D}}),Y+=F[G]}}}function cLe(e,t,n){if(e.length===0)return;const[r,i,a,o]=n,[s]=Q3(t),l=o/2*s/Math.sqrt(2),c=r+a/2,u=i+o/2;for(let f=0;f<e.length;f++){const d=e[f];d.bbox={x:c-l,y:u-l,width:l*2,height:l*2}}}var uLe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})},Sd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const hU=Symbol("CALLBACK_ITEM");function fLe(e,t,n){const{encode:r={},scale:i={},transform:a=[]}=t,o=Sd(t,["encode","scale","transform"]);return[e,Object.assign(Object.assign({},o),{encode:r,scale:i,transform:a})]}function pU(e,t,n){return uLe(this,void 0,void 0,function*(){const{library:r}=n,{data:i}=t,[a]=Kn("data",r),o=SLe(i),{transform:s=[]}=o,u=[Sd(o,["transform"]),...s].map(h=>a(h,n)),f=yield k9e(u)(i),d=i&&!Array.isArray(i)&&!Array.isArray(f)?{value:f}:f;return[Array.isArray(f)?hf(f):[],Object.assign(Object.assign({},t),{data:d})]})}function dLe(e,t,n){const{encode:r}=t;if(!r)return[e,t];const i={};
148for(const[a,o]of Object.entries(r))if(Array.isArray(o))for(let s=0;s<o.length;s++){const l=`${a}${s===0?"":s}`;i[l]=o[s]}else i[a]=o;return[e,Object.assign(Object.assign({},t),{encode:i})]}function hLe(e,t,n){const{encode:r,data:i}=t;if(!r)return[e,t];const a=Ps(r,o=>CLe(o)?o:{type:wLe(i,o),value:o});return[e,Object.assign(Object.assign({},t),{encode:a})]}function pLe(e,t,n){const{encode:r}=t;if(!r)return[e,t];const i=Ps(r,(a,o)=>{const{type:s}=a;return s!=="constant"||bIe(o)?a:Object.assign(Object.assign({},a),{constant:!0})});return[e,Object.assign(Object.assign({},t),{encode:i})]}function gLe(e,t,n){const{encode:r,data:i}=t;if(!r)return[e,t];const{library:a}=n,o=kLe(a),s=Ps(r,l=>o(i,l));return[e,Object.assign(Object.assign({},t),{encode:s})]}function mLe(e,t,n){const{tooltip:r={}}=t;return Ml(r)?[e,t]:Array.isArray(r)?[e,Object.assign(Object.assign({},t),{tooltip:{items:r}})]:cd(r)&&BV(r)?[e,Object.assign(Object.assign({},t),{tooltip:r})]:[e,Object.assign(Object.assign({},t),{tooltip:{items:[r]}})]}function vLe(e,t,n){const{data:r,encode:i,tooltip:a={}}=t;if(Ml(a))return[e,t];const o=f=>{if(!f)return f;if(typeof f=="string")return e.map(d=>({name:f,value:r[d][f]}));if(cd(f)){const{field:d,channel:h,color:p,name:g=d,valueFormatter:v=O=>O}=f,y=typeof v=="string"?Hc(v):v,x=h&&i[h],C=x&&i[h].field,_=g||C||h,S=[];for(const O of e){const E=d?r[O][d]:x?i[h].value[O]:null;S[O]={name:_,color:p,value:y(E)}}return S}if(typeof f=="function"){const d=[];for(const h of e){const p=f(r[h],h,r,i);cd(p)?d[h]=Object.assign(Object.assign({},p),{[hU]:!0}):d[h]={value:p}}return d}return f},{title:s,items:l=[]}=a,c=Sd(a,["title","items"]),u=Object.assign({title:o(s),items:Array.isArray(l)?l.map(o):[]},c);return[e,Object.assign(Object.assign({},t),{tooltip:u})]}function yLe(e,t,n){const{encode:r}=t,i=Sd(t,["encode"]);if(!r)return[e,t];const a=Object.entries(r),o=a.filter(([,l])=>{const{value:c}=l;return Array.isArray(c[0])}).flatMap(([l,c])=>{const u=[[l,new Array(e.length).fill(void 0)]],{value:f}=c,d=Sd(c,["value"]);for(let h=0;h<f.length;h++){const p=f[h];if(Array.isArray(p))for(let g=0;g<p.length;g++){const v=u[g]||[`${l}${g}`,new Array(e).fill(void 0)];v[1][h]=p[g],u[g]=v}}return u.map(([h,p])=>[h,Object.assign({type:"column",value:p},d)])}),s=Object.fromEntries([...a,...o]);return[e,Object.assign(Object.assign({},i),{encode:s})]}function xLe(e,t,n){const{axis:r={},legend:i={},slider:a={},scrollbar:o={}}=t,s=(c,u)=>{if(typeof c=="boolean")return c?{}:null;const f=c[u];return f===void 0||f?f:null},l=typeof r=="object"?Array.from(new Set(["x","y","z",...Object.keys(r)])):["x","y","z"];return _e(t,{scale:Object.assign(Object.assign({},Object.fromEntries(l.map(c=>{const u=s(o,c);return[c,Object.assign({guide:s(r,c),slider:s(a,c),scrollbar:u},u&&{ratio:u.ratio===void 0?.5:u.ratio})]}))),{color:{guide:s(i,"color")},size:{guide:s(i,"size")},shape:{guide:s(i,"shape")},opacity:{guide:s(i,"opacity")}})}),[e,t]}function bLe(e,t,n){const{animate:r}=t;return r||r===void 0?[e,t]:(_e(t,{animate:{enter:{type:null},exit:{type:null},update:{type:null}}}),[e,t])}function CLe(e){if(typeof e!="object"||e instanceof Date||e===null)return!1;const{type:t}=e;return Dn(t)}function wLe(e,t){return typeof t=="function"?"transform":typeof t=="string"&&_Le(e,t)?"field":"constant"}function _Le(e,t){return Array.isArray(e)?e.some(n=>n[t]!==void 0):!1}function SLe(e){if(Jn(e))return{type:"inline",value:e};if(!e)return{type:"inline",value:null};if(Array.isArray(e))return{type:"inline",value:e};const{type:t="inline"}=e,n=Sd(e,["type"]);return Object.assign(Object.assign({},n),{type:t})}var gU=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})},OLe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function ELe(e,t,n){return gU(this,void 0,void 0,function*(){const[r,i]=yield ALe(e,t,n),{encode:a,scale:o,data:s,tooltip:l}=i;if(Array.isArray(s)===!1)return null;const{channels:c}=t,u=tb(Object.entries(a).filter(([,d])=>Dn(d)),d=>d.map(([h,p])=>Object.assign({name:h},p)),([d])=>{var h;const p=(h=/([^\d]+)\d*$/.exec(d))===null||h===void 0?void 0:h[1],g=c.find(v=>
148v.name===p);return g!=null&&g.independent?d:p}),f=c.filter(d=>{const{name:h,required:p}=d;if(u.find(([g])=>g===h))return!0;if(p)throw new Error(`Missing encoding for channel: ${h}.`);return!1}).flatMap(d=>{const{name:h,scale:p,scaleKey:g,range:v,quantitative:y,ordinal:x}=d;return u.filter(([_])=>_.startsWith(h)).map(([_,S],O)=>{const E=S.some(V=>V.visual),k=S.some(V=>V.constant),$=o[_]||{},{independent:T=!1,key:M=g||_,type:R=k?"constant":E?"identity":p}=$,N=OLe($,["independent","key","type"]),D=R==="constant",F=D?void 0:v;return{name:_,values:S,scaleKey:T||D?Symbol("independent"):M,scale:Object.assign(Object.assign({type:R,range:F},N),{quantitative:y,ordinal:x})}})});return[i,Object.assign(Object.assign({},t),{index:r,channels:f,tooltip:l})]})}function kLe(e){const[t]=Kn("encode",e);return(n,r)=>r===void 0||n===void 0?null:Object.assign(Object.assign({},r),{type:"column",value:t(r)(n),field:$Le(r)})}function ALe(e,t,n){return gU(this,void 0,void 0,function*(){const{library:r}=n,[i]=Kn("transform",r),{preInference:a=[],postInference:o=[]}=t,{transform:s=[]}=e,l=[fLe,pU,dLe,hLe,pLe,gLe,yLe,bLe,xLe,mLe,...a.map(i),...s.map(i),...o.map(i),vLe];let c=[],u=e;for(const f of l)[c,u]=yield f(c,u,n);return[c,u]})}function $Le(e){const{type:t,value:n}=e;return t==="field"&&typeof n=="string"?n:null}var kl=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})},Mc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function iw(e,t,n){var r;return kl(this,void 0,void 0,function*(){const{library:i}=n,[a]=Kn("composition",i),[o]=Kn("interaction",i),s=new Set(Object.keys(i).map(N=>{var D;return(D=/mark\.(.*)/.exec(N))===null||D===void 0?void 0:D[1]}).filter(Dn)),l=new Set(Object.keys(i).map(N=>{var D;return(D=/component\.(.*)/.exec(N))===null||D===void 0?void 0:D[1]}).filter(Dn)),c=N=>{const{type:D}=N;if(typeof D=="function"){const{props:F={}}=D,{composite:V=!0}=F;if(V)return"mark"}return typeof D!="string"?D:s.has(D)||l.has(D)?"mark":D},u=N=>c(N)==="mark",f=N=>c(N)==="standardView",d=N=>{const{type:D}=N;return typeof D!="string"?!1:!!l.has(D)},h=N=>{if(f(N))return[N];const D=c(N);return a({type:D,static:d(N)})(N)},p=[],g=new Map,v=new Map,y=[e],x=[];for(;y.length;){const N=y.shift();if(f(N)){const D=v.get(N),[F,V]=D?yU(D,N,i):yield mU(N,n);g.set(F,N),p.push(F);const z=V.flatMap(h).map(B=>EG(B,i));if(y.push(...z),z.every(f)){const B=yield Promise.all(z.map(G=>vU(G,n)));JNe(B);for(let G=0;G<z.length;G++){const Y=z[G],K=B[G];v.set(Y,K)}}}else{const D=u(N)?N:yield wU(N,n),F=h(D);Array.isArray(F)?y.push(...F):typeof F=="function"&&x.push(F())}}n.emitter.emit(xn.BEFORE_PAINT);const C=new Map,_=new Map,S=[];t.selectAll(_s(Hm)).data(p,N=>N.key).join(N=>N.append("g").attr("className",Hm).attr("id",D=>D.key).call(LP).each(function(D,F,V){f8(D,ft(V),S,n),C.set(D,V)}),N=>N.call(LP).each(function(D,F,V){f8(D,ft(V),S,n),_.set(D,V)}),N=>N.each(function(D,F,V){const z=V.nameInteraction.values();for(const B of z)B.destroy()}).remove());const O=(N,D,F)=>Array.from(N.entries()).map(([V,z])=>{const B=F||new Map,G=(Q,ne=oe=>oe)=>B.set(Q,ne),Y=g.get(V),K=PLe(ft(z),Y,n);return{view:V,container:z,options:Y,setState:G,update:(Q,ne)=>kl(this,void 0,void 0,function*(){const ae=cb(Array.from(B.values()))(Y);return yield K(ae,Q,()=>{Dr(ne)&&D(N,ne,B)})})}}),E=(N=_,D,F)=>{var V;const z=O(N,E,F);for(const B of z){const{options:G,container:Y}=B,K=Y.nameInteraction;let Q=l3(G);D&&(Q=Q.filter(ne=>D.includes(ne[0])));for(const ne of Q){const[oe,ae]=ne,ce=K.get(oe);if(ce&&((V=ce.destroy)===null||V===void 0||V.call(ce)),ae){const le=u8(B.view,oe,ae,o)(B,z,n.emitter);K.set(oe,{destroy:le})}}}},k=O(C,E);for(const N of k){const{options:D}=N,F=new Map;N.container.nameInteraction=F;for(const V of l3(D)){const[z,B]=V;if(B){const Y=u8(N.view,z,B,o)(N,k,n.emitter);F.set(z,{destroy:Y})}}}E();const{width:$,height:T}=e,M=[];for(const N of x){const D=new Promise(F=>kl(this,void 0,void 0,function*(){for(const V of N){const z=Object.assign({width:$,height:T},V);yield iw(z,t,n)}F()}));M.push(D)}n.views=p,(r=n.animations)===null||r===void 0||r.forEach(N=>N==null?void 0:N.cancel()),n.animations=S,n.emitter.emit(xn.AFTER_PAINT);const R=S.filter(Dn).map(ULe).map(N=>N.finished);return Promise.all([...R,...M])})}function LP(e){e.style("transform",t=>`translate(${t.layout.x}, ${t.layout.y})`)}function TLe(e){const[,t]=Kn("interaction",e);return n=>{const[r,i]=n;try{return[r,t(r)]}catch{return[r,i.type]}}}function PLe(e,t,n){const{library:r}=n,i=TLe(r),a=l=>l[1]&&l[1].props&&l[1].props.reapplyWhenUpdate,s=l3(t).map(i).filter(a).map(l=>l[0]);return(l,c,u)=>kl(this,void 0,void 0,function*(){const f=[],[d,h]=yield mU(l,n);f8(d,e,f,n);for(const p of s.filter(g=>g!==c))MLe(p,e,l,d,n);for(const p of h)iw(p,e,n);return u(),{options:l,view:d}})}function MLe(e,t,n,r,i){var a;const{library:o}=i,[s]=Kn("interaction",o),c=t.node().nameInteraction,u=l3(n).find(([g])=>g===e),f=c.get(e);if(!f||((a=f.destroy)===null||a===void 0||a.call(f),!u[1]))return;const d=u8(r,e,u[1],s),h={options:n,view:r,container:t.node(),update:g=>Promise.resolve(g)},p=d(h,[],i.emitter);c.set(e,{destroy:p})}function mU(e,t){return kl(this,void 0,void 0,function*(){const{library:n}=t,r=yield ILe(e,t),i=NLe(r);e.interaction=i.interaction,e.coordinate=i.coordinate,e.marks=[...i.marks,...i.components];const a=EG(i,n),o=yield vU(a,t);return yU(o,a,n)})}function NLe(e){const{coordinate:t={},interaction:n={},style:r={},marks:i}=e,a=Mc(e,["coordinate","interaction","style","marks"]),o=i.map(d=>d.coordinate||{}),s=i.map(d=>d.interaction||{}),l=i.map(d=>d.viewStyle||{}),c=[...o,t].reduceRight((d,h)=>_e(d,h),{}),u=[n,...s].reduce((d,h)=>_e(d,h),{}),f=[...l,r].reduce((d,h)=>_e(d,h),{});return Object.assign(Object.assign({},a),{marks:i,coordinate:c,interaction:u,style:f})}function ILe(e,t){return kl(this,void 0,void 0,function*(){const{library:n}=t,[r,i]=Kn("mark",n),a=new Set(Object.keys(n).map(h=>{var p;return(p=/component\.(.*)/.exec(h))===null||p===void 0?void 0:p[1]}).filter(Dn)),{marks:o}=e,s=[],l=[],c=[...o],{width:u,height:f}
148=ZIe(e),d={options:e,width:u,height:f};for(;c.length;){const[h]=c.splice(0,1),p=yield wU(h,t),{type:g=ld("G2Mark type is required."),key:v}=p;if(a.has(g))l.push(p);else{const{props:y={}}=i(g),{composite:x=!0}=y;if(!x)s.push(p);else{const{data:C}=p,_=Object.assign(Object.assign({},p),{data:C&&(Array.isArray(C)?C:C.value)}),S=yield r(_,d),O=Array.isArray(S)?S:[S];c.unshift(...O.map((E,k)=>Object.assign(Object.assign({},E),{key:`${v}-${k}`})))}}}return Object.assign(Object.assign({},e),{marks:s,components:l})})}function vU(e,t){return kl(this,void 0,void 0,function*(){const{library:n}=t,[r]=Kn("theme",n),[,i]=Kn("mark",n),{theme:a,marks:o,coordinates:s=[]}=e,l=r(CU(a)),c=new Map;for(const f of o){const{type:d}=f,{props:h={}}=i(d),p=yield ELe(f,h,t);if(p){const[g,v]=p;c.set(g,v)}}const u=jn(Array.from(c.values()).flatMap(f=>f.channels),({scaleKey:f})=>f);for(const f of u.values()){const d=f.reduce((_,{scale:S})=>_e(_,S),{}),{scaleKey:h}=f[0],{values:p}=f[0],g=Array.from(new Set(p.map(_=>_.field).filter(Dn))),v=_e({guide:{title:g.length===0?void 0:g},field:g[0]},d),{name:y}=f[0],x=f.flatMap(({values:_})=>_.map(S=>S.value)),C=Object.assign(Object.assign({},YNe(y,x,v,s,l,n)),{uid:Symbol("scale"),key:h});f.forEach(_=>_.scale=C)}return c})}function u8(e,t,n,r){const i=e.theme,a=typeof t=="string"?i[t]||{}:{};return r(_e(a,Object.assign({type:t},n)))}function yU(e,t,n){var r;const[i]=Kn("mark",n),[a]=Kn("theme",n),[o]=Kn("labelTransform",n),{key:s,frame:l=!1,theme:c,clip:u,style:f={},labelTransform:d=[]}=t,h=a(CU(c)),p=Array.from(e.values()),g=ZNe(p,t),v=kIe(EIe(ZLe(Array.from(g),p,e),t,n)),y=qIe(v,t,h,n),x=_Me(y,t,n),C=l?_e({mainLineWidth:1,mainStroke:"#000"},f):f;JIe(cU(v),x,y),XIe(v);const _=new Map(Array.from(e.values()).flatMap($=>{const{channels:T}=$;return T.map(({scale:M})=>[M.uid,EP(M,n)])}));qNe(e,_);const S={};for(const $ of v){const{scales:T=[]}=$,M=[];for(const R of T){const{name:N,uid:D}=R,F=(r=_.get(D))!==null&&r!==void 0?r:EP(R,n);M.push(F),N==="y"&&F.update(Object.assign(Object.assign({},F.getOptions()),{xScale:S.x})),OP(S,{[N]:F})}$.scaleInstances=M}const O=[],E=new Map;for(const[$,T]of e.entries()){const{children:M,dataDomain:R,modifier:N,key:D,data:F}=$;E.set(D,F);const{index:V,channels:z,tooltip:B}=T,G=Object.fromEntries(z.map(({name:Me,scale:Le})=>[Me,Le])),Y=Ps(G,({uid:Me})=>_.get(Me));OP(S,Y);const K=XNe(z,Y),Q=i($),[ne,oe,ae]=jLe(Q(V,Y,K,x)),ce=R||ne.length,fe=N?N(oe,ce,y):[],le=Me=>{var Le,je;return(je=(Le=B.title)===null||Le===void 0?void 0:Le[Me])===null||je===void 0?void 0:je.value},be=Me=>B.items.map(Le=>Le[Me]),Ce=ne.map((Me,Le)=>{const je=Object.assign({points:oe[Le],transform:fe[Le],index:Me,markKey:D,viewKey:s,data:F[Me]},B&&{title:le(Me),items:be(Me)});for(const[Ge,nt]of Object.entries(K))je[Ge]=nt[Me],ae&&(je[`series${jc(Ge)}`]=ae[Le].map(Ze=>nt[Ze]));return ae&&(je.seriesIndex=ae[Le]),ae&&B&&(je.seriesItems=ae[Le].map(Ge=>be(Ge)),je.seriesTitle=ae[Le].map(Ge=>le(Ge))),je});T.data=Ce,T.index=ne;const $e=M==null?void 0:M(Ce,Y,y);O.push(...$e||[])}return[{layout:y,theme:h,coordinate:x,markState:e,key:s,clip:u,scale:S,style:C,components:v,data:E,labelTransform:cb(d.map(o))},O]}function f8(e,t,n,r){return kl(this,void 0,void 0,function*(){const{library:i}=r,{components:a,theme:o,layout:s,markState:l,coordinate:c,key:u,style:f,clip:d,scale:h}=e,{x:p,y:g,width:v,height:y}=s,x=Mc(s,["x","y","width","height"]),C=["view","plot","main","content"],_=C.map((B,G)=>G),S=["a","margin","padding","inset"],O=C.map(B=>oD(Object.assign({},o.view,f),B)),E=S.map(B=>Ve(x,B)),k=B=>B.style("x",G=>N[G].x).style("y",G=>N[G].y).style("width",G=>N[G].width).style("height",G=>N[G].height).each(function(G,Y,K){KLe(ft(K),O[G])});let $=0,T=0,M=v,R=y;const N=_.map(B=>{const G=E[B],{left:Y=0,top:K=0,bottom:Q=0,right:ne=0}=G;return $+=Y,T+=K,M-=Y+ne,R-=K+Q,{x:$,y:T,width:M,height:R}});t.selectAll(_s(IT)).data(_.filter(B=>Dn(O[B])),B=>C[B]).join(B=>B.append("rect").attr("className",IT).style("zIndex",-2).call(k),B=>B.call(k),B=>B.remove());const D=zLe(l),F=D?{duration:D[1]}:!1;for(const[,B]of Qx(a,G=>`${G.type}-${G.position}
148`))B.forEach((G,Y)=>G.index=Y);const V=t.selectAll(_s(NT)).data(a,B=>`${B.type}-${B.position}-${B.index}`).join(B=>B.append("g").style("zIndex",({zIndex:G})=>G||-1).attr("className",NT).append(G=>NP(_e({animate:F,scale:h},G),c,o,i,l)),B=>B.transition(function(G,Y,K){const{preserve:Q=!1}=G;if(Q)return;const ne=NP(_e({animate:F,scale:h},G),c,o,i,l),{attributes:oe}=ne,[ae]=K.childNodes;return ae.update(oe,!1)})).transitions();n.push(...V.flat().filter(Dn));const z=t.selectAll(_s(np)).data([s],()=>u).join(B=>B.append("rect").style("zIndex",0).style("fill","transparent").attr("className",np).call(RP).call(jP,Array.from(l.keys())).call(DP,d),B=>B.call(jP,Array.from(l.keys())).call(G=>D?qLe(G,D):RP(G)).call(DP,d)).transitions();n.push(...z.flat());for(const[B,G]of l.entries()){const{data:Y}=G,{key:K,class:Q,type:ne}=B,oe=t.select(`#${K}`),ae=HLe(B,G,e,r),ce=GLe(B,G,e,i),fe=YLe(B,G,e,i),le=XLe(B,G,e,i),be=VLe(t,oe,Q,"element"),Ce=oe.selectAll(_s(ds)).selectFacetAll(be).data(Y,$e=>$e.key,$e=>$e.groupKey).join($e=>$e.append(ae).attr("className",ds).attr("markType",ne).transition(function(Me,Le,je){return ce(Me,[je])}),$e=>$e.call(Me=>{const Le=Me.parent(),je=A9e(Ge=>{const[nt,Ze]=Ge.getBounds().min;return[nt,Ze]});Me.transition(function(Ge,nt,Ze){WLe(Ze,Le,je);const Ue=ae(Ge,nt),Qe=fe(Ge,[Ze],[Ue]);return Qe!=null&&Qe.length||(Ze.nodeName===Ue.nodeName&&Ue.nodeName!=="g"?fb(Ze,Ue):(Ze.parentNode.replaceChild(Ue,Ze),Ue.className=ds,Ue.markType=ne,Ue.__data__=Ze.__data__)),Qe}).attr("markType",ne).attr("className",ds)}),$e=>$e.each(function(Me,Le,je){je.__removed__=!0}).transition(function(Me,Le,je){return le(Me,[je])}).remove(),$e=>$e.append(ae).attr("className",ds).attr("markType",ne).transition(function(Me,Le,je){const{__fromElements__:Ge}=je,nt=fe(Me,Ge,[je]);return new Pm(Ge,null,je.parentNode).transition(nt).remove(),nt}),$e=>$e.transition(function(Me,Le,je){const nt=new Pm([],je.__toData__,je.parentNode).append(ae).attr("className",ds).attr("markType",ne).nodes();return fe(Me,[je],nt)}).remove()).transitions();n.push(...Ce.flat())}LLe(e,t,n,i,r)})}function LLe(e,t,n,r,i){const[a]=Kn("labelTransform",r),{markState:o,labelTransform:s}=e,l=t.select(_s(V7)).node(),c=new Map,u=new Map,f=Array.from(o.entries()).flatMap(([y,x])=>{const{labels:C=[],key:_}=y,S=BLe(y,x,e,r,i),O=t.select(`#${_}`).selectAll(_s(ds)).nodes().filter(E=>!E.__removed__);return C.flatMap((E,k)=>{const{transform:$=[]}=E,T=Mc(E,["transform"]);return O.flatMap(M=>{const R=RLe(T,k,M);return R.forEach(N=>{c.set(N,D=>S(Object.assign(Object.assign({},D),{element:M}))),u.set(N,E)}),R})})}),d=ft(l).selectAll(_s(W7)).data(f,y=>y.key).join(y=>y.append(x=>c.get(x)(x)).attr("className",W7),y=>y.each(function(x,C,_){const O=c.get(x)(x);fb(_,O)}),y=>y.remove()).nodes(),h=jn(d,y=>u.get(y.__data__)),{coordinate:p,layout:g}=e,v={canvas:i.canvas,coordinate:p,layout:g};for(const[y,x]of h){const{transform:C=[]}=y;cb(C.map(a))(x,v)}s&&s(d,v)}function RLe(e,t,n){const{seriesIndex:r,seriesKey:i,points:a,key:o,index:s}=n.__data__,l=FLe(n);if(!r)return[Object.assign(Object.assign({},e),{key:`${o}-${t}`,bounds:l,index:s,points:a,dependentElement:n})];const c=DLe(e),u=r.map((f,d)=>Object.assign(Object.assign({},e),{key:`${i[d]}-${t}`,bounds:[a[d]],index:f,points:a,dependentElement:n}));return c?c(u):u}function jLe([e,t,n]){if(n)return[e,t,n];const r=[],i=[];for(let a=0;a<e.length;a++){const o=e[a],s=t[a];s.every(([l,c])=>Dn(l)&&Dn(c))&&(r.push(o),i.push(s))}return[r,i]}function DLe(e){const{selector:t}=e;if(!t)return null;if(typeof t=="function")return t;if(t==="first")return n=>[n[0]];if(t==="last")return n=>[n[n.length-1]];throw new Error(`Unknown selector: ${t}`)}function FLe(e){const t=e.cloneNode(!0),n=e.getAnimations();t.style.visibility="hidden",n.forEach(o=>{const s=o.effect.getKeyframes();t.attr(s[s.length-1])}),e.parentNode.appendChild(t);const r=t.getLocalBounds();t.destroy();const{min:i,max:a}=r;return[i,a]}function BLe(e,t,n,r,i){const[a]=Kn("shape",r),{data:o,encode:s}=e,{data:l,defaultLabelShape:c}=t,u=l.map(g=>g.points),f=Ps(s,g=>g.value),{theme:d,coordinate:h}=n,p=Object.assign(Object.assign({},i),{document:OG(i),theme:d,coordinate:h});return g=>{const{index:v,points:y}=g,x=o[v],{formatter:C=G=>`${G}`,transform:_,style:S,render:O,selector:E,element:k}=g,$=Mc(g,["formatter","transform","style","render","selector","element"]),T=Ps(Object.assign(Object.assign({},$),S),G=>xU(G,x,v,o,{channel:f,element:k})),{shape:M=c,text:R}=T,N=Mc(T,["shape","text"]),D=typeof C=="string"?Hc(C):C,F=Object.assign(Object.assign({},N),{text:D(R,x,v,o),datum:x}),V=Object.assign({type:`label.${M}`,render:O},N),z=a(V,p),B=bU(d,"label",M,"label");return z(y,F,B,u)}}function xU(e,t,n,r,i){return typeof e=="function"?e(t,n,r,i):typeof e!="string"?e:cd(t)&&t[e]!==void 0?t[e]:e}function zLe(e){let t=-1/0,n=1/0;for(const[r,i]of e){const{animate:a={}}=r,{data:o}=i,{enter:s={},update:l={},exit:c={}}=a,{type:u,duration:f=300,delay:d=0}=l,{type:h,duration:p=300,delay:g=0}=s,{type:v,duration:y=300,delay:x=0}=c;for(const C of o){const{updateType:_=u,updateDuration:S=f,updateDelay:O=d,enterType:E=h,enterDuration:k=p,enterDelay:$=g,exitDuration:T=y,exitDelay:M=x,exitType:R=v}=C;(_===void 0||_)&&(t=Math.max(t,S+O),n=Math.min(n,O)),(R===void 0||R)&&(t=Math.max(t,T+M),n=Math.min(n,M)),(E===void 0||E)&&(t=Math.max(t,k+$),n=Math.min(n,$))}}return t===-1/0?null:[n,t-n]}
148function VLe(e,t,n,r){return e.node().parentElement.findAll(a=>a.style.facet!==void 0&&a.style.facet===n&&a!==t.node()).flatMap(a=>a.getElementsByClassName(r))}function WLe(e,t,n){if(!e.__facet__)return;const r=e.parentNode.parentNode,i=t.parentNode,[a,o]=n(r),[s,l]=n(i),c=`translate(${a-s}, ${o-l})`;$9e(e,c),t.append(e)}function HLe(e,t,n,r){const{library:i}=r,[a]=Kn("shape",i),{data:o,encode:s}=e,{defaultShape:l,data:c,shape:u}=t,f=Ps(s,x=>x.value),d=c.map(x=>x.points),{theme:h,coordinate:p}=n,{type:g,style:v={}}=e,y=Object.assign(Object.assign({},r),{document:OG(r),coordinate:p,theme:h});return x=>{const{shape:C=l}=v,{shape:_=C,points:S,seriesIndex:O,index:E}=x,k=Mc(x,["shape","points","seriesIndex","index"]),$=Object.assign(Object.assign({},k),{index:E}),T=O?O.map(F=>o[F]):o[E],M=O||E,R=Ps(v,F=>xU(F,T,M,o,{channel:f})),N=u[_]?u[_](R,y):a(Object.assign(Object.assign({},R),{type:_U(e,_)}),y),D=bU(h,g,_,l);return N(S,$,D,d)}}function bU(e,t,n,r){if(typeof t!="string")return;const{color:i}=e,a=e[t]||{},o=a[n]||a[r];return Object.assign({color:i},o)}function aw(e,t,n,r,i){var a,o;const[,s]=Kn("shape",i),[l]=Kn("animation",i),{defaultShape:c,shape:u}=n,{theme:f,coordinate:d}=r,p=`default${jc(e)}Animation`,{[p]:g}=((a=u[c])===null||a===void 0?void 0:a.props)||s(_U(t,c)).props,{[e]:v={}}=f,y=((o=t.animate)===null||o===void 0?void 0:o[e])||{},x={coordinate:d};return(C,_,S)=>{const{[`${e}Type`]:O,[`${e}Delay`]:E,[`${e}Duration`]:k,[`${e}Easing`]:$}=C,T=Object.assign({type:O||g},y);if(!T.type)return null;const N=l(T,x)(_,S,_e(v,{delay:E,duration:k,easing:$}));let D=[];return Array.isArray(N)?D=N:D=[N],D.filter(Boolean)}}function GLe(e,t,n,r){return aw("enter",e,t,n,r)}function ULe(e){return e.finished.then(()=>{e.cancel()}),e}function YLe(e,t,n,r){return aw("update",e,t,n,r)}function XLe(e,t,n,r){return aw("exit",e,t,n,r)}function CU(e={}){if(typeof e=="string")return{type:e};const{type:t="light"}=e,n=Mc(e,["type"]);return Object.assign(Object.assign({},n),{type:t})}function l3(e){const t={event:!0,tooltip:!0,sliderFilter:!0,legendFilter:!0,scrollbarFilter:!0},{interaction:n={}}=e;return Object.entries(_e(t,n)).reverse()}function wU(e,t){return kl(this,void 0,void 0,function*(){const{data:n}=e,r=Mc(e,["data"]);if(n==null)return e;const[,{data:i}]=yield pU([],{data:n},t);return Object.assign({data:i},r)})}function RP(e){e.style("transform",t=>`translate(${t.paddingLeft+t.marginLeft}, ${t.paddingTop+t.marginTop})`).style("width",t=>t.innerWidth).style("height",t=>t.innerHeight)}function qLe(e,t){const[n,r]=t;e.transition(function(i,a,o){const{transform:s,width:l,height:c}=o.style,{paddingLeft:u,paddingTop:f,innerWidth:d,innerHeight:h,marginLeft:p,marginTop:g}=i,v=[{transform:s,width:l,height:c},{transform:`translate(${u+p}, ${f+g})`,width:d,height:h}];return o.animate(v,{delay:n,duration:r,fill:"both"})})}function _U(e,t){const{type:n}=e;return typeof t=="string"?`${n}.${t}`:t}function jP(e,t){const n=a=>a.class!==void 0?`${a.class}`:"";e.nodes().length===0||(e.selectAll(_s(MT)).data(t,a=>a.key).join(a=>a.append("g").attr("className",MT).attr("id",o=>o.key).style("facet",n).style("fill","transparent").style("zIndex",o=>{var s;return(s=o.zIndex)!==null&&s!==void 0?s:0}),a=>a.style("facet",n).style("fill","transparent").style("zIndex",o=>{var s;return(s=o.zIndex)!==null&&s!==void 0?s:0}),a=>a.remove()),e.select(_s(V7)).node())||e.append("g").attr("className",V7).style("zIndex",0)}function _s(...e){return e.map(t=>`.${t}`).join("")}function DP(e,t){e.node()&&e.style("clipPath",n=>{if(!t)return null;const{paddingTop:r,paddingLeft:i,marginLeft:a,marginTop:o,innerWidth:s,innerHeight:l}=n;return new zc({style:{x:i+a,y:r+o,width:s,height:l}})})}function ZLe(e,t,n){var r;for(const[c]of n.entries())if(c.type==="cell")return e.filter(u=>u.name!=="shape");if(t.length!==1||e.some(c=>c.name==="shape"))return e;const{defaultShape:i}=t[0];if(!["point","line","rect","hollow"].includes(i))return e;const o={point:"point",line:"hyphen",rect:"square",hollow:"hollow"},l={field:((r=e.find(c=>c.name==="color"))===null||r===void 0?void 0:r.field)||null,name:"shape",type:"constant",domain:[],range:[o[i]]};return[...e,l]}function KLe(e,t){for(const[n,r]of Object.entries(t))e.style(n,r)}function JLe(...e){return t=>e.reduce((n,r)=>r(n),t)}function QLe(e){const{style:t,scale:n,type:r}=e,i={},a=an(t,"columnWidthRatio");return a&&r==="interval"&&(i.x=Object.assign(Object.assign({},n==null?void 0:n.x),{padding:1-a})),Object.assign(Object.assign({},e),{scale:Object.assign(Object.assign({},n),i)})}function SU(e){const t=eRe(e);return t.children&&Array.isArray(t.children)&&(t.children=t.children.map(n=>SU(n))),t}function eRe(e){return JLe(QLe)(e)}function tRe(e){const t=_e({},e),n=new Map([[t,null]]),r=new Map([[null,-1]]),i=[t];for(;i.length;){const a=i.shift();if(a.key===void 0){const s=n.get(a),l=r.get(a),c=s===null?"0":`${s.key}-${l}`;a.key=c}const{children:o=[]}=a;if(Array.isArray(o))for(let s=0;s<o.length;s++){const l=_e({},o[s]);o[s]=l,n.set(l,a),r.set(l,s),i.push(l)}}return t}function nRe(e,t){const n=new kH;return n.registerPlugin(new $H),new tB({width:e,height:t,container:document.createElement("div"),renderer:n})}function rRe(e,t={},n=()=>{},r=i=>{throw i}){const i=Ig(e),{width:a=640,height:o=480,depth:s=0}=i,l=SU(i),c=tRe(l),{canvas:u=nRe(a,o),emitter:f=new kC,library:d}=t;t.canvas=u,t.emitter=f;const{width:h,height:p}=u.getConfig();(h!==a||p!==o)&&u.resize(a,o),f.emit(xn.BEFORE_RENDER);const g=ft(u.document.documentElement);return u.ready.then(()=>iw(Object.assign(Object.assign({},c),{width:a,height:o,depth:s}),g,t)).then(()=>
148{if(s){const[v,y]=u.document.documentElement.getPosition();u.document.documentElement.setPosition(v,y,-s/2)}u.requestAnimationFrame(()=>{u.requestAnimationFrame(()=>{f.emit(xn.AFTER_RENDER),n==null||n()})})}).catch(v=>{r==null||r(v)}),aRe(u.getConfig().container)}function FP(e,t={},n=!1){const{canvas:r,emitter:i}=t;r&&(iRe(r),n?r.destroy():r.destroyChildren()),i.off()}function iRe(e){const t=e.getRoot().querySelectorAll(`.${Hm}`);t==null||t.forEach(n=>{const{nameInteraction:r=new Map}=n;(r==null?void 0:r.size)>0&&Array.from(r==null?void 0:r.values()).forEach(i=>{i==null||i.destroy()})})}function aRe(e){return typeof e=="string"?document.getElementById(e):e}function dp(e,t){if(t(e))return!0;if(e.tagName==="g"){const{childNodes:n=[]}=e;for(const r of n)if(dp(r,t))return!0}return!1}const oRe={visibility:"visible",opacity:1,fillOpacity:1,strokeOpacity:1};function sRe(e,t){let n;return dp(e,r=>{var i;return r.tagName!=="g"&&((i=r.style)===null||i===void 0?void 0:i[t])!==void 0?(n=r.style[t],!0):!1}),n??oRe[t]}function ow(e,t,n,r){e.style[t]=n,e.children.forEach(i=>ow(i,t,n))}function sw(e){ow(e,"visibility","hidden")}function Pv(e){ow(e,"visibility","visible")}var wh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Nc(e){return ft(e).selectAll(`.${ds}`).nodes().filter(t=>!t.__removed__)}function OU(e,t){return d8(e,t).flatMap(({container:n})=>Nc(n))}function d8(e,t){return t.filter(n=>n!==e&&n.options.parentKey===e.options.key)}function Uo(e){return ft(e).select(`.${np}`).node()}function EU(e){if(e.tagName==="g")return e.getRenderBounds();const t=e.getGeometryBounds(),n=new Ar;return n.setFromTransformedAABB(t,e.getWorldTransform()),n}function lf(e,t){const{offsetX:n,offsetY:r}=t,i=EU(e),{min:[a,o],max:[s,l]}=i,c=n<a||n>s,u=r<o||r>l;return c||u?null:[n-a,r-o]}function w4(e,t){const{offsetX:n,offsetY:r}=t,[i,a,o,s]=lRe(e);return[Math.min(o,Math.max(i,n))-i,Math.min(s,Math.max(a,r))-a]}function lRe(e){const t=e.getRenderBounds(),{min:[n,r],max:[i,a]}=t;return[n,r,i,a]}function kU(e){return t=>t.__data__.color}function Kp(e){return t=>t.__data__.x}function cf(e){const t=Array.isArray(e)?e:[e],n=new Map(t.flatMap(r=>Array.from(r.markState.keys()).map(a=>[c3(r.key,a.key),a.data])));return r=>{const{index:i,markKey:a,viewKey:o}=r.__data__;return n.get(c3(o,a))[i]}}const BP={selected:3,unselected:3,active:2,inactive:2,default:1},cRe={selection:["selected","unselected"],highlight:["active","inactive"]},AU=(e,t,n)=>{dp(e,r=>{"setAttribute"in r&&typeof r.setAttribute=="function"&&r.setAttribute(t,n)})};function $U(e,t){return t.forEach(n=>{const r=n.__interactionStyle__;r?n.__interactionStyle__=Object.assign(Object.assign({},r),e):n.__interactionStyle__=e}),(n=(i,a)=>i,r=AU)=>kc(void 0,n,r)}function kc(e,t=(r,i)=>r,n=AU){const r="__states__",i="__ordinal__",a=h=>BP[h]||BP.default,o=h=>{var p;return(p=Object.entries(cRe).find(([g,v])=>v.includes(h)))===null||p===void 0?void 0:p[0]},s=h=>{var p;const{[r]:g=[],[i]:v={}}=h,y=[...g].sort((_,S)=>a(S)-a(_)),x=new Map;for(const _ of y){const S=((p=e??h.__interactionStyle__)===null||p===void 0?void 0:p[_])||{};for(const[O,E]of Object.entries(S))x.has(O)||x.set(O,E)}const C=Object.assign({},v);for(const[_,S]of x.entries())C[_]=S;if(Object.keys(C).length!==0){for(const[_,S]of Object.entries(C)){const O=sRe(h,_),E=t(S,h);n(h,_,E),_ in v||(v[_]=O)}h[i]=v}},l=h=>{h[r]||(h[r]=[])};return{setState:(h,...p)=>{l(h),h[r]=[...p],s(h)},updateState:(h,...p)=>{l(h);const g=h[r],v=new Set(p.map(x=>o(x)).filter(x=>x!==void 0)),y=g.filter(x=>!v.has(o(x)));h[r]=[...y,...p],s(h)},removeState:(h,...p)=>{l(h);for(const g of p){const v=h[r].indexOf(g);v!==-1&&h[r].splice(v,1)}s(h)},hasState:(h,p)=>(l(h),h[r].indexOf(p)!==-1)}}function uRe(e){return e===void 0?!0:typeof e!="object"?!1:Object.keys(e).length===0}function c3(e,t){return`${e},${t}`}function Od(e,t){const r=(Array.isArray(e)?e:[e]).flatMap(a=>a.marks.map(o=>
vendor: 13,209 bytes, line 148
148[c3(a.key,o.key),o.state])),i={};for(const a of t){const[o,s]=Array.isArray(a)?a:[a,{}];i[o]=r.reduce((l,c)=>{const[u,f={}]=c,d=uRe(f[o])?s:f[o];for(const[h,p]of Object.entries(d)){const g=l[h],v=(y,x,C,_)=>{const S=c3(_.__data__.viewKey,_.__data__.markKey);return u!==S?g==null?void 0:g(y,x,C,_):typeof p!="function"?p:p(y,x,C,_)};l[h]=v}return l},{})}return i}function Jp(e,t){const n=new Map(e.map((i,a)=>[i,a])),r=t?e.map(t):e;return(i,a)=>{if(typeof i!="function")return i;const o=n.get(a),s=t?t(a):a;return i(s,o,r,a)}}function TU(e){var{link:t=!1,valueof:n=(u,f)=>u,coordinate:r}=e,i=wh(e,["link","valueof","coordinate"]);const a="element-link";if(!t)return[()=>{},()=>{}];const o=u=>u.__data__.points,s=(u,f)=>{const[,d,h]=u,[p,,,g]=f;return[d,p,g,h]};return[u=>{var f;if(u.length<=1)return;const d=zo(u,(h,p)=>{const{x:g}=h.__data__,{x:v}=p.__data__;return g-v});for(let h=1;h<d.length;h++){const p=co(),g=d[h-1],v=d[h],[y,x,C,_]=s(o(g),o(v));p.moveTo(...y),p.lineTo(...x),p.lineTo(...C),p.lineTo(..._),p.closePath();const S=Ps(i,$=>n($,g)),{fill:O=g.getAttribute("fill")}=S,E=wh(S,["fill"]),k=new qi({className:a,style:Object.assign({d:p.toString(),fill:O,zIndex:-2},E)});(f=g.link)===null||f===void 0||f.remove(),g.parentNode.appendChild(k),g.link=k}},u=>{var f;(f=u.link)===null||f===void 0||f.remove(),u.link=null}]}function PU(e,t,n){const r=i=>{const{transform:a}=e.style;return a?`${a} ${i}`:i};if(On(n)){const{points:i}=e.__data__,[a,o]=Un(n)?sv(i):i,s=n.getCenter(),l=mr(a,s),c=mr(o,s),u=oo(l),f=VD(l,c),d=u+f/2,h=t*Math.cos(d),p=t*Math.sin(d);return r(`translate(${h}, ${p})`)}return Un(n)?r(`translate(${t}, 0)`):r(`translate(0, ${-t})`)}function MU(e){var{document:t,background:n,scale:r,coordinate:i,valueof:a}=e,o=wh(e,["document","background","scale","coordinate","valueof"]);const s="element-background";if(!n)return[()=>{},()=>{}];const l=(y,x,C)=>{const _=y.invert(x),S=x+y.getBandWidth(_)/2,O=y.getStep(_)/2,E=O*C;return[S-O+E,S+O-E]},c=(y,x)=>{const{x:C}=r;if(!mh(C))return[0,1];const{__data__:_}=y,{x:S}=_,[O,E]=l(C,S,x);return[O,E]},u=(y,x)=>{const{y:C}=r;if(!mh(C))return[0,1];const{__data__:_}=y,{y:S}=_,[O,E]=l(C,S,x);return[O,E]},f=(y,x)=>{const{padding:C}=x,[_,S]=c(y,C),[O,E]=u(y,C),k=[[_,O],[S,O],[S,E],[_,E]].map(R=>i.map(R)),{__data__:$}=y,{y:T,y1:M}=$;return dB(t,k,{y:T,y1:M},i,x)},d=(y,x)=>{const{transform:C="scale(1.2, 1.2)",transformOrigin:_="center center",stroke:S=""}=x,O=wh(x,["transform","transformOrigin","stroke"]),E=Object.assign({transform:C,transformOrigin:_,stroke:S},O),k=y.cloneNode(!0);for(const[$,T]of Object.entries(E))k.style[$]=T;return k},h=()=>{const{x:y,y:x}=r;return[y,x].some(mh)};return[y=>{y.background&&y.background.remove();const x=Ps(o,R=>a(R,y)),{fill:C="#CCD6EC",fillOpacity:_=.3,zIndex:S=-2,padding:O=.001,lineWidth:E=0}=x,k=wh(x,["fill","fillOpacity","zIndex","padding","lineWidth"]),$=Object.assign(Object.assign({},k),{fill:C,fillOpacity:_,zIndex:S,padding:O,lineWidth:E}),M=(h()?f:d)(y,$);M.className=s,y.parentNode.parentNode.appendChild(M),y.background=M},y=>{var x;(x=y.background)===null||x===void 0||x.remove(),y.background=null},y=>y.className===s]}function hc(e,t){const r=e.getRootNode().defaultView.getContextService().getDomElement();r!=null&&r.style&&(e.cursor=r.style.cursor,r.style.cursor=t)}function fRe(e){hc(e,e.cursor)}function lw(e,t,n){return e.find(r=>Object.entries(t).every(([i,a])=>n(r)[i]===a))}function u3(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}function A1(e,t=!1){const n=WR(e,r=>!!r).map((r,i)=>[i===0?"M":"L",...r]);return t&&n.push(["Z"]),n}function NU(e){return e.querySelectorAll(".element")}function dRe(e,t,n=0){const r=[["M",...t[1]]],i=u3(e,t[1]),a=u3(e,t[0]);return i===0?r.push(["L",...t[3]],["A",a,a,0,n,1,...t[0]],["Z"]):r.push(["A",i,i,0,n,0,...t[2]],["L",...t[3]],["A",a,a,0,n,1,...t[0]],["Z"]),r}function Qp(e,t){if(t(e))return e;let n=e.parent;for(;n&&!t(n);)n=n.parent;return n}const cw=["interval","point","density"];function IU({elementsof:e,root:t,coordinate:n,scale:r,validFindByXMarks:i=cw}){var a,o;let s=e(t);const l=u=>i.includes(u.markType);if(s.find(l)){s=s.filter(l);const u=r.x,f=r.series,d=(o=(a=u==null?void 0:u.getBandWidth)===null||a===void 0?void 0:a.call(u))!==null&&o!==void 0?o:0,h=f?p=>{const g=Math.round(1/f.valueBandWidth);return p.__data__.x+p.__data__.series*d+d/(g*2)}:p=>p.__data__.x+d/2;return s.sort((p,g)=>h(p)-h(g)),p=>{const g=lf(t,p);if(!g)return;const[v]=n.invert(g),y=Sl(h).center,x=y(s,v);return s[x]}}return u=>{const{target:f}=u;return Qp(f,d=>d.classList?d.classList.includes("element"):!1)}}var hRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function pRe(e,{elements:t,datum:n,groupKey:r=p=>p,regionGroupKey:i=p=>p,link:a=!1,background:o=!1,delay:s=60,scale:l,coordinate:c,emitter:u,state:f={},region:d=!1,regionEleFilter:h=p=>cw.includes(p.markType)}){var p,g;const v=(p=t(e))!==null&&p!==void 0?p:[],y=d?v.filter(h):v,x=new Set(y),C=d?i:r,_=jn(y,C),S=IU({elementsof:t,root:e,coordinate:c,scale:l}),O=Jp(y,n),[E,k]=TU(Object.assign({elements:y,valueof:O,link:a,coordinate:c},Ve(f.active,"link"))),[$,T,M]=MU(Object.assign({document:e.ownerDocument,scale:l,coordinate:c,background:o,valueof:O},Ve(f.active,"background"))),R=_e(f,{active:Object.assign({},((g=f.active)===null||g===void 0?void 0:g.offset)&&{transform:(...ae)=>{const ce=f.active.offset(...ae),[,fe]=ae;return PU(y[fe],ce,c)}})}),N=$U(R,y),{updateState:D,removeState:F,hasState:V}=N(O);let z;const B=ae=>{const{nativeEvent:ce=!0}=ae;let fe=ae.target;if(d&&(fe=S(ae)),!x.has(fe))return;z&&clearTimeout(z);const le=C(fe),be=_.get(le),Ce=new Set(be);for(const $e of y)Ce.has($e)?V($e,"active")||D($e,"active"):(D($e,"inactive"),k($e)),$e!==fe&&T($e);$(fe),E(be),ce&&u.emit("element:highlight",{nativeEvent:ce,data:{data:n(fe),group:be.map(n)}})},G=()=>{z&&clearTimeout(z),z=setTimeout(()=>{Y(),z=null},s)},Y=(ae=!0)=>{for(const ce of y)F(ce,"active","inactive"),T(ce),k(ce);ae&&u.emit("element:unhighlight",{nativeEvent:ae})},K=ae=>{let ce=ae.target;if(d&&(ce=S(ae)),!ce){s>0?G():Y();return}o&&!M(ce)||!o&&!x.has(ce)||(s>0?G():Y())},Q=()=>{Y()};e.addEventListener("pointerover",B),e.addEventListener("pointermove",B),e.addEventListener("pointerout",K),e.addEventListener("pointerleave",Q);const ne=ae=>{const{nativeEvent:ce}=ae;ce||Y(!1)},oe=ae=>{const{nativeEvent:ce}=ae;if(ce)return;const{data:fe}=ae.data,le=lw(y,fe,n);le&&B({target:le,nativeEvent:!1})};return u.on("element:highlight",oe),u.on("element:unhighlight",ne),()=>{e.removeEventListener("pointerover",B),e.removeEventListener("pointermove",B),e.removeEventListener("pointerout",K),e.removeEventListener("pointerleave",Q),u.off("element:highlight",oe),u.off("element:unhighlight",ne);for(const ae of y)T(ae),k(ae)}}function Mv(e){var{delay:t,createGroup:n,createRegionGroup:r,background:i=!1,link:a=!1}=e,o=hRe(e,["delay","createGroup","createRegionGroup","background","link"]);return(s,l,c)=>{const{container:u,view:f,options:d}=s,{scale:h,coordinate:p}=f,g=Uo(u);return pRe(g,Object.assign({elements:Nc,datum:cf(f),groupKey:n?n(f):void 0,regionGroupKey:r?r(f):Kp(),coordinate:p,scale:h,state:Od(d,[["active",i?{}:{lineWidth:"1",stroke:"#000"}],"inactive"]),background:i,link:a,delay:t,emitter:c},o))}}Mv.props={reapplyWhenUpdate:!0};function LU(e){return Mv(Object.assign(Object.assign({},e),{createGroup:Kp}))}LU.props={reapplyWhenUpdate:!0};function RU(e){return Mv(Object.assign(Object.assign({},e),{createGroup:kU}))}RU.props={reapplyWhenUpdate:!0};var gRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function mRe(e,{elements:t,datum:n,groupKey:r=g=>g,regionGroupKey:i=g=>g,link:a=!1,single:o=!1,multipleSelectHotkey:s,coordinate:l,background:c=!1,scale:u,emitter:f,state:d={},region:h=!1,regionEleFilter:p=g=>cw.includes(g.markType)}){var g;const v=t(e),y=new Set(v),x=IU({elementsof:t,root:e,coordinate:l,scale:u}),C=jn(v,r),_=jn(v,i),S=Jp(v,n),[O,E]=TU(Object.assign({link:a,elements:v,valueof:S,coordinate:l},Ve(d.selected,"link"))),[k,$]=MU(Object.assign({document:e.ownerDocument,background:c,coordinate:l,scale:u,valueof:S},Ve(d.selected,"background"))),T=_e(d,{selected:Object.assign({},((g=d.selected)===null||g===void 0?void 0:g.offset)&&{transform:(...le)=>{const be=d.selected.offset(...le),[,Ce]=le;return PU(v[Ce],be,l)}})}),M=$U(T,v),{updateState:R,removeState:N,hasState:D}=M(S);let F=!o,V=null;const z=(le=!0)=>{for(const be of v)N(be,"selected","unselected"),E(be),$(be);le&&f.emit("element:unselect",{nativeEvent:!0})},B=({event:le,element:be,nativeEvent:Ce=!0,filter:$e=je=>!0,groupBy:Me=r,groupMap:Le=C})=>{const je=v.filter($e);if(D(be,"selected"))z();else{const Ge=Me(be),nt=Le.get(Ge),Ze=new Set(nt);for(const Ue of je)Ze.has(Ue)?R(Ue,"selected"):(R(Ue,"unselected"),E(Ue)),Ue!==be&&$(Ue);if(O(nt),k(be),!Ce)return;f.emit("element:select",Object.assign(Object.assign({},le),{nativeEvent:Ce,data:{data:[n(be),...nt.map(n)]}}))}},G=({event:le,element:be,nativeEvent:Ce=!0,filter:$e=je=>!0,groupBy:Me=r,groupMap:Le=C})=>{const je=Me(be),Ge=Le.get(je),nt=new Set(Ge),Ze=v.filter($e);if(D(be,"selected")){if(!v.some(Qe=>!nt.has(Qe)&&D(Qe,"selected")))return z();for(const Qe of Ge)R(Qe,"unselected"),E(Qe),$(Qe)}else{const Ue=Ge.some(Qe=>D(Qe,"selected"));for(const Qe of Ze)nt.has(Qe)?R(Qe,"selected"):D(Qe,"selected")||R(Qe,"unselected");!Ue&&a&&O(Ge),k(be)}Ce&&f.emit("element:select",Object.assign(Object.assign({},le),{nativeEvent:Ce,data:{data:v.filter(Ue=>D(Ue,"selected")).map(n)}}))},Y=le=>{if(y.has(le))return!0;for(const be of y)if(dp(be,$e=>$e===le))return!0;return!1},K=le=>{if(y.has(le))return le;for(const be of y){let Ce=null;if(dp(be,$e=>{$e===le&&(Ce=be)}),Ce)return Ce}return le},Q=le=>{const{target:be,nativeEvent:Ce=!0}=le,$e=F?G:B;let Me=be;const Le=Y(be);return!h||Le?Le?$e({event:le,element:K(Me),nativeEvent:Ce,groupBy:r}):z():(Me=x(le),y.has(Me)?$e({event:le,element:Me,nativeEvent:Ce,filter:p,groupBy:i,groupMap:_}):z())},ne=Array.isArray(s)?s:[s],oe=le=>{ne.includes(le.code)&&!V&&(V=le.code,F=!0)},ae=le=>{le.code===V&&(V=null,F=!1)};e.addEventListener("click",Q),s&&(F=!1,document.addEventListener("keydown",oe),document.addEventListener("keyup",ae));const ce=le=>{const{nativeEvent:be,data:Ce}=le;if(be)return;const $e=F?Ce.data:Ce.data.slice(0,1);for(const Me of $e){const Le=lw(v,Me,n);Q({target:Le,nativeEvent:!1})}},fe=()=>{z(!1)};return f.on("element:select",ce),f.on("element:unselect",fe),()=>{for(const le of v)E(le);e.removeEventListener("click",Q),s&&(document.removeEventListener("keydown",oe),document.removeEventListener("keyup",ae)),f.off("element:select",ce),f.off("element:unselect",fe)}}function Nv(e){var{createGroup:t,createRegionGroup:n,background:r=!1,link:i=!1}=e,a=gRe(e,["createGroup","createRegionGroup","background","link"]);return(o,s,l)=>{const{container:c,view:u,options:f}=o,{coordinate:d,scale:h}=u,p=Uo(c);return mRe(p,Object.assign({elements:Nc,datum:cf(u),groupKey:t?t(u):void 0,regionGroupKey:n?n(u):Kp(),coordinate:d,scale:h,state:Od(f,[["selected",r?{}:{lineWidth:"1",stroke:"#000"}],"unselected"]),background:r,link:i,emitter:l},a))}}Nv.props={reapplyWhenUpdate:!0};function jU(e){return Nv(Object.assign(Object.assign({},e),{createGroup:Kp}))}jU.props={reapplyWhenUpdate:!0};function DU(e){return Nv(Object.assign(Object.assign({},e),{createGroup:kU}))}DU.props={reapplyWhenUpdate:!0};var vRe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})},yRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function xRe(e){const{transform:t=[]}=e,n=t.find(i=>i.type==="normalizeY");if(n)return n;const r={type:"normalizeY"};return t.push(r),e.transform=t,r}function bRe(e,t,n){const[r]=Array.from(e.entries()).filter(([i])=>i.type===t).map(([i])=>{const{encode:a}=i,o=s=>{const l=a[s];return[s,l?l.value:void 0]};return Object.fromEntries(n.map(o))});return r}function FU(e){var{wait:t=20,leading:n,trailing:r=!1,labelFormatter:i=o=>`${o}`}=e,a=yRe(e,["wait","leading","trailing","labelFormatter"]);return o=>{const{view:s,container:l,update:c,setState:u}=o,{markState:f,scale:d,coordinate:h}=s,p=bRe(f,"line",["x","y","series"]);if(!p)return;const{y:g,x:v,series:y=[]}=p,x=g.map((z,B)=>B),C=zo(x.map(z=>
148v[z])),_=Uo(l),S=l.getElementsByClassName(ds),O=l.getElementsByClassName(W7),k=jn(O,z=>z.__data__.key.split("-")[0]),$=new vf({style:Object.assign({x1:0,y1:0,x2:0,y2:_.getAttribute("height"),stroke:"black",lineWidth:1},Ve(a,"rule"))}),T=new so({style:Object.assign({x:0,y:_.getAttribute("height"),text:"",fontSize:10},Ve(a,"label"))});$.append(T),_.appendChild($);const M=(z,B,G)=>{const[Y]=z.invert(G),K=B.invert(Y);return C[Dve(C,K)]},R=(z,B)=>{$.setAttribute("x1",z[0]),$.setAttribute("x2",z[0]),T.setAttribute("text",i(B))};let N;const D=z=>vRe(this,void 0,void 0,function*(){const{x:B}=d,G=M(h,B,z);R(z,G),u("chartIndex",K=>{const Q=_e({},K),ne=Q.marks.find(le=>le.type==="line"),ae=bn(eb(x,le=>bn(le,be=>+g[be])/$a(le,be=>+g[be]),le=>y[le]).values()),ce=[1/ae,ae];_e(ne,{scale:{y:{domain:ce}}});const fe=xRe(ne);fe.groupBy="color",fe.basis=(le,be)=>{const Ce=le[Sl($e=>v[+$e]).center(le,G)];return be[Ce]};for(const le of Q.marks)le.animate=!1;return Q}),N=(yield c("chartIndex")).view}),F=z=>{const{scale:B,coordinate:G}=N,{x:Y,y:K}=B,Q=M(G,Y,z);R(z,Q);for(const ne of S){const{seriesIndex:oe,key:ae}=ne.__data__,ce=oe[Sl(Le=>v[+Le]).center(oe,Q)],fe=[0,K.map(1)],le=[0,K.map(g[ce]/g[oe[0]])],[,be]=G.map(fe),[,Ce]=G.map(le),$e=be-Ce;ne.setAttribute("transform",`translate(0, ${$e})`);const Me=k.get(ae)||[];for(const Le of Me)Le.setAttribute("dy",$e)}},V=qu(z=>{const B=lf(_,z);B&&F(B)},t,{leading:n,trailing:r});return D([0,0]),_.addEventListener("pointerenter",V),_.addEventListener("pointermove",V),_.addEventListener("pointerleave",V),()=>{$.remove(),_.removeEventListener("pointerenter",V),_.removeEventListener("pointermove",V),_.removeEventListener("pointerleave",V)}}}FU.props={reapplyWhenUpdate:!0};function CRe(e){const{coordinate:t={}}=e,{transform:n=[]}=t,r=n.find(a=>a.type==="fisheye");if(r)return r;const i={type:"fisheye"};
148return n.push(i),t.transform=n,e.coordinate=t,i}function wRe({wait:e=30,leading:t,trailing:n=!1}){return r=>{const{options:i,update:a,setState:o,container:s}=r,l=Uo(s),c=qu(u=>{const f=lf(l,u);if(!f){o("fisheye"),a();return}o("fisheye",d=>{const h=_e({},d,{interaction:{tooltip:{preserve:!0}}});for(const y of h.marks)y.animate=!1;const[p,g]=f,v=CRe(h);return v.focusX=p,v.focusY=g,v.visual=!0,h}),a()},e,{leading:t,trailing:n});return l.addEventListener("pointerenter",c),l.addEventListener("pointermove",c),l.addEventListener("pointerleave",c),()=>{l.removeEventListener("pointerenter",c),l.removeEventListener("pointermove",c),l.removeEventListener("pointerleave",c)}}}var uf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function f3(e,t){return t?typeof t=="string"?document.querySelector(t):t:e.ownerDocument.defaultView.getContextService().getDomElement().parentElement}function _Re(e){const t=e.getRenderBounds(),{min:[n,r],max:[i,a]}=t;return{x:n,y:r,width:i-n,height:a-r}}function SRe(e,t){const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y}}function ORe(e,t,n,r,i,a,o,s={},l=[10,10]){const c={".g2-tooltip":{},".g2-tooltip-title":{overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"}},u=new __e({className:"tooltip",style:{x:t,y:n,container:o,data:[],bounding:a,position:r,enterable:i,title:"",offset:l,template:{prefixCls:"g2-"},style:_e(c,s)}});return e.appendChild(u.HTMLTooltipElement),u}function BU({root:e,data:t,x:n,y:r,render:i,event:a,single:o,position:s="right-bottom",enterable:l=!1,css:c,mount:u,bounding:f,offset:d}){const h=f3(e,u),p=f3(e),g=o?p:e,v=f||_Re(e),y=SRe(p,h),{tooltipElement:x=ORe(h,n,r,s,l,v,y,c,d)}=g,{items:C,title:_=""}=t;x.update(Object.assign({x:n,y:r,data:C,title:_,position:s,enterable:l,container:y},i!==void 0&&{content:i(a,{items:C,title:_})})),g.tooltipElement=x}function mc({root:e,single:t,emitter:n,nativeEvent:r=!0,event:i=null}){r&&n.emit("tooltip:hide",{nativeEvent:r});const a=f3(e),o=t?a:e,{tooltipElement:s}=o;s&&s.hide(i==null?void 0:i.clientX,i==null?void 0:i.clientY),HU(e),GU(e),UU(e)}function h8({root:e,single:t}){const n=f3(e),r=t?n:e;if(!r)return;const{tooltipElement:i}=r;i&&(i.destroy(),r.tooltipElement=void 0),HU(e),GU(e),UU(e)}function zU(e){const{value:t}=e;return Object.assign(Object.assign({},e),{value:t===void 0?"undefined":t})}function ERe(e){const{__data__:t}=e,{title:n,items:r=[]}=t,i=r.filter(Dn).map(a=>{var{color:o=VU(e)}=a,s=uf(a,["color"]);return Object.assign(Object.assign({},s),{color:o})}).map(zU);return Object.assign(Object.assign({},n&&{title:n}),{items:i})}function VU(e){const t=e.getAttribute("fill"),n=e.getAttribute("stroke"),{__data__:r}=e,{color:i=t&&t!=="transparent"?t:n}=r;return i}function zP(e,t=n=>n){const n=new Map(e.map(r=>[t(r),r]));return Array.from(n.values())}function WU(e,t,n,r=e.map(a=>a.__data__),i={}){const a=l=>l instanceof Date?+l:l,o=zP(r.map(l=>l.title),a).filter(Dn),s=r.flatMap((l,c)=>{const u=e[c],{items:f=[],title:d}=l,h=f.filter(Dn),p=n!==void 0?n:f.length<=1;return h.map(g=>{var{color:v=VU(u)||i.color,name:y}=g,x=uf(g,["color","name"]);const C=E9e(t,l),_=p&&!(hU in x)?C||y:y||C;return Object.assign(Object.assign({},x),{color:v,name:_||d})})}).map(zU);return Object.assign(Object.assign({},o.length>0&&{title:o.join(",")}),{items:zP(s,l=>`(${a(l.name)}, ${a(l.value)}, ${a(l.color)})`)})}function kRe(e,t,n,r){var{plotWidth:i,plotHeight:a,mainWidth:o,mainHeight:s,startX:l,startY:c,transposed:u,polar:f,insetLeft:d,insetTop:h}=r,p=uf(r,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);const g=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},p),v=(O,E,k)=>{const $=new Ns({style:Object.assign({cx:O,cy:E,r:k},g)});return e.appendChild($),$},y=(O,E,k,$)=>{const T=new vf({style:Object.assign({x1:O,x2:E,y1:k,y2:$},g)});return e.appendChild(T),T}
148,C=((O,E)=>{if(E.length===1)return E[0];const k=E.map(T=>or(T,O)),$=Pp(k,T=>T);return E[$]})(n,t),_=()=>u?[l+C[0],l+C[0],c,c+a]:[l,l+i,C[1]+c,C[1]+c],S=()=>{const O=l+d+o/2,E=c+h+s/2,k=or([O,E],C);return[O,E,k]};if(f){const[O,E,k]=S(),$=e.ruleX||v(O,E,k);$.style.cx=O,$.style.cy=E,$.style.r=k,e.ruleX=$}else{const[O,E,k,$]=_(),T=e.ruleX||y(O,E,k,$);T.style.x1=O,T.style.x2=E,T.style.y1=k,T.style.y2=$,e.ruleX=T}}function ARe(e,t,n){var{plotWidth:r,plotHeight:i,mainWidth:a,mainHeight:o,startX:s,startY:l,transposed:c,polar:u,insetLeft:f,insetTop:d}=n,h=uf(n,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);const p=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},h),g=t.map($=>$[1]),v=t.map($=>$[0]),y=Bh(g),x=Bh(v),C=()=>{if(u){const $=Math.min(a,o)/2,T=s+f+a/2,M=l+d+o/2,R=oo(mr([x,y],[T,M])),N=T+$*Math.cos(R),D=M+$*Math.sin(R);return[T,N,M,D]}return c?[s,s+r,y+l,y+l]:[x+s,x+s,l,l+i]},[_,S,O,E]=C(),k=()=>{const $=new vf({style:Object.assign({x1:_,x2:S,y1:O,y2:E},p)});return e.appendChild($),$};if(v.length>0){const $=e.ruleY||k();$.style.x1=_,$.style.x2=S,$.style.y1=O,$.style.y2=E,e.ruleY=$}}function HU(e){e.ruleY&&(e.ruleY.remove(),e.ruleY=void 0)}function GU(e){e.ruleX&&(e.ruleX.remove(),e.ruleX=void 0)}function $Re(e,{data:t,style:n,theme:r}){e.markers&&e.markers.forEach(o=>o.remove());const{type:i=""}=n,a=t.filter(o=>{const[{x:s,y:l}]=o;return Dn(s)&&Dn(l)}).map(o=>{const[{color:s,element:l},c]=o,u=s||l.style.fill||l.style.stroke||r.color,f=i==="hollow"?"transparent":u,d=i==="hollow"?u:"#fff";return new Ns({className:"g2-tooltip-marker",style:Object.assign({cx:c[0],cy:c[1],fill:f,r:4,stroke:d,lineWidth:2,pointerEvents:"none"},n)})});for(const o of a)e.appendChild(o);e.markers=a}function UU(e){e.markers&&(e.markers.forEach(t=>t.remove()),e.markers=[])}function VP(e,t){return Array.from(e.values()).some(n=>{var r;return(r=n.interaction)===null||r===void 0?void 0:r[t]})}function us(e,t){return e===void 0?t:e}function YU(e){const{title:t,items:n}=e;return n.length===0&&t===void 0}function TRe(e){return Array.from(e.values()).some(t=>{var n;return((n=t.interaction)===null||n===void 0?void 0:n.seriesTooltip)&&t.tooltip})}function XU({root:e,event:t,elements:n,coordinate:r,scale:i,shared:a}){var o,s;const l=v=>v.markType==="interval",c=n.every(l)&&!On(r),u=i.x,f=i.series,d=(s=(o=u==null?void 0:u.getBandWidth)===null||o===void 0?void 0:o.call(u))!==null&&s!==void 0?s:0,h=f?v=>{const y=Math.round(1/f.valueBandWidth);return v.__data__.x+v.__data__.series*d+d/(y*2)}:v=>v.__data__.x+d/2;c&&n.sort((v,y)=>h(v)-h(y));const p=v=>{const{target:y}=v;return Qp(y,x=>x.classList?x.classList.includes("element"):!1)};return(c?v=>{const y=lf(e,v);if(!y)return;const[x]=r.invert(y),C=Sl(h).center,_=C(n,x),S=n[_];return!a&&n.find(E=>E!==S&&h(E)===h(S))?p(v):S}:p)(t)}function qU({root:e,event:t,elements:n,coordinate:r,scale:i,startX:a,startY:o}){const s=Un(r),l=[],c=[];for(const z of n){const{__data__:B}=z,{seriesX:G,title:Y,items:K}=B;G?l.push(z):(Y||K)&&c.push(z)}const u=z=>z.markType==="interval",f=c.length&&c.every(u)&&!On(r),d=z=>z.__data__.x,p=!!i.x.getBandWidth&&c.length>0;l.sort((z,B)=>{const G=s?0:1,Y=K=>K.getBounds().min[G];return s?Y(B)-Y(z):Y(z)-Y(B)});const g=z=>{const B=s?1:0,{min:G,max:Y}=z.getLocalBounds();return zo([G[B],Y[B]])};f?n.sort((z,B)=>d(z)-d(B)):c.sort((z,B)=>{const[G,Y]=g(z),[K,Q]=g(B),ne=(G+Y)/2,oe=(K+Q)/2;return s?oe-ne:ne-oe});const v=new Map(l.map(z=>{const{__data__:B}=z,{seriesX:G}=B,Y=G.map((Q,ne)=>ne),K=zo(Y,Q=>G[+Q]);return[z,[K,G]]})),{x:y}=i,x=y!=null&&y.getBandWidth?y.getBandWidth()/2:0,C=z=>{const[B]=r.invert(z);return B-x},_=(z,B,G,Y)=>{const{_x:K}=z,Q=K!==void 0?y.map(K):C(B),ne=Y.filter(Dn),[oe,ae]=zo([ne[0],ne[ne.length-1]]),ce=oe===ae;if(!p&&(Q<oe||Q>ae)&&!ce)return null;const fe=Sl(be=>Y[+be]).center,le=fe(G,Q);return G[le]},S=f?(z,B)=>{const G=Sl(d).center,Y=G(B,C(z)),K=B[Y];return jn(B,d).get(d(K))}:(z,B)=>{const Y=z[s?1:0],K=B.filter(oe=>{const[ae,ce]=g(oe);return Y>=ae&&Y<=ce});if(!p||K.length>0)return K;const Q=Sl(oe=>{const[ae,ce]=g(oe);return(ae+ce)/2}).center,ne=Q(B,Y);return[B[ne]].filter(Dn)},O=(z,B)=>{const{__data__:G}=z;return Object.fromEntries(Object.entries(G).filter(([Y])=>Y.startsWith("series")&&Y!=="series").map(([Y,K])=>{const Q=K[B];
148return[XR(Y.replace("series","")),Q]}))},E=lf(e,t);if(!E)return;const k=[E[0]-a,E[1]-o];if(!k)return;const $=S(k,c),T=[],M=[];for(const z of l){const[B,G]=v.get(z),Y=_(t,k,B,G);if(Y!==null){T.push(z);const K=O(z,Y),{x:Q,y:ne}=K,oe=r.map([(Q||0)+x,ne||0]);M.push([Object.assign(Object.assign({},K),{element:z}),oe])}}const R=Array.from(new Set(M.map(z=>z[0].x))),N=R[Pp(R,z=>Math.abs(z-C(k)))],D=M.filter(z=>z[0].x===N),F=[...D.map(z=>z[0]),...$.map(z=>z.__data__)];return{selectedElements:[...T,...$],selectedData:F,filteredSeriesData:D,abstractX:C}}function WP(e,t){var{elements:n,sort:r,filter:i,scale:a,coordinate:o,crosshairs:s,crosshairsX:l,crosshairsY:c,render:u,groupName:f,emitter:d,wait:h=50,leading:p=!0,trailing:g=!1,startX:v=0,startY:y=0,body:x=!0,single:C=!0,position:_,enterable:S,mount:O,bounding:E,theme:k,offset:$,disableNative:T=!1,marker:M=!0,preserve:R=!1,style:N={},css:D={}}=t,F=uf(t,["elements","sort","filter","scale","coordinate","crosshairs","crosshairsX","crosshairsY","render","groupName","emitter","wait","leading","trailing","startX","startY","body","single","position","enterable","mount","bounding","theme","offset","disableNative","marker","preserve","style","css"]);const V=n(e),z=_e(N,F),B=On(o),G=Un(o),{innerWidth:Y,innerHeight:K,width:Q,height:ne,insetLeft:oe,insetTop:ae}=o.getOptions(),ce=qu(Ge=>{var nt;const Ze=lf(e,Ge);if(!Ze)return;const Ue=EU(e),Qe=Ue.min[0],Pt=Ue.min[1],{selectedElements:nn,selectedData:At,filteredSeriesData:ct,abstractX:sn}=qU({root:e,event:Ge,elements:V,coordinate:o,scale:a,startX:v,startY:y}),Dt=WU(nn,a,f,At,k);if(r&&Dt.items.sort((zt,cn)=>r(zt)-r(cn)),i&&(Dt.items=Dt.items.filter(i)),nn.length===0||YU(Dt)){fe(Ge);return}if(x&&BU({root:e,data:Dt,x:Ze[0]+Qe,y:Ze[1]+Pt,render:u,event:Ge,single:C,position:_,enterable:S,mount:O,bounding:E,css:D,offset:$}),s||l||c){const zt=Ve(z,"crosshairs"),cn=Object.assign(Object.assign({},zt),Ve(z,"crosshairsX")),Yt=Object.assign(Object.assign({},zt),Ve(z,"crosshairsY")),Qn=ct.map(Fn=>Fn[1]);l&&kRe(e,Qn,Ze,Object.assign(Object.assign({},cn),{plotWidth:Y,plotHeight:K,mainWidth:Q,mainHeight:ne,insetLeft:oe,insetTop:ae,startX:v,startY:y,transposed:G,polar:B})),c&&ARe(e,Qn,Object.assign(Object.assign({},Yt),{plotWidth:Y,plotHeight:K,mainWidth:Q,mainHeight:ne,insetLeft:oe,insetTop:ae,startX:v,startY:y,transposed:G,polar:B}))}if(M){const zt=Ve(z,"marker");$Re(e,{data:ct,style:zt,theme:k})}const Ct=(nt=ct[0])===null||nt===void 0?void 0:nt[0].x,Jt=Ct??sn(focus);d.emit("tooltip:show",Object.assign(Object.assign({},Ge),{nativeEvent:!0,data:Object.assign(Object.assign({},Dt),{data:{x:xd(a.x,Jt,!0)}})}))},h,{leading:p,trailing:g}),fe=Ge=>{mc({root:e,single:C,emitter:d,event:Ge})},le=()=>{h8({root:e,single:C})},be=Ge=>{var nt,{nativeEvent:Ze,data:Ue,offsetX:Qe,offsetY:Pt}=Ge,nn=uf(Ge,["nativeEvent","data","offsetX","offsetY"]);if(Ze)return;const At=(nt=Ue==null?void 0:Ue.data)===null||nt===void 0?void 0:nt.x,sn=a.x.map(At),[Dt,Ct]=o.map([sn,.5]),Jt=e.getRenderBounds(),zt=Jt.min[0],cn=Jt.min[1];ce(Object.assign(Object.assign({},nn),{offsetX:Qe!==void 0?Qe:zt+Dt,offsetY:Pt!==void 0?Pt:cn+Ct,_x:At}))},Ce=()=>{mc({root:e,single:C,emitter:d,nativeEvent:!1})},$e=()=>{je(),le()},Me=()=>{Le()},Le=()=>{T||(e.addEventListener("pointerdown",ce),e.addEventListener("pointerenter",ce),e.addEventListener("pointermove",ce),e.addEventListener("pointerleave",Ge=>{lf(e,Ge)||fe(Ge)}),e.addEventListener("pointerup",fe))},je=()=>{T||(e.removeEventListener("pointerdown",ce),e.removeEventListener("pointerenter",ce),e.removeEventListener("pointermove",ce),e.removeEventListener("pointerleave",fe),e.removeEventListener("pointerup",fe))};return Le(),d.on("tooltip:show",be),d.on("tooltip:hide",Ce),d.on("tooltip:disable",$e),d.on("tooltip:enable",Me),()=>{je(),d.off("tooltip:show",be),d.off("tooltip:hide",Ce),d.off("tooltip:disable",$e),d.off("tooltip:enable",Me),R?mc({root:e,single:C,emitter:d,nativeEvent:!1}):le()}}function PRe(e,{elements:t,coordinate:n,scale:r,render:i,groupName:a,sort:o,filter:s,emitter:l,wait:c=50,leading:u=!0,trailing:f=!1,groupKey:d=M=>M,single:h=!0,position:p,enterable:g,datum:v,view:y,mount:x,bounding:C,theme:_,offset:S,shared:O=!1,body:E=!0,disableNative:k=!1,preserve:$=!1,css:T={}}){const M=t(e),R=jn(M,d),N=qu(K=>{const Q=XU({root:e,event:K,elements:M,coordinate:n,scale:r,shared:O});if(!Q){mc({root:e,single:h,emitter:l,event:K});return}const ne=d(Q),oe=R.get(ne);if(!oe)return;const ae=oe.length===1&&!O?ERe(oe[0]):WU(oe,r,a,void 0,_);if(o&&ae.items.sort((le,be)=>o(le)-o(be)),s&&(ae.items=ae.items.filter(s)),YU(ae)){mc({root:e,single:h,emitter:l,event:K});return}const{offsetX:ce,offsetY:fe}=K;E&&BU({root:e,data:ae,x:ce,y:fe,render:i,event:K,single:h,position:p,enterable:g,mount:x,bounding:C,css:T,offset:S}),l.emit("tooltip:show",Object.assign(Object.assign({},K),{nativeEvent:!0,data:Object.assign(Object.assign({},ae),{data:aD(Q,y)})}))},c,{leading:u,trailing:f}),D=K=>{mc({root:e,single:h,emitter:l,event:K})},F=()=>{k||(e.addEventListener("pointerdown",N),e.addEventListener("pointermove",N),e.addEventListener("pointerleave",D),e.addEventListener("pointerup",D))},V=()=>{k||(e.removeEventListener("pointerdown",N),e.removeEventListener("pointermove",N),e.removeEventListener("pointerleave",D),e.removeEventListener("pointerup",D))},z=({nativeEvent:K,offsetX:Q,offsetY:ne,data:oe})=>
148{if(K)return;const{data:ae}=oe,ce=lw(M,ae,v);if(!ce)return;const fe=ce.getBBox(),{x:le,y:be,width:Ce,height:$e}=fe,Me=e.getBBox();N({target:ce,offsetX:Q!==void 0?Q+Me.x:le+Ce/2,offsetY:ne!==void 0?ne+Me.y:be+$e/2})},B=({nativeEvent:K}={})=>{K||mc({root:e,single:h,emitter:l,nativeEvent:!1})},G=()=>{V(),h8({root:e,single:h})},Y=()=>{F()};return l.on("tooltip:show",z),l.on("tooltip:hide",B),l.on("tooltip:enable",Y),l.on("tooltip:disable",G),F(),()=>{V(),l.off("tooltip:show",z),l.off("tooltip:hide",B),$?mc({root:e,single:h,emitter:l,nativeEvent:!1}):h8({root:e,single:h})}}function ZU(e){const{shared:t,crosshairs:n,crosshairsX:r,crosshairsY:i,series:a,name:o,item:s=()=>({}),facet:l=!1}=e,c=uf(e,["shared","crosshairs","crosshairsX","crosshairsY","series","name","item","facet"]);return(u,f,d)=>{const{container:h,view:p}=u,{scale:g,markState:v,coordinate:y,theme:x}=p,C=VP(v,"seriesTooltip"),_=VP(v,"crosshairs"),S=Uo(h),O=us(a,C),E=us(n,_);if(O&&TRe(v)&&!l)return WP(S,Object.assign(Object.assign({},c),{theme:x,elements:Nc,scale:g,coordinate:y,crosshairs:E,crosshairsX:us(us(r,n),!1),crosshairsY:us(i,E),item:s,emitter:d}));if(O&&l){const k=f.filter(D=>D!==u&&D.options.parentKey===u.options.key),$=OU(u,f),T=k[0].view.scale,M=S.getBounds(),R=M.min[0],N=M.min[1];return Object.assign(T,{facet:!0}),WP(S.parentNode.parentNode,Object.assign(Object.assign({},c),{theme:x,elements:()=>$,scale:T,coordinate:y,crosshairs:us(n,_),crosshairsX:us(us(r,n),!1),crosshairsY:us(i,E),item:s,startX:R,startY:N,emitter:d}))}return PRe(S,Object.assign(Object.assign({},c),{datum:cf(p),elements:Nc,scale:g,coordinate:y,groupKey:t?Kp():void 0,item:s,emitter:d,view:p,theme:x,shared:t}))}}ZU.props={reapplyWhenUpdate:!0};var Rg=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const KU="legend-category",MRe="legend-continuous",NRe="items-item",IRe="legend-category-item-marker",LRe="legend-category-item-label";function JU(e){return e.getElementsByClassName(IRe)[0]}function QU(e){return e.getElementsByClassName(LRe)[0]}function eY(e){return e.getElementsByClassName(NRe)}function uw(e){return e.getElementsByClassName(KU)}function tY(e){return e.getElementsByClassName(MRe)}function RRe(e,t){[...uw(e),...tY(e)].forEach(r=>{t(r,i=>i)})}function p8(e){let t=e.parentNode;for(;t&&!t.__data__;)t=t.parentNode;return t.__data__}function jRe(e,{legends:t,marker:n,label:r,datum:i,filter:a,emitter:o,channel:s,state:l={}}){const c=new Map,u=new Map,f=new Map,{unselected:d={markerStroke:"#aaa",markerFill:"#aaa",labelFill:"#aaa"}}=l,h={unselected:Ve(d,"marker")},p={unselected:Ve(d,"label")},{setState:g,removeState:v}=kc(h,void 0),{setState:y,removeState:x}=kc(p,void 0),C=Array.from(t(e));let _=C.map(i);const S=()=>{for(const k of C){const $=i(k),T=n(k),M=r(k);_.includes($)?(v(T,"unselected"),x(M,"unselected")):(g(T,"unselected"),y(M,"unselected"))}};for(const k of C){const $=()=>{hc(e,"pointer")},T=()=>{fRe(e)},M=R=>Rg(this,void 0,void 0,function*(){const N=i(k),D=_.indexOf(N);D===-1?_.push(N):_.splice(D,1),yield a(_),S();const{nativeEvent:F=!0}=R;
vendor: 4,192 bytes, line 148
148F&&(_.length===C.length?o.emit("legend:reset",{nativeEvent:F}):o.emit("legend:filter",Object.assign(Object.assign({},R),{nativeEvent:F,data:{channel:s,values:_}})))});k.addEventListener("click",M),k.addEventListener("pointerenter",$),k.addEventListener("pointerout",T),c.set(k,M),u.set(k,$),f.set(k,T)}const O=k=>Rg(this,void 0,void 0,function*(){const{nativeEvent:$}=k;if($)return;const{data:T}=k,{channel:M,values:R}=T;M===s&&(_=R,yield a(_),S())}),E=k=>Rg(this,void 0,void 0,function*(){const{nativeEvent:$}=k;$||(_=C.map(i),yield a(_),S())});return o.on("legend:filter",O),o.on("legend:reset",E),()=>{for(const k of C)k.removeEventListener("click",c.get(k)),k.removeEventListener("pointerenter",u.get(k)),k.removeEventListener("pointerout",f.get(k)),o.off("legend:filter",O),o.off("legend:reset",E)}}function DRe(e,{legend:t,filter:n,emitter:r,channel:i}){const a=({detail:{value:o}})=>{n(o),r.emit({nativeEvent:!0,data:{channel:i,values:o}})};return t.addEventListener("valuechange",a),()=>{t.removeEventListener("valuechange",a)}}function nY(e,{legend:t,channel:n,value:r,ordinal:i,channels:a,allChannels:o,facet:s=!1}){return Rg(this,void 0,void 0,function*(){const{view:l,update:c,setState:u}=e;u(t,f=>{const{marks:d}=f,h=d.map(p=>{if(p.type==="legends")return p;const{transform:g=[],data:v=[]}=p,y=g.findIndex(({type:_})=>_.startsWith("group")||_.startsWith("bin")),x=[...g];v.length&&x.splice(y+1,0,{type:"filter",[n]:{value:r,ordinal:i}});const C=Object.fromEntries(a.map(_=>[_,{domain:l.scale[_].getOptions().domain}]));return _e({},p,Object.assign(Object.assign({transform:x,scale:C},!i&&{animate:!1}),{legend:s?!1:Object.fromEntries(o.map(_=>[_,{preserve:!0}]))}))});return Object.assign(Object.assign({},f),{marks:h})}),yield c()})}function FRe(e,t){for(const n of e)nY(n,Object.assign(Object.assign({},t),{facet:!0}))}function BRe(){return(e,t,n)=>{const{container:r}=e,i=t.filter(f=>f!==e),a=i.length>0,o=f=>p8(f).scales.map(d=>d.name),s=[...uw(r),...tY(r)],l=s.flatMap(o),c=a?qu(FRe,50,{trailing:!0}):qu(nY,50,{trailing:!0}),u=s.map(f=>{const{name:d,domain:h}=p8(f).scales[0],p=o(f),g={legend:f,channel:d,channels:p,allChannels:l};return f.className===KU?jRe(r,{legends:eY,marker:JU,label:QU,datum:v=>{const{__data__:y}=v,{index:x}=y;return h[x]},filter:v=>{const y=Object.assign(Object.assign({},g),{value:v,ordinal:!0});c(a?i:e,y)},state:f.attributes.state,channel:d,emitter:n}):DRe(r,{legend:f,filter:v=>{const y=Object.assign(Object.assign({},g),{value:v,ordinal:!1});c(a?i:e,y)},emitter:n,channel:d})});return()=>{u.forEach(f=>f())}}}function zRe(){return(e,t,n)=>{const{container:r,view:i,options:a}=e,o=uw(r),s=Nc(r),l=h=>p8(h).scales[0].name,c=h=>{const{scale:{[h]:p}}=i;return p},u=Od(a,["active","inactive"]),f=Jp(s,cf(i)),d=[];for(const h of o){const p=Y=>{const{data:K}=h.attributes,{__data__:Q}=Y,{index:ne}=Q;return K[ne].label},g=l(h),v=eY(h),y=c(g),x=jn(s,Y=>y.invert(Y.__data__[g])),{state:C={}}=h.attributes,{inactive:_={}}=C,{setState:S,removeState:O}=kc(u,f),E={inactive:Ve(_,"marker")},k={inactive:Ve(_,"label")},{setState:$,removeState:T}=kc(E),{setState:M,removeState:R}=kc(k),N=Y=>{for(const K of v){const Q=JU(K),ne=QU(K);K===Y||Y===null?(T(Q,"inactive"),R(ne,"inactive")):($(Q,"inactive"),M(ne,"inactive"))}},D=(Y,K)=>{const Q=p(K),ne=new Set(x.get(Q));for(const ae of s)ne.has(ae)?S(ae,"active"):S(ae,"inactive");N(K);const{nativeEvent:oe=!0}=Y;oe&&n.emit("legend:highlight",Object.assign(Object.assign({},Y),{nativeEvent:oe,data:{channel:g,value:Q}}))},F=new Map;for(const Y of v){const K=Q=>{D(Q,Y)};Y.addEventListener("pointerover",K),F.set(Y,K)}const V=Y=>{for(const Q of s)O(Q,"inactive","active");N(null);const{nativeEvent:K=!0}=Y;K&&n.emit("legend:unhighlight",{nativeEvent:K})},z=Y=>{const{nativeEvent:K,data:Q}=Y;if(K)return;const{channel:ne,value:oe}=Q;if(ne!==g)return;const ae=v.find(ce=>p(ce)===oe);ae&&D({nativeEvent:!1},ae)},B=Y=>{const{nativeEvent:K}=Y;K||V({nativeEvent:!1})};h.addEventListener("pointerleave",V),n.on("legend:highlight",z),n.on("legend:unhighlight",B);const G=()=>{h.removeEventListener(V),n.off("legend:highlight",z),n.off("legend:unhighlight",B);for(const[Y,K]of F)Y.removeEventListener(K)};d.push(G)}return()=>
148d.forEach(h=>h())}}var Za=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function VRe(e,t){const[n,r,i,a]=e,[o,s,l,c]=t;return!(o>i||l<n||s>a||c<r)}function WRe(e,t,n,r,i){const[a,o,s,l]=i;return[Math.max(a,Math.min(e,n)),Math.max(o,Math.min(t,r)),Math.min(s,Math.max(e,n)),Math.min(l,Math.max(t,r))]}function HRe(e){const{width:t,height:n}=e.getBBox();return[0,0,t,n]}function ll(e,t){for(const[n,r]of Object.entries(t))e.style(n,r)}const HP=pd(e=>{const t=e.attributes,{x:n,y:r,width:i,height:a,class:o,renders:s={},handleSize:l=10,document:c}=t,u=Za(t,["x","y","width","height","class","renders","handleSize","document"]);if(!c||i===void 0||a===void 0||n===void 0||r===void 0)return;const f=l/2,d=(oe,ae,ce)=>{oe.handle||(oe.handle=ce.createElement("rect"),oe.append(oe.handle));const{handle:fe}=oe;return fe.attr(ae),fe},h=Ve(E9(u,"handleNW","handleNE"),"handleN"),{render:p=d}=h,g=Za(h,["render"]),v=Ve(u,"handleE"),{render:y=d}=v,x=Za(v,["render"]),C=Ve(E9(u,"handleSE","handleSW"),"handleS"),{render:_=d}=C,S=Za(C,["render"]),O=Ve(u,"handleW"),{render:E=d}=O,k=Za(O,["render"]),$=Ve(u,"handleNW"),{render:T=d}=$,M=Za($,["render"]),R=Ve(u,"handleNE"),{render:N=d}=R,D=Za(R,["render"]),F=Ve(u,"handleSE"),{render:V=d}=F,z=Za(F,["render"]),B=Ve(u,"handleSW"),{render:G=d}=B,Y=Za(B,["render"]),K=(oe,ae)=>{const{id:ce}=oe,fe=ae(oe,oe.attributes,c);fe.id=ce,fe.style.draggable=!0},Q=oe=>()=>{const ae=pd(ce=>K(ce,oe));return new ae({})},ne=ft(e).attr("className",o).style("transform",`translate(${n}, ${r})`).style("draggable",!0);ne.maybeAppend("selection","rect").style("draggable",!0).style("fill","transparent").call(ll,Object.assign(Object.assign({width:i,height:a},E9(u,"handle")),{transform:void 0}
vendor: 9,618 bytes, lines 148-151
148)),ne.maybeAppend("handle-n",Q(p)).style("x",f).style("y",-f).style("width",i-l).style("height",l).style("fill","transparent").call(ll,g),ne.maybeAppend("handle-e",Q(y)).style("x",i-f).style("y",f).style("width",l).style("height",a-l).style("fill","transparent").call(ll,x),ne.maybeAppend("handle-s",Q(_)).style("x",f).style("y",a-f).style("width",i-l).style("height",l).style("fill","transparent").call(ll,S),ne.maybeAppend("handle-w",Q(E)).style("x",-f).style("y",f).style("width",l).style("height",a-l).style("fill","transparent").call(ll,k),ne.maybeAppend("handle-nw",Q(T)).style("x",-f).style("y",-f).style("width",l).style("height",l).style("fill","transparent").call(ll,M),ne.maybeAppend("handle-ne",Q(N)).style("x",i-f).style("y",-f).style("width",l).style("height",l).style("fill","transparent").call(ll,D),ne.maybeAppend("handle-se",Q(V)).style("x",i-f).style("y",a-f).style("width",l).style("height",l).style("fill","transparent").call(ll,z),ne.maybeAppend("handle-sw",Q(G)).style("x",-f).style("y",a-f).style("width",l).style("height",l).style("fill","transparent").call(ll,Y)});function fw(e,t){var{brushed:n=()=>{},brushended:r=()=>{},brushcreated:i=()=>{},brushstarted:a=()=>{},brushupdated:o=()=>{},extent:s=HRe(e),brushRegion:l=(fe,le,be,Ce,$e)=>[fe,le,be,Ce],reverse:c=!1,fill:u="#777",fillOpacity:f="0.3",stroke:d="#fff",selectedHandles:h=["handle-n","handle-e","handle-s","handle-w","handle-nw","handle-ne","handle-se","handle-sw"]}=t,p=Za(t,["brushed","brushended","brushcreated","brushstarted","brushupdated","extent","brushRegion","reverse","fill","fillOpacity","stroke","selectedHandles"]);let g=null,v=null,y=null,x=null,C=null,_=!1;const[S,O,E,k]=s;hc(e,"crosshair"),e.style.draggable=!0;const $=(fe,le,be)=>{if(a(be),x&&x.remove(),C&&C.remove(),g=[fe,le],c)return T();M()},T=()=>{C=new qi({style:Object.assign(Object.assign({},p),{fill:u,fillOpacity:f,stroke:d,pointerEvents:"none"})}),x=new HP({style:{x:0,y:0,width:0,height:0,draggable:!0,document:e.ownerDocument},className:"mask"}),e.appendChild(C),e.appendChild(x)},M=()=>{x=new HP({style:Object.assign(Object.assign({document:e.ownerDocument,x:0,y:0},p),{fill:u,fillOpacity:f,stroke:d,draggable:!0}),className:"mask"}),e.appendChild(x)},R=(fe=!0)=>{x&&x.remove(),C&&C.remove(),g=null,v=null,y=null,_=!1,x=null,C=null,r(fe)},N=(fe,le,be=!0)=>{const[Ce,$e,Me,Le]=WRe(fe[0],fe[1],le[0],le[1],s),[je,Ge,nt,Ze]=l(Ce,$e,Me,Le,s);return c?F(je,Ge,nt,Ze):D(je,Ge,nt,Ze),n(je,Ge,nt,Ze,be),[je,Ge,nt,Ze]},D=(fe,le,be,Ce)=>{x.style.x=fe,x.style.y=le,x.style.width=be-fe,x.style.height=Ce-le},F=(fe,le,be,Ce)=>{C.style.d=`
149      M${S},${O}L${E},${O}L${E},${k}L${S},${k}Z
150      M${fe},${le}L${fe},${Ce}L${be},${Ce}L${be},${le}Z
151    `,x.style.x=fe,x.style.y=le,x.style.width=be-fe,x.style.height=Ce-le},V=fe=>{const le=(Ge,nt,Ze,Ue,Qe)=>Ge+nt<Ue?Ue-nt:Ge+Ze>Qe?Qe-Ze:Ge,be=fe[0]-y[0],Ce=fe[1]-y[1],$e=le(be,g[0],v[0],S,E),Me=le(Ce,g[1],v[1],O,k),Le=[g[0]+$e,g[1]+Me],je=[v[0]+$e,v[1]+Me];N(Le,je)},z={"handle-n":{vector:[0,1,0,0],cursor:"ns-resize"},"handle-e":{vector:[0,0,1,0],cursor:"ew-resize"},"handle-s":{vector:[0,0,0,1],cursor:"ns-resize"},"handle-w":{vector:[1,0,0,0],cursor:"ew-resize"},"handle-nw":{vector:[1,1,0,0],cursor:"nwse-resize"},"handle-ne":{vector:[0,1,1,0],cursor:"nesw-resize"},"handle-se":{vector:[0,0,1,1],cursor:"nwse-resize"},"handle-sw":{vector:[1,0,0,1],cursor:"nesw-resize"}},B=fe=>Y(fe)||G(fe),G=fe=>{const{id:le}=fe;return h.indexOf(le)===-1?!1:new Set(Object.keys(z)).has(le)},Y=fe=>fe===x.getElementById("selection"),K=fe=>{const{target:le}=fe,[be,Ce]=w4(e,fe);if(!x||!B(le)){$(be,Ce,fe),_=!0;return}B(le)&&(y=[be,Ce])},Q=fe=>{const{target:le}=fe,be=w4(e,fe);if(!g)return;if(!y)return N(g,be);if(Y(le))return V(be);const[Ce,$e]=[be[0]-y[0],be[1]-y[1]],{id:Me}=le;if(z[Me]){const[Le,je,Ge,nt]=z[Me].vector;return N([g[0]+Ce*Le,g[1]+$e*je],[v[0]+Ce*Ge,v[1]+$e*nt])}},ne=fe=>{if(y){y=null;const{x:Me,y:Le,width:je,height:Ge}=x.style;g=[Me,Le],v=[Me+je,Le+Ge],o(Me,Le,Me+je,Le+Ge,fe);return}v=w4(e,fe);const[le,be,Ce,$e]=N(g,v);_=!1,i(le,be,Ce,$e,fe)},oe=fe=>{const{target:le}=fe;x&&!B(le)&&R()},ae=fe=>{const{target:le}=fe;!x||!B(le)||_?hc(e,"crosshair"):Y(le)?hc(e,"move"):G(le)&&hc(e,z[le.id].cursor)},ce=()=>{hc(e,"default")};return e.addEventListener("dragstart",K),e.addEventListener("drag",Q),e.addEventListener("dragend",ne),e.addEventListener("click",oe),e.addEventListener("pointermove",ae),e.addEventListener("pointerleave",ce),{mask:x,move(fe,le,be,Ce,$e=!0){x||$(fe,le,{}),g=[fe,le],v=[be,Ce],N([fe,le],[be,Ce],$e)},remove(fe=!0){x&&R(fe)},destroy(){x&&R(!1),hc(e,"default"),e.removeEventListener("dragstart",K),e.removeEventListener("drag",Q),e.removeEventListener("dragend",ne),e.removeEventListener("click",oe),e.removeEventListener("pointermove",ae),e.removeEventListener("pointerleave",ce)}}}function dw(e,t,n){return t.filter(r=>{if(r===e)return!1;const{interaction:i={}}=r.options;return Object.values(i).find(a=>a.brushKey===n)})}function GRe(e,t,n){return dw(e,t,n).map(r=>Uo(r.container))}function URe(e,t,n){return dw(e,t,n).map(r=>r.options)}function GP(e,t){var{elements:n,selectedHandles:r,siblings:i=Q=>[],datum:a,brushRegion:o,extent:s,reverse:l,scale:c,coordinate:u,series:f=!1,key:d=Q=>Q,bboxOf:h=Q=>{const{x:ne,y:oe,width:ae,height:ce}=Q.style;return{x:ne,y:oe,width:ae,height:ce}},state:p={},emitter:g}=t,v=Za(t,["elements","selectedHandles","siblings","datum","brushRegion","extent","reverse","scale","coordinate","series","key","bboxOf","state","emitter"]);const y=n(e),x=i(e),C=x.flatMap(n),_=Jp(y,a),S=Ve(v,"mask"),{setState:O,removeState:E}=kc(p,_),k=new Map,{width:$,height:T,x:M=0,y:R=0}=h(e),N=s||[0,0,$,T],D=()=>{for(const Q of[...y,...C])E(Q,"active","inactive")},F=(Q,ne,oe,ae)=>{var ce;for(const le of x)(ce=le.brush)===null||ce===void 0||ce.remove();const fe=new Set;for(const le of y){const{min:be,max:Ce}=le.getLocalBounds(),[$e,Me]=be,[Le,je]=Ce;VRe([$e,Me,Le,je],[Q,ne,oe,ae])?(O(le,"active"),fe.add(d(le))):O(le,"inactive")}for(const le of C)fe.has(d(le))?O(le,"active"):O(le,"inactive")},V=()=>{for(const Q of y)E(Q,"inactive");for(const Q of k.values())Q.remove();k.clear()},z=(Q,ne,oe,ae)=>{const ce=le=>{const be=le.cloneNode();return be.__data__=le.__data__,le.parentNode.appendChild(be),k.set(le,be),be},fe=new zc({style:{x:Q+M,y:ne+R,width:oe-Q,height:ae-ne}});e.appendChild(fe);for(const le of y){const be=k.get(le)||ce(le);be.style.clipPath=fe,O(le,"inactive"),O(be,"active")}},B=fw(e,Object.assign(Object.assign({},S),{extent:N,brushRegion:o,reverse:l,selectedHandles:r,brushended:Q=>{const ne=f?V:D;Q&&g.emit("brush:remove",{nativeEvent:!0}),ne()},brushed:(Q,ne,oe,ae,ce)=>{const fe=Ng(Q,ne,oe,ae,c,u);ce&&g.emit("brush:highlight",{nativeEvent:!0,data:{selection:fe}}),(f?z:F)(Q,ne,oe,ae)},brushcreated:(Q,ne,oe,ae,ce)=>{const fe=Ng(Q,ne,oe,ae,c,u);g.emit("brush:end",Object.assign(Object.assign({},ce),{nativeEvent:!0,data:{selection:fe}}))},brushupdated:(Q,ne,oe,ae,ce)=>{const fe=Ng(Q,ne,oe,ae,c,u);g.emit("brush:end",Object.assign(Object.assign({},ce),{nativeEvent:!0,data:{selection:fe}}))},brushstarted:Q=>{g.emit("brush:start",Q)}})),G=({nativeEvent:Q,data:ne})=>{if(Q)return;const{selection:oe}=ne,[ae,ce,fe,le]=TAe(oe,c,u);B.move(ae,ce,fe,le,!1)};g.on("brush:highlight",G);const Y=({nativeEvent:Q}={})=>{Q||B.remove(!1)};g.on("brush:remove",Y);const K=B.destroy.bind(B);return B.destroy=()=>{g.off("brush:highlight",G),g.off("brush:remove",Y),K()},B}function hw(e){var{facet:t,brushKey:n}=e,r=Za(e,["facet","brushKey"]);return(i,a,o)=>{const{container:s,view:l,options:c}=i,u=Uo(s),f={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",reverse:!1},d=["active",["inactive",{opacity:.5}]],{scale:h,coordinate:p}=l;if(t){const v=u.getBounds(),y=v.min[0],x=v.min[1],C=v.max[0],_=v.max[1];return GP(u.parentNode.parentNode,Object.assign(Object.assign({elements:()=>OU(i,a),datum:cf(d8(i,a).map(S=>S.view)),brushRegion:(S,O,E,k)=>[S,O,E,k],extent:[y,x,C,_],state:Od(d8(i,a).map(S=>S.options),d),emitter:o,scale:h,coordinate:p,selectedHandles:void 0},f),r))}const g=GP(u,Object.assign(Object.assign({elements:Nc,key:v=>v.__data__.key,siblings:()=>GRe(i,a,n),datum:cf([l,...dw(i,a,n).map(v=>v.view)]),brushRegion:(v,y,x,C)=>[v,y,x,C],extent:void 0,state:Od([c,...URe(i,a,n)],d),emitter:o,scale:h,coordinate:p,selectedHandles:void 0},f),r));return u.brush=g,()=>g.destroy()}}function pw(e,t,n,r,i){const[,a,,o]=i;return[e,a,n,o]}function YRe(e){return hw(Object.assign(Object.assign({},e),{brushRegion:pw,selectedHandles:["handle-e","handle-w"]}))}function gw(e,t,n,r,i){const[a,,o]=i;return[a,t,o,r]}function XRe(e){return hw(Object.assign(Object.assign({},e),{brushRegion:gw,selectedHandles:["handle-n","handle-s"]}))}var mw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const qRe="axis",ZRe="axis-line",KRe="axis-main-group",rY="axis-hot-area";function JRe(e){return e.getElementsByClassName(qRe)}function iY(e){return e.getElementsByClassName(ZRe)[0]}function QRe(e){return e.getElementsByClassName(KRe)[0]}function aY(e){return QRe(e).getLocalBounds()}function eje(e,t){var{cross:n,offsetX:r,offsetY:i}=t,a=mw(t,["cross","offsetX","offsetY"]);const o=aY(e),s=iY(e),[l]=s.getLocalBounds().min,[c,u]=o.min,[f,d]=o.max,h=(f-c)*2;return{brushRegion:gw,hotZone:new zc({className:rY,style:Object.assign({width:n?h/2:h,transform:`translate(${(n?c:l-h/2).toFixed(2)}, ${u}
151)`,height:d-u},a)}),extent:n?(p,g,v,y)=>[-1/0,g,1/0,y]:(p,g,v,y)=>[Math.floor(c-r),g,Math.ceil(f-r),y]}}function tje(e,t){var{offsetY:n,offsetX:r,cross:i=!1}=t,a=mw(t,["offsetY","offsetX","cross"]);const o=aY(e),s=iY(e),[,l]=s.getLocalBounds().min,[c,u]=o.min,[f,d]=o.max,h=d-u;return{brushRegion:pw,hotZone:new zc({className:rY,style:Object.assign({width:f-c,height:i?h:h*2,transform:`translate(${c}, ${i?u:l-h})`},a)}),extent:i?(p,g,v,y)=>[p,-1/0,v,1/0]:(p,g,v,y)=>[p,Math.floor(u-n),v,Math.ceil(d-n)]}}function nje(e,t){var{axes:n,elements:r,points:i,horizontal:a,datum:o,offsetY:s,offsetX:l,reverse:c=!1,state:u={},emitter:f,coordinate:d}=t,h=mw(t,["axes","elements","points","horizontal","datum","offsetY","offsetX","reverse","state","emitter","coordinate"]);const p=r(e),g=n(e),v=Jp(p,o),{setState:y,removeState:x}=kc(u,v),C=new Map,_=Ve(h,"mask"),S=G=>Array.from(C.values()).every(([Y,K,Q,ne])=>G.some(([oe,ae])=>oe>=Y&&oe<=Q&&ae>=K&&ae<=ne)),O=g.map(G=>G.attributes.scale),E=G=>G.length>2?[G[0],G[G.length-1]]:G,k=new Map,$=()=>{k.clear();for(let G=0;G<g.length;G++){const Y=O[G],{domain:K}=Y.getOptions();k.set(G,E(K))}};$();const T=(G,Y)=>{const K=[];for(const ne of p){const oe=i(ne);S(oe)?(y(ne,"active"),K.push(ne)):y(ne,"inactive")}if(k.set(G,R(K,G)),!Y)return;const Q=()=>{if(!N)return Array.from(k.values());const ne=[];for(const[oe,ae]of k){const ce=O[oe],{name:fe}=ce.getOptions();fe==="x"?ne[0]=ae:ne[1]=ae}return ne};f.emit("brushAxis:highlight",{nativeEvent:!0,data:{selection:Q()}})},M=G=>{for(const Y of p)x(Y,"active","inactive");$(),G&&f.emit("brushAxis:remove",{nativeEvent:!0})},R=(G,Y)=>{const K=O[Y],{name:Q}=K.getOptions(),ne=G.map(oe=>{const ae=oe.__data__;return K.invert(ae[Q])});return E(bc(K,ne))},N=g.some(a)&&g.some(G=>!a(G)),D=[];for(let G=0;G<g.length;G++){const Y=g[G],K=a(Y)?tje:eje,{hotZone:Q,brushRegion:ne,extent:oe}=K(Y,{offsetY:s,offsetX:l,cross:N,zIndex:999,fill:"transparent"});Y.parentNode.appendChild(Q);const ae=fw(Q,Object.assign(Object.assign({},_),{reverse:c,brushRegion:ne,brushended(ce){C.delete(Y),Array.from(C.entries()).length===0?M(ce):T(G,ce)},brushed(ce,fe,le,be,Ce){C.set(Y,oe(ce,fe,le,be)),T(G,Ce)}}));D.push(ae)}const F=(G={})=>{const{nativeEvent:Y}=G;Y||D.forEach(K=>K.remove(!1))},V=(G,Y,K)=>{const[Q,ne]=G,oe=fe=>fe.getStep?fe.getStep():0,ae=z(Q,Y,K),ce=z(ne,Y,K)+oe(Y);return a(K)?[ae,-1/0,ce,1/0]:[-1/0,ae,1/0,ce]},z=(G,Y,K)=>{const{height:Q,width:ne}=d.getOptions(),oe=Y.clone();return a(K)?oe.update({range:[0,ne]}):oe.update({range:[Q,0]}),oe.map(G)},B=G=>{const{nativeEvent:Y}=G;if(Y)return;const{selection:K}=G.data;for(let Q=0;Q<D.length;Q++){const ne=K[Q],oe=D[Q],ae=g[Q];if(ne){const ce=O[Q];oe.move(...V(ne,ce,ae),!1)}else oe.remove(!1)}};return f.on("brushAxis:remove",F),f.on("brushAxis:highlight",B),()=>{D.forEach(G=>G.destroy()),f.off("brushAxis:remove",F),f.off("brushAxis:highlight",B)}}function rje(e){return(t,n,r)=>{const{container:i,view:a,options:o}=t,s=Uo(i),{x:l,y:c}=s.getBBox(),{coordinate:u}=a;return nje(i,Object.assign({elements:Nc,axes:JRe,offsetY:c,offsetX:l,points:f=>f.__data__.points,horizontal:f=>{const{startPos:[d,h],endPos:[p,g]}=f.attributes;return d!==p&&h===g},datum:cf(a),state:Od(o,["active",["inactive",{opacity:.5}]]),coordinate:u,emitter:r},e))}}var ije=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})},oY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function aje(e=300){let t=null;return n=>{const{timeStamp:r}=n;return t!==null&&r-t<e?(t=r,!0):(t=r,!1)}}function oje(e,t){var{filter:n,reset:r,brushRegion:i,extent:a,reverse:o,emitter:s,scale:l,coordinate:c,selection:u,series:f=!1}=t,d=oY(t,["filter","reset","brushRegion","extent","reverse","emitter","scale","coordinate","selection","series"]);const h=Ve(d,"mask"),{width:p,height:g}=e.getBBox(),v=a||[0,0,p,g],y=aje(),x=fw(e,Object.assign(Object.assign({},h),{extent:v,brushRegion:i,reverse:o,brushcreated:C}));e.addEventListener("click",_);function C(O,E,k,$,T){O===k&&E===$||(T.nativeEvent=!0,n(u(O,E,k,$),T),x.remove())}function _(O){y(O)&&(O.nativeEvent=!0,r(O))}const S=({nativeEvent:O,data:E})=>{if(O)return;const{selection:k}=E;n(k,{nativeEvent:!1})};return s.on("brush:filter",S),()=>{x.destroy(),s.off("brush:filter",S),e.removeEventListener("click",_)}}function vw(e){var{hideX:t=!0,hideY:n=!0}=e,r=oY(e,["hideX","hideY"]);return(i,a,o)=>{const{container:s,view:l,options:c,update:u,setState:f}=i,d=Uo(s),h={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",unhighlightedOpacity:.5,reverse:!1};let p=!1,g=!1,v=l;const{scale:y,coordinate:x}=l;return oje(d,Object.assign(Object.assign({brushRegion:(C,_,S,O)=>[C,_,S,O],selection:(C,_,S,O)=>{const{scale:E,coordinate:k}=v;return Ng(C,_,S,O,E,k)},filter:(C,_)=>ije(this,void 0,void 0,function*(){if(g)return;g=!0;const[S,O]=C;f("brushFilter",k=>{const{marks:$}=k,T=$.map(M=>_e({axis:Object.assign(Object.assign({},t&&{x:{transform:[{type:"hide"}]}}),n&&{y:{transform:[{type:"hide"}]}})},M,{scale:{x:{domain:S,nice:!1},y:{domain:O,nice:!1}}}));return Object.assign(Object.assign({},c),{marks:T,clip:!0})}),o.emit("brush:filter",Object.assign(Object.assign({},_),{data:{selection:[S,O]}})),v=(yield u()).view,g=!1,p=!0}),reset:C=>{if(g||!p)return;const{scale:_}=l,{x:S,y:O}=_,E=S.getOptions().domain,k=O.getOptions().domain;
151o.emit("brush:filter",Object.assign(Object.assign({},C),{data:{selection:[E,k]}})),p=!1,v=l,f("brushFilter"),u()},extent:void 0,emitter:o,scale:y,coordinate:x},h),r))}}function sje(e){return vw(Object.assign(Object.assign({hideX:!0},e),{brushRegion:pw}))}function lje(e){return vw(Object.assign(Object.assign({hideY:!0},e),{brushRegion:gw}))}var cje=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const uje="slider";function fje(e,t,n,r=!1,i="x",a="y"){const{marks:o}=e,s=o.map(l=>{var c,u;return _e({axis:{x:{transform:[{type:"hide"}]},y:{transform:[{type:"hide"}]}}},l,{scale:t,[n]:Object.assign(Object.assign({},((c=l[n])===null||c===void 0?void 0:c[i])&&{[i]:Object.assign({preserve:!0},r&&{ratio:null})}),((u=l[n])===null||u===void 0?void 0:u[a])&&{[a]:{preserve:!0}}),animate:!1})});return Object.assign(Object.assign({},e),{marks:s,clip:!0,animate:!1})}function dje(e,t,n){const[r,i]=e,a=n?l=>1-l:l=>l,o=xd(t,a(r),!0),s=xd(t,a(i),!1);return bc(t,[o,s])}function sg(e){return[e[0],e[e.length-1]]}
151function sY({initDomain:e={},className:t=uje,prefix:n="slider",setValue:r=(c,u)=>c.setValues(u),hasState:i=!1,wait:a=50,leading:o=!0,trailing:s=!1,getInitValues:l=c=>{var u;const f=(u=c==null?void 0:c.attributes)===null||u===void 0?void 0:u.values;if(f[0]!==0||f[1]!==1)return f}}){return(c,u,f)=>{const{container:d,view:h,update:p,setState:g}=c,v=d.getElementsByClassName(t);if(!v.length)return()=>{};let y=!1;const{scale:x,coordinate:C,layout:_}=h,{paddingLeft:S,paddingTop:O,paddingBottom:E,paddingRight:k}=_,{x:$,y:T}=x,M=Un(C),R=V=>{const z=V==="vertical"?"y":"x",B=V==="vertical"?"x":"y";return M?[B,z]:[z,B]},N=new Map,D=new Set,F={x:e.x||$.getOptions().domain,y:e.y||T.getOptions().domain};for(const V of v){const{orientation:z}=V.attributes,[B,G]=R(z),Y=`${n}${jc(B)}:filter`,K=B==="x",{ratio:Q}=$.getOptions(),{ratio:ne}=T.getOptions(),oe=le=>{if(le.data){const{selection:Le}=le.data,[je=sg(F.x),Ge=sg(F.y)]=Le;return K?[bc($,je,Q),bc(T,Ge,ne)]:[bc(T,Ge,ne),bc($,je,Q)]}const{value:be}=le.detail,Ce=x[B],$e=dje(be,Ce,M&&z==="horizontal"),Me=F[G];return[$e,Me]},ae=qu(le=>cje(this,void 0,void 0,function*(){const{initValue:be=!1}=le;if(y&&!be)return;y=!0;const{nativeEvent:Ce=!0}=le,[$e,Me]=oe(le);if(F[B]=$e,F[G]=Me,Ce){const Le=K?$e:Me,je=K?Me:$e;f.emit(Y,Object.assign(Object.assign({},le),{nativeEvent:Ce,data:{selection:[sg(Le),sg(je)]}}))}g(V,Le=>Object.assign(Object.assign({},fje(Le,{[B]:{domain:$e,nice:!1}},n,i,B,G)),{paddingLeft:S,paddingTop:O,paddingBottom:E,paddingRight:k})),yield p(),y=!1}),a,{leading:o,trailing:s}),ce=le=>{const{nativeEvent:be}=le;if(be)return;const{data:Ce}=le,{selection:$e}=Ce,[Me,Le]=$e;V.dispatchEvent(new Mn("valuechange",{data:Ce,nativeEvent:!1}));const je=K?Wm(Me,$):Wm(Le,T);r(V,je)};f.on(Y,ce),V.addEventListener("valuechange",ae),N.set(V,ae),D.add([Y,ce]);const fe=l(V);fe&&V.dispatchEvent(new Mn("valuechange",{detail:{value:fe},nativeEvent:!1,initValue:!0}))}return()=>{for(const[V,z]of N)V.removeEventListener("valuechange",z);for(const[V,z]of D)f.off(V,z)}}}const UP="g2-scrollbar";function hje(e={}){return(t,n,r)=>{const{view:i,container:a}=t;if(!a.getElementsByClassName(UP).length)return()=>{};const{scale:s}=i,{x:l,y:c}=s,u={x:[...l.getOptions().domain],y:[...c.getOptions().domain]};return l.update({domain:l.getOptions().expectedDomain}),c.update({domain:c.getOptions().expectedDomain}),sY(Object.assign(Object.assign({},e),{initDomain:u,className:UP,prefix:"scrollbar",hasState:!0,setValue:(d,h)=>d.setValue(h[0]),getInitValues:d=>{const h=d.slider.attributes.values;if(h[0]!==0)return h}}))(t,n,r)}}var pje=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function gje(e,t,n){return`<${e} style="${Object.entries(n).map(([r,i])=>`${Lbe(r)}:${i}`).join(";")}">${t}</${e}>`}const mje={backgroundColor:"rgba(0,0,0,0.75)",color:"#fff",width:"max-content",padding:"1px 4px",fontSize:"12px",borderRadius:"2.5px",boxShadow:"0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05)"};function YP(e){return e.nodeName!=="text"?!1:!!e.isOverflowing()}function lY(e){var{offsetX:t=8,offsetY:n=8}=e,r=pje(e,["offsetX","offsetY"]);return i=>{const{container:a}=i,[o,s]=a.getBounds().min,l=Ve(r,"tip"),c=new Set,u=d=>{const{target:h}=d;if(!YP(h)){d.stopPropagation();return}const{offsetX:p,offsetY:g}=d,v=p+t-o,y=g+n-s;if(h.tip){h.tip.style.x=v,h.tip.style.y=y;return}const{text:x}=h.style,C=new Bp({className:"poptip",style:{innerHTML:gje("div",x,Object.assign(Object.assign({},mje),l)),x:v,y}});a.appendChild(C),h.tip=C,c.add(C)},f=d=>{const{target:h}=d;if(!YP(h)){d.stopPropagation();return}h.tip&&(h.tip.remove(),h.tip=null,c.delete(h.tip))};return a.addEventListener("pointerover",u),a.addEventListener("pointerout",f),()=>{a.removeEventListener("pointerover",u),a.removeEventListener("pointerout",f),c.forEach(d=>d.remove())}}}lY.props={reapplyWhenUpdate:!0};var vje=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}
151return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})},yje=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function xje(e){return ft(e).select(`.${np}`).node()}const bje={breadCrumbFill:"rgba(0, 0, 0, 0.85)",breadCrumbFontSize:12,breadCrumbY:12,activeFill:"rgba(0, 0, 0, 0.5)"};function Cje(e={}){const{originData:t=[],layout:n}=e,r=yje(e,["originData","layout"]),i=_e({},bje,r),a=Ve(i,"breadCrumb"),o=Ve(i,"active");return s=>{const{update:l,setState:c,container:u,options:f}=s,d=xje(u),h=f.marks[0],{state:p}=h,g=new Yr;d.appendChild(g);const v=(O,E)=>vje(this,void 0,void 0,function*(){if(g.removeChildren(),E){let k="",$=a.y,T=0;const M=[],R=d.getBBox().width,N=O.map((D,F)=>{k=`${k}${D}/`,M.push(D);const V=new so({name:k.replace(/\/$/,""),style:Object.assign(Object.assign({text:D,x:T,path:[...M],depth:F},a),{y:$})});g.appendChild(V),T+=V.getBBox().width;const z=new so({style:Object.assign(Object.assign({x:T,text:" / "},a),{y:$})});return g.appendChild(z),T+=z.getBBox().width,T>R&&($=g.getBBox().height+a.y,T=0,V.attr({x:T,y:$}),T+=V.getBBox().width,z.attr({x:T,y:$}),T+=z.getBBox().width),F===Lh(O)-1&&z.remove(),V});N.forEach((D,F)=>{if(F===Lh(N)-1)return;const V=Object.assign({},D.attributes);D.attr("cursor","pointer"),D.addEventListener("mouseenter",()=>{D.attr(o)}),D.addEventListener("mouseleave",()=>{D.attr(V)}),D.addEventListener("click",()=>{v(an(D,["style","path"]),an(D,["style","depth"]))})})}RRe(u,c),c("treemapDrillDown",k=>{const{marks:$}=k,T=O.join("/"),M=$.map(R=>{if(R.type!=="rect")return R;let N=t;if(E){const F=t.filter(Y=>{const K=an(Y,["id"]);return K&&(K.match(`${T}/`)||T.match(K))}).map(Y=>({value:Y.height===0?an(Y,["value"]):void 0,name:an(Y,["id"])})),{paddingLeft:V,paddingBottom:z,paddingRight:B}=n,G=Object.assign(Object.assign({},n),{paddingTop:(n.paddingTop||g.getBBox().height+10)/(E+1),paddingLeft:V/(E+1),paddingBottom:z/(E+1),paddingRight:B/(E+1),path:Y=>Y.name,layer:Y=>Y.depth===E+1});N=eW(F,G,{value:"value"})[0]}else N=t.filter(F=>F.depth===1);const D=[];return N.forEach(({path:F})=>{D.push(kp(F))}),_e({},R,{data:N,scale:{color:{domain:D}}})});return Object.assign(Object.assign({},k),{marks:M})}),yield l(void 0,["legendFilter"])}),y=O=>O.attributes.key.split("-")[0],x=O=>an(O,["__data__","key"]),C=O=>{const E=O.target,{markType:k,nodeName:$,attributes:T}=E||{};if(k!=="rect"&&$!==xe.TEXT)return;const M=$===xe.TEXT&&an(T,"isTreemapLabel")===!0?y(E):x(E),R=nd(t,N=>N.id===M);an(R,"height")&&v(an(R,"path"),an(R,"depth"))};d.addEventListener("click",C);const _=Gx(Object.assign(Object.assign({},p.active),p.inactive)),S=()=>{NU(d).forEach(E=>{const k=an(E,["style","cursor"]),$=nd(t,T=>T.id===an(E,["__data__","key"]));if(k!=="pointer"&&($!=null&&$.height)){E.style.cursor="pointer";const T=Ux(E.attributes,_);E.addEventListener("mouseenter",()=>{E.attr(p.active)}),E.addEventListener("mouseleave",()=>{E.attr(_e(T,p.inactive))})}})};return S(),d.addEventListener("mousemove",S),()=>{g.remove(),d.removeEventListener("click",C),d.removeEventListener("mousemove",S)}}}var _4=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})},wje=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const _je={pointR:6,pointStrokeWidth:1,pointStroke:"#888",pointActiveStroke:"#f5f5f5",pathStroke:"#888",pathLineDash:[3,4],labelFontSize:12,labelFill:"#888",labelStroke:"#fff",labelLineWidth:1,labelY:-6,labelX:2},S4="movePoint",XP=e=>{const t=e.target,{markType:n}=t;n==="line"&&(t.attr("_lineWidth",t.attr("lineWidth")||1),t.attr("lineWidth",t.attr("_lineWidth")+3)),n==="interval"&&(t.attr("_opacity",t.attr("opacity")||1),t.attr("opacity",.7*t.attr("_opacity")))},qP=e=>{const t=e.target,{markType:n}=t;n==="line"&&t.attr("lineWidth",t.attr("_lineWidth")),n==="interval"&&t.attr("opacity",t.attr("_opacity"))},Sje=(e,t,n)=>t.map(r=>["x","color"].reduce((a,o)=>{const s=n[o];return s&&r[s]!==e[s]?!1:a},!0)?Object.assign(Object.assign({},r),e):r),Oje=e=>{const t=an(e,["__data__","y"]),r=an(e,["__data__","y1"])-t,{__data__:{data:i,encode:a,transform:o},childNodes:s}=e.parentNode,l=nd(o,({type:f})=>f==="normalizeY"),c=an(a,["y","field"]),u=i[s.indexOf(e)][c];return(f,d=!1)=>l||d?f/(1-f)/(r/(1-r))*u:f},Eje=(e,t)=>{const n=an(e,["__data__","seriesItems",t,"0","value"]),r=an(e,["__data__","seriesIndex",t]),{__data__:{data:i,encode:a,transform:o}}=e.parentNode,s=nd(o,({type:u})=>u==="normalizeY"),l=an(a,["y","field"]),c=i[r][l];return u=>s?n===1?u:u/(1-u)/(n/(1-n))*c:u}
vendor: 6,198 bytes, line 151
151,ZP=(e,t,n)=>{e.forEach((r,i)=>{r.attr("stroke",t[1]===i?n.activeStroke:n.stroke)})},KP=(e,t,n,r)=>{const i=new qi({style:n}),a=new so({style:r});return t.appendChild(a),e.appendChild(i),[i,a]},JP=(e,t)=>{if(!an(e,["options","range","indexOf"]))return;const r=e.options.range.indexOf(t);return e.sortedDomain[r]},O4=(e,t,n)=>{const r=u3(e,t),a=u3(e,n)/r,o=e[0]+(t[0]-e[0])*a,s=e[1]+(t[1]-e[1])*a;return[o,s]};function kje(e={}){const{selection:t=[],precision:n=2}=e,r=wje(e,["selection","precision"]),i=Object.assign(Object.assign({},_je),r||{}),a=Ve(i,"path"),o=Ve(i,"label"),s=Ve(i,"point");return(l,c,u)=>{const{update:f,setState:d,container:h,view:p,options:{marks:g,coordinate:v}}=l,y=Uo(h);let x=NU(y),C,_=t;const{transform:S=[],type:O}=v,E=!!nd(S,({type:B})=>B==="transpose"),k=O==="polar",$=O==="theta",T=!!nd(x,({markType:B})=>B==="area");T&&(x=x.filter(({markType:B})=>B==="area"));const M=new Yr({style:{zIndex:2}});y.appendChild(M);const R=()=>{u.emit("element-point:select",{nativeEvent:!0,data:{selection:_}})},N=(B,G)=>{u.emit("element-point:moved",{nativeEvent:!0,data:{changeData:B,data:G}})},D=B=>{const G=B.target;_=[G.parentNode.childNodes.indexOf(G)],R(),V(G)},F=B=>{const{data:{selection:G},nativeEvent:Y}=B;if(Y)return;_=G;const K=an(x,[_==null?void 0:_[0]]);K&&V(K)},V=B=>{const{attributes:G,markType:Y,__data__:K}=B,{stroke:Q}=G,{points:ne,seriesTitle:oe,color:ae,title:ce,seriesX:fe,y1:le}=K;if(E&&Y!=="interval")return;const{scale:be,coordinate:Ce}=(C==null?void 0:C.view)||p,{color:$e,y:Me,x:Le}=be,je=Ce.getCenter();M.removeChildren();let Ge;const nt=(Ze,Ue,Qe,Pt)=>_4(this,void 0,void 0,function*(){return d("elementPointMove",nn=>{var At;const ct=(((At=C==null?void 0:C.options)===null||At===void 0?void 0:At.marks)||g).map(sn=>{if(!Pt.includes(sn.type))return sn;const{data:Dt,encode:Ct}=sn,zt=Object.keys(Ct).reduce((Yt,Qn)=>{const Fn=Ct[Qn];return Qn==="x"&&(Yt[Fn]=Ze),Qn==="y"&&(Yt[Fn]=Ue),Qn==="color"&&(Yt[Fn]=Qe),Yt},{}),cn=Sje(zt,Dt,Ct);return N(zt,cn),_e({},sn,{data:cn,animate:!1})});return Object.assign(Object.assign({},nn),{marks:ct})}),yield f("elementPointMove")});if(["line","area"].includes(Y))ne.forEach((Ze,Ue)=>{const Qe=Le.invert(fe[Ue]);if(!Qe)return;const Pt=new Ns({name:S4,style:Object.assign({cx:Ze[0],cy:Ze[1],fill:Q},s)}),nn=Eje(B,Ue);Pt.addEventListener("mousedown",At=>{const ct=Ce.output([fe[Ue],0]),sn=oe==null?void 0:oe.length;h.attr("cursor","move"),_[1]!==Ue&&(_[1]=Ue,R()),ZP(M.childNodes,_,s);const[Dt,Ct]=KP(M,Pt,a,o),Jt=cn=>{const Yt=Ze[1]+cn.clientY-Ge[1];if(T)if(k){const Qn=Ze[0]+cn.clientX-Ge[0],[Fn,Mr]=O4(je,ct,[Qn,Yt]),[,bi]=Ce.output([1,Me.output(0)]),[,ga]=Ce.invert([Fn,bi-(ne[Ue+sn][1]-Mr)]),Ma=(Ue+1)%sn,Na=(Ue-1+sn)%sn,Fs=A1([ne[Na],[Fn,Mr],oe[Ma]&&ne[Ma]]);Ct.attr("text",nn(Me.invert(ga)).toFixed(n)),Dt.attr("d",Fs),Pt.attr("cx",Fn),Pt.attr("cy",Mr)}else{const[,Qn]=Ce.output([1,Me.output(0)]),[,Fn]=Ce.invert([Ze[0],Qn-(ne[Ue+sn][1]-Yt)]),Mr=A1([ne[Ue-1],[Ze[0],Yt],oe[Ue+1]&&ne[Ue+1]]);Ct.attr("text",nn(Me.invert(Fn)).toFixed(n)),Dt.attr("d",Mr),Pt.attr("cy",Yt)}else{const[,Qn]=Ce.invert([Ze[0],Yt]),Fn=A1([ne[Ue-1],[Ze[0],Yt],ne[Ue+1]]);Ct.attr("text",Me.invert(Qn).toFixed(n)),Dt.attr("d",Fn),Pt.attr("cy",Yt)}};Ge=[At.clientX,At.clientY],window.addEventListener("mousemove",Jt);const zt=()=>_4(this,void 0,void 0,function*(){if(h.attr("cursor","default"),window.removeEventListener("mousemove",Jt),h.removeEventListener("mouseup",zt),Rn(Ct.attr("text")))return;const cn=Number(Ct.attr("text")),Yt=JP($e,ae);C=yield nt(Qe,cn,Yt,["line","area"]),Ct.remove(),Dt.remove(),V(B)});h.addEventListener("mouseup",zt)}),M.appendChild(Pt)}),ZP(M.childNodes,_,s);else if(Y==="interval"){let Ze=[(ne[0][0]+ne[1][0])/2,ne[0][1]];E?Ze=[ne[0][0],(ne[0][1]+ne[1][1])/2]:$&&(Ze=ne[0]);const Ue=Oje(B),Qe=new Ns({name:S4,style:Object.assign(Object.assign({cx:Ze[0],cy:Ze[1],fill:Q},s),{stroke:s.activeStroke})});Qe.addEventListener("mousedown",Pt=>{h.attr("cursor","move");const nn=JP($e,ae),[At,ct]=KP(M,Qe,a,o),sn=Ct=>{if(E){const Jt=Ze[0]+Ct.clientX-Ge[0],[zt]=Ce.output([Me.output(0),Me.output(0)]),[,cn]=Ce.invert([zt+(Jt-ne[2][0]),Ze[1]]),Yt=A1([[Jt,ne[0][1]],[Jt,ne[1][1]],ne[2],ne[3]],!0);ct.attr("text",Ue(Me.invert(cn)).toFixed(n)),At.attr("d",Yt),Qe.attr("cx",Jt)}else if($){const Jt=Ze[1]+Ct.clientY-Ge[1],zt=Ze[0]+Ct.clientX-Ge[0],[cn,Yt]=O4(je,[zt,Jt],Ze),[Qn,Fn]=O4(je,[zt,Jt],ne[1]),Mr=Ce.invert([cn,Yt])[1],bi=le-Mr;if(bi<0)return;const ga=dRe(je,[[cn,Yt],[Qn,Fn],ne[2],ne[3]],bi>.5?1:0);ct.attr("text",Ue(bi,!0).toFixed(n)),At.attr("d",ga),Qe.attr("cx",cn),Qe.attr("cy",Yt)}else{const Jt=Ze[1]+Ct.clientY-Ge[1],[,zt]=Ce.output([1,Me.output(0)]),[,cn]=Ce.invert([Ze[0],zt-(ne[2][1]-Jt)]),Yt=A1([[ne[0][0],Jt],[ne[1][0],Jt],ne[2],ne[3]],!0);ct.attr("text",Ue(Me.invert(cn)).toFixed(n)),At.attr("d",Yt),Qe.attr("cy",Jt)}};Ge=[Pt.clientX,Pt.clientY],window.addEventListener("mousemove",sn);const Dt=()=>_4(this,void 0,void 0,function*(){if(h.attr("cursor","default"),h.removeEventListener("mouseup",Dt),window.removeEventListener("mousemove",sn),Rn(ct.attr("text")))return;const Ct=Number(ct.attr("text"));C=yield nt(ce,Ct,nn,[Y]),ct.remove(),At.remove(),V(B)});h.addEventListener("mouseup",Dt)}),M.appendChild(Qe)}};x.forEach((B,G)=>{_[0]===G&&V(B),B.addEventListener("click",D),B.addEventListener("mouseenter",XP),B.addEventListener("mouseleave",qP)});const z=B=>{const G=B==null?void 0:B.target;(!G||G.name!==S4&&!x.includes(G))&&(_=[],R(),M.removeChildren())};return u.on("element-point:select",F),u.on("element-point:unselect",z),h.addEventListener("mousedown",z),()=>{M.remove(),u.off("element-point:select",F),u.off("element-point:unselect",z),h.removeEventListener("mousedown",z),x.forEach(B=>{B.removeEventListener("click",D),B.removeEventListener("mouseenter",XP),B.removeEventListener("mouseleave",qP)})}}}var QP={},E4={},k4=34,$1=10,A4=13;function cY(e){return new Function("d","return {"+e.map(function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'}).join(",")+"}")}function Aje(e,t){var n=cY(e);return function(r,i){return t(n(r),i,e)}}function eM(e){var t=Object.create(null),n=[];return e.forEach(function(r){for(var i in r)i in t||n.push(t[i]=i)}),n}function aa(e,t){var n=e+"",r=n.length;
151return r<t?new Array(t-r+1).join(0)+n:n}function $je(e){return e<0?"-"+aa(-e,6):e>9999?"+"+aa(e,6):aa(e,4)}function Tje(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":$je(e.getUTCFullYear())+"-"+aa(e.getUTCMonth()+1,2)+"-"+aa(e.getUTCDate(),2)+(i?"T"+aa(t,2)+":"+aa(n,2)+":"+aa(r,2)+"."+aa(i,3)+"Z":r?"T"+aa(t,2)+":"+aa(n,2)+":"+aa(r,2)+"Z":n||t?"T"+aa(t,2)+":"+aa(n,2)+"Z":"")}function Pje(e){var t=new RegExp('["'+e+`
152\r]`),n=e.charCodeAt(0);function r(f,d){var h,p,g=i(f,function(v,y){if(h)return h(v,y-1);p=v,h=d?Aje(v,d):cY(v)});return g.columns=p||[],g}function i(f,d){var h=[],p=f.length,g=0,v=0,y,x=p<=0,C=!1;f.charCodeAt(p-1)===$1&&--p,f.charCodeAt(p-1)===A4&&--p;function _(){if(x)return E4;if(C)return C=!1,QP;var O,E=g,k;if(f.charCodeAt(E)===k4){for(;g++<p&&f.charCodeAt(g)!==k4||f.charCodeAt(++g)===k4;);return(O=g)>=p?x=!0:(k=f.charCodeAt(g++))===$1?C=!0:k===A4&&(C=!0,f.charCodeAt(g)===$1&&++g),f.slice(E+1,O-1).replace(/""/g,'"')}for(;g<p;){if((k=f.charCodeAt(O=g++))===$1)C=!0;else if(k===A4)C=!0,f.charCodeAt(g)===$1&&++g;else if(k!==n)continue;return f.slice(E,O)}return x=!0,f.slice(E,p)}for(;(y=_())!==E4;){for(var S=[];y!==QP&&y!==E4;)S.push(y),y=_();d&&(S=d(S,v++))==null||h.push(S)}return h}function a(f,d){return f.map(function(h){return d.map(function(p){return u(h[p])}).join(e)})}function o(f,d){return d==null&&(d=eM(f)),[d.map(u).join(e)].concat(a(f,d)).join(`
153`)}function s(f,d){return d==null&&(d=eM(f)),a(f,d).join(`
154`)}function l(f){return f.map(c).join(`
155`)}function c(f){return f.map(u).join(e)}function u(f){return f==null?"":f instanceof Date?Tje(f):t.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:r,parseRows:i,format:o,formatBody:s,formatRows:l,formatRow:c,formatValue:u}}function Mje(e){for(var t in e){var n=e[t].trim(),r,i;if(!n)n=null;else if(n==="true")n=!0;else if(n==="false")n=!1;else if(n==="NaN")n=NaN;else if(!isNaN(r=+n))n=r;else if(i=n.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/))Nje&&i[4]&&!i[7]&&(n=n.replace(/-/g,"/").replace(/T/," ")),n=new Date(n);else continue;e[t]=n}return e}const Nje=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();var Ije=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const uY=e=>{const{value:t,format:n=t.split(".").pop(),delimiter:r=",",autoType:i=!0}=e;return()=>Ije(void 0,void 0,void 0,function*(){const a=yield fetch(t);if(n==="csv"){const o=yield a.text();return Pje(r).parse(o,i?Mje:ef)}else if(n==="json")return yield a.json();throw new Error(`Unknown format: ${n}.`)})};uY.props={};function Lje(e){return!e||Object.keys(e).length===0}const fY=e=>{const{fields:t,key:n="key",value:r="value"}=e;return i=>Lje(t)?i:i.flatMap(a=>t.map(o=>Object.assign(Object.assign({},a),{[n]:o,[r]:a[o]})))};fY.props={};function Rje(e){return e!=null&&!Number.isNaN(e)}const dY=e=>{const{callback:t=Rje}=e;return n=>n.filter(t)};dY.props={};const hY=e=>{const{callback:t}=e;return n=>Array.isArray(n)?[...n].sort(t):n};hY.props={};function jje(e,t=[]){return t.reduce((n,r)=>(r in e&&(n[r]=e[r]),n),{})}const pY=e=>{const{fields:t}=e;return n=>n.map(r=>jje(r,t))};pY.props={};function Dje(e){return Object.keys(e).length===0}const gY=e=>t=>{if(!e||Dje(e))return t;const n=r=>Object.entries(r).reduce((i,[a,o])=>(i[e[a]||a]=o,i),{});return t.map(n)};gY.props={};function Fje(e,t){return e.map(n=>{if(Array.isArray(n)){const[r,i=t]=n;return[r,i]}return[n,t]})}const mY=e=>{const{fields:t=[]}=e,n=Fje(t,!0);return r=>{const i=(a,o)=>n.reduce((s,[l,c=!0])=>s!==0?s:c?a[l]<o[l]?-1:+(a[l]!==o[l]):a[l]>o[l]?-1:+(a[l]!==o[l]),0);return[...r].sort(i)}};mY.props={};const vY=e=>{const{value:t}=e;return()=>t};vY.props={};const yY=e=>{const{callback:t=ef}=e;return n=>t(n)};yY.props={};const xY=e=>{const{callback:t=ef}=e;return n=>Array.isArray(n)?n.map(t):n};xY.props={};var Bje=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}
155return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};function zje(e,t){return{set(n,r,i){if(t[n]===void 0)return this;const a=r?r.call(null,t[n]):t[n];return i?i.call(null,a):typeof e[n]=="function"?e[n](a):e[n]=a,this},setAsync(n,r,i){return Bje(this,void 0,void 0,function*(){if(t[n]===void 0)return this;const a=r?yield r.call(null,t[n]):t[n];return i?i.call(null,a):typeof e[n]=="function"?e[n](a):e[n]=a,this})}}}const $4=Math.PI/180,Q1=64,jg=2048;function Vje(e){return e.text}function Wje(){return"serif"}function tM(){return"normal"}function Hje(e){return e.value}function Gje(){return~~(Math.random()*2)*90}function Uje(){return 1}function Yje(){}function Xje(e,t,n,r){if(t.sprite)return;const i=e.context,a=e.ratio;i.clearRect(0,0,(Q1<<5)/a,jg/a);let o=0,s=0,l=0;const c=n.length;for(--r;++r<c;){t=n[r],i.save(),i.font=t.style+" "+t.weight+" "+~~((t.size+1)/a)+"px "+t.font;let d=i.measureText(t.text+"m").width*a,h=t.size<<1;if(t.rotate){const p=Math.sin(t.rotate*$4),g=Math.cos(t.rotate*$4),v=d*g,y=d*p,x=h*g,C=h*p;d=Math.max(Math.abs(v+C),Math.abs(v-C))+31>>5<<5,h=~~Math.max(Math.abs(y+x),Math.abs(y-x))}else d=d+31>>5<<5;if(h>l&&(l=h),o+d>=Q1<<5&&(o=0,s+=l,l=0),s+h>=jg)break;i.translate((o+(d>>1))/a,(s+(h>>1))/a),t.rotate&&i.rotate(t.rotate*$4),i.fillText(t.text,0,0),t.padding&&(i.lineWidth=2*t.padding,i.strokeText(t.text,0,0)),i.restore(),t.width=d,t.height=h,t.xoff=o,t.yoff=s,t.x1=d>>1,t.y1=h>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,o+=d}const u=i.getImageData(0,0,(Q1<<5)/a,jg/a).data,f=[];for(;--r>=0;){if(t=n[r],!t.hasText)continue;const d=t.width,h=d>>5;let p=t.y1-t.y0;for(let y=0;y<p*h;y++)f[y]=0;if(o=t.xoff,o==null)return;s=t.yoff;let g=0,v=-1;for(let y=0;y<p;y++){for(let x=0;x<d;x++){const C=h*y+(x>>5),_=u[(s+y)*(Q1<<5)+(o+x)<<2]?1<<31-x%32:0;f[C]|=_,g|=_}g?v=y:(t.y0++,p--,y--,s++)}t.y1=t.y0+v,t.sprite=f.slice(0,(t.y1-t.y0)*h)}}function qje(e,t,n){n>>=5;const r=e.sprite,i=e.width>>5,a=e.x-(i<<4),o=a&127,s=32-o,l=e.y1-e.y0;let c=(e.y+e.y0)*n+(a>>5),u;for(let f=0;f<l;f++){u=0;for(let d=0;d<=i;d++)if((u<<s|(d<i?(u=r[f*i+d])>>>o:0))&t[c+d])return!0;c+=n}return!1}function Zje(e,t){const n=e[0],r=e[1];t.x+t.x0<n.x&&(n.x=t.x+t.x0),t.y+t.y0<n.y&&(n.y=t.y+t.y0),t.x+t.x1>r.x&&(r.x=t.x+t.x1),t.y+t.y1>r.y&&(r.y=t.y+t.y1)}function Kje(e,t){return e.x+e.x1>t[0].x&&e.x+e.x0<t[1].x&&e.y+e.y1>t[0].y&&e.y+e.y0<t[1].y}function bY(e){const t=e[0]/e[1];return function(n){return[t*(n*=.1)*Math.cos(n),n*Math.sin(n)]}}function Jje(e){const n=4*e[0]/e[1];let r=0,i=0;return function(a){const o=a<0?-1:1;switch(Math.sqrt(1+4*o*a)-o&3){case 0:r+=n;break;case 1:i+=4;break;case 2:r-=n;break;default:i-=4;break}return[r,i]}}function nM(e){const t=[];let n=-1;for(;++n<e;)t[n]=0;return t}function Qje(){return document.createElement("canvas")}function cl(e){return typeof e=="function"?e:function(){return e}}const eDe={archimedean:bY,rectangular:Jje};function tDe(){let e=[256,256],t=Vje,n=Wje,r=Hje,i=tM,a=Gje,o=Uje,s=bY,l=Math.random,c=Yje,u=[],f=null,d=1/0,h=Qje;const p=tM,g={};g.start=function(){const[x,C]=e,_=v(h()),S=g.board?g.board:nM((e[0]>>5)*e[1]),O=u.length,E=[],k=u.map(function(R,N,D){return R.text=t.call(this,R,N,D),R.font=n.call(this,R,N,D),R.style=p.call(this,R,N,D),R.weight=i.call(this,R,N,D),R.rotate=a.call(this,R,N,D),R.size=~~r.call(this,R,N,D),R.padding=o.call(this,R,N,D),R}).sort(function(R,N){return N.size-R.size});let $=-1,T=g.board?[{x:0,y:0},{x,y:C}]:void 0;f&&clearInterval(f),f=setInterval(M,0),M();function M(){const R=Date.now();for(;Date.now()-R<d&&++$<O;){const N=k[$];N.x=x*(l()+.5)>>1,N.y=C*(l()+.5)>>1,Xje(_,N,k,$),N.hasText&&y(S,N,T)&&(c.call(null,"word",{cloud:g,word:N}),E.push(N),T?g.hasImage||Zje(T,N):T=[{x:N.x+N.x0,y:N.y+N.y0},{x:N.x+N.x1,y:N.y+N.y1}],N.x-=e[0]>>1,N.y-=e[1]>>1)}g._tags=E,g._bounds=T,$>=O&&(g.stop(),c.call(null,"end",{cloud:g,words:E,bounds:T}))}return g},g.stop=function(){return f&&(clearInterval(f),f=null),g};function v(x){x.width=x.height=1;const C=Math.sqrt(x.getContext("2d").getImageData(0,0,1,1).data.length>>2);x.width=(Q1<<5)/C,x.height=jg/C;const _=x.getContext("2d");return _.fillStyle=_.strokeStyle="red",_.textAlign="center",_.textBaseline="middle",{context:_,ratio:C}}function y(x,C,_){const S=C.x,O=C.y,E=Math.sqrt(e[0]*e[0]+e[1]*e[1]),k=s(e),$=l()<.5?1:-1;let T,M=-$,R,N;for(;(T=k(M+=$))&&(R=~~T[0],N=~~T[1],!(Math.min(Math.abs(R),Math.abs(N))>=E));)if(C.x=S+R,C.y=O+N,!(C.x+C.x0<0||C.y+C.y0<0||C.x+C.x1>e[0]||C.y+C.y1>e[1])&&(!_||!qje(C,x,e[0]))&&(!_||Kje(C,_))){const D=C.sprite,F=C.width>>5,V=e[0]>>5,z=C.x-(F<<4),B=z&127,G=32-B,Y=C.y1-C.y0;let K,Q=(C.y+C.y0)*V+(z>>5);for(let ne=0;ne<Y;ne++){K=0;for(let oe=0;oe<=F;oe++)x[Q+oe]|=K<<G|(oe<F?(K=D[ne*F+oe])>>>B:0);Q+=V}return delete C.sprite,!0}return!1}return g.createMask=x=>{const C=document.createElement("canvas"),[_,S]=e;if(!_||!S)return;const O=_>>5,E=nM((_>>5)*S);C.width=_,C.height=S;const k=C.getContext("2d");k.drawImage(x,0,0,x.width,x.height,0,0,_,S);
155const $=k.getImageData(0,0,_,S).data;for(let T=0;T<S;T++)for(let M=0;M<_;M++){const R=O*T+(M>>5),N=T*_+M<<2,F=$[N]>=250&&$[N+1]>=250&&$[N+2]>=250?1<<31-M%32:0;E[R]|=F}g.board=E,g.hasImage=!0},g.timeInterval=function(x){d=x??1/0},g.words=function(x){u=x},g.size=function(x=[]){e=[+x[0],+x[1]]},g.text=function(x){t=cl(x)},g.font=function(x){n=cl(x)},g.fontWeight=function(x){i=cl(x)},g.rotate=function(x){a=cl(x)},g.canvas=function(x){h=cl(x)},g.spiral=function(x){s=eDe[x]||x},g.fontSize=function(x){r=cl(x)},g.padding=function(x){o=cl(x)},g.random=function(x){l=cl(x)},g.on=function(x){c=cl(x)},g}var nDe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})},rDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const iDe={fontSize:[20,60],font:"Impact",padding:2,rotate:function(){return(~~(Math.random()*6)-3)*30}};function aDe(e){return new Promise((t,n)=>{if(e instanceof HTMLImageElement){t(e);return}if(typeof e=="string"){const r=new Image;r.crossOrigin="anonymous",r.src=e,r.onload=()=>t(r),r.onerror=()=>{console.error(`'image ${e} load failed !!!'`),n()};return}n()})}function oDe(e,t){if(typeof e=="function")return e;if(Array.isArray(e)){const[n,r]=e;if(!t)return()=>(r+n)/2;const[i,a]=t;return a===i?()=>(r+n)/2:({value:o})=>(r-n)/(a-i)*(o-i)+n}return()=>e}const CY=(e,t)=>n=>nDe(void 0,void 0,void 0,function*(){const r=Object.assign({},iDe,e,{canvas:t.createCanvas}),i=tDe();yield zje(i,r).set("fontSize",x=>{const C=n.map(_=>_.value);return oDe(x,[$a(C),bn(C)])}).set("font").set("fontStyle").set("fontWeight").set("padding").set("rotate").set("size").set("spiral").set("timeInterval").set("random").set("text").set("on").set("canvas").setAsync("imageMask",aDe,i.createMask),i.words([...n]);const a=i.start(),[o,s]=r.size,l=[{x:0,y:0},{x:o,y:s}],{_bounds:c=l,_tags:u,hasImage:f}=a,d=u.map(x=>{var{x:C,y:_,font:S}=x,O=rDe(x,["x","y","font"]);return Object.assign(Object.assign({},O),{x:C+o/2,y:_+s/2,fontFamily:S})}),[{x:h,y:p},{x:g,y:v}]=c,y={text:"",value:0,opacity:0,fontSize:0};return d.push(Object.assign(Object.assign({},y),{x:f?0:h,y:f?0:p}),Object.assign(Object.assign({},y),{x:f?o:g,y:f?s:v})),d});CY.props={};function rM(e){return typeof e=="string"?t=>t[e]:e}const wY=e=>{const{join:t,on:n,select:r=[],as:i=r,unknown:a=NaN}=e,[o,s]=n,l=rM(s),c=rM(o),u=eb(t,([f])=>f,f=>l(f));return f=>f.map(d=>{const h=u.get(c(d));return Object.assign(Object.assign({},d),r.reduce((p,g,v)=>(p[i[v]]=h?h[g]:a,p),{}))})};wY.props={};const _Y=e=>{const{start:t,end:n}=e;return r=>r.slice(t,n)};_Y.props={};var T4={exports:{}},P4={exports:{}},iM;function sDe(){return iM||(iM=1,function(e){var t=e.exports;e.exports.isNumber=function(n){return typeof n=="number"},e.exports.findMin=function(n){if(n.length===0)return 1/0;for(var r=n[0],i=1;i<n.length;i++)r=Math.min(r,n[i]);return r},e.exports.findMax=function(n){if(n.length===0)return-1/0;for(var r=n[0],i=1;i<n.length;i++)r=Math.max(r,n[i]);return r},e.exports.findMinMulti=function(n){for(var r=t.findMin(n[0]),i=1;i<n.length;i++)r=Math.min(r,t.findMin(n[i]));return r},e.exports.findMaxMulti=function(n){for(var r=t.findMax(n[0]),i=1;i<n.length;i++)r=Math.max(r,t.findMax(n[i]));return r},e.exports.inside=function(n,r,i){return n<=i&&i<=r}}(P4)),P4.exports}var aM;function lDe(){return aM||(aM=1,function(e){var t=50,n=2,r=Math.log(2),i=e.exports,a=sDe();function o(l){return 1-Math.abs(l)}e.exports.getUnifiedMinMax=function(l,c){return i.getUnifiedMinMaxMulti([l],c)},e.exports.getUnifiedMinMaxMulti=function(l,c){c=c||{};var u=!1,f=!1,d=a.isNumber(c.width)?c.width:n,h=a.isNumber(c.size)?c.size:t,p=a.isNumber(c.min)?c.min:(u
155=!0,a.findMinMulti(l)),g=a.isNumber(c.max)?c.max:(f=!0,a.findMaxMulti(l)),v=g-p,y=v/(h-1);return u&&(p=p-2*d*y),f&&(g=g+2*d*y),{min:p,max:g}},e.exports.create=function(l,c){if(c=c||{},!l||l.length===0)return[];var u=a.isNumber(c.size)?c.size:t,f=a.isNumber(c.width)?c.width:n,d=i.getUnifiedMinMax(l,{size:u,width:f,min:c.min,max:c.max}),h=d.min,p=d.max,g=p-h,v=g/(u-1);if(g===0)return[{x:h,y:1}];for(var y=[],x=0;x<u;x++)y.push({x:h+x*v,y:0});var C=function(M){return Math.floor((M-h)/v)},_=s(o,f),S=_[f],O=_[f-1]-_[f-2],E=0;l.forEach(function(M){var R=C(M);if(!(R+f<0||R-f>=y.length)){var N=Math.max(R-f,0),D=R,F=Math.min(R+f,y.length-1),V=N-(R-f),z=R+f-F,B=_[-f-1+V]||0,G=_[-f-1+z]||0,Y=S/(S-B-G);V>0&&(E+=Y*(V-1)*O);var K=Math.max(0,R-f+1);a.inside(0,y.length-1,K)&&(y[K].y+=Y*1*O),a.inside(0,y.length-1,D+1)&&(y[D+1].y-=Y*2*O),a.inside(0,y.length-1,F+1)&&(y[F+1].y+=Y*1*O)}});var k=E,$=0,T=0;return y.forEach(function(M){$+=M.y,k+=$,M.y=k,T+=k}),T>0&&y.forEach(function(M){M.y/=T}),y};function s(l,c){for(var u={},f=0,d=-c;d<=c;d++)f+=l(d/c),u[d]=f;return u}e.exports.getExpectedValueFromPdf=function(l){if(!(!l||l.length===0)){var c=0;return l.forEach(function(u){c+=u.x*u.y}),c}},e.exports.getXWithLeftTailArea=function(l,c){if(!(!l||l.length===0)){for(var u=0,f=0,d=0;d<l.length&&(f=d,u+=l[d].y,!(u>=c));d++);return l[f].x}},e.exports.getPerplexity=function(l){if(!(!l||l.length===0)){var c=0;return l.forEach(function(u){var f=Math.log(u.y);isFinite(f)&&(c+=u.y*f)}),c=-c/r,Math.pow(2,c)}}}(T4)),T4.exports}var cDe=lDe();const uDe=xp(cDe),SY=e=>{const{field:t,groupBy:n,as:r=["y","size"],min:i,max:a,size:o=10,width:s}=e,[l,c]=r;return u=>Array.from(jn(u,d=>n.map(h=>d[h]).join("-")).values()).map(d=>{const h=uDe.create(d.map(v=>v[t]),{min:i,max:a,size:o,width:s}),p=h.map(v=>v.x),g=h.map(v=>v.y);return Object.assign(Object.assign({},d[0]),{[l]:p,[c]:g})})};SY.props={};function fDe(e,t,n,r){r=r||{};const i=r.maxIterations||100,a=r.tolerance||1e-10,o=e(t),s=e(n);let l=n-t;if(o*s>0)throw"Initial bisect points must have opposite signs";if(o===0)return t;if(s===0)return n;for(let c=0;c<i;++c){l/=2;const u=t+l,f=e(u);if(f*o>=0&&(t=u),Math.abs(l)<a||f===0)return u}return t+l}function g8(e){const t=new Array(e);for(let n=0;n<e;++n)t[n]=0;return t}function oM(e,t){return g8(e).map(()=>g8(t))}function X0(e,t){let n=0;for(let r=0;r<e.length;++r)n+=e[r]*t[r];return n}function m8(e){return Math.sqrt(X0(e,e))}function v8(e,t,n){for(let r=0;r<t.length;++r)e[r]=t[r]*n}function bl(e,t,n,r,i){for(let a=0;a<e.length;++a)e[a]=t*n[a]+r*i[a]}function dDe(e,t,n){n=n||{};const r=n.maxIterations||t.length*200,i=n.nonZeroDelta||1.05,a=n.zeroDelta||.001,o=n.minErrorDelta||1e-6,s=n.minErrorDelta||1e-5,l=n.rho!==void 0?n.rho:1,c=n.chi!==void 0?n.chi:2,u=n.psi!==void 0?n.psi:-.5,f=n.sigma!==void 0?n.sigma:.5;let d;const h=t.length,p=new Array(h+1);p[0]=t,p[0].fx=e(t),p[0].id=0;for(let S=0;S<h;++S){const O=t.slice();O[S]=O[S]?O[S]*i:a,p[S+1]=O,p[S+1].fx=e(O),p[S+1].id=S+1}function g(S){for(let O=0;O<S.length;O++)p[h][O]=S[O];p[h].fx=S.fx}const v=(S,O)=>S.fx-O.fx,y=t.slice(),x=t.slice(),C=t.slice(),_=t.slice();for(let S=0;S<r;++S){if(p.sort(v),n.history){const E=p.map(k=>{const $=k.slice();return $.fx=k.fx,$.id=k.id,$});E.sort((k,$)=>k.id-$.id),n.history.push({x:p[0].slice(),fx:p[0].fx,simplex:E})}d=0;for(let E=0;E<h;++E)d=Math.max(d,Math.abs(p[0][E]-p[1][E]));if(Math.abs(p[0].fx-p[h].fx)<o&&d<s)break;for(let E=0;E<h;++E){y[E]=0;for(let k=0;k<h;++k)y[E]+=p[k][E];y[E]/=h}const O=p[h];if(bl(x,1+l,y,-l,O),x.fx=e(x),x.fx<p[0].fx)bl(_,1+c,y,-c,O),_.fx=e(_),_.fx<x.fx?g(_):g(x);else if(x.fx>=p[h-1].fx){let E=!1;if(x.fx>O.fx?(bl(C,1+u,y,-u,O),C.fx=e(C),C.fx<O.fx?g(C):E=!0):(bl(C,1-u*l,y,u*l,O),C.fx=e(C),C.fx<x.fx?g(C):E=!0),E){if(f>=1)break;for(let k=1;k<p.length;++k)bl(p[k],1-f,p[0],f,p[k]),p[k].fx=e(p[k])}}else g(x)}return p.sort(v),{fx:p[0].fx,x:p[0]}}function hDe(e,t,n,r,i,a,o){const s=n.fx,l=X0(n.fxprime,t);let c=s,u=s,f=l,d=0;i=i||1,a=a||1e-6,o=o||.1;function h(p,g,v){for(let y=0;y<16;++y)if(i=(p+g)/2,bl(r.x,1,n.x,i,t),c=r.fx=e(r.x,r.fxprime),f=X0(r.fxprime,t),c>s+a*i*l||c>=v)g=i;else{if(Math.abs(f)<=-o*l)return i;f*(g-p)>=0&&(g=p),p=i,v=c}return 0}for(let p=0;p<10;++p){if(bl(r.x,1,n.x,i,t),c=r.fx=e(r.x,r.fxprime),f=X0(r.fxprime,t),c>s+a*i*l||p&&c>=u)return h(d,i,u);if(Math.abs(f)<=-o*l)return i;if(f>=0)return h(i,d,c);
155u=c,d=i,i*=2}return i}function pDe(e,t,n){let r={x:t.slice(),fx:0,fxprime:t.slice()},i={x:t.slice(),fx:0,fxprime:t.slice()};const a=t.slice();let o,s=1;n=n||{};const l=n.maxIterations||t.length*20;r.fx=e(r.x,r.fxprime);const c=r.fxprime.slice();v8(c,r.fxprime,-1);for(let u=0;u<l;++u){if(s=hDe(e,c,r,i,s),n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:s}),!s)v8(c,r.fxprime,-1);else{bl(a,1,i.fxprime,-1,r.fxprime);const f=X0(r.fxprime,r.fxprime),d=Math.max(0,X0(a,i.fxprime)/f);bl(c,d,c,-1,i.fxprime),o=r,r=i,i=o}if(m8(r.fxprime)<=1e-5)break}return n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:s}),r}const OY=1e-10;function EY(e,t){const n=mDe(e),r=n.filter(function(l){return gDe(l,e)});let i=0,a=0,o;const s=[];if(r.length>1){const l=vDe(r);for(o=0;o<r.length;++o){const u=r[o];u.angle=Math.atan2(u.x-l.x,u.y-l.y)}r.sort(function(u,f){return f.angle-u.angle});let c=r[r.length-1];for(o=0;o<r.length;++o){const u=r[o];a+=(c.x+u.x)*(u.y-c.y);const f={x:(u.x+c.x)/2,y:(u.y+c.y)/2};let d=null;for(let h=0;h<u.parentIndex.length;++h)if(c.parentIndex.indexOf(u.parentIndex[h])>-1){const p=e[u.parentIndex[h]],g=Math.atan2(u.x-p.x,u.y-p.y),v=Math.atan2(c.x-p.x,c.y-p.y);let y=v-g;y<0&&(y+=2*Math.PI);const x=v-y/2;let C=hp(f,{x:p.x+p.radius*Math.sin(x),y:p.y+p.radius*Math.cos(x)});C>p.radius*2&&(C=p.radius*2),(d===null||d.width>C)&&(d={circle:p,width:C,p1:u,p2:c})}d!==null&&(s.push(d),i+=y8(d.circle.radius,d.width),c=u)}}else{let l=e[0];for(o=1;o<e.length;++o)e[o].radius<l.radius&&(l=e[o]);let c=!1;for(o=0;o<e.length;++o)if(hp(e[o],l)>Math.abs(l.radius-e[o].radius)){c=!0;break}c?i=a=0:(i=l.radius*l.radius*Math.PI,s.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-OY,y:l.y+l.radius},width:l.radius*2}))}return a/=2,t&&(t.area=i+a,t.arcArea=i,t.polygonArea=a,t.arcs=s,t.innerPoints=r,t.intersectionPoints=n),i+a}function gDe(e,t){for(let n=0;n<t.length;++n)if(hp(e,t[n])>t[n].radius+OY)return!1;return!0}function mDe(e){const t=[];for(let n=0;n<e.length;++n)for(let r=n+1;r<e.length;++r){const i=AY(e[n],e[r]);for(let a=0;a<i.length;++a){const o=i[a];o.parentIndex=[n,r],t.push(o)}}return t}function y8(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function hp(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function kY(e,t,n){if(n>=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);const r=e-(n*n-t*t+e*e)/(2*n),i=t-(n*n-e*e+t*t)/(2*n);return y8(e,r)+y8(t,i)}function AY(e,t){const n=hp(e,t),r=e.radius,i=t.radius;if(n>=r+i||n<=Math.abs(r-i))return[];const a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=e.x+a*(t.x-e.x)/n,l=e.y+a*(t.y-e.y)/n,c=-(t.y-e.y)*(o/n),u=-(t.x-e.x)*(o/n);return[{x:s+c,y:l-u},{x:s-c,y:l+u}]}function vDe(e){const t={x:0,y:0};for(let n=0;n<e.length;++n)t.x+=e[n].x,t.y+=e[n].y;return t.x/=e.length,t.y/=e.length,t}function yDe(e,t){t=t||{},t.maxIterations=t.maxIterations||500;const n=t.initialLayout||wDe,r=t.lossFunction||yw;e=xDe(e);const i=n(e,t),a=[],o=[];let s;for(s in i)i.hasOwnProperty(s)&&(a.push(i[s].x),a.push(i[s].y),o.push(s));const c=dDe(function(u){const f={};for(let d=0;d<o.length;++d){const h=o[d];f[h]={x:u[2*d],y:u[2*d+1],radius:i[h].radius}}return r(f,e)},a,t).x;for(let u=0;u<o.length;++u)s=o[u],i[s].x=c[2*u],i[s].y=c[2*u+1];return i}const $Y=1e-10;function x8(e,t,n){return Math.min(e,t)*Math.min(e,t)*Math.PI<=n+$Y?Math.abs(e-t):fDe(function(r){return kY(e,t,r)-n},0,e+t)}function xDe(e){e=e.slice();const t=[],n={};let r,i,a,o;for(r=0;r<e.length;++r){const s=e[r];s.sets.length==1?t.push(s.sets[0]):s.sets.length==2&&(a=s.sets[0],o=s.sets[1],n[[a,o]]=!0,n[[o,a]]=!0)}for(t.sort((s,l)=>s>l?1:-1),r=0;r<t.length;++r)for(a=t[r],i=r+1;i<t.length;++i)o=t[i],[a,o]in n||e.push({sets:[a,o],size:0});return e}function bDe(e,t,n){const r=oM(t.length,t.length),i=oM(t.length,t.length);return e.filter(function(a){return a.sets.length==2}).map(function(a){const o=n[a.sets[0]],s=n[a.sets[1]],l=Math.sqrt(t[o].size/Math.PI),c=Math.sqrt(t[s].size/Math.PI),u=x8(l,c,a.size);r[o][s]=r[s][o]=u;let f=0;a.size+1e-10>=Math.min(t[o].size,t[s].size)?f=1:a.size<=1e-10&&(f=-1),i[o][s]=i[s][o]=f}),{distances:r,constraints:i}}function CDe(e,t,n,r){let i=0,a;for(a=0;a<t.length;++a)t[a]=0;for(a=0;a<n.length;++a){const o=e[2*a],s=e[2*a+1];for(let l=a+1;l<n.length;++l){const c=e[2*l],u=e[2*l+1],f=n[a][l],d=r[a][l],h=(c-o)*(c-o)+(u-s)*(u-s),p=Math.sqrt(h),g=h-f*f;d>0&&p<=f||d<0&&p>=f||(i+=2*g*g,t[2*a]+=4*g*(o-c),t[2*a+1]+=4*g*(s-u),t[2*l]+=4*g*(c-o),t[2*l+1]+=4*g*(u-s))}}return i}function wDe(e,t){let n=SDe(e,t);const r=t.lossFunction||yw;if(e.length>=8){const i=_De(e,t),a=r(i,e),o=r(n,e);a+1e-8<o&&(n=i)}return n}function _De(e,t){t=t||{};const n=t.restarts||10,r=[],i={};let a;for(a=0;a<e.length;++a){const g=e[a];g.sets.length==1&&(i[g.sets[0]]=r.length,r.push(g))}const o=bDe(e,r,i);let s=o.distances;const l=o.constraints,c=m8(s.map(m8))/s.length;s=s.map(function(g){return g.map(function(v){return v/c})});const u=function(g,v){return CDe(g,v,s,l)};let f,d;for(a=0;a<n;++a){const g=g8(s.length*2).map(Math.random);d=pDe(u,g,t),(!f||d.fx<f.fx)&&(f=d)}const h=f.x,p={};for(a=0;a<r.length;
vendor: 2,177 bytes, line 155
155++a){const g=r[a];p[g.sets[0]]={x:h[2*a]*c,y:h[2*a+1]*c,radius:Math.sqrt(g.size/Math.PI)}}if(t.history)for(a=0;a<t.history.length;++a)v8(t.history[a].x,c);return p}function SDe(e,t){const n=t&&t.lossFunction?t.lossFunction:yw,r={},i={};let a;for(let f=0;f<e.length;++f){const d=e[f];d.sets.length==1&&(a=d.sets[0],r[a]={x:1e10,y:1e10,rowid:Object.keys(r).length,size:d.size,radius:Math.sqrt(d.size/Math.PI)},i[a]=[])}e=e.filter(function(f){return f.sets.length==2});for(let f=0;f<e.length;++f){const d=e[f];let h=d.hasOwnProperty("weight")?d.weight:1;const p=d.sets[0],g=d.sets[1];d.size+$Y>=Math.min(r[p].size,r[g].size)&&(h=0),i[p].push({set:g,size:d.size,weight:h}),i[g].push({set:p,size:d.size,weight:h})}const o=[];for(a in i)if(i.hasOwnProperty(a)){let f=0;for(let d=0;d<i[a].length;++d)f+=i[a][d].size*i[a][d].weight;o.push({set:a,size:f})}function s(f,d){return d.size-f.size}o.sort(s);const l={};function c(f){return f.set in l}function u(f,d){r[d].x=f.x,r[d].y=f.y,l[d]=!0}u({x:0,y:0},o[0].set);for(let f=1;f<o.length;++f){const d=o[f].set,h=i[d].filter(c);if(a=r[d],h.sort(s),h.length===0)throw"ERROR: missing pairwise overlap information";const p=[];for(let y=0;y<h.length;++y){const x=r[h[y].set],C=x8(a.radius,x.radius,h[y].size);p.push({x:x.x+C,y:x.y}),p.push({x:x.x-C,y:x.y}),p.push({y:x.y+C,x:x.x}),p.push({y:x.y-C,x:x.x});for(let _=y+1;_<h.length;++_){const S=r[h[_].set],O=x8(a.radius,S.radius,h[_].size),E=AY({x:x.x,y:x.y,radius:C},{x:S.x,y:S.y,radius:O});for(let k=0;k<E.length;++k)p.push(E[k])}}let g=1e50,v=p[0];for(let y=0;y<p.length;++y){r[d].x=p[y].x,r[d].y=p[y].y;const x=n(r,e);x<g&&(g=x,v=p[y])}u(v,d)}return r}function yw(e,t){let n=0;function r(i){return i.map(function(a){return e[a]})}for(let i=0;i<t.length;++i){const a=t[i];let o;if(a.sets.length==1)continue;if(a.sets.length==2){const l=e[a.sets[0]],c=e[a.sets[1]];o=kY(l.radius,c.radius,hp(l,c))}else o=EY(r(a.sets));const s=a.hasOwnProperty("weight")?a.weight:1;n+=s*(o-a.size)*(o-a.size)}return n}function ODe(e){const t=function(n){const r=Math.max.apply(null,e.map(function(a){return a[n]+a.radius})),i=Math.min.apply(null,e.map(function(a){return a[n]-a.radius}));return{max:r,min:i}};
155return{xRange:t("x"),yRange:t("y")}}function EDe(e,t,n,r){const i=[],a=[];for(const g in e)e.hasOwnProperty(g)&&(a.push(g),i.push(e[g]));t-=2*r,n-=2*r;const o=ODe(i),s=o.xRange,l=o.yRange;if(s.max==s.min||l.max==l.min)return console.log("not scaling solution: zero size detected"),e;const c=t/(s.max-s.min),u=n/(l.max-l.min),f=Math.min(u,c),d=(t-(s.max-s.min)*f)/2,h=(n-(l.max-l.min)*f)/2,p={};for(let g=0;g<i.length;++g){const v=i[g];p[a[g]]={radius:f*v.radius,x:r+d+(v.x-s.min)*f,y:r+h+(v.y-l.min)*f}}return p}function kDe(e,t,n){const r=[],i=e-n,a=t;return r.push("M",i,a),r.push("A",n,n,0,1,0,i+2*n,a),r.push("A",n,n,0,1,0,i,a),r.join(" ")}function ADe(e){const t={};EY(e,t);const n=t.arcs;if(n.length===0)return"M 0 0";if(n.length==1){const r=n[0].circle;return kDe(r.x,r.y,r.radius)}else{const r=[`
156M`,n[0].p2.x,n[0].p2.y];for(let i=0;i<n.length;++i){const a=n[i],o=a.circle.radius,s=a.width>o;r.push(`
157A`,o,o,0,s?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}}const TY=e=>{const{sets:t="sets",size:n="size",as:r=["key","path"],padding:i=0}=e,[a,o]=r;return s=>{const l=s.map(f=>Object.assign(Object.assign({},f),{sets:f[t],size:f[n],[a]:f.sets.join("&")}));l.sort((f,d)=>f.sets.length-d.sets.length);const c=yDe(l);let u;return l.map(f=>{const d=f[t],h=({width:p,height:g})=>{u=u||EDe(c,p,g,i);const v=d.map(x=>u[x]);let y=ADe(v);return/[zZ]$/.test(y)||(y+=" Z"),y};return Object.assign(Object.assign({},f),{[o]:h})})}};TY.props={};const PY=()=>e=>(console.log("G2 data section:",e),e);PY.props={};function $De(e,t){if(t<0||t>1)throw new Error("alpha must be between 0 and 1.");if(e.length===0)return[];let n=e[0];const r=[];for(const i of e){if(i==null){r.push(i),console.warn("EMA:The value is null or undefined",e);continue}n==null&&(n=i);const a=n*t+(1-t)*i;r.push(a),n=a}return r}const MY=e=>{const{field:t="y",alpha:n=.6,as:r=t}=e;return i=>{const a=i.map(s=>s[t]),o=$De(a,n);return i.map((s,l)=>Object.assign(Object.assign({},s),{[r]:o[l]}))}};MY.props={};const NY=.01;function b8(e){const{min:t,max:n}=e;return[[t[0],t[1]],[n[0],n[1]]]}function sM(e,t,n=NY){const[r,i]=e,[a,o]=t;return r>=a[0]-n&&r<=o[0]+n&&i>=a[1]-n&&i<=o[1]+n}function TDe(e,t,n=NY){const[r,i]=e;return!(sM(r,t,n)&&sM(i,t,n))}function PDe(e,t){const[n,r]=e,[i,a]=t;return n[0]<a[0]&&r[0]>i[0]&&n[1]<a[1]&&r[1]>i[1]}const MDe=e=>{const{priority:t}=e;return n=>{const r=[];return t&&n.sort(t),n.forEach(i=>{Pv(i);const a=i.getLocalBounds();r.some(s=>PDe(b8(a),b8(s.getLocalBounds())))?sw(i):r.push(i)}),n}};function NDe([e,t],[n,r]){return r>e&&t>n}function lg(){const e=new Map;return[r=>e.get(r),(r,i)=>e.set(r,i)]}function IDe(e){const t=e.cloneNode(!0),n=t.getElementById("connector");n&&t.removeChild(n);const{min:r,max:i}=t.getRenderBounds();return t.destroy(),{min:r,max:i}}const LDe=e=>{const{maxIterations:t=10,maxError:n=.1,padding:r=1}=e;return i=>{const a=i.length;if(a<=1)return i;const[o,s]=lg(),[l,c]=lg(),[u,f]=lg(),[d,h]=lg();for(const p of i){const{min:g,max:v}=IDe(p),[y,x]=g,[C,_]=v;s(p,x),c(p,x),f(p,_-x),h(p,[y,C])}for(let p=0;p<t;p++){i.sort((v,y)=>pr(l(v),l(y)));let g=0;for(let v=0;v<a-1;v++){const y=i[v];let x=v+1,C;for(;(C=i[x])&&!NDe(d(y),d(C));)x+=1;if(C){const _=l(y),S=u(y),O=l(C),E=O-(_+S);if(E<r){const k=(r-E)/2;g=Math.max(g,k),c(y,_-k),c(C,O+k)}}}if(g<n)break}for(const p of i)p.style.y+=l(p)-o(p);return i}};function RDe(e){return typeof e=="object"?e:Ec(e)}function M4(e){let t=e/255;return t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4),t}
157function lM(e,t,n){return .2126*M4(e)+.7152*M4(t)+.0722*M4(n)}function IY(e,t){if(!e||!t||e===t)return 1;const{r:n,g:r,b:i}=e,{r:a,g:o,b:s}=t,l=lM(n,r,i),c=lM(a,o,s);return(Math.max(l,c)+.05)/(Math.min(l,c)+.05)}function jDe(e,t){const n=Pd(t,r=>IY(e,RDe(r)));return t[n]}const DDe=e=>{const{threshold:t=4.5,palette:n=["#000","#fff"]}=e;return r=>(r.forEach(i=>{const a=i.attr("dependentElement").parsedStyle.fill,o=i.parsedStyle.fill;IY(o,a)<t&&i.attr("fill",jDe(a,n))}),r)},FDe=()=>e=>(e.forEach(t=>{Pv(t);const n=t.attr("bounds"),r=t.getLocalBounds();TDe(b8(r),n)&&sw(t)}),e),BDe=(e,t)=>{const[[n,r],[i,a]]=t,[[o,s],[l,c]]=e;let u=0,f=0;return o<n?u=n-o:l>i&&(u=i-l),s<r?f=r-s:c>a&&(f=a-c),[u,f]},zDe=()=>(e,{canvas:t,layout:n})=>(e.forEach(r=>{Pv(r);const{max:i,min:a}=r.getRenderBounds(),[o,s]=i,[l,c]=a,u=BDe([[l,c],[o,s]],[[n.x,n.y],[n.x+n.width,n.y+n.height]]);r.style.connector&&r.style.connectorPoints&&(r.style.connectorPoints[0][0]-=u[0],r.style.connectorPoints[0][1]-=u[1]),r.style.x+=u[0],r.style.y+=u[1]}),e);function VDe(){return{"data.fetch":uY,"data.inline":vY,"data.sortBy":mY,"data.sort":hY,"data.filter":dY,"data.pick":pY,"data.rename":gY,"data.fold":fY,"data.slice":_Y,"data.custom":yY,"data.map":xY,"data.join":wY,"data.kde":SY,"data.log":PY,"data.wordCloud":CY,"data.ema":MY,"transform.stackY":pD,"transform.binX":GD,"transform.bin":mb,"transform.dodgeX":OD,"transform.jitter":AD,"transform.jitterX":$D,"transform.jitterY":TD,"transform.symmetryY":PD,"transform.diffY":MD,"transform.stackEnter":ED,"transform.normalizeY":kD,"transform.select":X3,"transform.selectX":ND,"transform.selectY":ID,"transform.groupX":LD,"transform.groupY":RD,"transform.groupColor":jD,"transform.group":Lp,"transform.sortX":DD,"transform.sortY":BD,"transform.sortColor":FD,"transform.flexX":zD,"transform.pack":HD,"transform.sample":UD,"transform.filter":YD,"coordinate.cartesian":MR,"coordinate.polar":Op,"coordinate.transpose":zx,"coordinate.theta":LR,"coordinate.parallel":Wx,"coordinate.fisheye":jR,"coordinate.radial":Vx,"coordinate.radar":DR,"coordinate.helix":IR,"encode.constant":FR,"encode.field":zR,"encode.transform":BR,"encode.column":VR,"mark.interval":wV,"mark.rect":_V,"mark.line":SV,"mark.point":OV,"mark.text":EV,"mark.cell":kV,"mark.area":AV,"mark.link":fC,"mark.image":$V,"mark.polygon":TV,"mark.box":PV,"mark.vector":MV,"mark.lineX":IV,"mark.lineY":NV,"mark.connector":LV,"mark.range":RV,"mark.rangeX":jV,"mark.rangeY":DV,"mark.path":WV,"mark.shape":oW,"mark.density":bW,"mark.heatmap":CW,"mark.wordCloud":vC,"palette.category10":_W,"palette.category20":SW,"scale.linear":EW,"scale.ordinal":kW,"scale.band":OW,"scale.identity":AW,"scale.point":$W,"scale.time":TW,"scale.log":PW,"scale.pow":MW,"scale.sqrt":RW,"scale.threshold":NW,"scale.quantile":IW,"scale.quantize":LW,"scale.sequential":jW,"scale.constant":DW,"theme.classic":FW,"theme.classicDark":zW,"theme.academy":VW,"theme.light":xC,"theme.dark":BW,"component.axisX":QW,"component.axisY":eH,"component.legendCategory":CC,"component.legendContinuous":Uc,"component.legends":cH,"component.title":iH,"component.sliderX":aH,"component.sliderY":oH,"component.scrollbarX":sH,"component.scrollbarY":lH,"animation.scaleInX":_C,"animation.scaleOutX":RAe,"animation.scaleInY":uH,"animation.scaleOutY":jAe,"animation.waveIn":gH,"animation.fadeIn":fH,"animation.fadeOut":dH,"animation.zoomIn":XAe,"animation.zoomOut":qAe,"animation.pathIn":mH,"animation.morphing":pH,"animation.growInX":vH,"animation.growInY":yH,"interaction.elementHighlight":Mv,"interaction.elementHighlightByX":LU,"interaction.elementHighlightByColor":RU,"interaction.elementSelect":Nv,"interaction.elementSelectByX":jU,"interaction.elementSelectByColor":DU,"interaction.fisheye":wRe,"interaction.chartIndex":FU,"interaction.tooltip":ZU,"interaction.legendFilter":BRe,"interaction.legendHighlight":zRe,"interaction.brushHighlight":hw,"interaction.brushXHighlight":YRe,"interaction.brushYHighlight":XRe,"interaction.brushAxisHighlight":rje,"interaction.brushFilter":vw,"interaction.brushXFilter":sje,"interaction.brushYFilter":lje,"interaction.sliderFilter":sY,"interaction.scrollbarFilter":hje,"interaction.poptip":lY,"interaction.treemapDrillDown":Cje,"interaction.elementPointMove":kje,"composition.space
157Layer":zH,"composition.spaceFlex":VH,"composition.facetRect":YH,"composition.repeatMatrix":oPe,"composition.facetCircle":dPe,"composition.timingKeyframe":XH,"labelTransform.overlapHide":MDe,"labelTransform.overlapDodgeY":LDe,"labelTransform.overflowHide":FDe,"labelTransform.contrastReverse":DDe,"labelTransform.exceedAdjust":zDe}}function WDe(){return{"composition.geoView":_G,"composition.geoPath":qH}}function HDe(){return{"data.arc":hC,"data.cluster":mW,"mark.forceGraph":pW,"mark.tree":yW,"mark.pack":nW,"mark.sankey":zV,"mark.chord":VV,"mark.treemap":tW}}function GDe(){return{"data.venn":TY,"mark.boxplot":aW,"mark.gauge":xW,"mark.wordCloud":vC,"mark.liquid":wW}}function LY(){return Object.assign(Object.assign(Object.assign(Object.assign({},WDe()),HDe()),GDe()),VDe())}function UDe(e,t){class n extends e{constructor(i){super(Object.assign(Object.assign({},i),{lib:t}))}}return n}const RY={};function jY(e,t){e.startsWith("symbol.")?Ibe(e.split(".").pop(),t):Object.assign(RY,{[e]:t})}const p0=e=>e?parseInt(e):0;function YDe(e){const t=getComputedStyle(e),n=e.clientWidth||p0(t.width),r=e.clientHeight||p0(t.height),i=p0(t.paddingLeft)+p0(t.paddingRight),a=p0(t.paddingTop)+p0(t.paddingBottom);return{width:n-i,height:r-a}}function N4(e,t){const n=[e];for(;n.length;){const r=n.shift();t&&t(r);const i=r.children||[];for(const a of i)n.push(a)}}class xw{constructor(t={},n){this.parentNode=null,this.children=[],this.index=0,this.type=n,this.value=t}map(t=n=>n){const n=t(this.value);return this.value=n,this}attr(t,n){return arguments.length===1?this.value[t]:this.map(r=>(r[t]=n,r))}append(t){const n=new t({});return n.children=[],this.push(n),n}push(t){return t.parentNode=this,t.index=this.children.length,this.children.push(t),this}remove(){const t=this.parentNode;if(t){const{children:n}=t,r=n.findIndex(i=>i===this);n.splice(r,1)}return this}getNodeByKey(t){let n=null;return N4(this,i=>{t===i.attr("key")&&(n=i)}),n}getNodesByType(t){const n=[];return N4(this,i=>{t===i.type&&n.push(i)}),n}getNodeByType(t){let n=null;return N4(this,r=>{n||t===r.type&&(n=r)}),n}call(t,...n){return t(this.map(),...n),this}getRoot(){let t=this;for(;t&&t.parentNode;)t=t.parentNode;return t}}var DY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const C8=["width","height","depth","padding","paddingLeft","paddingRight","paddingBottom","paddingTop","inset","insetLeft","insetRight","insetTop","insetBottom","margin","marginLeft","marginRight","marginTop","marginBottom","autoFit","theme","title","interaction"],FY="__remove__",BY="__callback__",cM=1,uM=1;function XDe(e){if(e===void 0){const t=document.createElement("div");return t[FY]=!0,t}return typeof e=="string"?document.getElementById(e):e}function qDe(e){const t=e.parentNode;t&&t.removeChild(e)}function ZDe(e){if(e.type!==null)return e;const t=e.children[e.children.length-1];for(const n of C8)t.attr(n,e.attr(n));return t}function fM(e){return Object.assign(Object.assign({},e.value),{type:e.type})}function I4(e,t){const{width:n,height:r,autoFit:i,depth:a=0}=e;let o=640,s=480;if(i){const{width:l,height:c}=YDe(t);o=l||o,s=c||s}return o=n||o,s=r||s,{width:Math.max(Jn(o)?o:cM,cM),height:Math.max(Jn(s)?s:uM,uM),depth:a}}function KDe(e){const t=ZDe(e),n=[t],r=new Map;for(r.set(t,fM(t));n.length;){const i=n.pop(),a=r.get(i),{children:o=[]}=i;for(const s of o)if(s.type===BY)a.children=s.value;else{const l=fM(s),{children:c=[]}=a;c.push(l),n.push(s),r.set(s,l),a.children=c}}return r.get(t)}function JDe(e,t){return typeof e=="function"?!0:new Set(Object.keys(t)).has(e)}function QDe(e,t){return typeof e!="function"&&new Set(Object.keys(t)).has(e)}function eFe(e,t,n,r,i){const{type:a}=e,{type:o=n||a}=t;if(QDe(o,i)){for(const s of C8)e.attr(s)!==void 0&&t[s]===void 0&&(t[s]=e.attr(s));return t}if(JDe(o,r)){const s={type:"view"},l=Object.assign({},t);for(const c of C8)l[c]!==void 0&&(s[c]=l[c],delete l[c]);return Object.assign(Object.assign({}
157,s),{children:[l]})}return t}function tFe(e,t,n){if(typeof e=="function")return t.mark;const i=Object.assign(Object.assign({},t),n)[e];if(!i)throw new Error(`Unknown mark: ${e}.`);return i}function nFe(e,t,n){if(typeof e=="function"){const l=new xw;return l.value=e,l.type=BY,l}const{type:r,children:i}=e,a=DY(e,["type","children"]),o=tFe(r,t,n),s=new o;return s.value=a,s.type=r,s}function rFe(e,t){const{type:n,children:r}=t,i=DY(t,["type","children"]);e.type===n||n===void 0?sD(e.value,i):typeof n=="string"&&(e.type=n,e.value=i)}function iFe(e,t,n,r){if(!e)return;const i=[[e,t]];for(;i.length;){const[a,o]=i.shift(),s=nFe(o,n,r);Array.isArray(a.children)&&a.push(s);const{children:l}=o;if(Array.isArray(l))for(const c of l)i.push([s,c]);else typeof l=="function"&&i.push([s,l])}}function aFe(e,t,n,r,i){const a=eFe(e,t,n,r,i),o=[[null,e,a]];for(;o.length;){const[s,l,c]=o.shift();if(!l)iFe(s,c,r,i);else if(!c)l.remove();else{rFe(l,c);const{children:u}=c,{children:f}=l;if(Array.isArray(u)&&Array.isArray(f)){const d=Math.max(u.length,f.length);for(let h=0;h<d;h++){const p=u[h],g=f[h];o.push([l,g,p])}}else typeof u=="function"&&o.push([l,null,u])}}}function oFe(){let e,t;return[new Promise((r,i)=>{t=r,e=i}),t,e]}function sFe(e,t,{key:n=t}){e.prototype[t]=function(r){return arguments.length===0?this.attr(n):this.attr(n,r)}}function lFe(e,t,{key:n=t}){e.prototype[t]=function(r){if(arguments.length===0)return this.attr(n);if(Array.isArray(r))return this.attr(n,r);const i=[...this.attr(n)||[],r];return this.attr(n,i)}}function cFe(e,t,{key:n=t}){e.prototype[t]=function(r,i){if(arguments.length===0)return this.attr(n);if(arguments.length===1&&typeof r!="string")return this.attr(n,r);const a=this.attr(n)||{};return a[r]=arguments.length===1?!0:i,this.attr(n,a)}}function uFe(e,t,n){e.prototype[t]=function(r){if(arguments.length===0)return this.attr(t);if(Array.isArray(r))return this.attr(t,{items:r});if(cd(r)&&(r.title!==void 0||r.items!==void 0))return this.attr(t,r);if(r===null||r===!1)return this.attr(t,r);const i=this.attr(t)||{},{items:a=[]}=i;return a.push(r),i.items=a,this.attr(t,i)}}function fFe(e,t,{ctor:n}){e.prototype[t]=function(r){const i=this.append(n);return t==="mark"&&(i.type=r),i}}function dFe(e,t,{ctor:n}){e.prototype[t]=function(){return this.type=null,this.append(n)}}function d3(e){return t=>{for(const[n,r]of Object.entries(e)){const{type:i}=r;i==="value"?sFe(t,n,r):i==="array"?lFe(t,n,r):i==="object"?cFe(t,n,r):i==="node"?fFe(t,n,r):i==="container"?dFe(t,n,r):i==="mix"&&uFe(t,n)}return t}}function dM(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,{type:"node",ctor:n}]))}const zY={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},hFe=Object.assign(Object.assign({},zY),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),pFe=Object.assign(Object.assign({},zY),{labelTransform:{type:"array"}});var gFe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};let h3=class extends xw{changeData(t){var n;const r=this.getRoot();if(r)return this.attr("data",t),!((n=this.children)===null||n===void 0)&&n.length&&this.children.forEach(i=>{i.attr("data",t)}),r==null?void 0:r.render()}getView(){const t=this.getRoot(),{views:n}=t.getContext();if(n!=null&&n.length)return n.find(r=>r.key===this._key)}getScale(){var t;return(t=this.getView())===null||t===void 0?void 0:t.scale}getScaleByChannel(t){const n=this.getScale();if(n)return n[t]}getCoordinate(){var t;return(t=this.getView())===null||t===void 0?void 0:t.coordinate}getTheme(){var t;return(t=this.getView())===null||t===void 0?void 0:t.theme}getGroup(){const t=this._key;return t?this.getRoot().getContext().canvas.getRoot().getElementById(t):void 0}show(){const t=this.getGroup();t&&!t.isVisible()&&Pv(t)}hide(){const t=this.getGroup();t&&t.isVisible()&&sw(t)}};h3=gFe([d3(pFe)],h3);var mFe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};let w8=class extends xw{changeData(t){const n=this.getRoot();if(n)return this.attr("data",t),n==null?void 0:n.render()}getMark(){var t;const n=(t=this.getRoot())===null||t===void 0?void 0:t.getView();if(!n)return;const{markState:r}=n,i=Array.from(r.keys()).find(a=>a.key===this.attr("key"));return r.get(i)}getScale(){var t;const n=(t=this.getRoot())===null||t===void 0?void 0:t.getView();if(n)return n==null?void 0:n.scale}
157getScaleByChannel(t){var n,r;const i=(n=this.getRoot())===null||n===void 0?void 0:n.getView();if(i)return(r=i==null?void 0:i.scale)===null||r===void 0?void 0:r[t]}getGroup(){const t=this.attr("key");return t?this.getRoot().getContext().canvas.getRoot().getElementById(t):void 0}};w8=mFe([d3(hFe)],w8);var vFe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yFe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const xFe="G2_CHART_KEY";class bFe extends h3{constructor(t){const{container:n,canvas:r,renderer:i,plugins:a,lib:o,createCanvas:s}=t,l=yFe(t,["container","canvas","renderer","plugins","lib","createCanvas"]);super(l,"view"),this._hasBindAutoFit=!1,this._rendering=!1,this._trailing=!1,this._trailingResolve=null,this._trailingReject=null,this._previousDefinedType=null,this._onResize=qR(()=>{this.forceFit()},300),this._renderer=i||new kH,this._plugins=a||[],this._container=XDe(n),this._emitter=new kC,this._context={library:Object.assign(Object.assign({},o),RY),emitter:this._emitter,canvas:r,createCanvas:s},this._create()}render(){if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._bindAutoFit(),this._rendering=!0;const t=new Promise((a,o)=>rRe(this._computedOptions(),this._context,this._createResolve(a),this._createReject(o))),[n,r,i]=oFe();return t.then(r).catch(i).then(()=>this._renderTrailing()),n}options(t){if(arguments.length===0)return KDe(this);const{type:n}=t;return n&&(this._previousDefinedType=n),aFe(this,t,this._previousDefinedType,this._marks,this._compositions),this}getContainer(){return this._container}getContext(){return this._context}on(t,n,r){return this._emitter.on(t,n,r),this}once(t,n){return this._emitter.once(t,n),this}emit(t,...n){return this._emitter.emit(t,...n),this}off(t,n){return this._emitter.off(t,n),this}clear(){const t=this.options();this.emit(xn.BEFORE_CLEAR),this._reset(),FP(t,this._context,!1),this.emit(xn.AFTER_CLEAR)}destroy(){const t=this.options();this.emit(xn.BEFORE_DESTROY),this._unbindAutoFit(),this._reset(),FP(t,this._context,!0),this._container[FY]&&qDe(this._container),this.emit(xn.AFTER_DESTROY)}forceFit(){this.options.autoFit=!0;const{width:t,height:n}=I4(this.options(),this._container);if(t===this._width&&n===this._height)return Promise.resolve(this);this.emit(xn.BEFORE_CHANGE_SIZE);const r=this.render();return r.then(()=>{this.emit(xn.AFTER_CHANGE_SIZE)}),r}changeSize(t,n){if(t===this._width&&n===this._height)return Promise.resolve(this);this.emit(xn.BEFORE_CHANGE_SIZE),this.attr("width",t),this.attr("height",n);const r=this.render();return r.then(()=>{this.emit(xn.AFTER_CHANGE_SIZE)}),r}getDataByXY(t,n={}){const{shared:r=!1,series:i,facet:a=!1,startX:o=0,startY:s=0}=n,{canvas:l,views:c}=this._context,{document:u}=l,{x:f,y:d}=t,{coordinate:h,scale:p,markState:g,data:v,key:y}=c[0],x=u.getElementsByClassName(ds),C=r?M=>M.__data__.x:M=>M,_=jn(x,C),S=u.getElementsByClassName(Hm)[0],O=Uo(S),E=M=>Array.from(M.values()).some(R=>{var N,D;return((N=R.interaction)===null||N===void 0?void 0:N.seriesTooltip)||((D=R.channels)===null||D===void 0?void 0:D.some(F=>F.name==="series"&&F.values!==void 0))}),k=us(i,E(g)),$=M=>an(M,"__data__.data",null),T=M=>M.map($);try{if(k&&E(g)&&!a){const{selectedData:D}=qU({root:O,event:{offsetX:f,offsetY:d},elements:x,coordinate:h,scale:p,startX:o,startY:s}),F=v.get(`${y}-0`);return D.map(({index:V})=>F[V])}const M=XU({root:O,event:{offsetX:f,offsetY:d},elements:x,coordinate:h,scale:p,shared:r}),R=C(M),N=_.get(R);return N?T(N):[]}catch{const R=l.document.elementFromPointSync(f,d);return R?$(R):[]}}_create(){const{library:t}=this._context,n=a=>a.startsWith("mark.")||a==="component.axisX"||a==="component.axisY"||a==="component.legends",r=["mark.mark",...Object.keys(t).filter(n)];this._marks={};for(const a of r){const o=a.split(".").pop();class s extends w8{constructor(){super({},o)}}this._marks[o]=s,this[o]=function(l){const c=this.append(s);return o==="mark"&&(c.type=l),c}}const i=["composition.view",...Object.keys(t).filter(a=>a.startsWith("composition.")&&a!=="composition.mark")];this._compositions=Object.fromEntries(i.map(a=>{const o=a.split(".").pop();let s=class extends h3{constructor(){super({},o)}};return s=vFe([d3(dM(this._marks))],s),[o,s]}));for(const a of Object.values(this._compositions))d3(dM(this._compositions))(a);for(const a of i){const o=a.split(".").pop();this[o]=function(){const s=this._compositions[o];return this.type=null,this.append(s)}}}_reset(){const t=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(([n])=>n.startsWith("margin")||n.startsWith("padding")||n.startsWith("inset")||t.includes(n))),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{const t=this._trailingResolve.bind(this);this._trailingResolve=null,t(this)}).catch(t=>{const n=this._trailingReject.bind(this);this._trailingReject=null,n(t)}))}_createResolve(t){return()=>{this._rendering=!1,t(this)}}_createReject(t){return n=>{this._rendering=!1,t(n)}}_computedOptions(){const t=this.options(),{key:n=xFe}=t,{width:r,height:i,depth:a}=I4(t,this._container);return this._width=r,this._height=i,this._key=n,Object.assign(Object.assign({key:this._key},t),{width:r,height:i,depth:a})}_createCanvas(){const{width:t,height:n}=I4(this.options(),this._container);this._plugins.push(new $H),this._plugins.forEach(r=>this._renderer.registerPlugin(r)),this._context.canvas=new tB({container:this._container,width:t,height:n,renderer:this._renderer})}_addToTrailing(){var t;return(t=this._trailingResolve)===null||t===void 0||t.call(this,this),this._trailing=!0,new Promise((r,i)=>{this._trailingResolve=r,this._trailingReject=i})}_bindAutoFit(){const t=this.options(),{autoFit:n}=t;if(this._hasBindAutoFit){n||this._unbindAutoFit();return}n&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}}Object.assign({},LY());var _8=function(){return _8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},_8.apply(this,arguments)},e2=_8({},dne),CFe=e2.version,wFe=e2.render;e2.unmountComponentAtNode;var bw;try{var _Fe=Number((CFe||"").split(".")[0]);_Fe>=18&&(bw=e2.createRoot)}
157catch{}function hM(e){var t=e2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&typeof t=="object"&&(t.usingClientEntryPoint=e)}var pM="__rc_react_root__";function SFe(e,t){hM(!0);var n=t[pM]||bw(t);hM(!1),n.render(e),t[pM]=n}function OFe(e,t){wFe(e,t)}function EFe(e,t){if(bw){SFe(e,t);return}OFe(e,t)}var Dg=new Map;typeof document<"u"&&Dg.set("tooltip",document.createElement("div"));var kFe=function(e,t){t===void 0&&(t=!1);var n=null;if(t)n=Dg.get("tooltip");else if(n=document.createElement("div"),e!=null&&e.key){var r=Dg.get(e.key);r?n=r:Dg.set(e.key,n)}return EFe(e,n),n},AFe=function(e){if(typeof document>"u")return"loading";var t=e.attachShadow({mode:"open"}),n=document.createElement("div"),r=document.createElement("style");r.innerHTML=`.loading {
158    display: inline-block;
159    position: relative;
160    width: 80px;
161    height: 80px;
162  }
163  .loading div {
164    position: absolute;
165    top: 33px;
166    width: 13px;
167    height: 13px;
168    border-radius: 50%;
169    background: #ccc;
170    animation-timing-function: cubic-bezier(0, 1, 1, 0);
171  }
172  .loading div:nth-child(1) {
173    left: 8px;
174    animation: loading1 0.6s infinite;
175  }
176  .loading div:nth-child(2) {
177    left: 8px;
178    animation: loading2 0.6s infinite;
179  }
180  .loading div:nth-child(3) {
181    left: 32px;
182    animation: loading2 0.6s infinite;
183  }
184  .loading div:nth-child(4) {
185    left: 56px;
186    animation: loading3 0.6s infinite;
187  }
188  @keyframes loading1 {
189    0% {
190      transform: scale(0);
191    }
192    100% {
193      transform: scale(1);
194    }
195  }
196  @keyframes loading3 {
197    0% {
198      transform: scale(1);
199    }
200    100% {
201      transform: scale(0);
202    }
203  }
204  @keyframes loading2 {
205    0% {
206      transform: translate(0, 0);
207    }
208    100% {
209      transform: translate(24px, 0);
210    }
211  }
212  `,n.classList.add("loading"),n.innerHTML="<div></div><div></div><div></div><div></div>",t.appendChild(r),t.appendChild(n)},$Fe=function(e){var t=e.loadingTemplate,n=e.theme,r=n===void 0?"light":n,i=Xe.useRef(null);Xe.useEffect(function(){!t&&i.current&&AFe(i.current)},[]);var a=function(){return t||Xe.createElement("div",{ref:i})};return Xe.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:r==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},a())},TFe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),PFe=function(e){TFe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={hasError:!1},n.renderError=function(r){var i=n.props.errorTemplate;return typeof i=="function"?i(r):i||Xe.createElement("h5",null,"组件出错了,请核查后重试: ",r.message)},n}return t.getDerivedStateFromError=function(n){return{hasError:!0,error:n}},t.getDerivedStateFromProps=function(n,r){return r.children!==n.children?{children:n.children,hasError:!1,error:void 0}:null},t.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):Xe.createElement(P.Fragment,null,this.props.children)},t}(Xe.Component),eh={exports:{}};/**
213 * @license
214 * Lodash <https://lodash.com/>
215 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
216 * Released under MIT license <https://lodash.com/license>
217 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
218 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
219 */var MFe=eh.exports,gM;function NFe(){return gM||(gM=1,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",f=1,d=2,h=4,p=1,g=2,v=1,y=2,x=4,C=8,_=16,S=32,O=64,E=128,k=256,$=512,T=30,M="...",R=800,N=16,D=1,F=2,V=3,z=1/0,B=9007199254740991,G=17976931348623157e292,Y=NaN,K=4294967295,Q=K-1,ne=K>>>1,oe=[["ary",E],["bind",v],["bindKey",y],["curry",C],["curryRight",_],["flip",$],["partial",S],["partialRight",O],["rearg",k]],ae="[object Arguments]",ce="[object Array]",fe="[object AsyncFunction]",le="[object Boolean]",be="[object Date]",Ce="[object DOMException]",$e="[object Error]",Me="[object Function]",Le="[object GeneratorFunction]",je="[object Map]",Ge="[object Number]",nt="[object Null]",Ze="[object Object]",Ue="[object Promise]",Qe="[object Proxy]",Pt="[object RegExp]",nn="[object Set]",At="[object String]",ct="[object Symbol]",sn="[object Undef
219ined]",Dt="[object WeakMap]",Ct="[object WeakSet]",Jt="[object ArrayBuffer]",zt="[object DataView]",cn="[object Float32Array]",Yt="[object Float64Array]",Qn="[object Int8Array]",Fn="[object Int16Array]",Mr="[object Int32Array]",bi="[object Uint8Array]",ga="[object Uint8ClampedArray]",Ma="[object Uint16Array]",Na="[object Uint32Array]",Fs=/\b__p \+= '';/g,Ci=/\b(__p \+=) '' \+/g,Bs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bn=/&(?:amp|lt|gt|quot|#39);/g,tt=/[&<>"']/g,ir=RegExp(Bn.source),zn=RegExp(tt.source),ii=/<%-([\s\S]+?)%>/g,Xr=/<%([\s\S]+?)%>/g,zs=/<%=([\s\S]+?)%>/g,po=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_f=/^\w*$/,Xc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vs=/[\\^$.*+?()[\]{}|]/g,Sf=RegExp(Vs.source),jl=/^\s+/,Of=/\s/,Fd=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bd=/\{\n\/\* \[wrapped with (.+)\] \*/,Dl=/,? & /,Ef=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fl=/[()=,{}\[\]\/\s]/,qc=/\\(\\)?/g,zd=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yo=/\w*$/,Vd=/^[-+]0x[0-9a-f]+$/i,Zc=/^0b[01]+$/i,Bl=/^\[object .+?Constructor\]$/,Ws=/^0o[0-7]+$/i,zl=/^(?:0|[1-9]\d*)$/,kf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,126 bytes, line 219
2197f]/g,Hs=/($^)/,Af=/['\n\r\u2028\u2029\\]/g,Xo="\\ud800-\\udfff",ai="\\u0300-\\u036f",$f="\\ufe20-\\ufe2f",Kc="\\u20d0-\\u20ff",Vl=ai+$f+Kc,Jc="\\u2700-\\u27bf",go="a-z\\xdf-\\xf6\\xf8-\\xff",qo="\\xac\\xb1\\xd7\\xf7",Tf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gs="\\u2000-\\u206f",Us=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Wl="A-Z\\xc0-\\xd6\\xd8-\\xde",Hl="\\ufe0e\\ufe0f",Gl=qo+Tf+Gs+Us,Zo="['’]",Pf="["+Xo+"]",Qc="["+Gl+"]",Ko="["+Vl+"]",I="\\d+",H="["+Jc+"]",Z="["+go+"]",re="[^"+Xo+Gl+I+Jc+go+Wl+"]",ye="\\ud83c[\\udffb-\\udfff]",me="(?:"+Ko+"|"+ye+")",Se="[^"+Xo+"]",We="(?:\\ud83c[\\udde6-\\uddff]){2}",ht="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="["+Wl+"]",Et="\\u200d",Vn="(?:"+Z+"|"+re+")",ma="(?:"+dt+"|"+re+")",Ji="(?:"+Zo+"(?:d|ll|m|re|s|t|ve))?",wi="(?:"+Zo+"(?:D|LL|M|RE|S|T|VE))?",Jo=me+"?",Ia="["+Hl+"]?",eu="(?:"+Et+"(?:"+[Se,We,ht].join("|")+")"+Ia+Jo+")*",Ys="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",mo=Ia+Jo+eu,Nf="(?:"+[H,We,ht].join("|")+")"+mo,Iv="(?:"+[Se+Ko+"?",Ko,We,ht,Pf].join("|")+")",Lv=RegExp(Zo,"g"),Rv=RegExp(Ko,"g"),Wd=RegExp(ye+"(?="+ye+")|"+Iv+mo,"g"),jv=RegExp([dt+"?"+Z+"+"+Ji+"(?="+[Qc,dt,"$"].join("|")+")",ma+"+"+wi+"(?="+[Qc,dt+Vn,"$"].join("|")+")",dt+"?"+Vn+"+"+Ji,dt+"+"+wi,Mf,Ys,I,Nf].join("|"),"g"),vo=RegExp("["+Et+Xo+Vl+Hl+"]"),Hd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,If=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],In=-1,mn={};mn[cn]=mn[Yt]=mn[Qn]=mn[Fn]=mn[Mr]=mn[bi]=mn[ga]=mn[Ma]=mn[Na]=!0,mn[ae]=mn[ce]=mn[Jt]=mn[le]=mn[zt]=mn[be]=mn[$e]=mn[Me]=mn[je]=mn[Ge]=mn[Ze]=mn[Pt]=mn[nn]=mn[At]=mn[Dt]=!1;var vn={};vn[ae]=vn[ce]=vn[Jt]=vn[zt]=vn[le]=vn[be]=vn[cn]=vn[Yt]=vn[Qn]=vn[Fn]=vn[Mr]=vn[je]=vn[Ge]=vn[Ze]=vn[Pt]=vn[nn]=vn[At]=vn[ct]=vn[bi]=vn[ga]=vn[Ma]=vn[Na]=!0,vn[$e]=vn[Me]=vn[Dt]=!1;var tu={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Qo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Lf={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},t2=parseFloat,Gd=parseInt,Rf=typeof Z2=="object"&&Z2&&Z2.Object===Object&&Z2,n2=typeof self=="object"&&self&&self.Object===Object&&self,Nr=Rf||n2||Function("return this")(),jf=t&&!t.nodeType&&t,qs=jf&&!0&&e&&!e.nodeType&&e,r2=qs&&qs.exports===jf,Ul=r2&&Rf.process,ji=function(){try{var ue=qs&&qs.require&&qs.require("util").t
vendor: 9,178 bytes, line 219
219ypes;return ue||Ul&&Ul.binding&&Ul.binding("util")}catch{}}(),nu=ji&&ji.isArrayBuffer,Df=ji&&ji.isDate,i2=ji&&ji.isMap,Yl=ji&&ji.isRegExp,a2=ji&&ji.isSet,Ff=ji&&ji.isTypedArray;function qr(ue,Oe,we){switch(we.length){case 0:return ue.call(Oe);case 1:return ue.call(Oe,we[0]);case 2:return ue.call(Oe,we[0],we[1]);case 3:return ue.call(Oe,we[0],we[1],we[2])}return ue.apply(Oe,we)}function ru(ue,Oe,we,rt){for(var $t=-1,yn=ue==null?0:ue.length;++$t<yn;){var Br=ue[$t];Oe(rt,Br,we(Br),ue)}return rt}function oi(ue,Oe){for(var we=-1,rt=ue==null?0:ue.length;++we<rt&&Oe(ue[we],we,ue)!==!1;);return ue}function o2(ue,Oe){for(var we=ue==null?0:ue.length;we--&&Oe(ue[we],we,ue)!==!1;);return ue}function Ud(ue,Oe){for(var we=-1,rt=ue==null?0:ue.length;++we<rt;)if(!Oe(ue[we],we,ue))return!1;return!0}function yo(ue,Oe){for(var we=-1,rt=ue==null?0:ue.length,$t=0,yn=[];++we<rt;){var Br=ue[we];Oe(Br,we,ue)&&(yn[$t++]=Br)}return yn}function Xl(ue,Oe){var we=ue==null?0:ue.length;return!!we&&Zs(ue,Oe,0)>-1}function si(ue,Oe,we){for(var rt=-1,$t=ue==null?0:ue.length;++rt<$t;)if(we(Oe,ue[rt]))return!0;return!1}function Wn(ue,Oe){for(var we=-1,rt=ue==null?0:ue.length,$t=Array(rt);++we<rt;)$t[we]=Oe(ue[we],we,ue);return $t}function La(ue,Oe){for(var we=-1,rt=Oe.length,$t=ue.length;++we<rt;)ue[$t+we]=Oe[we];return ue}function Yd(ue,Oe,we,rt){var $t=-1,yn=ue==null?0:ue.length;for(rt&&yn&&(we=ue[++$t]);++$t<yn;)we=Oe(we,ue[$t],$t,ue);return we}function s2(ue,Oe,we,rt){var $t=ue==null?0:ue.length;for(rt&&$t&&(we=ue[--$t]);$t--;)we=Oe(we,ue[$t],$t,ue);return we}function ql(ue,Oe){for(var we=-1,rt=ue==null?0:ue.length;++we<rt;)if(Oe(ue[we],we,ue))return!0;return!1}var l2=L("length");function c2(ue){return ue.split("")}function Bf(ue){return ue.match(Ef)||[]}function iu(ue,Oe,we){var rt;return we(ue,function($t,yn,Br){if(Oe($t,yn,Br))return rt=yn,!1}),rt}function au(ue,Oe,we,rt){for(var $t=ue.length,yn=we+(rt?1:-1);rt?yn--:++yn<$t;)if(Oe(ue[yn],yn,ue))return yn;return-1}function Zs(ue,Oe,we){return Oe===Oe?nX(ue,Oe,we):au(ue,zf,we)}function u2(ue,Oe,we,rt){for(var $t=we-1,yn=ue.length;++$t<yn;)if(rt(ue[$t],Oe))return $t;return-1}function zf(ue){return ue!==ue}function Xd(ue,Oe){var we=ue==null?0:ue.length;return we?ve(ue,Oe)/we:Y}function L(ue){return function(Oe){return Oe==null?n:Oe[ue]}}function W(ue){return function(Oe){return ue==null?n:ue[Oe]}}function X(ue,Oe,we,rt,$t){return $t(ue,function(yn,Br,Hn){we=rt?(rt=!1,yn):Oe(we,yn,Br,Hn)}),we}function te(ue,Oe){var we=ue.length;for(ue.sort(Oe);we--;)ue[we]=ue[we].value;return ue}function ve(ue,Oe){for(var we,rt=-1,$t=ue.length;++rt<$t;){var yn=Oe(ue[rt]);yn!==n&&(we=we===n?yn:we+yn)}return we}function ge(ue,Oe){for(var we=-1,rt=Array(ue);++we<ue;)rt[we]=Oe(we);return rt}function Ee(ue,Oe){return Wn(Oe,function(we){return[we,ue[we]]})}function De(ue){return ue&&ue.slice(0,_w(ue)+1).replace(jl,"")}function at(ue){return function(Oe){return ue(Oe)}}function Mt(ue,Oe){return Wn(Oe,function(we){return ue[we]})}function wt(ue,Oe){return ue.has(Oe)}function Ln(ue,Oe){for(var we=-1,rt=ue.length;++we<rt&&Zs(Oe,ue[we],0)>-1;);return we}function _i(ue,Oe){for(var we=ue.length;we--&&Zs(Oe,ue[we],0)>-1;);return we}function va(ue,Oe){for(var we=ue.length,rt=0;we--;)ue[we]===Oe&&++rt;return rt}var ya=W(tu),Vf=W(Qo);function f2(ue){return"\\"+Xs[ue]}function qd(ue,Oe){return ue==null?n:ue[Oe]}function Wf(ue){return vo.test(ue)}function QY(ue){return Hd.test(ue)}function eX(ue){for(var Oe,we=[];!(Oe=ue.next()).done;)we.push(Oe.value);return we}function Dv(ue){var Oe=-1,we=Array(ue.size);return ue.forEach(function(rt,$t){we[++Oe]=[$t,rt]}),we}function ww(ue,Oe){return function(we){return ue(Oe(we))}}function Zl(ue,Oe){for(var we=-1,rt=ue.length,$t=0,yn=[];++we<rt;){var Br=ue[we];(Br===Oe||Br===u)&&(ue[we]=u,yn[$t++]=we)}return yn}function d2(ue){var Oe=-1,we=Array(ue.size);return ue.forEach(function(rt){we[++Oe]=rt}),we}function tX(ue){var Oe=-1,we=Array(ue.size);return ue.forEach(function(rt){we[++Oe]=[rt,rt]}),we}function nX(ue,Oe,we){for(var rt=we-1,$t=ue.length;++rt<$t;)if(ue[rt]===Oe)return rt;return-1}function rX(ue,Oe,we){for(var rt=we+1;rt--;)if(ue[rt]===Oe)return rt;return rt}function Hf(ue){return Wf(ue)?aX(ue):l2(ue)}function xo(ue){return Wf(ue)?oX(ue):c2(ue)}function _w(ue){for(var Oe=ue.length;Oe--&&Of.test(ue.charAt(Oe)););return Oe}var iX=W(Lf);function aX(ue){for(var Oe=Wd.lastIndex=0;Wd.test(ue);)++Oe;return Oe}function oX(ue){return ue.match(Wd)||[]}function sX(ue){return ue.match(jv)||[]}var lX=function ue(Oe){Oe=Oe==null?Nr:Gf.defaults(Nr.Object(),Oe,Gf.pick(Nr,If));var we=Oe.Array,rt=Oe.Date,$t=Oe.Error,yn=Oe.Function,Br=Oe.Math,Hn=Oe.Object,Fv=Oe.RegExp,cX=Oe.String,Ra=Oe.TypeError,h2=we.prototype,uX=yn.prototype,Uf=Hn.prototype,p2=Oe["__core-js_shared__"],g2=uX.toString,En=Uf.hasOwnProperty,fX=0,Sw=function(){var m=/[^.]+$/.exec(p2&&p2.keys&&p2.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),m2=Uf.toString,dX=g2.call(Hn),hX=Nr._,pX=Fv("^"+g2.call(En).replace(Vs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v2=r2?Oe.Buffer:n,Kl=Oe.Symbol,y2=Oe.Uint8Array,Ow=v2?v2.allocUnsafe:n,x2=ww(Hn.getPrototypeOf,Hn),Ew=Hn.create,kw=Uf.propertyIsEnumerable,b2=h2.splice,Aw=Kl?Kl.isConcatSpreadable:n,Zd=Kl?Kl.iterator:n,ou=Kl?Kl.toStringTag:n,C2=function(){try{var m=fu(Hn,"defineProperty");return m({},"",{}),m}catch{}}(),gX=Oe.clearTimeout!==Nr.clearTimeout&&Oe.clearTimeout,mX=rt&&rt.now!==Nr.Date.now&&rt.now,vX=Oe.setTimeout!==Nr.setTimeout&&Oe.setTimeout,w2=Br.ceil,_2=Br.floor,Bv=Hn.getOwnPropertySymbols,yX=v2?v2.isBuffer:n,$w=Oe.isFinite,xX=h2.join,bX=ww(Hn.keys,Hn),zr=Br.max,Si=Br.min,CX=rt.now,wX=Oe.parseInt,Tw=Br.random,_X=h2.reverse,zv=fu(Oe,"DataView"),Kd=fu(Oe,"Map"),Vv=fu(Oe,"Promise"),Yf=fu(Oe,"Set"),Jd=fu(Oe,"WeakMap"),Qd=fu(Hn,"create"),S2=Jd&&new Jd,Xf={},SX=du(zv),OX=du(Kd),EX=du(Vv),kX=du(Yf),AX=du(Jd),O2=Kl?Kl.prototype:n,e1=O2?O2.valueOf:n,Pw=O2?O2.toString:n;function q(m){if(br(m)&&!Nt(m)&&!(m instanceof rn)){if(m instanceof ja)return m;if(En.call(m,"__wrapped__"))return M_(m)}return new ja(m)}var qf=function(){function m(){}return function(b){if(!cr(b))return{};if(Ew)return Ew(b);m.prototype=b;var A=new m;return m.prototype=n,A}}();function E2(){}function ja(m,b){this.__wrapped__=m,this.__actions__=[],this.__chain__=!!b,this.__index__=0,this.__values__=n}q.templateSettings={escape:ii,evaluate:Xr,interpolate:zs,variable:"",imports:{_:q}},q.prototype=E2.prototype,q.prototype.constructor=q,ja.prototype=qf(E2.prototype),ja.prototype.constructor=ja;function rn(m){this.__wrapped__=m,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function $X(){var m=new rn(this.__wrapped__);return m.__actions__=Qi(this.__actions__),m.__dir__=this.__dir__,m.__filtered__=this.__filtered__,m.__iteratees__=Qi(this.__iteratees__),m.__takeCount__=this.__takeCount__,m.__views__=Qi(this.__views__),m}function TX(){if(this.__filtered__){var m=new rn(this);m.__dir__=-1,m.__filtered__=!0}else m=this.clone(),m.__dir__*=-1;return m}function PX(){var m=this.__wrapped__.value(),b=this.__dir__,A=Nt(m),j=b<0,U=A?m.length:0,J=Wq(0,U,this.__views__),ie=J.start,se=J.end,de=se-ie,ke=j?se:ie-1,Ae=this.__iteratees__,Re=Ae.length,Ke=0,lt=Si(de,this.__takeCount__);if(!A||!j&&U==de&&lt==de)return t_(m,this.__actions__);var mt=[];e:for(;de--&&Ke<lt;){ke+=b;for(var Ht=-1,vt=m[ke];++Ht<Re;){var tn=Ae[Ht],ln=tn.iteratee,Ca=tn.type,Bi=ln(vt);if(Ca==F)vt=Bi;else if(!Bi){if(Ca==D)continue e;break e}}mt[Ke++]=vt}return mt}rn.prototype=qf(E2.prototype),rn.prototype.constructor=rn;function su(m){var b=-1,A=m==null?0:m.length;for(this.clear();++b<A;){var j=m[b];this.set(j[0],j[1])}}function MX(){this.__data__=Qd?Qd(null):{},this.size=0}function NX(m){var b=this.has(m)&&delete this.__data__[m];return this.size-=b?1:0,b}function IX(m){var b=this.__data__;if(Qd){var A=b[m];return A===l?n:A}return En.call(b,m)?b[m]:n}function LX(m){var b=this.__data__;return Qd?b[m]!==n:En.call(b,m)}function RX(m,b){var A=this.__data__;return this.size+=this.has(m)?0:1,A[m]=Qd&&b===n?l:b,this}su.prototype.clear=MX,su.prototype.delete=NX,su.prototype.get=IX,su.prototype.has=LX,su.prototype.set=RX;function Ks(m){var b=-1,A=m==null?0:m.length;for(this.clear();++b<A;){var j=m[b];this.set(j[0],j[1])}}function jX(){this.__data__=[],this.size=0}function DX(m){var b=this.__data__,A=k2(b,m);if(A<0)return!1;var j=b.length-1;return A==j?b.pop():b2.call(b,A,1),--this.size,!0}function FX(m){var b=this.__data__,A=k2(b,m);return A<0?n:b[A][1]}function BX(m){return k2(this.__data__,m)>-1}function zX(m,b){var A=this.__data__,j=k2(A,m);return j<0?(++this.size,A.push([m,b])):A[j][1]=b,this}Ks.prototype.clear=jX,Ks.prototype.delete=DX,Ks.prototype.get=FX,Ks.prototype.has=BX,Ks.prototype.set=zX;function Js(m){var b=-1,A=m==null?0:m.length;for(this.clear();++b<A;){var j=m[b];this.set(j[0],j[1])}}function VX(){this.size=0,this.__data__={hash:new su,map:new(Kd||Ks),string:new su}}function WX(m){var b=F2(this,m).delete(m);return this.size-=b?1:0,b}function HX(m){return F2(this,m).get(m)}function GX(m){return F2(this,m).has(m)}function UX(m,b){var A=F2(this,m),j=A.size;
vendor: 10,657 bytes, line 219
219return A.set(m,b),this.size+=A.size==j?0:1,this}Js.prototype.clear=VX,Js.prototype.delete=WX,Js.prototype.get=HX,Js.prototype.has=GX,Js.prototype.set=UX;function lu(m){var b=-1,A=m==null?0:m.length;for(this.__data__=new Js;++b<A;)this.add(m[b])}function YX(m){return this.__data__.set(m,l),this}function XX(m){return this.__data__.has(m)}lu.prototype.add=lu.prototype.push=YX,lu.prototype.has=XX;function bo(m){var b=this.__data__=new Ks(m);this.size=b.size}function qX(){this.__data__=new Ks,this.size=0}function ZX(m){var b=this.__data__,A=b.delete(m);return this.size=b.size,A}function KX(m){return this.__data__.get(m)}function JX(m){return this.__data__.has(m)}function QX(m,b){var A=this.__data__;if(A instanceof Ks){var j=A.__data__;if(!Kd||j.length<i-1)return j.push([m,b]),this.size=++A.size,this;A=this.__data__=new Js(j)}return A.set(m,b),this.size=A.size,this}bo.prototype.clear=qX,bo.prototype.delete=ZX,bo.prototype.get=KX,bo.prototype.has=JX,bo.prototype.set=QX;function Mw(m,b){var A=Nt(m),j=!A&&hu(m),U=!A&&!j&&nc(m),J=!A&&!j&&!U&&Qf(m),ie=A||j||U||J,se=ie?ge(m.length,cX):[],de=se.length;for(var ke in m)(b||En.call(m,ke))&&!(ie&&(ke=="length"||U&&(ke=="offset"||ke=="parent")||J&&(ke=="buffer"||ke=="byteLength"||ke=="byteOffset")||nl(ke,de)))&&se.push(ke);return se}function Nw(m){var b=m.length;return b?m[Qv(0,b-1)]:n}function eq(m,b){return B2(Qi(m),cu(b,0,m.length))}function tq(m){return B2(Qi(m))}function Wv(m,b,A){(A!==n&&!Co(m[b],A)||A===n&&!(b in m))&&Qs(m,b,A)}function t1(m,b,A){var j=m[b];(!(En.call(m,b)&&Co(j,A))||A===n&&!(b in m))&&Qs(m,b,A)}function k2(m,b){for(var A=m.length;A--;)if(Co(m[A][0],b))return A;return-1}function nq(m,b,A,j){return Jl(m,function(U,J,ie){b(j,U,A(U),ie)}),j}function Iw(m,b){return m&&ts(b,Zr(b),m)}function rq(m,b){return m&&ts(b,ta(b),m)}function Qs(m,b,A){b=="__proto__"&&C2?C2(m,b,{configurable:!0,enumerable:!0,value:A,writable:!0}):m[b]=A}function Hv(m,b){for(var A=-1,j=b.length,U=we(j),J=m==null;++A<j;)U[A]=J?n:Sy(m,b[A]);return U}function cu(m,b,A){return m===m&&(A!==n&&(m=m<=A?m:A),b!==n&&(m=m>=b?m:b)),m}function Da(m,b,A,j,U,J){var ie,se=b&f,de=b&d,ke=b&h;if(A&&(ie=U?A(m,j,U,J):A(m)),ie!==n)return ie;if(!cr(m))return m;var Ae=Nt(m);if(Ae){if(ie=Gq(m),!se)return Qi(m,ie)}else{var Re=Oi(m),Ke=Re==Me||Re==Le;if(nc(m))return i_(m,se);if(Re==Ze||Re==ae||Ke&&!U){if(ie=de||Ke?{}:__(m),!se)return de?Iq(m,rq(ie,m)):Nq(m,Iw(ie,m))}else{if(!vn[Re])return U?m:{};ie=Uq(m,Re,se)}}J||(J=new bo);var lt=J.get(m);if(lt)return lt;J.set(m,ie),J_(m)?m.forEach(function(vt){ie.add(Da(vt,b,A,vt,m,J))}):Z_(m)&&m.forEach(function(vt,tn){ie.set(tn,Da(vt,b,A,tn,m,J))});var mt=ke?de?uy:cy:de?ta:Zr,Ht=Ae?n:mt(m);return oi(Ht||m,function(vt,tn){Ht&&(tn=vt,vt=m[tn]),t1(ie,tn,Da(vt,b,A,tn,m,J))}),ie}function iq(m){var b=Zr(m);return function(A){return Lw(A,m,b)}}function Lw(m,b,A){var j=A.length;if(m==null)return!j;for(m=Hn(m);j--;){var U=A[j],J=b[U],ie=m[U];if(ie===n&&!(U in m)||!J(ie))return!1}return!0}function Rw(m,b,A){if(typeof m!="function")throw new Ra(o);return l1(function(){m.apply(n,A)},b)}function n1(m,b,A,j){var U=-1,J=Xl,ie=!0,se=m.length,de=[],ke=b.length;if(!se)return de;A&&(b=Wn(b,at(A))),j?(J=si,ie=!1):b.length>=i&&(J=wt,ie=!1,b=new lu(b));e:for(;++U<se;){var Ae=m[U],Re=A==null?Ae:A(Ae);if(Ae=j||Ae!==0?Ae:0,ie&&Re===Re){for(var Ke=ke;Ke--;)if(b[Ke]===Re)continue e;de.push(Ae)}else J(b,Re,j)||de.push(Ae)}return de}var Jl=c_(es),jw=c_(Uv,!0);function aq(m,b){var A=!0;return Jl(m,function(j,U,J){return A=!!b(j,U,J),A}),A}function A2(m,b,A){for(var j=-1,U=m.length;++j<U;){var J=m[j],ie=b(J);if(ie!=null&&(se===n?ie===ie&&!ba(ie):A(ie,se)))var se=ie,de=J}return de}function oq(m,b,A,j){var U=m.length;for(A=Vt(A),A<0&&(A=-A>U?0:U+A),j=j===n||j>U?U:Vt(j),j<0&&(j+=U),j=A>j?0:eS(j);A<j;)m[A++]=b;return m}function Dw(m,b){var A=[];return Jl(m,function(j,U,J){b(j,U,J)&&A.push(j)}),A}function li(m,b,A,j,U){var J=-1,ie=m.length;for(A||(A=Xq),U||(U=[]);++J<ie;){var se=m[J];b>0&&A(se)?b>1?li(se,b-1,A,j,U):La(U,se):j||(U[U.length]=se)}return U}var Gv=u_(),Fw=u_(!0);function es(m,b){return m&&Gv(m,b,Zr)}function Uv(m,b){return m&&Fw(m,b,Zr)}function $2(m,b){return yo(b,function(A){return rl(m[A])})}function uu(m,b){b=ec(b,m);for(var A=0,j=b.length;m!=null&&A<j;)m=m[ns(b[A++])];return A&&A==j?m:n}function Bw(m,b,A){var j=b(m);return Nt(m)?j:La(j,A(m))}function Di(m){return m==null?m===n?sn:nt:ou&&ou in Hn(m)?Vq(m):tZ(m)}function Yv(m,b){return m>b}function sq(m,b){return m!=null&&En.call(m,b)}function lq(m,b){return m!=null&&b in Hn(m)}function cq(m,b,A){return m>=Si(b,A)&&m<zr(b,A)}function Xv(m,b,A){for(var j=A?si:Xl,U=m[0].length,J=m.length,ie=J,se=we(J),de=1/0,ke=[];ie--;){var Ae=m[ie];ie&&b&&(Ae=Wn(Ae,at(b))),de=Si(Ae.length,de),se[ie]=!A&&(b||U>=120&&Ae.length>=120)?new lu(ie&&Ae):n}Ae=m[0];var Re=-1,Ke=se[0];e:for(;++Re<U&&ke.length<de;){var lt=Ae[Re],mt=b?b(lt):lt;if(lt=A||lt!==0?lt:0,!(Ke?wt(Ke,mt):j(ke,mt,A))){for(ie=J;--ie;){var Ht=se[ie];if(!(Ht?wt(Ht,mt):j(m[ie],mt,A)))continue e}Ke&&Ke.push(mt),ke.push(lt)}}return ke}function uq(m,b,A,j){return es(m,function(U,J,ie){b(j,A(U),J,ie)}),j}function r1(m,b,A){b=ec(b,m),m=k_(m,b);var j=m==null?m:m[ns(Ba(b))];return j==null?n:qr(j,m,A)}function zw(m){return br(m)&&Di(m)==ae}function fq(m){return br(m)&&Di(m)==Jt}function dq(m){return br(m)&&Di(m)==be}function i1(m,b,A,j,U){return m===b?!0:m==null||b==null||!br(m)&&!br(b)?m!==m&&b!==b:hq(m,b,A,j,i1,U)}function hq(m,b,A,j,U,J){var ie=Nt(m),se=Nt(b),de=ie?ce:Oi(m),ke=se?ce:Oi(b);de=de==ae?Ze:de,ke=ke==ae?Ze:ke;var Ae=de==Ze,Re=ke==Ze,Ke=de==ke;if(Ke&&nc(m)){if(!nc(b))return!1;ie=!0,Ae=!1}if(Ke&&!Ae)return J||(J=new bo),ie||Qf(m)?b_(m,b,A,j,U,J):Bq(m,b,de,A,j,U,J);if(!(A&p)){var lt=Ae&&En.call(m,"__wrapped__"),mt=Re&&En.call(b,"__wrapped__");if(lt||mt){var Ht=lt?m.value():m,vt=mt?b.value():b;return J||(J=new bo),U(Ht,vt,A,j,J)}}return Ke?(J||(J=new bo),zq(m,b,A,j,U,J)):!1}function pq(m){return br(m)&&Oi(m)==je}function qv(m,b,A,j){var U=A.length,J=U,ie=!j;if(m==null)return!J;for(m=Hn(m);U--;){var se=A[U];if(ie&&se[2]?se[1]!==m[se[0]]:!(se[0]in m))return!1}for(;++U<J;){se=A[U];var de=se[0],ke=m[de],Ae=se[1];if(ie&&se[2]){if(ke===n&&!(de in m))return!1}else{var Re=new bo;if(j)var Ke=j(ke,Ae,de,m,b,Re);if(!(Ke===n?i1(Ae,ke,p|g,j,Re):Ke))return!1}}return!0}function Vw(m){if(!cr(m)||Zq(m))return!1;var b=rl(m)?pX:Bl;return b.test(du(m))}function gq(m){return br(m)&&Di(m)==Pt}function mq(m){return br(m)&&Oi(m)==nn}function vq(m){return br(m)&&U2(m.length)&&!!mn[Di(m)]}function Ww(m){return typeof m=="function"?m:m==null?na:typeof m=="object"?Nt(m)?Uw(m[0],m[1]):Gw(m):fS(m)}function Zv(m){if(!s1(m))return bX(m);var b=[];for(var A in Hn(m))En.call(m,A)&&A!="constructor"&&b.push(A);return b}function yq(m){if(!cr(m))return eZ(m);var b=s1(m),A=[];for(var j in m)j=="constructor"&&(b||!En.call(m,j))||A.push(j);return A}function Kv(m,b){return m<b}function Hw(m,b){var A=-1,j=ea(m)?we(m.length):[];return Jl(m,function(U,J,ie){j[++A]=b(U,J,ie)}),j}function Gw(m){var b=dy(m);return b.length==1&&b[0][2]?O_(b[0][0],b[0][1]):function(A){return A===m||qv(A,m,b)}}function Uw(m,b){return py(m)&&S_(b)?O_(ns(m),b):function(A){var j=Sy(A,m);return j===n&&j===b?Oy(A,m):i1(b,j,p|g)}}function T2(m,b,A,j,U){m!==b&&Gv(b,function(J,ie){if(U||(U=new bo),cr(J))xq(m,b,ie,A,T2,j,U);else{var se=j?j(my(m,ie),J,ie+"",m,b,U):n;se===n&&(se=J),Wv(m,ie,se)}},ta)}function xq(m,b,A,j,U,J,ie){var se=my(m,A),de=my(b,A),ke=ie.get(de);if(ke){Wv(m,A,ke);return}var Ae=J?J(se,de,A+"",m,b,ie):n,Re=Ae===n;if(Re){var Ke=Nt(de),lt=!Ke&&nc(de),mt=!Ke&&!lt&&Qf(de);Ae=de,Ke||lt||mt?Nt(se)?Ae=se:Sr(se)?Ae=Qi(se):lt?(Re=!1,Ae=i_(de,!0)):mt?(Re=!1,Ae=a_(de,!0)):Ae=[]:c1(de)||hu(de)?(Ae=se,hu(se)?Ae=tS(se):(!cr(se)||rl(se))&&(Ae=__(de))):Re=!1}Re&&(ie.set(de,Ae),U(Ae,de,j,J,ie),ie.delete(de)),Wv(m,A,Ae)}function Yw(m,b){var A=m.length;if(A)return b+=b<0?A:0,nl(b,A)?m[b]:n}function Xw(m,b,A){b.length?b=Wn(b,function(J){return Nt(J)?function(ie){return uu(ie,J.length===1?J[0]:J)}:J}):b=[na];var j=-1;b=Wn(b,at(gt()));var U=Hw(m,function(J,ie,se){var de=Wn(b,function(ke){return ke(J)});return{criteria:de,index:++j,value:J}});return te(U,function(J,ie){return Mq(J,ie,A)})}function bq(m,b){return qw(m,b,function(A,j){return Oy(m,j)})}function qw(m,b,A){for(var j=-1,U=b.length,J={};++j<U;){var ie=b[j],se=uu(m,ie);A(se,ie)&&a1(J,ec(ie,m),se)}return J}function Cq(m){return function(b){return uu(b,m)}}function Jv(m,b,A,j){var U=j?u2:Zs,J=-1,ie=b.length,se=m;for(m===b&&(b=Qi(b)),A&&(se=Wn(m,at(A)));++J<ie;)for(var de=0,ke=b[J],Ae=A?A(ke):ke;(de=U(se,Ae,de,j))>-1;)se!==m&&b2.call(se,de,1),b2.call(m,de,1);return m}function Zw(m,b){for(var A=m?b.length:0,j=A-1;A--;){var U=b[A];if(A==j||U!==J){var J=U;nl(U)?b2.call(m,U,1):ny(m,U)}}return m}function Qv(m,b){return m+_2(Tw()*(b-m+1))}function wq(m,b,A,j){for(var U=-1,J=zr(w2((b-m)/(A||1)),0),ie=we(J);J--;)ie[j?J:++U]=m,m+=A;return ie}function ey(m,b){var A="";if(!m||b<1||b>B)return A;do b%2&&(A+=m),b=_2(b/2),b&&(m+=m);while(b);return A}function Xt(m,b){return vy(E_(m,b,na),m+"")}function _q(m){return Nw(e0(m))}function Sq(m,b){var A=e0(m);return B2(A,cu(b,0,A.length))}function a1(m,b,A,j){if(!cr(m))return m;b=ec(b,m);for(var U=-1,J=b.length,ie=J-1,se=m;se!=null&&++U<J;){var de=ns(b[U]),ke=A;if(de==="__proto__"||de==="constructor"||de==="prototype")return m;if(U!=ie){var Ae=se[de];ke=j?j(Ae,de,se):n,ke===n&&(ke=cr(Ae)?Ae:nl(b[U+1])?[]:{})}t1(se,de,ke),se=se[de]}return m}var Kw=S2?function(m,b){return S2.set(m,b),m}:na,Oq=C2?function(m,b){return C2(m,"toString",{configurable:!0,enumerable:!1,value:ky(b),writable:!0})}:na;function Eq(m){return B2(e0(m))}function Fa(m,b,A){var j=-1,U=m.length;b<0&&(b=-b>U?0:U+b),A=A>U?U:A,A<0&&(A+=U),U=b>A?0:A-b>>>0,b>>>=0;for(var J=we(U);++j<U;)J[j]=m[j+b];return J}function kq(m,b){var A;return Jl(m,function(j,U,J){return A=b(j,U,J),!A}),!!A}function P2(m,b,A){var j=0,U=m==null?j:m.length;if(typeof b=="number"&&b===b&&U<=ne){for(;j<U;){var J=j+U>>>1,ie=m[J];ie!==null&&!ba(ie)&&(A?ie<=b:ie<b)?j=J+1:U=J}return U}return ty(m,b,na,A)}function ty(m,b,A,j){var U=0,J=m==null?0:m.length;if(J===0)return 0;b=A(b);for(var ie=b!==b,se=b===null,de=ba(b),ke=b===n;U<J;){var Ae=_2((U+J)/2),Re=A(m[Ae]),Ke=Re!==n,lt=Re===null,mt=Re===Re,Ht=ba(Re);if(ie)var vt=j||mt;else ke?vt=mt&&(j||Ke):se?vt=mt&&Ke&&(j||!lt):de?vt=mt&&Ke&&!lt&&(j||!Ht):lt||Ht?vt=!1:vt=j?Re<=b:Re<b;vt?U=Ae+1:J=Ae}return Si(J,Q)}function Jw(m,b){for(var A=-1,j=m.length,U=0,J=[];++A<j;){var ie=m[A],se=b?b(ie):ie;if(!A||!Co(se,de)){var de=se;J[U++]=ie===0?0:ie}}return J}function Qw(m){return typeof m=="number"?m:ba(m)?Y:+m}function xa(m){if(typeof m=="string")return m;if(Nt(m))return Wn(m,xa)+"";
vendor: 5,419 bytes, line 219
219if(ba(m))return Pw?Pw.call(m):"";var b=m+"";return b=="0"&&1/m==-z?"-0":b}function Ql(m,b,A){var j=-1,U=Xl,J=m.length,ie=!0,se=[],de=se;if(A)ie=!1,U=si;else if(J>=i){var ke=b?null:Dq(m);if(ke)return d2(ke);ie=!1,U=wt,de=new lu}else de=b?[]:se;e:for(;++j<J;){var Ae=m[j],Re=b?b(Ae):Ae;if(Ae=A||Ae!==0?Ae:0,ie&&Re===Re){for(var Ke=de.length;Ke--;)if(de[Ke]===Re)continue e;b&&de.push(Re),se.push(Ae)}else U(de,Re,A)||(de!==se&&de.push(Re),se.push(Ae))}return se}function ny(m,b){return b=ec(b,m),m=k_(m,b),m==null||delete m[ns(Ba(b))]}function e_(m,b,A,j){return a1(m,b,A(uu(m,b)),j)}function M2(m,b,A,j){for(var U=m.length,J=j?U:-1;(j?J--:++J<U)&&b(m[J],J,m););return A?Fa(m,j?0:J,j?J+1:U):Fa(m,j?J+1:0,j?U:J)}function t_(m,b){var A=m;return A instanceof rn&&(A=A.value()),Yd(b,function(j,U){return U.func.apply(U.thisArg,La([j],U.args))},A)}function ry(m,b,A){var j=m.length;if(j<2)return j?Ql(m[0]):[];for(var U=-1,J=we(j);++U<j;)for(var ie=m[U],se=-1;++se<j;)se!=U&&(J[U]=n1(J[U]||ie,m[se],b,A));return Ql(li(J,1),b,A)}function n_(m,b,A){for(var j=-1,U=m.length,J=b.length,ie={};++j<U;){var se=j<J?b[j]:n;A(ie,m[j],se)}return ie}function iy(m){return Sr(m)?m:[]}function ay(m){return typeof m=="function"?m:na}function ec(m,b){return Nt(m)?m:py(m,b)?[m]:P_(wn(m))}var Aq=Xt;function tc(m,b,A){var j=m.length;return A=A===n?j:A,!b&&A>=j?m:Fa(m,b,A)}var r_=gX||function(m){return Nr.clearTimeout(m)};function i_(m,b){if(b)return m.slice();var A=m.length,j=Ow?Ow(A):new m.constructor(A);return m.copy(j),j}function oy(m){var b=new m.constructor(m.byteLength);return new y2(b).set(new y2(m)),b}function $q(m,b){var A=b?oy(m.buffer):m.buffer;return new m.constructor(A,m.byteOffset,m.byteLength)}function Tq(m){var b=new m.constructor(m.source,Yo.exec(m));return b.lastIndex=m.lastIndex,b}function Pq(m){return e1?Hn(e1.call(m)):{}}function a_(m,b){var A=b?oy(m.buffer):m.buffer;return new m.constructor(A,m.byteOffset,m.length)}function o_(m,b){if(m!==b){var A=m!==n,j=m===null,U=m===m,J=ba(m),ie=b!==n,se=b===null,de=b===b,ke=ba(b);if(!se&&!ke&&!J&&m>b||J&&ie&&de&&!se&&!ke||j&&ie&&de||!A&&de||!U)return 1;if(!j&&!J&&!ke&&m<b||ke&&A&&U&&!j&&!J||se&&A&&U||!ie&&U||!de)return-1}return 0}function Mq(m,b,A){for(var j=-1,U=m.criteria,J=b.criteria,ie=U.length,se=A.length;++j<ie;){var de=o_(U[j],J[j]);if(de){if(j>=se)return de;var ke=A[j];return de*(ke=="desc"?-1:1)}}return m.index-b.index}function s_(m,b,A,j){for(var U=-1,J=m.length,ie=A.length,se=-1,de=b.length,ke=zr(J-ie,0),Ae=we(de+ke),Re=!j;++se<de;)Ae[se]=b[se];for(;++U<ie;)(Re||U<J)&&(Ae[A[U]]=m[U]);for(;ke--;)Ae[se++]=m[U++];return Ae}function l_(m,b,A,j){for(var U=-1,J=m.length,ie=-1,se=A.length,de=-1,ke=b.length,Ae=zr(J-se,0),Re=we(Ae+ke),Ke=!j;++U<Ae;)Re[U]=m[U];for(var lt=U;++de<ke;)Re[lt+de]=b[de];for(;++ie<se;)(Ke||U<J)&&(Re[lt+A[ie]]=m[U++]);return Re}function Qi(m,b){var A=-1,j=m.length;for(b||(b=we(j));++A<j;)b[A]=m[A];return b}function ts(m,b,A,j){var U=!A;A||(A={});for(var J=-1,ie=b.length;++J<ie;){var se=b[J],de=j?j(A[se],m[se],se,A,m):n;de===n&&(de=m[se]),U?Qs(A,se,de):t1(A,se,de)}return A}function Nq(m,b){return ts(m,hy(m),b)}function Iq(m,b){return ts(m,C_(m),b)}function N2(m,b){return function(A,j){var U=Nt(A)?ru:nq,J=b?b():{};return U(A,m,gt(j,2),J)}}function Zf(m){return Xt(function(b,A){var j=-1,U=A.length,J=U>1?A[U-1]:n,ie=U>2?A[2]:n;for(J=m.length>3&&typeof J=="function"?(U--,J):n,ie&&Fi(A[0],A[1],ie)&&(J=U<3?n:J,U=1),b=Hn(b);++j<U;){var se=A[j];se&&m(b,se,j,J)}return b})}function c_(m,b){return function(A,j){if(A==null)return A;if(!ea(A))return m(A,j);for(var U=A.length,J=b?U:-1,ie=Hn(A);(b?J--:++J<U)&&j(ie[J],J,ie)!==!1;);return A}}function u_(m){return function(b,A,j){for(var U=-1,J=Hn(b),ie=j(b),se=ie.length;se--;){var de=ie[m?se:++U];if(A(J[de],de,J)===!1)break}return b}}function Lq(m,b,A){var j=b&v,U=o1(m);function J(){var ie=this&&this!==Nr&&this instanceof J?U:m;return ie.apply(j?A:this,arguments)}return J}function f_(m){return function(b){b=wn(b);var A=Wf(b)?xo(b):n,j=A?A[0]:b.charAt(0),U=A?tc(A,1).join(""):b.slice(1);return j[m]()+U}}function Kf(m){return function(b){return Yd(cS(lS(b).replace(Lv,"")),m,"")}}function o1(m){return function(){var b=arguments;switch(b.length){case 0:return new m;case 1:return new m(b[0]);case 2:return new m(b[0],b[1]);case 3:return new m(b[0],b[1],b[2]);case 4:return new m(b[0],b[1],b[2],b[3]);case 5:return new m(b[0],b[1],b[2],b[3],b[4]);case 6:return new m(b[0],b[1],b[2],b[3],b[4],b[5]);case 7:return new m(b[0],b[1],b[2],b[3],b[4],b[5],b[6])}var A=qf(m.prototype),j=m.apply(A,b);return cr(j)?j:A}}function Rq(m,b,A){var j=o1(m);function U(){for(var J=arguments.length,ie=we(J),se=J,de=Jf(U);se--;)ie[se]=arguments[se];var ke=J<3&&ie[0]!==de&&ie[J-1]!==de?[]:Zl(ie,de);if(J-=ke.length,J<A)return m_(m,b,I2,U.placeholder,n,ie,ke,n,n,A-J);var Ae=this&&this!==Nr&&this instanceof U?j:m;return qr(Ae,this,ie)}return U}function d_(m){return function(b,A,j){var U=Hn(b);if(!ea(b)){var J=gt(A,3);b=Zr(b),A=function(se){return J(U[se],se,U)}}var ie=m(b,A,j);return ie>-1?U[J?b[ie]:ie]:n}}function h_(m){return tl(function(b){var A=b.length,j=A,U=ja.prototype.thru;for(m&&b.reverse();j--;){var J=b[j];if(typeof J!="function")throw new Ra(o);if(U&&!ie&&D2(J)=="wrapper")var ie=new ja([],!0)}for(j=ie?j:A;++j<A;){J=b[j];var se=D2(J),de=se=="wrapper"?fy(J):n;de&&gy(de[0])&&de[1]==(E|C|S|k)&&!de[4].length&&de[9]==1?ie=ie[D2(de[0])].apply(ie,de[3]):ie=J.length==1&&gy(J)?ie[
vendor: 4,101 bytes, line 219
219se]():ie.thru(J)}return function(){var ke=arguments,Ae=ke[0];if(ie&&ke.length==1&&Nt(Ae))return ie.plant(Ae).value();for(var Re=0,Ke=A?b[Re].apply(this,ke):Ae;++Re<A;)Ke=b[Re].call(this,Ke);return Ke}})}function I2(m,b,A,j,U,J,ie,se,de,ke){var Ae=b&E,Re=b&v,Ke=b&y,lt=b&(C|_),mt=b&$,Ht=Ke?n:o1(m);function vt(){for(var tn=arguments.length,ln=we(tn),Ca=tn;Ca--;)ln[Ca]=arguments[Ca];if(lt)var Bi=Jf(vt),wa=va(ln,Bi);if(j&&(ln=s_(ln,j,U,lt)),J&&(ln=l_(ln,J,ie,lt)),tn-=wa,lt&&tn<ke){var Or=Zl(ln,Bi);return m_(m,b,I2,vt.placeholder,A,ln,Or,se,de,ke-tn)}var wo=Re?A:this,al=Ke?wo[m]:m;return tn=ln.length,se?ln=nZ(ln,se):mt&&tn>1&&ln.reverse(),Ae&&de<tn&&(ln.length=de),this&&this!==Nr&&this instanceof vt&&(al=Ht||o1(al)),al.apply(wo,ln)}return vt}function p_(m,b){return function(A,j){return uq(A,m,b(j),{})}}function L2(m,b){return function(A,j){var U;if(A===n&&j===n)return b;if(A!==n&&(U=A),j!==n){if(U===n)return j;typeof A=="string"||typeof j=="string"?(A=xa(A),j=xa(j)):(A=Qw(A),j=Qw(j)),U=m(A,j)}return U}}function sy(m){return tl(function(b){return b=Wn(b,at(gt())),Xt(function(A){var j=this;return m(b,function(U){return qr(U,j,A)})})})}function R2(m,b){b=b===n?" ":xa(b);var A=b.length;if(A<2)return A?ey(b,m):b;var j=ey(b,w2(m/Hf(b)));return Wf(b)?tc(xo(j),0,m).join(""):j.slice(0,m)}function jq(m,b,A,j){var U=b&v,J=o1(m);function ie(){for(var se=-1,de=arguments.length,ke=-1,Ae=j.length,Re=we(Ae+de),Ke=this&&this!==Nr&&this instanceof ie?J:m;++ke<Ae;)Re[ke]=j[ke];for(;de--;)Re[ke++]=arguments[++se];return qr(Ke,U?A:this,Re)}return ie}function g_(m){return function(b,A,j){return j&&typeof j!="number"&&Fi(b,A,j)&&(A=j=n),b=il(b),A===n?(A=b,b=0):A=il(A),j=j===n?b<A?1:-1:il(j),wq(b,A,j,m)}}function j2(m){return function(b,A){return typeof b=="string"&&typeof A=="string"||(b=za(b),A=za(A)),m(b,A)}}function m_(m,b,A,j,U,J,ie,se,de,ke){var Ae=b&C,Re=Ae?ie:n,Ke=Ae?n:ie,lt=Ae?J:n,mt=Ae?n:J;b|=Ae?S:O,b&=~(Ae?O:S),b&x||(b&=-4);var Ht=[m,b,U,lt,Re,mt,Ke,se,de,ke],vt=A.apply(n,Ht);return gy(m)&&A_(vt,Ht),vt.placeholder=j,$_(vt,m,b)}function ly(m){var b=Br[m];return function(A,j){if(A=za(A),j=j==null?0:Si(Vt(j),292),j&&$w(A)){var U=(wn(A)+"e").split("e"),J=b(U[0]+"e"+(+U[1]+j));return U=(wn(J)+"e").split("e"),+(U[0]+"e"+(+U[1]-j))}return b(A)}}var Dq=Yf&&1/d2(new Yf([,-0]))[1]==z?function(m){return new Yf(m)}:Ty;function v_(m){return function(b){var A=Oi(b);return A==je?Dv(b):A==nn?tX(b):Ee(b,m(b))}}function el(m,b,A,j,U,J,ie,se){var de=b&y;if(!de&&typeof m!="function")throw new Ra(o);var ke=j?j.length:0;if(ke||(b&=-97,j=U=n),ie=ie===n?ie:zr(Vt(ie),0),se=se===n?se:Vt(se),ke-=U?U.length:0,b&O){var Ae=j,Re=U;j=U=n}var Ke=de?n:fy(m),lt=[m,b,A,j,U,Ae,Re,J,ie,se];if(Ke&&Qq(lt,Ke),m=lt[0],b=lt[1],A=lt[2],j=lt[3],U=lt[4],se=lt[9]=lt[9]===n?de?0:m.length:zr(lt[9]-ke,0),!se&&b&(C|_)&&(b&=-25),!b||b==v)var mt=Lq(m,b,A);else b==C||b==_?mt=Rq(m,b,se):(b==S||b==(v|S))&&!U.length?mt=jq(m,b,A,j):mt=I2.apply(n,lt);var Ht=Ke?Kw:A_;return $_(Ht(mt,lt),m,b)}function y_(m,b,A,j){return m===n||Co(m,Uf[A])&&!En.call(j,A)?b:m}function x_(m,b,A,j,U,J){return cr(m)&&cr(b)&&(J.set(b,m),T2(m,b,n,x_,J),J.delete(b)),m}function Fq(m){return c1(m)?n:m}function b_(m,b,A,j,U,J){var ie=A&p,se=m.length,de=b.length;if(se!=de&&!(ie&&de>se))return!1;var ke=J.get(m),Ae=J.get(b);if(ke&&Ae)return ke==b&&Ae==m;var Re=-1,Ke=!0,lt=A&g?new lu:n;for(J.set(m,b),J.set(b,m);++Re<se;){var mt=m[Re],Ht=b[Re];if(j)var vt=ie?j(Ht,mt,Re,b,m,J):j(mt,Ht,Re,m,b,J);if(vt!==n){if(vt)continue;Ke=!1;break}if(lt){if(!ql(b,function(tn,ln){if(!wt(lt,ln)&&(mt===tn||U(mt,tn,A,j,J)))return lt.push(ln)})){Ke=!1;break}}else if(!(mt===Ht||U(mt,Ht,A,j,J))){Ke=!1;break}}return J.delete(m),J.delete(b),Ke}function Bq(m,b,A,j,U,J,ie){switch(A){case zt:if(m.byteLength!=b.byteLength||m.byteOffset!=b.byteOffset)return!1;m=m.buffer,b=b.buffer;case Jt:return!(m.byteLength!=b.byteLength||!J(new y2(m),new y2(b)));case le:case be:case Ge:return Co(+m,+b);case $e:return m.name==b.name&&m.message==b.message;case Pt:case At:return m==b+"";case je:var se=Dv;case nn:var de=j&p;if(se||(se=d2),m.size!=b.size&&!de)return!1;var ke=ie.get(m);
vendor: 9,232 bytes, lines 219-221
219if(ke)return ke==b;j|=g,ie.set(m,b);var Ae=b_(se(m),se(b),j,U,J,ie);return ie.delete(m),Ae;case ct:if(e1)return e1.call(m)==e1.call(b)}return!1}function zq(m,b,A,j,U,J){var ie=A&p,se=cy(m),de=se.length,ke=cy(b),Ae=ke.length;if(de!=Ae&&!ie)return!1;for(var Re=de;Re--;){var Ke=se[Re];if(!(ie?Ke in b:En.call(b,Ke)))return!1}var lt=J.get(m),mt=J.get(b);if(lt&&mt)return lt==b&&mt==m;var Ht=!0;J.set(m,b),J.set(b,m);for(var vt=ie;++Re<de;){Ke=se[Re];var tn=m[Ke],ln=b[Ke];if(j)var Ca=ie?j(ln,tn,Ke,b,m,J):j(tn,ln,Ke,m,b,J);if(!(Ca===n?tn===ln||U(tn,ln,A,j,J):Ca)){Ht=!1;break}vt||(vt=Ke=="constructor")}if(Ht&&!vt){var Bi=m.constructor,wa=b.constructor;Bi!=wa&&"constructor"in m&&"constructor"in b&&!(typeof Bi=="function"&&Bi instanceof Bi&&typeof wa=="function"&&wa instanceof wa)&&(Ht=!1)}return J.delete(m),J.delete(b),Ht}function tl(m){return vy(E_(m,n,L_),m+"")}function cy(m){return Bw(m,Zr,hy)}function uy(m){return Bw(m,ta,C_)}var fy=S2?function(m){return S2.get(m)}:Ty;function D2(m){for(var b=m.name+"",A=Xf[b],j=En.call(Xf,b)?A.length:0;j--;){var U=A[j],J=U.func;if(J==null||J==m)return U.name}return b}function Jf(m){var b=En.call(q,"placeholder")?q:m;return b.placeholder}function gt(){var m=q.iteratee||Ay;return m=m===Ay?Ww:m,arguments.length?m(arguments[0],arguments[1]):m}function F2(m,b){var A=m.__data__;return qq(b)?A[typeof b=="string"?"string":"hash"]:A.map}function dy(m){for(var b=Zr(m),A=b.length;A--;){var j=b[A],U=m[j];b[A]=[j,U,S_(U)]}return b}function fu(m,b){var A=qd(m,b);return Vw(A)?A:n}function Vq(m){var b=En.call(m,ou),A=m[ou];try{m[ou]=n;var j=!0}catch{}var U=m2.call(m);return j&&(b?m[ou]=A:delete m[ou]),U}var hy=Bv?function(m){return m==null?[]:(m=Hn(m),yo(Bv(m),function(b){return kw.call(m,b)}))}:Py,C_=Bv?function(m){for(var b=[];m;)La(b,hy(m)),m=x2(m);return b}:Py,Oi=Di;(zv&&Oi(new zv(new ArrayBuffer(1)))!=zt||Kd&&Oi(new Kd)!=je||Vv&&Oi(Vv.resolve())!=Ue||Yf&&Oi(new Yf)!=nn||Jd&&Oi(new Jd)!=Dt)&&(Oi=function(m){var b=Di(m),A=b==Ze?m.constructor:n,j=A?du(A):"";if(j)switch(j){case SX:return zt;case OX:return je;case EX:return Ue;case kX:return nn;case AX:return Dt}return b});function Wq(m,b,A){for(var j=-1,U=A.length;++j<U;){var J=A[j],ie=J.size;switch(J.type){case"drop":m+=ie;break;case"dropRight":b-=ie;break;case"take":b=Si(b,m+ie);break;case"takeRight":m=zr(m,b-ie);break}}return{start:m,end:b}}function Hq(m){var b=m.match(Bd);return b?b[1].split(Dl):[]}function w_(m,b,A){b=ec(b,m);for(var j=-1,U=b.length,J=!1;++j<U;){var ie=ns(b[j]);if(!(J=m!=null&&A(m,ie)))break;m=m[ie]}return J||++j!=U?J:(U=m==null?0:m.length,!!U&&U2(U)&&nl(ie,U)&&(Nt(m)||hu(m)))}function Gq(m){var b=m.length,A=new m.constructor(b);return b&&typeof m[0]=="string"&&En.call(m,"index")&&(A.index=m.index,A.input=m.input),A}function __(m){return typeof m.constructor=="function"&&!s1(m)?qf(x2(m)):{}}function Uq(m,b,A){var j=m.constructor;switch(b){case Jt:return oy(m);case le:case be:return new j(+m);case zt:return $q(m,A);case cn:case Yt:case Qn:case Fn:case Mr:case bi:case ga:case Ma:case Na:return a_(m,A);case je:return new j;case Ge:case At:return new j(m);case Pt:return Tq(m);case nn:return new j;case ct:return Pq(m)}}function Yq(m,b){var A=b.length;if(!A)return m;var j=A-1;return b[j]=(A>1?"& ":"")+b[j],b=b.join(A>2?", ":" "),m.replace(Fd,`{
220/* [wrapped with `+b+`] */
221`)}function Xq(m){return Nt(m)||hu(m)||!!(Aw&&m&&m[Aw])}function nl(m,b){var A=typeof m;return b=b??B,!!b&&(A=="number"||A!="symbol"&&zl.test(m))&&m>-1&&m%1==0&&m<b}function Fi(m,b,A){if(!cr(A))return!1;var j=typeof b;return(j=="number"?ea(A)&&nl(b,A.length):j=="string"&&b in A)?Co(A[b],m):!1}function py(m,b){if(Nt(m))return!1;var A=typeof m;return A=="number"||A=="symbol"||A=="boolean"||m==null||ba(m)?!0:_f.test(m)||!po.test(m)||b!=null&&m in Hn(b)}function qq(m){var b=typeof m;return b=="string"||b=="number"||b=="symbol"||b=="boolean"?m!=="__proto__":m===null}function gy(m){var b=D2(m),A=q[b];if(typeof A!="function"||!(b in rn.prototype))return!1;if(m===A)return!0;var j=fy(A);return!!j&&m===j[0]}function Zq(m){return!!Sw&&Sw in m}var Kq=p2?rl:My;function s1(m){var b=m&&m.constructor,A=typeof b=="function"&&b.prototype||Uf;return m===A}function S_(m){return m===m&&!cr(m)}function O_(m,b){return function(A){return A==null?!1:A[m]===b&&(b!==n||m in Hn(A))}}function Jq(m){var b=H2(m,function(j){return A.size===c&&A.clear(),j}),A=b.cache;return b}function Qq(m,b){var A=m[1],j=b[1],U=A|j,J=U<(v|y|E),ie=j==E&&A==C||j==E&&A==k&&m[7].length<=b[8]||j==(E|k)&&b[7].length<=b[8]&&A==C;if(!(J||ie))return m;j&v&&(m[2]=b[2],U|=A&v?0:x);var se=b[3];if(se){var de=m[3];m[3]=de?s_(de,se,b[4]):se,m[4]=de?Zl(m[3],u):b[4]}return se=b[5],se&&(de=m[5],m[5]=de?l_(de,se,b[6]):se,m[6]=de?Zl(m[5],u):b[6]),se=b[7],se&&(m[7]=se),j&E&&(m[8]=m[8]==null?b[8]:Si(m[8],b[8])),m[9]==null&&(m[9]=b[9]),m[0]=b[0],m[1]=U,m}function eZ(m){var b=[];if(m!=null)for(var A in Hn(m))b.push(A);return b}function tZ(m){return m2.call(m)}function E_(m,b,A){return b=zr(b===n?m.length-1:b,0),function(){for(var j=arguments,U=-1,J=zr(j.length-b,0),ie=we(J);++U<J;)ie[U]=j[b+U];U=-1;for(var se=we(b+1);++U<b;)se[U]=j[U];return se[b]=A(ie),qr(m,this,se)}}function k_(m,b){return b.length<2?m:uu(m,Fa(b,0,-1))}function nZ(m,b){for(var A=m.length,j=Si(b.length,A),U=Qi(m);j--;){var J=b[j];m[j]=nl(J,A)?U[J]:n}return m}function my(m,b){if(!(b==="constructor"&&typeof m[b]=="function")&&b!="__proto__")return m[b]}var A_=T_(Kw),l1=vX||function(m,b){return Nr.setTimeout(m,b)},vy=T_(Oq);function $_(m,b,A){var j=b+"";return vy(m,Yq(j,rZ(Hq(j),A)))}function T_(m){var b=0,A=0;return function(){var j=CX(),U=N-(j-A);if(A=j,U>0){if(++b>=R)return arguments[0]}else b=0;return m.apply(n,arguments)}}function B2(m,b){var A=-1,j=m.length,U=j-1;for(b=b===n?j:b;++A<b;){var J=Qv(A,U),ie=m[J];m[J]=m[A],m[A]=ie}return m.length=b,m}var P_=Jq(function(m){var b=[];return m.charCodeAt(0)===46&&b.push(""),m.replace(Xc,function(A,j,U,J){b.push(U?J.replace(qc,"$1"):j||A)}),b});function ns(m){if(typeof m=="string"||ba(m))return m;var b=m+"";return b=="0"&&1/m==-z?"-0":b}function du(m){if(m!=null){try{return g2.call(m)}catch{}try{return m+""}catch{}}return""}function rZ(m,b){return oi(oe,function(A){var j="_."+A[0];b&A[1]&&!Xl(m,j)&&m.push(j)}),m.sort()}function M_(m){if(m instanceof rn)return m.clone();var b=new ja(m.__wrapped__,m.__chain__);return b.__actions__=Qi(m.__actions__),b.__index__=m.__index__,b.__values__=m.__values__,b}function iZ(m,b,A){(A?Fi(m,b,A):b===n)?b=1:b=zr(Vt(b),0);var j=m==null?0:m.length;if(!j||b<1)return[];for(var U=0,J=0,ie=we(w2(j/b));U<j;)ie[J++]=Fa(m,U,U+=b);return ie}function aZ(m){for(var b=-1,A=m==null?0:m.length,j=0,U=[];++b<A;){var J=m[b];J&&(U[j++]=J)}return U}function oZ(){var m=arguments.length;if(!m)return[];for(var b=we(m-1),A=arguments[0],j=m;j--;)b[j-1]=arguments[j];return La(Nt(A)?Qi(A):[A],li(b,1))}var sZ=Xt(function(m,b){return Sr(m)?n1(m,li(b,1,Sr,!0)):[]}),lZ=Xt(function(m,b){var A=Ba(b);return Sr(A)&&(A=n),Sr(m)?n1(m,li(b,1,Sr,!0),gt(A,2)):[]}),cZ=Xt(function(m,b){var A=Ba(b);return Sr(A)&&(A=n),Sr(m)?n1(m,li(b,1,Sr,!0),n,A):[]});function uZ(m,b,A){var j=m==null?0:m.length;return j?(b=A||b===n?1:Vt(b),Fa(m,b<0?0:b,j)):[]}function fZ(m,b,A){var j=m==null?0:m.length;return j?(b=A||b===n?1:Vt(b),b=j-b,Fa(m,0,b<0?0:b)):[]}function dZ(m,b){return m&&m.length?M2(m,gt(b,3),!0,!0):[]}function hZ(m,b){return m&&m.length?M2(m,gt(b,3),!0):[]}function pZ(m,b,A,j){var U=m==null?0:m.length;return U?(A&&typeof A!="number"&&Fi(m,b,A)&&(A=0,j=U),oq(m,b,A,j)):[]}function N_(m,b,A){var j=m==null?0:m.length;if(!j)return-1;var U=A==null?0:Vt(A);return U<0&&(U=zr(j+U,0)),au(m,gt(b,3),U)}function I_(m,b,A){var j=m==null?0:m.length;if(!j)return-1;var U=j-1;return A!==n&&(U=Vt(A),U=A<0?zr(j+U,0):Si(U,j-1)),au(m,gt(b,3),U,!0)}function L_(m){var b=m==null?0:m.length;return b?li(m,1):[]}function gZ(m){var b=m==null?0:m.length;return b?li(m,z):[]}function mZ(m,b){var A=m==null?0:m.length;return A?(b=b===n?1:Vt(b),li(m,b)):[]}function vZ(m){for(var b=-1,A=m==null?0:m.length,j={};++b<A;){var U=m[b];j[U[0]]=U[1]}return j}function R_(m){return m&&m.length?m[0]:n}function yZ(m,b,A){var j=m==null?0:m.length;if(!j)return-1;var U=A==null?0:Vt(A);return U<0&&(U=zr(j+U,0)),Zs(m,b,U)}function xZ(m){var b=m==null?0:m.length;return b?Fa(m,0,-1):[]}var bZ=Xt(function(m){var b=Wn(m,iy);return b.length&&b[0]===m[0]?Xv(b):[]}),CZ=Xt(function(m){var b=Ba(m),A=Wn(m,iy);return b===Ba(A)?b=n:A.pop(),A.length&&A[0]===m[0]?Xv(A,gt(b,2)):[]}),wZ=Xt(function(m){var b=Ba(m),A=Wn(m,iy);return b=typeof b=="function"?b:n,b&&A.pop(),A.length&&A[0]===m[0]?Xv(A,n,b):[]});function _Z(m,b){return m==null?"":xX.call(m,b)}function Ba(m){var b=m==null?0:m.length;return b?m[b-1]:n}function SZ(m,b,A){var j=m==null?0:m.length;if(!j)return-1;var U=j;return A!==n&&(U=Vt(A),U=U<0?zr(j+U,0):Si(U,j-1)),b===b?rX(m,b,U):au(m,zf,U,!0)}function OZ(m,b){return m&&m.length?Yw(m,Vt(b)):n}var EZ=Xt(j_);function j_(m,b){return m&&m.length&&b&&b.length?Jv(m,b):m}function kZ(m,b,A){return m&&m.length&&b&&b.length?Jv(m,b,gt(A,2)):m}function AZ(m,b,A){return m&&m.length&&b&&b.length?Jv(m,b,n,A):m}var $Z=tl(function(m,b){var A=m==null?0:m.length,j=Hv(m,b);return Zw(m,Wn(b,function(U){return nl(U,A)?+U:U}).sort(o_)),j});function TZ(m,b){var A=[];
vendor: 7,140 bytes, line 221
221if(!(m&&m.length))return A;var j=-1,U=[],J=m.length;for(b=gt(b,3);++j<J;){var ie=m[j];b(ie,j,m)&&(A.push(ie),U.push(j))}return Zw(m,U),A}function yy(m){return m==null?m:_X.call(m)}function PZ(m,b,A){var j=m==null?0:m.length;return j?(A&&typeof A!="number"&&Fi(m,b,A)?(b=0,A=j):(b=b==null?0:Vt(b),A=A===n?j:Vt(A)),Fa(m,b,A)):[]}function MZ(m,b){return P2(m,b)}function NZ(m,b,A){return ty(m,b,gt(A,2))}function IZ(m,b){var A=m==null?0:m.length;if(A){var j=P2(m,b);if(j<A&&Co(m[j],b))return j}return-1}function LZ(m,b){return P2(m,b,!0)}function RZ(m,b,A){return ty(m,b,gt(A,2),!0)}function jZ(m,b){var A=m==null?0:m.length;if(A){var j=P2(m,b,!0)-1;if(Co(m[j],b))return j}return-1}function DZ(m){return m&&m.length?Jw(m):[]}function FZ(m,b){return m&&m.length?Jw(m,gt(b,2)):[]}function BZ(m){var b=m==null?0:m.length;return b?Fa(m,1,b):[]}function zZ(m,b,A){return m&&m.length?(b=A||b===n?1:Vt(b),Fa(m,0,b<0?0:b)):[]}function VZ(m,b,A){var j=m==null?0:m.length;return j?(b=A||b===n?1:Vt(b),b=j-b,Fa(m,b<0?0:b,j)):[]}function WZ(m,b){return m&&m.length?M2(m,gt(b,3),!1,!0):[]}function HZ(m,b){return m&&m.length?M2(m,gt(b,3)):[]}var GZ=Xt(function(m){return Ql(li(m,1,Sr,!0))}),UZ=Xt(function(m){var b=Ba(m);return Sr(b)&&(b=n),Ql(li(m,1,Sr,!0),gt(b,2))}),YZ=Xt(function(m){var b=Ba(m);return b=typeof b=="function"?b:n,Ql(li(m,1,Sr,!0),n,b)});function XZ(m){return m&&m.length?Ql(m):[]}function qZ(m,b){return m&&m.length?Ql(m,gt(b,2)):[]}function ZZ(m,b){return b=typeof b=="function"?b:n,m&&m.length?Ql(m,n,b):[]}function xy(m){if(!(m&&m.length))return[];var b=0;return m=yo(m,function(A){if(Sr(A))return b=zr(A.length,b),!0}),ge(b,function(A){return Wn(m,L(A))})}function D_(m,b){if(!(m&&m.length))return[];var A=xy(m);return b==null?A:Wn(A,function(j){return qr(b,n,j)})}var KZ=Xt(function(m,b){return Sr(m)?n1(m,b):[]}),JZ=Xt(function(m){return ry(yo(m,Sr))}),QZ=Xt(function(m){var b=Ba(m);return Sr(b)&&(b=n),ry(yo(m,Sr),gt(b,2))}),eK=Xt(function(m){var b=Ba(m);return b=typeof b=="function"?b:n,ry(yo(m,Sr),n,b)}),tK=Xt(xy);function nK(m,b){return n_(m||[],b||[],t1)}function rK(m,b){return n_(m||[],b||[],a1)}var iK=Xt(function(m){var b=m.length,A=b>1?m[b-1]:n;return A=typeof A=="function"?(m.pop(),A):n,D_(m,A)});function F_(m){var b=q(m);return b.__chain__=!0,b}function aK(m,b){return b(m),m}function z2(m,b){return b(m)}var oK=tl(function(m){var b=m.length,A=b?m[0]:0,j=this.__wrapped__,U=function(J){return Hv(J,m)};return b>1||this.__actions__.length||!(j instanceof rn)||!nl(A)?this.thru(U):(j=j.slice(A,+A+(b?1:0)),j.__actions__.push({func:z2,args:[U],thisArg:n}),new ja(j,this.__chain__).thru(function(J){return b&&!J.length&&J.push(n),J}))});function sK(){return F_(this)}function lK(){return new ja(this.value(),this.__chain__)}function cK(){this.__values__===n&&(this.__values__=Q_(this.value()));var m=this.__index__>=this.__values__.length,b=m?n:this.__values__[this.__index__++];return{done:m,value:b}}function uK(){return this}function fK(m){for(var b,A=this;A instanceof E2;){var j=M_(A);j.__index__=0,j.__values__=n,b?U.__wrapped__=j:b=j;var U=j;A=A.__wrapped__}return U.__wrapped__=m,b}function dK(){var m=this.__wrapped__;if(m instanceof rn){var b=m;return this.__actions__.length&&(b=new rn(this)),b=b.reverse(),b.__actions__.push({func:z2,args:[yy],thisArg:n}),new ja(b,this.__chain__)}return this.thru(yy)}function hK(){return t_(this.__wrapped__,this.__actions__)}var pK=N2(function(m,b,A){En.call(m,A)?++m[A]:Qs(m,A,1)});function gK(m,b,A){var j=Nt(m)?Ud:aq;return A&&Fi(m,b,A)&&(b=n),j(m,gt(b,3))}function mK(m,b){var A=Nt(m)?yo:Dw;return A(m,gt(b,3))}var vK=d_(N_),yK=d_(I_);function xK(m,b){return li(V2(m,b),1)}function bK(m,b){return li(V2(m,b),z)}function CK(m,b,A){return A=A===n?1:Vt(A),li(V2(m,b),A)}function B_(m,b){var A=Nt(m)?oi:Jl;return A(m,gt(b,3))}function z_(m,b){var A=Nt(m)?o2:jw;return A(m,gt(b,3))}var wK=N2(function(m,b,A){En.call(m,A)?m[A].push(b):Qs(m,A,[b])});function _K(m,b,A,j){m=ea(m)?m:e0(m),A=A&&!j?Vt(A):0;var U=m.length;return A<0&&(A=zr(U+A,0)),Y2(m)?A<=U&&m.indexOf(b,A)>-1:!!U&&Zs(m,b,A)>-1}var SK=Xt(function(m,b,A){var j=-1,U=typeof b=="function",J=ea(m)?we(m.length):[];return Jl(m,function(ie){J[++j]=U?qr(b,ie,A):r1(ie,b,A)}),J}),OK=N2(function(m,b,A){Qs(m,A,b)});function V2(m,b){var A=Nt(m)?Wn:Hw;return A(m,gt(b,3))}function EK(m,b,A,j){return m==null?[]:(Nt(b)||(b=b==null?[]:[b]),A=j?n:A,Nt(A)||(A=A==null?[]:[A]),Xw(m,b,A))}var kK=N2(function(m,b,A){m[A?0:1].push(b)},function(){return[[],[]]});function AK(m,b,A){var j=Nt(m)?Yd:X,U=arguments.length<3;return j(m,gt(b,4),A,U,Jl)}function $K(m,b,A){var j=Nt(m)?s2:X,U=arguments.length<3;return j(m,gt(b,4),A,U,jw)}function TK(m,b){var A=Nt(m)?yo:Dw;return A(m,G2(gt(b,3)))}function PK(m){var b=Nt(m)?Nw:_q;return b(m)}function MK(m,b,A){(A?Fi(m,b,A):b===n)?b=1:b=Vt(b);var j=Nt(m)?eq:Sq;return j(m,b)}function NK(m){var b=Nt(m)?tq:Eq;return b(m)}function IK(m){if(m==null)return 0;if(ea(m))return Y2(m)?Hf(m):m.length;var b=Oi(m);return b==je||b==nn?m.size:Zv(m).length}function LK(m,b,A){var j=Nt(m)?ql:kq;return A&&Fi(m,b,A)&&(b=n),j(m,gt(b,3))}var RK=Xt(function(m,b){if(m==null)return[];var A=b.length;return A>1&&Fi(m,b[0],b[1])?b=[]:A>2&&Fi(b[0],b[1],b[2])&&(b=[b[0]]),Xw(m,li(b,1),[])}),W2=mX||function(){return Nr.Date.now()};function jK(m,b){if(typeof b!="function")throw new Ra(o);return m=Vt(m),function(){if(--m<1)return b.apply(this,arguments)}}function V_(m,b,A){return b=A?n:b,b=m&&b==null?m.length:b,el(m,E,n,n,n,n,b)}function W_(m,b){var A;if(typeof b!="function")throw new Ra(o);return m=Vt(m),function(){return--m>0&&(A=b.apply(this,arguments)),m<=1&&(b=n),A}}var by=Xt(function(m,b,A){var j=v;if(A.length){var U=Zl(A,Jf(by));j|=S}return el(m,j,b,A,U)}),H_=Xt(function(m,b,A){var j=v|y;if(A.length){var U=Zl(A,Jf(H_));j|=S}return el(b,j,m,A,U)});function G_(m,b,A){b=A?n:b;var j=el(m,C,n,n,n,n,n,b);return j.placeholder=G_.placeholder,j}function U_(m,b,A){b=A?n:b;var j=el(m,_,n,n,n,n,n,b);return j.placeholder=U_.placeholder,j}function Y_(m,b,A){var j,U,J,ie,se,de,ke=0,Ae=!1,Re=!1,Ke=!0;if(typeof m!="function")throw new Ra(o);b=za(b)||0,cr(A)&&(Ae=!!A.leading,Re="maxWait"in A,J=Re?zr(za(A.maxWait)||0,b):J,Ke="trailing"in A?!!A.trailing:Ke);function lt(Or){var wo=j,al=U;return j=U=n,ke=Or,ie=m.apply(al,wo),ie}function mt(Or){return ke=Or,se=l1(tn,b),Ae?lt(Or):ie}function Ht(Or){var wo=Or-de,al=Or-ke,dS=b-wo;return Re?Si(dS,J-al):dS}function vt(Or){var wo=Or-de,al=Or-ke;return de===n||wo>=b||wo<0||Re&&al>=J}function tn(){var Or=W2();if(vt(Or))return ln(Or);se=l1(tn,Ht(Or))}function ln(Or){return se=n,Ke&&j?lt(Or):(j=U=n,ie)}function Ca(){se!==n&&r_(se),ke=0,j=de=U=se=n}function Bi(){return se===n?ie:ln(W2())}function wa(){var Or=W2(),wo=vt(Or);if(j=arguments,U=this,de=Or,wo){if(se===n)return mt(de);if(Re)return r_(se),se=l1(tn,b),lt(de)}return se===n&&(se=l1(tn,b)),ie}return wa.cancel=Ca,wa.flush=Bi,wa}var DK=Xt(function(m,b){return Rw(m,1,b)}),FK=Xt(function(m,b,A){return Rw(m,za(b)||0,A)});function BK(m){return el(m,$)}function H2(m,b){if(typeof m!="function"||b!=null&&typeof b!="function")throw new Ra(o);var A=function(){var j=arguments,U=b?b.apply(this,j):j[0],J=A.cac
vendor: 7,776 bytes, line 221
221he;if(J.has(U))return J.get(U);var ie=m.apply(this,j);return A.cache=J.set(U,ie)||J,ie};return A.cache=new(H2.Cache||Js),A}H2.Cache=Js;function G2(m){if(typeof m!="function")throw new Ra(o);return function(){var b=arguments;switch(b.length){case 0:return!m.call(this);case 1:return!m.call(this,b[0]);case 2:return!m.call(this,b[0],b[1]);case 3:return!m.call(this,b[0],b[1],b[2])}return!m.apply(this,b)}}function zK(m){return W_(2,m)}var VK=Aq(function(m,b){b=b.length==1&&Nt(b[0])?Wn(b[0],at(gt())):Wn(li(b,1),at(gt()));var A=b.length;return Xt(function(j){for(var U=-1,J=Si(j.length,A);++U<J;)j[U]=b[U].call(this,j[U]);return qr(m,this,j)})}),Cy=Xt(function(m,b){var A=Zl(b,Jf(Cy));return el(m,S,n,b,A)}),X_=Xt(function(m,b){var A=Zl(b,Jf(X_));return el(m,O,n,b,A)}),WK=tl(function(m,b){return el(m,k,n,n,n,b)});function HK(m,b){if(typeof m!="function")throw new Ra(o);return b=b===n?b:Vt(b),Xt(m,b)}function GK(m,b){if(typeof m!="function")throw new Ra(o);return b=b==null?0:zr(Vt(b),0),Xt(function(A){var j=A[b],U=tc(A,0,b);return j&&La(U,j),qr(m,this,U)})}function UK(m,b,A){var j=!0,U=!0;if(typeof m!="function")throw new Ra(o);return cr(A)&&(j="leading"in A?!!A.leading:j,U="trailing"in A?!!A.trailing:U),Y_(m,b,{leading:j,maxWait:b,trailing:U})}function YK(m){return V_(m,1)}function XK(m,b){return Cy(ay(b),m)}function qK(){if(!arguments.length)return[];var m=arguments[0];return Nt(m)?m:[m]}function ZK(m){return Da(m,h)}function KK(m,b){return b=typeof b=="function"?b:n,Da(m,h,b)}function JK(m){return Da(m,f|h)}function QK(m,b){return b=typeof b=="function"?b:n,Da(m,f|h,b)}function eJ(m,b){return b==null||Lw(m,b,Zr(b))}function Co(m,b){return m===b||m!==m&&b!==b}var tJ=j2(Yv),nJ=j2(function(m,b){return m>=b}),hu=zw(function(){return arguments}())?zw:function(m){return br(m)&&En.call(m,"callee")&&!kw.call(m,"callee")},Nt=we.isArray,rJ=nu?at(nu):fq;function ea(m){return m!=null&&U2(m.length)&&!rl(m)}function Sr(m){return br(m)&&ea(m)}function iJ(m){return m===!0||m===!1||br(m)&&Di(m)==le}var nc=yX||My,aJ=Df?at(Df):dq;function oJ(m){return br(m)&&m.nodeType===1&&!c1(m)}function sJ(m){if(m==null)return!0;if(ea(m)&&(Nt(m)||typeof m=="string"||typeof m.splice=="function"||nc(m)||Qf(m)||hu(m)))return!m.length;var b=Oi(m);if(b==je||b==nn)return!m.size;if(s1(m))return!Zv(m).length;for(var A in m)if(En.call(m,A))return!1;return!0}function lJ(m,b){return i1(m,b)}function cJ(m,b,A){A=typeof A=="function"?A:n;var j=A?A(m,b):n;return j===n?i1(m,b,n,A):!!j}function wy(m){if(!br(m))return!1;var b=Di(m);return b==$e||b==Ce||typeof m.message=="string"&&typeof m.name=="string"&&!c1(m)}function uJ(m){return typeof m=="number"&&$w(m)}function rl(m){if(!cr(m))return!1;var b=Di(m);return b==Me||b==Le||b==fe||b==Qe}function q_(m){return typeof m=="number"&&m==Vt(m)}function U2(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=B}function cr(m){var b=typeof m;return m!=null&&(b=="object"||b=="function")}function br(m){return m!=null&&typeof m=="object"}var Z_=i2?at(i2):pq;function fJ(m,b){return m===b||qv(m,b,dy(b))}function dJ(m,b,A){return A=typeof A=="function"?A:n,qv(m,b,dy(b),A)}function hJ(m){return K_(m)&&m!=+m}function pJ(m){if(Kq(m))throw new $t(a);return Vw(m)}function gJ(m){return m===null}function mJ(m){return m==null}function K_(m){return typeof m=="number"||br(m)&&Di(m)==Ge}function c1(m){if(!br(m)||Di(m)!=Ze)return!1;var b=x2(m);if(b===null)return!0;var A=En.call(b,"constructor")&&b.constructor;return typeof A=="function"&&A instanceof A&&g2.call(A)==dX}var _y=Yl?at(Yl):gq;function vJ(m){return q_(m)&&m>=-B&&m<=B}var J_=a2?at(a2):mq;function Y2(m){return typeof m=="string"||!Nt(m)&&br(m)&&Di(m)==At}function ba(m){return typeof m=="symbol"||br(m)&&Di(m)==ct}var Qf=Ff?at(Ff):vq;function yJ(m){return m===n}function xJ(m){return br(m)&&Oi(m)==Dt}function bJ(m){return br(m)&&Di(m)==Ct}var CJ=j2(Kv),wJ=j2(function(m,b){return m<=b});function Q_(m){if(!m)return[];if(ea(m))return Y2(m)?xo(m):Qi(m);if(Zd&&m[Zd])return eX(m[Zd]());var b=Oi(m),A=b==je?Dv:b==nn?d2:e0;return A(m)}function il(m){if(!m)return m===0?m:0;if(m=za(m),m===z||m===-z){var b=m<0?-1:1;return b*G}return m===m?m:0}function Vt(m){var b=il(m),A=b%1;return b===b?A?b-A:b:0}function eS(m){return m?cu(Vt(m),0,K):0}function za(m){if(typeof m=="number")return m;if(ba(m))return Y;if(cr(m)){var b=typeof m.valueOf=="function"?m.valueOf():m;m=cr(b)?b+"":b}if(typeof m!="string")return m===0?m:+m;m=De(m);var A=Zc.test(m);return A||Ws.test(m)?Gd(m.slice(2),A?2:8):Vd.test(m)?Y:+m}function tS(m){return ts(m,ta(m))}function _J(m){return m?cu(Vt(m),-B,B):m===0?m:0}function wn(m){return m==null?"":xa(m)}var SJ=Zf(function(m,b){if(s1(b)||ea(b)){ts(b,Zr(b),m);return}for(var A in b)En.call(b,A)&&t1(m,A,b[A])}),nS=Zf(function(m,b){ts(b,ta(b),m)}),X2=Zf(function(m,b,A,j){ts(b,ta(b),m,j)}),OJ=Zf(function(m,b,A,j){ts(b,Zr(b),m,j)}),EJ=tl(Hv);function kJ(m,b){var A=qf(m);return b==null?A:Iw(A,b)}var AJ=Xt(function(m,b){m=Hn(m);var A=-1,j=b.length,U=j>2?b[2]:n;for(U&&Fi(b[0],b[1],U)&&(j=1);++A<j;)for(var J=b[A],ie=ta(J),se=-1,de=ie.length;++se<de;){var ke=ie[se],Ae=m[ke];(Ae===n||Co(Ae,Uf[ke])&&!En.call(m,ke))&&(m[ke]=J[ke])}return m}),$J=Xt(function(m){return m.push(n,x_),qr(rS,n,m)});function TJ(m,b){return iu(m,gt(b,3),es)}function PJ(m,b){return iu(m,gt(b,3),Uv)}function MJ(m,b){return m==null?m:Gv(m,gt(b,3),ta)}function NJ(m,b){return m==null?m:Fw(m,gt(b,3),ta)}function IJ(m,b){return m&&es(m,gt(b,3))}function LJ(m,b){return m&&Uv(m,gt(b,3))}function RJ(m){return m==null?[]:$2(m,Zr(m))}function jJ(m){return m==null?[]:$2(m,ta(m))}function Sy(m,b,A){var j=m==null?n:uu(m,b);return j===n?A:j}function DJ(m,b){return m!=null&&w_(m,b,sq)}function Oy(m,b){return m!=null&&w_(m,b,lq)}var FJ=p_(function(m,b,A){b!=null&&typeof b.toString!="function"&&(b=m2.call(b)),m[b]=A},ky(na)),BJ=p_(function(m,b,A){b!=null&&typeof b.toString!="function"&&(b=m2.call(b)),En.call(m,b)?m[b].push(A):m[b]=[A]},gt),zJ=Xt(r1);function Zr(m){return ea(m)?Mw(m):Zv(m)}function ta(m){return ea(m)?Mw(m,!0):yq(m)}function VJ(m,b){var A={};return b=gt(b,3),es(m,function(j,U,J){Qs(A,b(j,U,J),j)}),A}function WJ(m,b){var A={};return b=gt(b,3),es(m,function(j,U,J){Qs(A,U,b(j,U,J))}),A}var HJ=Zf(function(m,b,A){T2(m,b,A)}),rS=Zf(function(m,b,A,j){T2(m,b,A,j)}),GJ=tl(function(m,b){var A={};if(m==null)return A;var j=!1;b=Wn(b,function(J){return J=ec(J,m),j||(j=J.length>1),J}),ts(m,uy(m),A),j&&(A=Da(A,f|d|h,Fq));for(var U=b.length;U--;)ny(A,b[U]);return A});function UJ(m,b){return iS(m,G2(gt(b)))}var YJ=tl(function(m,b){return m==null?{}:bq(m,b)});function iS(m,b){if(m==null)return{};var A=Wn(uy(m),function(j){return[j]});return b=gt(b),qw(m,A,function(j,U){return b(j,U[0])})}function XJ(m,b,A){b=ec(b,m);var j=-1,U=b.length;for(U||(U=1,m=n);++j<U;){var J=m==null?n:m[ns(b[j])];J===n&&(j=U,J=A),m=rl(J)?J.call(m):J}return m}function qJ(m,b,A){return m==null?m:a1(m,b,A)}function ZJ(m,b,A,j){return j=typeof j=="function"?j:n,m==null?m:a1(m,b,A,j)}var aS=v_(Zr),oS=v_(ta);function KJ(m,b,A){var j=Nt(m),U=j||nc(m)||Qf(m);if(b=gt(b,4),A==null){var J=m&&m.constructor;U?A=j?new J:[]:cr(m)?A=rl(J)?qf(x2(m)):{}:A={}}return(U?oi:es)(m,function(ie,se,de){return b(A,ie,se,de)}),A}function JJ(m,b){return m==null?!0:ny(m,b)}function QJ(m,b,A){return m==null?m:e_(m,b,ay(A))}function eQ(m,b,A,j){return j=typeof j=="function"?j:n,m==null?m:e_(m,b,ay(A),j)}function e0(m){return m==null?[]:Mt(m,Zr(m))}function tQ(m){return m==null?[]:Mt(m,ta(m))}function nQ(m,b,A){return A===n&&(A=b,b=n),A!==n&&(A=za(A),A=A===A?A:0),b!==n&&(b=za(b),b=b===b?b:0),cu(za(m),b,A)}function rQ(m,b,A){return b=il(b),A===n?(A=b,b=0):A=il(A),m=za(m),cq(m,b,A)}function iQ(m,b,A){if(A&&typeof A!="boolean"&&Fi(m,b,A)&&(b=A=n),A===n&&(typeof b=="boolean"?(A=b,b=n):typeof m=="boolean"&&(A=m,m=n)),m===n&&b===n?(m=0,b=1):(m
vendor: 14,109 bytes, lines 221-238
221=il(m),b===n?(b=m,m=0):b=il(b)),m>b){var j=m;m=b,b=j}if(A||m%1||b%1){var U=Tw();return Si(m+U*(b-m+t2("1e-"+((U+"").length-1))),b)}return Qv(m,b)}var aQ=Kf(function(m,b,A){return b=b.toLowerCase(),m+(A?sS(b):b)});function sS(m){return Ey(wn(m).toLowerCase())}function lS(m){return m=wn(m),m&&m.replace(kf,ya).replace(Rv,"")}function oQ(m,b,A){m=wn(m),b=xa(b);var j=m.length;A=A===n?j:cu(Vt(A),0,j);var U=A;return A-=b.length,A>=0&&m.slice(A,U)==b}function sQ(m){return m=wn(m),m&&zn.test(m)?m.replace(tt,Vf):m}function lQ(m){return m=wn(m),m&&Sf.test(m)?m.replace(Vs,"\\$&"):m}var cQ=Kf(function(m,b,A){return m+(A?"-":"")+b.toLowerCase()}),uQ=Kf(function(m,b,A){return m+(A?" ":"")+b.toLowerCase()}),fQ=f_("toLowerCase");function dQ(m,b,A){m=wn(m),b=Vt(b);var j=b?Hf(m):0;if(!b||j>=b)return m;var U=(b-j)/2;return R2(_2(U),A)+m+R2(w2(U),A)}function hQ(m,b,A){m=wn(m),b=Vt(b);var j=b?Hf(m):0;return b&&j<b?m+R2(b-j,A):m}function pQ(m,b,A){m=wn(m),b=Vt(b);var j=b?Hf(m):0;return b&&j<b?R2(b-j,A)+m:m}function gQ(m,b,A){return A||b==null?b=0:b&&(b=+b),wX(wn(m).replace(jl,""),b||0)}function mQ(m,b,A){return(A?Fi(m,b,A):b===n)?b=1:b=Vt(b),ey(wn(m),b)}function vQ(){var m=arguments,b=wn(m[0]);return m.length<3?b:b.replace(m[1],m[2])}var yQ=Kf(function(m,b,A){return m+(A?"_":"")+b.toLowerCase()});function xQ(m,b,A){return A&&typeof A!="number"&&Fi(m,b,A)&&(b=A=n),A=A===n?K:A>>>0,A?(m=wn(m),m&&(typeof b=="string"||b!=null&&!_y(b))&&(b=xa(b),!b&&Wf(m))?tc(xo(m),0,A):m.split(b,A)):[]}var bQ=Kf(function(m,b,A){return m+(A?" ":"")+Ey(b)});function CQ(m,b,A){return m=wn(m),A=A==null?0:cu(Vt(A),0,m.length),b=xa(b),m.slice(A,A+b.length)==b}function wQ(m,b,A){var j=q.templateSettings;A&&Fi(m,b,A)&&(b=n),m=wn(m),b=X2({},b,j,y_);var U=X2({},b.imports,j.imports,y_),J=Zr(U),ie=Mt(U,J),se,de,ke=0,Ae=b.interpolate||Hs,Re="__p += '",Ke=Fv((b.escape||Hs).source+"|"+Ae.source+"|"+(Ae===zs?zd:Hs).source+"|"+(b.evaluate||Hs).source+"|$","g"),lt="//# sourceURL="+(En.call(b,"sourceURL")?(b.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++In+"]")+`
222`;m.replace(Ke,function(vt,tn,ln,Ca,Bi,wa){return ln||(ln=Ca),Re+=m.slice(ke,wa).replace(Af,f2),tn&&(se=!0,Re+=`' +
223__e(`+tn+`) +
224'`),Bi&&(de=!0,Re+=`';
225`+Bi+`;
226__p += '`),ln&&(Re+=`' +
227((__t = (`+ln+`)) == null ? '' : __t) +
228'`),ke=wa+vt.length,vt}),Re+=`';
229`;var mt=En.call(b,"variable")&&b.variable;if(!mt)Re=`with (obj) {
230`+Re+`
231}
232`;else if(Fl.test(mt))throw new $t(s);Re=(de?Re.replace(Fs,""):Re).replace(Ci,"$1").replace(Bs,"$1;"),Re="function("+(mt||"obj")+`) {
233`+(mt?"":`obj || (obj = {});
234`)+"var __t, __p = ''"+(se?", __e = _.escape":"")+(de?`, __j = Array.prototype.join;
235function print() { __p += __j.call(arguments, '') }
236`:`;
237`)+Re+`return __p
238}`;var Ht=uS(function(){return yn(J,lt+"return "+Re).apply(n,ie)});if(Ht.source=Re,wy(Ht))throw Ht;return Ht}function _Q(m){return wn(m).toLowerCase()}function SQ(m){return wn(m).toUpperCase()}function OQ(m,b,A){if(m=wn(m),m&&(A||b===n))return De(m);if(!m||!(b=xa(b)))return m;var j=xo(m),U=xo(b),J=Ln(j,U),ie=_i(j,U)+1;return tc(j,J,ie).join("")}function EQ(m,b,A){if(m=wn(m),m&&(A||b===n))return m.slice(0,_w(m)+1);if(!m||!(b=xa(b)))return m;var j=xo(m),U=_i(j,xo(b))+1;return tc(j,0,U).join("")}function kQ(m,b,A){if(m=wn(m),m&&(A||b===n))return m.replace(jl,"");if(!m||!(b=xa(b)))return m;var j=xo(m),U=Ln(j,xo(b));return tc(j,U).join("")}function AQ(m,b){var A=T,j=M;if(cr(b)){var U="separator"in b?b.separator:U;A="length"in b?Vt(b.length):A,j="omission"in b?xa(b.omission):j}m=wn(m);var J=m.length;if(Wf(m)){var ie=xo(m);J=ie.length}if(A>=J)return m;var se=A-Hf(j);if(se<1)return j;var de=ie?tc(ie,0,se).join(""):m.slice(0,se);if(U===n)return de+j;if(ie&&(se+=de.length-se),_y(U)){if(m.slice(se).search(U)){var ke,Ae=de;for(U.global||(U=Fv(U.source,wn(Yo.exec(U))+"g")),U.lastIndex=0;ke=U.exec(Ae);)var Re=ke.index;de=de.slice(0,Re===n?se:Re)}}else if(m.indexOf(xa(U),se)!=se){var Ke=de.lastIndexOf(U);Ke>-1&&(de=de.slice(0,Ke))}return de+j}function $Q(m){return m=wn(m),m&&ir.test(m)?m.replace(Bn,iX):m}var TQ=Kf(function(m,b,A){return m+(A?" ":"")+b.toUpperCase()}),Ey=f_("toUpperCase");function cS(m,b,A){return m=wn(m),b=A?n:b,b===n?QY(m)?sX(m):Bf(m):m.match(b)||[]}var uS=Xt(function(m,b){try{return qr(m,n,b)}catch(A){return wy(A)?A:new $t(A)}}),PQ=tl(function(m,b){return oi(b,function(A){A=ns(A),Qs(m,A,by(m[A],m))}),m});function MQ(m){var b=m==null?0:m.length,A=gt();return m=b?Wn(m,function(j){if(typeof j[1]!="function")throw new Ra(o);return[A(j[0]),j[1]]}):[],Xt(function(j){for(var U=-1;++U<b;){var J=m[U];if(qr(J[0],this,j))return qr(J[1],this,j)}})}function NQ(m){return iq(Da(m,f))}function ky(m){return function(){return m}}function IQ(m,b){return m==null||m!==m?b:m}var LQ=h_(),RQ=h_(!0);function na(m){return m}function Ay(m){return Ww(typeof m=="function"?m:Da(m,f))}function jQ(m){return Gw(Da(m,f))}function DQ(m,b){return Uw(m,Da(b,f))}var FQ=Xt(function(m,b){return function(A){return r1(A,m,b)}}),BQ=Xt(function(m,b){return function(A){return r1(m,A,b)}});function $y(m,b,A){var j=Zr(b),U=$2(b,j);A==null&&!(cr(b)&&(U.length||!j.length))&&(A=b,b=m,m=this,U=$2(b,Zr(b)));var J=!(cr(A)&&"chain"in A)||!!A.chain,ie=rl(m);return oi(U,function(se){var de=b[se];m[se]=de,ie&&(m.prototype[se]=function(){var ke=this.__chain__;if(J||ke){var Ae=m(this.__wrapped__),Re=Ae.__actions__=Qi(this.__actions__);return Re.push({func:de,args:arguments,thisArg:m}),Ae.__chain__=ke,Ae}return de.apply(m,La([this.value()],arguments))})}),m}function zQ(){return Nr._===this&&(Nr._=hX),this}function Ty(){}function VQ(m){return m=Vt(m),Xt(function(b){return Yw(b,m)})}var WQ=sy(Wn),HQ=sy(Ud),GQ=sy(ql);function fS(m){return py(m)?L(ns(m)):Cq(m)}function UQ(m){return function(b){return m==null?n:uu(m,b)}}var YQ=g_(),XQ=g_(!0);function Py(){return[]}function My(){return!1}function qQ(){return{}}function ZQ(){return""}function KQ(){return!0}function JQ(m,b){if(m=Vt(m),m<1||m>B)return[];var A=K,j=Si(m,K);b=gt(b),m-=K;for(var U=ge(j,b);++A<m;)b(A);return U}function QQ(m){return Nt(m)?Wn(m,ns):ba(m)?[m]:Qi(P_(wn(m)))}function eee(m){var b=++fX;return wn(m)+b}var tee=L2(function(m,b){return m+b},0),nee=ly("ceil"),ree=L2(function(m,b){return m/b},1),iee=ly("floor");function aee(m){return m&&m.length?A2(m,na,Yv):n}function oee(m,b){return m&&m.length?A2(m,gt(b,2),Yv):n}function see(m){return Xd(m,na)}function lee(m,b){return Xd(m,gt(b,2))}function cee(m){return m&&m.length?A2(m,na,Kv):n}function uee(m,b){return m&&m.length?A2(m,gt(b,2),Kv):n}var fee=L2(function(m,b){return m*b},1),dee=ly("round"),hee=L2(function(m,b){return m-b},0);function pee(m){return m&&m.length?ve(m,na):0}function gee(m,b){return m&&m.length?ve(m,gt(b,2)):0}return q.after=jK,q.ary=V_,q.assign=SJ,q.assignIn=nS,q.assignInWith=X2,q.assignWith=OJ,q.at=EJ,q.before=W_,q.bind=by,q.bindAll=PQ,q.bindKey=H_,q.castArray=qK,q.chain=F_,q.chunk=iZ,q.compact=aZ,q.concat=oZ,q.cond=MQ,q.conforms=NQ,q.constant=ky,q.countBy=pK,q.create=kJ,q.curry=G_,q.curryRight=U_,q.debounce=Y_,q.defaults=AJ,q.defaultsDeep=$J,q.defer=DK,q.delay=FK,q.difference=sZ,q.differenceBy=lZ,q.differenceWith=cZ,q.drop=uZ,q.dropRight=fZ,q.dropRightWhile=dZ,q.dropWhile=hZ,q.fill=pZ,q.filter=mK,q.flatMap=xK,q.flatMapDeep=bK,q.flatMapDepth=CK,q.flatten=L_,q.flattenDeep=gZ,q.flattenDepth=mZ,q.flip=BK,q.flow=LQ,q.flowRight=RQ,q.fromPairs=vZ,q.functions=RJ,q.functionsIn=jJ,q.groupBy=wK,q.initial=xZ,q.intersection=bZ,q.intersectionBy=CZ,q.intersectionWith=wZ,q.invert=FJ,q.invertBy=BJ,q.invokeMap=SK,q.iteratee=Ay,q.keyBy=OK,q.keys=Zr,q.keysIn=ta,q.map=V2,q.mapKeys=VJ,q.mapValues=WJ,q.matches=jQ,q.matchesProperty=DQ,q.memoize=H2,q.merge=HJ,q.mergeWith=rS,q.method=FQ,q.methodOf=BQ,q.mixin=$y,q.negate=G2,q.nthArg=VQ,q.omit=GJ,q.omitBy=UJ,q.once=zK,q.orderBy=EK,q.over=WQ,q.overArgs=VK,q.overEvery=HQ,q.overSome=GQ,q.partial=Cy,q.partialRight=X_,q.partition=kK,q.pick=YJ,q.pickBy=iS,q.property=fS,q.propertyOf=UQ,q.pull=EZ,q.pullAll=j_,q.pullAllBy=kZ,q.pullAllWith=AZ,q.pullAt=$Z,q.range=YQ,q.rangeRight=XQ,q.rearg=WK,q.reject=TK,q.remove=TZ,q.rest=HK,q.reverse=yy,q.sampleSize=MK,q.set=qJ,q.setWith=ZJ,q.shuffle=NK,q.slice=PZ,q.sortBy=RK,q.sortedUniq=DZ,q.sortedUniqBy=FZ,q.split=xQ,q.spread=GK,q.tail=BZ,q.take=zZ,q.takeRight=VZ,q.takeRightWhile=WZ,q.takeWhile=HZ,q.tap=aK,q.throttle=UK,q.thru=z2,q.toArray=Q_,q.toPairs=aS,q.toPairsIn=oS,q.toPath=QQ,q.toPlainObject=tS,q.transform=KJ,q.unary=YK,q.union=GZ,q.unionBy=UZ,q.unionWith=YZ,q.uniq=XZ,q.uniqBy=qZ,q.uniqWith=ZZ,q.unset=JJ,q.unzip=xy,q.unzipWith=D_,q.update=QJ,q.updateWith=eQ,q.values=e0,q.valuesIn=tQ,q.without=KZ,q.words=cS,q.wrap=XK,q.xor=JZ,q.xorBy=QZ,q.xorWith=eK,q.zip=tK,q.zipObject=nK,q.zipObjectDeep=rK,q.zipWith=iK,q.entries=aS,q.entriesIn=oS,q.extend=nS,q.extendWith=X2,$y(q,q),q.add=tee,q.attempt=uS,q.camelCase=aQ,q.capitalize=sS,q.ceil=nee,q.clamp=nQ,q.clone=ZK,q.cloneDeep=JK,q.cloneDeepWith=QK,q.cloneWith=KK,q.conformsTo=eJ,q.deburr=lS,q.defaultTo=IQ,q.divide=ree,q.endsWith=oQ,q.eq=Co,q.escape=sQ,q.escapeRegExp=lQ,q.every=gK,q.find=vK,q.findIndex=N_,q.findKey=TJ,q.findLast=yK,q.findLastIndex=I_,q.findLastKey=PJ,q.floor=iee,q.forEach=B_,q.forEachRight=z_,q.forIn=MJ,q.forInRight=NJ,q.forOwn=IJ,q.forOwnRight=LJ,q.get=Sy,q.gt=tJ,q.gte=nJ,q.has=DJ,q.hasIn=Oy,q.head=R_,q.identity=na,q.includes=_K,q.indexOf=yZ,q.inRange=rQ,q.invoke=zJ,q.isArguments=hu,q.isArray=Nt,q.isArrayBuffer=rJ,q.isArrayLike=ea,q.isArrayLikeObject=Sr,q.isBoolean=iJ,q.isBuffer=nc,q.isDate=aJ,q.isElement=oJ,q.isEmpty=sJ,q.isEqual=lJ,q.isEqualWith=cJ,q.isError=wy,q.isFinite=uJ,q.isFunction=rl,q.isInteger=q_,q.isLength=U2,q.isMap=Z_,q.isMatch=fJ,q.isMatchWith=dJ,q.isNaN=hJ,q.isNative=pJ,q.isNil=mJ,q.isNull=gJ,q.isNumber=K_,q.isObject=cr,q.isObjectLike=br,q.isPlainObject=c1,q.isRegExp=_y,q.isSafeInteger=vJ,q.isSet=J_,q.isString=Y2,q.isSymbol=ba,q.isTypedArray=Qf,q.isUndefined=yJ,q.isWeakMap=xJ,q.isWeakSet=bJ,q.join=_Z,q.kebabCase=cQ,q.last=Ba,q.lastIndexOf=SZ,q.lowerCase=uQ,q.lowerFirst=fQ,q.lt=CJ,q.lte=wJ,q.max=aee,q.maxBy=oee,q.mean=see,q.meanBy=lee,q.min=cee,q.minBy=uee,q.stubArray=Py,q.stubFalse=My,q.stubObject=qQ,q.stubString=ZQ,q.stubTrue=KQ,q.multiply=fee,q.nth=OZ,q.noConflict=zQ,q.noop=Ty,q.now=W2,q.pad=dQ,q.padEnd=hQ,q.padStart=pQ,q.parseInt=gQ,q.random=iQ,q.reduce=AK,q.reduceRight=$K,q.repeat=mQ,q.replace=vQ,q.result=XJ,q.round=dee,q.runInContext=ue,q.sample=PK,q.size=IK,q.snakeCase=yQ,q.some=LK,q.sortedIndex=MZ,q.sortedIndexBy=NZ,q.sortedIndexOf=IZ,q.sortedLastIndex=LZ,q.sortedLastIndexBy=RZ,q.sortedLastIndexOf=jZ,q.startCase=bQ,q.startsWith=CQ,q.subtract=hee,q.sum=pee,q.sumBy=gee,q.template=wQ,q.times=JQ,q.toFinite=il,q.toInteger=Vt,q.toLength=eS,q.toLower=_Q,q.toNumber=za,q.toSafeInteger=_J,q.toString=wn,q.toUpper=SQ,q.trim=OQ,q.trimEnd=EQ,q.trimStart=kQ,q.truncate=AQ,q.unescape=$Q,q.uniqueId=eee,q.upperCase=TQ,q.upperFirst=Ey,q.each=B_,q.eachRight=z_,q.first=R_,$y(q,function(){var m={};return es(q,function(b,A){En.call(q.prototype,A)||(m[A]=b)}),m}(),{chain:!1}),q.VERSION=r,oi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(m){q[m].placeholder=q}),oi(["drop","take"],function(m,b){rn.prototype[m]=function(A){A=A===n?1:zr(Vt(A),0);var j=this.__filtered__&&!b?new rn(this):this.clone();return j.__filtered__?j.__takeCount__=Si(A,j.__takeCount__):j.__views__.push({size:Si(A,K),type:m+(j.__dir__<0?"Right":"")}),j},rn.prototype[m+"Right"]=function(A){return this.reverse()[m](A).reverse()}}),oi(["filter","map","takeWhile"],function(m,b){var A=b+1,j=A==D||A==V;rn.prototype[m]=function(U){var J=this.clone();return J.__iteratees__.push({iteratee:gt(U,3),type:A}),J.__filtered__=J.__filtered__||j,J}}),oi(["head","last"],function(m,b){var A="take"+(b?"Right":"");rn.prototype[m]=function(){return this[A](1).value()[0]}}),oi(["initial","tail"],function(m,b){var A="drop"+(b?"":"Right");rn.prototype[m]=function(){return this.__filtered__?new rn(this):this[A](1)}}),rn.prototype.compact=function(){return this.filter(na)},rn.prototype.find=function(m){return this.filter(m).head()},rn.prototype.findLast=function(m){return this.reverse().find(m)},rn.prototype.invokeMap=Xt(function(m,b){return typeof m=="function"?new rn(this):this.map(function(A){return r1(A,m,b)})}),rn.prototype.reject=function(m){return this.filter(G2(gt(m)))},rn.prototype.slice=function(m,b){m=Vt(m);var A=this;return A.__filtered__&&(m>0||b<0)?new rn(A):(m<0?A=A.takeRight(-m):m&&(A=A.drop(m)),b!==n&&(b=Vt(b),A=b<0?A.dropRight(-b):A.take(b-m)),A)},rn.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},rn.prototype.toArray=function(){return this.take(K)},es(rn.prototype,function(m,b){var A=/^(?:filter|find|map|reject)|While$/.test(b),j=/^(?:head|last)$/.test(b),U=q[j?"take"+(b=="last"?"Right":""):b],J=j||/^find/.test(b);U&&(q.prototype[b]=function(){var ie=this.__wrapped__,se=j?[1]:arguments,de=ie instanceof rn,ke=se[0],Ae=de||Nt(ie),Re=function(tn){var ln=U.apply(q,La([tn],se));return j&&Ke?ln[0]:ln};Ae&&A&&typeof ke=="function"&&ke.length!=1&&(de=Ae=!1);var Ke=this.__chain__,lt=!!this.__actions__.length,mt=J&&!Ke,Ht=de&&!lt;if(!J&&Ae){ie=Ht?ie:new rn(this);var vt=m.apply(ie,se);return vt.__actions__.push({func:z2,args:[Re],thisArg:n}),new ja(vt,Ke)}return mt&&Ht?m.apply(this,se):(vt=this.thru(Re),mt?j?vt.value()[0]:vt.value():vt)})}),oi(["pop","push","shift","sort","splice","unshift"],function(m){var b=h2[m],A=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",j=/^(?:pop|shift)$/.test(m);q.prototype[m]=function(){var U=arguments;if(j&&!this.__chain__){var J=this.value();return b.apply(Nt(J)?J:[],U)}return this[A](function(ie){return b.apply(Nt(ie)?ie:[],U)})}}),es(rn.prototype,function(m,b){var A=q[b];if(A){var j=A.name+"";En.call(Xf,j)||(Xf[j]=[]),Xf[j].push({name:b,func:A})}}),Xf[I2(n,y).name]=[{name:"wrapper",func:n}],rn.prototype.clone=$X,rn.prototype.reverse=TX,rn.prototype.value=PX,q.prototype.at=oK,q.prototype.chain=sK,q.prototype.commit=lK,q.prototype.next=cK,q.prototype.plant=fK,q.prototype.reverse=dK,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=hK,q.prototype.first=q.prototype.head,Zd&&(q.prototype[Zd]=uK),q},Gf=lX();qs?((qs.exports=Gf)._=Gf,jf._=Gf):Nr._=Gf}).call(MFe)}
238(eh,eh.exports)),eh.exports}var he=NFe();const MYe=xp(he);var L4,IFe=function(){return L4||(L4=document.createElement("canvas").getContext("2d")),L4},LFe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};he.memoize(function(e,t){t===void 0&&(t={});var n=t.fontSize,r=t.fontFamily,i=r===void 0?"sans-serif":r,a=t.fontWeight,o=t.fontStyle,s=t.fontVariant,l=IFe();return l.font=[o,a,s,"".concat(n,"px"),i].join(" "),l.measureText(he.isString(e)?e:"")},function(e,t){return t===void 0&&(t={}),LFe([e],he.values(t),!0).join("")});var RFe=function(e){var t=/react|\.jsx|children:\[\(|return\s+[A-Za-z0-9].createElement\((?!['"][g|circle|ellipse|image|rect|line|polyline|polygon|text|path|html|mesh]['"])([^\)])*,/i;return t.test(e)},S8=function(){return S8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},S8.apply(this,arguments)};function jFe(e,t){var n=P.useRef(),r=P.useRef(),i=P.useRef(null),a=t.onReady,o=t.onEvent,s=function(u,f){var d;u===void 0&&(u="image/png");var h=(d=i.current)===null||d===void 0?void 0:d.getElementsByTagName("canvas")[0];return h==null?void 0:h.toDataURL(u,f)},l=function(u,f,d){u===void 0&&(u="download"),f===void 0&&(f="image/png");var h=u;u.indexOf(".")===-1&&(h="".concat(u,".").concat(f.split("/")[1]));var p=s(f,d),g=document.createElement("a");return g.href=p,g.download=h,document.body.appendChild(g),g.click(),document.body.removeChild(g),g=null,h},c=function(u,f){f===void 0&&(f=!1);var d=Object.keys(u),h=f;d.forEach(function(p){var g=u[p];p==="tooltip"&&(h=!0),he.isFunction(g)&&RFe("".concat(g))?u[p]=function(){for(var v=[],y=0;y<arguments.length;y++)v[y]=arguments[y];return kFe(g.apply(void 0,v),h)}:he.isArray(g)?g.forEach(function(v){c(v,h)}):he.isObject(g)?c(g,h):h=f})};return P.useEffect(function(){n.current&&!he.isEqual(r.current,t)&&(r.current=he.cloneDeep(t),c(t),n.current.update(t),n.current.render())},[t]),P.useEffect(function(){if(!i.current)return function(){return null};r.current||(r.current=he.cloneDeep(t)),c(t);var u=new e(i.current,S8({},t));u.toDataURL=s,u.downloadImage=l,u.render(),n.current=u,a&&a(u);var f=function(d){o&&o(u,d)};return u.on("*",f),function(){n.current&&(n.current.destroy(),n.current.off("*",f),n.current=void 0)}},[]),{chart:n,container:i}}const DFe={field:"value",size:[1,1],round:!1,padding:0,sort:(e,t)=>t.value-e.value,as:["x","y"],ignoreParentValue:!0},FFe="nodeIndex",pp="childNodeCount",BFe="nodeAncestor",R4="Invalid field: it must be a string!";function zFe(e,t){const{field:n,fields:r}=e;if(nr(n))return n;if(Dr(n))return console.warn(R4),n[0];if(console.warn(`${R4} will try to get fields instead.`),nr(r))return r;if(Dr(r)&&r.length)return r[0];throw new TypeError(R4)}function VFe(e){const t=[];if(e&&e.each){let n,r;e.each(i=>{var a,o;i.parent!==n?(n=i.parent,r=0):r+=1;const s=WR((((a=i.ancestors)===null||a===void 0?void 0:a.call(i))||[]).map(l=>t.find(c=>c.name===l.name)||l),({depth:l})=>l>0&&l<i.depth);i[BFe]=s,i[pp]=((o=i.children)===null||o===void 0?void 0:o.length)||0,i[FFe]=r,t.push(i)})}else e&&e.eachNode&&e.eachNode(n=>{t.push(n)});return t}function WFe(e,t){t=i3e({},DFe,t);const n=t.as;if(!Dr(n)||n.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');let r;try{r=zFe(t)}catch(l){console.warn(l)}const a=(l=>zOe().size(t.size).round(t.round).padding(t.padding)(Rd(l).sum(c=>Lh(c.children)?t.ignoreParentValue?0:c[r]-GR(c.children,(u,f)=>u+f[r],0):c[r]).sort(t.sort)))(e),o=n[0],s=n[1];return a.each(l=>{var c,u;l[o]=[l.x0,l.x1,l.x1,l.x0],l[s]=[l.y1,l.y1,l.y0,l.y0],l.name=l.name||((c=l.data)===null||c===void 0?void 0:c.name)||((u=l.data)===null||u===void 0?void 0:u.label),l.data.name=l.name,["x0","x1","y0","y1"].forEach(f=>{n.indexOf(f)===-1&&delete l[f]})}),VFe(a)}var HFe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const q0="sunburst",Cw="markType",VY="path",p3="ancestor-node";function GFe(e){const{data:t,encode:n}=e,{color:r,value:i}=n,o=WFe(t,{field:i,type:"hierarchy.partition",as:["x","y"]}),s=[];return o.forEach(l=>{var c,u,f,d;if(l.depth===0)return null;let h=l.data.name;const p=[h];let g=Object.assign({},l);for(;g.depth>1;)h=`${(c=g.parent.data)===null||c===void 0?void 0:c.name} / ${h}`,p.unshift((u=g.parent.data)===null||u===void 0?void 0:u.name),g=g.parent;const v=Object.assign(Object.assign(Object.assign({},Ux(l.data,[i])),{[VY]:h,[p3]:g.data.name}),l);r&&r!==p3&&(v[r]=l.data[r]||((d=(f=l.parent)===null||f===void 0?void 0:f.data)===null||d===void 0?void 0:d[r])),s.push(v)}
238),s.map(l=>{const c=l.x.slice(0,2),u=[l.y[2],l.y[0]];return c[0]===c[1]&&(u[0]=u[1]=(l.y[2]+l.y[0])/2),Object.assign(Object.assign({},l),{x:c,y:u,fillOpacity:Math.pow(.85,l.depth)})})}const mM={id:q0,encode:{x:"x",y:"y",key:VY,color:p3,value:"value"},axis:{x:!1,y:!1},style:{[Cw]:q0,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[pp]:pp,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},WY=e=>{const{encode:t,data:n=[]}=e,r=HFe(e,["encode","data"]),i=Object.assign(Object.assign({},r.coordinate),{innerRadius:Math.max(an(r,["coordinate","innerRadius"],.2),1e-5)}),a=Object.assign(Object.assign({},mM.encode),t),{value:o}=a,s=GFe({encode:a,data:n});return[_e({},mM,Object.assign(Object.assign({type:"rect",data:s,encode:a,tooltip:{title:"path",items:[l=>({name:o,value:l[o]})]}},r),{coordinate:i}))]};WY.props={};var UFe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const YFe=e=>e.querySelectorAll(".element").filter(t=>an(t,["style",Cw])===q0);function XFe(e){return ft(e).select(`.${np}`).node()}const qFe={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function ZFe(e={}){const{breadCrumb:t={},isFixedColor:n=!1}=e,r=_e({},qFe,t);return i=>{const{update:a,setState:o,container:s,view:l,options:c}=i,u=s.ownerDocument,f=XFe(s),d=c.marks.find(({id:C})=>C===q0),{state:h}=d,p=u.createElement("g");f.appendChild(p);const g=(C,_)=>UFe(this,void 0,void 0,function*(){if(p.removeChildren(),C){const S=u.createElement("text",{style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});p.appendChild(S);let O="";const E=C==null?void 0:C.split(" / ");let k=r.style.y,$=p.getBBox().width;const T=f.getBBox().width,M=E.map((R,N)=>{const D=u.createElement("text",{style:Object.assign(Object.assign({x:$,text:" / "},r.style),{y:k})});p.appendChild(D),$+=D.getBBox().width,O=`${O}${R} / `;const F=u.createElement("text",{name:O.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:R,x:$,depth:N+1},r.style),{y:k})});return p.appendChild(F),$+=F.getBBox().width,$>T&&(k=p.getBBox().height,$=0,D.attr({x:$,y:k}),$+=D.getBBox().width,F.attr({x:$,y:k}),$+=F.getBBox().width),F});[S,...M].forEach((R,N)=>{if(N===M.length)return;const D=Object.assign({},R.attributes);R.attr("cursor","pointer"),R.addEventListener("mouseenter",()=>{R.attr(r.active)}),R.addEventListener("mouseleave",()=>{R.attr(D)}),R.addEventListener("click",()=>{g(R.name,an(R,["style","depth"]))})})}o("drillDown",S=>{const{marks:O}=S,E=O.map(k=>{if(k.id!==q0&&k.type!=="rect")return k;const{data:$}=k,T=Object.fromEntries(["color"].map(R=>[R,{domain:l.scale[R].getOptions().domain}])),M=$.filter(R=>{const N=R.path;return n||(R[p3]=N.split(" / ")[_]),C?new RegExp(`^${C}.+`).test(N):!0});return _e({},k,n?{data:M,scale:T}:{data:M})});return Object.assign(Object.assign({},S),{marks:E})}),yield a()}),v=C=>{const _=C.target;if(an(_,["style",Cw])!==q0||an(_,["markType"])!=="rect"||!an(_,["style",pp]))return;const S=an(_,["__data__","key"]),O=an(_,["style","depth"]);_.style.cursor="pointer",g(S,O)};f.addEventListener("click",v);const y=Gx(Object.assign(Object.assign({},h.active),h.inactive)),x=()=>{YFe(f).forEach(_=>{const S=an(_,["style",pp]);if(an(_,["style","cursor"])!=="pointer"&&S){_.style.cursor="pointer";const E=Ux(_.attributes,y);_.addEventListener("mouseenter",()=>{_.attr(h.active)}),_.addEventListener("mouseleave",()=>{_.attr(_e(E,h.inactive))})}})};return f.addEventListener("mousemove",x),()=>{p.remove(),f.removeEventListener("click",v),f.removeEventListener("mousemove",x)}}}function KFe(){return{"interaction.drillDown":ZFe,"mark.sunburst":WY}}var g3=function(){return g3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},g3.apply(this,arguments)},JFe=UDe(bFe,g3(g3({},LY()),KFe())),Cn=function(e){var t=eBe(e),n=t.children,r=n===void 0?[]:n,i=he.omit(t,[].concat(HY,m3.map(function(c){return c.key}))),a=function(c){var u;return(u=aBe.find(function(f){return f.key===c}))===null||u===void 0?void 0:u.callback},o=function(c,u,f){var d=a(u);d?d(c,u,f):c[u]=wc({},c[u],f)}
238,s=function(c){Object.keys(c).forEach(function(u){if(c[u]){var f=m3.find(function(p){return p.key===u});if(f){var d=f.type,h=f.extend_keys;d?r.push(l(wc({},he.pick(c,h),{type:d},c[u]))):he.isArray(c[u])&&c[u].forEach(function(p){r.push(l(p))})}}})},l=function(c){return s(c),Object.keys(E8).forEach(function(u){var f=E8[u];if(!he.isUndefined(c[u]))if(he.isObject(f)){var d=f.value,h=f.target,p=d(c[u]);o(c,h,p)}else he.set(c,f,c[u])}),c};return r.forEach(function(c){var u=wc({},i,c);l(wc(c,u))}),s(t),QFe(t),e},vM=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},QFe=function(e){var t=e.children,n=t===void 0?[]:t,r=Object.keys(E8).concat(m3.map(function(i){return i.key}));return r.forEach(function(i){delete e[i]}),n.forEach(function(i){Object.keys(i).forEach(function(a){r.includes(a)&&delete i[a]})}),Object.keys(e).forEach(function(i){vM(vM([],HY,!0),k8.map(function(a){return a.key}),!0).includes(i)||delete e[i]}),e},eBe=function(e){var t=e.options,n=t.children,r=n===void 0?[]:n;
238return r.forEach(function(i){Object.keys(i).forEach(function(a){he.isArray(i[a])&&a!=="data"&&(i[a]=i[a].filter(function(o){return!o[O8]}))})}),t},yM=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},tBe=function(e,t){if(he.isArray(t))return t},wc=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return he.mergeWith.apply(void 0,yM(yM([],e,!1),[tBe],!1))};function gp(e){switch(typeof e){case"function":return e;case"string":return function(t){return he.get(t,[e])};default:return function(){return e}}}var mp=function(){return mp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},mp.apply(this,arguments)},nBe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},rBe=["renderer"],HY=["width","height","autoFit","theme","inset","insetLeft","insetRight","insetTop","insetBottom","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","depth","title","clip","children","type","data","direction"],O8="__transform__",iBe="__skipDelCustomKeys__",wu=function(e,t){return he.isBoolean(t)?{type:e,available:t}:mp({type:e},t)},E8={xField:"encode.x",yField:"encode.y",colorField:"encode.color",angleField:"encode.y",keyField:"encode.key",sizeField:"encode.size",shapeField:"encode.shape",seriesField:"encode.series",positionField:"encode.position",textField:"encode.text",valueField:"encode.value",binField:"encode.x",srcField:"encode.src",linkColorField:"encode.linkColor",fontSizeField:"encode.fontSize",radius:"coordinate.outerRadius",innerRadius:"coordinate.innerRadius",startAngle:"coordinate.startAngle",endAngle:"coordinate.endAngle",focusX:"coordinate.focusX",focusY:"coordinate.focusY",distortionX:"coordinate.distortionX",distortionY:"coordinate.distortionY",visual:"coordinate.visual",stack:{target:"transform",value:function(e){return wu("stackY",e)}},normalize:{target:"transform",value:function(e){return wu("normalizeY",e)}},percent:{target:"transform",value:function(e){return wu("normalizeY",e)}},group:{target:"transform",value:function(e){return wu("dodgeX",e)}},sort:{target:"transform",value:function(e){return wu("sortX",e)}},symmetry:{target:"transform",value:function(e){return wu("symmetryY",e)}},diff:{target:"transform",value:function(e){return wu("diffY",e)}},meta:{target:"scale",value:function(e){return e}},label:{target:"labels",value:function(e){return e}},shape:"style.shape",connectNulls:{target:"style",value:function(e){return he.isBoolean(e)?{connect:e}:e}}},j4=["xField","yField","seriesField","colorField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],m3=[{key:"annotations",extend_keys:[]},{key:"line",type:"line",extend_keys:j4},{key:"point",type:"point",extend_keys:j4},{key:"area",type:"area",extend_keys:j4}],aBe=[{key:"transform",callback:function(e,t,n){var r;e[t]=e[t]||[];var i=n.available,a=i===void 0?!0:i,o=nBe(n,["available"]);if(a)e[t].push(mp((r={},r[O8]=!0,r),o));else{var s=e[t].indexOf(function(l){return l.type===n.type});s!==-1&&e[t].splice(s,1)}}},{key:"labels",callback:function(e,t,n){var r;if(!n||he.isArray(n)){e[t]=n||[];return}n.text||(n.text=e.yField),e[t]=e[t]||[],e[t].push(mp((r={},r[O8]=!0,r),n))}}],k8=[{key:"conversionTag",shape:"ConversionTag"},{key:"axisText",shape:"BidirectionalBarAxisText"}],oBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
238t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),v3=function(){return v3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},v3.apply(this,arguments)},sBe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},GY=function(e){oBe(t,e);function t(n){n===void 0&&(n={});var r=n.style,i=sBe(n,["style"]);return e.call(this,v3({style:v3({text:"",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1},r)},i))||this}return t}(so),lBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),y3=function(){return y3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},y3.apply(this,arguments)},cBe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},uBe=function(e){lBe(t,e);function t(n){n===void 0&&(n={});var r=n.style,i=cBe(n,["style"]);return e.call(this,y3({style:y3({fill:"#eee"},r)},i))||this}return t}(yf),fBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),UY=function(e){fBe(t,e);function t(n,r,i){var a=e.call(this,{style:wc(i,r)})||this;return a.chart=n,a}return t.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this)},t.prototype.disconnectedCallback=function(){},t.prototype.attributeChangedCallback=function(n){},t.prototype.update=function(n,r){var i;return this.attr(wc({},this.attributes,n||{})),(i=this.render)===null||i===void 0?void 0:i.call(this,this.attributes,this,r)},t.prototype.clear=function(){this.removeChildren()},t.prototype.getElementsLayout=function(){var n=this.chart.getContext().canvas,r=n.document.getElementsByClassName("element"),i=[];return r.forEach(function(a){var o=a.getBBox(),s=o.x,l=o.y,c=o.width,u=o.height,f=a.__data__;i.push({bbox:o,x:s,y:l,width:c,height:u,key:f.key,data:f})}),i},t.prototype.bindEvents=function(n,r){},t}(Fp),dBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),x3=function(){return x3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},x3.apply(this,arguments)},hBe=function(e){dBe(t,e);function t(n,r){return e.call(this,n,r,{type:t.tag})||this}return t.prototype.getConversionTagLayout=function(){var n=this.direction==="vertical",r=this.getElementsLayout(),i=r[0],a=i.x,o=i.y,s=i.height,l=i.width,c=i.data,u=["items",0,"value"],f=he.get(c,u),d=n?r[1].y-o-s:r[1].x-a-l,h=[],p=this.attributes,g=p.size,v=g===void 0?40:g,y=p.arrowSize,x=y===void 0?20:y,C=p.spacing,_=C===void 0?4:C;return r.forEach(function(S,O){if(O>0){var E=S.x,k=S.y,$=S.height,T=S.width,M=S.data,R=S.key,N=he.get(M,u),D=v/2;if(n){var F=E+T/2,V=k;h.push({points:[[F+D,V-d+_],[F+D,V-x-_],[F,V-_],[F-D,V-x-_],[F-D,V-d+_]],center:[F,V-d/2-_],width:d,value:[f,N],key:R})}else{var F=E,V=k+$/2;h.push({points:[[E-d+_,V-D],[E-x-_,V-D],[F-_,V],[E-x-_,V+D],[E-d+_,V+D]],center:[F-d/2-_,V],width:d,value:[f,N],key:R})}f=N}}),h},t.prototype.render=function(){this.setDirection(),this.drawConversionTag()},t.prototype.setDirection=function(){var n=this.chart.getCoordinate(),r=he.get(n,"options.transformations"),i="horizontal";r.forEach(function(a){a.includes("transpose")&&(i="vertical")}),this.direction=i},t.prototype.drawConversionTag=function(){var n=this,r=this.getConversionTagLayout(),i=this.attributes,a=i.style,o=i.text,s=o.style,l=o.formatter;r.forEach(function(c){var u=c.points,f=c.center,d=c.value,h=c.key,p=d[0],g=d[1],v=f[0],y=f[1],x=new uBe({style:x3({points:u,fill:"#eee"},a),id:"polygon-".concat(h)}),C=new GY({style:x3({x:v,y,text:he.isFunction(l)?l(p,g):(g/p*100).toFixed(2)+"%"},s),id:"text-".concat(h)});n.appendChild(x),n.appendChild(C)})},t.prototype.update=function(){var n=this,r=this.getConversionTagLayout();r.forEach(function(i){var a=i.points,o=i.center,s=i.key,l=o[0],c=o[1],u=n.getElementById("polygon-".concat(s)),f=n.getElementById("text-".concat(s));u.setAttribute("points",a),f.setAttribute("x",l),f.setAttribute("y",c)})},t.tag="ConversionTag",t}(UY),A8=32,xM=16,bM=48,pBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
238t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_h=function(){return _h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},_h.apply(this,arguments)},gBe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},mBe=function(e){pBe(t,e);function t(n,r){return e.call(this,n,r,{type:t.tag})||this}return t.prototype.render=function(){this.drawText()},t.prototype.getBidirectionalBarAxisTextLayout=function(){var n=this.attributes.layout,r=n==="vertical",i=this.getElementsLayout(),a=r?he.uniqBy(i,"x"):he.uniqBy(i,"y"),o=["title"],s=[],l=this.chart.getContext().views,c=he.get(l,[0,"layout"]),u=c.width,f=c.height;return a.forEach(function(d){var h=d.x,p=d.y,g=d.height,v=d.width,y=d.data,x=d.key,C=he.get(y,o);r?s.push({x:h+v/2,y:f,text:C,key:x}):s.push({x:u,y:p+g/2,text:C,key:x})}),he.uniqBy(s,"text").length!==s.length&&(s=Object.values(he.groupBy(s,"text")).map(function(d){var h,p=d.reduce(function(g,v){return g+(r?v.x:v.y)},0);return _h(_h({},d[0]),(h={},h[r?"x":"y"]=p/d.length,h))})),s},t.prototype.transformLabelStyle=function(n){var r={},i=/^label[A-Z]/;return Object.keys(n).forEach(function(a){i.test(a)&&(r[a.replace("label","").replace(/^[A-Z]/,function(o){return o.toLowerCase()})]=n[a])}),r},t.prototype.drawText=function(){var n=this,r=this.getBidirectionalBarAxisTextLayout(),i=this.attributes,a=i.layout,o=i.labelFormatter,s=gBe(i,["layout","labelFormatter"]);r.forEach(function(l){var c=l.x,u=l.y,f=l.text,d=l.key,h=new GY({style:_h({x:c,y:u,text:he.isFunction(o)?o(f):f,wordWrap:!0,wordWrapWidth:a==="horizontal"?A8*2:120,maxLines:2,textOverflow:"ellipsis"},n.transformLabelStyle(s)),id:"text-".concat(d)});n.appendChild(h)})},t.prototype.destroy=function(){this.clear()},t.prototype.update=function(){this.destroy(),this.drawText()},t.tag="BidirectionalBarAxisText",t}(UY),vBe={ConversionTag:hBe,BidirectionalBarAxisText:mBe},yBe=function(){function e(t,n){this.container=new Map,this.chart=t,this.config=n,this.init()}return e.prototype.init=function(){var t=this;k8.forEach(function(n){var r,i=n.key,a=n.shape,o=t.config[i];if(o){var s=new vBe[a](t.chart,o),l=t.chart.getContext().canvas;l.appendChild(s),t.container.set(i,s)}else(r=t.container.get(i))===null||r===void 0||r.clear()})},e.prototype.update=function(){var t=this;this.container.size&&k8.forEach(function(n){var r=n.key,i=t.container.get(r);i==null||i.update()})},e}(),xBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),I0=function(){return I0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},I0.apply(this,arguments)},CM="data-chart-source-type",dn=function(e){xBe(t,e);function t(n,r){var i=e.call(this)||this;return i.container=typeof n=="string"?document.getElementById(n):n,i.options=i.mergeOption(r),i.createG2(),i.bindEvents(),i}return t.prototype.getChartOptions=function(){return I0(I0({},he.pick(this.options,rBe)),{container:this.container})},t.prototype.getSpecOptions=function(){return this.type==="base"||this[iBe]?I0(I0({},this.options),this.getChartOptions()):this.options},t.prototype.createG2=function(){if(!this.container)throw Error("The container is not initialized!");this.chart=new JFe(this.getChartOptions()),this.container.setAttribute(CM,"Ant Design Charts")},t.prototype.bindEvents=function(){var n=this;this.chart&&this.chart.on("*",function(r){r!=null&&r.type&&n.emit(r.type,r)})},t.prototype.getBaseOptions=function(){return{type:"view",autoFit:!0}},t.prototype.getDefaultOptions=function(){},t.prototype.render=function(){var n=this;this.type!=="base"&&this.execAdaptor(),this.chart.options(this.getSpecOptions()),this.chart.render().then(function(){n.annotation=new yBe(n.chart,n.options)}),this.bindSizeSensor()},t.prototype.update=function(n){this.options=this.mergeOption(n)},t.prototype.mergeOption=function(n){return wc({},this.getBaseOptions(),this.getDefaultOptions(),n)},t.prototype.changeData=function(n){this.chart.changeData(n)},t.prototype.changeSize=function(n,r){this.chart.changeSize(n,r)},t.prototype.destroy=function(){this.chart.destroy(),this.off(),this.container.removeAttribute(CM)},t.prototype.execAdaptor=function(){var n=this.getSchemaAdaptor();n({chart:this.chart,options:this.options})}
238,t.prototype.triggerResize=function(){this.chart.forceFit()},t.prototype.bindSizeSensor=function(){var n=this,r=this.options.autoFit,i=r===void 0?!0:r;i&&this.chart.on(xn.AFTER_CHANGE_SIZE,function(){n.annotation.update()})},t}(kC),bBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),CBe=function(e){bBe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="base",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"line"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return function(n){return n}},t}(dn),$8=function(){return $8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$8.apply(this,arguments)};function wBe(e){var t=e.options,n=t.stack,r=t.tooltip,i=t.xField;if(!n)return e;var a=m3.map(function(s){return s.type}).filter(function(s){return!!s}),o=!1;return a.forEach(function(s){t[s]&&(o=!0,he.set(t,[s,"stack"],$8({y1:"y"},typeof n=="object"?n:{})))}),o&&!he.isBoolean(r)&&!r&&he.set(t,"tooltip",{title:i,items:[{channel:"y"}]}),e}function xr(e){return he.flow(wBe)(e)}function _Be(e){var t=e.options.layout,n=t===void 0?"horizontal":t;return e.options.coordinate.transform=n!=="horizontal"?void 0:[{type:"transpose"}],e}function SBe(e){_Be(e);var t=e.options.layout,n=t===void 0?"horizontal":t;return e.options.children.forEach(function(r){var i;!((i=r==null?void 0:r.coordinate)===null||i===void 0)&&i.transform&&(r.coordinate.transform=n!=="horizontal"?void 0:[{type:"transpose"}])}),e}function OBe(e){return he.flow(xr,Cn)(e)}var EBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),kBe=function(e){EBe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="area",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"area"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return OBe},t}(dn),L0=function(){return L0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},L0.apply(this,arguments)};function YY(e){var t=function(n){var r=n.options;he.get(r,"children.length")>1&&he.set(r,"children",[{type:"interval"}]);var i=r.scale,a=r.markBackground,o=r.data,s=r.children,l=r.yField,c=he.get(i,"y.domain",[]);if(a&&c.length&&he.isArray(o)){var u="domainMax",f=o.map(function(d){var h;return L0(L0({originData:L0({},d)},he.omit(d,l)),(h={},h[u]=c[c.length-1],h))});s.unshift(L0({type:"interval",data:f,yField:u,tooltip:!1,style:{fill:"#eee"},label:!1},a))}return n};return he.flow(t,xr,Cn)(e)}var ABe=function(){var e=function(t,n){return function(r){var i=t.fill,a=i===void 0?"#2888FF":i,o=t.stroke,s=t.fillOpacity,l=s===void 0?1:s,c=t.strokeOpacity,u=c===void 0?.2:c,f=t.pitch,d=f===void 0?8:f,h=r[0],p=r[1],g=r[2],v=r[3],y=(p[1]-h[1])/2,x=n.document,C=x.createElement("g",{}),_=x.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+y],[g[0]-d,h[1]+y],v],fill:a,fillOpacity:l,stroke:o,strokeOpacity:u,inset:30}}),S=x.createElement("polygon",{style:{points:[[h[0]-d,h[1]+y],p,g,[g[0]-d,h[1]+y]],fill:a,fillOpacity:l,stroke:o,strokeOpacity:u}}),O=x.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+y],p,[h[0]+d,h[1]+y]],fill:a,fillOpacity:l-.2}});return C.appendChild(_),C.appendChild(S),C.appendChild(O),C}};jY("shape.interval.bar25D",e)},$Be=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
238t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();ABe();var TBe=function(e){$Be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Bar",n}return t.getDefaultOptions=function(){return{type:"view",coordinate:{transform:[{type:"transpose"}]},children:[{type:"interval"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return YY},t}(dn),PBe=function(){var e=function(t,n){return function(r){var i=t.fill,a=i===void 0?"#2888FF":i,o=t.stroke,s=t.fillOpacity,l=s===void 0?1:s,c=t.strokeOpacity,u=c===void 0?.2:c,f=t.pitch,d=f===void 0?8:f,h=r[1][0]-r[0][0],p=h/2+r[0][0],g=n.document,v=g.createElement("g",{}),y=g.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]+d],[p,r[3][1]+d],[r[3][0],r[3][1]]],fill:a,fillOpacity:l,stroke:o,strokeOpacity:u,inset:30}}),x=g.createElement("polygon",{style:{points:[[p,r[1][1]+d],[r[1][0],r[1][1]],[r[2][0],r[2][1]],[p,r[2][1]+d]],fill:a,fillOpacity:l,stroke:o,strokeOpacity:u}}),C=g.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]-d],[r[1][0],r[1][1]],[p,r[1][1]+d]],fill:a,fillOpacity:l-.2}});return v.appendChild(x),v.appendChild(y),v.appendChild(C),v}};jY("shape.interval.column25D",e)},MBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();PBe();var NBe=function(e){MBe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="column",n}return t.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return YY},t}(dn);function IBe(e){var t=function(r){var i=r.options,a=i.children,o=a===void 0?[]:a,s=i.legend;return s&&o.forEach(function(l){if(!he.get(l,"colorField")){var c=he.get(l,"yField");he.set(l,"colorField",function(){return c})}}),r},n=function(r){var i=r.options,a=i.annotations,o=a===void 0?[]:a,s=i.children,l=s===void 0?[]:s,c=i.scale,u=!1;return he.get(c,"y.key")||l.forEach(function(f,d){if(!he.get(f,"scale.y.key")){var h="child".concat(d,"Scale");he.set(f,"scale.y.key",h);var p=f.annotations,g=p===void 0?[]:p;g.length>0&&(he.set(f,"scale.y.independent",!1),g.forEach(function(v){he.set(v,"scale.y.key",h)})),!u&&o.length>0&&he.get(f,"scale.y.independent")===void 0&&(u=!0,he.set(f,"scale.y.independent",!1),o.forEach(function(v){he.set(v,"scale.y.key",h)}))}}),r};return he.flow(t,n,xr,Cn)(e)}var LBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wM=function(e){LBe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="DualAxes",n}return t.getDefaultOptions=function(){return{type:"view",axis:{y:{title:!1,tick:!1},x:{title:!1}},scale:{y:{independent:!0,nice:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return IBe},t}(dn);function RBe(e){var t=function(a){var o=a.options,s=o.xField,l=o.colorField;
238return l||he.set(o,"colorField",s),a},n=function(a){var o=a.options,s=o.compareField,l=o.transform,c=o.isTransposed,u=c===void 0?!0:c,f=o.coordinate;return l||(s?he.set(o,"transform",[]):he.set(o,"transform",[{type:"symmetryY"}])),!f&&u&&he.set(o,"coordinate",{transform:[{type:"transpose"}]}),a},r=function(a){var o=a.options,s=o.compareField,l=o.seriesField,c=o.data,u=o.children,f=o.yField,d=o.isTransposed,h=d===void 0?!0:d;if(s||l){var p=Object.values(he.groupBy(c,function(g){return g[s||l]}));u[0].data=p[0],u.push({type:"interval",data:p[1],yField:function(g){return-g[f]}}),delete o.compareField,delete o.data}return l&&(he.set(o,"type","spaceFlex"),he.set(o,"ratio",[1,1]),he.set(o,"direction",h?"row":"col"),delete o.seriesField),a},i=function(a){var o=a.options,s=o.tooltip,l=o.xField,c=o.yField;return s||he.set(o,"tooltip",{title:!1,items:[function(u){return{name:u[l],value:u[c]}}]}),a};return he.flow(t,n,r,i,xr,Cn)(e)}var jBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),DBe=function(e){jBe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="column",n}return t.getDefaultOptions=function(){return{type:"view",scale:{x:{padding:0}},animate:{enter:{type:"fadeIn"}},axis:!1,shapeField:"funnel",label:{position:"inside",transform:[{type:"contrastReverse"}]},children:[{type:"interval"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return RBe},t}(dn);function FBe(e){return he.flow(xr,Cn)(e)}var BBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zBe=function(e){BBe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="line",n}return t.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"line"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return FBe},t}(dn),qa=function(){return qa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},qa.apply(this,arguments)};function VBe(e){var t=function(n){var r=n.options,i=r.angleField,a=r.data,o=r.label,s=r.tooltip,l=r.colorField,c=gp(l);if(he.isArray(a)&&a.length>0){var u=a.reduce(function(d,h){return d+h[i]},0);if(u===0){var f=a.map(function(d){var h;return qa(qa({},d),(h={},h[i]=1,h))});he.set(r,"data",f),o&&he.set(r,"label",qa(qa({},o),{formatter:function(){return 0}})),s!==!1&&(he.isFunction(s)?he.set(r,"tooltip",function(d,h,p){var g;return s(qa(qa({},d),(g={},g[i]=0,g)),h,p.map(function(v){var y;return qa(qa({},v),(y={},y[i]=0,y))}))}):he.set(r,"tooltip",qa(qa({},s),{items:[function(d,h,p){return{name:c(d,h,p),value:0}}]})))}}return n};return he.flow(t,Cn)(e)}var WBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
238t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),HBe=function(e){WBe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="pie",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"theta"},transform:[{type:"stackY",reverse:!0}],animate:{enter:{type:"waveIn"}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return VBe},t}(dn);function GBe(e){return he.flow(xr,Cn)(e)}var UBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),YBe=function(e){UBe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="scatter",n}return t.getDefaultOptions=function(){return{axis:{y:{title:!1},x:{title:!1}},legend:{size:!1},children:[{type:"point"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return GBe},t}(dn);function XBe(e){var t=function(n){return he.set(n,"options.coordinate",{type:he.get(n,"options.coordinateType","polar")}),n};return he.flow(t,Cn)(e)}var qBe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ZBe=function(e){qBe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="radar",n}return t.getDefaultOptions=function(){return{axis:{x:{grid:!0,line:!0},y:{zIndex:1,title:!1,line:!0,nice:!0}},meta:{x:{padding:.5,align:0}},interaction:{tooltip:{style:{crosshairsLineDash:[4,4]}}},children:[{type:"line"}],coordinateType:"polar"}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return XBe},t}(dn),hl=function(){return hl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},hl.apply(this,arguments)},KBe="__stock-range__",JBe="trend",QBe="up",eze="down";function tze(e){var t=function(r){var i=r.options,a=i.data,o=i.yField;return r.options.data=he.map(a,function(s){var l=s&&hl({},s);if(Array.isArray(o)&&l){var c=o[0],u=o[1],f=o[2],d=o[3];l[JBe]=l[c]<=l[u]?QBe:eze,l[KBe]=[l[c],l[u],l[f],l[d]]}return l}),r},n=function(r){var i=r.options,a=i.xField,o=i.yField,s=i.fallingFill,l=i.risingFill,c=o[0],u=o[1],f=o[2],d=o[3],h=gp(a);return r.options.children=he.map(r.options.children,function(p,g){var v=g===0;return hl(hl({},p),{tooltip:{title:function(y,x,C){var _=h(y,x,C);return _ instanceof Date?_.toLocaleString():_},items:[{field:f},{field:d},{field:c},{field:u}]},encode:hl(hl({},p.encode||{}),{y:v?[f,d]:[c,u],color:function(y){return Math.sign(y[u]-y[c])}}),style:hl(hl({},p.style||{}),{lineWidth:v?1:10})})}),delete i.yField,r.options.legend={color:!1},s&&he.set(r,"options.scale.color.range[0]",s),l&&he.set(r,"options.scale.color.range[2]",l),r};return he.flow(t,n,Cn)(e)}var nze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
238t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),rze=["#26a69a","#999999","#ef5350"],ize=function(e){nze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="stock",n}return t.getDefaultOptions=function(){return{type:"view",scale:{color:{domain:[-1,0,1],range:rze},y:{nice:!0}},children:[{type:"link"},{type:"link"}],axis:{x:{title:!1,grid:!1},y:{title:!1,grid:!0,gridLineDash:null}},animate:{enter:{type:"scaleInY"}},interaction:{tooltip:{shared:!0,marker:!1,groupName:!1,crosshairs:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return tze},t}(dn);function aze(e){return he.flow(xr,Cn)(e)}var oze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),sze=function(e){oze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyLine",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"line",axis:!1}],animate:{enter:{type:"growInX",duration:500}},padding:0,margin:0,tooltip:!1}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return aze},t}(dn);function lze(e){return he.flow(xr,Cn)(e)}var cze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),uze=function(e){cze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyArea",n}return t.getDefaultOptions=function(){return{type:"view",animate:{enter:{type:"growInX",duration:500}},children:[{type:"area",axis:!1}],padding:0,margin:0,tooltip:!1}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return lze},t}(dn);function fze(e){return he.flow(xr,Cn)(e)}var dze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),hze=function(e){dze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyColumn",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"interval",axis:!1}],padding:0,margin:0,tooltip:!1}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return fze},t}(dn),T8=function(){return T8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},T8.apply(this,arguments)};function pze(e){var t=function(n){var r=n.options,i=r.percent,a=r.color,o=a===void 0?[]:a;if(!i)return n;var s={scale:{color:{range:o.length?o:[]}},data:[1,i]};return Object.assign(r,T8({},s)),n};return he.flow(t,xr,Cn)(e)}var gze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
238t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),mze=function(e){gze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyProgress",n}return t.getDefaultOptions=function(){return{type:"view",data:[],margin:0,padding:0,tooltip:!1,children:[{interaction:{tooltip:!1},coordinate:{transform:[{type:"transpose"}]},type:"interval",axis:!1,legend:!1,encode:{y:function(n){return n},color:function(n,r){return r}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return pze},t}(dn),P8=function(){return P8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},P8.apply(this,arguments)};function vze(e){var t=function(r){var i=r.options,a=i.radius,o=a===void 0?.8:a;return he.set(r,"options.coordinate.innerRadius",o),r},n=function(r){var i=r.options,a=i.percent,o=i.color,s=o===void 0?[]:o;if(!a)return r;var l={scale:{color:{range:s.length?s:[]}},data:[1,a]};return Object.assign(i,P8({},l)),r};return he.flow(t,n,xr,Cn)(e)}var yze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xze=function(e){yze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyRing",n}return t.getDefaultOptions=function(){return{type:"view",data:[],margin:0,padding:0,coordinate:{type:"theta"},animate:{enter:{type:"waveIn"}},interaction:{tooltip:!1},tooltip:!1,children:[{type:"interval",axis:!1,legend:!1,encode:{y:function(n){return n},color:function(n,r){return r}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return vze},t}(dn);function bze(e){return he.flow(Cn)(e)}var Cze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wze=function(e){Cze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="rose",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"polar"},animate:{enter:{type:"waveIn"}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return bze},t}(dn),D4="__start__",g0="__end__",M8="__waterfall_value__",N8=function(){return N8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},N8.apply(this,arguments)},_ze=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};function Sze(e){var t=function(r){var i=r.options,a=i.data,o=a===void 0?[]:a,s=i.yField;return o.length&&(o.reduce(function(l,c,u){var f,d=gp(s),h=d(c,u,o);if(u===0||c.isTotal)c[D4]=0,c[g0]=h,c[M8]=h;else{var p=(f=l[g0])!==null&&f!==void 0?f:d(l,u,o);c[D4]=p,c[g0]=p+h,c[M8]=l[g0]}return c},[]),Object.assign(i,{yField:[D4,g0]})),r},n=function(r){var i=r.options,a=i.data,o=a===void 0?[]:a,s=i.xField,l=i.children,c=i.linkStyle,u=_ze([],o,!0);return u.reduce(function(f,d,h){return h>0&&(d.x1=f[s],d.x2=d[s],d.y1=f[g0]),d},[]),u.shift(),l.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:u,style:N8({stroke:"#697474"},c),label:!1,tooltip:!1}),r};return he.flow(t,n,xr,Cn)(e)}var Oze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
238t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Eze=function(e){Oze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="waterfall",n}return t.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:M8,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Sze},t}(dn);function kze(e){var t=function(n){var r=n.options,i=r.data,a=r.binNumber,o=r.binWidth,s=r.children,l=r.channel,c=l===void 0?"count":l,u=he.get(s,"[0].transform[0]",{});return he.isNumber(o)?(he.assign(u,{thresholds:he.ceil(he.divide(i.length,o)),y:c}),n):(he.isNumber(a)&&he.assign(u,{thresholds:a,y:c}),n)};return he.flow(t,xr,Cn)(e)}var Aze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$ze=function(e){Aze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Histogram",n}return t.getDefaultOptions=function(){return{type:"view",autoFit:!0,axis:{y:{title:!1},x:{title:!1}},children:[{type:"rect",transform:[{type:"binX",y:"count"}],interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return kze},t}(dn);function Tze(e){var t=function(r){var i=r.options,a=i.tooltip,o=a===void 0?{}
238:a,s=i.colorField,l=i.sizeField;return o&&!o.field&&(o.field=s||l),r},n=function(r){var i=r.options,a=i.mark,o=i.children;return a&&(o[0].type=a),r};return he.flow(t,n,xr,Cn)(e)}var Pze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mze=function(e){Pze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="heatmap",n}return t.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{valueFormatter:"~s"},axis:{y:{title:null,grid:!0},x:{title:null,grid:!0}},children:[{type:"point",interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Tze},t}(dn);function Nze(e){var t=function(n){var r=n.options.boxType,i=r===void 0?"box":r;return n.options.children[0].type=i,n};return he.flow(t,xr,Cn)(e)}var Ize=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lze=function(e){Ize(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="box",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"box"}],axis:{y:{title:!1},x:{title:!1}},tooltip:{items:[{name:"min",channel:"y"},{name:"q1",channel:"y1"},{name:"q2",channel:"y2"},{name:"q3",channel:"y3"},{name:"max",channel:"y4"}]}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Nze},t}(dn);function Rze(e){var t=function(n){var r=n.options,i=r.data,a=[{type:"custom",callback:function(s){return{links:s}}}];if(he.isArray(i))i.length>0?he.set(r,"data",{value:i,transform:a}):delete r.children;else if(he.get(i,"type")==="fetch"&&he.get(i,"value")){var o=he.get(i,"transform");he.isArray(o)?he.set(i,"transform",o.concat(a)):he.set(i,"transform",a)}return n};return he.flow(t,xr,Cn)(e)}var jze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dze=function(e){jze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="sankey",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"sankey"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Rze},t}(dn),Mo=function(){return Mo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Mo.apply(this,arguments)},Fg=["#f0efff","#5B8FF9","#3D76DD"];function F4(e,t,n,r){r===void 0&&(r=!0);var i=0,a=!1,o=he.map(e,function(s){var l,c,u=he.get(s,[t]);if(he.isNil(u))return[];if(he.isString(u)){var f=Number(u);return isNaN(f)?[]:(l={},l[n]=s[n],l[t]=f,l)}return he.isArray(u)?(a=!0,i=Math.max(i,u.length),he.map(r?u.sort(function(d,h){return h-d}):u,function(d,h){var p;return p={},p[n]=s[n],p[t]=d,p.index=h,p})):(i=Math.max(1,i),c={},c[n]=s[n],c[t]=u,c)}).flat();return a?[o.map(function(s){return Mo({index:0},s)}),i]:[o,i]}function B4(e,t){return new Array(e).fill("").map(function(n,r){return he.isArray(t)?t[r%t.length]:t})}function Fze(e){var t=function(i){var a=i.options,o=a.color,s=a.rangeField,l=s===void 0?"ranges":s,c=a.measureField,u=c===void 0?"measures":c,f=a.targetField,d=f===void 0?"targets":f,h=a.xField,p=h===void 0?"title":h,g=a.mapField,v=a.data,y=F4(v,l,p),x=y[0],C=y[1],_=F4(v,u,p,!1),S=_[0],O=_[1],E=F4(v,d,p,!1),k=E[0],$=E[1],T=he.get(o,[l],Fg[0]),M=he.get(o,[u],Fg[1]),R=he.get(o,[d],Fg[2]),N=[B4(C,T),B4(O,M),B4($,R)].flat();return i.options.children=he.map(i.options.children,function(D,F){var V=[x,S,k][F],z=[l,u,d][F];return Mo(Mo({}
238,D),{data:V,encode:Mo(Mo({},D.encode||{}),{x:p,y:z,color:function(B){var G=B.index,Y=he.isNumber(G)?"".concat(z,"_").concat(G):z;return g?he.get(g,[z,G],Y):Y}}),style:Mo(Mo({},D.style||{}),{zIndex:function(B){return-B[z]}}),labels:F!==0?he.map(D.labels,function(B){return Mo(Mo({},B),{text:z})}):void 0})}),i.options.scale.color.range=N,i.options.legend.color.itemMarker=function(D){return g&&he.includes(g==null?void 0:g[d],D)||(D==null?void 0:D.replace(/\_\d$/,""))===d?"line":"square"},i},n=function(i){var a=i.options.layout,o=a===void 0?"horizontal":a;return o!=="horizontal"&&he.set(i,"options.children[2].shapeField","hyphen"),i},r=function(i){var a=i.options,o=a.range,s=o===void 0?{}:o,l=a.measure,c=l===void 0?{}:l,u=a.target,f=u===void 0?{}:u,d=a.children;return i.options.children=[s,c,f].map(function(h,p){return wc(d[p],h)}),i};return he.flow(t,n,r,SBe,Cn)(e)}var Bze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zze=function(e){Bze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="bullet",n}return t.getDefaultOptions=function(){return{type:"view",scale:{color:{range:Fg}},legend:{color:{itemMarker:function(n){return n==="target"?"line":"square"}}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval",style:{maxWidth:30},axis:{y:{grid:!0,gridLineWidth:2}}},{type:"interval",style:{maxWidth:20},transform:[{type:"stackY"}]},{type:"point",encode:{size:8,shape:"line"}}],interaction:{tooltip:{shared:!0}},coordinate:{transform:[{type:"transpose"}]}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Fze},t}(dn);function Vze(e){var t=function(n){var r=n.options.data;return n.options.data={value:r},n};return he.flow(t,xr,Cn)(e)}var Wze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hze=function(e){Wze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Gauge",n}return t.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"gauge"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Vze},t}(dn);function Gze(e){var t=function(n){var r=n.options.percent;return he.isNumber(r)&&(he.set(n,"options.data",r),delete n.options.percent),n};return he.flow(t,xr,Cn)(e)}var Uze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yze=function(e){Uze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Liquid",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"liquid"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Gze},t}(dn);function Xze(e){return he.flow(xr,Cn)(e)}var qze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
238t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zze=function(e){qze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="WordCloud",n}return t.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"wordCloud"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Xze},t}(dn);function Kze(e){var t=function(n){var r=n.options,i=r.data;return i&&he.set(r,"data",{value:i}),n};return he.flow(t,xr,Cn)(e)}var Jze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qze=function(e){Jze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="treemap",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"treemap"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Kze},t}(dn),Nu=function(){return Nu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Nu.apply(this,arguments)};function eVe(e){var t=function(i){var a=i.options,o=a.startAngle,s=a.maxAngle,l=a.coordinate,c=he.isNumber(o)?o/(2*Math.PI)*360:-90,u=he.isNumber(s)?(Number(s)+c)/180*Math.PI:Math.PI;return he.set(i,["options","coordinate"],Nu(Nu({},l),{endAngle:u,startAngle:o??-Math.PI/2})),i},n=function(i){var a=i.options,o=a.tooltip,s=a.xField,l=a.yField,c=gp(s),u=gp(l);return o||he.set(a,"tooltip",{title:!1,items:[function(f,d,h){return{name:c(f,d,h),value:u(f,d,h)}}]}),i},r=function(i){var a=i.options,o=a.markBackground,s=a.children,l=a.scale,c=a.coordinate,u=a.xField,f=he.get(l,"y.domain",[]);return o&&s.unshift(Nu({type:"interval",xField:u,yField:f[f.length-1],colorField:o.color,scale:{color:{type:"identity"}},style:{fillOpacity:o.opacity,fill:o.color?void 0:"#e0e4ee"},coordinate:Nu(Nu({},c),{startAngle:-Math.PI/2,endAngle:1.5*Math.PI}),animate:!1},o)),i};return he.flow(t,n,r,xr,Cn)(e)}var tVe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),nVe=function(e){tVe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="radial",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"radial",innerRadius:.1,outerRadius:1,endAngle:Math.PI},animate:{enter:{type:"waveIn",duration:800}},axis:{y:{nice:!0,labelAutoHide:!0,labelAutoRotate:!1},x:{title:!1,nice:!0,labelAutoRotate:!1,labelAutoHide:{type:"equidistance",cfg:{minGap:6}}}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return eVe},t}(dn);function rVe(e){return he.flow(Cn)(e)}var iVe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),aVe=function(e){iVe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="CirclePacking",n}return t.getDefaultOptions=function(){return{legend:!1,type:"view",children:[{type:"pack"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return rVe},t}(dn),b3=function(){return b3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},b3.apply(this,arguments)};function oVe(e){var t=function(n){var r=n.options,i=r.xField,a=r.yField,o=r.seriesField,s=r.children,l=s==null?void 0:s.map(function(c){return b3(b3({}
238,c),{xField:i,yField:a,seriesField:o,colorField:o,data:c.type==="density"?{transform:[{type:"kde",field:a,groupBy:[i,o]}]}:c.data})}).filter(function(c){return r.violinType!=="density"||c.type==="density"});return he.set(r,"children",l),r.violinType==="polar"&&he.set(r,"coordinate",{type:"polar"}),he.set(r,"violinType",void 0),n};return he.flow(t,xr,Cn)(e)}var sVe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),lVe=function(e){sVe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="violin",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"density",sizeField:"size",tooltip:!1},{type:"boxplot",shapeField:"violin",style:{opacity:.5,point:!1}}],animate:{enter:{type:"fadeIn"}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return oVe},t}(dn),Sh=function(){return Sh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Sh.apply(this,arguments)},cVe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};function uVe(e){var t=function(a){var o=a.options,s=o.yField,l=o.children;return l.forEach(function(c,u){he.set(c,"yField",s[u])}),a},n=function(a){var o=a.options,s=o.yField,l=o.children,c=o.data;if(he.isPlainObject(c))return a;var u=he.isArray(he.get(c,[0]))?c:[c,c];return l.forEach(function(f,d){he.set(f,"data",cVe([],u[d].map(function(h){return Sh({groupKey:s[d]},h)}),!0))}),a},r=function(a){var o=a.options,s=o.yField,l=s[0],c=s[1],u=o.tooltip;return u||he.set(o,"tooltip",{items:[{field:l,value:l},{field:c,value:c}]}),a},i=function(a){var o=a.options,s=o.children,l=o.layout,c=o.coordinate.transform,u=o.paddingBottom,f=u===void 0?bM:u,d=o.paddingLeft,h=d===void 0?bM:d,p=o.axis;he.set(o,"axisText",Sh(Sh({},(p==null?void 0:p.x)||{}),{layout:l}));var g=s[0],v=s[1];if(l==="vertical")he.set(o,"direction","col"),he.set(o,"paddingLeft",h),he.set(o,"coordinate.transform",c.filter(function(S){return S.type!=="transpose"})),he.set(g,"paddingBottom",xM),he.set(v,"paddingTop",xM),he.set(v,"axis",{x:{position:"top"}}),he.set(v,"scale",{y:{range:[0,1]}});else{he.set(o,"paddingBottom",f),he.set(g,"scale",{y:{range:[0,1]}});var y=g.paddingRight,x=y===void 0?A8:y,C=v.paddingLeft,_=C===void 0?A8:C;he.set(g,"paddingRight",x),he.set(g,"axis",{x:{position:"right"}}),he.set(v,"paddingLeft",_)}return a};return he.flow(t,n,r,i,xr,Cn)(e)}var fVe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),dVe=function(e){fVe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="BidirectionalBar",n}return t.getDefaultOptions=function(){return{type:"spaceFlex",coordinate:{transform:[{type:"transpose"}]},scale:{y:{nice:!0}},direction:"row",layout:"horizontal",legend:!1,axis:{y:{title:!1},x:{title:!1,label:!1}},children:[{type:"interval"},{type:"interval"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return uVe},t}(dn),Xu;(function(e){e.color="key",e.d="path"})(Xu||(Xu={}));function hVe(e){var t=function(n){var r=n.options,i=r.data,a=r.setsField,o=r.sizeField;return he.isArray(i)&&(he.set(r,"data",{type:"inline",value:i,transform:[{type:"venn",sets:a,size:o,as:[Xu.color,Xu.d]}]}),he.set(r,"colorField",a),he.set(r,["children","0","encode","d"],Xu.d)),he.set(n,"options",he.omit(r,["sizeField","
238setsField"])),n};return he.flow(t,Cn)(e)}var pVe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),gVe=function(e){pVe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="venn",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"path"}],legend:{color:{itemMarker:"circle"}},encode:{color:Xu.color,d:Xu.d}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return hVe},t}(dn);function mVe(e){var t=function(n){return n};return he.flow(t,Cn)(e)}var vVe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yVe=function(e){vVe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Sunburst",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"sunburst"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return mVe},t}(dn),xVe={Base:CBe,Line:zBe,Column:NBe,Pie:HBe,Area:kBe,Bar:TBe,DualAxes:wM,Funnel:DBe,Scatter:YBe,Radar:ZBe,Rose:wze,Stock:ize,TinyLine:sze,TinyArea:uze,TinyColumn:hze,TinyProgress:mze,TinyRing:xze,Waterfall:Eze,Histogram:$ze,Heatmap:Mze,Box:Lze,Sankey:Dze,Bullet:zze,Gauge:Hze,Liquid:Yze,WordCloud:Zze,Treemap:Qze,RadialBar:nVe,CirclePacking:aVe,Violin:lVe,BidirectionalBar:dVe,Venn:gVe,Mix:wM,Sunburst:yVe},I8=function(){return I8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},I8.apply(this,arguments)},_M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},bVe=P.forwardRef(function(e,t){var n=e.chartType,r=n===void 0?"Base":n,i=_M(e,["chartType"]),a=i.containerStyle,o=a===void 0?{height:"inherit",flex:1}:a,s=i.containerAttributes,l=s===void 0?{}:s,c=i.className,u=i.loading,f=i.loadingTemplate,d=i.errorTemplate,h=_M(i,["containerStyle","containerAttributes","className","loading","loadingTemplate","errorTemplate"]),p=jFe(xVe[r],h),g=p.chart,v=p.container;return P.useImperativeHandle(t,function(){return g.current}),Xe.createElement(PFe,{errorTemplate:d},u&&Xe.createElement($Fe,{loadingTemplate:f}),Xe.createElement("div",I8({className:c,style:o,ref:v},l)))}),L8=function(){return L8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},L8.apply(this,arguments)},CVe=P.forwardRef(function(e,t){return Xe.createElement(bVe,L8({},e,{chartType:"Column",ref:t}))});const wVe=`<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">
239<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -51.0884 21.0718)" stroke="main-color" stroke-width="0.75"/>
240<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -47.4835 24.6077)" stroke="main-color" stroke-width="0.75"/>
241<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -43.8789 28.1428)" stroke="main-color" stroke-width="0.75"/>
242<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -40.2742 31.6785)" stroke="main-color" stroke-width="0.75"/>
243<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -36.6694 35.2141)" stroke="main-color" stroke-width="0.75"/>
244<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -33.0647 38.7498)" stroke="main-color" stroke-width="0.75"/>
245<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -29.46 42.2849)" stroke="main-color" stroke-width="0.75"/>
246<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -25.8552 45.8206)" stroke="main-color" stroke-width="0.75"/>
247<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -22.2505 49.3562)" stroke="main-color" stroke-width="0.75"/>
248<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -18.6456 52.8918)" stroke="main-color" stroke-width="0.75"/>
249<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -15.041 56.427)" stroke="main-color" stroke-width="0.75"/>
250<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -11.4363 59.9626)" stroke="main-color" stroke-width="0.75"/>
251<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -7.83154 63.4983)" stroke="main-color" stroke-width="0.75"/>
252<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -4.22681 67.0339)" stroke="main-color" stroke-width="0.75"/>
253<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 -0.622192 70.5696)" stroke="main-color" stroke-width="0.75"/>
254<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 2.98254 74.1047)" stroke="main-color" stroke-width="0.75"/>
255<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 6.58752 77.6404)" stroke="main-color" stroke-width="0.75"/>
256<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 10.1921 81.176)" stroke="main-color" stroke-width="0.75"/>
257<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 13.7969 84.7117)" stroke="main-color" stroke-width="0.75"/>
258<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 17.4016 88.2468)" stroke="main-color" stroke-width="0.75"/>
259<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 21.0063 91.7825)" stroke="main-color" stroke-width="0.75"/>
260<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 24.6111 95.3181)" stroke="main-color" stroke-width="0.75"/>
261<line y1="-0.375" x2="100.925" y2="-0.375" transform="matrix(0.707107 -0.707107 0.720655 0.693294 28.2158 98.8538)" stroke="main-color" stroke-width="0.75"/>
262</svg>
263`,_Ve=`<svg width="49" height="49" viewBox="0 0 49 49" fill="none" xmlns="http://www.w3.org/2000/svg">
264<g id="Frame 427320429">
265<g id="pattern-circle" clip-path="url(#clip0_24104_8857)">
266<circle id="Ellipse 1166" cx="-0.295073" cy="7.51645" r="1.20493" stroke="main-color"/>
267<circle id="Ellipse 1185" cx="-0.249663" cy="17.224" r="1.20493" stroke="main-color"/>
268<circle id="Ellipse 1204" cx="-0.249663" cy="26.932" r="1.20493" stroke="main-color"/>
269<circle id="Ellipse 1223" cx="-0.249663" cy="36.64" r="1.20493" stroke="main-color"/>
270<circle id="Ellipse 1242" cx="-0.249663" cy="46.2955" r="1.20493" stroke="main-color"/>
271<circle id="Ellipse 1167" cx="5.25034" cy="7.51645" r="1.20493" stroke="main-color"/>
272<circle id="Ellipse 1186" cx="5.25034" cy="17.224" r="1.20493" stroke="main-color"/>
273<circle id="Ellipse 1205" cx="5.25034" cy="26.932" r="1.20493" stroke="main-color"/>
274<circle id="Ellipse 1224" cx="5.25034" cy="36.64" r="1.20493" stroke="main-color"/>
275<circle id="Ellipse 1243" cx="5.25034" cy="46.2955" r="1.20493" stroke="main-color"/>
276<circle id="Ellipse 1156" cx="2.74997" cy="2.70493" r="1.20493" stroke="main-color"/>
277<circle id="Ellipse 1168" cx="2.75034" cy="12.3702" r="1.20493" stroke="main-color"/>
278<circle id="Ellipse 1187" cx="2.75034" cy="22.078" r="1.20493" stroke="main-color"/>
279<circle id="Ellipse 1206" cx="2.75034" cy="31.786" r="1.20493" stroke="main-color"/>
280<circle id="Ellipse 1225" cx="2.75034" cy="41.4903" r="1.20493" stroke="main-color"/>
281<circle id="Ellipse 1169" cx="10.7503" cy="7.51645" r="1.20493" stroke="main-color"/>
282<circle id="Ellipse 1188" cx="10.7503" cy="17.224" r="1.20493" stroke="main-color"/>
283<circle id="Ellipse 1207" cx="10.7503" cy="26.932" r="1.20493" stroke="main-color"/>
284<circle id="Ellipse 1226" cx="10.7503" cy="36.64" r="1.20493" stroke="main-color"/>
285<circle id="Ellipse 1244" cx="10.7503" cy="46.2955" r="1.20493" stroke="main-color"/>
286<circle id="Ellipse 1157" cx="8.24997" cy="2.70493" r="1.20493" stroke="main-color"/>
287<circle id="Ellipse 1170" cx="8.25034" cy="12.3702" r="1.20493" stroke="main-color"/>
288<circle id="Ellipse 1189" cx="8.25034" cy="22.078" r="1.20493" stroke="main-color"/>
289<circle id="Ellipse 1208" cx="8.25034" cy="31.786" r="1.20493" stroke="main-color"/>
290<circle id="Ellipse 1227" cx="8.25034" cy="41.4903" r="1.20493" stroke="main-color"/>
291<circle id="Ellipse 1171" cx="16.2503" cy="7.51645" r="1.20493" stroke="main-color"/>
292<circle id="Ellipse 1190" cx="16.2503" cy="17.224" r="1.20493" stroke="main-color"/>
293<circle id="Ellipse 1209" cx="16.2503" cy="26.932" r="1.20493" stroke="main-color"/>
294<circle id="Ellipse 1228" cx="16.2503" cy="36.64" r="1.20493" stroke="main-color"/>
295<circle id="Ellipse 1245" cx="16.2503" cy="46.2955" r="1.20493" stroke="main-color"/>
296<circle id="Ellipse 1158" cx="13.75" cy="2.70493" r="1.20493" stroke="main-color"/>
297<circle id="Ellipse 1172" cx="13.7503" cy="12.3702" r="1.20493" stroke="main-color"/>
298<circle id="Ellipse 1191" cx="13.7503" cy="22.078" r="1.20493" stroke="main-color"/>
299<circle id="Ellipse 1210" cx="13.7503" cy="31.786" r="1.20493" stroke="main-color"/>
300<circle id="Ellipse 1229" cx="13.7503" cy="41.4903" r="1.20493" stroke="main-color"/>
301<circle id="Ellipse 1173" cx="21.7503" cy="7.51645" r="1.20493" stroke="main-color"/>
302<circle id="Ellipse 1192" cx="21.7503" cy="17.224" r="1.20493" stroke="main-color"/>
303<circle id="Ellipse 1211" cx="21.7503" cy="26.932" r="1.20493" stroke="main-color"/>
304<circle id="Ellipse 1230" cx="21.7503" cy="36.64" r="1.20493" stroke="main-color"/>
305<circle id="Ellipse 1246" cx="21.7503" cy="46.2955" r="1.20493" stroke="main-color"/>
306<circle id="Ellipse 1159" cx="19.25" cy="2.70493" r="1.20493" stroke="main-color"/>
307<circle id="Ellipse 1174" cx="19.2503" cy="12.3702" r="1.20493" stroke="main-color"/>
308<circle id="Ellipse 1193" cx="19.2503" cy="22.078" r="1.20493" stroke="main-color"/>
309<circle id="Ellipse 1212" cx="19.2503" cy="31.786" r="1.20493" stroke="main-color"/>
310<circle id="Ellipse 1231" cx="19.2503" cy="41.4903" r="1.20493" stroke="main-color"/>
311<circle id="Ellipse 1175" cx="27.2503" cy="7.51645" r="1.20493" stroke="main-color"/>
312<circle id="Ellipse 1194" cx="27.2503" cy="17.224" r="1.20493" stroke="main-color"/>
313<circle id="Ellipse 1213" cx="27.2503" cy="26.932" r="1.20493" stroke="main-color"/>
314<circle id="Ellipse 1232" cx="27.2503" cy="36.64" r="1.20493" stroke="main-color"/>
315<circle id="Ellipse 1247" cx="27.2503" cy="46.2955" r="1.20493" stroke="main-color"/>
316<circle id="Ellipse 1160" cx="24.75" cy="2.70493" r="1.20493" stroke="main-color"/>
317<circle id="Ellipse 1176" cx="24.7503" cy="12.3702" r="1.20493" stroke="main-color"/>
318<circle id="Ellipse 1195" cx="24.7503" cy="22.078" r="1.20493" stroke="main-color"/>
319<circle id="Ellipse 1214" cx="24.7503" cy="31.786" r="1.20493" stroke="main-color"/>
320<circle id="Ellipse 1233" cx="24.7503" cy="41.4903" r="1.20493" stroke="main-color"/>
321<circle id="Ellipse 1177" cx="32.7503" cy="7.51645" r="1.20493" stroke="main-color"/>
322<circle id="Ellipse 1196" cx="32.7503" cy="17.224" r="1.20493" stroke="main-color"/>
323<circle id="Ellipse 1215" cx="32.7503" cy="26.932" r="1.20493" stroke="main-color"/>
324<circle id="Ellipse 1234" cx="32.7503" cy="36.64" r="1.20493" stroke="main-color"/>
325<circle id="Ellipse 1248" cx="32.7503" cy="46.2955" r="1.20493" stroke="main-color"/>
326<circle id="Ellipse 1161" cx="30.25" cy="2.70493" r="1.20493" stroke="main-color"/>
327<circle id="Ellipse 1178" cx="30.2503" cy="12.3702" r="1.20493" stroke="main-color"/>
328<circle id="Ellipse 1197" cx="30.2503" cy="22.078" r="1.20493" stroke="main-color"/>
329<circle id="Ellipse 1216" cx="30.2503" cy="31.786" r="1.20493" stroke="main-color"/>
330<circle id="Ellipse 1235" cx="30.2503" cy="41.4903" r="1.20493" stroke="main-color"/>
331<circle id="Ellipse 1179" cx="38.2503" cy="7.51645" r="1.20493" stroke="main-color"/>
332<circle id="Ellipse 1198" cx="38.2503" cy="17.224" r="1.20493" stroke="main-color"/>
333<circle id="Ellipse 1217" cx="38.2503" cy="26.932" r="1.20493" stroke="main-color"/>
334<circle id="Ellipse 1236" cx="38.2503" cy="36.64" r="1.20493" stroke="main-color"/>
335<circle id="Ellipse 1249" cx="38.2503" cy="46.2955" r="1.20493" stroke="main-color"/>
336<circle id="Ellipse 1162" cx="35.75" cy="2.70493" r="1.20493" stroke="main-color"/>
337<circle id="Ellipse 1180" cx="35.7503" cy="12.3702" r="1.20493" stroke="main-color"/>
338<circle id="Ellipse 1199" cx="35.7503" cy="22.078" r="1.20493" stroke="main-color"/>
339<circle id="Ellipse 1218" cx="35.7503" cy="31.786" r="1.20493" stroke="main-color"/>
340<circle id="Ellipse 1237" cx="35.7503" cy="41.4903" r="1.20493" stroke="main-color"/>
341<circle id="Ellipse 1181" cx="43.7503" cy="7.51645" r="1.20493" stroke="main-color"/>
342<circle id="Ellipse 1200" cx="43.7503" cy="17.224" r="1.20493" stroke="main-color"/>
343<circle id="Ellipse 1219" cx="43.7503" cy="26.932" r="1.20493" stroke="main-color"/>
344<circle id="Ellipse 1238" cx="43.7503" cy="36.64" r="1.20493" stroke="main-color"/>
345<circle id="Ellipse 1250" cx="43.7503" cy="46.2955" r="1.20493" stroke="main-color"/>
346<circle id="Ellipse 1182" cx="49.2503" cy="7.51645" r="1.20493" stroke="main-color"/>
347<circle id="Ellipse 1201" cx="49.2503" cy="17.224" r="1.20493" stroke="main-color"/>
348<circle id="Ellipse 1220" cx="49.2503" cy="26.932" r="1.20493" stroke="main-color"/>
349<circle id="Ellipse 1239" cx="49.2546" cy="36.64" r="1.20493" stroke="main-color"/>
350<circle id="Ellipse 1251" cx="49.2959" cy="46.2955" r="1.20493" stroke="main-color"/>
351<circle id="Ellipse 1163" cx="41.25" cy="2.70493" r="1.20493" stroke="main-color"/>
352<circle id="Ellipse 1183" cx="41.2503" cy="12.3702" r="1.20493" stroke="main-color"/>
353<circle id="Ellipse 1202" cx="41.2503" cy="22.078" r="1.20493" stroke="main-color"/>
354<circle id="Ellipse 1221" cx="41.2503" cy="31.786" r="1.20493" stroke="main-color"/>
355<circle id="Ellipse 1240" cx="41.2503" cy="41.4903" r="1.20493" stroke="main-color"/>
356<circle id="Ellipse 1165" cx="46.75" cy="2.70493" r="1.20493" stroke="main-color"/>
357<circle id="Ellipse 1184" cx="46.7503" cy="12.3702" r="1.20493" stroke="main-color"/>
358<circle id="Ellipse 1203" cx="46.7503" cy="22.078" r="1.20493" stroke="main-color"/>
359<circle id="Ellipse 1222" cx="46.7503" cy="31.786" r="1.20493" stroke="main-color"/>
360<circle id="Ellipse 1241" cx="46.7503" cy="41.4903" r="1.20493" stroke="main-color"/>
361</g>
362</g>
363</svg>
364`,R8=(e,t)=>{const r=(e==="credits"?_Ve:wVe).replace(/main-color/g,t);return`data:image/svg+xml,${encodeURIComponent(r).replace(/'/g,"%27").replace(/"/g,"%22")}`},SVe={barSize:30},OVe=20,NYe=SVe.barSize,IYe={fontSize:"10px"},EVe="wrapper_tnIbj",kVe={wrapper:EVe},AVe=()=>w.jsx("div",{className:kVe.wrapper,"data-testid":"billing-chart-no-data",children:w.jsx(VN,{})}),$Ve="wrapper_4ujrp",TVe="header_vQ5Of",PVe="item_GWMNg",MVe="isSummary_grr73",NVe="title_6mupQ",IVe="key_28hOI",LVe="amount_ZV8aL",RVe="detailedData_4ca9-",jVe="svg_Anx4W",hs={wrapper:$Ve,header:TVe,item:PVe,isSummary:MVe,title:NVe,key:IVe,amount:LVe,detailedData:RVe,svg:jVe},DVe="wra
364pper_0Qlf0",FVe="circle_Mk9c9",BVe="second_JbOjg",z4={wrapper:DVe,circle:FVe,second:BVe},SM=({color:e,type:t,estimated:n,backgroundColor:r,second:i})=>{const a=`linear-gradient(${Iy(r,.5)}, ${Iy(r,.5)}),`,o=n?Iy(e,.2):e,s=t==="paid"?o:`${n?a:""} url("${R8(t,e)}") 0px 3px`;return w.jsx("div",{className:qe(i&&z4.wrapper),children:w.jsx("div",{style:{background:s,border:`1px solid ${e}`},className:qe(z4.circle,i&&z4.second)})})},V4="$",sc=({title:e,amount:t,isSummary:n,color:r,type:i,backgroundColor:a})=>!n&&!t.actual&&!t.estimated?null:w.jsxs("div",{className:qe(hs.item,n&&hs.isSummary),children:[w.jsxs("div",{className:hs.key,children:[r&&i&&w.jsxs("div",{className:hs.svg,style:{color:r},children:[w.jsx(SM,{color:r,type:n?"paid":i,backgroundColor:a}),!!t.estimated&&w.jsx(SM,{color:r,type:n?"paid":i,backgroundColor:a,estimated:!0,second:!0})]}),w.jsxs("div",{className:hs.title,children:[w.jsx("div",{className:"ellipsis",style:{maxWidth:t.estimated?"100px":"190px"},children:e}),!!t.estimated&&w.jsx("span",{children:" /Est."})]})]}),w.jsxs("div",{className:hs.amount,children:[!!t.actual&&i!=="paid"&&!n&&"-",V4,t.actual.toFixed(2)," ",!!t.estimated&&w.jsxs(w.Fragment,{children:[w.jsxs("span",{children:[i!=="paid"&&!n?"-":"",V4,t.estimated.toFixed(2)]}),w.jsxs("span",{children:[i!=="paid"&&!n?"-":"",V4,(t.actual+t.estimated).toFixed(2)]})]})]})]}),zVe=({currentData:e,totalData:t,color:n,gbKey:r,xField:i,type:a,backgroundColor:o})=>{const s={actual:e.paid.actual+e.savings.actual+e.credits.actual,estimated:e.paid.estimated+e.savings.estimated+e.credits.estimated},l={actual:t.paid.actual+t.savings.actual+t.credits.actual,estimated:t.paid.estimated+t.savings.estimated+t.credits.estimated},c=e.paid.actual===s.actual&&e.paid.estimated===s.estimated,u=t.paid.actual===l.actual&&t.paid.estimated===l.estimated,f=e.paid.actual!==t.paid.actual||e.paid.estimated!==t.paid.estimated||e.credits.actual!==t.credits.actual||e.credits.estimated!==t.credits.estimated||e.savings.actual!==t.savings.actual||e.savings.estimated!==t.savings.estimated;return w.jsxs("div",{className:qe(hs.wrapper,"scrollbar"),style:{maxHeight:"265px",overflowY:"auto",width:"360px"},children:[w.jsxs("div",{className:hs.header,children:[w.jsx("div",{children:i}),w.jsx("div",{children:"Total"})]}),w.jsxs("div",{children:[w.jsx(sc,{amount:{actual:e.paid.actual,estimated:e.paid.estimated},title:Z0(r),isSummary:!0,color:n,type:a,backgroundColor:o}),!c&&w.jsxs("div",{className:hs.detailedData,children:[w.jsx(sc,{amount:{actual:s.actual,estimated:s.estimated},title:"Consumption",color:n,type:"paid",backgroundColor:o}),w.jsx(sc,{amount:{actual:e.credits.actual,estimated:e.credits.estimated},title:"credits",color:n,type:"credits",backgroundColor:o}),w.jsx(sc,{amount:{actual:e.savings.actual,estimated:e.savings.estimated},title:"savings",color:n,type:"savings",backgroundColor:o})]})]}),f&&w.jsxs("div",{children:[w.jsx(sc,{amount:{actual:t.paid.actual,estimated:t.paid.estimated},title:"Paid",isSummary:!0,type:"paid",backgroundColor:o}),!u&&w.jsxs("div",{className:hs.detailedData,children:[w.jsx(sc,{amount:{actual:l.actual,estimated:l.estimated},title:"Consumption",type:"paid",backgroundColor:o}),w.jsx(sc,{amount:{actual:t.credits.actual,estimated:t.credits.estimated},title:"Credits",type:"credits",backgroundColor:o}),w.jsx(sc,{amount:{actual:t.savings.actual,estimated:t.savings.estimated},title:"savings",type:"savings",backgroundColor:o})]})]})]})},VVe="legendWrapper_-4osJ",WVe="legendItem_TQ8Q2",HVe="legendGeneralBlock_2HeHi",GVe="legendOthersBtnWrapper_kw5O6",UVe="legendOthersBtn_kDevA",YVe="legendOthersWrapper_UZmiM",XVe="legendOthersItem_C64AT",Ua={legendWrapper:VVe,legendItem:WVe,legendGeneralBlock:HVe,legendOthersBtnWrapper:GVe,legendOthersBtn:UVe,legendOthersWrapper:YVe,legendOthersItem:XVe},qVe="wrapper_Jfaj6",ZVe="circlesWrapper_YDn37",KVe="legendCircle_5rUsH",JVe="legendSubCircle_82kdA",QVe="text_ZDbpL",m0={wrapper:qVe,circlesWrapper:ZVe,legendCircle:KVe,legendSubCircle:JVe,text:QVe},j8=({className:e,color:t,type:n,estimated:r})=>{const{pattern:i,fill:a,fillOpacity:o}=PN(n,t,"transparent",r);return w.jsxs("svg",{className:e,x:0,y:0,width:10,height:10,viewBox:"0 0 11 11",children:[i,w.jsx("circle",{cx:5.5,cy:5.5,r:5,fill:a,fillOpacity:o,stroke:t,strokeWidth:1})]})},OM=({text:e,colors:t,pricingType:n,renderText:r,textStyles:i})=>w.jsxs("div",{className:m0.wrapper,children:[w.jsx("div",{className:m0.circlesWrapper,children:t.map((a,o)=>w.jsx(j8,{className:qe(m0.legendCircle,o!==0&&m0.legendSubCircle),type:n,color:a},o))}),e&&w.jsx(Wo,{placement:"bottom",title:e,children:w.jsx("div",{style:i,className:qe(m0.text,"ellipsis"),children:e})}),r&&w.jsx("div",{style:i,className:m0.text,children:r()})]}),eWe="wrapper_-aTQK",tWe="circlesWrapper_zO5rX",nWe="legendCircle_Ib-IK",rWe="legendSubCircle_lvbKf",iWe="text_HIlaZ",T1={wrapper:eWe,circlesWrapper:tWe,legendCircle:nWe,legendSubCircle:rWe,text:iWe},aWe=({className:e,color:t,type:n})=>{const r=ti().variables["--color-background"],{pattern:i,fill:a,fillOpacity:o}=PN(n,t,r);return w.jsxs("svg",{className:e,x:0,y:0,width:10,height:10,viewBox:"0 0 11 11",children:[i,w.jsx("circle",{cx:5.5,cy:5.5,r:5,fill:a,fillOpacity:o,stroke:t,strokeWidth:1})]})},cg=({text:e,legend:t})=>w.jsxs("div",{className:T1.wrapper,children:[w.jsx("div",{className:T1.circlesWrapper,children:t.map((n,r)=>w.jsx(aWe,{className:qe(T1.legendCircle,r!==0&&T1.legendSubCircle),type:n.type,color:n.color},r))}),e&&w.jsx("div",{className:T1.text,children:e})]}),oWe="Paid",sWe="Estimated",lWe="Credits",cWe=8,uWe=3,fWe=244,dWe=65,hWe=24,pWe=({groupBy1:e,colorByKey:t,isLegendOthersOpened:n,setIsLegendOthersOpened:r,chartWidth:i,keysOrder:a,hideCommonLegendNew:o})=>{const s=e===Ti.groupBy.costAndSavings||o,[l,c]=P.useState(0),u=p=>{if(e===Ti.groupBy.costAndSavings){if(p==="Estimated"||p==="Estimated credits")return"estimated";if(p!=="Paid"&&p!=="Credits")return"savings"}return"paid"},f=a.map(p=>({color:t[p],key:p}));P.useEffect(()=>{let p=0,g=i-(s?0:fWe)-dWe;for(const v in f){const x=f[+v].key.length*cWe+hWe+14;if(g-x>0)g-=x,p=+v+1;else break}c(p)},[i,f]);const d=f.length-l,h=f.slice(0,uWe).map(p=>p.color);return w.jsx("div",{className:Ua.legendWrapper,children:f.length!==0&&w.jsxs(w.Fragment,{children:[!s&&w.jsxs("div",{className:qe(Ua.legendGeneralBlock),children:[w.jsx("div",{className:Ua.legendItem,children:w.jsx(cg,{text:oWe,legend:h.map(p=>({color:p,type:"paid"}))})}),w.jsx("div",{className:Ua.legendItem,children:w.jsx(cg,{text:"Savings",legend:h.map(p=>({color:p,type:"savings"}))})}),w.jsx("div",{className:Ua.legendItem,children:w.jsx(cg,{text:lWe,legend:h.map(p=>({color:p,type:"credits"}))})}),w.jsx("div",{className:Ua.legendItem,children:w.jsx(cg,{text:sWe,legend:h.map(p=>({color:p,type:"paid",estimated:!0}))})})]}),f.filter((p,g)=>g<l).map((p,g)=>w.jsx("div",{className:Ua.legendItem,children:w.jsx(OM,{text:Z0(p.key),colors:[p.color],pricingType:u(p.key)})},`legend-${p.key}`)),f.length>=l&&w.jsx("div",{className:Ua.legendOthersBtnWrapper,children:w.jsxs(NN,{callback:()=>r(!1),dependencies:[],children:[w.jsx(jN,{isOpened:n,bottom:"calc(100% + 8px)",right:"-15px",maxHeight:"280px",contentStyle:{paddingRight:2},children:w.jsx("div",{className:Ua.legendOthersWrapper,children:f.filter((p,g)=>g>=l).map(p=>w.jsx("div",{className:Ua.legendOthersItem,children:w.jsx("div",{className:Ua.legendItem,children:w.jsx(OM,{text:Z0(p.key),colors:[p.color],pricingType:u(p.key)})},`legend-${p.key}`)},`legend-other-${p.key}`))})}),d!==0&&w.jsxs("button",{className:Ua.legendOthersBtn,onClick:()=>r(!n),children:["+",d," OTHER"]})]})},"legend-other-node")]})})};var th=(e=>(e.paid="paid",e.credits="credits",e.savings="savings",e))(th||{}),lc={},_u={};/**
365 * @license React
366 * react-dom-server-legacy.browser.production.min.js
367 *
368 * Copyright (c) Facebook, Inc. and its affiliates.
369 *
370 * This source code is licensed under the MIT license found in the
371 * LICENSE file in the root directory of this source tree.
372 */var EM;function gWe(){if(EM)return _u;EM=1;var e=mN();function t(I){for(var H="https://reactjs.org/docs/error-decoder.html?invariant="+I,Z=1;Z<arguments.length;Z++)H+="&args[]="+encodeURIComponent(arguments[Z]);return"Minified React error #"+I+"; visit "+H+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,r=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,i={},a={};function o(I){return n.call(a,I)?!0:n.call(i,I)?!1:r.test(I)?a[I]=!0:(i[I]=!0,!1)}function s(I,H,Z,re,ye,me,Se){this.acceptsBooleans=H===2||H===3||H===4,this.attributeName=re,this.attributeNamespace=ye,this.mustUseProperty=Z,this.propertyName=I,this.type=H,this.sanitizeURL=me,this.removeEmptyString=Se}var l={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(I){l[I]=new s(I,0,!1,I,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 71,173 bytes, lines 372-390
372h(function(I){var H=I[0];l[H]=new s(H,1,!1,I[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(I){l[I]=new s(I,2,!1,I.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(I){l[I]=new s(I,2,!1,I,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(I){l[I]=new s(I,3,!1,I.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(I){l[I]=new s(I,3,!0,I,null,!1,!1)}),["capture","download"].forEach(function(I){l[I]=new s(I,4,!1,I,null,!1,!1)}),["cols","rows","size","span"].forEach(function(I){l[I]=new s(I,6,!1,I,null,!1,!1)}),["rowSpan","start"].forEach(function(I){l[I]=new s(I,5,!1,I.toLowerCase(),null,!1,!1)});var c=/[\-:]([a-z])/g;function u(I){return I[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(I){var H=I.replace(c,u);l[H]=new s(H,1,!1,I,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(I){var H=I.replace(c,u);l[H]=new s(H,1,!1,I,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(I){var H=I.replace(c,u);l[H]=new s(H,1,!1,I,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(I){l[I]=new s(I,1,!1,I.toLowerCase(),null,!1,!1)}),l.xlinkHref=new s("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(I){l[I]=new s(I,1,!1,I.toLowerCase(),null,!0,!0)});var f={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},d=["Webkit","ms","Moz","O"];Object.keys(f).forEach(function(I){d.forEach(function(H){H=H+I.charAt(0).toUpperCase()+I.substring(1),f[H]=f[I]})});var h=/["'&<>]/;function p(I){if(typeof I=="boolean"||typeof I=="number")return""+I;I=""+I;var H=h.exec(I);if(H){var Z="",re,ye=0;for(re=H.index;re<I.length;re++){switch(I.charCodeAt(re)){case 34:H="&quot;";break;case 38:H="&amp;";break;case 39:H="&#x27;";break;case 60:H="&lt;";break;case 62:H="&gt;";break;default:continue}ye!==re&&(Z+=I.substring(ye,re)),ye=re+1,Z+=H}I=ye!==re?Z+I.substring(ye,re):Z}return I}var g=/([A-Z])/g,v=/^ms-/,y=Array.isArray;function x(I,H){return{insertionMode:I,selectedValue:H}}function C(I,H,Z){switch(H){case"select":return x(1,Z.value!=null?Z.value:Z.defaultValue);case"svg":return x(2,null);case"math":return x(3,null);case"foreignObject":return x(1,null);case"table":return x(4,null);case"thead":case"tbody":case"tfoot":return x(5,null);case"colgroup":return x(7,null);case"tr":return x(6,null)}return 4<=I.insertionMode||I.insertionMode===0?x(1,null):I}var _=new Map;function S(I,H,Z){if(typeof Z!="object")throw Error(t(62));H=!0;for(var re in Z)if(n.call(Z,re)){var ye=Z[re];if(ye!=null&&typeof ye!="boolean"&&ye!==""){if(re.indexOf("--")===0){var me=p(re);ye=p((""+ye).trim())}else{me=re;var Se=_.get(me);Se!==void 0||(Se=p(me.replace(g,"-$1").toLowerCase().replace(v,"-ms-")),_.set(me,Se)),me=Se,ye=typeof ye=="number"?ye===0||n.call(f,re)?""+ye:ye+"px":p((""+ye).trim())}H?(H=!1,I.push(' style="',me,":",ye)):I.push(";",me,":",ye)}}H||I.push('"')}function O(I,H,Z,re){switch(Z){case"style":S(I,H,re);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<Z.length)||Z[0]!=="o"&&Z[0]!=="O"||Z[1]!=="n"&&Z[1]!=="N"){if(H=l.hasOwnProperty(Z)?l[Z]:null,H!==null){switch(typeof re){case"function":case"symbol":return;case"boolean":if(!H.acceptsBooleans)return}switch(Z=H.attributeName,H.type){case 3:re&&I.push(" ",Z,'=""');break;case 4:re===!0?I.push(" ",Z,'=""'):re!==!1&&I.push(" ",Z,'="',p(re),'"');break;case 5:isNaN(re)||I.push(" ",Z,'="',p(re),'"');break;case 6:!isNaN(re)&&1<=re&&I.push(" ",Z,'="',p(re),'"');break;default:H.sanitizeURL&&(re=""+re),I.push(" ",Z,'="',p(re),'"')}}else if(o(Z)){switch(typeof re){case"function":case"symbol":return;case"boolean":if(H=Z.toLowerCase().slice(0,5),H!=="data-"&&H!=="aria-")return}I.push(" ",Z,'="',p(re),'"')}}}function E(I,H,Z){if(H!=null){if(Z!=null)throw Error(t(60));if(typeof H!="object"||!("__html"in H))throw Error(t(61));H=H.__html,H!=null&&I.push(""+H)}}function k(I){var H="";return e.Children.forEach(I,function(Z){Z!=null&&(H+=Z)}),H}function $(I,H,Z,re){I.push(R(Z));var ye=Z=null,me;for(me in H)if(n.call(H,me)){var Se=H[me];if(Se!=null)switch(me){case"children":Z=Se;break;case"dangerouslySetInnerHTML":ye=Se;break;default:O(I,re,me,Se)}}return I.push(">"),E(I,ye,Z),typeof Z=="string"?(I.push(p(Z)),null):Z}var T=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,M=new Map;function R(I){var H=M.get(I);if(H===void 0){if(!T.test(I))throw Error(t(65,I));H="<"+I,M.set(I,H)}return H}function N(I,H,Z,re,ye){switch(H){case"select":I.push(R("select"));var me=null,Se=null;for(Et in Z)if(n.call(Z,Et)){var We=Z[Et];if(We!=null)switch(Et){case"children":me=We;break;case"dangerouslySetInnerHTML":Se=We;break;case"defaultValue":case"value":break;default:O(I,re,Et,We)}}return I.push(">"),E(I,Se,me),me;case"option":Se=ye.selectedValue,I.push(R("option"));var ht=We=null,dt=null,Et=null;for(me in Z)if(n.call(Z,me)){var Vn=Z[me];if(Vn!=null)switch(me){case"children":We=Vn;break;case"selected":dt=Vn;break;case"dangerouslySetInnerHTML":Et=Vn;break;case"value":ht=Vn;default:O(I,re,me,Vn)}}if(Se!=null)if(Z=ht!==null?""+ht:k(We),y(Se)){for(re=0;re<Se.length;re++)if(""+Se[re]===Z){I.push(' selected=""');break}}else""+Se===Z&&I.push(' selected=""');else dt&&I.push(' selected=""');return I.push(">"),E(I,Et,We),We;case"textarea":I.push(R("textarea")),Et=Se=me=null;for(We in Z)if(n.call(Z,We)&&(ht=Z[We],ht!=null))switch(We){case"children":Et=ht;break;case"value":me=ht;break;case"defaultValue":Se=ht;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:O(I,re,We,ht)}if(me===null&&Se!==null&&(me=Se),I.push(">"),Et!=null){if(me!=null)throw Error(t(92));if(y(Et)&&1<Et.length)throw Error(t(93));me=""+Et}return typeof me=="string"&&me[0]===`
373`&&I.push(`
374`),me!==null&&I.push(p(""+me)),null;case"input":I.push(R("input")),ht=Et=We=me=null;for(Se in Z)if(n.call(Z,Se)&&(dt=Z[Se],dt!=null))switch(Se){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":ht=dt;break;case"defaultValue":We=dt;break;case"checked":Et=dt;break;case"value":me=dt;break;default:O(I,re,Se,dt)}return Et!==null?O(I,re,"checked",Et):ht!==null&&O(I,re,"checked",ht),me!==null?O(I,re,"value",me):We!==null&&O(I,re,"value",We),I.push("/>"),null;case"menuitem":I.push(R("menuitem"));for(var ma in Z)if(n.call(Z,ma)&&(me=Z[ma],me!=null))switch(ma){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:O(I,re,ma,me)}return I.push(">"),null;case"title":I.push(R("title")),me=null;for(Vn in Z)if(n.call(Z,Vn)&&(Se=Z[Vn],Se!=null))switch(Vn){case"children":me=Se;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:O(I,re,Vn,Se)}return I.push(">"),me;case"listing":case"pre":I.push(R(H)),Se=me=null;for(ht in Z)if(n.call(Z,ht)&&(We=Z[ht],We!=null))switch(ht){case"children":me=We;break;case"dangerouslySetInnerHTML":Se=We;break;default:O(I,re,ht,We)}if(I.push(">"),Se!=null){if(me!=null)throw Error(t(60));if(typeof Se!="object"||!("__html"in Se))throw Error(t(61));Z=Se.__html,Z!=null&&(typeof Z=="string"&&0<Z.length&&Z[0]===`
375`?I.push(`
376`,Z):I.push(""+Z))}return typeof me=="string"&&me[0]===`
377`&&I.push(`
378`),me;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":I.push(R(H));for(var Ji in Z)if(n.call(Z,Ji)&&(me=Z[Ji],me!=null))switch(Ji){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,H));default:O(I,re,Ji,me)}return I.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return $(I,Z,H,re);case"html":return ye.insertionMode===0&&I.push("<!DOCTYPE html>"),$(I,Z,H,re);default:if(H.indexOf("-")===-1&&typeof Z.is!="string")return $(I,Z,H,re);I.push(R(H)),Se=me=null;for(dt in Z)if(n.call(Z,dt)&&(We=Z[dt],We!=null))switch(dt){case"children":me=We;break;case"dangerouslySetInnerHTML":Se=We;break;case"style":S(I,re,We);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:o(dt)&&typeof We!="function"&&typeof We!="symbol"&&I.push(" ",dt,'="',p(We),'"')}return I.push(">"),E(I,Se,me),me}}function D(I,H,Z){if(I.push('<!--$?--><template id="'),Z===null)throw Error(t(395));return I.push(Z),I.push('"></template>')}function F(I,H,Z,re){switch(Z.insertionMode){case 0:case 1:return I.push('<div hidden id="'),I.push(H.segmentPrefix),H=re.toString(16),I.push(H),I.push('">');case 2:return I.push('<svg aria-hidden="true" style="display:none" id="'),I.push(H.segmentPrefix),H=re.toString(16),I.push(H),I.push('">');case 3:return I.push('<math aria-hidden="true" style="display:none" id="'),I.push(H.segmentPrefix),H=re.toString(16),I.push(H),I.push('">');case 4:return I.push('<table hidden id="'),I.push(H.segmentPrefix),H=re.toString(16),I.push(H),I.push('">');case 5:return I.push('<table hidden><tbody id="'),I.push(H.segmentPrefix),H=re.toString(16),I.push(H),I.push('">');case 6:return I.push('<table hidden><tr id="'),I.push(H.segmentPrefix),H=re.toString(16),I.push(H),I.push('">');case 7:return I.push('<table hidden><colgroup id="'),I.push(H.segmentPrefix),H=re.toString(16),I.push(H),I.push('">');default:throw Error(t(397))}}function V(I,H){switch(H.insertionMode){case 0:case 1:return I.push("</div>");case 2:return I.push("</svg>");case 3:return I.push("</math>");case 4:return I.push("</table>");case 5:return I.push("</tbody></table>");case 6:return I.push("</tr></table>");case 7:return I.push("</colgroup></table>");default:throw Error(t(397))}}var z=/[<\u2028\u2029]/g;function B(I){return JSON.stringify(I).replace(z,function(H){switch(H){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function G(I,H){return H=H===void 0?"":H,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:H+"P:",segmentPrefix:H+"S:",boundaryPrefix:H+"B:",idPrefix:H,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:I}}function Y(I,H,Z,re){return Z.generateStaticMarkup?(I.push(p(H)),!1):(H===""?I=re:(re&&I.push("<!-- -->"),I.push(p(H)),I=!0),I)}var K=Object.assign,Q=Symbol.for("react.element"),ne=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),ae=Symbol.for("react.strict_mode"),ce=Symbol.for("react.profiler"),fe=Symbol.for("react.provider"),le=Symbol.for("react.context"),be=Symbol.for("react.forward_ref"),Ce=Symbol.for("react.suspense"),$e=Symbol.for("react.suspense_list"),Me=Symbol.for("react.memo"),Le=Symbol.for("react.lazy"),je=Symbol.for("react.scope"),Ge=Symbol.for("react.debug_trace_mode"),nt=Symbol.for("react.legacy_hidden"),Ze=Symbol.for("react.default_value"),Ue=Symbol.iterator;function Qe(I){if(I==null)return null;if(typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case oe:return"Fragment";case ne:return"Portal";case ce:return"Profiler";case ae:return"StrictMode";case Ce:return"Suspense";case $e:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case le:return(I.displayName||"Context")+".Consumer";case fe:return(I._context.displayName||"Context")+".Provider";case be:var H=I.render;return I=I.displayName,I||(I=H.displayName||H.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case Me:return H=I.displayName||null,H!==null?H:Qe(I.type)||"Memo";case Le:H=I._payload,I=I._init;try{return Qe(I(H))}catch{}}return null}var Pt={};function nn(I,H){if(I=I.contextTypes,!I)return Pt;var Z={},re;for(re in I)Z[re]=H[re];return Z}var At=null;function ct(I,H){if(I!==H){I.context._currentValue2=I.parentValue,I=I.parent;var Z=H.parent;if(I===null){if(Z!==null)throw Error(t(401))}else{if(Z===null)throw Error(t(401));ct(I,Z)}H.context._currentValue2=H.value}}function sn(I){I.context._currentValue2=I.parentValue,I=I.parent,I!==null&&sn(I)}function Dt(I){var H=I.parent;H!==null&&Dt(H),I.context._currentValue2=I.value}function Ct(I,H){if(I.context._currentValue2=I.parentValue,I=I.parent,I===null)throw Error(t(402));I.depth===H.depth?ct(I,H):Ct(I,H)}function Jt(I,H){var Z=H.parent;if(Z===null)throw Error(t(402));I.depth===Z.depth?ct(I,Z):Jt(I,Z),H.context._currentValue2=H.value}function zt(I){var H=At;H!==I&&(H===null?Dt(I):I===null?sn(H):H.depth===I.depth?ct(H,I):H.depth>I.depth?Ct(H,I):Jt(H,I),At=I)}var cn={isMounted:function(){return!1},enqueueSetState:function(I,H){I=I._reactInternals,I.queue!==null&&I.queue.push(H)},enqueueReplaceState:function(I,H){I=I._reactInternals,I.replace=!0,I.queue=[H]},enqueueForceUpdate:function(){}};function Yt(I,H,Z,re){var ye=I.state!==void 0?I.state:null;I.updater=cn,I.props=Z,I.state=ye;var me={queue:[],replace:!1};I._reactInternals=me;var Se=H.contextType;if(I.context=typeof Se=="object"&&Se!==null?Se._currentValue2:re,Se=H.getDerivedStateFromProps,typeof Se=="function"&&(Se=Se(Z,ye),ye=Se==null?ye:K({},ye,Se),I.state=ye),typeof H.getDerivedStateFromProps!="function"&&typeof I.getSnapshotBeforeUpdate!="function"&&(typeof I.UNSAFE_componentWillMount=="function"||typeof I.componentWillMount=="function"))if(H=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),H!==I.state&&cn.enqueueReplaceState(I,I.state,null),me.queue!==null&&0<me.queue.length)if(H=me.queue,Se=me.replace,me.queue=null,me.replace=!1,Se&&H.length===1)I.state=H[0];else{for(me=Se?H[0]:I.state,ye=!0,Se=Se?1:0;Se<H.length;Se++){var We=H[Se];We=typeof We=="function"?We.call(I,me,Z,re):We,We!=null&&(ye?(ye=!1,me=K({},me,We)):K(me,We))}I.state=me}else me.queue=null}var Qn={id:1,overflow:""};function Fn(I,H,Z){var re=I.id;I=I.overflow;var ye=32-Mr(re)-1;re&=~(1<<ye),Z+=1;var me=32-Mr(H)+ye;if(30<me){var Se=ye-ye%5;return me=(re&(1<<Se)-1).toString(32),re>>=Se,ye-=Se,{id:1<<32-Mr(H)+ye|Z<<ye|re,overflow:me+I}}return{id:1<<me|Z<<ye|re,overflow:I}}var Mr=Math.clz32?Math.clz32:Ma,bi=Math.log,ga=Math.LN2;function Ma(I){return I>>>=0,I===0?32:31-(bi(I)/ga|0)|0}function Na(I,H){return I===H&&(I!==0||1/I===1/H)||I!==I&&H!==H}var Fs=typeof Object.is=="function"?Object.is:Na,Ci=null,Bs=null,Bn=null,tt=null,ir=!1,zn=!1,ii=0,Xr=null,zs=0;function po(){if(Ci===null)throw Error(t(321));return Ci}function _f(){if(0<zs)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Xc(){return tt===null?Bn===null?(ir=!1,Bn=tt=_f()):(ir=!0,tt=Bn):tt.next===null?(ir=!1,tt=tt.next=_f()):(ir=!0,tt=tt.next),tt}function Vs(){Bs=Ci=null,zn=!1,Bn=null,zs=0,tt=Xr=null}function Sf(I,H){return typeof H=="function"?H(I):H}function jl(I,H,Z){if(Ci=po(),tt=Xc(),ir){var re=tt.queue;if(H=re.dispatch,Xr!==null&&(Z=Xr.get(re),Z!==void 0)){Xr.delete(re),re=tt.memoizedState;do re=I(re,Z.action),Z=Z.next;while(Z!==null);return tt.memoizedState=re,[re,H]}return[tt.memoizedState,H]}return I=I===Sf?typeof H=="function"?H():H:Z!==void 0?Z(H):H,tt.memoizedState=I,I=tt.queue={last:null,dispatch:null},I=I.dispatch=Fd.bind(null,Ci,I),[tt.memoizedState,I]}function Of(I,H){if(Ci=po(),tt=Xc(),H=H===void 0?null:H,tt!==null){var Z=tt.memoizedState;if(Z!==null&&H!==null){var re=Z[1];e:if(re===null)re=!1;else{for(var ye=0;ye<re.length&&ye<H.length;ye++)if(!Fs(H[ye],re[ye])){re=!1;break e}re=!0}if(re)return Z[0]}}return I=I(),tt.memoizedState=[I,H],I}function Fd(I,H,Z){if(25<=zs)throw Error(t(301));if(I===Ci)if(zn=!0,I={action:Z,next:null},Xr===null&&(Xr=new Map),Z=Xr.get(H),Z===void 0)Xr.set(H,I);else{for(H=Z;H.next!==null;)H=H.next;H.next=I}}function Bd(){throw Error(t(394))}function Dl(){}var Ef={readContext:function(I){return I._currentValue2},useContext:function(I){return po(),I._currentValue2},useMemo:Of,useReducer:jl,useRef:function(I){Ci=po(),tt=Xc();var H=tt.memoizedState;return H===null?(I={current:I},tt.memoizedState=I):H},useState:function(I){return jl(Sf,I)},useInsertionEffect:Dl,useLayoutEffect:function(){},useCallback:function(I,H){return Of(function(){return I},H)},useImperativeHandle:Dl,useEffect:Dl,useDebugValue:Dl,useDeferredValue:function(I){return po(),I},useTransition:function(){return po(),[!1,Bd]},useId:function(){var I=Bs.treeContext,H=I.overflow;I=I.id,I=(I&~(1<<32-Mr(I)-1)).toString(32)+H;var Z=Fl;if(Z===null)throw Error(t(404));return H=ii++,I=":"+Z.idPrefix+"R"+I,0<H&&(I+="H"+H.toString(32)),I+":"},useMutableSource:function(I,H){return po(),H(I._source)},useSyncExternalStore:function(I,H,Z){if(Z===void 0)throw Error(t(407));return Z()}},Fl=null,qc=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function zd(I){return console.error(I),null}function Yo(){}function Vd(I,H,Z,re,ye,me,Se,We,ht){var dt=[],Et=new Set;return H={destination:null,responseState:H,progressiveChunkSize:re===void 0?12800:re,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Et,pingedTasks:dt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ye===void 0?zd:ye,onAllReady:Yo,onShellReady:Se===void 0?Yo:Se,onShellError:Yo,onFatalError:Yo},Z=Bl(H,0,null,Z,!1,!1),Z.parentFlushed=!0,I=Zc(H,I,null,Z,Et,Pt,null,Qn),dt.push(I),H}function Zc(I,H,Z,re,ye,me,Se,We){I.allPendingTasks++,Z===null?I.pendingRootTasks++:Z.pendingTasks++;var ht={node:H,ping:function(){var dt=I.pingedTasks;dt.push(ht),dt.length===1&&Tf(I)},blockedBoundary:Z,blockedSegment:re,abortSet:ye,legacyContext:me,context:Se,treeContext:We};return ye.add(ht),ht}function Bl(I,H,Z,re,ye,me){return{status:0,id:-1,index:H,parentFlushed:!1,chunks:[],children:[],formatContext:re,boundary:Z,lastPushedText:ye,textEmbedded:me}}function Ws(I,H){if(I=I.onError(H),I!=null&&typeof I!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof I+'" instead');return I}function zl(I,H){var Z=I.onShellError;Z(H),Z=I.onFatalError,Z(H),I.destination!==null?(I.status=2,I.destination.destroy(H)):(I.status=1,I.fatalError=H)}function kf(I,H,Z,re,ye){for(Ci={},Bs=H,ii=0,I=Z(re,ye);zn;)zn=!1,ii=0,zs+=1,tt=null,I=Z(re,ye);return Vs(),I}function Hs(I,H,Z,re){var ye=Z.render(),me=re.childContextTypes;if(me!=null){var Se=H.legacyContext;if(typeof Z.getChildContext!="function")re=Se;else{Z=Z.getChildContext();for(var We in Z)if(!(We in me))throw Error(t(108,Qe(re)||"Unknown",We));re=K({},Se,Z)}H.legacyContext=re,ai(I,H,ye),H.legacyContext=Se}else ai(I,H,ye)}function Af(I,H){if(I&&I.defaultProps){H=K({},H),I=I.defaultProps;for(var Z in I)H[Z]===void 0&&(H[Z]=I[Z]);return H}return H}function Xo(I,H,Z,re,ye){if(typeof Z=="function")if(Z.prototype&&Z.prototype.isReactComponent){ye=nn(Z,H.legacyContext);var me=Z.contextType;me=new Z(re,typeof me=="object"&&me!==null?me._currentValue2:ye),Yt(me,Z,re,ye),Hs(I,H,me,Z)}else{me=nn(Z,H.legacyContext),ye=kf(I,H,Z,re,me);var Se=ii!==0;if(typeof ye=="object"&&ye!==null&&typeof ye.render=="function"&&ye.$$typeof===void 0)Yt(ye,Z,re,me),Hs(I,H,ye,Z);else if(Se){re=H.treeContext,H.treeContext=Fn(re,1,0);try{ai(I,H,ye)}finally{H.treeContext=re}}else ai(I,H,ye)}else if(typeof Z=="string"){switch(ye=H.blockedSegment,me=N(ye.chunks,Z,re,I.responseState,ye.formatContext),ye.lastPushedText=!1,Se=ye.formatContext,ye.formatContext=C(Se,Z,re),Kc(I,H,me),ye.formatContext=Se,Z){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:ye.chunks.push("</",Z,">")}ye.lastPushedText=!1}else{switch(Z){case nt:case Ge:case ae:case ce:case oe:ai(I,H,re.children);return;case $e:ai(I,H,re.children);return;case je:throw Error(t(343));case Ce:e:{Z=H.blockedBoundary,ye=H.blockedSegment,me=re.fallback,re=re.children,Se=new Set;var We={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Se,errorDigest:null},ht=Bl(I,ye.chunks.length,We,ye.formatContext,!1,!1);ye.children.push(ht),ye.lastPushedText=!1;var dt=Bl(I,0,null,ye.formatContext,!1,!1);dt.parentFlushed=!0,H.blockedBoundary=We,H.blockedSegment=dt;try{if(Kc(I,H,re),I.responseState.generateStaticMarkup||dt.lastPushedText&&dt.textEmbedded&&dt.chunks.push("<!-- -->"),dt.status=1,go(We,dt),We.pendingTasks===0)break e}catch(Et){dt.status=4,We.forceClientRender=!0,We.errorDigest=Ws(I,Et)}finally{H.blockedBoundary=Z,H.blockedSegment=ye}H=Zc(I,me,Z,ht,Se,H.legacyContext,H.context,H.treeContext),I.pingedTasks.push(H)}return}if(typeof Z=="object"&&Z!==null)switch(Z.$$typeof){case be:if(re=kf(I,H,Z.render,re,ye),ii!==0){Z=H.treeContext,H.treeContext=Fn(Z,1,0);try{ai(I,H,re)}finally{H.treeContext=Z}}else ai(I,H,re);return;case Me:Z=Z.type,re=Af(Z,re),Xo(I,H,Z,re,ye);return;case fe:if(ye=re.children,Z=Z._context,re=re.value,me=Z._currentValue2,Z._currentValue2=re,Se=At,At=re={parent:Se,depth:Se===null?0:Se.depth+1,context:Z,parentValue:me,value:re},H.context=re,ai(I,H,ye),I=At,I===null)throw Error(t(403));re=I.parentValue,I.context._currentValue2=re===Ze?I.context._defaultValue:re,I=At=I.parent,H.context=I;return;case le:re=re.children,re=re(Z._currentValue2),ai(I,H,re);return;case Le:ye=Z._init,Z=ye(Z._payload),re=Af(Z,re),Xo(I,H,Z,re,void 0);return}throw Error(t(130,Z==null?Z:typeof Z,""))}}function ai(I,H,Z){if(H.node=Z,typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case Q:Xo(I,H,Z.type,Z.props,Z.ref);return;case ne:throw Error(t(257));case Le:var re=Z._init;Z=re(Z._payload),ai(I,H,Z);return}if(y(Z)){$f(I,H,Z);return}if(Z===null||typeof Z!="object"?re=null:(re=Ue&&Z[Ue]||Z["@@iterator"],re=typeof re=="function"?re:null),re&&(re=re.call(Z))){if(Z=re.next(),!Z.done){var ye=[];do ye.push(Z.value),Z=re.next();while(!Z.done);$f(I,H,ye)}return}throw I=Object.prototype.toString.call(Z),Error(t(31,I==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":I))}typeof Z=="string"?(re=H.blockedSegment,re.lastPushedText=Y(H.blockedSegment.chunks,Z,I.responseState,re.lastPushedText)):typeof Z=="number"&&(re=H.blockedSegment,re.lastPushedText=Y(H.blockedSegment.chunks,""+Z,I.responseState,re.lastPushedText))}function $f(I,H,Z){for(var re=Z.length,ye=0;ye<re;ye++){var me=H.treeContext;H.treeContext=Fn(me,re,ye);try{Kc(I,H,Z[ye])}finally{H.treeContext=me}}}function Kc(I,H,Z){var re=H.blockedSegment.formatContext,ye=H.legacyContext,me=H.context;try{return ai(I,H,Z)}catch(ht){if(Vs(),typeof ht=="object"&&ht!==null&&typeof ht.then=="function"){Z=ht;var Se=H.blockedSegment,We=Bl(I,Se.chunks.length,null,Se.formatContext,Se.lastPushedText,!0);Se.children.push(We),Se.lastPushedText=!1,I=Zc(I,H.node,H.blockedBoundary,We,H.abortSet,H.legacyContext,H.context,H.treeContext).ping,Z.then(I,I),H.blockedSegment.formatContext=re,H.legacyContext=ye,H.context=me,zt(me)}else throw H.blockedSegment.formatContext=re,H.legacyContext=ye,H.context=me,zt(me),ht}}function Vl(I){var H=I.blockedBoundary;I=I.blockedSegment,I.status=3,qo(this,H,I)}function Jc(I,H,Z){var re=I.blockedBoundary;I.blockedSegment.status=3,re===null?(H.allPendingTasks--,H.status!==2&&(H.status=2,H.destination!==null&&H.destination.push(null))):(re.pendingTasks--,re.forceClientRender||(re.forceClientRender=!0,I=Z===void 0?Error(t(432)):Z,re.errorDigest=H.onError(I),re.parentFlushed&&H.clientRenderedBoundaries.push(re)),re.fallbackAbortableTasks.forEach(function(ye){return Jc(ye,H,Z)}),re.fallbackAbortableTasks.clear(),H.allPendingTasks--,H.allPendingTasks===0&&(re=H.onAllReady,re()))}function go(I,H){if(H.chunks.length===0&&H.children.length===1&&H.children[0].boundary===null){var Z=H.children[0];Z.id=H.id,Z.parentFlushed=!0,Z.status===1&&go(I,Z)}else I.completedSegments.push(H)}function qo(I,H,Z){if(H===null){if(Z.parentFlushed){if(I.completedRootSegment!==null)throw Error(t(389));I.completedRootSegment=Z}I.pendingRootTasks--,I.pendingRootTasks===0&&(I.onShellError=Yo,H=I.onShellReady,H())}else H.pendingTasks--,H.forceClientRender||(H.pendingTasks===0?(Z.parentFlushed&&Z.status===1&&go(H,Z),H.parentFlushed&&I.completedBoundaries.push(H),H.fallbackAbortableTasks.forEach(Vl,I),H.fallbackAbortableTasks.clear()):Z.parentFlushed&&Z.status===1&&(go(H,Z),H.completedSegments.length===1&&H.parentFlushed&&I.partialBoundaries.push(H)));I.allPendingTasks--,I.allPendingTasks===0&&(I=I.onAllReady,I())}function Tf(I){if(I.status!==2){var H=At,Z=qc.current;qc.current=Ef;var re=Fl;Fl=I.responseState;try{var ye=I.pingedTasks,me;for(me=0;me<ye.length;me++){var Se=ye[me],We=I,ht=Se.blockedSegment;if(ht.status===0){zt(Se.context);try{ai(We,Se,Se.node),We.responseState.generateStaticMarkup||ht.lastPushedText&&ht.textEmbedded&&ht.chunks.push("<!-- -->"),Se.abortSet.delete(Se),ht.status=1,qo(We,Se.blockedBoundary,ht)}catch(wi){if(Vs(),typeof wi=="object"&&wi!==null&&typeof wi.then=="function"){var dt=Se.ping;wi.then(dt,dt)}else{Se.abortSet.delete(Se),ht.status=4;var Et=Se.blockedBoundary,Vn=wi,ma=Ws(We,Vn);if(Et===null?zl(We,Vn):(Et.pendingTasks--,Et.forceClientRender||(Et.forceClientRender=!0,Et.errorDigest=ma,Et.parentFlushed&&We.clientRenderedBoundaries.push(Et))),We.allPendingTasks--,We.allPendingTasks===0){var Ji=We.onAllReady;Ji()}}}finally{}}}ye.splice(0,me),I.destination!==null&&Zo(I,I.destination)}catch(wi){Ws(I,wi),zl(I,wi)}finally{Fl=re,qc.current=Z,Z===Ef&&zt(H)}}}function Gs(I,H,Z){switch(Z.parentFlushed=!0,Z.status){case 0:var re=Z.id=I.nextSegmentId++;return Z.lastPushedText=!1,Z.textEmbedded=!1,I=I.responseState,H.push('<template id="'),H.push(I.placeholderPrefix),I=re.toString(16),H.push(I),H.push('"></template>');case 1:Z.status=2;var ye=!0;re=Z.chunks;var me=0;Z=Z.children;for(var Se=0;Se<Z.length;Se++){for(ye=Z[Se];me<ye.index;me++)H.push(re[me]);ye=Us(I,H,ye)}for(;me<re.length-1;me++)H.push(re[me]);return me<re.length&&(ye=H.push(re[me])),ye;default:throw Error(t(390))}}function Us(I,H,Z){var re=Z.boundary;if(re===null)return Gs(I,H,Z);if(re.parentFlushed=!0,re.forceClientRender)return I.responseState.generateStaticMarkup||(re=re.errorDigest,H.push("<!--$!-->"),H.push("<template"),re&&(H.push(' data-dgst="'),re=p(re),H.push(re),H.push('"')),H.push("></template>")),Gs(I,H,Z),I=I.responseState.generateStaticMarkup?!0:H.push("<!--/$-->"),I;if(0<re.pendingTasks){re.rootSegmentID=I.nextSegmentId++,0<re.completedSegments.length&&I.partialBoundaries.push(re);var ye=I.responseState,me=ye.nextSuspenseID++;return ye=ye.boundaryPrefix+me.toString(16),re=re.id=ye,D(H,I.responseState,re),Gs(I,H,Z),H.push("<!--/$-->")}if(re.byteSize>I.progressiveChunkSize)return re.rootSegmentID=I.nextSegmentId++,I.completedBoundaries.push(re),D(H,I.responseState,re.id),Gs(I,H,Z),H.push("<!--/$-->");if(I.responseState.generateStaticMarkup||H.push("<!--$-->"),Z=re.completedSegments,Z.length!==1)throw Error(t(391));return Us(I,H,Z[0]),I=I.responseState.generateStaticMarkup?!0:H.push("<!--/$-->"),I}function Wl(I,H,Z){return F(H,I.responseState,Z.formatContext,Z.id),Us(I,H,Z),V(H,Z.formatContext)}function Hl(I,H,Z){for(var re=Z.completedSegments,ye=0;ye<re.length;ye++)Gl(I,H,Z,re[ye]);if(re.length=0,I=I.responseState,re=Z.id,Z=Z.rootSegmentID,H.push(I.startInlineScript),I.sentCompleteBoundaryFunction?H.push('$RC("'):(I.sentCompleteBoundaryFunction=!0,H.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),re===null)throw Error(t(395));return Z=Z.toString(16),H.push(re),H.push('","'),H.push(I.segmentPrefix),H.push(Z),H.push('")<\/script>')}function Gl(I,H,Z,re){if(re.status===2)return!0;var ye=re.id;if(ye===-1){if((re.id=Z.rootSegmentID)===-1)throw Error(t(392));return Wl(I,H,re)}return Wl(I,H,re),I=I.responseState,H.push(I.startInlineScript),I.sentCompleteSegmentFunction?H.push('$RS("'):(I.sentCompleteSegmentFunction=!0,H.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),H.push(I.segmentPrefix),ye=ye.toString(16),H.push(ye),H.push('","'),H.push(I.placeholderPrefix),H.push(ye),H.push('")<\/script>')}function Zo(I,H){try{var Z=I.completedRootSegment;if(Z!==null&&I.pendingRootTasks===0){Us(I,H,Z),I.completedRootSegment=null;var re=I.responseState.bootstrapChunks;for(Z=0;Z<re.length-1;Z++)H.push(re[Z]);Z<re.length&&H.push(re[Z])}var ye=I.clientRenderedBoundaries,me;for(me=0;me<ye.length;me++){var Se=ye[me];re=H;var We=I.responseState,ht=Se.id,dt=Se.errorDigest,Et=Se.errorMessage,Vn=Se.errorComponentStack;if(re.push(We.startInlineScript),We.sentClientRenderFunction?re.push('$RX("'):(We.sentClientRenderFunction=!0,re.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),ht===null)throw Error(t(395));if(re.push(ht),re.push('"'),dt||Et||Vn){re.push(",");var ma=B(dt||"");re.push(ma)}if(Et||Vn){re.push(",");var Ji=B(Et||"");re.push(Ji)}if(Vn){re.push(",");var wi=B(Vn);re.push(wi)}if(!re.push(")<\/script>")){I.destination=null,me++,ye.splice(0,me);return}}ye.splice(0,me);var Jo=I.completedBoundaries;for(me=0;me<Jo.length;me++)if(!Hl(I,H,Jo[me])){I.destination=null,me++,Jo.splice(0,me);return}Jo.splice(0,me);var Ia=I.partialBoundaries;for(me=0;me<Ia.length;me++){var eu=Ia[me];e:{ye=I,Se=H;var Ys=eu.completedSegments;for(We=0;We<Ys.length;We++)if(!Gl(ye,Se,eu,Ys[We])){We++,Ys.splice(0,We);var Mf=!1;break e}Ys.splice(0,We),Mf=!0}if(!Mf){I.destination=null,me++,Ia.splice(0,me);return}}Ia.splice(0,me);var mo=I.completedBoundaries;for(me=0;me<mo.length;me++)if(!Hl(I,H,mo[me])){I.destination=null,me++,mo.splice(0,me);return}mo.splice(0,me)}finally{I.allPendingTasks===0&&I.pingedTasks.length===0&&I.clientRenderedBoundaries.length===0&&I.completedBoundaries.length===0&&H.push(null)}}function Pf(I,H){try{var Z=I.abortableTasks;Z.forEach(function(re){return Jc(re,I,H)}),Z.clear(),I.destination!==null&&Zo(I,I.destination)}catch(re){Ws(I,re),zl(I,re)}}function Qc(){}function Ko(I,H,Z,re){var ye=!1,me=null,Se="",We={push:function(dt){return dt!==null&&(Se+=dt),!0},destroy:function(dt){ye=!0,me=dt}},ht=!1;if(I=Vd(I,G(Z,H?H.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Qc,void 0,function(){ht=!0}),Tf(I),Pf(I,re),I.status===1)I.status=2,We.destroy(I.fatalError);else if(I.status!==2&&I.destination===null){I.destination=We;try{Zo(I,We)}catch(dt){Ws(I,dt),zl(I,dt)}}if(ye)throw me;if(!ht)throw Error(t(426));return Se}return _u.renderToNodeStream=function(){throw Error(t(207))},_u.renderToStaticMarkup=function(I,H){return Ko(I,H,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},_u.renderToStaticNodeStream=function(){throw Error(t(208))},_u.renderToString=function(I,H){return Ko(I,H,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},_u.version="18.2.0",_u}var ug={};/**
379 * @license React
380 * react-dom-server.browser.production.min.js
381 *
382 * Copyright (c) Facebook, Inc. and its affiliates.
383 *
384 * This source code is licensed under the MIT license found in the
385 * LICENSE file in the root directory of this source tree.
386 */var kM;function mWe(){if(kM)return ug;kM=1;var e=mN();function t(L){for(var W="https://reactjs.org/docs/error-decoder.html?invariant="+L,X=1;X<arguments.length;X++)W+="&args[]="+encodeURIComponent(arguments[X]);return"Minified React error #"+L+"; visit "+W+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function i(L,W){if(W.length!==0)if(512<W.length)0<r&&(L.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),L.enqueue(W);else{var X=n.length-r;X<W.length&&(X===0?L.enqueue(n):(n.set(W.subarray(0,X),r),L.enqueue(n),W=W.subarray(X)),n=new Uint8Array(512),r=0),n.set(W,r),r+=W.length}}function a(L,W){return i(L,W),!0}function o(L){n&&0<r&&(L.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var s=new TextEncoder;function l(L){return s.encode(L)}function c(L){return s.encode(L)}function u(L,W){typeof L.error=="function"?L.error(W):L.close()}var f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function g(L){return f.call(p,L)?!0:f.call(h,L)?!1:d.test(L)?p[L]=!0:(h[L]=!0,!1)}function v(L,W,X,te,ve,ge,Ee){this.acceptsBooleans=W===2||W===3||W===4,this.attributeName=te,this.attributeNamespace=ve,this.mustUseProperty=X,this.propertyName=L,this.type=W,this.sanitizeURL=ge,this.removeEmptyString=Ee}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(L){y[L]=new v(L,0,!1,L,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(L){var W=L[0];y[W]=new v(W,1,!1,L[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(L){y[L]=new v(L,2,!1,L.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(L){y[L]=new v(L,2,!1,L,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(L){y[L]=new v(L,3,!1,L.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(L){y[L]=new v(L,3,!0,L,null,!1,!1)}),["capture","download"].forEach(function(L){y[L]=new v(L,4,!1,L,null,!1,!1)}),["cols","rows","size","span"].forEach(function(L){y[L]=new v(L,6,!1,L,null,!1,!1)}),["rowSpan","start"].forEach(function(L){y[L]=new v(L,5,!1,L.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function C(L){return L[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(L){var W=L.replace(x,C);y[W]=new v(W,1,!1,L,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(L){var W=L.replace(x,C);y[W]=new v(W,1,!1,L,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(L){var W=L.replace(x,C);y[W]=new v(W,1,!1,L,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(L){y[L]=new v(L,1,!1,L.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(L){y[L]=new v(L,1,!1,L.toLowerCase(),null,!0,!0)});var _={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["Webkit","ms","Moz","O"];Object.keys(_).forEach(function(L){S.forEach(function(W){W=W+L.charAt(0).toUpperCase()+L.substring(1),_[W]=_[L]})});var O=/["'&<>]/;function E(L){if(typeof L=="boolean"||typeof L=="number")return""+L;L=""+L;var W=O.exec(L);if(W){var X="",te,ve=0;for(te=W.index;te<L.length;te++){switch(L.charCodeAt(te)){case 34:W="&quot;";break;case 38:W="&amp;";break;case 39:W="&#x27;";break;case 60:W="&lt;";break;case 62:W="&gt;";break;default:continue}ve!==te&&(X+=L.substring(ve,te)),ve=te+1,X+=W}L=ve!==te?X+L.substring(ve,te):X}return L}var k=/([A-Z])/g,$=/^ms-/,T=Array.isArray,M=c("<script>"),R=c("<\/script>"),N=c('<script src="'),D=c('<script type="module" src="'),F=c('" async=""><\/script>'),V=/(<\/|<)(s)(cript)/gi;function z(L,W,X,te){return""+W+(X==="s"?"\\u0073":"\\u0053")+te}function B(L,W,X,te,ve){L=L===void 0?"":L,W=W===void 0?M:c('<script nonce="'+E(W)+'">');var ge=[];if(X!==void 0&&ge.push(W,l((""+X).replace(V,z)),R),te!==void 0)for(X=0;X<te.length;X++)ge.push(N,l(E(te[X])),F);if(ve!==void 0)for(te=0;te<ve.length;te++)ge.push(D,l(E(ve[te])),F);return{bootstrapChunks:ge,startInlineScript:W,placeholderPrefix:c(L+"P:"),segmentPrefix:c(L+"S:"),boundaryPrefix:L+"B:",idPrefix:L,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function G(L,W){return{insertionMode:L,selectedValue:W}}function Y(L){return G(L==="http://www.w3.org/2000/svg"?2:L==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function K(L,W,X){switch(W){case"select":return G(1,X.value!=null?X.value:X.defaultValue);case"svg":return G(2,null);case"math":return G(3,null);case"foreignObject":return G(1,null);case"table":return G(4,null);case"thead":case"tbody":case"tfoot":return G(5,null);case"colgroup":return G(7,null);case"tr":return G(6,null)}return 4<=L.insertionMode||L.insertionMode===0?G(1,null):L}var Q=c("<!-- -->");function ne(L,W,X,te){return W===""?te:(te&&L.push(Q),L.push(l(E(W))),!0)}var oe=new Map,ae=c(' style="'),ce=c(":"),fe=c(";");function le(L,W,X){if(typeof X!="object")throw Error(t(62));W=!0;for(var te in X)if(f.call(X,te)){var ve=X[te];if(ve!=null&&typeof ve!="boolean"&&ve!==""){if(te.indexOf("--")===0){var ge=l(E(te));ve=l(E((""+ve).trim()))}else{ge=te;var Ee=oe.get(ge);Ee!==void 0||(Ee=c(E(ge.replace(k,"-$1").toLowerCase().replace($,"-ms-"))),oe.set(ge,Ee)),ge=Ee,ve=typeof ve=="number"?ve===0||f.call(_,te)?l(""+ve):l(ve+"px"):l(E((""+ve).trim()))}W?(W=!1,L.push(ae,ge,ce,ve)):L.push(fe,ge,ce,ve)}}W||L.push($e)}var be=c(" "),Ce=c('="'),$e=c('"'),Me=c('=""');function Le(L,W,X,te){switch(X){case"style":le(L,W,te);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<X.length)||X[0]!=="o"&&X[0]!=="O"||X[1]!=="n"&&X[1]!=="N"){if(W=y.hasOwnProperty(X)?y[X]:null,W!==null){switch(typeof te){case"function":case"symbol":return;case"boolean":if(!W.acceptsBooleans)return}switch(X=l(W.attributeName),W.type){case 3:te&&L.push(be,X,Me);break;case 4:te===!0?L.push(be,X,Me):te!==!1&&L.push(be,X,Ce,l(E(te)),$e);break;case 5:isNaN(te)||L.push(be,X,Ce,l(E(te)),$e);break;case 6:!isNaN(te)&&1<=te&&L.push(be,X,Ce,l(E(te)),$e);break;default:W.sanitizeURL&&(te=""+te),L.push(be,X,Ce,l(E(te)),$e)}}else if(g(X)){switch(typeof te){case"function":case"symbol":return;case"boolean":if(W=X.toLowerCase().slice(0,5),W!=="data-"&&W!=="aria-")return}L.push(be,l(X),Ce,l(E(te)),$e)}}}var je=c(">"),Ge=c("/>");function nt(L,W,X){if(W!=null){if(X!=null)throw Error(t(60));if(typeof W!="object"||!("__html"in W))throw Error(t(61));W=W.__html,W!=null&&L.push(l(""+W))}}function Ze(L){var W="";return e.Children.forEach(L,function(X){X!=null&&(W+=X)}),W}var Ue=c(' selected=""');function Qe(L,W,X,te){L.push(ct(X));var ve=X=null,ge;for(ge in W)if(f.call(W,ge)){var Ee=W[ge];if(Ee!=null)switch(ge){case"children":X=Ee;break;case"dangerouslySetInnerHTML":ve=Ee;break;default:Le(L,te,ge,Ee)}}return L.push(je),nt(L,ve,X),typeof X=="string"?(L.push(l(E(X))),null):X}var Pt=c(`
387`),nn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,At=new Map;function ct(L){var W=At.get(L);if(W===void 0){if(!nn.test(L))throw Error(t(65,L));W=c("<"+L),At.set(L,W)}return W}var sn=c("<!DOCTYPE html>");function Dt(L,W,X,te,ve){switch(W){case"select":L.push(ct("select"));var ge=null,Ee=null;for(wt in X)if(f.call(X,wt)){var De=X[wt];if(De!=null)switch(wt){case"children":ge=De;break;case"dangerouslySetInnerHTML":Ee=De;break;case"defaultValue":case"value":break;default:Le(L,te,wt,De)}}return L.push(je),nt(L,Ee,ge),ge;case"option":Ee=ve.selectedValue,L.push(ct("option"));var at=De=null,Mt=null,wt=null;for(ge in X)if(f.call(X,ge)){var Ln=X[ge];if(Ln!=null)switch(ge){case"children":De=Ln;break;case"selected":Mt=Ln;break;case"dangerouslySetInnerHTML":wt=Ln;break;case"value":at=Ln;default:Le(L,te,ge,Ln)}}if(Ee!=null)if(X=at!==null?""+at:Ze(De),T(Ee)){for(te=0;te<Ee.length;te++)if(""+Ee[te]===X){L.push(Ue);break}}else""+Ee===X&&L.push(Ue);else Mt&&L.push(Ue);return L.push(je),nt(L,wt,De),De;case"textarea":L.push(ct("textarea")),wt=Ee=ge=null;for(De in X)if(f.call(X,De)&&(at=X[De],at!=null))switch(De){case"children":wt=at;break;case"value":ge=at;break;case"defaultValue":Ee=at;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:Le(L,te,De,at)}if(ge===null&&Ee!==null&&(ge=Ee),L.push(je),wt!=null){if(ge!=null)throw Error(t(92));if(T(wt)&&1<wt.length)throw Error(t(93));ge=""+wt}return typeof ge=="string"&&ge[0]===`
388`&&L.push(Pt),ge!==null&&L.push(l(E(""+ge))),null;case"input":L.push(ct("input")),at=wt=De=ge=null;for(Ee in X)if(f.call(X,Ee)&&(Mt=X[Ee],Mt!=null))switch(Ee){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":at=Mt;break;case"defaultValue":De=Mt;break;case"checked":wt=Mt;break;case"value":ge=Mt;break;default:Le(L,te,Ee,Mt)}return wt!==null?Le(L,te,"checked",wt):at!==null&&Le(L,te,"checked",at),ge!==null?Le(L,te,"value",ge):De!==null&&Le(L,te,"value",De),L.push(Ge),null;case"menuitem":L.push(ct("menuitem"));for(var _i in X)if(f.call(X,_i)&&(ge=X[_i],ge!=null))switch(_i){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:Le(L,te,_i,ge)}return L.push(je),null;case"title":L.push(ct("title")),ge=null;for(Ln in X)if(f.call(X,Ln)&&(Ee=X[Ln],Ee!=null))switch(Ln){case"children":ge=Ee;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:Le(L,te,Ln,Ee)}return L.push(je),ge;case"listing":case"pre":L.push(ct(W)),Ee=ge=null;for(at in X)if(f.call(X,at)&&(De=X[at],De!=null))switch(at){case"children":ge=De;break;case"dangerouslySetInnerHTML":Ee=De;break;default:Le(L,te,at,De)}if(L.push(je),Ee!=null){if(ge!=null)throw Error(t(60));if(typeof Ee!="object"||!("__html"in Ee))throw Error(t(61));X=Ee.__html,X!=null&&(typeof X=="string"&&0<X.length&&X[0]===`
389`?L.push(Pt,l(X)):L.push(l(""+X)))}return typeof ge=="string"&&ge[0]===`
390`&&L.push(Pt),ge;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":L.push(ct(W));for(var va in X)if(f.call(X,va)&&(ge=X[va],ge!=null))switch(va){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,W));default:Le(L,te,va,ge)}return L.push(Ge),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Qe(L,X,W,te);case"html":return ve.insertionMode===0&&L.push(sn),Qe(L,X,W,te);default:if(W.indexOf("-")===-1&&typeof X.is!="string")return Qe(L,X,W,te);L.push(ct(W)),Ee=ge=null;for(Mt in X)if(f.call(X,Mt)&&(De=X[Mt],De!=null))switch(Mt){case"children":ge=De;break;case"dangerouslySetInnerHTML":Ee=De;break;case"style":le(L,te,De);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:g(Mt)&&typeof De!="function"&&typeof De!="symbol"&&L.push(be,l(Mt),Ce,l(E(De)),$e)}return L.push(je),nt(L,Ee,ge),ge}}var Ct=c("</"),Jt=c(">"),zt=c('<template id="'),cn=c('"></template>'),Yt=c("<!--$-->"),Qn=c('<!--$?--><template id="'),Fn=c('"></template>'),Mr=c("<!--$!-->"),bi=c("<!--/$-->"),ga=c("<template"),Ma=c('"'),Na=c(' data-dgst="');c(' data-msg="'),c(' data-stck="');var Fs=c("></template>");function Ci(L,W,X){if(i(L,Qn),X===null)throw Error(t(395));return i(L,X),a(L,Fn)}var Bs=c('<div hidden id="'),Bn=c('">'),tt=c("</div>"),ir=c('<svg aria-hidden="true" style="display:none" id="'),zn=c('">'),ii=c("</svg>"),Xr=c('<math aria-hidden="true" style="display:none" id="'),zs=c('">'),po=c("</math>"),_f=c('<table hidden id="'),Xc=c('">'),Vs=c("</table>"),Sf=c('<table hidden><tbody id="'),jl=c('">'),Of=c("</tbody></table>"),Fd=c('<table hidden><tr id="'),Bd=c('">'),Dl=c("</tr></table>"),Ef=c('<table hidden><colgroup id="'),Fl=c('">'),qc=c("</colgroup></table>");function zd(L,W,X,te){switch(X.insertionMode){case 0:case 1:return i(L,Bs),i(L,W.segmentPrefix),i(L,l(te.toString(16))),a(L,Bn);case 2:return i(L,ir),i(L,W.segmentPrefix),i(L,l(te.toString(16))),a(L,zn);case 3:return i(L,Xr),i(L,W.segmentPrefix),i(L,l(te.toString(16))),a(L,zs);case 4:return i(L,_f),i(L,W.segmentPrefix),i(L,l(te.toString(16))),a(L,Xc);case 5:return i(L,Sf),i(L,W.segmentPrefix),i(L,l(te.toString(16))),a(L,jl);case 6:return i(L,Fd),i(L,W.segmentPrefix),i(L,l(te.toString(16))),a(L,Bd);case 7:return i(L,Ef),i(L,W.segmentPrefix),i(L,l(te.toString(16))),a(L,Fl);default:throw Error(t(397))}}function Yo(L,W){switch(W.insertionMode){case 0:case 1:return a(L,tt);case 2:return a(L,ii);case 3:return a(L,po);case 4:return a(L,Vs);case 5:return a(L,Of);case 6:return a(L,Dl);case 7:return a(L,qc);default:throw Error(t(397))}}var Vd=c('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Zc=c('$RS("'),Bl=c('","'),Ws=c('")<\/script>'),zl=c('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),kf=c('$RC("'),Hs=c('","'),Af=c('")<\/script>'),Xo=c('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),ai=c('$RX("'),$f=c('"'),Kc=c(")<\/script>"),Vl=c(","),Jc=/[<\u2028\u2029]/g;function go(L){return JSON.stringify(L).replace(Jc,function(W){switch(W){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var qo=Object.assign,Tf=Symbol.for("react.element"),Gs=Symbol.for("react.portal"),Us=Symbol.for("react.fragment"),Wl=Symbol.for("react.strict_mode"),Hl=Symbol.for("react.profiler"),Gl=Symbol.for("react.provider"),Zo=Symbol.for("react.context"),Pf=Symbol.for("react.forward_ref"),Qc=Symbol.for("react.suspense"),Ko=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Z=Symbol.for("react.scope"),re=Symbol.for("react.debug_trace_mode"),ye=Symbol.for("react.legacy_hidden"),me=Symbol.for("react.default_value"),Se=Symbol.iterator;function We(L){if(L==null)return null;if(typeof L=="function")return L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case Us:return"Fragment";case Gs:return"Portal";case Hl:return"Profiler";case Wl:return"StrictMode";case Qc:return"Suspense";case Ko:return"SuspenseList"}if(typeof L=="object")switch(L.$$typeof){case Zo:return(L.displayName||"Context")+".Consumer";case Gl:return(L._context.displayName||"Context")+".Provider";case Pf:var W=L.render;return L=L.displayName,L||(L=W.displayName||W.name||"",L=L!==""?"ForwardRef("+L+")":"ForwardRef"),L;case I:return W=L.displayName||null,W!==null?W:We(L.type)||"Memo";case H:W=L._payload,L=L._init;try{return We(L(W))}catch{}}return null}var ht={};function dt(L,W){if(L=L.contextTypes,!L)return ht;var X={},te;for(te in L)X[te]=W[te];return X}var Et=null;function Vn(L,W){if(L!==W){L.context._currentValue=L.parentValue,L=L.parent;var X=W.parent;if(L===null){if(X!==null)throw Error(t(401))}else{if(X===null)throw Error(t(401));Vn(L,X)}W.context._currentValue=W.value}}function ma(L){L.context._currentValue=L.parentValue,L=L.parent,L!==null&&ma(L)}function Ji(L){var W=L.parent;W!==null&&Ji(W),L.context._currentValue=L.value}function wi(L,W){if(L.context._currentValue=L.parentValue,L=L.parent,L===null)throw Error(t(402));L.depth===W.depth?Vn(L,W):wi(L,W)}function Jo(L,W){var X=W.parent;if(X===null)throw Error(t(402));L.depth===X.depth?Vn(L,X):Jo(L,X),W.context._currentValue=W.value}function Ia(L){var W=Et;W!==L&&(W===null?Ji(L):L===null?ma(W):W.depth===L.depth?Vn(W,L):W.depth>L.depth?wi(W,L):Jo(W,L),Et=L)}var eu={isMounted:function(){return!1},enqueueSetState:function(L,W){L=L._reactInternals,L.queue!==null&&L.queue.push(W)},enqueueReplaceState:function(L,W){L=L._reactInternals,L.replace=!0,L.queue=[W]},enqueueForceUpdate:function(){}};function Ys(L,W,X,te){var ve=L.state!==void 0?L.state:null;L.updater=eu,L.props=X,L.state=ve;var ge={queue:[],replace:!1};L._reactInternals=ge;var Ee=W.contextType;if(L.context=typeof Ee=="object"&&Ee!==null?Ee._currentValue:te,Ee=W.getDerivedStateFromProps,typeof Ee=="function"&&(Ee=Ee(X,ve),ve=Ee==null?ve:qo({},ve,Ee),L.state=ve),typeof W.getDerivedStateFromProps!="function"&&typeof L.getSnapshotBeforeUpdate!="function"&&(typeof L.UNSAFE_componentWillMount=="function"||typeof L.componentWillMount=="function"))if(W=L.state,typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount(),W!==L.state&&eu.enqueueReplaceState(L,L.state,null),ge.queue!==null&&0<ge.queue.length)if(W=ge.queue,Ee=ge.replace,ge.queue=null,ge.replace=!1,Ee&&W.length===1)L.state=W[0];else{for(ge=Ee?W[0]:L.state,ve=!0,Ee=Ee?1:0;Ee<W.length;Ee++){var De=W[Ee];De=typeof De=="function"?De.call(L,ge,X,te):De,De!=null&&(ve?(ve=!1,ge=qo({},ge,De)):qo(ge,De))}L.state=ge}else ge.queue=null}var Mf={id:1,overflow:""};function mo(L,W,X){var te=L.id;L=L.overflow;var ve=32-Nf(te)-1;te&=~(1<<ve),X+=1;var ge=32-Nf(W)+ve;if(30<ge){var Ee=ve-ve%5;return ge=(te&(1<<Ee)-1).toString(32),te>>=Ee,ve-=Ee,{id:1<<32-Nf(W)+ve|X<<ve|te,overflow:ge+L}}return{id:1<<ge|X<<ve|te,overflow:L}}var Nf=Math.clz32?Math.clz32:Rv,Iv=Math.log,Lv=Math.LN2;function Rv(L){return L>>>=0,L===0?32:31-(Iv(L)/Lv|0)|0}function Wd(L,W){return L===W&&(L!==0||1/L===1/W)||L!==L&&W!==W}var jv=typeof Object.is=="function"?Object.is:Wd,vo=null,Hd=null,If=null,In=null,mn=!1,vn=!1,tu=0,Qo=null,Lf=0;function Xs(){if(vo===null)throw Error(t(321));return vo}function t2(){if(0<Lf)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Gd(){return In===null?If===null?(mn=!1,If=In=t2()):(mn=!0,In=If):In.next===null?(mn=!1,In=In.next=t2()):(mn=!0,In=In.next),In}function Rf(){Hd=vo=null,vn=!1,If=null,Lf=0,In=Qo=null}function n2(L,W){return typeof W=="function"?W(L):W}function Nr(L,W,X){if(vo=Xs(),In=Gd(),mn){var te=In.queue;if(W=te.dispatch,Qo!==null&&(X=Qo.get(te),X!==void 0)){Qo.delete(te),te=In.memoizedState;do te=L(te,X.action),X=X.next;while(X!==null);return In.memoizedState=te,[te,W]}return[In.memoizedState,W]}return L=L===n2?typeof W=="function"?W():W:X!==void 0?X(W):W,In.memoizedState=L,L=In.queue={last:null,dispatch:null},L=L.dispatch=qs.bind(null,vo,L),[In.memoizedState,L]}function jf(L,W){if(vo=Xs(),In=Gd(),W=W===void 0?null:W,In!==null){var X=In.memoizedState;if(X!==null&&W!==null){var te=X[1];e:if(te===null)te=!1;else{for(var ve=0;ve<te.length&&ve<W.length;ve++)if(!jv(W[ve],te[ve])){te=!1;break e}te=!0}if(te)return X[0]}}return L=L(),In.memoizedState=[L,W],L}function qs(L,W,X){if(25<=Lf)throw Error(t(301));if(L===vo)if(vn=!0,L={action:X,next:null},Qo===null&&(Qo=new Map),X=Qo.get(W),X===void 0)Qo.set(W,L);else{for(W=X;W.next!==null;)W=W.next;W.next=L}}function r2(){throw Error(t(394))}function Ul(){}var ji={readContext:function(L){return L._currentValue},useContext:function(L){return Xs(),L._currentValue},useMemo:jf,useReducer:Nr,useRef:function(L){vo=Xs(),In=Gd();var W=In.memoizedState;return W===null?(L={current:L},In.memoizedState=L):W},useState:function(L){return Nr(n2,L)},useInsertionEffect:Ul,useLayoutEffect:function(){},useCallback:function(L,W){return jf(function(){return L},W)},useImperativeHandle:Ul,useEffect:Ul,useDebugValue:Ul,useDeferredValue:function(L){return Xs(),L},useTransition:function(){return Xs(),[!1,r2]},useId:function(){var L=Hd.treeContext,W=L.overflow;L=L.id,L=(L&~(1<<32-Nf(L)-1)).toString(32)+W;var X=nu;if(X===null)throw Error(t(404));return W=tu++,L=":"+X.idPrefix+"R"+L,0<W&&(L+="H"+W.toString(32)),L+":"},useMutableSource:function(L,W){return Xs(),W(L._source)},useSyncExternalStore:function(L,W,X){if(X===void 0)throw Error(t(407));return X()}},nu=null,Df=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function i2(L){return console.error(L),null}function Yl(){}function a2(L,W,X,te,ve,ge,Ee,De,at){var Mt=[],wt=new Set;return W={destination:null,responseState:W,progressiveChunkSize:te===void 0?12800:te,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:wt,pingedTasks:Mt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ve===void 0?i2:ve,onAllReady:ge===void 0?Yl:ge,onShellReady:Ee===void 0?Yl:Ee,onShellError:De===void 0?Yl:De,onFatalError:at===void 0?Yl:at},X=qr(W,0,null,X,!1,!1),X.parentFlushed=!0,L=Ff(W,L,null,X,wt,ht,null,Mf),Mt.push(L),W}function Ff(L,W,X,te,ve,ge,Ee,De){L.allPendingTasks++,X===null?L.pendingRootTasks++:X.pendingTasks++;var at={node:W,ping:function(){var Mt=L.pingedTasks;Mt.push(at),Mt.length===1&&c2(L)},blockedBoundary:X,blockedSegment:te,abortSet:ve,legacyContext:ge,context:Ee,treeContext:De};return ve.add(at),at}function qr(L,W,X,te,ve,ge){return{status:0,id:-1,index:W,parentFlushed:!1,chunks:[],children:[],formatContext:te,boundary:X,lastPushedText:ve,textEmbedded:ge}}function ru(L,W){if(L=L.onError(W),L!=null&&typeof L!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof L+'" instead');return L}function oi(L,W){var X=L.onShellError;X(W),X=L.onFatalError,X(W),L.destination!==null?(L.status=2,u(L.destination,W)):(L.status=1,L.fatalError=W)}function o2(L,W,X,te,ve){for(vo={},Hd=W,tu=0,L=X(te,ve);vn;)vn=!1,tu=0,Lf+=1,In=null,L=X(te,ve);return Rf(),L}function Ud(L,W,X,te){var ve=X.render(),ge=te.childContextTypes;if(ge!=null){var Ee=W.legacyContext;if(typeof X.getChildContext!="function")te=Ee;else{X=X.getChildContext();for(var De in X)if(!(De in ge))throw Error(t(108,We(te)||"Unknown",De));te=qo({},Ee,X)}W.legacyContext=te,si(L,W,ve),W.legacyContext=Ee}else si(L,W,ve)}function yo(L,W){if(L&&L.defaultProps){W=qo({},W),L=L.defaultProps;for(var X in L)W[X]===void 0&&(W[X]=L[X]);return W}return W}function Xl(L,W,X,te,ve){if(typeof X=="function")if(X.prototype&&X.prototype.isReactComponent){ve=dt(X,W.legacyContext);var ge=X.contextType;ge=new X(te,typeof ge=="object"&&ge!==null?ge._currentValue:ve),Ys(ge,X,te,ve),Ud(L,W,ge,X)}else{ge=dt(X,W.legacyContext),ve=o2(L,W,X,te,ge);var Ee=tu!==0;if(typeof ve=="object"&&ve!==null&&typeof ve.render=="function"&&ve.$$typeof===void 0)Ys(ve,X,te,ge),Ud(L,W,ve,X);else if(Ee){te=W.treeContext,W.treeContext=mo(te,1,0);try{si(L,W,ve)}finally{W.treeContext=te}}else si(L,W,ve)}else if(typeof X=="string"){switch(ve=W.blockedSegment,ge=Dt(ve.chunks,X,te,L.responseState,ve.formatContext),ve.lastPushedText=!1,Ee=ve.formatContext,ve.formatContext=K(Ee,X,te),La(L,W,ge),ve.formatContext=Ee,X){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:ve.chunks.push(Ct,l(X),Jt)}ve.lastPushedText=!1}else{switch(X){case ye:case re:case Wl:case Hl:case Us:si(L,W,te.children);return;case Ko:si(L,W,te.children);return;case Z:throw Error(t(343));case Qc:e:{X=W.blockedBoundary,ve=W.blockedSegment,ge=te.fallback,te=te.children,Ee=new Set;var De={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Ee,errorDigest:null},at=qr(L,ve.chunks.length,De,ve.formatContext,!1,!1);ve.children.push(at),ve.lastPushedText=!1;var Mt=qr(L,0,null,ve.formatContext,!1,!1);Mt.parentFlushed=!0,W.blockedBoundary=De,W.blockedSegment=Mt;try{if(La(L,W,te),Mt.lastPushedText&&Mt.textEmbedded&&Mt.chunks.push(Q),Mt.status=1,ql(De,Mt),De.pendingTasks===0)break e}catch(wt){Mt.status=4,De.forceClientRender=!0,De.errorDigest=ru(L,wt)}finally{W.blockedBoundary=X,W.blockedSegment=ve}W=Ff(L,ge,X,at,Ee,W.legacyContext,W.context,W.treeContext),L.pingedTasks.push(W)}return}if(typeof X=="object"&&X!==null)switch(X.$$typeof){case Pf:if(te=o2(L,W,X.render,te,ve),tu!==0){X=W.treeContext,W.treeContext=mo(X,1,0);try{si(L,W,te)}finally{W.treeContext=X}}else si(L,W,te);return;case I:X=X.type,te=yo(X,te),Xl(L,W,X,te,ve);return;case Gl:if(ve=te.children,X=X._context,te=te.value,ge=X._currentValue,X._currentValue=te,Ee=Et,Et=te={parent:Ee,depth:Ee===null?0:Ee.depth+1,context:X,parentValue:ge,value:te},W.context=te,si(L,W,ve),L=Et,L===null)throw Error(t(403));te=L.parentValue,L.context._currentValue=te===me?L.context._defaultValue:te,L=Et=L.parent,W.context=L;return;case Zo:te=te.children,te=te(X._currentValue),si(L,W,te);return;case H:ve=X._init,X=ve(X._payload),te=yo(X,te),Xl(L,W,X,te,void 0);return}throw Error(t(130,X==null?X:typeof X,""))}}function si(L,W,X){if(W.node=X,typeof X=="object"&&X!==null){switch(X.$$typeof){case Tf:Xl(L,W,X.type,X.props,X.ref);return;case Gs:throw Error(t(257));case H:var te=X._init;X=te(X._payload),si(L,W,X);return}if(T(X)){Wn(L,W,X);return}if(X===null||typeof X!="object"?te=null:(te=Se&&X[Se]||X["@@iterator"],te=typeof te=="function"?te:null),te&&(te=te.call(X))){if(X=te.next(),!X.done){var ve=[];do ve.push(X.value),X=te.next();while(!X.done);Wn(L,W,ve)}return}throw L=Object.prototype.toString.call(X),Error(t(31,L==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":L))}typeof X=="string"?(te=W.blockedSegment,te.lastPushedText=ne(W.blockedSegment.chunks,X,L.responseState,te.lastPushedText)):typeof X=="number"&&(te=W.blockedSegment,te.lastPushedText=ne(W.blockedSegment.chunks,""+X,L.responseState,te.lastPushedText))}function Wn(L,W,X){for(var te=X.length,ve=0;ve<te;ve++){var ge=W.treeContext;W.treeContext=mo(ge,te,ve);try{La(L,W,X[ve])}finally{W.treeContext=ge}}}function La(L,W,X){var te=W.blockedSegment.formatContext,ve=W.legacyContext,ge=W.context;try{return si(L,W,X)}catch(at){if(Rf(),typeof at=="object"&&at!==null&&typeof at.then=="function"){X=at;var Ee=W.blockedSegment,De=qr(L,Ee.chunks.length,null,Ee.formatContext,Ee.lastPushedText,!0);Ee.children.push(De),Ee.lastPushedText=!1,L=Ff(L,W.node,W.blockedBoundary,De,W.abortSet,W.legacyContext,W.context,W.treeContext).ping,X.then(L,L),W.blockedSegment.formatContext=te,W.legacyContext=ve,W.context=ge,Ia(ge)}else throw W.blockedSegment.formatContext=te,W.legacyContext=ve,W.context=ge,Ia(ge),at}}function Yd(L){var W=L.blockedBoundary;L=L.blockedSegment,L.status=3,l2(this,W,L)}function s2(L,W,X){var te=L.blockedBoundary;L.blockedSegment.status=3,te===null?(W.allPendingTasks--,W.status!==2&&(W.status=2,W.destination!==null&&W.destination.close())):(te.pendingTasks--,te.forceClientRender||(te.forceClientRender=!0,L=X===void 0?Error(t(432)):X,te.errorDigest=W.onError(L),te.parentFlushed&&W.clientRenderedBoundaries.push(te)),te.fallbackAbortableTasks.forEach(function(ve){return s2(ve,W,X)}),te.fallbackAbortableTasks.clear(),W.allPendingTasks--,W.allPendingTasks===0&&(te=W.onAllReady,te()))}function ql(L,W){if(W.chunks.length===0&&W.children.length===1&&W.children[0].boundary===null){var X=W.children[0];X.id=W.id,X.parentFlushed=!0,X.status===1&&ql(L,X)}else L.completedSegments.push(W)}function l2(L,W,X){if(W===null){if(X.parentFlushed){if(L.completedRootSegment!==null)throw Error(t(389));L.completedRootSegment=X}L.pendingRootTasks--,L.pendingRootTasks===0&&(L.onShellError=Yl,W=L.onShellReady,W())}else W.pendingTasks--,W.forceClientRender||(W.pendingTasks===0?(X.parentFlushed&&X.status===1&&ql(W,X),W.parentFlushed&&L.completedBoundaries.push(W),W.fallbackAbortableTasks.forEach(Yd,L),W.fallbackAbortableTasks.clear()):X.parentFlushed&&X.status===1&&(ql(W,X),W.completedSegments.length===1&&W.parentFlushed&&L.partialBoundaries.push(W)));L.allPendingTasks--,L.allPendingTasks===0&&(L=L.onAllReady,L())}function c2(L){if(L.status!==2){var W=Et,X=Df.current;Df.current=ji;var te=nu;nu=L.responseState;try{var ve=L.pingedTasks,ge;for(ge=0;ge<ve.length;ge++){var Ee=ve[ge],De=L,at=Ee.blockedSegment;if(at.status===0){Ia(Ee.context);try{si(De,Ee,Ee.node),at.lastPushedText&&at.textEmbedded&&at.chunks.push(Q),Ee.abortSet.delete(Ee),at.status=1,l2(De,Ee.blockedBoundary,at)}catch(ya){if(Rf(),typeof ya=="object"&&ya!==null&&typeof ya.then=="function"){var Mt=Ee.ping;ya.then(Mt,Mt)}else{Ee.abortSet.delete(Ee),at.status=4;var wt=Ee.blockedBoundary,Ln=ya,_i=ru(De,Ln);if(wt===null?oi(De,Ln):(wt.pendingTasks--,wt.forceClientRender||(wt.forceClientRender=!0,wt.errorDigest=_i,wt.parentFlushed&&De.clientRenderedBoundaries.push(wt))),De.allPendingTasks--,De.allPendingTasks===0){var va=De.onAllReady;va()}}}finally{}}}ve.splice(0,ge),L.destination!==null&&zf(L,L.destination)}catch(ya){ru(L,ya),oi(L,ya)}finally{nu=te,Df.current=X,X===ji&&Ia(W)}}}function Bf(L,W,X){switch(X.parentFlushed=!0,X.status){case 0:var te=X.id=L.nextSegmentId++;return X.lastPushedText=!1,X.textEmbedded=!1,L=L.responseState,i(W,zt),i(W,L.placeholderPrefix),L=l(te.toString(16)),i(W,L),a(W,cn);case 1:X.status=2;var ve=!0;te=X.chunks;var ge=0;X=X.children;for(var Ee=0;Ee<X.length;Ee++){for(ve=X[Ee];ge<ve.index;ge++)i(W,te[ge]);ve=iu(L,W,ve)}for(;ge<te.length-1;ge++)i(W,te[ge]);return ge<te.length&&(ve=a(W,te[ge])),ve;default:throw Error(t(390))}}function iu(L,W,X){var te=X.boundary;if(te===null)return Bf(L,W,X);if(te.parentFlushed=!0,te.forceClientRender)te=te.errorDigest,a(W,Mr),i(W,ga),te&&(i(W,Na),i(W,l(E(te))),i(W,Ma)),a(W,Fs),Bf(L,W,X);else if(0<te.pendingTasks){te.rootSegmentID=L.nextSegmentId++,0<te.completedSegments.length&&L.partialBoundaries.push(te);var ve=L.responseState,ge=ve.nextSuspenseID++;ve=c(ve.boundaryPrefix+ge.toString(16)),te=te.id=ve,Ci(W,L.responseState,te),Bf(L,W,X)}else if(te.byteSize>L.progressiveChunkSize)te.rootSegmentID=L.nextSegmentId++,L.completedBoundaries.push(te),Ci(W,L.responseState,te.id),Bf(L,W,X);else{if(a(W,Yt),X=te.completedSegments,X.length!==1)throw Error(t(391));iu(L,W,X[0])}return a(W,bi)}function au(L,W,X){return zd(W,L.responseState,X.formatContext,X.id),iu(L,W,X),Yo(W,X.formatContext)}function Zs(L,W,X){for(var te=X.completedSegments,ve=0;ve<te.length;ve++)u2(L,W,X,te[ve]);if(te.length=0,L=L.responseState,te=X.id,X=X.rootSegmentID,i(W,L.startInlineScript),L.sentCompleteBoundaryFunction?i(W,kf):(L.sentCompleteBoundaryFunction=!0,i(W,zl)),te===null)throw Error(t(395));return X=l(X.toString(16)),i(W,te),i(W,Hs),i(W,L.segmentPrefix),i(W,X),a(W,Af)}function u2(L,W,X,te){if(te.status===2)return!0;var ve=te.id;if(ve===-1){if((te.id=X.rootSegmentID)===-1)throw Error(t(392));return au(L,W,te)}return au(L,W,te),L=L.responseState,i(W,L.startInlineScript),L.sentCompleteSegmentFunction?i(W,Zc):(L.sentCompleteSegmentFunction=!0,i(W,Vd)),i(W,L.segmentPrefix),ve=l(ve.toString(16)),i(W,ve),i(W,Bl),i(W,L.placeholderPrefix),i(W,ve),a(W,Ws)}function zf(L,W){n=new Uint8Array(512),r=0;try{var X=L.completedRootSegment;if(X!==null&&L.pendingRootTasks===0){iu(L,W,X),L.completedRootSegment=null;var te=L.responseState.bootstrapChunks;for(X=0;X<te.length-1;X++)i(W,te[X]);X<te.length&&a(W,te[X])}var ve=L.clientRenderedBoundaries,ge;for(ge=0;ge<ve.length;ge++){var Ee=ve[ge];te=W;var De=L.responseState,at=Ee.id,Mt=Ee.errorDigest,wt=Ee.errorMessage,Ln=Ee.errorComponentStack;if(i(te,De.startInlineScript),De.sentClientRenderFunction?i(te,ai):(De.sentClientRenderFunction=!0,i(te,Xo)),at===null)throw Error(t(395));i(te,at),i(te,$f),(Mt||wt||Ln)&&(i(te,Vl),i(te,l(go(Mt||"")))),(wt||Ln)&&(i(te,Vl),i(te,l(go(wt||"")))),Ln&&(i(te,Vl),i(te,l(go(Ln)))),a(te,Kc)}ve.splice(0,ge);var _i=L.completedBoundaries;for(ge=0;ge<_i.length;ge++)Zs(L,W,_i[ge]);_i.splice(0,ge),o(W),n=new Uint8Array(512),r=0;var va=L.partialBoundaries;for(ge=0;ge<va.length;ge++){var ya=va[ge];e:{ve=L,Ee=W;var Vf=ya.completedSegments;for(De=0;De<Vf.length;De++)if(!u2(ve,Ee,ya,Vf[De])){De++,Vf.splice(0,De);var f2=!1;break e}Vf.splice(0,De),f2=!0}if(!f2){L.destination=null,ge++,va.splice(0,ge);return}}va.splice(0,ge);var qd=L.completedBoundaries;for(ge=0;ge<qd.length;ge++)Zs(L,W,qd[ge]);qd.splice(0,ge)}finally{o(W),L.allPendingTasks===0&&L.pingedTasks.length===0&&L.clientRenderedBoundaries.length===0&&L.completedBoundaries.length===0&&W.close()}}function Xd(L,W){try{var X=L.abortableTasks;X.forEach(function(te){return s2(te,L,W)}),X.clear(),L.destination!==null&&zf(L,L.destination)}catch(te){ru(L,te),oi(L,te)}}return ug.renderToReadableStream=function(L,W){return new Promise(function(X,te){var ve,ge,Ee=new Promise(function(wt,Ln){ge=wt,ve=Ln}),De=a2(L,B(W?W.identifierPrefix:void 0,W?W.nonce:void 0,W?W.bootstrapScriptContent:void 0,W?W.bootstrapScripts:void 0,W?W.bootstrapModules:void 0),Y(W?W.namespaceURI:void 0),W?W.progressiveChunkSize:void 0,W?W.onError:void 0,ge,function(){var wt=new ReadableStream({type:"bytes",pull:function(Ln){if(De.status===1)De.status=2,u(Ln,De.fatalError);else if(De.status!==2&&De.destination===null){De.destination=Ln;try{zf(De,Ln)}catch(_i){ru(De,_i),oi(De,_i)}}},cancel:function(){Xd(De)}},{highWaterMark:0});wt.allReady=Ee,X(wt)},function(wt){Ee.catch(function(){}),te(wt)},ve);if(W&&W.signal){var at=W.signal,Mt=function(){Xd(De,at.reason),at.removeEventListener("abort",Mt)};at.addEventListener("abort",Mt)}c2(De)})},ug.version="18.2.0",ug}var AM;function vWe(){if(AM)return lc;AM=1;var e,t;return e=gWe(),t=mWe(),lc.version=e.version,lc.renderToString=e.renderToString,lc.renderToStaticMarkup=e.renderToStaticMarkup,lc.renderToNodeStream=e.renderToNodeStream,lc.renderToStaticNodeStream=e.renderToStaticNodeStream,lc.renderToReadableStream=t.renderToReadableStream,lc}var yWe=vWe();const $M=e=>window.location.hostname==="localhost"?yWe.renderToStaticMarkup(e):e,xWe="header_fQb5W",TM={header:xWe},bWe="wrapper_kU744",CWe="circleWrapper_3mriX",wWe="otherCircle_aT0vd",_We="name_TiwB2",P1={wrapper:bWe,circleWrapper:CWe,otherCircle:wWe,name:_We},SWe=({pricingType:e,colors:t,title:n})=>w.jsxs("div",{className:P1.wrapper,children:[w.jsx("div",{className:P1.circleWrapper,children:w.jsx(j8,{type:e,color:t[0]})}),t.filter((r,i)=>i>1).map(r=>w.jsx("div",{className:qe(P1.circleWrapper,P1.otherCircle),children:w.jsx(j8,{type:e,color:r})})),w.jsx("div",{className:P1.name,children:n})]}),OWe="wrapper_UCrun",EWe="disabled_ma8XX",kWe="submenuInitiator_pNrm1",AWe="initiator_9I1Ia",$We="submenuSearchWra
390pper_Ca0Fj",PM={wrapper:OWe,disabled:EWe,submenuInitiator:kWe,initiator:AWe,submenuSearchWrapper:$We},TWe=Xe.forwardRef(({actions:e,onClose:t,popupPosition:n,searchable:r},i)=>{const[a,o]=P.useState(""),s=a&&r?e.filter(l=>l.name.toLowerCase().includes(a.toLowerCase())):e;return w.jsx("div",{className:qe(PM.submenuInitiator,"scrollbar"),children:w.jsxs(pN,{ref:i,style:{maxWidth:"300px"},children:[r&&w.jsx("div",{className:PM.submenuSearchWrapper,children:w.jsx(W8,{value:a,onChange:o})}),w.jsx(XY,{actions:s,onClose:t,popupPosition:n})]})})}),XY=({actions:e,onClose:t,popupPosition:n})=>{const[r,i]=P.useState([]),a=u=>r.includes(u),o=u=>{i(f=>[...f,u])},s=u=>{i(f=>f.filter(d=>d!==u))},[l,c]=P.useState(null);return w.jsx(w.Fragment,{children:e.map((u,f)=>{const d=u.name;return u.subMenu?w.jsx(MN,{on:"click",open:f===l,onOpen:()=>{c(f)},overlayStyle:{zIndex:99999},contentStyle:{zIndex:1e5},closeOnDocumentClick:!0,trigger:h=>w.jsx("div",{children:w.jsx(Q4,{arrow:!0,active:h,value:d,label:d,onClick:()=>{}})}),position:n,nested:!0,children:w.jsx(TWe,{searchable:u.searchable,onClose:()=>{t&&t()},actions:u.subMenu,popupPosition:n})}):w.jsx(Q4,{value:d,label:d,disabled:u.disabled||a(d),onClick:async()=>{o(d),await u.action(),s(d),t&&t()},renderRight:u.renderRight,renderIcon:u.tick&&(()=>w.jsx(DN,{fill:"#23A2FF"})),removeWhitespace:!0},d)})})},PWe=({onShowResources:e,direction:t,data:n})=>{const r=[];return w.jsx("div",{className:TM.wrapper,children:w.jsxs(pN,{children:[w.jsx("div",{className:TM.header,children:w.jsx(SWe,{title:Z0(n.yAxisTitle),colors:[n.color],pricingType:n.pricingType})}),w.jsx(Q4,{value:"",onClick:()=>e(),label:"Show resources"}),w.jsx(XY,{actions:r,popupPosition:`${t} center`,onClose:()=>{}})]})})},MWe=e=>{const{billing:{detailedModeActive:t,options:n},environments:r}=Ot(c=>({billing:c.billingNew[e],environments:c.aws.entities.environments}),Lt),i=P.useMemo(()=>n?"envIds"in n?n.envIds:n.organizationIds:null,[n]),a=(n==null?void 0:n.billing_source)===oa.default||(n==null?void 0:n.billing_source)===oa.organizationCurV2,o=e==="environments"?i==null?void 0:i.some(c=>ste.billingContextMenuShowResources.includes(lte(c,r))):!0,s=(n==null?void 0:n.groupBy)&&(n==null?void 0:n.groupBy)!==Ti.groupByAll&&(n==null?void 0:n.groupBy)!==Ti.groupBy.costAndSavings&&(n==null?void 0:n.groupBy)!==Ti.groupBy.resourceId&&(n==null?void 0:n.groupBy)!==Ti.groupBy.detailedResource&&!(n!=null&&n.xAxis);return P.useMemo(()=>e==="organizations"?!t&&a&&s:!t&&a&&o&&s,[t,a,o,s,e])},NWe=({getAnomaliBadgeValue:e,billingType:t})=>{const{anomalyMonitorData:n,options:r}=Ot(a=>({anomalyMonitorData:a.anomalyDetection.anomalyMonitor.data,options:a.billingNew[t].options}),Lt);return{anomalyList:P.useMemo(()=>(r==null?void 0:r.groupBy)!==(n==null?void 0:n.group_by1)?[]:(n==null?void 0:n.monitor_type)===nh.MONTHLY_BY_SERVICE?cte(n).filter(s=>e($r(s.date).format("DD MMM YYYY"),s.source,n.monitor_type)):Object.keys((n==null?void 0:n.detected_anomalies)||{}).reduce((a,o)=>(n==null||n.detected_anomalies[o].forEach(s=>{e($r(s.date).format("DD MMM YYYY"),s.source,n.monitor_type)&&a.push(s)}),a),[]).sort((a,o)=>$r(a.date).diff($r(o.date))),[n==null?void 0:n.detected_anomalies,r==null?void 0:r.groupBy,e]),monitorType:n==null?void 0:n.monitor_type}},fg=e=>`$${e.toFixed(2)}`,W4="var(--colorsBrandErrorColorError)",IWe="var(--color-brand-red-fill)",MM="var(--colorsBrandErrorColorError)",NM="var(--color-text-gray)",ul="var(--text-primary-text)",dg=({label:e,value:t,valueColor:n,labelColor:r,labelDefault:i,valueDefault:a})=>w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:24},children:[w.jsx("span",{style:{color:r??i,fontWeight:500},children:e}),w.jsx("span",{style:{color:n??a,fontWeight:n?600:400},children:t})]}),LWe=({anomaly:e,monitor_type:t})=>{const{date:n,value:r,previous_value:i,expected_value:a,delta:o,delta_in_percent:s,source:l}=e,c=t===nh.MONTHLY_BY_SERVICE,u=o>=0?"+":"-";return w.jsxs("div",{style:{minWidth:280,fontSize:12},children:[w.jsx("div",{style:{fontSize:11,color:NM,marginBottom:3},children:$r(n).format(c?"MMM YYYY":"DD MMM, YYYY")}),l&&w.jsx("div",{style:{fontSize:12,color:ul,fontWeight:600,marginBottom:4},children:l}),w.jsxs("div",{style:{padding:"5px 10px 5px",background:IWe,borderRadius:6,border:`1px solid ${MM}`},children:[w.jsx("div",{style:{color:W4,fontSize:12,marginBottom:4},children:"Anomaly detected"}),w.jsxs("div",{style:{borderLeft:`1px solid ${MM}`,paddingLeft:6,display:"flex",flexDirection:"column",gap:1},children:[w.jsx(dg,{label:c?"Previous month":"Previous day",value:i!=null?fg(i):"—",labelDefault:ul,valueDefault:ul}),w.jsx(dg,{label:"Expected",value:fg(a),labelDefault:ul,valueDefault:ul}),w.jsx(dg,{label:"Actual",value:fg(r),valueColor:W4,labelDefault:ul,valueDefault:ul})]}),w.jsx("div",{style:{margin:"4px 0 3px"}}),w.jsx(dg,{label:"Over expected",labelColor:NM,value:`${u}${fg(Math.abs(o))} (${u}${Math.abs(s).toFixed(2)}%)`,valueColor:W4,labelDefault:ul,valueDefault:ul})]})]})},qY="DetailedResource",RWe=({data:e,graphWidth:t,cost:n,colorByKey:r,keysOrder:i,getAnomaliBadgeValue:a,setMaxCost:o,billingType:s,forceZeroYOrigin:l=!1})=>{const c=Ot(B=>B.billingNew[s]),u=Zt(),{options:f,filter:d}=P.useMemo(()=>({options:c.options,filter:c.filter}),[c]),{granularity:h,xAxis:p}=P.useMemo(()=>({granularity:(f==null?void 0:f.granularity)||"",xAxis:(f==null?void 0:f.xAxis)||""}),[f]),g=t||window.innerWidth-308,[v,y]=P.useState(!1),[x,C]=P.useState(null),{variables:_,theme:S}
390=ti(),O=P.useCallback(()=>{u(jr.setDetailedModeActive({data:{previousGroupBy:(f==null?void 0:f.groupBy)||"",previousFilters:d.savedFilters||{}},billingType:s}));const{mainKey:B,subKey:G,hasSubKey:Y}=Wg((f==null?void 0:f.groupBy)||"");u(Y?jr.setSelectedFilters({data:{...d.savedFilters,[B]:[[G,Z0((x==null?void 0:x.key)||"")]]},billingType:s}):jr.setSelectedFilters({data:{...d.savedFilters,[(f==null?void 0:f.groupBy)||""]:[[Z0((x==null?void 0:x.key)||"")]]},billingType:s})),u(jr.setBillingOptions({options:{groupBy:qY},billingType:s})),u(jr.setSelectedGroupByFilters({data:null,billingType:s}))},[x,f]),E=!p,k=p!==ps.xAxis.region,$=_["--color-background-reverse"],M=(B=>{switch(B){case ps.requestGranularity[Ly.hourly]:case ps.requestGranularity[Ly.daily]:return 20;default:return null}})(h),R=M?((e==null?void 0:e.length)||0)/M:null,{anomalyList:N,monitorType:D}=NWe({getAnomaliBadgeValue:a,billingType:s}),F=P.useCallback(()=>{const B=[],G={type:"lineY",yField:n,style:{stroke:$,strokeOpacity:.1,lineWidth:1}};return n&&B.push(G),N&&B.push(...N==null?void 0:N.map(Y=>({type:"text",data:[D===nh.MONTHLY_BY_SERVICE?$r(Y.date).format("MMM YYYY"):$r(Y.date).format("DD MMM YYYY"),a($r(Y.date).format("DD MMM YYYY"),Y.source,D||nh.DAILY_BY_SERVICE)],shape:"badge",animate:!1,style:{text:"!",dy:-1,markerSize:12,markerFill:_["--colorsBrandErrorColorError"],markerFillOpacity:.95,markerStroke:"white",markerStrokeWidth:1,fill:"white"},color:_["--colorsBrandErrorColorError"],tooltip:{field:{...Y,anomaly:!0,explanation:null}}}))),B},[n,N,a,_]),V=P.useMemo(()=>({theme:S===ca.dark?"dark":"classic",data:e||[],xField:"xField",yField:"value",colorField:"color",annotations:F(),stack:!0,style:{maxWidth:30,lineWidth:.5,fillOpacity:B=>B.estimated?B.type===th.savings||B.type===th.credits?.5:.2:1,fill:B=>B.type===th.savings?`p(a)${R8("savings",r==null?void 0:r[B.key])}`:B.type===th.credits?`p(a)${R8("credits",r==null?void 0:r[B.key])}`:r==null?void 0:r[B.key],stroke:B=>r==null?void 0:r[B.key],fontWeight:300},axis:{x:{style:{labelFill:_["--color-brand-black"],labelFontSize:9,labelFontWeight:300},grid:!1,line:!0,labelFilter:(B,G)=>E&&M&&R&&((e==null?void 0:e.length)||0)>M?G%Math.floor(R)===0:!0,labelAutoHide:k,labelFormatter:B=>{const G=Math.min((e==null?void 0:e.length)||1,OVe),Y=40/6,K=g/G/Y,Q=(f==null?void 0:f.granularity)===ps.requestGranularity[Ly.hourly]?$r(B).format("DD MMM HH:mm"):B;return E?Q:Qg(B,K)}},y:{style:{labelFill:_["--color-brand-black"],labelFontSize:10,labelFontWeight:300},line:!0,labelFormatter:"$",grid:!0}},...l&&{scale:{y:{domainMin:0}}},paddingBottom:41,paddingRight:0,background:!1,tooltip:{field:"tooltipData"},interaction:{tooltip:{shared:!1,render:(B,G)=>{const{key:Y,type:K,value:Q,estimated:ne,currentData:oe,totalData:ae,xField:ce}=G.items[0].value;if(typeof G.items[0].name=="object"){const fe=G.items[0].name;return $M(w.jsx(LWe,{anomaly:fe,monitor_type:D||nh.DAILY_BY_SERVICE}))}return $M(w.jsx(zVe,{color:r[Y],currentData:oe,totalData:ae,gbKey:Y,type:K,xField:ce,backgroundColor:_["--color-background"]}))},groupName:!0}},legend:!1,animate:!1,onReady:({chart:B})=>{B.on("interval:click",K=>{const{data:{data:{xField:Q,key:ne}},canvas:oe}=K;C({date:Q,key:ne,position:oe})});const G=_["--colorsBrandErrorColorError"],Y=()=>{var oe;const K=(oe=B.getContext())==null?void 0:oe.canvas;if(!K)return;const Q=K.getRoot();Array.from(Q.getElementsByClassName("anomaly-pulse-ring")).forEach(ae=>ae.remove()),Array.from(Q.querySelectorAll("path")).filter(ae=>{var ce;return((ce=ae.getAttribute)==null?void 0:ce.call(ae,"fill"))===G}).forEach(ae=>{const ce=ae.parentNode;if(!ce)return;const fe=ae.getLocalBounds(),le=fe.center[0],be=fe.center[1]-fe.halfExtents[1]*.35,Ce=Math.max(fe.halfExtents[0],5),$e=new Ns({className:"anomaly-pulse-ring",style:{cx:le,cy:be,r:Ce,fill:"transparent",stroke:G,lineWidth:1.5,strokeOpacity:0}});ce.appendChild($e),$e.toBack(),$e.animate([{r:Ce,strokeOpacity:0},{r:Ce*1.5,strokeOpacity:1,offset:.4},{r:Ce*1.9,strokeOpacity:1,offset:.6},{r:Ce*2.8,strokeOpacity:0}],{duration:1600,iterations:1/0,easing:"ease-out"})})};B.on("afterrender",Y),Y()}}),[e,E,M,R,g,_,F]),z=MWe(s);return e!=null&&e.length?w.jsxs("div",{style:{position:"relative",height:"100%"},children:[w.jsx(CVe,{...V}),w.jsx("div",{style:{position:"absolute",bottom:0,left:"50%",transform:"translateX(-50%)",width:"100%"},children:w.jsx(pWe,{groupBy1:(f==null?void 0:f.groupBy)||"",colorByKey:r,keysOrder:i,isLegendOthersOpened:v,setIsLegendOthersOpened:y,chartWidth:g,hideCommonLegendNew:!0})}),z&&w.jsx("div",{style:{position:"absolute",left:((x==null?void 0:x.position.x)||-9999)+"px",top:((x==null?void 0:x.position.y)||0)+"px",transform:"translateY(100%)",zIndex:100},children:w.jsx(S3,{placement:"bottom",open:!!x,onOpenChange:()=>C(null),trigger:"click",content:w.jsx(PWe,{onShowResources:O,direction:"right",data:{color:r[(x==null?void 0:x.key)||""]||"",pricingType:"paid",yAxisTitle:(x==null?void 0:x.key)||""}})})})]}):w.jsx(AVe,{})},LYe=P.memo(RWe),jWe=(e,t)=>
390{const n=Ot(o=>o.billingNew),r=P.useMemo(()=>n[t].availableDateRange,[n[t].availableDateRange]),{minDate:i,maxDate:a}=P.useMemo(()=>{var o;return(o=r.data||[])==null?void 0:o.reduce((s,l)=>{var c,u,f,d;return e.includes("environment_id"in l?l.environment_id:l.organization_id)&&((!s.minDate||$r((c=l.data)==null?void 0:c.start_date).isBefore($r(s.minDate)))&&(s.minDate=(u=l.data)==null?void 0:u.start_date),(!s.maxDate||$r((f=l.data)==null?void 0:f.end_date).isAfter($r(s.maxDate)))&&(s.maxDate=(d=l.data)==null?void 0:d.end_date)),s},{minDate:null,maxDate:null})},[r.data,e]);return{minDate:i,maxDate:$r(a).subtract(1,"day").format("YYYY-MM-DD")}},DWe=e=>{const t=en().id,n=Ic(),r=P.useMemo(()=>e==="environments"?n:[t],[n,t,e]),{minDate:i,maxDate:a}=jWe(r,e),o=P.useMemo(()=>{const l=$r().add(-5,"M").startOf("M");return $r(i).isBefore(l)?l.format("YYYY-MM-DD"):i},[i]);return{defaultBillingOptions:P.useMemo(()=>{const l={startDate:o||"",endDate:a||"",granularity:"m",groupBy:e==="environments"?"":Ti.groupBy.linkedAccount,xAxis:"",metric:"UnblendedCost",estimated:!0,includeCredits:!1,topNKeys:null};return e==="environments"?{...l,envIds:r}:{...l,organizationIds:r}},[r,a,o,e]),minDate:i,maxDate:a}},FWe=({billingSource:e,billingType:t})=>{var f,d;const{assistant:n,billing:r}=Ot(h=>({assistant:h.assistant,billing:h.billingNew[t]}),Lt),i=en(),{defaultBillingOptions:a}=DWe(t),o=Ic(),s=P.useMemo(()=>{var h;return(h=n[i.id])==null?void 0:h.billingQueryParams},[n,i.id]),l=Zt(),c=P.useMemo(()=>{var h,p;return((h=r.options)==null?void 0:h.billingData.loadingState)===Zn.isLoaded&&((p=r.groupByCombinations[e])==null?void 0:p.loadingState)===Zn.isLoaded&&r.availableDateRange.loadingState===Zn.isLoaded},[(f=r.options)==null?void 0:f.billingData.loadingState,(d=r.groupByCombinations[e])==null?void 0:d.loadingState]),u=P.useMemo(()=>location.pathname.includes(pe.billingSummary),[location.pathname]);P.useEffect(()=>{var h;if(s&&u){const{end_date:p,start_date:g,granularity:v,group_by_dimensions:y,isDetailedMode:x,internal_account_ids:C,filters:_,top_n_keys:S}=s;if(!(C.length===o.length&&C.every(E=>o.includes(E))))l(V8(C)),r.options&&l(jr.setBillingOptions({options:{billingData:{data:null,loadingState:Zn.notLoaded}},billingType:t}));else if(c){const E={...a,endDate:$r(p).subtract(1,"day").format("YYYY-MM-DD"),startDate:g};if(y){const[k,$]=y;k&&(E.groupBy=k),$&&(E.xAxis=$)}if(E.topNKeys=S||null,x?(E.groupBy=qY,l(jr.setDetailedModeActive({data:{previousGroupBy:((h=r.options)==null?void 0:h.groupBy)||"",previousFilters:r.filter.savedFilters||{}},billingType:t}))):l(jr.setDetailedModeActive({data:null,billingType:t})),v&&(E.granularity=v[0]),_){const k=_.reduce(($,T)=>{const[M,R]=T.dimension.split(":");return R?$[M]=T.values.map(N=>[R,N]):$[T.dimension]=T.values.map(N=>[N]),$},{});l(jr.setSelectedFilters({data:k,billingType:t}))}l(jr.setBillingOptions({options:E,billingType:t})),l(jr.setSelectedGroupByFilters({data:null,billingType:t})),l(w0.clearBillingQueryParams({orgId:i.id}))}}},[s,c,a,o,u])},BWe=()=>(FWe({billingSource:oa.default,billingType:"environments"}),null),ui={loading:"loading",loaded:"loaded",empty:"empty",shouldBeRefreshed:"shouldBeRefreshed",notSelected:"notSelected",noOrganization:"noOrganization",notFullAccountData:"notFullAccountData"},zWe=({children:e})=>{const t=ute(),n=sN(),{featuresAllowed:r,accountData:i,accountSettings:a,envIdsShouldBeRefreshed:o,environments:s,labels:l,newBillingInfo:c,nodeActions:u,organizations:f,orgPermissions:d,permissions:h,selectedEnvIds:p,tosAgreement:g}=Ot(N=>({featuresAllowed:N.app.featuresAllowed,environments:N.aws.entities.environments,accountData:N.auth.accountData,accountSettings:N.auth.accountSettings,permissions:N.app.permissions,orgPermissions:N.app.orgPermissions,nodeActions:N.cloud.nodeActions,tosAgreement:N.app.tosAgreement,organizations:N.organizations,labels:N.virtualEnvs,newBillingInfo:N.payment.newBillingInfo,selectedEnvIds:N.aws.selectedEnvIds,envIdsShouldBeRefreshed:N.aws.entities.environments.errorIds}),Lt),{state:v}=vp([Jr.architecture.edit]),y=v.editEnvIds,x=v.edit,C=xi(),_=fte(C.pathname),S=aN(C.pathname),O=dte(C.pathname),E=en(),{supportedEnvs:k}=IL(),$=P.useMemo(()=>{const N=new Set(k.map(Number));return E?E.environments.filter(D=>N.has(Number(D))):[]},[E,k]),T=P.useMemo(()=>!E||E.environments.length===0?!1:E.environments.every(N=>{var D;return((D=s.byId[N])==null?void 0:D.provider)===Ye.oci}),[E,s]);P.useEffect(()=>{i||t(hN())},[i]),P.useEffect(()=>{a||t(hte())},[a]),P.useEffect(()=>{n&&t(_S.getAttachedLabels(n))},[n]),P.useEffect(()=>{E!=null&&E.id&&t(_S.getGroups(E.id))},[E]),P.useEffect(()=>{s.loadingState===Zn.notLoaded&&f.loadingState===Zn.isLoaded&&t(KM())},[s.loadingState,f.loadingState]),P.useEffect(()=>{if(f.loadingState===Zn.isLoaded){const N=f.currentId;N!==null&&!c[N]&&t(K0.getBillingInfo({organizationId:N}))}},[c,f]),P.useEffect(()=>{t(pte()),t(gte()),t(jo.getOrganizations())},[]),P.useEffect(()=>{const N=s.workingIds.filter(D=>
390!h.envs[D]);N.length&&t(mte(N))},[s.workingIds,h.envs]),P.useEffect(()=>{E!=null&&E.id&&d[E.id]===void 0&&t(vte({orgId:E.id}))},[E==null?void 0:E.id,d]),P.useEffect(()=>{if(x){const N=s.workingIds.filter(D=>y.includes(D)&&!u.envs[D]);N.length&&t(yte(N))}},[s.workingIds,y,u.envs,x]),P.useEffect(()=>{f.creationAccess.loadingState===Zn.notLoaded&&t(jo.getCreationAccess())},[f.creationAccess.loadingState]);const[M,R]=P.useState(ui.loading);return P.useEffect(()=>{var Y;const N=s.loadingState===Zn.isLoaded,D=N&&s.workingIds.map(K=>+K).every(K=>h.envs[K]),F=N&&D&&(!x||s.workingIds.filter(K=>y.includes(K)).every(K=>u.envs[K])),V=r!==null,z=f.loadingState===Zn.isLoaded,B=N&&i&&D&&F&&g&&z&&V,G=((Y=p==null?void 0:p.filter(K=>!o.includes(K)))==null?void 0:Y.length)!==0;B?i.identity_provider==="auth0"&&(!i.given_name||!i.family_name)?R(ui.notFullAccountData):f.loadingState===Zn.isLoaded&&f.items.length===0?R(ui.noOrganization):(E==null?void 0:E.environments.length)===0&&_||C.search.includes(Yme)?R(ui.loaded):(E==null?void 0:E.environments.length)===0||T&&$.length===0&&!_&&!O?R(ui.empty):G||_||O?R(ui.loaded):o.includes(p[0])?R(ui.shouldBeRefreshed):R(ui.notSelected):R(ui.loading)},[s,i,p,h.envs,u.envs,f,E,$,T,r,C.pathname,l.loadingState,C.search,_,S,O]),w.jsxs(w.Fragment,{children:[M===ui.loading&&w.jsx(q8,{}),M===ui.notFullAccountData&&w.jsx(Ume,{accountData:i}),M===ui.noOrganization&&w.jsx(BL,{}),M===ui.empty&&w.jsx(fs,{to:pe.accountManager}),M===ui.notSelected&&w.jsx(xhe,{showDescription:!S}),M===ui.shouldBeRefreshed&&w.jsx(yhe,{}),M===ui.loaded&&w.jsxs(w.Fragment,{children:[w.jsx(BWe,{}),e]})]})},VWe="wrapper_ya-I2",WWe="shown_lzAXn",HWe="item_7L6Y5",GWe="good_A0Xef",UWe="bad_oCUHM",YWe="info_PhyCE",Su={wrapper:VWe,shown:WWe,"shown-item":"shown-item_r3x10",item:HWe,good:GWe,bad:UWe,info:YWe},XWe="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.6667%202.5C9.89858%202.5%208.20288%203.20238%206.95264%204.45262C5.7024%205.70286%205.00002%207.39856%205.00002%209.16667C5.00002%2010.9348%205.7024%2012.6305%206.95264%2013.8807C8.20288%2015.131%209.89858%2015.8333%2011.6667%2015.8333C13.4348%2015.8333%2015.1305%2015.131%2016.3807%2013.8807C17.631%2012.6305%2018.3334%2010.9348%2018.3334%209.16667H16.6667C16.6667%2011.9333%2014.4334%2014.1667%2011.6667%2014.1667C10.3406%2014.1667%209.06884%2013.6399%208.13115%2012.7022C7.19347%2011.7645%206.66669%2010.4927%206.66669%209.16667C6.66669%207.84058%207.19347%206.56881%208.13115%205.63113C9.06884%204.69345%2010.3406%204.16667%2011.6667%204.16667C12.025%204.16667%2012.3834%204.20833%2012.725%204.28333L14.0667%202.95C13.3%202.65%2012.5%202.5%2011.6667%202.5ZM17.1584%203.81667L11.6667%209.30833L9.68335%207.325L8.50835%208.50833L11.6667%2011.6667L18.3334%205L17.1584%203.81667ZM4.10835%205.68333C2.56669%206.95%201.66669%208.84167%201.66669%2010.8333C1.66669%2012.6014%202.36907%2014.2971%203.61931%2015.5474C4.86955%2016.7976%206.56524%2017.5%208.33335%2017.5C8.86669%2017.5%209.39169%2017.4333%209.90002%2017.3083C8.43335%2016.9833%207.08335%2016.25%205.97502%2015.2417C4.35002%2014.375%203.33335%2012.675%203.33335%2010.8333C3.33335%2010.5833%203.35835%2010.3417%203.39169%2010.0917C3.35835%209.78333%203.33335%209.475%203.33335%209.16667C3.33335%207.9
3906667%203.60002%206.775%204.10835%205.68333Z'%20fill='white'/%3e%3c/svg%3e",qWe="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.1131%202.63281L2.72144%207.02448V13.2411L7.1131%2017.6328H13.3298C14.8048%2016.1661%2017.7214%2013.2411%2017.7214%2013.2411V7.02448L13.3298%202.63281H7.1131ZM7.80477%204.29948H12.6381L16.0548%207.71615V12.5495L12.6381%2015.9661H7.80477L4.3881%2012.5495V7.71615L7.80477%204.29948ZM7.82144%206.55781L6.64644%207.73281L9.04644%2010.1328L6.64644%2012.5328L7.82144%2013.7078L10.2214%2011.3078L12.6214%2013.7078L13.7964%2012.5328L11.3964%2010.1328L13.7964%207.73281L12.6214%206.55781L10.2214%208.95781'%20fill='white'/%3e%3c/svg%3e",ZWe="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.16663%207.50008H10.8333V5.83342H9.16663V7.50008ZM9.99996%2016.6667C6.32496%2016.6667%203.33329%2013.6751%203.33329%2010.0001C3.33329%206.32508%206.32496%203.33341%209.99996%203.33341C13.675%203.33341%2016.6666%206.32508%2016.6666%2010.0001C16.6666%2013.6751%2013.675%2016.6667%209.99996%2016.6667ZM9.99996%201.66675C8.90561%201.66675%207.82198%201.8823%206.81093%202.30109C5.79988%202.71987%204.88122%203.3337%204.1074%204.10752C2.5446%205.67033%201.66663%207.78994%201.66663%2010.0001C1.66663%2012.2102%202.5446%2014.3298%204.1074%2015.8926C4.88122%2016.6665%205.79988%2017.2803%206.81093%2017.6991C7.82198%2018.1179%208.90561%2018.3334%209.99996%2018.3334C12.2101%2018.3334%2014.3297%2017.4554%2015.8925%2015.8926C17.4553%2014.3298%2018.3333%2012.2102%2018.3333%2010.0001C18.3333%208.90573%2018.1177%207.8221%2017.699%206.81105C17.2802%205.80001%2016.6663%204.88135%2015.8925%204.10752C15.1187%203.3337%2014.2%202.71987%2013.189%202.30109C12.1779%201.8823%2011.0943%201.66675%209.99996%201.66675ZM9.16663%2014.1667H10.8333V9.16675H9.16663V14.1667Z'%20fill='white'/%3e%3c/svg%3e",KWe="wrapper_cXVzT",JWe="wrapperClick_VZgPo",IM={wrapper:KWe,wrapperClick:JWe},QWe=({icon:e,onClick:t,text:n,style:r,className:i})=>w.jsxs("div",{onClick:t,className:qe(IM.wrapper,t&&IM.wrapperClick,i),style:r,children:["element"in e?e.element:e.src&&w.jsx("img",{style:{width:e.width,minWidth:e.width,borderRadius:"2px"},src:e.src,alt:""}),w.jsx("p",{className:n.className,children:n.value})]}),eHe=()=>{const{data:e}=P.useContext(Nx),t=1e3,n={[wl.good]:{icon:XWe,className:Su.good},[wl.bad]:{icon:qWe,className:Su.bad},[wl.info]:{icon:ZWe,className:Su.info}};return w.jsx("div",{className:qe(Su.wrapper,e.length!==0&&Su.shown),children:e.map(r=>w.jsx(QWe,{style:{animationDelay:`${r.duration-t}ms`},className:qe(Su.item,n[r.status].className,Su["shown-item"]),icon:{src:n[r.status].icon,width:20},text:{value:r.text}},r.id))})},tHe="wrapper_bhHYC",nHe="form_muo-x",rHe="errorWrapper_I8RSR",iHe="fieldWrapperWithRemoveButton_2TgiB",aHe="fieldWrapper_TJWNR",oHe="buttonWrapper_NIto2",cc={wrapper:tHe,form:nHe,errorWrapper:rHe,fieldWrapperWithRemoveButton:iHe,fieldWrapper:aHe,buttonWrapper:oHe},sHe=({text:e})=>w.jsx("div",{className:xte.label,children:e}),lHe="icon_dm4m7",cHe={icon:lHe},uHe="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='%23E2001A'%20fill-opacity='0.8'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.50004%202.5V3.33333H3.33337V5H4.16671V15.8333C4.16671%2016.2754%204.3423%2016.6993%204.65486%2017.0118C4.96742%2017.3244%205.39135%2017.5%205.83337%2017.5H14.1667C14.6087%2017.5%2015.0327%2017.3244%2015.3452%2017.0118C15.6578%2016.6993%2015.8334%2016.2754%2015.8334%2015.8333V5H16.6667V3.33333H12.5V2.5H7.50004ZM5.83337%205H14.1667V15.8333H5.83337V5ZM7.50004%206.66667V14.1667H9.16671V6.66667H7.50004ZM10.8334%206.66667V14.1667H12.5V6.66667H10.8334Z'/%3e%3c/svg%3e",fHe=({onClick:e})=>w.jsx("img",{onClick:e,className:cHe.icon,src:uHe}),dHe="wrapper_IccCb",hHe="text_LYygf",LM={wrapper:dHe,text:hHe},pHe=({text:e,onClick:t})=>w.jsxs("div",{className:LM.wrapper,onClick:t,children:[w.jsx(cre,{fillColor:"#23A2FF"}),w.jsx("span",{className:LM.text,children:e})]}),gHe=()=>{const e=P.useRef(!1);return P.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),{mountedRef:e}},mHe=(e,t="This is a duplicate")=>e.test("unique","",function(n){if(n&&Array.isArray(n))for(let r=0;r<n.length;r++){const i=n[r],a=n.lastIndexOf(i);if(a!==r)return this.createError({path:`emails[${a}]`,message:t})}return!0}),vHe=uN().shape({emails:mHe(Ste().of(gg().lowercase().required("Email is required").email("Email is not val
390id")))}),yHe=({onClose:e})=>{const{mountedRef:t}=gHe(),n=Zt(),r={emails:[""]},{showNotification:i}=$3();return w.jsx(ut,{onClose:e,className:cc.wrapper,children:w.jsxs(ut.Content,{children:[w.jsx(ut.Title,{children:"Invite your friends!"}),w.jsxs(ut.Description,{children:["Who is great potential to ",bte,"?"]}),w.jsx(fN,{validationSchema:vHe,initialValues:r,onSubmit:async(a,{setSubmitting:o,setStatus:s})=>{var c;const l=await n(Ry(a));if(t.current){if(Ry.rejected.match(l)){const u=((c=l.payload)==null?void 0:c.error)||l.payload.email[0]||"Something went wrong";s({ok:!1,message:u})}o(!1),Ry.fulfilled.match(l)&&(i({status:wl.good,text:"Friend is invited successfully"}),e())}},children:({isSubmitting:a,status:o})=>w.jsxs(Cte,{className:cc.form,children:[o&&!o.ok&&o.message&&w.jsx("div",{className:cc.errorWrapper,children:w.jsx(wte,{children:o.message})}),w.jsx(_te,{name:"emails",children:({form:{values:s},push:l,remove:c})=>w.jsxs(w.Fragment,{children:[w.jsx(sHe,{text:"Email"}),s.emails.map((u,f)=>w.jsx("div",{className:qe(s.emails.length!==1&&cc.fieldWrapperWithRemoveButton),children:w.jsx(dN,{name:`emails[${f}]`,className:cc.fieldWrapper,children:d=>w.jsxs(w.Fragment,{children:[w.jsx(cN,{...d,autoComplete:"off",placeholder:"E.g. [email protected]"}),s.emails.length!==1&&w.jsx(fHe,{onClick:()=>{s.emails.length>1&&c(f)}})]})})},f)),w.jsx("div",{className:cc.buttonWrapper,children:w.jsx(pHe,{text:"Add one more friend",onClick:()=>l("")})})]})}),w.jsx("div",{className:cc.buttonWrapper,children:w.jsx(gN,{isSubmitting:a,isDisabled:a,text:"Send invitation",type:"submit"})}),w.jsx("div",{className:cc.buttonWrapper,children:w.jsx("button",{className:"simple-button",onClick:e,children:"Cancel"})})]})})]})})},ZY="sidebar-collapsed",xHe=()=>{try{return localStorage.getItem(ZY)==="true"}catch{return!1}},bHe=({children:e})=>{const{isOpened:t,actions:n}=mhe();vhe();const{value:r}=due(),[i,a]=P.useState(xHe),[o,s]=P.useState(()=>window.innerWidth<1800),{assistant:l,toggleAssistantShown:c}=Px(),u=P.useMemo(()=>(l==null?void 0:l.shown)??localStorage.getItem(w6)!=="false",[l==null?void 0:l.shown]),f=P.useRef(null);P.useEffect(()=>{const x=()=>s(window.innerWidth<1800);return window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]),P.useEffect(()=>{try{localStorage.setItem(w6,String(u))}catch{}},[u]);const d=u&&o,h=P.useCallback(x=>{a(C=>{const _=typeof x=="function"?x(C):x;if(!_&&u&&window.innerWidth<1800)return C;try{localStorage.setItem(ZY,String(_))}catch{}return _})},[u]);P.useEffect(()=>{u?(f.current=i,a(!0)):f.current!==null&&(a(f.current),f.current=null)},[u]);const p=Zt(),g=P.useRef(!0);P.useEffect(()=>{if(g.current){g.current=!1;return}p(Hg.setSidebarIsResizing(!0));const x=setTimeout(()=>p(Hg.setSidebarIsResizing(!1)),250);return()=>clearTimeout(x)},[i]);const v=xi(),y=P.useRef(v.pathname.includes(pe.cloudlist));return P.useEffect(()=>{const x=v.pathname.includes(pe.cloudlist);y.current&&!x&&p(Ote.setViewMode("list")),y.current=x},[v.pathname,p]),w.jsxs(w.Fragment,{children:[t&&w.jsx(yHe,{onClose:n.close}),w.jsx(ghe,{isMenuCollapsed:i,setIsMenuCollapsed:h,isSidebarToggleDisabled:d,assistantSlot:w.jsx(fue,{isOpen:u,onClose:c}),children:w.jsxs(Nx.Provider,{value:r,children:[w.jsx(zWe,{children:e}),w.jsx(eHe,{})]})})]})},CHe=P.memo(bHe),wHe="/cabinet/static/assets/hotel-4-pyTjXN.png",_He="modal_vSeFd",SHe="description_eupy3",OHe="button_JN7Hv",EHe="organizationName_XQRp7",kHe="image_b3pwg",M1={modal:_He,description:SHe,button:OHe,organizationName:EHe,image:kHe},AHe=({})=>{const e=ni(),t=xi(),n=localStorage.getItem("organizationName"),[r,i]=P.useState(!0),a=async()=>{i(!1),localStorage.removeItem("organizationName"),e(t)};return!r||!n?null:w.jsxs(ut,{onClose:a,modalClassName:M1.modal,children:[w.jsx(ut.Image,{children:w.jsx("img",{className:M1.image,src:wHe})}),w.jsx(ut.Title,{children:"Welcome Organizations!"}),w.jsxs(ut.Description,{className:M1.description,children:["Organizations are shared environments where teams can work with cloud accounts. You were automatically defined as the owner of ",w.jsx("span",{className:M1.organizationName,children:n}),"."]}),w.jsxs(ut.Content,{width:"360px",children:[w.jsx(yi,{text:"Got it",size:"medium",type:"blue",onClick:a,className:M1.button}),w.jsx(yi,{text:"Organization settings",size:"medium",type:"transparent",onClick:()=>e(pe.myOrganizationSettings)})]})]})},$He="img_3rfC6",THe="organizationName_ZgoXh",RM={img:$He,organizationName:THe}
390,PHe="/cabinet/static/assets/link-aws-marketplace-CiZHst8p.png",MHe="organizationIcon_Qotps",NHe={organizationIcon:MHe},IHe=({name:e,className:t})=>{const n=P.useMemo(()=>e.split(" ").reduce((a,o)=>o&&o.trim()?a+o.trim()[0]:a,""),[e]);return w.jsx("div",{className:qe(NHe.organizationIcon,t),children:n})},LHe="organizationOption_7ggwc",RHe="organizationOptionActive_hAbnF",jHe="organizationName_oChS-",H4={organizationOption:LHe,organizationOptionActive:RHe,organizationName:jHe},DHe="wrapper_56PEk",FHe="oldWrapperStyles_vwVvK",BHe="disabled_TpI9H",zHe="text_8cpQK",VHe="counter_bwzSJ",WHe="active_o56ea",HHe="checked_cOR-Y",Ou={wrapper:DHe,oldWrapperStyles:FHe,disabled:BHe,text:zHe,counter:VHe,active:WHe,checked:HHe},GHe=e=>P.createElement("svg",{width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M9.73337 2C8.31888 2 6.96233 2.5619 5.96213 3.5621C4.96194 4.56229 4.40003 5.91885 4.40003 7.33333C4.40003 8.74782 4.96194 10.1044 5.96213 11.1046C6.96233 12.1048 8.31888 12.6667 9.73337 12.6667C11.1479 12.6667 12.5044 12.1048 13.5046 11.1046C14.5048 10.1044 15.0667 8.74782 15.0667 7.33333H13.7334C13.7334 9.54667 11.9467 11.3333 9.73337 11.3333C8.6725 11.3333 7.65509 10.9119 6.90494 10.1618C6.1548 9.41161 5.73337 8.3942 5.73337 7.33333C5.73337 6.27247 6.1548 5.25505 6.90494 4.50491C7.65509 3.75476 8.6725 3.33333 9.73337 3.33333C10.02 3.33333 10.3067 3.36667 10.58 3.42667L11.6534 2.36C11.04 2.12 10.4 2 9.73337 2ZM14.1267 3.05333L9.73337 7.44667L8.1467 5.86L7.2067 6.80667L9.73337 9.33333L15.0667 4L14.1267 3.05333ZM3.6867 4.54667C2.45337 5.56 1.73337 7.07333 1.73337 8.66667C1.73337 10.0812 2.29527 11.4377 3.29547 12.4379C4.29566 13.4381 5.65221 14 7.0667 14C7.49337 14 7.91337 13.9467 8.32004 13.8467C7.1467 13.5867 6.0667 13 5.18004 12.1933C3.88003 11.5 3.0667 10.14 3.0667 8.66667C3.0667 8.46667 3.0867 8.27333 3.11337 8.07333C3.0867 7.82667 3.0667 7.58 3.0667 7.33333C3.0667 6.37333 3.28003 5.42 3.6867 4.54667Z",fill:"#6CAE3E"})),UHe=({placeholder:e,name:t,onClick:n,className:r,counter:i,disabled:a,loading:o,opened:s,selected:l,renderBeforeArrow:c,renderLeft:u,oldSelectStyles:f=!1})=>w.jsxs("div",{className:qe(Ou.wrapper,a&&Ou.disabled,s&&Ou.active,f&&Ou.oldWrapperStyles,r),onClick:()=>!a&&n&&n(),children:[u&&u(),w.jsx(Pi.Text,{ellipsis:!0,className:t?void 0:qe(Ou.text),children:t||e}),c&&c(),!!i&&w.jsx("div",{className:Ou.counter,children:i}),l&&w.jsx(GHe,{className:Ou.checked}),o&&w.jsx(QM,{})]}),YHe=({organizations:e,selectedOrganization:t,setSelectedOrganization:n})=>w.jsx(MN,{trigger:r=>w.jsx("div",{children:w.jsx(UHe,{name:t==null?void 0:t.name,opened:r,placeholder:"Select organization"})}),contentStyle:{zIndex:10003},position:"bottom left",children:w.jsx(Rne,{style:{maxHeight:"200px"},children:e.map(r=>w.jsxs("div",{className:qe(H4.organizationOption,(t==null?void 0:t.name)===r.name&&H4.organizationOptionActive),onClick:()=>{n(r)},children:[w.jsx(IHe,{name:r.name}),w.jsx("div",{className:H4.organizationName,children:r.name})]}))})}),XHe=({organizations:e,token:t,onAfterRequest:n})=>{const r=Zt(),{showNotification:i}=$3(),[a,o]=P.useState(()=>e.length===1?e[0]:void 0),[s,l]=P.useState(!1),c=async()=>{if(a&&t){l(!0);const u=await r(K0.linkMarketplace({orgId:a.id,token:t}));K0.linkMarketplace.fulfilled.match(u)?i({text:"Organization was successfully linked to AWS Marketplace",status:wl.good}):i({text:"Something went wrong",status:wl.bad}),n(),l(!1)}};return w.jsxs(w.Fragment,{children:[w.jsx("img",{className:RM.img,width:172,src:PHe,alt:""}),w.jsx(ut.Title,{children:"Link to AWS Marketplace"}),e.length===1?w.jsxs(ut.Description,{children:["Associate payment for using Uniskai via AWS Marketplace with"," ",w.jsx("span",{className:RM.organizationName,children:e[0].name})]}):w.jsx(w.Fragment,{children:e.length?w.jsxs(w.Fragment,{children:[w.jsx(ut.Description,{children:"Select the organization with which you want to associate payment for using Uniskai via AWS Marketplace."}),w.jsx("div",{style:{marginBottom:"20px"},children:w.jsx(YHe,{organizations:e,selectedOrganization:a,setSelectedOrganization:o})})]}):w.jsx(kL,{severity:Tx.warning,style:{marginBottom:16},children:"There are no unpaid organizations where you are the owner"})}),w.jsx(yi,{text:"Link to AWS Marketplace",size:"medium",type:"blue",onClick:c,disabled:!a,submitting:s})]})},qHe=({token:e,onClose:t})=>{const n=Zt(),{organizations:r,newBillingInfo:i}=Ot(l=>({organizations:l.organizations,newBillingInfo:l.payment.newBillingInfo}),Lt),[a,o]=P.useState(!1);P.useEffect(()=>{(async()=>{const l=r.items.map(c=>c.id).filter(c=>!i[c]);if(l.length){const c=l.map(u=>n(K0.getBillingInfo({organizationId:u})));await Promise.all(c)}o(!0)})()},[i,r]);const s=a?r.items.filter(l=>{var c;return((c=i[l.id])==null?void 0:c.loadingState)===Zn.noData&&l.is_owner}):null;return w.jsx(ut,{onClose:t,style:{width:"550px"},children:w.jsxs(ut.Content,{width:"360px",children:[!a&&w.jsx(zg,{}),a&&s&&w.jsx(XHe,{onAfterRequest:t,organizations:s,token:e})]})})},ZHe=()=>{const e=localStorage.getItem(yk),[t,n]=P.useState(!!e);P.useEffect(()=>{n(!!e)},[e]);const r=()=>{localStorage.removeItem(yk),n(!1)};return t?w.jsx(qHe,{token:e,onClose:r}):null},KHe=({isAllowed:e,redirectTo:t})=>{const n=xi(),r=JM(n),{isLoading:i,isAuthenticated:a}=qM();return i?null:w.jsxs(CHe,{title:r||"",children:[w.jsx(AHe,{}),w.jsx(ZHe,{}),w.jsx(Wi,{})]})},JHe=P.memo(KHe),QHe=()=>w.jsxs("div",{className:Gi.loadingText,children:[w.jsx("img",{src:Ete.lostInternetConnection,alt:"",style:{width:"96px",height:"96px"}}),w.jsx("p",{className:Gi.title,children:"Your internet connection is unstable"}),w.jsx("p",{className:Gi.text,children:"Please check your network stability and reload this page"})]}),eGe=()=>w.jsx(kte,{children:w.jsx(QHe,{})}),tGe=({children:e,isOpened:t})=>t?w.jsx(w.Fragment,{children:e}):null,nGe="wrapper_HxIfz",rGe="image_nIxzG",iGe="submit_-mtZB",G4={wrapper:nGe,image:rGe,submit:iGe},aGe="/cabinet/static/assets/session-expired-D5EoN6uN.svg",oGe=({onLoginButtonClick:e,onGoHomePage:t})=>w.jsxs(ut,{className:G4.wrapper,zIndex:100002,children:[w.jsx(ut.Title,{children:"Whoops! Your session has expired"}),w.jsx(ut.Description,{children:"Your session has expired due to inactivity. Just login again."}),w.jsx("img",{className:G4.image,src:aGe}),w.jsx(gN,{text:"Login again",className:G4.submit,onClick:e}),w.jsx("button",{className:"simple-button",onClick:t,children:"go to home page"})]}),sGe=({sessionExpired:e})=>{const t=ni(),{appLogout:n}=lN(),r=()=>{t(pe.home)},i=()=>{n({logoutParams:{returnTo:window.location.origin+pe.signIn}})};return w.jsx(tGe,{isOpened:e,children:w.jsx(oGe,{onLoginButtonClick:i,onGoHomePage:r})})},lGe={},cGe=()=>{const e=Zt(),t=Ot(r=>r.app.tosAgreement,Lt),n=()=>{e(Ate())};return w.jsx(w3,{title:"Terms of Service",open:(t==null?void 0:t.isAgreed)!==void 0&&!t.isAgreed,closable:!1,footer:[w.jsx(Gr,{type:"primary",onClick:n,children:"I Accept"},"accept")],className:lGe.wrapper,width:"560px",zIndex:1052,children:w.jsxs("div",{children:[w.jsx("p",{children:"To continue using our Platform, you must accept our Terms of Service. The
390se terms cover support services, pricing, disclaimers, and our Free-Trial offerings."}),w.jsx("br",{}),w.jsxs("p",{children:["Please review"," ",w.jsx("a",{target:"_blank",href:pe.terms,children:"Terms of Service"}),". By clicking below and continuing to use our Platform, you confirm your agreement and acceptance of these Terms."]}),w.jsx("br",{}),w.jsxs("p",{children:["For any questions, contact us at"," ",w.jsx("a",{target:"_blank",href:`mailto:${Bg}`,children:Bg}),"."]}),w.jsx("p",{children:"Thank you for choosing Uniskai."})]})})},uGe="wrapper_yvVX5",fGe="content_eDjxa",dGe="image_iXeI-",hGe="title_C7u2R",pGe="caption_mCL5s",v0={wrapper:uGe,content:fGe,image:dGe,title:hGe,caption:pGe},gGe=(e,t,n)=>{const r=t===void 0?!0:t;ni();const i=Zt(),a=()=>{i(Hg.setOnBackBtnClick({onBackBtnClick:void 0}))};P.useEffect(()=>{if(r){const o=s=>()=>{s&&s(),a()};i(Hg.setOnBackBtnClick({onBackBtnClick:o(e)}))}return a},[t,...n||[]])},U4=()=>{const e=ni();return gGe(()=>e(-1)),w.jsx("div",{className:v0.wrapper,children:w.jsx("div",{className:v0.content,children:w.jsxs("div",{className:v0.content,children:[w.jsx("img",{className:v0.image,src:$te,alt:""}),w.jsx("h3",{className:v0.title,children:"Error 404"}),w.jsx("p",{className:v0.caption,children:"Not found"})]})})})};let jM=!1;const mGe="wmdjhpui";function vGe(){if(jM||typeof window>"u")return;if(jM=!0,!window.Intercom){const t=function(){t.c(arguments)};t.q=[],t.c=function(n){t.q.push(n)},window.Intercom=t}const e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=`https://widget.intercom.io/widget/${mGe}`,document.body.appendChild(e)}const yGe="wmdjhpui",xGe="https://api-iam.intercom.io",bGe="intercom-chat-launcher",KY=`.${bGe}`,D8={api_base:xGe,app_id:yGe,custom_launcher_selector:KY},JY=async(e,t)=>{var n,r;if(!window.Intercom)setTimeout(()=>{JY(e,t)},3e3);else{const a=(r=(n=await Cl({url:"intercom/token",method:"get",withCredentials:!0})())==null?void 0:n.data)==null?void 0:r.token;console.log(document.querySelector(KY),"intercom launcher selector"),a?window.Intercom("boot",{...D8,intercom_user_jwt:a,hide_default_launcher:!t}):window.Intercom("boot",{...D8,name:e.given_name,email:e.email,hide_default_launcher:!t})}},CGe=()=>{var o;const e=xi(),t=en(),r=(o=Ot(s=>s.assistant).supportData[t.id])==null?void 0:o.showSupportChatIcon,i=Zt();P.useEffect(()=>{r||sessionStorage.getItem("showSupportChatIcon")&&i(w0.setShowSupportChatIcon({orgId:t.id,data:!0}))},[t.id,r]),P.useEffect(()=>{vGe()},[]),P.useEffect(()=>{window==null||window.Intercom("boot",{...D8,hide_default_launcher:!0})},[]),P.useEffect(()=>{window==null||window.Intercom("update")},[e]);const a=ff(s=>s.auth.accountData,Lt);P.useEffect(()=>{a&&JY(a,!!r)},[a,r])},wGe=e=>{const[t,n]=P.useState(!1),{pathname:r}=xi(),i=o=>{var s;(s=window.Intercom)==null||s.call(window,"showArticle",o),n(!0)},a=()=>{var o;(o=window.Intercom)==null||o.call(window,"hide")};return P.useEffect(()=>{var o;(o=window.Intercom)==null||o.call(window,"onHide",function(){n(!1)})},[]),P.useEffect(()=>{t&&e&&i(e)},[e]),P.useEffect(()=>{a()},[r]),{intercomIsShown:t,showIntercomArticle:i,hideIntercom:a}},_Ge=()=>(CGe(),wGe(),null),SGe=e=>Cl({method:"get",url:`organizations/${e}/superset/dashboards`,withCredentials:!0})(),OGe=(e,t)=>Cl({method:"get",url:`organizations/${e}/superset/dashboards/${t}/guest-token`,withCredentials:!0})(),EGe=e=>Cl({method:"get",url:`organizations/${e}/superset/login`,withCredentials:!0})(),kGe=e=>Cl({method:"get",url:`organizations/${e}/superset/keep-alive`,withCredentials:!0})(),DM={getDashboards:SGe,getGuestToken:OGe,supersetLogin:EGe,keepAlive:kGe},AGe="localhostWrapper_3bknC",$Ge="localhostBanner_ax-rb",TGe="iframe_DMAmB",F8={localhostWrapper:AGe,localhostBanner:$Ge,iframe:TGe},B8=void 0,PGe="superset-theme-mode",MGe={[ca.light]:"default",[ca.dark]:"dark"},NGe=B8,IGe=2*60*1e3,LGe=10*1e3,FM=({children:e})=>w.jsxs("div",{className:F8.localhostWrapper,children:[rh&&w.jsxs("div",{className:F8.localhostBanner,children:[w.jsx("b",{children:"Localhost limitation: "}),"The app is running on ",w.jsx("code",{children:"localhost"})," while the Superset iframe is served from"," ",w.jsx("code",{children:"profisealabs.com"}),". Due to different origins, ",w.jsx("code",{children:"localStorage"})," and"," ",w.jsx("code",{children:"cookies"})," are isolated between the two domains. This means:",w.jsxs("ul",{children:[w.jsxs("li",{children:[w.jsx("b",{children:"Keep-alive"})," — the ",w.jsx("code",{children:"superset_session"})," cookie is not readable from localhost, so session keep-alive is disabled and the session may expire."]}),w.jsxs("li",{children:[w.jsx("b",{children:"Theme sync"})," — ",w.jsx("code",{children:"localStorage"})," values (e.g. theme mode) set on localhost are not visible inside the Superset iframe, so theme changes won't apply."]})]}),"These features work correctly in deployed environments where both share the same domain."]}),e]}),RGe=()=>{const e=P.useMemo(()=>rh?NGe:window.location.origin+"/superset/dashboard/list",[]),t=en(),{theme:n}=ti(),[r,i]=P.useState(e),a=P.useRef(r);a.current=r;const o=P.useRef(null);P.useEffect(()=>{const f=d=>{const{dashboardId:h,chartId:p}=d.detail??{};let g;h?g=rh?`${B8}/superset/dashboard/${h}/`:`${window.location.origin}/superset/superset/dashboard/${h}/`:p?g=rh?`${B8}/superset/explore/?slice_id=${p}`:`${window.location.origin}/superset/explore/?slice_id=${p}`:g=e,g===a.current&&o.current?o.current.src=g:i(g)};return window.addEventListener("kai:superset-navigate",f),()=>window.removeEventListener("kai:superset-navigate",f)},[e]),P.useEffect(()=>{const f=MGe[n];localStorage.setItem(PGe,f)},[n]);const[s,l]=P.useState(!1),[c,u]=P.useState(!1);return P.useEffect(()=>{l(!1),u(!1)},[t.id]),P.useEffect(()=>{const f=setTimeout(()=>DM.supersetLogin(t.id).then(d=>{d.status===200&&(l(!0),u(!1))}).catch(d=>{u(!0),console.error("Failed to login to Superset",d)}),100);return()=>clearTimeout(f)},[t.id]),P.useEffect(()=>{if(!s||c)return;let f;const d=(p=!1)=>{DM.keepAlive(t.id).then(g=>{if(g.status!==200){if(g.status===401&&!p){f=setTimeout(()=>d(!0),LGe);return}u(!0)}}).catch(()=>{u(!0)})},h=setInterval(()=>d(),IGe);return()=>{clearInterval(h),f&&clearTimeout(f)}},[t.id,s,c]),s?c?w.jsx(FM,{children:w.jsx(Tte,{showReloadButton:!1})}):w.jsx(FM,{children:w.jsx("iframe",{ref:o,src:r,title:"Superset Admin",className:F8.iframe},n+t.id)}):w.jsx(q8,{})},jGe=()=>{const{preEstimatedBill:e,billingInfo:t}=Ot(o=>({preEstimatedBill:o.payment.preEstimatedBill,billingInfo:o.payment.newBillingInfo}),Lt),n=Zt(),r=en().id,i=P.useMemo(()=>t[r],[t,r]),a=P.useMemo(()=>e[r],[e,r]);P.useEffect(()=>{r&&(!a||a.loadingState===Zn.notLoaded)&&n(K0.getPreEstimatedBill({orgId:r}))},[r,e,i])},DGe=()=>{const{specialOffers:e}=Ot(i=>({specialOffers:i.payment.specialOffer}),Lt),t=en(),n=Zt(),r=P.useMemo(()=>e[t.id],[e,t.id]);P.useEffect(()=>{(async()=>t.id&&(!r||r.loadingState===Zn.notLoaded)&&n(K0.getSpecialOffer({orgId:t.id})))()},[t,r])},FGe=P.lazy(()=>st(()=>import("./UiKit-CPajq-Ye.js"),__vite__mapDeps([8,1,2,3,4,9,10,11,12,13,14,15,16]))),BGe=P.lazy(()=>st(()=>import("./ReportsContainer-qPJPWy4Z.js"),__vite__mapDeps([17,1,2,3,4,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,11,12,13,14,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124]))),zGe=P.lazy(()=>st(()=>import("./AnalyticsContainer-CW6q_tsG.js"),__vite__mapDeps([125,1,2,3,4,73,74,111,11,12,13,14,126,18,127,90,128,129,130,131,132,133,134,85,86,135,58,88,54,55,15,22,47,40,136,137,138,99,67,139,102,103,140,25,26,27,141,62,71,65,66,142,143,144,145,20,21,30,146,79,147,148,149,150,100,151,152,153,41,154,84,87,97,98,51,52,19,155,156,157,158,159,160,161,162,163,164,117,118,119,75,76,77,165]))),VGe=P.lazy(()=>st(()=>import("./AnalyticsContainer-C0C-NsmE.js"),__vite__mapDeps([166,1,2,3,4,117,118,119,167,24,25,26,27,28,29,47,22,30,45,46,48,49,50,51,52,53,54,55,56,57,11,12,13,14,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,168,169,120,170,171,172,173,174,127,90,128,129,130,131,132,133,84,85,86,87,154,15,111,175]))),WGe=P.lazy(()=>st(()=>import("./TeamManagementContainer-B1WIi5oR.js"),__vite__mapDeps([176,1,2,3,4,177,178,179]))),HGe=P.lazy(()=>st(()=>import("./Access-DwCwB3Rf.js"),__vite__mapDeps([180,1,2,3,4,181,182,183,184,185,186,187,188,47,189,113,102,103,54,55,70,71,190,191,192,193,194,195,196,197,198,199,200,201]))),GGe=P.lazy(()=>st(()=>import("./Accounts-6mA8OUFB.js"),__vite__mapDeps([202,1,2,3,4,198,47,199,203,178,179,204,205,186,187,188,193,194,195,206,45,46,22,48,49,50,51,52,53,54,55,56,57,11,12,13,14,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,189,113,102,103,190,191,192,207,208,209,183,182,210]))),BM=P.lazy(()=>st(()=>import("./AddEditAccountsSet-B7X-qUgz.js"),__vite__mapDeps([211,1,2,3,4,212,47,22,213,182,214,205,186,187,188,193,194,195,206,45,46,48,49,50,51,52,53,54,55,56,57,11,12,13,14,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,189,113,102,103,190,191,192,207,208]))),UGe=P.lazy(()=>st(()=>import("./InviteUser-Bd7MlGn6.js"),__vite__mapDeps([215,1,2,3,4,183,182,216,63,212,47,22,213,205,186,187,188,193,194,195,206,45,46,48,49,50,51,52,53,54,55,56,57,11,12,13,14,58,59,60,61,62,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,189,113,102,103,190,191,192,207,208]))),zM=P.lazy(()=>st(()=>import("./AddEditGroup-CgzpZQwJ.js"),__vite__mapDeps([217,1,2,3,4,212,47,22,213,183,182,214]))),YGe=P.lazy(()=>st(()=>import("./Roles-0hzjjaIf.js"),__vite__mapDeps([218,1,2,3,4,184,185,183,182,209,197,203,178,179,204,186,187,188,198,47,199,189,113,102,103,54,55,70,71,190,191,192,219,83,76,77,205,193,194,195,206,45,46,22,48,49,50,51,52,53,56,57,11,12,13,14,58,59,60,61,62,63,64,65,66,67,68,69,72,73,74,75,78,207,208,220,196,221]))),VM=P.lazy(()=>st(()=>
390import("./AddEditRole-_n52KWXz.js"),__vite__mapDeps([222,1,2,3,4,212,47,22,213,205,186,187,188,193,194,195,206,45,46,48,49,50,51,52,53,54,55,56,57,11,12,13,14,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,189,113,102,103,190,191,192,207,208,182,214,197,183,200,223]))),XGe=P.lazy(()=>st(()=>import("./UsersAndGroups-Cx3hmoZ_.js"),__vite__mapDeps([224,1,2,3,4,183,182,189,113,102,103,54,55,70,71,190,191,192,219,83,76,77,205,186,187,188,193,194,195,206,45,46,22,47,48,49,50,51,52,53,56,57,11,12,13,14,58,59,60,61,62,63,64,65,66,67,68,69,72,73,74,75,78,207,208,178,179,220,203,204,181,225]))),WM=P.lazy(()=>st(()=>import("./UsersGroupsTabRedirect-DplX0CwR.js"),__vite__mapDeps([226,1,2,3,4]))),qGe=P.lazy(()=>st(()=>import("./WasteWrapper-DsuH5uqy.js"),__vite__mapDeps([227,1,2,3,4,228,229,230,231,232,111,117,118,119,104,130,189,113,102,103,54,55,70,71,190,191,192,233,12,13,234,235,193,194,195,236,145,20,21,22,30,40,146,79,147,148,149,150,237,238,207,100,239,240,241,170,171,172,173,19,132,242]))),ZGe=P.lazy(()=>st(()=>import("./LogsContainer-Dl73TqNL.js"),__vite__mapDeps([243,1,2,3,4,244,141,62,71,22,47,65,66,142,143,144,56,57,11,12,13,14,58,59,60,61,63,64,154,117,118,119,55,245]))),KGe=P.lazy(()=>st(()=>import("./RightsizingContainer-Eobnrifv.js"),__vite__mapDeps([246,1,2,3,4,247,111,117,118,119,248,249,250,194,251,100,46,63,252,207,233,189,113,102,103,54,55,70,71,190,191,192,12,13,234,253,238,239,136,137,241,254,120,255,256,170,171,172,173,257,35,36,37,106,42,258,38,34,83,76,77,62,60,61,228,231,232,130,259,260,23,193,195,47,237,104,51,52,261,41,262,89,263]))),JGe=P.lazy(()=>st(()=>import("./SpotsContainer-CMDCls_P.js"),__vite__mapDeps([264,1,2,3,4,111,265,115,233,189,113,102,103,54,55,70,71,190,191,192,12,13,234,240,207,238,194,100,239,256,254,120,255,170,171,172,173,241,46,257,266,193,195,267,136,137,51,52,47,268,228,231,232,130,117,118,119,269]))),QGe=P.lazy(()=>st(()=>import("./CloudmapWrapperReactFlow-BQTAhF5t.js"),__vite__mapDeps([270,1,2,3,4,153,271,272,67,63,62,266,139,102,103,9,10,50,273,161,162,145,20,21,22,30,54,55,40,146,79,147,148,149,236,138,111,99,140,268,274,68,69,275,276,277,90,251,278,158,159,279,57,11,12,13,14,58,59,280,281,134,85,86,135,117,118,119,282,283,249,93,110,235,136,137,284]))),eUe=P.lazy(()=>st(()=>import("./CloudnetWrapper-Dz6h2SFy.js"),__vite__mapDeps([285,1,2,3,4,40,271,272,67,63,62,266,139,102,103,9,10,50,273,161,162,145,20,21,22,30,54,55,146,79,147,148,149,236,138,111,99,140,268,274,68,69,275,276,277,90,251,278,158,159,279,57,11,12,13,14,58,59,280,281,134,85,86,135,117,118,119,282,283,136,137,93,37,286,80,287,288,49,289,153,89,290]))),tUe=P.lazy(()=>st(()=>import("./CloudsitterContainer-Dfik06wt.js"),__vite__mapDeps([291,1,2,3,4,111,250,194,251,100,46,63,252,235,104,193,195,170,171,172,173,256,254,120,255,241,238,207,239,257,233,189,113,102,103,54,55,70,71,190,191,192,12,13,234,237,240,41,259,260,267,20,21,158,22,159,160,161,162,163,249,83,76,77,231,232,117,118,119,228,261,136,137,262,51,52,292,47,130,293]))),nUe=P.lazy(()=>st(()=>import("./ReservationContainer-h_GcrYDA.js"),__vite__mapDeps([294,1,2,3,4,111,228,171,231,232,130,117,118,119,19,189,113,102,103,54,55,70,71,190,191,192,41,237,238,207,194,100,239,295,241,296,47,22,35,36,37,38,258,42,106,297,298,299,90,300,109,253,136,137,254,120,255,72,73,74,65,66,30,235,301,169]))),rUe=P.lazy(()=>st(()=>import("./AMContainer-X2tifmhS.js"),__vite__mapDeps([302,1,2,3,4,292]))),iUe=P.lazy(()=>st(()=>import("./AccountManager-ChinDeZa.js"),__vite__mapDeps([303,1,2,3,4,131,46,47,22,65,66,71,300,187,121,122,123,116,304,305,306,100,307,273,308,48,49,50,51,52,53,309,117,118,119,130,310,311,177,178,179,312]))),aUe=P.lazy(()=>st(()=>import("./CloudlistContainer-BFimlXjl.js"),__vite__mapDeps([313,1,2,3,4,272,67,63,62,266,139,102,103,9,10,50,273,161,162,145,20,21,22,30,54,55,40,146,79,147,148,149,236,138,111,99,140,268,274,68,69,275,276,277,90,251,278,158,159,279,287,228,19,93,231,232,171,189,113,70,71,190,191,192,237,238,207,194,100,239,240,136,137,151,152,153,314]))),oUe=P.lazy(()=>st(()=>import("./SmartSavings-CLVnJqoB.js"),__vite__mapDeps([315,1,2,3,4,228,111,117,118,119,231,232,130,73,74,19,102,103,139,47,22,93,91,35,36,37,38,39,40,296,30,94,95,26,96,97,98,45,46,48,49,50,51,52,53,54,55,56,57,11,12,13,14,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,75,76,77,78,99,100,101,104,105,316,247,229,230,189,113,190,191,192,237,238,207,194,239,295,253,136,137,240,241,196,193,195,307,273,308,172,265,282,317]))),sUe=P.lazy(()=>st(()=>import("./DashboardContainer-XpC3_LLw.js"),__vite__mapDeps([318,1,2,3,4,22,47,31,24,25,26,27,28,29,32,33,34,35,36,37,38,39,40,41,42,43,44,319,320,305,30,321,111,73,74,112,18,95,96,113,114,83,76,77,97,98,316,296,91,247,229,230,104,19,128,322]))),lUe=P.lazy(()=>st(()=>import("./IconsKit-BatYbTmx.js"),__vite__mapDeps([323,1,2,3,4,324]))),cUe=P.lazy(()=>st(()=>import("./SavingsContainer-Db0QqXQk.js"),__vite__mapDeps([325,1,2,3,4,56,57,11,12,13,14,58,59,60,61,62,63,64,266,244,141,71,22,47,65,66,142,261,41,136,137,262,231,232,326,83,76,77,35,36,37,106,107,28,32,33,34,154,288,49,289,111,73,74,117,118,119,327]))),uUe=P.lazy(()=>st(()=>import("./TeamContainer-CyzyCxGz.js"),__vite__mapDeps([328,1,2,3,4,326,193,194,195,100,329,22,45,46,47,48,49,50,51,52,53,54,55,56,57,11,12,13,14,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,330]))),fUe=P.lazy(()=>st(()=>import("./KubernetesViewContainer-DoTcnq40.js"),__vite__mapDeps([331,1,2,3,4,111,73,74,248,249,332,47,22,83,76,77,191,259,260,108,110,5,298,299,333,321,161,162,230,334,335,20,21,158,159,235,278,45,46,48,49,50,51,52,53,54,55,56,57,11,12,13,14,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,75,78,30,206,170,171,172,173,181,336,103,119,117,118,337]))),HM=P.lazy(()=>st(()=>import("./CostMonitoringContainer-BWNis9TG.js"),__vite__mapDeps([338,1,2,3,4,112,25,26,27,18,95,96,113,114,83,76,77,24,28,29,30,339,155,132,190,122,6,167,47,22,45,46,48,49,50,51,52,53,54,55,56,57,11,12,13,14,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,78,168,169,120,170,171,172,173,174,237,238,207,194,100,239,340,341]))),GM=P.lazy(()=>st(()=>import("./BudgetDetailsWrapper-mgWYhVHC.js"),__vite__mapDeps([342,1,2,3,4,47,168,24,25,26,27,28,29,54,5
3905,169,292,92,18,126,339,343]))),dUe=P.lazy(()=>st(()=>import("./InsightsContainer-mc9g82_0.js"),__vite__mapDeps([344,1,2,3,4,305,228,304,22,231,232,71,319,40,320,193,194,195,116,235,46,111,73,74,119,117,118,130,35,36,37,42,43,83,76,77,154,288,49,289,47,345]))),hUe=P.lazy(()=>st(()=>import("./MyAccountContainer-BEZHNcDS.js"),__vite__mapDeps([346,1,2,3,4,47,81,82,297,298,299,22,97,98,164,347,117,118,119,130,348]))),pUe=P.lazy(()=>st(()=>import("./DeleteAccountContainer-DqDV8zGY.js"),__vite__mapDeps([349,1,2,3,4,148,350]))),gUe=P.lazy(()=>st(()=>import("./PaymentMarketplaceCallback-BJf7AF2d.js"),__vite__mapDeps([351,1,2,3,4]))),mUe=P.lazy(()=>st(()=>import("./PaymentDetailsWrapper-LSMeJMQQ.js"),__vite__mapDeps([352,1,2,3,4,68,69,97,98,353,41,146,79,147,280,281,354,164,47,355,356,357,358]))),vUe=P.lazy(()=>st(()=>import("./PaymentDetailsSuccessWrapper-D1jGMUWs.js"),__vite__mapDeps([359,1,2,3,4,360]))),yUe=P.lazy(()=>st(()=>import("./UpgradeToPremiumWrapper-B2woNQF3.js"),__vite__mapDeps([361,1,2,3,4,355,356,357,362]))),xUe=P.lazy(()=>st(()=>import("./OrganizationBillingTab-BnqpkWsR.js"),__vite__mapDeps([363,1,2,3,4,357,292,41,353,146,79,147,280,281,354,100,364,45,46,22,47,48,49,50,51,52,53,54,55,56,57,11,12,13,14,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,336,91,129,101,365]))),bUe=P.lazy(()=>st(()=>import("./OrganizationLabelsWrapper-D7-zomr5.js"),__vite__mapDeps([366,1,2,3,4,367,364,368,369,340,370]))),CUe=P.lazy(()=>st(()=>Promise.resolve().then(()=>Lhe),void 0)),wUe=P.lazy(()=>st(()=>import("./OrganizationNotifications-BjmZUwVf.js"),__vite__mapDeps([371,1,2,3,4,372,347,373,22,47,374]))),_Ue=P.lazy(()=>st(()=>import("./OrganizationSettings-fGOiWnPr.js"),__vite__mapDeps([375,1,2,3,4,340,116,369,376]))),SUe=P.lazy(()=>st(()=>import("./OrganizationVirtualEnvs-snkqJkbM.js"),__vite__mapDeps([377,1,2,3,4,340,369,45,46,22,47,48,49,50,51,52,53,54,55,56,57,11,12,13,14,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,275,276,79,367,378]))),hg=P.lazy(()=>st(()=>import("./OrganizationWrapper-DgIWX10j.js"),__vite__mapDeps([379,1,2,3,4,130,357,340,117,118,380]))),OUe=P.lazy(()=>st(()=>import("./TeamDetailsContainer-Be0BGYay.js"),__vite__mapDeps([381,1,2,3,4,216,90,368,62,83,76,77,326,274,68,69,275,276,277,329,22,47,292]))),EUe=P.lazy(()=>st(()=>import("./AMAddAws-NNS-pwGy.js"),__vite__mapDeps([382,1,2,3,4,383,384,385,306,164,386]))),kUe=P.lazy(()=>st(()=>import("./AMAddAwsMultiple-BoLv8KvV.js"),__vite__mapDeps([387,1,2,3,4,309,156,136,137,157,388,22,47,81,82,68,69,332,389,161,162,390,391]))),AUe=P.lazy(()=>st(()=>import("./AMAddAzure-BeiWw3hv.js"),__vite__mapDeps([392,1,2,3,4,384,385,383,47,393]))),$Ue=P.lazy(()=>st(()=>import("./AMAddChooseCloud-BQBBv3BS.js"),__vite__mapDeps([394,1,2,3,4,383,384,385,164,395]))),TUe=P.lazy(()=>st(()=>import("./AMAddUpdateAwsKey-CW-XIlge.js"),__vite__mapDeps([396,1,2,3,4,383,388,158,22,159,397,398,104,81,82,68,69,389,161,162,390,131,83,76,77,156,136,137,157,20,21,47,399]))),PUe=P.lazy(()=>st(()=>import("./AMAddUpdateAwsRole-B8WdX72M.js"),__vite__mapDeps([400,1,2,3,4,389,161,162,390,333,81,82,68,69,397,131,398,104,280,281,60,61,62,153,383,388,156,136,137,157,22,47,309,401]))),MUe=P.lazy(()=>st(()=>import("./AMAddUpdateAzureSubscription-COKRrkIS.js"),__vite__mapDeps([402,1,2,3,4,383,156,136,137,157,403,398,104,404,81,82,68,69,389,161,162,390,405,406,407,309,408]))),NUe=P.lazy(()=>st(()=>import("./AMAddUpdateAzureTenant-BJ-gCKLY.js"),__vite__mapDeps([409,1,2,3,4,47,383,403,398,104,404,81,82,68,69,389,161,162,390,405,406,407,156,136,137,157,309]))),IUe=P.lazy(()=>st(()=>import("./AMAddUpdateGcp-_oOKbB-u.js"),__vite__mapDeps([410,1,2,3,4,383,397,398,104,131,81,82,68,69,406,156,136,137,157,22,47,309,411]))),LUe=P.lazy(()=>st(()=>import("./AMAddUpdateOci-BwkyLfjF.js"),__vite__mapDeps([412,1,2,3,4,383,397,398,104,81,82,68,69,404,405,389,161,162,390,131,156,136,137,157,22,47,309,413]))),RUe=P.lazy(()=>st(()=>import("./AMAddUpdateCoralogix-DR8mf--b.js"),__vite__mapDeps([414,1,2,3,4,383,22,47,81,82,398,104,397,415]))),jUe=P.lazy(()=>st(()=>import("./AMSettingsUpdate-DrdrFPNh.js"),__vite__mapDeps([416,1,2,3,4,268,396,383,388,158,22,159,397,398,104,81,82,68,69,389,161,162,390,131,83,76,77,156,136,137,157,20,21,47,399,400,333,280,281,60,61,62,153,309,401,410,406,411,132,40,402,403,404,405,407,408,412,413,414,415]))),DUe=P.lazy(()=>st(()=>import("./AMSettingsWrapper-noxoU4l1.js"),__vite__mapDeps([417,1,2,3,4,20,21,158,22,159,47,117,118,119,130,83,76,77,368,101,334,335,122,306,405,310,311,120,50,49,164,193,194,195,397,81,82,87,372,347,373,156,136,137,157,268,418]))),Y4=w.jsx(zg,{isForFallback:!0,style:{height:"100vh"}}),FUe=[pe.billingSummary,pe.billingSpp,pe.billingSummaryCostExplorer,pe.billingSummaryKubernetes,pe.billingSummaryCurV2],BUe=[pe.billingDetailed,pe.billingDetailedCostExplorer,pe.billingDetailedKubernetes,pe.billingDetailedCurV2],zUe=()=>{const{id:e}=Lte(),{search:t}=xi();return w.jsx(fs,{to:`${pe.budgetLimitsEdit}/${e}${t}`,replace:!0})},VUe=({isAuthenticated:e})=>{const{appState:t,sessionExpired:n}=Ot(l=>({sessionExpired:l.app.sessionExpired,appState:l.app.state}),Lt),{messageContextHolder:r,notificationContextHolder:i}=Yre(),a=Zt(),o=xi(),s=ni();return P.useEffect(()=>{const c=new URLSearchParams(o.search).get("organization_id");c&&a(K4.changeCurrentOrganization({id:+c}));const u=HN(o.search);
390u!=null&&u.orgId&&(u!=null&&u.envId)&&(a(K4.changeCurrentOrganization({id:+u.orgId})),a(oN(+u.envId)),o.pathname.includes(pe.costMonitoringAnomalies)||s(pe.costMonitoringAnomalies+o.search,{replace:!0}))},[o.search,o.pathname]),jGe(),DGe(),t===SS.serverUnreachable&&!rh?w.jsx(eGe,{}):t===SS.error?w.jsx(Pte,{}):w.jsxs(w.Fragment,{children:[e&&w.jsx(_Ge,{}),r,i,w.jsx(sGe,{sessionExpired:n}),w.jsx(cGe,{}),w.jsxs(Ite,{children:[w.jsx(Fe,{path:pe.cabinet,element:w.jsx(JHe,{isAllowed:e,redirectTo:pe.signIn}),children:w.jsxs(Fe,{element:w.jsx(P.Suspense,{fallback:Y4,children:w.jsx(Wi,{})}),children:[w.jsx(Fe,{path:pe.paymentMarketplaceCallback,element:w.jsx(gUe,{})}),w.jsx(Fe,{path:pe.myOrganizationCreateNew,element:w.jsx(CUe,{createNew:!0})}),w.jsx(Fe,{index:!0,element:w.jsx(fs,{to:pe.dashboard})}),w.jsx(Fe,{path:pe.dashboard,element:w.jsx(sUe,{})}),w.jsx(Fe,{path:pe.reports,element:w.jsx(BGe,{})}),w.jsxs(Fe,{path:pe.cloudview,element:w.jsx(ic,{providers:[Ye.aws,Ye.gcp,Ye.azure,Ye.oci]}),children:[w.jsx(Fe,{path:pe.cloudview,element:w.jsx(fs,{to:pe.cloudlist})}),w.jsx(Fe,{path:pe.cloudlist,element:w.jsx(aUe,{})}),w.jsx(Fe,{path:pe.cloudnet,element:w.jsx(eUe,{})}),w.jsx(Fe,{path:pe.cloudmap,element:w.jsx(QGe,{})})]}),w.jsx(Fe,{path:pe.k8sView,element:w.jsx(ic,{providers:[Ye.aws,Ye.azure,Ye.gcp]}),children:w.jsx(Fe,{index:!0,element:w.jsx(fUe,{})})}),w.jsxs(Fe,{path:pe.accountManager,element:w.jsx(rUe,{}),children:[w.jsxs(Fe,{path:`${pe.accountManagerSettings}/:envId/`,element:w.jsx(Wi,{}),children:[w.jsx(Fe,{path:"update",element:w.jsx(jUe,{})}),w.jsx(Fe,{path:":tab?",element:w.jsx(DUe,{})})]}),w.jsx(Fe,{path:pe.accountManagerAdd,element:w.jsx($Ue,{})}),w.jsx(Fe,{path:pe.accountManagerAddAws,element:w.jsx(EUe,{})}),w.jsx(Fe,{path:pe.accountManagerAddAwsMultiple,element:w.jsx(kUe,{})}),w.jsx(Fe,{path:pe.accountManagerAddAwsKey,element:w.jsx(TUe,{bucketName:null})}),w.jsx(Fe,{path:pe.accountManagerAddAwsRole,element:w.jsx(PUe,{bucketName:null})}),w.jsx(Fe,{path:pe.accountManagerAddGcp,element:w.jsx(IUe,{})}),w.jsx(Fe,{path:pe.accountManagerAddOci,element:w.jsx(LUe,{})}),w.jsx(Fe,{path:pe.accountManagerAddAzure,element:w.jsx(AUe,{})}),w.jsx(Fe,{path:pe.accountManagerAddAzureTenant,element:w.jsx(NUe,{})}),w.jsx(Fe,{path:pe.accountManagerAddAzureSubscription,element:w.jsx(MUe,{})}),w.jsx(Fe,{path:pe.accountManagerAddCoralogix,element:w.jsx(RUe,{})}),w.jsx(Fe,{path:pe.accountManager,element:w.jsx(iUe,{})})]}),w.jsx(Fe,{path:`${pe.insights}/:tab`,element:w.jsx(ic,{providers:[Ye.aws],requiredPermission:[Jr.insight.view]}),children:w.jsx(Fe,{index:!0,element:w.jsx(dUe,{})})}),w.jsx(Fe,{path:`${pe.smartSavings}/:tab?`,element:w.jsx(ic,{providers:[Ye.aws,Ye.gcp,Ye.azure,Ye.oci]}),children:w.jsx(Fe,{index:!0,element:w.jsx(oUe,{})})}),w.jsxs(Fe,{path:pe.billing,element:w.jsx(ic,{providers:[Ye.aws,Ye.gcp,Ye.azure,Ye.oci],requiredPermission:[Jr.billing.view]}),children:[w.jsx(Fe,{index:!0,element:w.jsx(fs,{to:pe.billingSummary})}),w.jsx(Fe,{path:`${pe.billingSummary}/all`,element:w.jsx(fs,{to:pe.billingSummary,state:{selectAllEnvs:!0}})}),FUe.map((l,c)=>w.jsx(Fe,{path:l,element:w.jsx(VGe,{})},l)),BUe.map((l,c)=>w.jsx(Fe,{path:l,element:w.jsx(zGe,{})},l))]}),w.jsx(Fe,{path:pe.aiCostOverview,element:w.jsx(ic,{providers:[Ye.aws,Ye.gcp,Ye.azure,Ye.oci,Ye.coralogix],allEnvironments:!0,requiredPermission:[Jr.billing.view],orgPermissions:[Mte.superset.view]}),children:w.jsx(Fe,{index:!0,element:w.jsx(RGe,{})})}),w.jsxs(Fe,{path:pe.costMonitoring,element:w.jsx(ic,{providers:[Ye.aws,Ye.gcp,Ye.azure,Ye.oci],allEnvironments:!0,requiredPermission:[Jr.billing.view]}),children:[w.jsx(Fe,{index:!0,element:w.jsx(fs,{to:pe.costMonitoringAnomalies,replace:!0})}),w.jsx(Fe,{path:pe.costMonitoringAnomalies,element:w.jsx(HM,{})}),w.jsx(Fe,{path:pe.costMonitoringBudgets,element:w.jsx(HM,{})}),w.jsx(Fe,{path:pe.budgetLimitsCreate,element:w.jsx(GM,{})}),w.jsx(Fe,{path:`${pe.budgetLimitsEdit}/:id`,element:w.jsx(GM,{})})]}),w.jsx(Fe,{path:pe.budgetLimits,element:w.jsx(fs,{to:pe.costMonitoring,replace:!0})}),w.jsx(Fe,{path:`${pe.budgetLimits}/:id`,element:w.jsx(zUe,{})}),w.jsx(Fe,{path:`${pe.myAccount}/:tab?`,element:w.jsx(hUe,{})}),w.jsx(Fe,{path:pe.deleteAccount,element:w.jsx(pUe,{})}),w.jsx(Fe,{path:`${pe.cloudsitter}/:tab?`,element:w.jsx(dl,{providers:[Ye.aws,Ye.gcp,Ye.azure,Ye.oci],children:w.jsx(fc,{requiredPermission:[Jr.cloudsitter.view,Jr.cloudsitter.edit],showWarning:!1,children:l=>w.jsx(tUe,{state:l})})})}),w.jsx(Fe,{path:`${pe.rightsizing}/:category?`,element:w.jsx(dl,{providers:[Ye.aws,Ye.azure,Ye.gcp],children:w.jsx(fc,{requiredPermission:[Jr.rightsizing.view,Jr.rightsizing.edit],permissionsWarningStyle:{marginBottom:"10px"},showWarning:!1,children:l=>w.jsx(KGe,{state:l})})})}),w.jsx(Fe,{path:`${pe.spots}/:category?/:id?`,element:w.jsx(dl,{providers:[Ye.aws,Ye.gcp],children:w.jsx(fc,{requiredPermission:[Jr.spots.view,Jr.spots.edit],children:l=>w.jsx(JGe,{state:l})})})}),w.jsx(Fe,{path:`${pe.reservation}/:tab?`,element:w.jsx(dl,{providers:[Ye.aws,Ye.gcp],children:w.jsx(fc,{requiredPermission:[Jr.reservation.view,Jr.reservation.edit],showWarning:!1,children:l=>w.jsx(nUe,{state:l})})})}),w.jsx(Fe,{path:`${pe.savings}/:tab?`,element:w.jsx(dl,{providers:[Ye.aws,Ye.gcp,Ye.azure,Ye.oci],children:w.jsx(fc,{requiredPermission:[Jr.savings.view],children:()=>w.jsx(cUe,{})})})}),w.jsx(Fe,{path:`${pe.waste}/:tab?`,element:w.jsx(dl,{providers:[Ye.aws,Ye.gcp,Ye.azure],children:w.jsx(fc,{showWarning:!1,requiredPermission:[Jr.waste.view,Jr.waste.edit],children:l=>w.jsx(qGe,{state:l})})})}),w.jsx(Fe,{path:pe.teamManagement,element:w.jsx(WGe,{}),children:w.jsxs(w.Fragment,{children:[w.jsx(Fe,{index:!0,element:w.jsx(fs,{to:pe.teamManagementAccess})}),w.jsx(Fe,{path:pe.teamManagementAccess,element:w.jsx(HGe,{})}),w.jsxs(Fe,{path:pe.teamManagementAccounts,element:w.jsx(Wi,{}),children:[w.jsx(Fe,{index:!0,element:w.jsx(GGe,{})}),w.jsx(Fe,{path:"new-set",element:w.jsx(BM,{})}),w.jsx(Fe,{path:"edit/:id",element:w.jsx(BM,{})})]}),w.jsx(Fe,{path:pe.teamManagementUsersGroups,element:w.jsx(XGe,{})}),w.jsxs(Fe,{path:"users",element:w.jsx(Wi,{}),children:[w.jsx(Fe,{index:!0,element:w.jsx(WM,{tab:"users"})}),w.jsx(Fe,{path:"new",element:w.jsx(UGe,{})})]}),w.jsxs(Fe,{path:"groups",element:w.jsx(Wi,{}),children:[w.jsx(Fe,{index:!0,element:w.jsx(WM,{tab:"groups"})}),w.jsx(Fe,{path:"new",element:w.jsx(zM,{})}),w.jsx(Fe,{path:"edit/:id",element:w.jsx(zM,{})})]}),w.jsxs(Fe,{path:pe.teamManagementRoles,element:w.jsx(Wi,{}),children:[w.jsx(Fe,{index:!0,element:w.jsx(YGe,{})}),w.jsx(Fe,{path:"new",element:w.jsx(VM,{})}),w.jsx(Fe,{path:"edit/:id",element:w.jsx(VM,{})})]})]})}),w.jsxs(Fe,{path:pe.teams,element:w.jsx(Wi,{}),children:[w.jsx(Fe,{index:!0,element:w.jsx(uUe,{})}
390),w.jsx(Fe,{path:`${pe.teams}/:envId/:id`,element:w.jsx(OUe,{})})]}),w.jsx(Fe,{path:`${pe.logs}`,element:w.jsx(dl,{providers:[Ye.aws,Ye.gcp,Ye.azure,Ye.oci],children:w.jsx(ZGe,{})})}),w.jsxs(Fe,{path:pe.myOrganization,element:w.jsx(ic,{providers:[Ye.aws,Ye.gcp,Ye.azure]}),children:[w.jsx(Fe,{path:pe.myOrganization,element:w.jsx(fs,{to:pe.myOrganizationSettings})}),w.jsx(Fe,{path:pe.myOrganizationSettings,element:w.jsx(hg,{children:w.jsx(_Ue,{})})}),w.jsx(Fe,{path:pe.myOrganizationBilling,element:w.jsx(hg,{children:w.jsx(xUe,{})})}),w.jsx(Fe,{path:pe.myOrganizationLabels,element:w.jsx(hg,{children:w.jsx(bUe,{})})}),w.jsx(Fe,{path:pe.myOrganizationNotifications,element:w.jsx(hg,{children:w.jsx(wUe,{})})}),w.jsx(Fe,{path:`${pe.myOrganizationLabel}/:label`,element:w.jsx(SUe,{tab:Nte.labels})})]}),w.jsx(Fe,{path:pe.paymentUpgradeToPremium,element:w.jsx(yUe,{})}),w.jsx(Fe,{path:pe.paymentDetails,element:w.jsx(mUe,{})}),w.jsx(Fe,{path:pe.paymentDetailsSuccess,element:w.jsx(vUe,{})})]})}),w.jsx(Fe,{path:"/ui-kit",element:window.location.origin==="http://localhost:3000"?w.jsx(P.Suspense,{fallback:Y4,children:w.jsx(FGe,{})}):w.jsx(U4,{})}),w.jsx(Fe,{path:"/icons-kit",element:window.location.origin==="http://localhost:3000"?w.jsx(P.Suspense,{fallback:Y4,children:w.jsx(lUe,{})}):w.jsx(U4,{})}),w.jsx(Fe,{path:"*",element:w.jsx(U4,{})})]})]})},RYe=Object.freeze(Object.defineProperty({__proto__:null,default:VUe},Symbol.toStringTag,{value:"Module"}));export{Sue as $,zG as A,BG as B,FG as C,DG as D,jG as E,mk as F,RG as G,LG as H,IG as I,DMe as J,up as K,PN as L,OM as M,AVe as N,NN as O,MN as P,ut as Q,Tx as R,Q4 as S,j8 as T,zN as U,WN as V,kL as W,T3 as X,vce as Y,gce as Z,P3 as _,Rne as a,NL as a$,lre as a0,sYe as a1,PM as a2,lYe as a3,gGe as a4,K0e as a5,LL as a6,_ue as a7,Ti as a8,Yre as a9,JC as aA,dW as aB,cYe as aC,bVe as aD,F1e as aE,B1e as aF,bYe as aG,uYe as aH,fYe as aI,dYe as aJ,pYe as aK,gYe as aL,mYe as aM,vYe as aN,yYe as aO,xYe as aP,z1e as aQ,hYe as aR,DL as aS,fc as aT,$M as aU,sc as aV,dl as aW,aYe as aX,wHe as aY,QWe as aZ,O6 as a_,HN as aa,DWe as ab,Oue as ac,No as ad,iYe as ae,nYe as af,oYe as ag,q8 as ah,gHe as ai,Cue as aj,Une as ak,Mx as al,bue as am,hE as an,he as ao,cre as ap,MYe as aq,$N as ar,GN as as,XUe as at,rhe as au,O1e as av,j7 as aw,cW as ax,hW as ay,AYe as az,UHe as b,hfe as b$,mhe as b0,YUe as b1,UUe as b2,BN as b3,rE as b4,Efe as b5,OVe as b6,NYe as b7,zue as b8,nre as b9,T0 as bA,Rve as bB,_Ye as bC,Kve as bD,Fh as bE,Sl as bF,$1e as bG,jWe as bH,xhe as bI,p0e as bJ,Kre as bK,yk as bL,CYe as bM,FL as bN,Ane as bO,Pre as bP,Nre as bQ,_he as bR,m1 as bS,S1e as bT,TN as bU,oE as bV,eYe as bW,wGe as bX,QUe as bY,tYe as bZ,i5 as b_,IYe as ba,SWe as bb,KUe as bc,qUe as bd,ZUe as be,Z8 as bf,YN as bg,Tre as bh,TWe as bi,rYe as bj,aWe as bk,hs as bl,SM as bm,th as bn,R8 as bo,IN as bp,wue as bq,LYe as br,CVe as bs,Eu as bt,hne as bu,I1e as bv,N1e as bw,tw as bx,vb as by,Bve as bz,jN as c,Ne as c0,ei as c1,ot as c2,bGe as c3,RYe as c4,Lx as d,Be as e,eU as f,QG as g,JG as h,KG as i,ZG as j,qG as k,XG as l,YG as m,UG as n,GG as o,HG as p,WG as q,aU as r,Qg as s,iU as t,$3 as u,oU as v,rU as w,nU as x,tU as y,VG as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.