@oneclick.dev/cms-core-modules 0.0.70 → 0.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Acquisition-D_Qx7XRY.mjs +400 -0
- package/dist/Acquisition-_-cq972V.js +1 -0
- package/dist/AppointmentDetailsCard-CtK0Cj_O.js +1 -0
- package/dist/AppointmentDetailsCard-i4Ky8WnK.mjs +161 -0
- package/dist/AppointmentEditor-BeOtYV6u.mjs +196 -0
- package/dist/AppointmentEditor-CaTfbkIf.js +1 -0
- package/dist/AppointmentListTable-CQ3uXfa8.js +1 -0
- package/dist/AppointmentListTable-G5dIeCYj.mjs +159 -0
- package/dist/Audience-BdlrWkY-.mjs +489 -0
- package/dist/Audience-QnFQs93n.js +1 -0
- package/dist/Content-C-4Cdniz.js +1 -0
- package/dist/Content-DW6xvbUo.mjs +358 -0
- package/dist/ContentEditor-3JFlC9N1.js +313 -0
- package/dist/{ContentEditor-B7IYLH91.mjs → ContentEditor-7SDjf5Hk.mjs} +16535 -25527
- package/dist/CountryBreakdownCard-BUfJ-umQ.js +1 -0
- package/dist/CountryBreakdownCard-Dc_vZ9dJ.mjs +196 -0
- package/dist/{Create-D8NBEkJU.js → Create-CRn2sMHp.js} +1 -1
- package/dist/{Create-BDiyCtrp.mjs → Create-DtFzwxn_.mjs} +1 -1
- package/dist/DateFormatter-C9qfmQnP.js +1 -0
- package/dist/{DateFormatter-DAZP9a6L.mjs → DateFormatter-DfIwyrnF.mjs} +399 -258
- package/dist/{Detail-Cxd2VMOl.js → Detail-BcboL7NF.js} +1 -1
- package/dist/{Detail-CxUU6BpO.mjs → Detail-BwDnY42G.mjs} +1 -1
- package/dist/{Detail-DTHaYmyl.js → Detail-Bxi7lG9x.js} +1 -1
- package/dist/{Detail-BGD75ul4.mjs → Detail-CVgWHbMC.mjs} +22 -18
- package/dist/DeviceBreakdownCard-BJcQNo8a.mjs +159 -0
- package/dist/DeviceBreakdownCard-CsoK6JUO.js +1 -0
- package/dist/{Find-B4sAEx0B.mjs → Find-XPcJxeRH.mjs} +1 -1
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-B-ZhMrMu.js → NewReservationDialog.vue_vue_type_script_setup_true_lang-C5YczjNb.js} +1 -1
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-CJ7hh7ug.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-Ds7z0qeH.mjs} +1 -1
- package/dist/{Overview-HvlDEgqi.mjs → Overview--XpvBbqz.mjs} +1 -1
- package/dist/Overview-B8OF-JJr.mjs +567 -0
- package/dist/Overview-DSU1Nh7B.js +1 -0
- package/dist/PeakHoursCard-BNl_U1r_.js +1 -0
- package/dist/PeakHoursCard-hV8PdGsf.mjs +182 -0
- package/dist/ProductDetailsCard-BwktdlIf.js +1 -0
- package/dist/ProductDetailsCard-CJBkZSER.mjs +121 -0
- package/dist/RealtimeCard-CRJHS64l.mjs +126 -0
- package/dist/RealtimeCard-CxtqQHee.js +1 -0
- package/dist/SearchTermsCard-DGRbo5ZP.js +1 -0
- package/dist/SearchTermsCard-Dwa-P7My.mjs +201 -0
- package/dist/SeoHealth-BqlYiSCj.js +1 -0
- package/dist/SeoHealth-DG004AsJ.mjs +523 -0
- package/dist/{TableView-C4NNrJpP.js → TableView-CU0a9ih2.js} +162 -199
- package/dist/{TableView-B5OyApnP.mjs → TableView-fYC7kB6j.mjs} +23309 -24320
- package/dist/TopPagesCard-Dv52to_J.mjs +159 -0
- package/dist/TopPagesCard-pZ-nAsaI.js +1 -0
- package/dist/TrafficSourcesCard-CBOPV1J1.js +1 -0
- package/dist/TrafficSourcesCard-CMhcj2k2.mjs +197 -0
- package/dist/VisitorStatsCard-BHn4oSnt.mjs +174 -0
- package/dist/VisitorStatsCard-tApB_7v8.js +1 -0
- package/dist/{agenda-CTG6N_Lt.mjs → agenda-XqvbrU72.mjs} +2 -2
- package/dist/{agenda-OSkAh0Oa.js → agenda-wNFDKn0G.js} +1 -1
- package/dist/array-CbATeQbk.js +1 -0
- package/dist/array-CvmZXzxF.mjs +108 -0
- package/dist/cms-core-modules.css +1 -1
- package/dist/{exceptions-CEXIFw47.mjs → exceptions-CLgeeUSy.mjs} +1 -1
- package/dist/{exceptions-BvMTqtof.js → exceptions-wEQEVzIs.js} +1 -1
- package/dist/floating-ui.dom-BO2Hr6mz.mjs +1292 -0
- package/dist/floating-ui.dom-CAr9LGoC.js +1 -0
- package/dist/{index-AmUV8LZQ.mjs → index-B-lVEpFX.mjs} +1 -1
- package/dist/index-BuzLn4Km.js +54 -0
- package/dist/index-C4YUVWzJ.js +75 -0
- package/dist/index-CMk3uhUt.mjs +3837 -0
- package/dist/{index-Uf7TwBuW.mjs → index-CrGjxSwa.mjs} +4 -4
- package/dist/index-D2DYuz8R.mjs +1090 -0
- package/dist/index-D3L8WAJI.js +58 -0
- package/dist/index-D7JBu6iT.mjs +34 -0
- package/dist/index-DQYBP8Js.js +158 -0
- package/dist/index-DjDCYQ_6.mjs +441 -0
- package/dist/index-DwHYfZl_.js +1 -0
- package/dist/{index-Biuv2zTx-DBCin9DT.mjs → index-N6w5-hDF-6k_ELHYC.mjs} +1234 -1234
- package/dist/index-N6w5-hDF-DCuxwPBX.js +88 -0
- package/dist/index-O_QNuTdG.js +35 -0
- package/dist/index-_2lRVt_k.mjs +2942 -0
- package/dist/index-p5Uqu8c2.mjs +1438 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +383 -86
- package/dist/{resources-DgPnEv76.mjs → resources-CFR_s89Z.mjs} +1 -1
- package/dist/src/appointments/chat-components/AppointmentDetailsCard.vue.d.ts +14 -0
- package/dist/src/appointments/chat-components/AppointmentEditor.vue.d.ts +14 -0
- package/dist/src/appointments/chat-components/AppointmentListTable.vue.d.ts +14 -0
- package/dist/src/appointments/index.d.ts +70 -0
- package/dist/src/appointments/server.d.ts +19 -0
- package/dist/src/appointments/tools.d.ts +56 -16
- package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Button.vue.d.ts +3 -1
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/CustomClass.d.ts +14 -0
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/NodeDragPointerEventsFix.d.ts +2 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuClassBuilder.vue.d.ts +19 -0
- package/dist/src/contentManager/components/content-editor/tiptap-menus/BubbleMenuLinkBuilder.vue.d.ts +19 -0
- package/dist/src/googleAnalytics/chat-components/CountryBreakdownCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/DeviceBreakdownCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/PeakHoursCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/RealtimeCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/SearchTermsCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/TopPagesCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/TrafficSourcesCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/chat-components/VisitorStatsCard.vue.d.ts +14 -0
- package/dist/src/googleAnalytics/config.d.ts +39 -0
- package/dist/src/googleAnalytics/index.d.ts +116 -0
- package/dist/src/googleAnalytics/metadata.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Acquisition.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Audience.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Content.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/Overview.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/pages/SeoHealth.vue.d.ts +2 -0
- package/dist/src/googleAnalytics/permissions.d.ts +1 -0
- package/dist/src/googleAnalytics/server.d.ts +35 -0
- package/dist/src/googleAnalytics/tools.d.ts +59 -0
- package/dist/src/index.d.ts +6 -5
- package/dist/src/mailTemplates/components/TemplateList.vue.d.ts +2 -0
- package/dist/src/mailTemplates/routes.d.ts +5 -0
- package/dist/src/mailTemplates/tools.d.ts +1 -0
- package/dist/src/productCollections/tools.d.ts +1 -0
- package/dist/src/products/chat-components/ProductDetailsCard.vue.d.ts +14 -0
- package/dist/src/products/index.d.ts +24 -2
- package/dist/src/products/server.d.ts +19 -0
- package/dist/src/products/tools.d.ts +21 -2
- package/dist/src/promoCodes/tools.d.ts +1 -0
- package/dist/src/server-handlers.d.ts +9 -0
- package/dist/src/table/tools.d.ts +1 -25
- package/package.json +23 -21
- package/src/appointments/server.ts +195 -0
- package/src/appointments/tools.ts +61 -21
- package/src/googleAnalytics/server.ts +1188 -0
- package/src/googleAnalytics/tools.ts +158 -0
- package/src/mailTemplates/tools.ts +1 -0
- package/src/productCollections/tools.ts +1 -0
- package/src/products/server.ts +146 -0
- package/src/products/tools.ts +19 -0
- package/src/promoCodes/tools.ts +1 -0
- package/src/table/tools.ts +1 -25
- package/dist/ContentEditor-LOn09n7N.js +0 -307
- package/dist/DateFormatter-Bw-SCfUS.js +0 -1
- package/dist/floating-ui.dom-CBBY0Ism.js +0 -1
- package/dist/floating-ui.dom-xfqXu4GA.mjs +0 -1138
- package/dist/index-Biuv2zTx-DHiVlXFj.js +0 -88
- package/dist/index-HLGxDG-0.mjs +0 -7746
- package/dist/index-n2p9TTRq.js +0 -245
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/DragHandle.d.ts +0 -76
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/NodeDragPointerEventsFix.d.ts +0 -7
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/drag-handle-plugin.d.ts +0 -25
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/drag-handle.d.ts +0 -50
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/cloneElement.d.ts +0 -1
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/dragHandler.d.ts +0 -2
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/findNextElementFromCursor.d.ts +0 -17
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/getComputedStyle.d.ts +0 -1
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/getInnerCoords.d.ts +0 -5
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/getOuterNode.d.ts +0 -3
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/minMax.d.ts +0 -1
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/helpers/removeNode.d.ts +0 -1
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/extension-drag-handle/index.d.ts +0 -4
- package/dist/src/mail-templates/tools.d.ts +0 -25
- package/dist/src/product-collections/tools.d.ts +0 -25
- package/dist/src/promo-codes/tools.d.ts +0 -25
- package/src/mail-templates/tools.ts +0 -25
- package/src/product-collections/tools.ts +0 -25
- package/src/promo-codes/tools.ts +0 -25
- /package/dist/src/{content-manager → contentManager}/components/components/ComponentDialog.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/components/ComponentGridItem.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/ApiDocs.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/ContentLayout.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/ContentSettings.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/ContentStructuredContentSections.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/Header.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/LivePreviewWrapper.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/Locales.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/NewSectionDialog.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/PageSettings.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/SEO.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/SidebarSectionWrapper.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/Status.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/Versions.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/code-examples.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Button.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Card.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Card.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Column.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Column.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/ComponentEditorNode.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Container.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Container.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Divider.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Divider.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/EmptySpace.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/EmptySpace.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Heading.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Heading.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Image.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Image.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/LockBlocks.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Map.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Map.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/OnlyContainerDocument.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Paragraph.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Paragraph.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Row.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Row.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/ScopedSelectAll.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Stack.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Stack.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/TrailingNodeInContainers.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Video.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/Video.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/extension-details/DetailsNodeView.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/extension-details/content/details-content.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/extension-details/content/index.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/extension-details/details.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/extension-details/helpers/findClosestVisibleNode.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/extension-details/helpers/isNodeVisible.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/extension-details/helpers/setGapCursor.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/extension-details/index.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/extension-details/summary/details-summary.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/extension-details/summary/index.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/helpers/NodeLabel.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/helpers/ResizeHandlers.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/helpers/TopMarginDragger.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/helpers/useContainerFocus.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-extensions/helpers/useFocus.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/BubbleMenuToggleButton.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/DefaultBubbleMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/EmojiMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/NewNodeView.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/SlashMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/SlashMenuButton.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/element-editor-views/ButtonMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/element-editor-views/CardMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/element-editor-views/ColumnMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/element-editor-views/DividerMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/element-editor-views/EmptySpaceMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/element-editor-views/HeadingMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/element-editor-views/ImageMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/element-editor-views/MapMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/element-editor-views/RowMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/element-editor-views/StackMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/element-editor-views/TextMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/element-editor-views/VideoMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/overview/CollectionDialog.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/overview/CollectionsGridView.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/overview/ContentEntryContextMenu.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/overview/FilterPopover.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/overview/ListView.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/styling/ButtonStyleDialog.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/styling/CardStyleDialog.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/components/styling/SectionStyleDialog.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/config.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/index.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/index.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/metadata.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/pages/Components.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/pages/ContentEditor.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/pages/Entries.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/pages/GlobalStyling.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/pages/Overview.vue.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/permissions.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/routes.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/stores/useTableStore.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/tools.d.ts +0 -0
- /package/dist/src/{content-manager → contentManager}/types.d.ts +0 -0
- /package/dist/src/{mail-templates/components/TemplateList.vue.d.ts → googleAnalytics/index.vue.d.ts} +0 -0
- /package/dist/src/{mail-templates → googleAnalytics}/routes.d.ts +0 -0
- /package/dist/src/{mail-templates → mailTemplates}/config.d.ts +0 -0
- /package/dist/src/{mail-templates → mailTemplates}/index.d.ts +0 -0
- /package/dist/src/{mail-templates → mailTemplates}/index.vue.d.ts +0 -0
- /package/dist/src/{mail-templates → mailTemplates}/metadata.d.ts +0 -0
- /package/dist/src/{mail-templates → mailTemplates}/pages/Detail.vue.d.ts +0 -0
- /package/dist/src/{mail-templates → mailTemplates}/pages/Overview.vue.d.ts +0 -0
- /package/dist/src/{mail-templates → mailTemplates}/permissions.d.ts +0 -0
- /package/dist/src/{mail-templates → mailTemplates}/stores/useTableStore.d.ts +0 -0
- /package/dist/src/{mail-templates → mailTemplates}/types.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/components/detail/Main.vue.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/components/detail/SEO.vue.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/components/detail/Status.vue.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/components/overview/ListView.vue.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/composables/useTable.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/config.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/index.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/index.vue.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/metadata.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/pages/Detail.vue.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/pages/Overview.vue.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/permissions.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/routes.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/stores/useTableStore.d.ts +0 -0
- /package/dist/src/{product-collections → productCollections}/types.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/components/create/DateRange.vue.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/components/create/MultiCodes.vue.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/components/create/Note.vue.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/components/create/SingleCode.vue.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/components/create/TypeAndValue/TypeDetailDialog.vue.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/components/create/TypeAndValue/TypeManageDialog.vue.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/components/create/TypeAndValue/index.vue.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/config.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/index.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/index.vue.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/metadata.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/pages/Create.vue.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/pages/Detail.vue.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/pages/Find.vue.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/permissions.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/routes.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/stores/useTableStore.d.ts +0 -0
- /package/dist/src/{promo-codes → promoCodes}/types.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/components/detail/Condition.vue.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/components/detail/Countries.vue.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/components/detail/Example.vue.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/components/detail/Main.vue.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/components/overview/ListView.vue.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/composables/useTable.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/config.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/index.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/index.vue.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/metadata.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/pages/Detail.vue.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/pages/Overview.vue.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/permissions.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/routes.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/stores/useTableStore.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/tools.d.ts +0 -0
- /package/dist/src/{shipping-options → shippingOptions}/types.d.ts +0 -0
- /package/src/{content-manager → contentManager}/tools.ts +0 -0
- /package/src/{shipping-options → shippingOptions}/tools.ts +0 -0
package/dist/index-n2p9TTRq.js
DELETED
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),Tt=require("@oneclick.dev/cms-kit"),dt=require("lucide-vue-next"),Ls=require("./EditLayout.vue_vue_type_script_setup_true_lang-Czu6Dcde.js"),tn=require("./index-Biuv2zTx-DHiVlXFj.js"),Ps=require("./index-CxETuRsG.js"),Ti=require("./ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Vxubki_v.js"),Us=require("./NewReservationDialog.vue_vue_type_script_setup_true_lang-B-ZhMrMu.js");var wr="http://www.w3.org/1999/xhtml";const Mi={svg:"http://www.w3.org/2000/svg",xhtml:wr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function jn(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Mi.hasOwnProperty(e)?{space:Mi[e],local:t}:t}function Ws(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===wr&&e.documentElement.namespaceURI===wr?e.createElement(t):e.createElementNS(n,t)}}function Hs(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function jo(t){var e=jn(t);return(e.local?Hs:Ws)(e)}function Ys(){}function Yr(t){return t==null?Ys:function(){return this.querySelector(t)}}function Xs(t){typeof t!="function"&&(t=Yr(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=new Array(a),c,u,f=0;f<a;++f)(c=o[f])&&(u=t.call(c,c.__data__,f,o))&&("__data__"in c&&(u.__data__=c.__data__),s[f]=u);return new gt(r,this._parents)}function Gs(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function qs(){return[]}function Zo(t){return t==null?qs:function(){return this.querySelectorAll(t)}}function js(t){return function(){return Gs(t.apply(this,arguments))}}function Zs(t){typeof t=="function"?t=js(t):t=Zo(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a=e[o],s=a.length,c,u=0;u<s;++u)(c=a[u])&&(r.push(t.call(c,c.__data__,u,a)),i.push(c));return new gt(r,i)}function Qo(t){return function(){return this.matches(t)}}function Ko(t){return function(e){return e.matches(t)}}var Qs=Array.prototype.find;function Ks(t){return function(){return Qs.call(this.children,t)}}function Js(){return this.firstElementChild}function tc(t){return this.select(t==null?Js:Ks(typeof t=="function"?t:Ko(t)))}var ec=Array.prototype.filter;function nc(){return Array.from(this.children)}function rc(t){return function(){return ec.call(this.children,t)}}function ic(t){return this.selectAll(t==null?nc:rc(typeof t=="function"?t:Ko(t)))}function oc(t){typeof t!="function"&&(t=Qo(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],c,u=0;u<a;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&s.push(c);return new gt(r,this._parents)}function Jo(t){return new Array(t.length)}function ac(){return new gt(this._enter||this._groups.map(Jo),this._parents)}function Mn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Mn.prototype={constructor:Mn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function sc(t){return function(){return t}}function cc(t,e,n,r,i,o){for(var a=0,s,c=e.length,u=o.length;a<u;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new Mn(t,o[a]);for(;a<c;++a)(s=e[a])&&(i[a]=s)}function lc(t,e,n,r,i,o,a){var s,c,u=new Map,f=e.length,d=o.length,h=new Array(f),g;for(s=0;s<f;++s)(c=e[s])&&(h[s]=g=a.call(c,c.__data__,s,e)+"",u.has(g)?i[s]=c:u.set(g,c));for(s=0;s<d;++s)g=a.call(t,o[s],s,o)+"",(c=u.get(g))?(r[s]=c,c.__data__=o[s],u.delete(g)):n[s]=new Mn(t,o[s]);for(s=0;s<f;++s)(c=e[s])&&u.get(h[s])===c&&(i[s]=c)}function uc(t){return t.__data__}function fc(t,e){if(!arguments.length)return Array.from(this,uc);var n=e?lc:cc,r=this._parents,i=this._groups;typeof t!="function"&&(t=sc(t));for(var o=i.length,a=new Array(o),s=new Array(o),c=new Array(o),u=0;u<o;++u){var f=r[u],d=i[u],h=d.length,g=dc(t.call(f,f&&f.__data__,u,r)),m=g.length,p=s[u]=new Array(m),_=a[u]=new Array(m),k=c[u]=new Array(h);n(f,d,p,_,k,g,e);for(var x=0,C=0,w,b;x<m;++x)if(w=p[x]){for(x>=C&&(C=x+1);!(b=_[C])&&++C<m;);w._next=b||null}}return a=new gt(a,r),a._enter=s,a._exit=c,a}function dc(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function hc(){return new gt(this._exit||this._groups.map(Jo),this._parents)}function gc(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function pc(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),c=0;c<a;++c)for(var u=n[c],f=r[c],d=u.length,h=s[c]=new Array(d),g,m=0;m<d;++m)(g=u[m]||f[m])&&(h[m]=g);for(;c<i;++c)s[c]=n[c];return new gt(s,this._parents)}function mc(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function vc(t){t||(t=yc);function e(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],s=a.length,c=i[o]=new Array(s),u,f=0;f<s;++f)(u=a[f])&&(c[f]=u);c.sort(e)}return new gt(i,this._parents).order()}function yc(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function xc(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function _c(){return Array.from(this)}function wc(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function bc(){let t=0;for(const e of this)++t;return t}function kc(){return!this.node()}function Cc(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&t.call(s,s.__data__,o,i);return this}function Sc(t){return function(){this.removeAttribute(t)}}function Tc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Mc(t,e){return function(){this.setAttribute(t,e)}}function Ac(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Dc(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Ec(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Nc(t,e){var n=jn(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Tc:Sc:typeof e=="function"?n.local?Ec:Dc:n.local?Ac:Mc)(n,e))}function ta(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $c(t){return function(){this.style.removeProperty(t)}}function Rc(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Bc(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Oc(t,e,n){return arguments.length>1?this.each((e==null?$c:typeof e=="function"?Bc:Rc)(t,e,n??"")):de(this.node(),t)}function de(t,e){return t.style.getPropertyValue(e)||ta(t).getComputedStyle(t,null).getPropertyValue(e)}function Vc(t){return function(){delete this[t]}}function Fc(t,e){return function(){this[t]=e}}function zc(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Ic(t,e){return arguments.length>1?this.each((e==null?Vc:typeof e=="function"?zc:Fc)(t,e)):this.node()[t]}function ea(t){return t.trim().split(/^|\s+/)}function Xr(t){return t.classList||new na(t)}function na(t){this._node=t,this._names=ea(t.getAttribute("class")||"")}na.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function ra(t,e){for(var n=Xr(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function ia(t,e){for(var n=Xr(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Lc(t){return function(){ra(this,t)}}function Pc(t){return function(){ia(this,t)}}function Uc(t,e){return function(){(e.apply(this,arguments)?ra:ia)(this,t)}}function Wc(t,e){var n=ea(t+"");if(arguments.length<2){for(var r=Xr(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Uc:e?Lc:Pc)(n,e))}function Hc(){this.textContent=""}function Yc(t){return function(){this.textContent=t}}function Xc(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Gc(t){return arguments.length?this.each(t==null?Hc:(typeof t=="function"?Xc:Yc)(t)):this.node().textContent}function qc(){this.innerHTML=""}function jc(t){return function(){this.innerHTML=t}}function Zc(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Qc(t){return arguments.length?this.each(t==null?qc:(typeof t=="function"?Zc:jc)(t)):this.node().innerHTML}function Kc(){this.nextSibling&&this.parentNode.appendChild(this)}function Jc(){return this.each(Kc)}function tl(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function el(){return this.each(tl)}function nl(t){var e=typeof t=="function"?t:jo(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function rl(){return null}function il(t,e){var n=typeof t=="function"?t:jo(t),r=e==null?rl:typeof e=="function"?e:Yr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function ol(){var t=this.parentNode;t&&t.removeChild(this)}function al(){return this.each(ol)}function sl(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function cl(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ll(t){return this.select(t?cl:sl)}function ul(t){return arguments.length?this.property("__data__",t):this.node().__data__}function fl(t){return function(e){t.call(this,e,this.__data__)}}function dl(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function hl(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function gl(t,e,n){return function(){var r=this.__on,i,o=fl(e);if(r){for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function pl(t,e,n){var r=dl(t+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,u=s.length,f;c<u;++c)for(i=0,f=s[c];i<o;++i)if((a=r[i]).type===f.type&&a.name===f.name)return f.value}return}for(s=e?gl:hl,i=0;i<o;++i)this.each(s(r[i],e,n));return this}function oa(t,e,n){var r=ta(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function ml(t,e){return function(){return oa(this,t,e)}}function vl(t,e){return function(){return oa(this,t,e.apply(this,arguments))}}function yl(t,e){return this.each((typeof e=="function"?vl:ml)(t,e))}function*xl(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var aa=[null];function gt(t,e){this._groups=t,this._parents=e}function Ye(){return new gt([[document.documentElement]],aa)}function _l(){return this}gt.prototype=Ye.prototype={constructor:gt,select:Xs,selectAll:Zs,selectChild:tc,selectChildren:ic,filter:oc,data:fc,enter:ac,exit:hc,join:gc,merge:pc,selection:_l,order:mc,sort:vc,call:xc,nodes:_c,node:wc,size:bc,empty:kc,each:Cc,attr:Nc,style:Oc,property:Ic,classed:Wc,text:Gc,html:Qc,raise:Jc,lower:el,append:nl,insert:il,remove:al,clone:ll,datum:ul,on:pl,dispatch:yl,[Symbol.iterator]:xl};function Vt(t){return typeof t=="string"?new gt([[document.querySelector(t)]],[document.documentElement]):new gt([[t]],aa)}function wl(t){let e;for(;e=t.sourceEvent;)t=e;return t}function An(t,e){if(t=wl(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var $e;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})($e||($e={}));var he;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(he||(he={}));function Re(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function bl(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Gr(t){let e,n,r;t.length!==2?(e=Re,n=(s,c)=>Re(t(s),c),r=(s,c)=>t(s)-c):(e=t===Re||t===bl?t:kl,n=t,r=t);function i(s,c,u=0,f=s.length){if(u<f){if(e(c,c)!==0)return f;do{const d=u+f>>>1;n(s[d],c)<0?u=d+1:f=d}while(u<f)}return u}function o(s,c,u=0,f=s.length){if(u<f){if(e(c,c)!==0)return f;do{const d=u+f>>>1;n(s[d],c)<=0?u=d+1:f=d}while(u<f)}return u}function a(s,c,u=0,f=s.length){const d=i(s,c,u,f-1);return d>u&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:i,center:a,right:o}}function kl(){return 0}function sa(t){return t===null?NaN:+t}const ca=Gr(Re),Xe=ca.right,Cl=ca.left;Gr(sa).center;function Sl(t,e){let n,r;for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));return[n,r]}class Ai extends Map{constructor(e,n=Al){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(Di(this,e))}has(e){return super.has(Di(this,e))}set(e,n){return super.set(Tl(this,e),n)}delete(e){return super.delete(Ml(this,e))}}function Di({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Tl({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function Ml({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function Al(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Dl=Math.sqrt(50),El=Math.sqrt(10),Nl=Math.sqrt(2);function Dn(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=Dl?10:o>=El?5:o>=Nl?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(t*u),c=Math.round(e*u),s/u<t&&++s,c/u>e&&--c,u=-u):(u=Math.pow(10,i)*a,s=Math.round(t/u),c=Math.round(e/u),s*u<t&&++s,c*u>e&&--c),c<s&&.5<=n&&n<2?Dn(t,e,n*2):[s,c,u]}function br(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[i,o,a]=r?Dn(e,t,n):Dn(t,e,n);if(!(o>=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)c[u]=(o-u)/-a;else for(let u=0;u<s;++u)c[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)c[u]=(i+u)/-a;else for(let u=0;u<s;++u)c[u]=(i+u)*a;return c}function kr(t,e,n){return e=+e,t=+t,n=+n,Dn(t,e,n)[2]}function Cr(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?kr(e,t,n):kr(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function Sr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Be(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function $l(t,e,n=sa){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t),s=+n(t[o+1],o+1,t);return a+(s-a)*(i-o)}}function*Rl(t){for(const e of t)yield*e}function Bl(t){return Array.from(Rl(t))}function la(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(i);++r<i;)o[r]=t+r*n;return o}function Ol(t,e){let n=0;if(e===void 0)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function Vl(t,e,n){var r={},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,s=a===void 0?!1:a,c=r.debounceMode,u=c===void 0?void 0:c,f,d=!1,h=0;function g(){f&&clearTimeout(f)}function m(_){var k=_||{},x=k.upcomingOnly,C=x===void 0?!1:x;g(),d=!C}function p(){for(var _=arguments.length,k=new Array(_),x=0;x<_;x++)k[x]=arguments[x];var C=this,w=Date.now()-h;if(d)return;function b(){h=Date.now(),e.apply(C,k)}function v(){f=void 0}!s&&u&&!f&&b(),g(),u===void 0&&w>t?s?(h=Date.now(),o||(f=setTimeout(u?v:b,t))):b():o!==!0&&(f=setTimeout(u?v:b,u===void 0?t-w:t))}return p.cancel=m,p}var $t;(function(t){t.Left="left",t.Right="right",t.Auto="auto"})($t||($t={}));const Yt=t=>typeof t=="number",qr=t=>typeof t=="function",Ge=t=>Array.isArray(t),Fl=t=>t instanceof Object,En=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",Ei=t=>Fl(t)&&!Ge(t)&&!qr(t)&&!En(t),zl=t=>[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length,te=(t,e,n=[],r=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(r.has(t))return!0;r.add(t);for(let i=0;i<t.length;i++)if(!te(t[i],e[i],n,r))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object")return!1;if(t===e)return!0;const i=Object.keys(t).filter(a=>!n.includes(a)),o=Object.keys(e).filter(a=>!n.includes(a));if(i.length!==o.length)return!1;if(r.has(t))return!0;r.add(t);for(const a of i)if(!te(t[a],e[a],n,r))return!1;return!0}return t===e},Tr=t=>t.flat(),Nn=(t,e=new Map)=>{if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const r of t)n.push(e.has(r)?e.get(r):Nn(r,e));return n}if(En(t))return t;if(t instanceof Object){const n={};e.set(t,n);const r=t;return Object.keys(t).reduce((i,o)=>(i[o]=e.has(r[o])?e.get(r[o]):Nn(r[o],e),i),n),n}return t},ge=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const r=En(t)?t:Nn(t);return n.has(e)?n.get(e):(n.set(e,r),Object.keys(e).forEach(i=>{i==="__proto__"||i==="constructor"||(Ei(t[i])&&Ei(e[i])?r[i]=ge(t[i],e[i],n):En(e)?r[i]=e:r[i]=Nn(e[i]))}),r)},$n=(t,e,n)=>Vl(e,t);function ua(t,e,n){return qr(e)?e(t,n):e}function Mr(t,e,n){return ua(t,e,n)}function tt(t,e,n){return ua(t,e,n)}function be(t){return t.filter(e=>e&&!Yt(e))}function Rt(t,e,n){return Math.min(Math.max(t,e),n)}function Il(t,e,...n){const r=[];let i=0,o=0;for(const a of n){const s=tt(t,a,e)||0;s>=0?r.push(i+=s):r.push(o+=s)}return r}function fa(t,...e){return t?Be(t,(r,i)=>Be(e,o=>tt(r,o,i))):void 0}function da(t,...e){return t?Sr(t,(r,i)=>Sr(e,o=>tt(r,o,i))):void 0}function fn(t,...e){return[fa(t,...e),da(t,...e)]}function Rn(t,e,n,r=$t.Auto){if(t.length<=1)return t[0];const o=t.map((c,u)=>[c,u]).sort(([c,u],[f,d])=>tt(c,n,u)-tt(f,n,d)),a=o.map(([c,u])=>tt(c,n,u)),s=r===$t.Right?Cl(a,e,0,t.length-1):Xe(a,e,1,t.length);return r===$t.Right?o[s][0]:r===$t.Left?o[s-1][0]:e-a[s-1]>a[s]-e?o[s][0]:o[s-1][0]}function Ll(t,e,n,r=!1){if(!n)return[];const i=t.filter((o,a)=>{const s=tt(o,n,a);return s>=e[0]&&s<=e[1]});if(r){if(i.length===0){const d=Rn(t,e[0],n,$t.Left),h=Rn(t,e[1],n,$t.Right);return[d,h].filter(Boolean)}const o=i[0],a=i[i.length-1],s=t.findIndex(d=>d===o),c=t.findIndex(d=>d===a),u=Math.max(0,s-1),f=Math.min(t.length-1,c+1);return t.slice(u,f+1)}return i}var Zt=[],Pl=function(){return Zt.some(function(t){return t.activeTargets.length>0})},Ul=function(){return Zt.some(function(t){return t.skippedTargets.length>0})},Ni="ResizeObserver loop completed with undelivered notifications.",Wl=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Ni}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Ni),window.dispatchEvent(t)},Fe;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Fe||(Fe={}));var Qt=function(t){return Object.freeze(t)},Hl=(function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Qt(this)}return t})(),ha=(function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Qt(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,s=e.left,c=e.width,u=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:s,width:c,height:u}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t})(),jr=function(t){return t instanceof SVGElement&&"getBBox"in t},ga=function(t){if(jr(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},$i=function(t){var e;if(t instanceof Element)return!0;var n=(e=t?.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Yl=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Oe=typeof window<"u"?window:{},en=new WeakMap,Ri=/auto|scroll/,Xl=/^tb|vertical/,Gl=/msie|trident/i.test(Oe.navigator&&Oe.navigator.userAgent),Ct=function(t){return parseFloat(t||"0")},le=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Hl((n?e:t)||0,(n?t:e)||0)},Bi=Qt({devicePixelContentBoxSize:le(),borderBoxSize:le(),contentBoxSize:le(),contentRect:new ha(0,0,0,0)}),pa=function(t,e){if(e===void 0&&(e=!1),en.has(t)&&!e)return en.get(t);if(ga(t))return en.set(t,Bi),Bi;var n=getComputedStyle(t),r=jr(t)&&t.ownerSVGElement&&t.getBBox(),i=!Gl&&n.boxSizing==="border-box",o=Xl.test(n.writingMode||""),a=!r&&Ri.test(n.overflowY||""),s=!r&&Ri.test(n.overflowX||""),c=r?0:Ct(n.paddingTop),u=r?0:Ct(n.paddingRight),f=r?0:Ct(n.paddingBottom),d=r?0:Ct(n.paddingLeft),h=r?0:Ct(n.borderTopWidth),g=r?0:Ct(n.borderRightWidth),m=r?0:Ct(n.borderBottomWidth),p=r?0:Ct(n.borderLeftWidth),_=d+u,k=c+f,x=p+g,C=h+m,w=s?t.offsetHeight-C-t.clientHeight:0,b=a?t.offsetWidth-x-t.clientWidth:0,v=i?_+x:0,y=i?k+C:0,$=r?r.width:Ct(n.width)-v-b,E=r?r.height:Ct(n.height)-y-w,N=$+_+b+x,O=E+k+w+C,A=Qt({devicePixelContentBoxSize:le(Math.round($*devicePixelRatio),Math.round(E*devicePixelRatio),o),borderBoxSize:le(N,O,o),contentBoxSize:le($,E,o),contentRect:new ha(d,c,$,E)});return en.set(t,A),A},ma=function(t,e,n){var r=pa(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Fe.DEVICE_PIXEL_CONTENT_BOX:return a;case Fe.BORDER_BOX:return i;default:return o}},ql=(function(){function t(e){var n=pa(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Qt([n.borderBoxSize]),this.contentBoxSize=Qt([n.contentBoxSize]),this.devicePixelContentBoxSize=Qt([n.devicePixelContentBoxSize])}return t})(),va=function(t){if(ga(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},jl=function(){var t=1/0,e=[];Zt.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(u){var f=new ql(u.target),d=va(u.target);s.push(f),u.lastReportedSize=ma(u.target,u.observedBox),d<t&&(t=d)}),e.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},Oi=function(t){Zt.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(va(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},Zl=function(){var t=0;for(Oi(t);Pl();)t=jl(),Oi(t);return Ul()&&Wl(),t>0},ur,ya=[],Ql=function(){return ya.splice(0).forEach(function(t){return t()})},Kl=function(t){if(!ur){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Ql()}).observe(n,r),ur=function(){n.textContent="".concat(e?e--:e++)}}ya.push(t),ur()},Jl=function(t){Kl(function(){requestAnimationFrame(t)})},dn=0,tu=function(){return!!dn},eu=250,nu={attributes:!0,characterData:!0,childList:!0,subtree:!0},Vi=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Fi=function(t){return t===void 0&&(t=0),Date.now()+t},fr=!1,ru=(function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=eu),!fr){fr=!0;var r=Fi(e);Jl(function(){var i=!1;try{i=Zl()}finally{if(fr=!1,e=r-Fi(),!tu())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,nu)};document.body?n():Oe.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Vi.forEach(function(n){return Oe.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Vi.forEach(function(n){return Oe.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t})(),Ar=new ru,zi=function(t){!dn&&t>0&&Ar.start(),dn+=t,!dn&&Ar.stop()},iu=function(t){return!jr(t)&&!Yl(t)&&getComputedStyle(t).display==="inline"},ou=(function(){function t(e,n){this.target=e,this.observedBox=n||Fe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=ma(this.target,this.observedBox,!0);return iu(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t})(),au=(function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t})(),nn=new WeakMap,Ii=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},rn=(function(){function t(){}return t.connect=function(e,n){var r=new au(e,n);nn.set(e,r)},t.observe=function(e,n,r){var i=nn.get(e),o=i.observationTargets.length===0;Ii(i.observationTargets,n)<0&&(o&&Zt.push(i),i.observationTargets.push(new ou(n,r&&r.box)),zi(1),Ar.schedule())},t.unobserve=function(e,n){var r=nn.get(e),i=Ii(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Zt.splice(Zt.indexOf(r),1),r.observationTargets.splice(i,1),zi(-1))},t.disconnect=function(e){var n=this,r=nn.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t})(),su=(function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");rn.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!$i(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");rn.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!$i(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");rn.unobserve(this,e)},t.prototype.disconnect=function(){rn.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t})();const cu=globalThis.ResizeObserver||su,xa={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:he.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class ze{constructor(e){this._defaultConfig=xa,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=Vt(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",ze.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var n;this.prevConfig=this.config,this.config=ge(this._defaultConfig,e),e?.svgDefs!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;Vt(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const n=this.config.width||this.containerWidth,r=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",r),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||ze.DEFAULT_CONTAINER_HEIGHT}get width(){return Rt(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return Rt(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===he.Fit||e.sizing===he.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new cu((n,r)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const i=this._container.getBoundingClientRect(),o={width:i.width,height:i.height};!te(this._containerSize,o)&&o.width&&o.height&&(this._containerSize=o,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}ze.DEFAULT_CONTAINER_HEIGHT=300;function lu(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function uu(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var fu=(function(){function t(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(uu(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=lu(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},t})(),it="-ms-",Bn="-moz-",H="-webkit-",_a="comm",Zr="rule",Qr="decl",du="@import",wa="@keyframes",hu="@layer",gu=Math.abs,Zn=String.fromCharCode,pu=Object.assign;function mu(t,e){return rt(t,0)^45?(((e<<2^rt(t,0))<<2^rt(t,1))<<2^rt(t,2))<<2^rt(t,3):0}function ba(t){return t.trim()}function vu(t,e){return(t=e.exec(t))?t[0]:t}function Y(t,e,n){return t.replace(e,n)}function Dr(t,e){return t.indexOf(e)}function rt(t,e){return t.charCodeAt(e)|0}function Ie(t,e,n){return t.slice(e,n)}function St(t){return t.length}function Kr(t){return t.length}function on(t,e){return e.push(t),t}function yu(t,e){return t.map(e).join("")}var Qn=1,pe=1,ka=0,lt=0,K=0,_e="";function Kn(t,e,n,r,i,o,a){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:Qn,column:pe,length:a,return:""}}function ke(t,e){return pu(Kn("",null,null,"",null,null,0),t,{length:-t.length},e)}function xu(){return K}function _u(){return K=lt>0?rt(_e,--lt):0,pe--,K===10&&(pe=1,Qn--),K}function ht(){return K=lt<ka?rt(_e,lt++):0,pe++,K===10&&(pe=1,Qn++),K}function Mt(){return rt(_e,lt)}function hn(){return lt}function qe(t,e){return Ie(_e,t,e)}function Le(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ca(t){return Qn=pe=1,ka=St(_e=t),lt=0,[]}function Sa(t){return _e="",t}function gn(t){return ba(qe(lt-1,Er(t===91?t+2:t===40?t+1:t)))}function wu(t){for(;(K=Mt())&&K<33;)ht();return Le(t)>2||Le(K)>3?"":" "}function bu(t,e){for(;--e&&ht()&&!(K<48||K>102||K>57&&K<65||K>70&&K<97););return qe(t,hn()+(e<6&&Mt()==32&&ht()==32))}function Er(t){for(;ht();)switch(K){case t:return lt;case 34:case 39:t!==34&&t!==39&&Er(K);break;case 40:t===41&&Er(t);break;case 92:ht();break}return lt}function ku(t,e){for(;ht()&&t+K!==57;)if(t+K===84&&Mt()===47)break;return"/*"+qe(e,lt-1)+"*"+Zn(t===47?t:ht())}function Cu(t){for(;!Le(Mt());)ht();return qe(t,lt)}function Su(t){return Sa(pn("",null,null,null,[""],t=Ca(t),0,[0],t))}function pn(t,e,n,r,i,o,a,s,c){for(var u=0,f=0,d=a,h=0,g=0,m=0,p=1,_=1,k=1,x=0,C="",w=i,b=o,v=r,y=C;_;)switch(m=x,x=ht()){case 40:if(m!=108&&rt(y,d-1)==58){Dr(y+=Y(gn(x),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:y+=gn(x);break;case 9:case 10:case 13:case 32:y+=wu(m);break;case 92:y+=bu(hn()-1,7);continue;case 47:switch(Mt()){case 42:case 47:on(Tu(ku(ht(),hn()),e,n),c);break;default:y+="/"}break;case 123*p:s[u++]=St(y)*k;case 125*p:case 59:case 0:switch(x){case 0:case 125:_=0;case 59+f:k==-1&&(y=Y(y,/\f/g,"")),g>0&&St(y)-d&&on(g>32?Pi(y+";",r,n,d-1):Pi(Y(y," ","")+";",r,n,d-2),c);break;case 59:y+=";";default:if(on(v=Li(y,e,n,u,f,i,s,C,w=[],b=[],d),o),x===123)if(f===0)pn(y,e,v,v,w,o,d,s,b);else switch(h===99&&rt(y,3)===110?100:h){case 100:case 108:case 109:case 115:pn(t,v,v,r&&on(Li(t,v,v,0,0,i,s,C,i,w=[],d),b),i,b,d,s,r?w:b);break;default:pn(y,v,v,v,[""],b,0,s,b)}}u=f=g=0,p=k=1,C=y="",d=a;break;case 58:d=1+St(y),g=m;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&_u()==125)continue}switch(y+=Zn(x),x*p){case 38:k=f>0?1:(y+="\f",-1);break;case 44:s[u++]=(St(y)-1)*k,k=1;break;case 64:Mt()===45&&(y+=gn(ht())),h=Mt(),f=d=St(C=y+=Cu(hn())),x++;break;case 45:m===45&&St(y)==2&&(p=0)}}return o}function Li(t,e,n,r,i,o,a,s,c,u,f){for(var d=i-1,h=i===0?o:[""],g=Kr(h),m=0,p=0,_=0;m<r;++m)for(var k=0,x=Ie(t,d+1,d=gu(p=a[m])),C=t;k<g;++k)(C=ba(p>0?h[k]+" "+x:Y(x,/&\f/g,h[k])))&&(c[_++]=C);return Kn(t,e,n,i===0?Zr:s,c,u,f)}function Tu(t,e,n){return Kn(t,e,n,_a,Zn(xu()),Ie(t,2,-2),0)}function Pi(t,e,n,r){return Kn(t,e,n,Qr,Ie(t,0,r),Ie(t,r+1,-1),r)}function ue(t,e){for(var n="",r=Kr(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function Mu(t,e,n,r){switch(t.type){case hu:if(t.children.length)break;case du:case Qr:return t.return=t.return||t.value;case _a:return"";case wa:return t.return=t.value+"{"+ue(t.children,r)+"}";case Zr:t.value=t.props.join(",")}return St(n=ue(t.children,r))?t.return=t.value+"{"+n+"}":""}function Au(t){var e=Kr(t);return function(n,r,i,o){for(var a="",s=0;s<e;s++)a+=t[s](n,r,i,o)||"";return a}}function Du(t){return function(e){e.root||(e=e.return)&&t(e)}}function Eu(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Nu=function(e,n,r){for(var i=0,o=0;i=o,o=Mt(),i===38&&o===12&&(n[r]=1),!Le(o);)ht();return qe(e,lt)},$u=function(e,n){var r=-1,i=44;do switch(Le(i)){case 0:i===38&&Mt()===12&&(n[r]=1),e[r]+=Nu(lt-1,n,r);break;case 2:e[r]+=gn(i);break;case 4:if(i===44){e[++r]=Mt()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Zn(i)}while(i=ht());return e},Ru=function(e,n){return Sa($u(Ca(e),n))},Ui=new WeakMap,Bu=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Ui.get(r))&&!i){Ui.set(e,!0);for(var o=[],a=Ru(n,o),s=r.props,c=0,u=0;c<a.length;c++)for(var f=0;f<s.length;f++,u++)e.props[u]=o[c]?a[c].replace(/&\f/g,s[f]):s[f]+" "+a[c]}}},Ou=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ta(t,e){switch(mu(t,e)){case 5103:return H+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return H+t+Bn+t+it+t+t;case 6828:case 4268:return H+t+it+t+t;case 6165:return H+t+it+"flex-"+t+t;case 5187:return H+t+Y(t,/(\w+).+(:[^]+)/,H+"box-$1$2"+it+"flex-$1$2")+t;case 5443:return H+t+it+"flex-item-"+Y(t,/flex-|-self/,"")+t;case 4675:return H+t+it+"flex-line-pack"+Y(t,/align-content|flex-|-self/,"")+t;case 5548:return H+t+it+Y(t,"shrink","negative")+t;case 5292:return H+t+it+Y(t,"basis","preferred-size")+t;case 6060:return H+"box-"+Y(t,"-grow","")+H+t+it+Y(t,"grow","positive")+t;case 4554:return H+Y(t,/([^-])(transform)/g,"$1"+H+"$2")+t;case 6187:return Y(Y(Y(t,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),t,"")+t;case 5495:case 3959:return Y(t,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return Y(Y(t,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+it+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+t+t;case 4095:case 3583:case 4068:case 2532:return Y(t,/(.+)-inline(.+)/,H+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(St(t)-1-e>6)switch(rt(t,e+1)){case 109:if(rt(t,e+4)!==45)break;case 102:return Y(t,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Bn+(rt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Dr(t,"stretch")?Ta(Y(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(rt(t,e+1)!==115)break;case 6444:switch(rt(t,St(t)-3-(~Dr(t,"!important")&&10))){case 107:return Y(t,":",":"+H)+t;case 101:return Y(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(rt(t,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+it+"$2box$3")+t}break;case 5936:switch(rt(t,e+11)){case 114:return H+t+it+Y(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return H+t+it+Y(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return H+t+it+Y(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return H+t+it+t+t}return t}var Vu=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case Qr:e.return=Ta(e.value,e.length);break;case wa:return ue([ke(e,{value:Y(e.value,"@","@"+H)})],i);case Zr:if(e.length)return yu(e.props,function(o){switch(vu(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ue([ke(e,{props:[Y(o,/:(read-\w+)/,":"+Bn+"$1")]})],i);case"::placeholder":return ue([ke(e,{props:[Y(o,/:(plac\w+)/,":"+H+"input-$1")]}),ke(e,{props:[Y(o,/:(plac\w+)/,":"+Bn+"$1")]}),ke(e,{props:[Y(o,/:(plac\w+)/,it+"input-$1")]})],i)}return""})}},Fu=[Vu],zu=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var _=p.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=e.stylisPlugins||Fu,o={},a,s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var _=p.getAttribute("data-emotion").split(" "),k=1;k<_.length;k++)o[_[k]]=!0;s.push(p)});var c,u=[Bu,Ou];{var f,d=[Mu,Du(function(p){f.insert(p)})],h=Au(u.concat(i,d)),g=function(_){return ue(Su(_),h)};c=function(_,k,x,C){f=x,g(_?_+"{"+k.styles+"}":k.styles),C&&(m.inserted[k.name]=!0)}}var m={key:n,sheet:new fu({key:n,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return m.sheet.hydrate(s),m};function Iu(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Lu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Pu=/[A-Z]|^ms/g,Uu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ma=function(e){return e.charCodeAt(1)===45},Wi=function(e){return e!=null&&typeof e!="boolean"},dr=Eu(function(t){return Ma(t)?t:t.replace(Pu,"-$&").toLowerCase()}),Hi=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Uu,function(r,i,o){return Wt={name:i,styles:o,next:Wt},i})}return Lu[e]!==1&&!Ma(e)&&typeof n=="number"&&n!==0?n+"px":n};function On(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Wt={name:i.name,styles:i.styles,next:Wt},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Wt={name:a.name,styles:a.styles,next:Wt},a=a.next;var s=o.styles+";";return s}return Wu(t,e,n)}}var c=n;if(e==null)return c;var u=e[c];return u!==void 0?u:c}function Wu(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=On(t,e,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;e!=null&&e[s]!==void 0?r+=o+"{"+e[s]+"}":Wi(s)&&(r+=dr(o)+":"+Hi(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(e==null||e[a[0]]===void 0))for(var c=0;c<a.length;c++)Wi(a[c])&&(r+=dr(o)+":"+Hi(o,a[c])+";");else{var u=On(t,e,a);switch(o){case"animation":case"animationName":{r+=dr(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}return r}var Yi=/label:\s*([^\s;{]+)\s*(;|$)/g,Wt;function hr(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";Wt=void 0;var o=t[0];if(o==null||o.raw===void 0)r=!1,i+=On(n,e,o);else{var a=o;i+=a[0]}for(var s=1;s<t.length;s++)if(i+=On(n,e,t[s]),r){var c=o;i+=c[s]}Yi.lastIndex=0;for(var u="",f;(f=Yi.exec(i))!==null;)u+="-"+f[1];var d=Iu(i)+u;return{name:d,styles:i,next:Wt}}function Aa(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var Hu=function(e,n,r){var i=e.key+"-"+n.name;e.registered[i]===void 0&&(e.registered[i]=n.styles)},Yu=function(e,n,r){Hu(e,n);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Xi(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function Gi(t,e,n){var r=[],i=Aa(t,r,n);return r.length<2?n:i+e(r)}var Xu=function(e){var n=zu(e);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var d=hr(u,n.registered,void 0);return Yu(n,d),n.key+"-"+d.name},i=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var d=hr(u,n.registered),h="animation-"+d.name;return Xi(n,{name:d.name,styles:"@keyframes "+h+"{"+d.styles+"}"}),h},o=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var d=hr(u,n.registered);Xi(n,d)},a=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return Gi(n.registered,r,Gu(u))};return{css:r,cx:a,injectGlobal:o,keyframes:i,hydrate:function(c){c.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Aa.bind(null,n.registered),merge:Gi.bind(null,n.registered,r)}},Gu=function t(e){for(var n="",r=0;r<e.length;r++){var i=e[r];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=t(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},Da=Xu({key:"css"}),je=Da.injectGlobal,q=Da.css;function Ea(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}const qi=new WeakMap;function qu(t,e){const n=t.substr(4,t.length-5);let r=qi.get(e);if(r||(r=new Map,qi.set(e,r)),r.has(n))return r.get(n);const i=getComputedStyle(e).getPropertyValue(n);return r.set(n,i),i}function ju(t,e,n=0){const[r,i,o,a]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[s,c,u,f]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(i<f||c<a||o<s||u<r)}function Jr(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Na(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Ze(){}var Pe=.7,Vn=1/Pe,fe="\\s*([+-]?\\d+)\\s*",Ue="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",At="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Zu=/^#([0-9a-f]{3,8})$/,Qu=new RegExp(`^rgb\\(${fe},${fe},${fe}\\)$`),Ku=new RegExp(`^rgb\\(${At},${At},${At}\\)$`),Ju=new RegExp(`^rgba\\(${fe},${fe},${fe},${Ue}\\)$`),tf=new RegExp(`^rgba\\(${At},${At},${At},${Ue}\\)$`),ef=new RegExp(`^hsl\\(${Ue},${At},${At}\\)$`),nf=new RegExp(`^hsla\\(${Ue},${At},${At},${Ue}\\)$`),ji={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};Jr(Ze,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Zi,formatHex:Zi,formatHex8:rf,formatHsl:of,formatRgb:Qi,toString:Qi});function Zi(){return this.rgb().formatHex()}function rf(){return this.rgb().formatHex8()}function of(){return $a(this).formatHsl()}function Qi(){return this.rgb().formatRgb()}function ee(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Zu.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Ki(e):n===3?new st(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?an(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?an(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Qu.exec(t))?new st(e[1],e[2],e[3],1):(e=Ku.exec(t))?new st(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Ju.exec(t))?an(e[1],e[2],e[3],e[4]):(e=tf.exec(t))?an(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=ef.exec(t))?eo(e[1],e[2]/100,e[3]/100,1):(e=nf.exec(t))?eo(e[1],e[2]/100,e[3]/100,e[4]):ji.hasOwnProperty(t)?Ki(ji[t]):t==="transparent"?new st(NaN,NaN,NaN,0):null}function Ki(t){return new st(t>>16&255,t>>8&255,t&255,1)}function an(t,e,n,r){return r<=0&&(t=e=n=NaN),new st(t,e,n,r)}function af(t){return t instanceof Ze||(t=ee(t)),t?(t=t.rgb(),new st(t.r,t.g,t.b,t.opacity)):new st}function Nr(t,e,n,r){return arguments.length===1?af(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Jr(st,Nr,Na(Ze,{brighter(t){return t=t==null?Vn:Math.pow(Vn,t),new st(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Pe:Math.pow(Pe,t),new st(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new st(Kt(this.r),Kt(this.g),Kt(this.b),Fn(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:Ji,formatHex:Ji,formatHex8:sf,formatRgb:to,toString:to}));function Ji(){return`#${qt(this.r)}${qt(this.g)}${qt(this.b)}`}function sf(){return`#${qt(this.r)}${qt(this.g)}${qt(this.b)}${qt((isNaN(this.opacity)?1:this.opacity)*255)}`}function to(){const t=Fn(this.opacity);return`${t===1?"rgb(":"rgba("}${Kt(this.r)}, ${Kt(this.g)}, ${Kt(this.b)}${t===1?")":`, ${t})`}`}function Fn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Kt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function qt(t){return t=Kt(t),(t<16?"0":"")+t.toString(16)}function eo(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new _t(t,e,n,r)}function $a(t){if(t instanceof _t)return new _t(t.h,t.s,t.l,t.opacity);if(t instanceof Ze||(t=ee(t)),!t)return new _t;if(t instanceof _t)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(e===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-e)/s+2:a=(e-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new _t(a,s,c,t.opacity)}function ti(t,e,n,r){return arguments.length===1?$a(t):new _t(t,e,n,r??1)}function _t(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Jr(_t,ti,Na(Ze,{brighter(t){return t=t==null?Vn:Math.pow(Vn,t),new _t(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Pe:Math.pow(Pe,t),new _t(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new st(gr(t>=240?t-240:t+120,i,r),gr(t,i,r),gr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new _t(no(this.h),sn(this.s),sn(this.l),Fn(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 t=Fn(this.opacity);return`${t===1?"hsl(":"hsla("}${no(this.h)}, ${sn(this.s)*100}%, ${sn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function no(t){return t=(t||0)%360,t<0?t+360:t}function sn(t){return Math.max(0,Math.min(1,t||0))}function gr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Ae=globalThis?.UNOVIS_COLORS||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],cf=globalThis?.UNOVIS_COLORS_DARK||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],Pt=t=>`--vis-${Yt(t)?`color${t%Ae.length}`:t}`;function lf(t,e=.4){const n=ti(t);return n.l=n.l*(1+e),n.formatHex()}function uf(t,e=.4,n=.6){const r=ti(t);return r.s=r.s*(1-n),r.l=r.l*(1-e),r.formatHex()}const zn=10,$r=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],Rr=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function Ut(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const ff=t=>`<mask id="${Ut(t)}">
|
|
2
|
-
<pattern id="${t.id}" viewBox="0 0 10 10" width="${zn}" height="${zn}" patternUnits="userSpaceOnUse">
|
|
3
|
-
<rect width="100%" height="100%" fill="#fff"/>
|
|
4
|
-
${t.svg}
|
|
5
|
-
</pattern>
|
|
6
|
-
<rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${t.id})"/>
|
|
7
|
-
</mask>`,df=(t,e)=>`<marker id="${Ut(t)}"
|
|
8
|
-
fill="var(${Pt(e)})"
|
|
9
|
-
markerUnits="userSpaceOnUse"
|
|
10
|
-
refX="5"
|
|
11
|
-
refY="5"
|
|
12
|
-
markerWidth="${zn}"
|
|
13
|
-
markerHeight="${zn}">
|
|
14
|
-
${t.marker}
|
|
15
|
-
</marker>`;function hf(){const t=$r.map(ff).concat(Rr.map(df)).join(""),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.style.position="fixed",e.style.zIndex="-99999999",e.innerHTML=`<defs>${t}</defs>`,document.body.appendChild(e)}typeof window<"u"&&hf();const Ra=globalThis?.UNOVIS_FONT_W2H_RATIO_DEFAULT||.5,Ba=globalThis?.UNOVIS_TEXT_SEPARATOR_DEFAULT||[" ","-",".",","],Oa=globalThis?.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT||"-",Ve=globalThis?.UNOVIS_TEXT_DEFAULT||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};je`
|
|
16
|
-
:root {
|
|
17
|
-
label: vis-root-styles;
|
|
18
|
-
--vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
19
|
-
--vis-font-wh-ratio: ${Ra};
|
|
20
|
-
--vis-color-main: var(${Pt(0)});
|
|
21
|
-
--vis-color-main-light: ${lf(Ae[0])};
|
|
22
|
-
--vis-color-main-dark: ${uf(Ae[0])};
|
|
23
|
-
--vis-color-grey: #2a2a2a;
|
|
24
|
-
${Ae.map((t,e)=>`${Pt(e)}: ${t};`)}
|
|
25
|
-
${cf.map((t,e)=>`--vis-dark-color${e}: ${t};`)}
|
|
26
|
-
${$r.map((t,e)=>`
|
|
27
|
-
--${Ut(t)}: url(#${Ut(t)});
|
|
28
|
-
--vis-pattern-fill${e}: var(--${Ut(t)});
|
|
29
|
-
`)}
|
|
30
|
-
${Rr.map((t,e)=>{var n;return`
|
|
31
|
-
--${Ut(t)}: url(#${Ut(t)});
|
|
32
|
-
--vis-pattern-marker${e}: var(--${Ut(t)});
|
|
33
|
-
--vis-pattern-dasharray${e}: ${(n=t.dashArray)===null||n===void 0?void 0:n.join(" ")};
|
|
34
|
-
`})}
|
|
35
|
-
|
|
36
|
-
body.theme-dark {
|
|
37
|
-
${Ae.map((t,e)=>`${Pt(e)}: var(--vis-dark-color${e});`)}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
body.theme-patterns {
|
|
41
|
-
${$r.map((t,e)=>`path[style*="fill: var(${Pt(e)})"] {
|
|
42
|
-
mask: var(--vis-pattern-fill${e});
|
|
43
|
-
}`)}
|
|
44
|
-
${Rr.map((t,e)=>`
|
|
45
|
-
path[stroke="var(${Pt(e)})"]:not([style*="fill"]),
|
|
46
|
-
path[style*="stroke: var(${Pt(e)})"]:not([style*="fill"]) {
|
|
47
|
-
marker: var(--vis-pattern-marker${e});
|
|
48
|
-
stroke-dasharray: var(--vis-pattern-dasharray${e});
|
|
49
|
-
}
|
|
50
|
-
`)}
|
|
51
|
-
}
|
|
52
|
-
`;function ei(t=window?.document.body){return t?+qu("var(--vis-font-wh-ratio)",t):Ra}var gf={value:()=>{}};function Va(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new mn(n)}function mn(t){this._=t}function pf(t,e){return t.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&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}mn.prototype=Va.prototype={constructor:mn,on:function(t,e){var n=this._,r=pf(t+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(t=r[o]).type)&&(i=mf(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<a;)if(i=(t=r[o]).type)n[i]=ro(n[i],t.name,e);else if(e==null)for(i in n)n[i]=ro(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new mn(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function mf(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function ro(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=gf,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var me=0,De=0,Ce=0,Fa=1e3,In,Ee,Ln=0,ne=0,Jn=0,We=typeof performance=="object"&&performance.now?performance:Date,za=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ni(){return ne||(za(vf),ne=We.now()+Jn)}function vf(){ne=0}function Pn(){this._call=this._time=this._next=null}Pn.prototype=Ia.prototype={constructor:Pn,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?ni():+n)+(e==null?0:+e),!this._next&&Ee!==this&&(Ee?Ee._next=this:In=this,Ee=this),this._call=t,this._time=n,Br()},stop:function(){this._call&&(this._call=null,this._time=1/0,Br())}};function Ia(t,e,n){var r=new Pn;return r.restart(t,e,n),r}function yf(){ni(),++me;for(var t=In,e;t;)(e=ne-t._time)>=0&&t._call.call(void 0,e),t=t._next;--me}function io(){ne=(Ln=We.now())+Jn,me=De=0;try{yf()}finally{me=0,_f(),ne=0}}function xf(){var t=We.now(),e=t-Ln;e>Fa&&(Jn-=e,Ln=t)}function _f(){for(var t,e=In,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:In=n);Ee=t,Br(r)}function Br(t){if(!me){De&&(De=clearTimeout(De));var e=t-ne;e>24?(t<1/0&&(De=setTimeout(io,t-We.now()-Jn)),Ce&&(Ce=clearInterval(Ce))):(Ce||(Ln=We.now(),Ce=setInterval(xf,Fa)),me=1,za(io))}}function oo(t,e,n){var r=new Pn;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var wf=Va("start","end","cancel","interrupt"),bf=[],La=0,ao=1,Or=2,vn=3,so=4,Vr=5,yn=6;function tr(t,e,n,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;kf(t,n,{name:e,index:r,group:i,on:wf,tween:bf,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:La})}function ri(t,e){var n=bt(t,e);if(n.state>La)throw new Error("too late; already scheduled");return n}function Dt(t,e){var n=bt(t,e);if(n.state>vn)throw new Error("too late; already running");return n}function bt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function kf(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Ia(o,0,n.time);function o(u){n.state=ao,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var f,d,h,g;if(n.state!==ao)return c();for(f in r)if(g=r[f],g.name===n.name){if(g.state===vn)return oo(a);g.state===so?(g.state=yn,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete r[f]):+f<e&&(g.state=yn,g.timer.stop(),g.on.call("cancel",t,t.__data__,g.index,g.group),delete r[f])}if(oo(function(){n.state===vn&&(n.state=so,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=Or,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Or){for(n.state=vn,i=new Array(h=n.tween.length),f=0,d=-1;f<h;++f)(g=n.tween[f].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=g);i.length=d+1}}function s(u){for(var f=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=Vr,1),d=-1,h=i.length;++d<h;)i[d].call(t,f);n.state===Vr&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=yn,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function ii(t,e){var n=t.__transition,r,i,o=!0,a;if(n){e=e==null?null:e+"";for(a in n){if((r=n[a]).name!==e){o=!1;continue}i=r.state>Or&&r.state<Vr,r.state=yn,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[a]}o&&delete t.__transition}}function Cf(t){return this.each(function(){ii(this,t)})}const oi=t=>()=>t;function Sf(t,e){return function(n){return t+n*e}}function Tf(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Mf(t){return(t=+t)==1?Pa:function(e,n){return n-e?Tf(e,n,t):oi(isNaN(e)?n:e)}}function Pa(t,e){var n=e-t;return n?Sf(t,n):oi(isNaN(t)?e:t)}const Un=(function t(e){var n=Mf(e);function r(i,o){var a=n((i=Nr(i)).r,(o=Nr(o)).r),s=n(i.g,o.g),c=n(i.b,o.b),u=Pa(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=c(f),i.opacity=u(f),i+""}}return r.gamma=t,r})(1);function Af(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function Df(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ef(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=we(t[a],e[a]);for(;a<n;++a)o[a]=e[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function Nf(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function xt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function $f(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=we(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Fr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pr=new RegExp(Fr.source,"g");function Rf(t){return function(){return t}}function Bf(t){return function(e){return t(e)+""}}function Ua(t,e){var n=Fr.lastIndex=pr.lastIndex=0,r,i,o,a=-1,s=[],c=[];for(t=t+"",e=e+"";(r=Fr.exec(t))&&(i=pr.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:xt(r,i)})),n=pr.lastIndex;return n<e.length&&(o=e.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?Bf(c[0].x):Rf(e):(e=c.length,function(u){for(var f=0,d;f<e;++f)s[(d=c[f]).i]=d.x(u);return s.join("")})}function we(t,e){var n=typeof e,r;return e==null||n==="boolean"?oi(e):(n==="number"?xt:n==="string"?(r=ee(e))?(e=r,Un):Ua:e instanceof ee?Un:e instanceof Date?Nf:Df(e)?Af:Array.isArray(e)?Ef:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?$f:xt)(t,e)}function ai(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var co=180/Math.PI,zr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Wa(t,e,n,r,i,o){var a,s,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r<e*n&&(t=-t,e=-e,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*co,skewX:Math.atan(c)*co,scaleX:a,scaleY:s}}var cn;function Of(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?zr:Wa(e.a,e.b,e.c,e.d,e.e,e.f)}function Vf(t){return t==null||(cn||(cn=document.createElementNS("http://www.w3.org/2000/svg","g")),cn.setAttribute("transform",t),!(t=cn.transform.baseVal.consolidate()))?zr:(t=t.matrix,Wa(t.a,t.b,t.c,t.d,t.e,t.f))}function Ha(t,e,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,f,d,h,g,m){if(u!==d||f!==h){var p=g.push("translate(",null,e,null,n);m.push({i:p-4,x:xt(u,d)},{i:p-2,x:xt(f,h)})}else(d||h)&&g.push("translate("+d+e+h+n)}function a(u,f,d,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:xt(u,f)})):f&&d.push(i(d)+"rotate("+f+r)}function s(u,f,d,h){u!==f?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:xt(u,f)}):f&&d.push(i(d)+"skewX("+f+r)}function c(u,f,d,h,g,m){if(u!==d||f!==h){var p=g.push(i(g)+"scale(",null,",",null,")");m.push({i:p-4,x:xt(u,d)},{i:p-2,x:xt(f,h)})}else(d!==1||h!==1)&&g.push(i(g)+"scale("+d+","+h+")")}return function(u,f){var d=[],h=[];return u=t(u),f=t(f),o(u.translateX,u.translateY,f.translateX,f.translateY,d,h),a(u.rotate,f.rotate,d,h),s(u.skewX,f.skewX,d,h),c(u.scaleX,u.scaleY,f.scaleX,f.scaleY,d,h),u=f=null,function(g){for(var m=-1,p=h.length,_;++m<p;)d[(_=h[m]).i]=_.x(g);return d.join("")}}}var Ff=Ha(Of,"px, ","px)","deg)"),zf=Ha(Vf,", ",")",")");function If(t,e){e===void 0&&(e=t,t=we);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function Lf(t,e){var n,r;return function(){var i=Dt(this,t),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function Pf(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Dt(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},c=0,u=i.length;c<u;++c)if(i[c].name===e){i[c]=s;break}c===u&&i.push(s)}o.tween=i}}function Uf(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=bt(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===t)return a.value;return null}return this.each((e==null?Lf:Pf)(n,t,e))}function si(t,e,n){var r=t._id;return t.each(function(){var i=Dt(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return bt(i,r).value[e]}}function Ya(t,e){var n;return(typeof e=="number"?xt:e instanceof ee?Un:(n=ee(e))?(e=n,Un):Ua)(t,e)}function Wf(t){return function(){this.removeAttribute(t)}}function Hf(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Yf(t,e,n){var r,i=n+"",o;return function(){var a=this.getAttribute(t);return a===i?null:a===r?o:o=e(r=a,n)}}function Xf(t,e,n){var r,i=n+"",o;return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?o:o=e(r=a,n)}}function Gf(t,e,n){var r,i,o;return function(){var a,s=n(this),c;return s==null?void this.removeAttribute(t):(a=this.getAttribute(t),c=s+"",a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,s)))}}function qf(t,e,n){var r,i,o;return function(){var a,s=n(this),c;return s==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),c=s+"",a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,s)))}}function jf(t,e){var n=jn(t),r=n==="transform"?zf:Ya;return this.attrTween(t,typeof e=="function"?(n.local?qf:Gf)(n,r,si(this,"attr."+t,e)):e==null?(n.local?Hf:Wf)(n):(n.local?Xf:Yf)(n,r,e))}function Zf(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Qf(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Kf(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&Qf(t,o)),n}return i._value=e,i}function Jf(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&Zf(t,o)),n}return i._value=e,i}function td(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=jn(t);return this.tween(n,(r.local?Kf:Jf)(r,e))}function ed(t,e){return function(){ri(this,t).delay=+e.apply(this,arguments)}}function nd(t,e){return e=+e,function(){ri(this,t).delay=e}}function rd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ed:nd)(e,t)):bt(this.node(),e).delay}function id(t,e){return function(){Dt(this,t).duration=+e.apply(this,arguments)}}function od(t,e){return e=+e,function(){Dt(this,t).duration=e}}function ad(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?id:od)(e,t)):bt(this.node(),e).duration}function sd(t,e){if(typeof e!="function")throw new Error;return function(){Dt(this,t).ease=e}}function cd(t){var e=this._id;return arguments.length?this.each(sd(e,t)):bt(this.node(),e).ease}function ld(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Dt(this,t).ease=n}}function ud(t){if(typeof t!="function")throw new Error;return this.each(ld(this._id,t))}function fd(t){typeof t!="function"&&(t=Qo(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],c,u=0;u<a;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&s.push(c);return new Ft(r,this._parents,this._name,this._id)}function dd(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var c=e[s],u=n[s],f=c.length,d=a[s]=new Array(f),h,g=0;g<f;++g)(h=c[g]||u[g])&&(d[g]=h);for(;s<r;++s)a[s]=e[s];return new Ft(a,this._parents,this._name,this._id)}function hd(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function gd(t,e,n){var r,i,o=hd(e)?ri:Dt;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}function pd(t,e){var n=this._id;return arguments.length<2?bt(this.node(),n).on.on(t):this.each(gd(n,t,e))}function md(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function vd(){return this.on("end.remove",md(this._id))}function yd(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Yr(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],c=s.length,u=o[a]=new Array(c),f,d,h=0;h<c;++h)(f=s[h])&&(d=t.call(f,f.__data__,h,s))&&("__data__"in f&&(d.__data__=f.__data__),u[h]=d,tr(u[h],e,n,h,u,bt(f,n)));return new Ft(o,this._parents,e,n)}function xd(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Zo(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var c=r[s],u=c.length,f,d=0;d<u;++d)if(f=c[d]){for(var h=t.call(f,f.__data__,d,c),g,m=bt(f,n),p=0,_=h.length;p<_;++p)(g=h[p])&&tr(g,e,n,p,h,m);o.push(h),a.push(f)}return new Ft(o,a,e,n)}var _d=Ye.prototype.constructor;function wd(){return new _d(this._groups,this._parents)}function bd(t,e){var n,r,i;return function(){var o=de(this,t),a=(this.style.removeProperty(t),de(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function Xa(t){return function(){this.style.removeProperty(t)}}function kd(t,e,n){var r,i=n+"",o;return function(){var a=de(this,t);return a===i?null:a===r?o:o=e(r=a,n)}}function Cd(t,e,n){var r,i,o;return function(){var a=de(this,t),s=n(this),c=s+"";return s==null&&(c=s=(this.style.removeProperty(t),de(this,t))),a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,s))}}function Sd(t,e){var n,r,i,o="style."+e,a="end."+o,s;return function(){var c=Dt(this,t),u=c.on,f=c.value[o]==null?s||(s=Xa(e)):void 0;(u!==n||i!==f)&&(r=(n=u).copy()).on(a,i=f),c.on=r}}function Td(t,e,n){var r=(t+="")=="transform"?Ff:Ya;return e==null?this.styleTween(t,bd(t,r)).on("end.style."+t,Xa(t)):typeof e=="function"?this.styleTween(t,Cd(t,r,si(this,"style."+t,e))).each(Sd(this._id,t)):this.styleTween(t,kd(t,r,e),n).on("end.style."+t,null)}function Md(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ad(t,e,n){var r,i;function o(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Md(t,a,n)),r}return o._value=e,o}function Dd(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Ad(t,e,n??""))}function Ed(t){return function(){this.textContent=t}}function Nd(t){return function(){var e=t(this);this.textContent=e??""}}function $d(t){return this.tween("text",typeof t=="function"?Nd(si(this,"text",t)):Ed(t==null?"":t+""))}function Rd(t){return function(e){this.textContent=t.call(this,e)}}function Bd(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Rd(i)),e}return r._value=t,r}function Od(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Bd(t))}function Vd(){for(var t=this._name,e=this._id,n=Ga(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,c,u=0;u<s;++u)if(c=a[u]){var f=bt(c,e);tr(c,t,n,u,a,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Ft(r,this._parents,t,n)}function Fd(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},c={value:function(){--i===0&&o()}};n.each(function(){var u=Dt(this,r),f=u.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),u.on=e}),i===0&&o()})}var zd=0;function Ft(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Ga(){return++zd}var Et=Ye.prototype;Ft.prototype={constructor:Ft,select:yd,selectAll:xd,selectChild:Et.selectChild,selectChildren:Et.selectChildren,filter:fd,merge:dd,selection:wd,transition:Vd,call:Et.call,nodes:Et.nodes,node:Et.node,size:Et.size,empty:Et.empty,each:Et.each,on:pd,attr:jf,attrTween:td,style:Td,styleTween:Dd,text:$d,textTween:Od,remove:vd,tween:Uf,delay:rd,duration:ad,ease:cd,easeVarying:ud,end:Fd,[Symbol.iterator]:Et[Symbol.iterator]};const lo=t=>+t;function Id(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Ld={time:null,delay:0,duration:250,ease:Id};function Pd(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Ud(t){var e,n;t instanceof Ft?(e=t._id,t=t._name):(e=Ga(),(n=Ld).time=ni(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,c,u=0;u<s;++u)(c=a[u])&&tr(c,t,e,u,a,n||Pd(c,e));return new Ft(r,this._parents,t,e)}Ye.prototype.interrupt=Cf;Ye.prototype.transition=Ud;function mt(t,e,n){if(t.nodes().forEach(r=>ii(r)),e){const r=t.transition().duration(e);return n&&r.ease(n),r}else return t}class ci{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}var z;(function(t){t.X="x",t.Y="y"})(z||(z={}));function kt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function qa(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const uo=Symbol("implicit");function li(){var t=new Ai,e=[],n=[],r=uo;function i(o){let a=t.get(o);if(a===void 0){if(r!==uo)return r;t.set(o,a=e.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new Ai;for(const a of o)t.has(a)||t.set(a,e.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return li(e,n).unknown(r)},kt.apply(i,arguments),i}function er(){var t=li().unknown(void 0),e=t.domain,n=t.range,r=0,i=1,o,a,s=!1,c=0,u=0,f=.5;delete t.unknown;function d(){var h=e().length,g=i<r,m=g?i:r,p=g?r:i;o=(p-m)/Math.max(1,h-c+u*2),s&&(o=Math.floor(o)),m+=(p-m-o*(h-c))*f,a=o*(1-c),s&&(m=Math.round(m),a=Math.round(a));var _=la(h).map(function(k){return m+o*k});return n(g?_.reverse():_)}return t.domain=function(h){return arguments.length?(e(h),d()):e()},t.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,d()):[r,i]},t.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,d()},t.bandwidth=function(){return a},t.step=function(){return o},t.round=function(h){return arguments.length?(s=!!h,d()):s},t.padding=function(h){return arguments.length?(c=Math.min(1,u=+h),d()):c},t.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),d()):c},t.paddingOuter=function(h){return arguments.length?(u=+h,d()):u},t.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),d()):f},t.copy=function(){return er(e(),[r,i]).round(s).paddingInner(c).paddingOuter(u).align(f)},kt.apply(d(),arguments)}function ja(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return ja(e())},t}function Wd(){return ja(er.apply(null,arguments).paddingInner(1))}function Hd(t){return function(){return t}}function Ir(t){return+t}var fo=[0,1];function ct(t){return t}function Lr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Hd(isNaN(e)?NaN:.5)}function Yd(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function Xd(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Lr(i,r),o=n(a,o)):(r=Lr(r,i),o=n(o,a)),function(s){return o(r(s))}}function Gd(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=Lr(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(s){var c=Xe(t,s,1,r)-1;return o[c](i[c](s))}}function Qe(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function nr(){var t=fo,e=fo,n=we,r,i,o,a=ct,s,c,u;function f(){var h=Math.min(t.length,e.length);return a!==ct&&(a=Yd(t[0],t[h-1])),s=h>2?Gd:Xd,c=u=null,d}function d(h){return h==null||isNaN(h=+h)?o:(c||(c=s(t.map(r),e,n)))(r(a(h)))}return d.invert=function(h){return a(i((u||(u=s(e,t.map(r),xt)))(h)))},d.domain=function(h){return arguments.length?(t=Array.from(h,Ir),f()):t.slice()},d.range=function(h){return arguments.length?(e=Array.from(h),f()):e.slice()},d.rangeRound=function(h){return e=Array.from(h),n=ai,f()},d.clamp=function(h){return arguments.length?(a=h?!0:ct,f()):a!==ct},d.interpolate=function(h){return arguments.length?(n=h,f()):n},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,g){return r=h,i=g,f()}}function Za(){return nr()(ct,ct)}function qd(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Wn(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function ve(t){return t=Wn(Math.abs(t)),t?t[1]:NaN}function jd(t,e){return function(n,r){for(var i=n.length,o=[],a=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}function Zd(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var Qd=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function He(t){if(!(e=Qd.exec(t)))throw new Error("invalid format: "+t);var e;return new ui({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}He.prototype=ui.prototype;function ui(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}ui.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 Kd(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var Hn;function Jd(t,e){var n=Wn(t,e);if(!n)return Hn=void 0,t.toPrecision(e);var r=n[0],i=n[1],o=i-(Hn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Wn(t,Math.max(0,e+o-1))[0]}function ho(t,e){var n=Wn(t,e);if(!n)return t+"";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 go={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:qd,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>ho(t*100,e),r:ho,s:Jd,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function po(t){return t}var mo=Array.prototype.map,vo=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function th(t){var e=t.grouping===void 0||t.thousands===void 0?po:jd(mo.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?po:Zd(mo.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(d,h){d=He(d);var g=d.fill,m=d.align,p=d.sign,_=d.symbol,k=d.zero,x=d.width,C=d.comma,w=d.precision,b=d.trim,v=d.type;v==="n"?(C=!0,v="g"):go[v]||(w===void 0&&(w=12),b=!0,v="g"),(k||g==="0"&&m==="=")&&(k=!0,g="0",m="=");var y=(h&&h.prefix!==void 0?h.prefix:"")+(_==="$"?n:_==="#"&&/[boxX]/.test(v)?"0"+v.toLowerCase():""),$=(_==="$"?r:/[%p]/.test(v)?a:"")+(h&&h.suffix!==void 0?h.suffix:""),E=go[v],N=/[defgprs%]/.test(v);w=w===void 0?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function O(A){var X=y,B=$,T,R,I;if(v==="c")B=E(A)+B,A="";else{A=+A;var W=A<0||1/A<0;if(A=isNaN(A)?c:E(Math.abs(A),w),b&&(A=Kd(A)),W&&+A==0&&p!=="+"&&(W=!1),X=(W?p==="("?p:s:p==="-"||p==="("?"":p)+X,B=(v==="s"&&!isNaN(A)&&Hn!==void 0?vo[8+Hn/3]:"")+B+(W&&p==="("?")":""),N){for(T=-1,R=A.length;++T<R;)if(I=A.charCodeAt(T),48>I||I>57){B=(I===46?i+A.slice(T+1):A.slice(T))+B,A=A.slice(0,T);break}}}C&&!k&&(A=e(A,1/0));var j=X.length+A.length+B.length,Q=j<x?new Array(x-j+1).join(g):"";switch(C&&k&&(A=e(Q+A,Q.length?x-B.length:1/0),Q=""),m){case"<":A=X+A+B+Q;break;case"=":A=X+Q+A+B;break;case"^":A=Q.slice(0,j=Q.length>>1)+X+A+B+Q.slice(j);break;default:A=Q+X+A+B;break}return o(A)}return O.toString=function(){return d+""},O}function f(d,h){var g=Math.max(-8,Math.min(8,Math.floor(ve(h)/3)))*3,m=Math.pow(10,-g),p=u((d=He(d),d.type="f",d),{suffix:vo[8+g/3]});return function(_){return p(m*_)}}return{format:u,formatPrefix:f}}var ln,fi,Qa;eh({thousands:",",grouping:[3],currency:["$",""]});function eh(t){return ln=th(t),fi=ln.format,Qa=ln.formatPrefix,ln}function nh(t){return Math.max(0,-ve(Math.abs(t)))}function rh(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ve(e)/3)))*3-ve(Math.abs(t)))}function ih(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ve(e)-ve(t))+1}function oh(t,e,n,r){var i=Cr(t,e,n),o;switch(r=He(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=rh(i,a))&&(r.precision=o),Qa(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=ih(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=nh(i))&&(r.precision=o-(r.type==="%")*2);break}}return fi(r)}function re(t){var e=t.domain;return t.ticks=function(n){var r=e();return br(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return oh(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,a=r[i],s=r[o],c,u,f=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);f-- >0;){if(u=kr(a,s,n),u===c)return r[i]=a,r[o]=s,e(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;c=u}return t},t}function Ka(){var t=Za();return t.copy=function(){return Qe(t,Ka())},kt.apply(t,arguments),re(t)}function Ja(t){var e;function n(r){return r==null||isNaN(r=+r)?e:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(t=Array.from(r,Ir),n):t.slice()},n.unknown=function(r){return arguments.length?(e=r,n):e},n.copy=function(){return Ja(t).unknown(e)},t=arguments.length?Array.from(t,Ir):[0,1],re(n)}function ts(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],o=t[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),t[n]=e.floor(i),t[r]=e.ceil(o),t}function yo(t){return Math.log(t)}function xo(t){return Math.exp(t)}function ah(t){return-Math.log(-t)}function sh(t){return-Math.exp(-t)}function ch(t){return isFinite(t)?+("1e"+t):t<0?0:t}function lh(t){return t===10?ch:t===Math.E?Math.exp:e=>Math.pow(t,e)}function uh(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function _o(t){return(e,n)=>-t(-e,n)}function fh(t){const e=t(yo,xo),n=e.domain;let r=10,i,o;function a(){return i=uh(r),o=lh(r),n()[0]<0?(i=_o(i),o=_o(o),t(ah,sh)):t(yo,xo),e}return e.base=function(s){return arguments.length?(r=+s,a()):r},e.domain=function(s){return arguments.length?(n(s),a()):n()},e.ticks=s=>{const c=n();let u=c[0],f=c[c.length-1];const d=f<u;d&&([u,f]=[f,u]);let h=i(u),g=i(f),m,p;const _=s==null?10:+s;let k=[];if(!(r%1)&&g-h<_){if(h=Math.floor(h),g=Math.ceil(g),u>0){for(;h<=g;++h)for(m=1;m<r;++m)if(p=h<0?m/o(-h):m*o(h),!(p<u)){if(p>f)break;k.push(p)}}else for(;h<=g;++h)for(m=r-1;m>=1;--m)if(p=h>0?m/o(-h):m*o(h),!(p<u)){if(p>f)break;k.push(p)}k.length*2<_&&(k=br(u,f,_))}else k=br(h,g,Math.min(g-h,_)).map(o);return d?k.reverse():k},e.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=He(c)).precision==null&&(c.trim=!0),c=fi(c)),s===1/0)return c;const u=Math.max(1,r*s/e.ticks().length);return f=>{let d=f/o(Math.round(i(f)));return d*r<r-.5&&(d*=r),d<=u?c(f):""}},e.nice=()=>n(ts(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),e}function es(){const t=fh(nr()).domain([1,10]);return t.copy=()=>Qe(t,es()).base(t.base()),kt.apply(t,arguments),t}function wo(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function bo(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function dh(t){var e=1,n=t(wo(e),bo(e));return n.constant=function(r){return arguments.length?t(wo(e=+r),bo(e)):e},re(n)}function ns(){var t=dh(nr());return t.copy=function(){return Qe(t,ns()).constant(t.constant())},kt.apply(t,arguments)}function ko(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function hh(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function gh(t){return t<0?-t*t:t*t}function ph(t){var e=t(ct,ct),n=1;function r(){return n===1?t(ct,ct):n===.5?t(hh,gh):t(ko(n),ko(1/n))}return e.exponent=function(i){return arguments.length?(n=+i,r()):n},re(e)}function di(){var t=ph(nr());return t.copy=function(){return Qe(t,di()).exponent(t.exponent())},kt.apply(t,arguments),t}function mh(){return di.apply(null,arguments).exponent(.5)}function rs(){var t=[],e=[],n=[],r;function i(){var a=0,s=Math.max(1,e.length);for(n=new Array(s-1);++a<s;)n[a-1]=$l(t,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:e[Xe(n,a)]}return o.invertExtent=function(a){var s=e.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:t[0],s<n.length?n[s]:t[t.length-1]]},o.domain=function(a){if(!arguments.length)return t.slice();t=[];for(let s of a)s!=null&&!isNaN(s=+s)&&t.push(s);return t.sort(Re),i()},o.range=function(a){return arguments.length?(e=Array.from(a),i()):e.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return rs().domain(t).range(e).unknown(r)},kt.apply(o,arguments)}function is(){var t=0,e=1,n=1,r=[.5],i=[0,1],o;function a(c){return c!=null&&c<=c?i[Xe(r,c,0,n)]:o}function s(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*e-(c-n)*t)/(n+1);return a}return a.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,s()):[t,e]},a.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,s()):i.slice()},a.invertExtent=function(c){var u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[t,r[0]]:u>=n?[r[n-1],e]:[r[u-1],r[u]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return r.slice()},a.copy=function(){return is().domain([t,e]).range(i).unknown(o)},kt.apply(re(a),arguments)}function os(){var t=[.5],e=[0,1],n,r=1;function i(o){return o!=null&&o<=o?e[Xe(t,o,0,r)]:n}return i.domain=function(o){return arguments.length?(t=Array.from(o),r=Math.min(t.length,e.length-1),i):t.slice()},i.range=function(o){return arguments.length?(e=Array.from(o),r=Math.min(t.length,e.length-1),i):e.slice()},i.invertExtent=function(o){var a=e.indexOf(o);return[t[a-1],t[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return os().domain(t).range(e).unknown(n)},kt.apply(i,arguments)}const mr=new Date,vr=new Date;function et(t,e,n,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(e(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const c=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return c;let u;do c.push(u=new Date(+o)),e(o,s),t(o);while(u<o&&o<a);return c},i.filter=o=>et(a=>{if(a>=a)for(;t(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;e(a,-1),!o(a););else for(;--s>=0;)for(;e(a,1),!o(a););}),n&&(i.count=(o,a)=>(mr.setTime(+o),vr.setTime(+a),t(mr),t(vr),Math.floor(n(mr,vr))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Yn=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Yn.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Yn);Yn.range;const Bt=1e3,vt=Bt*60,Ot=vt*60,zt=Ot*24,hi=zt*7,Co=zt*30,yr=zt*365,jt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Bt)},(t,e)=>(e-t)/Bt,t=>t.getUTCSeconds());jt.range;const gi=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bt)},(t,e)=>{t.setTime(+t+e*vt)},(t,e)=>(e-t)/vt,t=>t.getMinutes());gi.range;const pi=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*vt)},(t,e)=>(e-t)/vt,t=>t.getUTCMinutes());pi.range;const mi=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bt-t.getMinutes()*vt)},(t,e)=>{t.setTime(+t+e*Ot)},(t,e)=>(e-t)/Ot,t=>t.getHours());mi.range;const vi=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Ot)},(t,e)=>(e-t)/Ot,t=>t.getUTCHours());vi.range;const Ke=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*vt)/zt,t=>t.getDate()-1);Ke.range;const rr=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/zt,t=>t.getUTCDate()-1);rr.range;const as=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/zt,t=>Math.floor(t/zt));as.range;function ie(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*vt)/hi)}const ir=ie(0),Xn=ie(1),vh=ie(2),yh=ie(3),ye=ie(4),xh=ie(5),_h=ie(6);ir.range;Xn.range;vh.range;yh.range;ye.range;xh.range;_h.range;function oe(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/hi)}const or=oe(0),Gn=oe(1),wh=oe(2),bh=oe(3),xe=oe(4),kh=oe(5),Ch=oe(6);or.range;Gn.range;wh.range;bh.range;xe.range;kh.range;Ch.range;const yi=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());yi.range;const xi=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());xi.range;const It=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());It.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});It.range;const Lt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Lt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});Lt.range;function ss(t,e,n,r,i,o){const a=[[jt,1,Bt],[jt,5,5*Bt],[jt,15,15*Bt],[jt,30,30*Bt],[o,1,vt],[o,5,5*vt],[o,15,15*vt],[o,30,30*vt],[i,1,Ot],[i,3,3*Ot],[i,6,6*Ot],[i,12,12*Ot],[r,1,zt],[r,2,2*zt],[n,1,hi],[e,1,Co],[e,3,3*Co],[t,1,yr]];function s(u,f,d){const h=f<u;h&&([u,f]=[f,u]);const g=d&&typeof d.range=="function"?d:c(u,f,d),m=g?g.range(u,+f+1):[];return h?m.reverse():m}function c(u,f,d){const h=Math.abs(f-u)/d,g=Gr(([,,_])=>_).right(a,h);if(g===a.length)return t.every(Cr(u/yr,f/yr,d));if(g===0)return Yn.every(Math.max(Cr(u,f,d),1));const[m,p]=a[h/a[g-1][2]<a[g][2]/h?g-1:g];return m.every(p)}return[s,c]}const[Sh,Th]=ss(Lt,xi,or,as,vi,pi),[Mh,Ah]=ss(It,yi,ir,Ke,mi,gi);function xr(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function _r(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Se(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Dh(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,c=t.shortMonths,u=Te(i),f=Me(i),d=Te(o),h=Me(o),g=Te(a),m=Me(a),p=Te(s),_=Me(s),k=Te(c),x=Me(c),C={a:I,A:W,b:j,B:Q,c:null,d:Eo,e:Eo,f:Kh,g:cg,G:ug,H:jh,I:Zh,j:Qh,L:cs,m:Jh,M:tg,p:yt,q:J,Q:Ro,s:Bo,S:eg,u:ng,U:rg,V:ig,w:og,W:ag,x:null,X:null,y:sg,Y:lg,Z:fg,"%":$o},w={a:ot,A:V,b:L,B:pt,c:null,d:No,e:No,f:pg,g:Sg,G:Mg,H:dg,I:hg,j:gg,L:us,m:mg,M:vg,p:ae,q:Is,Q:Ro,s:Bo,S:yg,u:xg,U:_g,V:wg,w:bg,W:kg,x:null,X:null,y:Cg,Y:Tg,Z:Ag,"%":$o},b={a:N,A:O,b:A,B:X,c:B,d:Ao,e:Ao,f:Yh,g:Mo,G:To,H:Do,I:Do,j:Ph,L:Hh,m:Lh,M:Uh,p:E,q:Ih,Q:Gh,s:qh,S:Wh,u:Bh,U:Oh,V:Vh,w:Rh,W:Fh,x:T,X:R,y:Mo,Y:To,Z:zh,"%":Xh};C.x=v(n,C),C.X=v(r,C),C.c=v(e,C),w.x=v(n,w),w.X=v(r,w),w.c=v(e,w);function v(D,F){return function(P){var S=[],at=-1,G=0,ut=D.length,ft,Gt,Si;for(P instanceof Date||(P=new Date(+P));++at<ut;)D.charCodeAt(at)===37&&(S.push(D.slice(G,at)),(Gt=So[ft=D.charAt(++at)])!=null?ft=D.charAt(++at):Gt=ft==="e"?" ":"0",(Si=F[ft])&&(ft=Si(P,Gt)),S.push(ft),G=at+1);return S.push(D.slice(G,at)),S.join("")}}function y(D,F){return function(P){var S=Se(1900,void 0,1),at=$(S,D,P+="",0),G,ut;if(at!=P.length)return null;if("Q"in S)return new Date(S.Q);if("s"in S)return new Date(S.s*1e3+("L"in S?S.L:0));if(F&&!("Z"in S)&&(S.Z=0),"p"in S&&(S.H=S.H%12+S.p*12),S.m===void 0&&(S.m="q"in S?S.q:0),"V"in S){if(S.V<1||S.V>53)return null;"w"in S||(S.w=1),"Z"in S?(G=_r(Se(S.y,0,1)),ut=G.getUTCDay(),G=ut>4||ut===0?Gn.ceil(G):Gn(G),G=rr.offset(G,(S.V-1)*7),S.y=G.getUTCFullYear(),S.m=G.getUTCMonth(),S.d=G.getUTCDate()+(S.w+6)%7):(G=xr(Se(S.y,0,1)),ut=G.getDay(),G=ut>4||ut===0?Xn.ceil(G):Xn(G),G=Ke.offset(G,(S.V-1)*7),S.y=G.getFullYear(),S.m=G.getMonth(),S.d=G.getDate()+(S.w+6)%7)}else("W"in S||"U"in S)&&("w"in S||(S.w="u"in S?S.u%7:"W"in S?1:0),ut="Z"in S?_r(Se(S.y,0,1)).getUTCDay():xr(Se(S.y,0,1)).getDay(),S.m=0,S.d="W"in S?(S.w+6)%7+S.W*7-(ut+5)%7:S.w+S.U*7-(ut+6)%7);return"Z"in S?(S.H+=S.Z/100|0,S.M+=S.Z%100,_r(S)):xr(S)}}function $(D,F,P,S){for(var at=0,G=F.length,ut=P.length,ft,Gt;at<G;){if(S>=ut)return-1;if(ft=F.charCodeAt(at++),ft===37){if(ft=F.charAt(at++),Gt=b[ft in So?F.charAt(at++):ft],!Gt||(S=Gt(D,P,S))<0)return-1}else if(ft!=P.charCodeAt(S++))return-1}return S}function E(D,F,P){var S=u.exec(F.slice(P));return S?(D.p=f.get(S[0].toLowerCase()),P+S[0].length):-1}function N(D,F,P){var S=g.exec(F.slice(P));return S?(D.w=m.get(S[0].toLowerCase()),P+S[0].length):-1}function O(D,F,P){var S=d.exec(F.slice(P));return S?(D.w=h.get(S[0].toLowerCase()),P+S[0].length):-1}function A(D,F,P){var S=k.exec(F.slice(P));return S?(D.m=x.get(S[0].toLowerCase()),P+S[0].length):-1}function X(D,F,P){var S=p.exec(F.slice(P));return S?(D.m=_.get(S[0].toLowerCase()),P+S[0].length):-1}function B(D,F,P){return $(D,e,F,P)}function T(D,F,P){return $(D,n,F,P)}function R(D,F,P){return $(D,r,F,P)}function I(D){return a[D.getDay()]}function W(D){return o[D.getDay()]}function j(D){return c[D.getMonth()]}function Q(D){return s[D.getMonth()]}function yt(D){return i[+(D.getHours()>=12)]}function J(D){return 1+~~(D.getMonth()/3)}function ot(D){return a[D.getUTCDay()]}function V(D){return o[D.getUTCDay()]}function L(D){return c[D.getUTCMonth()]}function pt(D){return s[D.getUTCMonth()]}function ae(D){return i[+(D.getUTCHours()>=12)]}function Is(D){return 1+~~(D.getUTCMonth()/3)}return{format:function(D){var F=v(D+="",C);return F.toString=function(){return D},F},parse:function(D){var F=y(D+="",!1);return F.toString=function(){return D},F},utcFormat:function(D){var F=v(D+="",w);return F.toString=function(){return D},F},utcParse:function(D){var F=y(D+="",!0);return F.toString=function(){return D},F}}}var So={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,Eh=/^%/,Nh=/[\\^$*+?|[\]().{}]/g;function U(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function $h(t){return t.replace(Nh,"\\$&")}function Te(t){return new RegExp("^(?:"+t.map($h).join("|")+")","i")}function Me(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Rh(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Bh(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Oh(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Vh(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Fh(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function To(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Mo(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function zh(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ih(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Lh(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ao(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Ph(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Do(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Uh(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Wh(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Hh(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Yh(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Xh(t,e,n){var r=Eh.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Gh(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function qh(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Eo(t,e){return U(t.getDate(),e,2)}function jh(t,e){return U(t.getHours(),e,2)}function Zh(t,e){return U(t.getHours()%12||12,e,2)}function Qh(t,e){return U(1+Ke.count(It(t),t),e,3)}function cs(t,e){return U(t.getMilliseconds(),e,3)}function Kh(t,e){return cs(t,e)+"000"}function Jh(t,e){return U(t.getMonth()+1,e,2)}function tg(t,e){return U(t.getMinutes(),e,2)}function eg(t,e){return U(t.getSeconds(),e,2)}function ng(t){var e=t.getDay();return e===0?7:e}function rg(t,e){return U(ir.count(It(t)-1,t),e,2)}function ls(t){var e=t.getDay();return e>=4||e===0?ye(t):ye.ceil(t)}function ig(t,e){return t=ls(t),U(ye.count(It(t),t)+(It(t).getDay()===4),e,2)}function og(t){return t.getDay()}function ag(t,e){return U(Xn.count(It(t)-1,t),e,2)}function sg(t,e){return U(t.getFullYear()%100,e,2)}function cg(t,e){return t=ls(t),U(t.getFullYear()%100,e,2)}function lg(t,e){return U(t.getFullYear()%1e4,e,4)}function ug(t,e){var n=t.getDay();return t=n>=4||n===0?ye(t):ye.ceil(t),U(t.getFullYear()%1e4,e,4)}function fg(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+U(e/60|0,"0",2)+U(e%60,"0",2)}function No(t,e){return U(t.getUTCDate(),e,2)}function dg(t,e){return U(t.getUTCHours(),e,2)}function hg(t,e){return U(t.getUTCHours()%12||12,e,2)}function gg(t,e){return U(1+rr.count(Lt(t),t),e,3)}function us(t,e){return U(t.getUTCMilliseconds(),e,3)}function pg(t,e){return us(t,e)+"000"}function mg(t,e){return U(t.getUTCMonth()+1,e,2)}function vg(t,e){return U(t.getUTCMinutes(),e,2)}function yg(t,e){return U(t.getUTCSeconds(),e,2)}function xg(t){var e=t.getUTCDay();return e===0?7:e}function _g(t,e){return U(or.count(Lt(t)-1,t),e,2)}function fs(t){var e=t.getUTCDay();return e>=4||e===0?xe(t):xe.ceil(t)}function wg(t,e){return t=fs(t),U(xe.count(Lt(t),t)+(Lt(t).getUTCDay()===4),e,2)}function bg(t){return t.getUTCDay()}function kg(t,e){return U(Gn.count(Lt(t)-1,t),e,2)}function Cg(t,e){return U(t.getUTCFullYear()%100,e,2)}function Sg(t,e){return t=fs(t),U(t.getUTCFullYear()%100,e,2)}function Tg(t,e){return U(t.getUTCFullYear()%1e4,e,4)}function Mg(t,e){var n=t.getUTCDay();return t=n>=4||n===0?xe(t):xe.ceil(t),U(t.getUTCFullYear()%1e4,e,4)}function Ag(){return"+0000"}function $o(){return"%"}function Ro(t){return+t}function Bo(t){return Math.floor(+t/1e3)}var se,ds,hs;Dg({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Dg(t){return se=Dh(t),ds=se.format,se.parse,hs=se.utcFormat,se.utcParse,se}function Eg(t){return new Date(t)}function Ng(t){return t instanceof Date?+t:+new Date(+t)}function _i(t,e,n,r,i,o,a,s,c,u){var f=Za(),d=f.invert,h=f.domain,g=u(".%L"),m=u(":%S"),p=u("%I:%M"),_=u("%I %p"),k=u("%a %d"),x=u("%b %d"),C=u("%B"),w=u("%Y");function b(v){return(c(v)<v?g:s(v)<v?m:a(v)<v?p:o(v)<v?_:r(v)<v?i(v)<v?k:x:n(v)<v?C:w)(v)}return f.invert=function(v){return new Date(d(v))},f.domain=function(v){return arguments.length?h(Array.from(v,Ng)):h().map(Eg)},f.ticks=function(v){var y=h();return t(y[0],y[y.length-1],v??10)},f.tickFormat=function(v,y){return y==null?b:u(y)},f.nice=function(v){var y=h();return(!v||typeof v.range!="function")&&(v=e(y[0],y[y.length-1],v??10)),v?h(ts(y,v)):f},f.copy=function(){return Qe(f,_i(t,e,n,r,i,o,a,s,c,u))},f}function $g(){return kt.apply(_i(Mh,Ah,It,yi,ir,Ke,mi,gi,jt,ds).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Rg(){return kt.apply(_i(Sh,Th,Lt,xi,or,rr,vi,pi,jt,hs).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Bg(){var t=0,e=1,n,r,i,o,a=ct,s=!1,c;function u(d){return d==null||isNaN(d=+d)?c:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}u.domain=function(d){return arguments.length?([t,e]=d,n=o(t=+t),r=o(e=+e),i=n===r?0:1/(r-n),u):[t,e]},u.clamp=function(d){return arguments.length?(s=!!d,u):s},u.interpolator=function(d){return arguments.length?(a=d,u):a};function f(d){return function(h){var g,m;return arguments.length?([g,m]=h,a=d(g,m),u):[a(0),a(1)]}}return u.range=f(we),u.rangeRound=f(ai),u.unknown=function(d){return arguments.length?(c=d,u):c},function(d){return o=d,n=d(t),r=d(e),i=n===r?0:1/(r-n),u}}function gs(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function ps(){var t=re(Bg()(ct));return t.copy=function(){return gs(t,ps())},qa.apply(t,arguments)}function Og(){var t=0,e=.5,n=1,r=1,i,o,a,s,c,u=ct,f,d=!1,h;function g(p){return isNaN(p=+p)?h:(p=.5+((p=+f(p))-o)*(r*p<r*o?s:c),u(d?Math.max(0,Math.min(1,p)):p))}g.domain=function(p){return arguments.length?([t,e,n]=p,i=f(t=+t),o=f(e=+e),a=f(n=+n),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,g):[t,e,n]},g.clamp=function(p){return arguments.length?(d=!!p,g):d},g.interpolator=function(p){return arguments.length?(u=p,g):u};function m(p){return function(_){var k,x,C;return arguments.length?([k,x,C]=_,u=If(p,[k,x,C]),g):[u(0),u(.5),u(1)]}}return g.range=m(we),g.rangeRound=m(ai),g.unknown=function(p){return arguments.length?(h=p,g):h},function(p){return f=p,i=p(t),o=p(e),a=p(n),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,g}}function ms(){var t=re(Og()(ct));return t.copy=function(){return gs(t,ms())},qa.apply(t,arguments)}const Oo={scaleLinear:Ka,scalePow:di,scaleSqrt:mh,scaleLog:es,scaleSymlog:ns,scaleIdentity:Ja,scaleTime:$g,scaleUtc:Rg,scaleSequential:ps,scaleDiverging:ms,scaleQuantize:is,scaleQuantile:rs,scaleThreshold:os,scaleOrdinal:li,scaleBand:er,scalePoint:Wd};var Z;(function(t){t.X="x",t.Y="y"})(Z||(Z={}));var Ht;(function(t){t.West="west",t.East="east",t.North="north",t.South="south"})(Ht||(Ht={}));const Vg=Object.assign(Object.assign({},xa),{components:[],tooltip:void 0,crosshair:void 0,annotations:void 0,xAxis:void 0,yAxis:void 0,autoMargin:!0,xScale:void 0,xDomain:void 0,xDomainMinConstraint:void 0,xDomainMaxConstraint:void 0,xRange:void 0,yScale:void 0,yDomain:void 0,yDomainMinConstraint:void 0,yDomainMaxConstraint:void 0,yRange:void 0,yDirection:Ht.North,preventEmptyDomain:null,scaleByDomain:!1,clipPathExtend:2});class Fg extends ze{constructor(e,n,r){var i,o;super(e),this._defaultConfig=Vg,this.datamodel=new ci,this.config=this._defaultConfig,this._clipPathId=Ea(),this._axisMargin={top:0,bottom:0,left:0,right:0},this._firstRender=!0,this._clipPath=this.svg.append("clipPath").attr("id",this._clipPathId),this._clipPath.append("rect");const a="saturate",s=window.location.href.replace(window.location.hash,"");this.svg.attr("class",q`
|
|
53
|
-
--highlight-filter-id: url(${s}#${a}); // defining a css variable
|
|
54
|
-
`),this._svgDefs.append("filter").attr("id",a).attr("filterUnits","objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'),n&&this.updateContainer(n,!0),r&&this.setData(r,!0),(this.config.xAxis||this.config.yAxis||!((i=this.components)===null||i===void 0)&&i.some(c=>c.datamodel.data))&&this.render(),(o=document.fonts)===null||o===void 0||o.ready.then(()=>{this._firstRender||this._renderAxes(0)})}get components(){return this.config.components}get width(){const e=this._getMargin();return Rt(this.containerWidth-e.left-e.right,0,Number.POSITIVE_INFINITY)}get height(){const e=this._getMargin();return Rt(this.containerHeight-e.top-e.bottom,0,Number.POSITIVE_INFINITY)}setData(e,n){var r,i,o,a,s;const{components:c,config:u}=this;if(!e)return;this.datamodel.data=e,c.forEach(d=>{d.setData(e)}),(r=u.crosshair)===null||r===void 0||r.setData(e),(i=u.xAxis)===null||i===void 0||i.setData(e),(o=u.yAxis)===null||o===void 0||o.setData(e),!te(this.datamodel.data,e)&&((a=u.tooltip)===null||a===void 0||a.hide(),(s=u.crosshair)===null||s===void 0||s.hide()),n||this.render()}updateContainer(e,n){super.updateContainer(e),this._removeAllChildren(),this.setData(this.datamodel.data,!0),e.xAxis&&(this.config.xAxis.config.type=z.X,this.element.appendChild(e.xAxis.element)),e.yAxis&&(this.config.yAxis.config.type=z.Y,this.element.appendChild(e.yAxis.element));for(const a of this.components)this.element.appendChild(a.element);const r=e.tooltip;r&&(r.hasContainer()||r.setContainer(this._container),r.setComponents(this.components));const i=e.crosshair;i&&(i.setContainer(this.svg),i.tooltip=r,this.element.appendChild(i.element));const o=e.annotations;o&&this.element.appendChild(o.element),this.element.appendChild(this._clipPath.node()),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),n||this.render()}updateComponents(e,n){const{config:r}=this;this.components.forEach((i,o)=>{e[o]&&i.setConfig(e[o])}),this._updateScales(...this.components,r.xAxis,r.yAxis,r.crosshair),n||this.render()}update(e,n,r){r&&(this.datamodel.data=r),e&&this.updateContainer(e,!0),n&&this.updateComponents(n,!0),this.render()}_preRender(){const{config:e}=this;super._preRender(),e.autoMargin&&this._setAutoMargin();const n=be([...this.components,e.xAxis,e.yAxis,e.crosshair,e.annotations]),r=this._getMargin();for(const i of n)i.setSize(this.width,this.height,this.containerWidth,this.containerHeight),i.setContainerMargin(r);this._updateScales(...this.components,e.xAxis,e.yAxis,e.crosshair)}_render(e){var n,r,i,o,a,s;const{config:c}=this;super._render();const u=this._getMargin();for(const h of this.components)h.g.attr("transform",`translate(${u.left},${u.top})`).style("clip-path",h.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",h.clippable?`url(#${this._clipPathId})`:null),h.render(e);this._renderAxes(this._firstRender?0:e);const f=c.clipPathExtend;this._clipPath.select("rect").attr("x",-f).attr("y",-f).attr("width",this.width+2*f).attr("height",this.height+2*f),(n=c.tooltip)===null||n===void 0||n.update();const d=c.crosshair;if(d){const h=this.components.filter(_=>!_.stacked).map(_=>_.config.y),g=this.components.filter(_=>_.stacked).map(_=>_.config.y),m=(r=this.components.find(_=>_.config.baseline))===null||r===void 0?void 0:r.config,p=m?.baseline;d.accessors={x:(i=this.components[0])===null||i===void 0?void 0:i.config.x,y:Tr(h),yStacked:Tr(g),baseline:p},d.g.attr("transform",`translate(${u.left},${u.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),d.render()}(o=c.annotations)===null||o===void 0||o.g.attr("transform",`translate(${u.left},${u.top})`),(a=c.annotations)===null||a===void 0||a.render(),this._firstRender=!1,(s=c.onRenderComplete)===null||s===void 0||s.call(c,this.svg.node(),u,this._getBleed(this.components),this.containerWidth,this.containerHeight,this.width,this.height)}_updateScales(...e){const n=be(e||this.components);this._setScales(...n),this._updateScalesDomain(...n),this._updateScalesRange(...n)}_setScales(...e){const{config:n}=this;e&&(n.xScale&&e.forEach(r=>r.setScale(Z.X,n.xScale)),n.yScale&&e.forEach(r=>r.setScale(Z.Y,n.yScale)))}_updateScalesDomain(...e){const{config:n}=this;if(!e)return;const r=e.filter(i=>!i.config.excludeFromDomainCalculation);Object.values(Z).forEach(i=>{var o,a,s,c,u,f,d,h;const[g,m]=Sl(Bl(r.map(b=>b.getDataExtent(i,n.scaleByDomain)))),p=i===Z.Y?n.yDomain:n.xDomain,_=i===Z.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,k=i===Z.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,x=(a=(o=p?.[0])!==null&&o!==void 0?o:g)!==null&&a!==void 0?a:0,C=(c=(s=p?.[1])!==null&&s!==void 0?s:m)!==null&&c!==void 0?c:1,w=[Rt(x,(u=_?.[0])!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY,(f=_?.[1])!==null&&f!==void 0?f:Number.POSITIVE_INFINITY),Rt(C,(d=k?.[0])!==null&&d!==void 0?d:Number.NEGATIVE_INFINITY,(h=k?.[1])!==null&&h!==void 0?h:Number.POSITIVE_INFINITY)];if(w[0]===w[1]){const b=r.some(v=>{var y;return((y=v.datamodel.data)===null||y===void 0?void 0:y.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!b||i===Z.Y))&&(w[1]=w[0]+1)}e.forEach(b=>b.setScaleDomain(i,w))})}_updateScalesRange(...e){var n,r,i,o,a,s;const{config:c}=this;if(!e)return;const u=c.yDirection===Ht.South,f=[(n=c.padding.left)!==null&&n!==void 0?n:0,this.width-((r=c.padding.right)!==null&&r!==void 0?r:0)],d=[this.height-((i=c.padding.bottom)!==null&&i!==void 0?i:0),(o=c.padding.top)!==null&&o!==void 0?o:0];u&&d.reverse();for(const g of e)g.setSize(this.width,this.height,this.containerWidth,this.containerHeight),g.setScaleRange(Z.X,(a=c.xRange)!==null&&a!==void 0?a:f),g.setScaleRange(Z.Y,(s=c.yRange)!==null&&s!==void 0?s:d);const h=this._getBleed(e);for(const g of e)g.setScaleRange(Z.X,[f[0]+h.left,f[1]-h.right]),g.setScaleRange(Z.Y,u?[d[0]+h.top,d[1]-h.bottom]:[d[0]-h.bottom,d[1]+h.top])}_renderAxes(e){const{config:{xAxis:n,yAxis:r}}=this,i=this._getMargin();be([n,r]).forEach(a=>{const s=a.getOffset(i);a.g.attr("transform",`translate(${s.left},${s.top})`),a.render(e)})}_setAutoMargin(){const{config:{xAxis:e,yAxis:n}}=this,r=be([...this.components,e,n]);this._setScales(...r),this._updateScalesDomain(...r);const i=this._firstRender?2:1;for(let o=0;o<i;o+=1){const a={top:0,bottom:0,left:0,right:0};this._updateScalesRange(...r),be([e,n]).forEach(c=>{c.preRender();const u=c.getRequiredMargin();a.top<u.top&&(a.top=u.top),a.bottom<u.bottom&&(a.bottom=u.bottom),a.left<u.left&&(a.left=u.left),a.right<u.right&&(a.right=u.right)}),this._axisMargin=a}}_getMargin(){const{config:{margin:e}}=this;return{top:e.top+this._axisMargin.top,bottom:e.bottom+this._axisMargin.bottom,left:e.left+this._axisMargin.left,right:e.right+this._axisMargin.right}}_getBleed(e){return e.map(n=>n.bleed).reduce((n,r)=>{for(const i of Object.keys(n)){const o=i;n[o]<r[o]&&(n[o]=r[o])}return n},{top:0,bottom:0,left:0,right:0})}destroy(){const{components:e,config:{tooltip:n,crosshair:r,annotations:i,xAxis:o,yAxis:a}}=this;super.destroy();for(const s of e)s?.destroy();n?.destroy(),r?.destroy(),i?.destroy(),o?.destroy(),a?.destroy()}}const vs={duration:600,events:{},attributes:{}};class zg{constructor(e=$e.SVG){var n,r;this.type=$e.SVG,this.datamodel=new ci,this.sizing=he.Fit,this.events={},this._defaultConfig=vs,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._containerMargin={top:0,bottom:0,left:0,right:0},this._setUpComponentEventsThrottled=$n(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=$n(this._setCustomAttributes,500),e===$e.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=Ea(),this.g=Vt(this.element);const i=(r=(n=this.constructor)===null||n===void 0?void 0:n.selectors)===null||r===void 0?void 0:r.root;i&&this.g.attr("class",i)}setContainerMargin(e){this._containerMargin=e}setConfig(e){this.prevConfig=this.config,this.config=ge(this._defaultConfig,e)}setData(e){this.datamodel.data=e}setSize(e,n,r,i){isFinite(e)&&(this._width=e),isFinite(n)&&(this._height=n),isFinite(r)&&(this._containerWidth=r),isFinite(i)&&(this._containerHeight=i)}render(e=this.config.duration){this._render(e);const n="animating";e&&(this.g.attr(n,""),this.g.transition(n).duration(e).on("end interrupt",()=>{this.g.attr(n,null)})),this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(e=this.config.duration){}_setCustomAttributes(){const e=this.config.attributes;Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(r=>{this.g.selectAll(`.${n}`).attr(r,e[n][r])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_bindEvents(e=this.events,n=""){Object.keys(e).forEach(r=>{Object.keys(e[r]).forEach(i=>{const o=this.g.selectAll(`.${r}`);o.on(i+n,(a,s)=>{const c=o.nodes(),u=c.indexOf(a.currentTarget),f=e[r][i];return f?.(s,a,u,c)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class Ig extends ci{constructor(e){super(e)}get data(){var e;return(e=this._data)!==null&&e!==void 0?e:[]}set data(e){Array.isArray(e)&&(this._data=e)}}const ar=Object.assign(Object.assign({},vs),{x:void 0,y:void 0,id:(t,e)=>{var n;return(n=t.id)!==null&&n!==void 0?n:`${e}`},color:t=>t.color,xScale:void 0,yScale:void 0,excludeFromDomainCalculation:!1});class wi extends zg{constructor(){super(...arguments),this.datamodel=new Ig,this.clippable=!0,this.stacked=!1,this._defaultConfig=ar,this._xScale=Oo.scaleLinear(),this._yScale=Oo.scaleLinear()}get xScale(){return this.config.xScale||this._xScale}get yScale(){return this.config.yScale||this._yScale}setConfig(e){var n,r;!((n=this.config)===null||n===void 0)&&n.xScale&&(e.xScale=this.config.xScale),!((r=this.config)===null||r===void 0)&&r.yScale&&(e.yScale=this.config.yScale),super.setConfig(e)}setScaleDomain(e,n){var r,i;e===Z.X&&((r=this._xScale)===null||r===void 0||r.domain(n)),e===Z.Y&&((i=this._yScale)===null||i===void 0||i.domain(n))}setScaleRange(e,n){var r,i;e===Z.X&&((r=this._xScale)===null||r===void 0||r.range(n)),e===Z.Y&&((i=this._yScale)===null||i===void 0||i.range(n))}setScale(e,n){n&&e===Z.X&&(this._xScale=n),n&&e===Z.Y&&(this._yScale=n)}getDataExtent(e,n){const{config:r,datamodel:i}=this;switch(e){case Z.X:return this.getXDataExtent();case Z.Y:return this.getYDataExtent(n);default:return fn(i.data,r[e])}}getXDataExtent(){const{config:e,datamodel:n}=this;return fn(n.data,e.x)}getYDataExtent(e){const{config:n,datamodel:r}=this,i=this.xScale.domain(),o=e?Ll(r.data,i,n.x,!0):r.data,a=Ge(n.y)?n.y:[n.y];return fn(o,...a)}}var M;(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t.Auto="auto"})(M||(M={}));var Vo;(function(t){t.Absolute="absolute",t.Fixed="fixed"})(Vo||(Vo={}));var Fo;(function(t){t.Inside="inside",t.Outside="outside",t.Center="center"})(Fo||(Fo={}));var qn;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(qn||(qn={}));const Lg={components:[],container:void 0,followCursor:!0,allowHover:!1,horizontalPlacement:M.Auto,horizontalShift:0,verticalPlacement:M.Top,verticalShift:0,attributes:{},triggers:{},className:void 0,showDelay:void 0,hideDelay:void 0},sr=q`
|
|
55
|
-
label: tooltip;
|
|
56
|
-
display: inline-block;
|
|
57
|
-
left: 0;
|
|
58
|
-
bottom: 0;
|
|
59
|
-
min-width: max-content;
|
|
60
|
-
position: absolute;
|
|
61
|
-
opacity: 0;
|
|
62
|
-
transition: opacity;
|
|
63
|
-
transition-duration: var(--vis-tooltip-transition-duration);
|
|
64
|
-
z-index: 999999;
|
|
65
|
-
padding: var(--vis-tooltip-padding);
|
|
66
|
-
color: var(--vis-tooltip-text-color);
|
|
67
|
-
border-radius: var(--vis-tooltip-border-radius);
|
|
68
|
-
box-shadow: var(--vis-tooltip-box-shadow);
|
|
69
|
-
border: solid 1px var(--vis-tooltip-border-color);
|
|
70
|
-
background-color: var(--vis-tooltip-background-color);
|
|
71
|
-
backdrop-filter: var(--vis-tooltip-backdrop-filter);
|
|
72
|
-
`,Pg=sr,Ug=je`
|
|
73
|
-
:root {
|
|
74
|
-
--vis-tooltip-background-color: rgba(255, 255, 255, 0.95);
|
|
75
|
-
--vis-tooltip-border-color: #e5e9f7;
|
|
76
|
-
--vis-tooltip-text-color: #000;
|
|
77
|
-
--vis-tooltip-shadow-color: rgba(172, 179, 184, 0.35);
|
|
78
|
-
--vis-tooltip-backdrop-filter: none;
|
|
79
|
-
--vis-tooltip-padding: 10px 15px;
|
|
80
|
-
--vis-tooltip-border-radius: 5px;
|
|
81
|
-
--vis-tooltip-transition-duration: 300ms;
|
|
82
|
-
--vis-tooltip-box-shadow: none;
|
|
83
|
-
|
|
84
|
-
--vis-dark-tooltip-background-color: rgba(30,30,30, 0.95);
|
|
85
|
-
--vis-dark-tooltip-text-color: #e5e9f7;
|
|
86
|
-
--vis-dark-tooltip-border-color: var(--vis-color-grey);
|
|
87
|
-
--vis-dark-tooltip-shadow-color: rgba(0,0,0, 0.95);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
body.theme-dark ${`.${sr}`} {
|
|
91
|
-
--vis-tooltip-background-color: var(--vis-dark-tooltip-background-color);
|
|
92
|
-
--vis-tooltip-text-color: var(--vis-dark-tooltip-text-color);
|
|
93
|
-
--vis-tooltip-border-color: var(--vis-dark-tooltip-border-color);
|
|
94
|
-
--vis-tooltip-shadow-color: var(--vis-dark-tooltip-shadow-color);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
body.theme-dark {
|
|
98
|
-
--vis-tooltip-background-color: rgba(30,30,30, 0.95);
|
|
99
|
-
--vis-tooltip-text-color: #e5e9f7;
|
|
100
|
-
--vis-tooltip-border-color: var(--vis-color-grey);
|
|
101
|
-
--vis-tooltip-shadow-color: rgba(0,0,0, 0.95);
|
|
102
|
-
}
|
|
103
|
-
`,ys=q`
|
|
104
|
-
bottom: unset;
|
|
105
|
-
position: fixed;
|
|
106
|
-
`,xn=q`
|
|
107
|
-
opacity: 1;
|
|
108
|
-
`,_n=q`
|
|
109
|
-
display: none;
|
|
110
|
-
`,xs=q`
|
|
111
|
-
label: non-interactive;
|
|
112
|
-
pointer-events: none;
|
|
113
|
-
user-select: none;
|
|
114
|
-
`,Wg=Object.freeze(Object.defineProperty({__proto__:null,hidden:_n,nonInteractive:xs,positionFixed:ys,root:sr,show:xn,tooltip:Pg,variables:Ug},Symbol.toStringTag,{value:"Module"}));class _s{constructor(e={}){this._defaultConfig=Lg,this.config=this._defaultConfig,this._setUpEventsThrottled=$n(this._setUpEvents,500),this._setContainerPositionThrottled=$n(this._setContainerPosition,500),this._isShown=!1,this.element=document.createElement("div"),this.div=Vt(this.element).attr("class",sr).classed(xn,!1).classed(_n,!0),this.setConfig(e),this.components=this.config.components,this._mutationObserver=new MutationObserver(()=>{this._isShown&&(!this.config.followCursor&&this._hoveredElement?this.placeByElement(this._hoveredElement):this._position&&this.place({x:this._position[0],y:this._position[1]}))}),this._mutationObserver.observe(this.div.node(),{childList:!0,subtree:!0})}setConfig(e){var n;this.prevConfig=this.config,this.config=ge(this._defaultConfig,e),this.prevConfig.horizontalPlacement!==this.config.horizontalPlacement&&this.overrideHorizontalPlacement(void 0),this.config.container&&this.config.container!==((n=this.prevConfig)===null||n===void 0?void 0:n.container)&&this.setContainer(this.config.container),this._setUpAttributes()}setContainer(e){var n;(n=this.element.parentNode)===null||n===void 0||n.removeChild(this.element),this._container=e,this._container.appendChild(this.element),this._setContainerPositionThrottled()}getContainer(){return this._container}hasContainer(){return!!this._container&&this._container.isConnected}setComponents(e){this.components=e}update(){this._container&&this._setUpEventsThrottled()}show(e,n){this.render(e),this.place(n)}_hide(){this.div.classed(xn,!1).on("transitionend",()=>{this.div.classed(_n,!this._isShown)}),this._isShown=!1}hide(){window.clearTimeout(this._showDelayTimeoutId),this.config.hideDelay?(window.clearTimeout(this._hideDelayTimeoutId),this._hideDelayTimeoutId=setTimeout(()=>this._hide(),this.config.hideDelay)):this._hide()}_display(){window.clearTimeout(this._hideDelayTimeoutId),this.div.classed(_n,!1).classed(xn,!0),this._isShown=!0}display(){this._isShown||(this.config.showDelay?(window.clearTimeout(this._showDelayTimeoutId),this._showDelayTimeoutId=setTimeout(()=>{this._display(),this.place({x:this._position[0],y:this._position[1]})},this.config.showDelay)):this._display())}place(e){if(this._position=[e.x,e.y],!this.hasContainer()){console.warn("Unovis | Tooltip: Container was not set or is not initialized yet");return}const{config:n}=this,r=this.element.offsetWidth,i=this.element.offsetHeight,o=this._overriddenHorizontalPlacement||(n.horizontalPlacement===M.Auto?M.Center:n.horizontalPlacement),a=n.verticalPlacement===M.Auto?e.y-i<0?M.Bottom:M.Top:n.verticalPlacement,s=5,c=o===M.Left?-r-s-n.horizontalShift:o===M.Center?-r/2:s+n.horizontalShift,u=a===M.Bottom?s+n.verticalShift:a===M.Center?-i/2:-s-n.verticalShift-i,[f,d]=this._constraintPosToContainer(e.x+c,e.y+u,r,i);this._applyPosition(f,d,i)}placeByElement(e){const{config:n}=this;this._hoveredElement=e;const r=5,i=this.element.offsetWidth,o=this.element.offsetHeight,a=this.isContainerBody(),s=a?window.innerWidth:this._container.scrollWidth,c=e.getBoundingClientRect(),u=a?[c.x,c.y]:An({clientX:c.x,clientY:c.y,pageX:c.x,pageY:c.y},this._container),f=this._overriddenHorizontalPlacement||(n.horizontalPlacement===M.Auto?u[0]-i<0?M.Right:u[0]+i>s?M.Left:M.Center:n.horizontalPlacement);let d=0;switch(f){case M.Left:d=-i-r-n.horizontalShift;break;case M.Right:d=c.width+r+n.horizontalShift;break;case M.Center:default:d=(-i+c.width)/2;break}const h=n.verticalPlacement===M.Auto?f!==M.Center?M.Center:u[1]-o<0?M.Bottom:M.Top:n.verticalPlacement;let g=-o;switch(h){case M.Center:g+=(o+c.height)/2;break;case M.Bottom:g+=o+c.height+r+n.verticalShift;break;case M.Top:default:g+=-r-n.verticalShift;break}const[m,p]=this._constraintPosToContainer(u[0]+d,u[1]+g,i,o);this._applyPosition(m,p,o)}isContainerBody(){return this._container===document.body}overrideHorizontalPlacement(e){this._overriddenHorizontalPlacement=e}render(e){var n;const{config:r,prevConfig:i}=this;e instanceof HTMLElement?this.div.select(":first-child").node()!==e&&this.div.html("").append(()=>e):e!==null&&this.div.html(e||""),this.div.classed((n=r.className)!==null&&n!==void 0?n:"",!!r.className).classed(xs,!r.allowHover),i?.className&&i.className!==r.className&&this.div.classed(i.className,!1),this.display()}_applyPosition(e,n,r){const i=this.isContainerBody(),o=i?window.innerHeight:this._container.scrollHeight;this.div.classed(ys,i).style("top",i?`${n}px`:"unset").style("bottom",i?"unset":`${o-n-r}px`).style("left",`${e}px`)}_constraintPosToContainer(e,n,r,i){const o=this.isContainerBody(),a=o?window.innerHeight:this._container.scrollHeight,s=o?window.innerWidth:this._container.scrollWidth,c=10,u=e>s-r-c,f=e<c,d=u?s-r-c:f?c:e,h=10,g=n>a-i-h,m=n<h,p=g?a-i-h:m?h:n;return[s<r?0:d,a<i?0:p]}_setContainerPosition(){var e;this._container!==document.body&&((e=getComputedStyle(this._container))===null||e===void 0?void 0:e.position)==="static"&&(this._container.style.position="relative")}_setUpEvents(){const{config:e}=this;this.components.forEach(n=>{const r=Vt(n.element);r.on("mousemove.tooltip",i=>{const{config:o}=this,a=i.composedPath&&i.composedPath()||i.path||[i.target];for(const s of Object.keys(o.triggers)){const c=o.triggers[s];if(!c)continue;const u=r.selectAll(`.${s}`).nodes();for(const f of a){if(f===r.node())break;if(f.classList.contains(s)){const d=u.indexOf(f),h=Vt(f).datum(),g=c(h,d,u),[m,p]=this.isContainerBody()?[i.clientX,i.clientY]:An(i,this._container);g===null?this.hide():(this.render(g),o.followCursor?this.place({x:m,y:p}):this.placeByElement(f)),i.stopPropagation();return}}}this._isShown&&this.hide()}).on("mouseleave.tooltip",i=>{i.stopPropagation(),this.hide()})}),e.allowHover?this.div.on("mouseenter.tooltip",this._display.bind(this)).on("mouseleave.tooltip",this.hide.bind(this)):this.div.on("mouseenter.tooltip",null).on("mouseleave.tooltip",null)}_setUpAttributes(){const e=this.config.attributes;e&&Object.keys(e).forEach(n=>{this.div.attr(n,e[n])})}destroy(){var e;this._mutationObserver.disconnect(),window.clearTimeout(this._hideDelayTimeoutId),window.clearTimeout(this._showDelayTimeoutId),(e=this.div)===null||e===void 0||e.remove()}}_s.selectors=Wg;function ce(t,e,n,r){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:Mr(t,e,n)||(Yt(n)?`var(${Pt(n)})`:null)}function Hg({x:t,y:e,w:n,h:r,tl:i=!1,tr:o=!1,bl:a=!1,br:s=!1,r:c=0}){let u;u=`M${t+c},${e}h${n-2*c}`;let f=o?c:0,d=o?0:c;return u+=`a${f},${f} 0 0 1 ${f},${f}`,u+=`h${d}v${d}`,u+=`v${r-2*c}`,f=s?c:0,d=s?0:c,u+=`a${f},${f} 0 0 1 ${-f},${f}`,u+=`v${d}h${-d}`,u+=`h${2*c-n}`,f=a?c:0,d=a?0:c,u+=`a${f},${f} 0 0 1 ${-f},${-f}`,u+=`h${-d}v${-d}`,u+=`v${2*c-r}`,f=i?c:0,d=i?0:c,u+=`a${f},${f} 0 0 1 ${f},${-f}`,u+=`v${-d}h${d}`,u+="z",u}const Yg=Object.assign(Object.assign({},ar),{color:void 0,groupMaxWidth:void 0,groupWidth:void 0,dataStep:void 0,groupPadding:.05,barPadding:0,roundedCorners:2,barMinHeight:2,cursor:null,orientation:qn.Vertical}),ws=q`
|
|
115
|
-
label: grouped-bar-component;
|
|
116
|
-
`,Xg=je`
|
|
117
|
-
:root {
|
|
118
|
-
--vis-grouped-bar-cursor: default;
|
|
119
|
-
--vis-grouped-bar-fill-color: var(--vis-color-main);
|
|
120
|
-
--vis-grouped-bar-stroke-color: none;
|
|
121
|
-
--vis-grouped-bar-stroke-width: 0px;
|
|
122
|
-
--vis-grouped-bar-hover-stroke-width: 1px;
|
|
123
|
-
--vis-grouped-bar-hover-stroke-color: none;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
/* Dark Theme */
|
|
127
|
-
--vis-dark-grouped-bar-stroke-color: none;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
body.theme-dark ${`.${ws}`} {
|
|
131
|
-
--vis-grouped-bar-stroke-color: var(--vis-dark-grouped-bar-stroke-color);
|
|
132
|
-
}
|
|
133
|
-
`,wn=q`
|
|
134
|
-
label: bar;
|
|
135
|
-
fill: var(--vis-grouped-bar-fill-color);
|
|
136
|
-
stroke: var(--vis-grouped-bar-stroke-color);
|
|
137
|
-
stroke-width: var(--vis-grouped-bar-stroke-width);
|
|
138
|
-
cursor: var(--vis-grouped-bar-cursor);
|
|
139
|
-
|
|
140
|
-
&:hover {
|
|
141
|
-
stroke-width: var(--vis-grouped-bar-hover-stroke-width);
|
|
142
|
-
stroke: var(--vis-grouped-bar-hover-stroke-color);
|
|
143
|
-
}
|
|
144
|
-
`,Pr=q`
|
|
145
|
-
label: barGroup;
|
|
146
|
-
`,bs=q`
|
|
147
|
-
label: barGroupExit;
|
|
148
|
-
`,Gg=Object.freeze(Object.defineProperty({__proto__:null,bar:wn,barGroup:Pr,barGroupExit:bs,globalStyles:Xg,root:ws},Symbol.toStringTag,{value:"Module"}));class ks extends wi{constructor(e){super(),this._defaultConfig=Yg,this.config=this._defaultConfig,this.getAccessors=()=>Ge(this.config.y)?this.config.y:[this.config.y],this.events={},this._barData=[],e&&this.setConfig(e)}get bleed(){if(this._barData=this._getVisibleData(),this._barData.length===0)return{top:0,bottom:0,left:0,right:0};const e=!this.isVertical()&&this.dataScale.range()[0]>this.dataScale.range()[1],n=this.dataScale.domain(),r=this._getGroupWidth()/2,i=this._barData.map((g,m)=>tt(g,this.config.x,m)),o=Be(i),a=Sr(i),s=this.dataScale(o),c=this.dataScale(a),u=this.dataScale.invert(s+(e?r:-r)),f=this.dataScale.invert(c+(e?-r:r)),d=u<=n[0]?this.dataScale(n[0])-this.dataScale(u):0,h=f>n[1]?this.dataScale(f)-this.dataScale(n[1]):0;return{top:this.isVertical()?0:e?-h:d,bottom:this.isVertical()?0:e?-d:h,left:this.isVertical()?d:0,right:this.isVertical()?h:0}}get dataScale(){return this.isVertical()?this.xScale:this.yScale}get valueScale(){return this.isVertical()?this.yScale:this.xScale}isVertical(){return this.config.orientation===qn.Vertical}_render(e){const{config:n}=this,r=Yt(e)?e:n.duration,i=this._getGroupWidth(),o=this.getAccessors(),a=[-i/2,i/2],s=er().domain(la(o.length)).range(a).paddingInner(n.barPadding).paddingOuter(n.barPadding),c=this.g.selectAll(`.${Pr}`).data(this._barData,(x,C)=>{var w;return`${(w=Mr(x,n.id,C))!==null&&w!==void 0?w:C}`}),u=(x,C)=>{const w=this.dataScale(tt(x,n.x,C)),b=this.isVertical()?w:0,v=this.isVertical()?0:w;return`translate(${b},${v})`},d=c.enter().append("g").attr("class",Pr).attr("transform",u).style("opacity",1).merge(c);mt(d,r).attr("transform",u).style("opacity",1);const h=c.exit().attr("class",bs);mt(h,r).style("opacity",0).remove(),mt(h.selectAll(`.${wn}`),r).attr("transform",(x,C,w)=>this.isVertical()?`translate(0,${this.yScale(0)}) scale(1,0)`:`translate(${this.xScale(0)},0) scale(0,1)`);const g=s.bandwidth(),m=d.selectAll(`.${wn}`).data(x=>o.map(()=>x)),p=this._getValueAxisDirection(),k=m.enter().append("path").attr("class",wn).attr("d",(x,C)=>{const w=s(C),b=this.valueScale(0),v=g;return this._getBarPath(w,b,v,0,!1,p)}).style("fill",(x,C)=>ce(x,n.color,C)).merge(m);mt(k,r).attr("d",(x,C)=>{const w=s(C),b=g,v=tt(x,o[C]),y=v<0;let $=y?this.valueScale(0):this.valueScale(v||0),E=Math.abs(this.valueScale(0)-this.valueScale(v))||0;if(E<n.barMinHeight){const N=p===Ht.North?-1:1;$=this.valueScale(0)+N*n.barMinHeight,E=n.barMinHeight}return this._getBarPath(w,$,b,E,y,p)}).style("fill",(x,C)=>ce(x,n.color,C)).style("cursor",(x,C)=>Mr(x,n.cursor,C)),mt(m.exit(),r).remove()}_getValueAxisDirection(){return this.valueScale.range()[0]>this.valueScale.range()[1]?Ht.North:Ht.South}_getVisibleData(){const{config:e,datamodel:{data:n}}=this,r=this._getGroupWidth(),i=n.length<2?0:r/2,o=this.dataScale,a=Math.abs(o.invert(i)-o.invert(0));return n?.filter((c,u)=>{const f=tt(c,e.x,u),d=o.domain(),h=+d[0],g=+d[1];return f>=h-a&&f<=g+a})}_getBarPath(e,n,r,i,o,a){const{config:s}=this,c=s.roundedCorners?Yt(s.roundedCorners)?+s.roundedCorners:r/2:0,u=Rt(c,0,Math.min(i,r)/2),f=a===Ht.North,d=this.isVertical()&&o!==f,h=this.isVertical()&&o===f,g=!this.isVertical()&&o,m=!this.isVertical()&&!o;return Hg({x:this.isVertical()?e:n+(f?0:-i),y:this.isVertical()?n+(f?0:-i):e,w:this.isVertical()?r:i,h:this.isVertical()?i:r,tl:d||g,tr:d||m,bl:h||g,br:h||m,r:u})}_getGroupWidth(){const{config:e,datamodel:{data:n}}=this;if(zl(n))return 0;if(e.groupWidth)return Be([e.groupWidth,e.groupMaxWidth]);const r=this.dataScale.bandwidth,i=this.dataScale.domain?this.dataScale.domain():[];let a=1+(r?i.length:i[1]-i[0])/e.dataStep||!r&&n.filter((u,f)=>{const d=tt(u,e.x,f);return d>=i[0]&&d<=i[1]}).length||n.length;!r&&a>=2&&(a+=1);const c=(a<2?1:1-e.groupPadding)*(this.isVertical()?this._width:this._height)/a;return Be([c,e.groupMaxWidth])}getValueScaleExtent(e){const{datamodel:n}=this,r=this.getAccessors(),i=e?this._getVisibleData():n.data,o=fa(i,...r),a=da(i,...r);return[o>0?0:o,a<0?0:a]}getDataScaleExtent(){const{config:e,datamodel:n}=this;return fn(n.data,e.x)}getYDataExtent(e){return this.isVertical()?this.getValueScaleExtent(e):this.getDataScaleExtent()}getXDataExtent(){return this.isVertical()?this.getDataScaleExtent():this.getValueScaleExtent(!1)}}ks.selectors=Gg;function qg(t){return t}var bn=1,kn=2,Ur=3,Ne=4,zo=1e-6;function jg(t){return"translate("+t+",0)"}function Zg(t){return"translate(0,"+t+")"}function Qg(t){return e=>+t(e)}function Kg(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Jg(){return!this.__axis}function cr(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===bn||t===Ne?-1:1,f=t===Ne||t===kn?"x":"y",d=t===bn||t===Ur?jg:Zg;function h(g){var m=r??(e.ticks?e.ticks.apply(e,n):e.domain()),p=i??(e.tickFormat?e.tickFormat.apply(e,n):qg),_=Math.max(o,0)+s,k=e.range(),x=+k[0]+c,C=+k[k.length-1]+c,w=(e.bandwidth?Kg:Qg)(e.copy(),c),b=g.selection?g.selection():g,v=b.selectAll(".domain").data([null]),y=b.selectAll(".tick").data(m,e).order(),$=y.exit(),E=y.enter().append("g").attr("class","tick"),N=y.select("line"),O=y.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),y=y.merge(E),N=N.merge(E.append("line").attr("stroke","currentColor").attr(f+"2",u*o)),O=O.merge(E.append("text").attr("fill","currentColor").attr(f,u*_).attr("dy",t===bn?"0em":t===Ur?"0.71em":"0.32em")),g!==b&&(v=v.transition(g),y=y.transition(g),N=N.transition(g),O=O.transition(g),$=$.transition(g).attr("opacity",zo).attr("transform",function(A){return isFinite(A=w(A))?d(A+c):this.getAttribute("transform")}),E.attr("opacity",zo).attr("transform",function(A){var X=this.parentNode.__axis;return d((X&&isFinite(X=X(A))?X:w(A))+c)})),$.remove(),v.attr("d",t===Ne||t===kn?a?"M"+u*a+","+x+"H"+c+"V"+C+"H"+u*a:"M"+c+","+x+"V"+C:a?"M"+x+","+u*a+"V"+c+"H"+C+"V"+u*a:"M"+x+","+c+"H"+C),y.attr("opacity",1).attr("transform",function(A){return d(w(A)+c)}),N.attr(f+"2",u*o),O.attr(f,u*_).text(p),b.filter(Jg).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===kn?"start":t===Ne?"end":"middle"),b.each(function(){this.__axis=w})}return h.scale=function(g){return arguments.length?(e=g,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(g){return arguments.length?(n=g==null?[]:Array.from(g),h):n.slice()},h.tickValues=function(g){return arguments.length?(r=g==null?null:Array.from(g),h):r&&r.slice()},h.tickFormat=function(g){return arguments.length?(i=g,h):i},h.tickSize=function(g){return arguments.length?(o=a=+g,h):o},h.tickSizeInner=function(g){return arguments.length?(o=+g,h):o},h.tickSizeOuter=function(g){return arguments.length?(a=+g,h):a},h.tickPadding=function(g){return arguments.length?(s=+g,h):s},h.offset=function(g){return arguments.length?(c=+g,h):c},h}function Io(t){return cr(bn,t)}function Lo(t){return cr(kn,t)}function Po(t){return cr(Ur,t)}function Uo(t){return cr(Ne,t)}var Xt;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(Xt||(Xt={}));var Jt;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(Jt||(Jt={}));var Nt;(function(t){t.Wrap="wrap",t.Trim="trim"})(Nt||(Nt={}));var wt;(function(t){t.Left="left",t.Center="center",t.Right="right"})(wt||(wt={}));function tp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Cn={exports:{}},ep=Cn.exports,Wo;function np(){return Wo||(Wo=1,(function(t){(function(e){if(typeof n!="function"){var n=function(m){return m};n.nonNative=!0}const r=n("plaintext"),i=n("html"),o=n("comment"),a=/<(\w*)>/g,s=/<\/?([^\s\/>]+)/;function c(m,p,_){m=m||"",p=p||[],_=_||"";let k=f(p,_);return d(m,k)}function u(m,p){m=m||[],p=p||"";let _=f(m,p);return function(x){return d(x||"",_)}}c.init_streaming_mode=u;function f(m,p){return m=h(m),{allowable_tags:m,tag_replacement:p,state:r,tag_buffer:"",depth:0,in_quote_char:""}}function d(m,p){if(typeof m!="string")throw new TypeError("'html' parameter must be a string");let _=p.allowable_tags,k=p.tag_replacement,x=p.state,C=p.tag_buffer,w=p.depth,b=p.in_quote_char,v="";for(let y=0,$=m.length;y<$;y++){let E=m[y];if(x===r)E==="<"?(x=i,C+=E):v+=E;else if(x===i)switch(E){case"<":if(b)break;w++;break;case">":if(b)break;if(w){w--;break}b="",x=r,C+=">",_.has(g(C))?v+=C:v+=k,C="";break;case'"':case"'":E===b?b="":b=b||E,C+=E;break;case"-":C==="<!-"&&(x=o),C+=E;break;case" ":case`
|
|
149
|
-
`:if(C==="<"){x=r,v+="< ",C="";break}C+=E;break;default:C+=E;break}else x===o&&(E===">"?(C.slice(-2)=="--"&&(x=r),C=""):C+=E)}return p.state=x,p.tag_buffer=C,p.depth=w,p.in_quote_char=b,v}function h(m){let p=new Set;if(typeof m=="string"){let _;for(;_=a.exec(m);)p.add(_[1])}else!n.nonNative&&typeof m[n.iterator]=="function"?p=new Set(m):typeof m.forEach=="function"&&m.forEach(p.add,p);return p}function g(m){let p=s.exec(m);return p?p[1].toLowerCase():null}t.exports?t.exports=c:e.striptags=c})(ep)})(Cn)),Cn.exports}var rp=np();const ip=tp(rp);function op(t){switch(t){case wt.Center:return"middle";case wt.Right:return"end";case wt.Left:default:return"start"}}const ap=t=>{switch(t){case wt.Left:return"start";case wt.Right:return"end";case wt.Center:return"middle";default:return null}};function sp(t){return t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase())}function cp(t){var e;return(e=t.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g))===null||e===void 0?void 0:e.filter(Boolean).map(n=>n.toLowerCase()).join("-")}function lp(t){return t.replace(/['"]/g,"'").replace(/\u0000/g,"\\0").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\v/g,"\\v").replace(/\t/g,"\\t").replace(/\f/g,"\\f")}function up(t,e=15){return t?t.length>e?`…${t.substr(t.length-e,e)}`:t:""}function fp(t,e=15){if(!t)return"";const n=Math.floor((e-3)/2);return t.length>e?`${t.substr(0,n)}…${t.substr(-n,n)}`:t}function dp(t,e=15){return t?t.length>e?`${t.substr(0,e)}…`:t:""}function hp(t,e=15,n=Xt.Middle){if(!t)return"";let r=dp(t,e);return n===Xt.Start?r=up(t,e):n===Xt.Middle&&(r=fp(t,e)),r}function Cs(t,e=[" "]){let n=[t];for(let r=0;r<e.length;r++){const i=e[r];n.forEach((o,a)=>{const s=o.split(i),c=s.map((u,f)=>`${u}${f===s.length-1?"":i}`);n[a]=c}),n=Tr(n)}return n}function gp(t,e,n=[" ","-",".",","]){const r=t.text();if(!r)return;const i=Ge(n)?n:[n],o=Cs(r,i),a=parseFloat(t.attr("x"))||0;t.text("");let s=t.append("tspan").attr("x",a),c=`${o[0]}`;s.text(c),o.forEach((u,f)=>{if(f===0)return;const d=`${c}${u}`;s.text(d),s.node().getComputedTextLength()>e?(s.text(c.trim()),s=t.append("tspan").attr("x",a).attr("dy","1.2em").text(u),c=u):c+=u})}function Ho(t,e,n,r,i,o){var a;e===void 0&&(e=50),n===void 0&&(n=Xt.Middle),i===void 0&&(i=+((a=window.getComputedStyle(t.node()))===null||a===void 0?void 0:a.fontSize)||0),o===void 0&&(o=ei());const s=t.text()||"",c=s.length,u=i*c*o,d=Math.ceil(c*e/(1.1*u));return d<c?(t.text(hp(s,d,n)),!0):!1}function Sn(t,e,n=ei()){return t.length*e*n||0}function Tn(t,e,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"text");o.textContent=t,o.setAttribute("font-size",`${n}`),o.setAttribute("font-family",e),i.appendChild(o),document.body.appendChild(i);const a=o.getComputedTextLength();return document.body.removeChild(i),a}function pp(t,e=void 0,n=!0,r=Ba,i=!1){var o,a,s;const c=`${t.text}`;if(!c)return[];const u=(o=t.fontSize)!==null&&o!==void 0?o:Ve.fontSize,f=(a=t.fontFamily)!==null&&a!==void 0?a:Ve.fontFamily,d=(s=t.fontWidthToHeightRatio)!==null&&s!==void 0?s:Ve.fontWidthToHeightRatio,h=Array.isArray(r)?r:[r];return c.split(`
|
|
150
|
-
`).map(m=>{const p=[];if(!e)return[m];const _=Cs(m,h);let k="";for(let x=0;x<_.length;x+=1){(n?Sn(k+_[x],u,d):Tn(k+_[x],f,u))<e||x===0?k+=_[x]:(p.push(k.trim()),k=_[x]);const w=2;if(i)for(;k.trim().length>w&&(n?Sn(k,u,d):Tn(k,f,u))>e;){let v=k.trim().length-w;for(;v>0;){const y=`${k.substring(0,v)}${Oa}`;if((n?Sn(y,u,d):Tn(y,f,u))<=e||v===1){p.push(y.trim()),k=k.substring(v);break}v--}}}return k&&p.push(k.trim()),p}).flat()}function mp(t,e=void 0,n=void 0,r=!0,i=Ba,o=!1){const a=Array.isArray(t)?t.map(d=>ge(Ve,d)):[ge(Ve,t)],s=a.map(d=>pp(d,e,r,i,o)),c=a[0];let u=-c.fontSize*(c.lineHeight-1);const f=[];return a.forEach((d,h)=>{var g;let m=s[h];const p=h>0?f[h-1]:void 0,_=p?p.marginBottom:0,k=d.marginTop,x=Math.max(_,k);u+=x;const C=d.fontSize*d.lineHeight;let w=0;for(let b=0;b<m.length;b+=1){let v=m[b];u+=C;const y=`${v} …`,$=r?Sn(y,d.fontSize,d.fontWidthToHeightRatio):Tn(y,d.fontFamily,d.fontSize);if(w=Math.max($,w),n&&u+C>n&&b!==m.length-1){v.charAt(v.length-1)===Oa&&(v=v.substr(0,m[b].length-1)),$<e?m[b]=y:m[b]=`${m[b].substr(0,m[b].length-2)}…`,m=m.slice(0,b+1);break}}f.push(Object.assign(Object.assign({},d),{_lines:m,_estimatedHeight:u-(p?._estimatedHeight||0),_maxWidth:Math.max(w,(g=p?._maxWidth)!==null&&g!==void 0?g:0)}))}),f}function vp(t,e=0,n,r){return t.map((i,o)=>{const a=o>0?t[o-1]:void 0,s=a?a.marginBottom/a.fontSize:0,c=i.marginTop/i.fontSize,u=Math.max(s,c),f={fontSize:i.fontSize,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fill:i.color,y:o===0&&n};return`<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(f).filter(([h,g])=>g).map(([h,g])=>`${cp(h)}="${lp(g.toString())}"`).join(" ")}>${i._lines.map((h,g)=>{let m;return o===0&&g===0?m=u:g===0?m=u+i.lineHeight:m=i.lineHeight,`<tspan x="${e}" dy="${m}em" dominant-baseline="${r??"auto"}">${h.length?h:" "}</tspan>`}).join("")}</tspan>`})}function yp(t){return Ol(t,e=>e._estimatedHeight)}const xp=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function _p(t,e,n,r){var i,o;const a=mp(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),s=(i=n.x)!==null&&i!==void 0?i:+t.getAttribute("x"),c=(o=n.y)!==null&&o!==void 0?o:+t.getAttribute("y"),u=s??0;let f=c??0;if(n.textAlign&&t.setAttribute("text-anchor",op(n.textAlign)),n.verticalAlign&&n.verticalAlign!==Jt.Top){const h=yp(a),g=n.verticalAlign===Jt.Middle?-h/2:n.verticalAlign===Jt.Bottom?-h:0;f+=g}n.textRotationAngle?t.setAttribute("transform",`rotate(${n.textRotationAngle===0||n.textRotationAngle?n.textRotationAngle:0} ${u} ${f})`):t.removeAttribute("transform");const d=new DOMParser;t.textContent="",a.forEach(h=>{const g=vp([h],u,f,r).join(""),m=ip(g,xp),p=d.parseFromString(m,"image/svg+xml").firstChild;t.appendChild(p)})}const wp=Object.assign(Object.assign({},ar),{position:void 0,type:void 0,label:void 0,labelFontSize:null,labelTextFitMode:Nt.Wrap,labelTextTrimType:Xt.Middle,gridLine:!0,tickLine:!0,domainLine:!0,numTicks:void 0,minMaxTicksOnly:!1,minMaxTicksOnlyWhenWidthIsLess:250,minMaxTicksOnlyShowGridLines:!1,tickTextWidth:void 0,tickTextSeparator:void 0,tickTextForceWordBreak:!1,tickTextTrimType:Xt.Middle,tickTextFitMode:Nt.Wrap,tickTextFontSize:null,tickTextAlign:void 0,tickTextColor:null,tickTextAngle:void 0,labelMargin:8,labelColor:null,tickFormat:void 0,tickValues:void 0,fullSize:!0,tickPadding:8,tickTextHideOverlapping:void 0});function bp(t,e){const n="--vis-",r=Object.entries(t);return Object.fromEntries(r.map(([i])=>[sp(i.replace(n,"")),i]))}function kp(t,e){je({":root":t,[`body.theme-dark .${e}`]:Object.keys(t).filter(n=>n.includes("--vis-dark")).map(n=>({[n.replace("--vis-dark","--vis")]:`var(${n})`}))})}const Ss=q`
|
|
151
|
-
label: axis-component;
|
|
152
|
-
`,bi={"--vis-axis-tick-color":"#e8e9ef","--vis-axis-grid-color":"#e8e9ef","--vis-axis-grid-line-width":"1px","--vis-axis-grid-line-dasharray":"none","--vis-axis-label-font-size":"14px","--vis-axis-label-color":"#6c778c","--vis-axis-label-weight":"500","--vis-axis-tick-label-color":"#6c778c","--vis-axis-tick-label-font-size":"12px","--vis-axis-tick-label-weight":"500","--vis-axis-tick-label-cursor":"default","--vis-axis-tick-label-text-decoration":"none","--vis-axis-tick-line-width":"1px","--vis-axis-tick-label-hide-transition":"opacity 400ms ease-in-out","--vis-dark-axis-tick-color":"#6c778c","--vis-dark-axis-tick-label-color":"#e8e9ef","--vis-dark-axis-grid-color":"#6c778c","--vis-dark-axis-label-color":"#fefefe"},Cp=bp(bi);kp(bi,Ss);const ki=q`
|
|
153
|
-
label: hide-tick-line;
|
|
154
|
-
`,Ci=q`
|
|
155
|
-
label: hide-domain;
|
|
156
|
-
`,Ts=q`
|
|
157
|
-
label: axis;
|
|
158
|
-
|
|
159
|
-
user-select: none;
|
|
160
|
-
|
|
161
|
-
.domain {
|
|
162
|
-
stroke: var(--vis-axis-domain-color, var(--vis-axis-tick-color));
|
|
163
|
-
stroke-width: var(--vis-axis-domain-line-width, var(--vis-axis-grid-line-width));
|
|
164
|
-
stroke-dasharray: var(--vis-axis-domain-line-dasharray, var(--vis-axis-grid-line-dasharray));
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&${`.${ki}`} {
|
|
168
|
-
.tick > line {
|
|
169
|
-
opacity: 0;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
&${`.${Ci}`} {
|
|
174
|
-
.domain {
|
|
175
|
-
opacity: 0;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
`,Ms=q`
|
|
179
|
-
label: grid;
|
|
180
|
-
|
|
181
|
-
.domain {
|
|
182
|
-
opacity: 0;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
line {
|
|
186
|
-
stroke: var(--vis-axis-grid-color);
|
|
187
|
-
stroke-width: var(--vis-axis-grid-line-width);
|
|
188
|
-
stroke-dasharray: var(--vis-axis-grid-line-dasharray);
|
|
189
|
-
}
|
|
190
|
-
`,As=q`
|
|
191
|
-
label: tick;
|
|
192
|
-
|
|
193
|
-
stroke: none;
|
|
194
|
-
font-size: var(--vis-axis-tick-label-font-size);
|
|
195
|
-
font-weight: var(--vis-axis-tick-label-weight);
|
|
196
|
-
|
|
197
|
-
line {
|
|
198
|
-
stroke: var(--vis-axis-tick-color);
|
|
199
|
-
stroke-width: var(--vis-axis-tick-line-width);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
text {
|
|
203
|
-
fill: var(--vis-axis-tick-label-color);
|
|
204
|
-
cursor: var(--vis-axis-tick-label-cursor);
|
|
205
|
-
font-family: var(--vis-axis-font-family, var(--vis-font-family));
|
|
206
|
-
text-decoration: var(--vis-axis-tick-label-text-decoration);
|
|
207
|
-
stroke: none;
|
|
208
|
-
}
|
|
209
|
-
`,Wr=q`
|
|
210
|
-
label: tick-text-exiting;
|
|
211
|
-
`,Hr=q`
|
|
212
|
-
label: label;
|
|
213
|
-
fill: var(--vis-axis-label-color);
|
|
214
|
-
font-size: var(--vis-axis-label-font-size);
|
|
215
|
-
font-weight: var(--vis-axis-label-weight);
|
|
216
|
-
font-family: var(--vis-axis-font-family, var(--vis-font-family));
|
|
217
|
-
text-anchor: middle;
|
|
218
|
-
`,Ds=q`
|
|
219
|
-
label: tick-label;
|
|
220
|
-
`,Es=q`
|
|
221
|
-
label: tick-label-hideable;
|
|
222
|
-
opacity: 0;
|
|
223
|
-
transition: var(--vis-axis-tick-label-hide-transition);
|
|
224
|
-
`,Sp=Object.freeze(Object.defineProperty({__proto__:null,axis:Ts,cssVarDefaults:bi,grid:Ms,hideDomain:Ci,hideTickLine:ki,label:Hr,root:Ss,tick:As,tickLabel:Ds,tickLabelHideable:Es,tickTextExiting:Wr,variables:Cp},Symbol.toStringTag,{value:"Module"}));class Ns extends wi{constructor(e){super(),this._defaultConfig=wp,this.config=this._defaultConfig,this._defaultNumTicks=3,this.events={},e&&this.setConfig(e),this.axisGroup=this.g.append("g"),this.gridGroup=this.g.append("g").attr("class",Ms)}preRender(){const{config:e}=this,n=this.g.append("g").attr("opacity",0);this._renderAxis(n,0),this._axisRawBBox=n.node().getBBox(),e.tickTextAlign&&this._alignTickLabels(),this._renderAxisLabel(n),this._axisSizeBBox=this._getAxisSize(n),this._requiredMargin=this._getRequiredMargin(this._axisSizeBBox),n.remove()}getPosition(){const{config:{type:e,position:n}}=this;return n??(e===z.X?M.Bottom:M.Left)}_getAxisSize(e){return e.node().getBBox()}_getRequiredMargin(e=this._axisSizeBBox){const{config:{type:n,position:r}}=this;switch(n){case z.X:{const o=this._axisSizeBBox.x+this._axisSizeBBox.width,a=this._axisSizeBBox.x<0?Math.abs(this._axisSizeBBox.x):0,s=o-this._width>1?o-this._width:0;switch(r){case M.Top:return{top:e.height,left:a,right:s};case M.Bottom:default:return{bottom:e.height,left:a,right:s}}}case z.Y:{const i=e.height>this._height?(e.height-this._height)/2:0,o=i,a=i;switch(r){case M.Right:return{right:e.width,top:o,bottom:a};case M.Left:default:return{left:e.width,top:o,bottom:a}}}}}getRequiredMargin(){return this._requiredMargin}getOffset(e){const{config:{type:n,position:r}}=this;switch(n){case z.X:switch(r){case M.Top:return{top:e.top,left:e.left};case M.Bottom:default:return{top:e.top+this._height,left:e.left}}case z.Y:switch(r){case M.Right:return{top:e.top,left:e.left+this._width};case M.Left:default:return{top:e.top,left:e.left}}}}_render(e=this.config.duration,n=this.axisGroup){const{config:r}=this;if(this._renderAxis(n,e),this._renderAxisLabel(n),r.gridLine){const i=this._buildGrid();this.gridGroup.selectAll("*").interrupt(),mt(this.gridGroup,e).call(i).style("opacity",1)}else mt(this.gridGroup,e).style("opacity",0);r.tickTextAlign&&this._alignTickLabels(),this._resolveTickLabelOverlap(n)}_buildAxis(){const{config:{type:e,position:n,tickPadding:r}}=this,i=this._getNumTicks();switch(e){case z.X:switch(n){case M.Top:return Io(this.xScale).ticks(i).tickPadding(r);case M.Bottom:default:return Po(this.xScale).ticks(i).tickPadding(r)}case z.Y:switch(n){case M.Right:return Lo(this.yScale).ticks(i).tickPadding(r);case M.Left:default:return Uo(this.yScale).ticks(i).tickPadding(r)}}}_buildGrid(){const{config:e}=this;let n;switch(e.type){case z.X:switch(e.position){case M.Top:{n=Io(this.xScale);break}case M.Bottom:default:{n=Po(this.xScale);break}}n.tickSize(-this._height);break;case z.Y:switch(e.position){case M.Right:{n=Lo(this.yScale);break}case M.Left:default:{n=Uo(this.yScale);break}}n.tickSize(-this._width)}n.tickSizeOuter(0).tickFormat(()=>"");const r=this._getNumTicks()*2,i=n.scale(),o=i.domain(),a=()=>{if(!e.minMaxTicksOnlyShowGridLines)return o;const c=i.ticks(r);if(c.length<2)return o;const u=+c[1]-+c[0],f=o[1];return+f-+c[c.length-1]>u/2?[...c,f]:c},s=e.tickValues?this._getConfiguredTickValues():this._shouldRenderMinMaxTicksOnly()?a():i.ticks(r);return n.tickValues(s),n}_renderAxis(e=this.axisGroup,n=this.config.duration){const{config:r}=this,i=this._buildAxis(),o=i.scale(),a=r.tickValues?this._getConfiguredTickValues():this._shouldRenderMinMaxTicksOnly()?o.domain():o.ticks(this._getNumTicks()),s=a.length;i.tickValues(a),e.selectAll("*").interrupt();const c=mt(e,n).call(i);e.selectAll("text").attr("dy",null).attr("y",null),c.on("end",()=>{this._resolveTickLabelOverlap(e)}),e.selectAll("g.tick").classed(As,!0).style("font-size",r.tickTextFontSize);const f=e.selectAll("g.tick > text").filter(m=>a.some(p=>te(m,p))).classed(Ds,!0).classed(Es,!!r.tickTextHideOverlapping).style("fill",r.tickTextColor);e.selectAll("g.tick > text").filter(m=>!a.some(p=>te(m,p))).classed(Wr,!0),f.nodes().forEach(m=>ii(m));const d=i.tickSize(),h=this.getPosition(),g=r.tickTextWidth||(r.type===z.X?this._containerWidth/(s+1):this._containerWidth/5);if(f.each((m,p,_)=>{var k,x;let C=(x=(k=r.tickFormat)===null||k===void 0?void 0:k.call(r,m,p,a))!==null&&x!==void 0?x:`${m}`;const w=_[p];if(!this._tickTextStyleCached){const N=getComputedStyle(w);this._tickTextStyleCached={fontSize:Number.parseFloat(N.fontSize),fontFamily:N.fontFamily,fontWidthToHeightRatio:ei()}}const[b,v]=this._getTickTextOffset(h,d,this._tickTextStyleCached.fontSize),y={verticalAlign:r.type===z.X?Jt.Top:Jt.Middle,width:g,textRotationAngle:r.tickTextAngle,separator:r.tickTextSeparator,wordBreak:r.tickTextForceWordBreak,x:b,y:v};if(r.tickTextFitMode===Nt.Trim){const N=Vt(w).text(C);Ho(N,g,r.tickTextTrimType,!0,this._tickTextStyleCached.fontSize,.58),C=Vt(w).text()}const $=Object.assign({text:C},this._tickTextStyleCached),E=r.type===z.X?"central":"hanging";_p(w,$,y,E)}),e.classed(Ts,!0).classed(ki,!r.tickLine).classed(Ci,!r.domainLine),r.fullSize){const m=this._getFullDomainPath(0);mt(e.select(".domain"),n).attr("d",m)}}_resolveTickLabelOverlap(e=this.axisGroup){const{config:n}=this,r=e.selectAll(`g.tick > text:not(.${Wr})`);if(!n.tickTextHideOverlapping){r.style("opacity",null);return}cancelAnimationFrame(this._collideTickLabelsAnimFrameId),this._collideTickLabelsAnimFrameId=requestAnimationFrame(()=>{this._collideTickLabels(r)})}_collideTickLabels(e){e.each((r,i,o)=>{const a=o[i];a._visible=!0});const n=3;for(let r=0;r<n;r+=1)e.each((i,o,a)=>{const s=a[o];if(!s._visible)return;const u=s.getBoundingClientRect();for(let f=o+1;f<a.length;f+=1){if(o===f)continue;const d=a[f];if(d._visible){const g=d.getBoundingClientRect();if(ju(u,g,-5)){d._visible=!1;break}}}});e.each((r,i,o)=>{const a=o[i];Vt(a).style("opacity",a._visible?1:0)})}_getNumTicks(){const{config:{type:e,numTicks:n}}=this;if(n)return n;if(e===z.X){const r=this.xScale.range(),i=r[1]-r[0];return Math.floor(i/175)}if(e===z.Y){const r=this.yScale.range(),i=Math.abs(r[0]-r[1]);return Math.pow(i,.85)/25}return this._defaultNumTicks}_getConfiguredTickValues(){const{config:e}=this,n=e.type===z.X?this.xScale:this.yScale,r=n?.domain();return e.tickValues?e.tickValues.filter(i=>i>=r[0]&&i<=r[1]):null}_shouldRenderMinMaxTicksOnly(){const{config:e}=this;return e.minMaxTicksOnly||e.type===z.X&&this._width<e.minMaxTicksOnlyWhenWidthIsLess}_getFullDomainPath(e=0){const{config:{type:n}}=this;switch(n){case z.X:return`M0.5, ${e} V0.5 H${this._width+.5} V${e}`;case z.Y:return`M${-e}, ${this._height+.5} H0.5 V0.5 H${-e}`}}_renderAxisLabel(e=this.axisGroup){var n;const{type:r,label:i,labelMargin:o,labelFontSize:a,labelTextFitMode:s}=this.config;if(e.selectAll(`.${Hr}`).remove(),!i)return;const c=this.getPosition(),{width:u,height:f}=(n=this._axisRawBBox)!==null&&n!==void 0?n:e.node().getBBox(),d=r===z.Y?-90:0,h=e.append("text").attr("class",Hr).attr("dy",`${this._getLabelDY()}em`).style("font-size",a).style("fill",this.config.labelColor);h.text(i);let g=!1;if(s===Nt.Wrap){const w=r===z.Y?this._height:this._width;h.node().getComputedTextLength()>w&&(gp(h,w),g=!0)}let m=u,p=f;if(s===Nt.Wrap){const w=h.node().getBBox();m=w.width,p=w.height}else{const w=r===z.X?m:p,b=getComputedStyle(h.node()),v=Number.parseFloat(b.fontSize);Ho(h,w,this.config.labelTextTrimType,!0,v);const y=h.node().getBBox();m=y.width,p=y.height}const _=r===z.X?this._width/2:r===z.Y&&s===Nt.Wrap&&g?c===M.Left?-u-p/2-10:u:Math.pow(-1,+(c===M.Left))*u,k=r===z.Y?this._height/2:r===z.X&&s===Nt.Wrap?c===M.Top?-f-p/2:f:Math.pow(-1,+(c===M.Top))*f,x=r===z.X?0:Math.pow(-1,+(c===M.Left))*o,C=r===z.X?Math.pow(-1,+(c===M.Top))*o:0;h.attr("transform",`translate(${_+x},${k+C}) rotate(${d})`)}_getLabelDY(){const{type:e,position:n}=this.config;switch(e){case z.X:switch(n){case M.Top:return 0;case M.Bottom:default:return .75}case z.Y:switch(n){case M.Right:return .75;case M.Left:default:return-.25}}}_getTickTextOffset(e,n,r){var i;const{config:o}=this,a=((i=o.tickTextAngle)!==null&&i!==void 0?i:0)/180*Math.PI,s=n+o.tickPadding;if(o.type===z.X){const c=e===M.Bottom?1:-1;return[c*s*Math.sin(a),c*(s+r/2)*Math.cos(a)]}else{const c=e===M.Right?1:-1;return[c*s*Math.cos(a),c*s*Math.sin(a)]}}_alignTickLabels(){const{config:{type:e,tickTextAlign:n,tickTextAngle:r,position:i}}=this,o=this.g.selectAll("g.tick > text"),a=ap(n),s=e===z.X?0:this._getYTickTextTranslate(n,i),c=r?`translate(${s},0) rotate(${r})`:`translate(${s},0)`;o.attr("transform",c).attr("text-anchor",a)}_getYTickTextTranslate(e,n=M.Left){var r,i,o,a;const s=this.config.tickPadding+1,c=((a=(i=(r=this._axisRawBBox)===null||r===void 0?void 0:r.width)!==null&&i!==void 0?i:(o=this.axisGroup.node())===null||o===void 0?void 0:o.getBBox().width)!==null&&a!==void 0?a:0)-s;switch(e){case wt.Left:return n===M.Left?c*-1:0;case wt.Right:return n===M.Left?0:c;case wt.Center:return n===M.Left?c*-.5:c*.5;default:return 0}}}Ns.selectors=Sp;const Tp=Object.assign(Object.assign({},ar),{yStacked:void 0,baseline:null,duration:100,tooltip:void 0,template:(t,e,n,r)=>"",hideWhenFarFromPointer:!0,hideWhenFarFromPointerDistance:100,snapToData:!0,getCircles:void 0,color:void 0,strokeColor:void 0,strokeWidth:void 0,onCrosshairMove:void 0,forceShowAt:void 0,skipRangeCheck:!1}),Mp=je`
|
|
225
|
-
:root {
|
|
226
|
-
--vis-crosshair-line-stroke-color: #888;
|
|
227
|
-
--vis-crosshair-line-stroke-width: 1px;
|
|
228
|
-
--vis-crosshair-line-stroke-opacity: 1;
|
|
229
|
-
--vis-crosshair-circle-stroke-color: #fff;
|
|
230
|
-
--vis-crosshair-circle-stroke-width: 1px;
|
|
231
|
-
--vis-crosshair-circle-stroke-opacity: 0.75;
|
|
232
|
-
}
|
|
233
|
-
`,Ap=q`
|
|
234
|
-
label: crosshair-component;
|
|
235
|
-
`,$s=q`
|
|
236
|
-
stroke: var(--vis-crosshair-line-stroke-color);
|
|
237
|
-
stroke-width: var(--vis-crosshair-line-stroke-width);
|
|
238
|
-
stroke-opacity: var(--vis-crosshair-line-stroke-opacity);
|
|
239
|
-
pointer-events: none;
|
|
240
|
-
`,Rs=q`
|
|
241
|
-
stroke: var(--vis-crosshair-circle-stroke-color);
|
|
242
|
-
stroke-width: var(--vis-crosshair-circle-stroke-width);
|
|
243
|
-
stroke-opacity: var(--vis-crosshair-circle-stroke-opacity);
|
|
244
|
-
pointer-events: none;
|
|
245
|
-
`,Dp=Object.freeze(Object.defineProperty({__proto__:null,circle:Rs,globalStyles:Mp,line:$s,root:Ap},Symbol.toStringTag,{value:"Module"}));class Bs extends wi{constructor(e){super(),this.clippable=!0,this._defaultConfig=Tp,this.config=this._defaultConfig,this._xPx=void 0,this._yPx=void 0,this._mouseEvent=void 0,this._animFrameId=null,this._accessors={x:void 0,y:void 0,yStacked:void 0,baseline:void 0},e&&this.setConfig(e),this.g.style("opacity",0),this.line=this.g.append("line").attr("class",$s)}set accessors(e){this._accessors=e}get accessors(){var e;const{config:n}=this,r=!!(n.x||n.y||n.yStacked),i=r?n.x:this._accessors.x,o=r?n.y:this._accessors.y,a=o?Ge(o)?o:[o]:void 0,s=r?n.yStacked:this._accessors.yStacked,c=(e=n.baseline)!==null&&e!==void 0?e:this._accessors.baseline;return{x:i,y:a,yStacked:s,baseline:c}}_isContainerInViewport(){var e;if(!(!((e=this.container)===null||e===void 0)&&e.node()))return!1;const n=this.container.node().getBoundingClientRect(),r=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,o=Math.max(0,Math.min(n.right,r)-Math.max(n.left,0)),a=Math.max(0,Math.min(n.bottom,i)-Math.max(n.top,0)),s=n.width*n.height,c=o*a;return s>0&&c/s>=.35}setContainer(e){this.container!==e&&(this.container=e,this.container.on("mousemove.crosshair",this._onMouseMove.bind(this)),this.container.on("mouseout.crosshair",this._onMouseOut.bind(this)),this.container.on("wheel.crosshair",this._onWheel.bind(this)))}_render(e){var n,r,i,o,a;const{config:s,datamodel:c}=this,u=Yt(e)?e:s.duration,f=s.forceShowAt!==void 0,d=f?this.xScale(s.forceShowAt):this._xPx,h=this.xScale.invert(d),g=!((n=c.data)===null||n===void 0)&&n.length&&this.accessors.x?c.data.indexOf(Rn(c.data,h,this.accessors.x,$t.Left)):void 0;let m,p;s.snapToData&&(!this.accessors.y&&!this.accessors.yStacked&&(!((r=c.data)===null||r===void 0)&&r.length)&&console.warn("Unovis | Crosshair: Y accessors have not been configured. Please check if they're present in the configuration object"),!(!((i=c.data)===null||i===void 0)&&i.length)&&this._mouseEvent&&console.warn("Unovis | Crosshair: No data to snap to. Make sure the data has been passed to the container or to the crosshair itself"),m=Rn(c.data,h,this.accessors.x),p=c.data.indexOf(m));const _=this.xScale.range(),k=this.yScale.range(),x=s.snapToData&&m?Rt(Math.round(this.xScale(tt(m,this.accessors.x,p))),0,this._width):Rt(d,_[0],_[1]),C=d>=_[0]&&d<=_[1],w=this._yPx>=Math.min(k[0],k[1])&&this._yPx<=Math.max(k[0],k[1]);let b=s.skipRangeCheck?!!this._xPx:this._xPx?C&&w:C;s.hideWhenFarFromPointer&&Math.abs(x-+d)>=s.hideWhenFarFromPointerDistance&&(b=!1);const v=(o=s.tooltip)!==null&&o!==void 0?o:this.tooltip;if(b&&v&&this._isContainerInViewport()){const N=v.getContainer()||this.container.node(),O=v.isContainerBody(),A=this.accessors.x?tt(m,this.accessors.x,p):void 0;if(f){const X=this.container.node().getBoundingClientRect(),B=(O?d+X.left:d)+this._containerMargin.left,T=this._height/2+(O?X.top:0),R=[B,T];this._showTooltip(m,A,R,g)}else if(this._mouseEvent){const X=O?[this._mouseEvent.clientX,this._mouseEvent.clientY]:An(this._mouseEvent,N);this._showTooltip(m,A,X,g)}}else this._hideTooltip();if(this._mouseEvent&&((a=s.onCrosshairMove)===null||a===void 0||a.call(s,b?this.xScale.invert(this._xPx):void 0,m,p,this._mouseEvent),this._mouseEvent=void 0),mt(this.g,u).style("opacity",b?1:0),!isFinite(d))return;this.line.attr("y1",0).attr("y2",this._height),mt(this.line,u,lo).attr("x1",x).attr("x2",x);const y=qr(s.getCircles)?s.getCircles(h,c.data,this.yScale,g):this.getCircleData(m,p),$=this.g.selectAll("circle").data(y,(N,O)=>{var A;return(A=N.id)!==null&&A!==void 0?A:O}),E=$.enter().append("circle").attr("class",Rs).attr("r",0).attr("cx",x).attr("cy",N=>N.y).style("fill",N=>N.color).style("stroke",N=>N.strokeColor).style("stroke-width",N=>N.strokeWidth);mt(E.merge($),u,lo).attr("cx",x).attr("cy",N=>N.y).attr("r",4).style("opacity",N=>N.opacity).style("fill",N=>N.color).style("stroke",N=>N.strokeColor).style("stroke-width",N=>N.strokeWidth),$.exit().remove()}hide(e){window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{var n,r;this._xPx=void 0,this._yPx=void 0,this._mouseEvent=void 0,(r=(n=this.config).onCrosshairMove)===null||r===void 0||r.call(n,void 0,void 0,void 0,e),this._render()})}_onMouseMove(e){var n;const{datamodel:r,element:i}=this;!this.accessors.x&&(!((n=r.data)===null||n===void 0)&&n.length)&&console.warn("Unovis | Crosshair: X accessor function has not been configured. Please check if it's present in the configuration object");const[o,a]=An(e,i);this._xPx=o,this._yPx=a,this._mouseEvent=e,window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()})}_onMouseOut(e){var n;(!e||!(!((n=this.container)===null||n===void 0)&&n.node().contains(e.relatedTarget)))&&this.hide(e)}_onWheel(e){this.hide(e)}_showTooltip(e,n,r,i){var o;const{config:a,datamodel:s}=this,c=(o=a.tooltip)!==null&&o!==void 0?o:this.tooltip;if(!c||!r)return;const[u,f]=r,d=a.template(e,n,s.data,i);if(c.config.followCursor=!0,!c.config.horizontalPlacement||c.config.horizontalPlacement===M.Auto){const h=c.isContainerBody()?u-this.container.node().getBoundingClientRect().left:u;c.overrideHorizontalPlacement(h>this._containerWidth/2?M.Left:M.Right)}d&&c.show(d,{x:u,y:f})}_hideTooltip(){var e;const{config:n}=this,r=(e=n.tooltip)!==null&&e!==void 0?e:this.tooltip;r?.hide()}getYDataExtent(){return[void 0,void 0]}getCircleData(e,n){var r,i;const{config:o}=this;if(o.snapToData&&e){const a=(r=this.accessors.y)!==null&&r!==void 0?r:[],s=(i=this.accessors.yStacked)!==null&&i!==void 0?i:[],c=tt(e,this.accessors.baseline,n)||0,u=Il(e,n,...s).map((d,h)=>({y:this.yScale(d+c),opacity:Yt(tt(e,s[h],h))?1:0,color:ce(e,o.color,h),strokeColor:o.strokeColor?ce(e,o.strokeColor,h):void 0,strokeWidth:o.strokeWidth?tt(e,o.strokeWidth,h):void 0})),f=a.map((d,h)=>{const g=tt(e,d,n);return{y:this.yScale(g),opacity:Yt(g)?1:0,color:ce(e,o.color,u.length+h),strokeColor:o.strokeColor?ce(e,o.strokeColor,h):void 0,strokeWidth:o.strokeWidth?tt(e,o.strokeWidth,h):void 0}});return u.concat(f)}return[]}}Bs.selectors=Dp;const Os=Symbol("componentAccessorKey"),Vs=Symbol("tooltipAccessorKey"),Fs=Symbol("crosshairAccessorKey"),zs=Symbol("axisAccessorKey"),Ep=Symbol("annotationsAccessorKey");function lr(t,e){return te(t,e)}function Je(t){const e=l.getCurrentInstance(),n=e.attrs;return l.computed(()=>{const r={},i=e?.vnode.props??{};return Object.keys(i).forEach(o=>{r[l.camelize(o)]=t[l.camelize(o)]}),{...r,...n}})}const Yo=l.defineComponent({__name:"index",props:{components:{},xScale:{type:[Object,Function]},xDomain:{},xDomainMinConstraint:{},xDomainMaxConstraint:{},xRange:{},yScale:{type:[Object,Function]},yDomain:{},yDomainMinConstraint:{},yDomainMaxConstraint:{},yRange:{},yDirection:{},xAxis:{},yAxis:{},autoMargin:{type:Boolean},tooltip:{},crosshair:{},preventEmptyDomain:{type:[Boolean,null]},scaleByDomain:{type:Boolean},annotations:{},clipPathExtend:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:r}=l.toRefs(n),i=Je(n),o=l.ref(),a=l.reactive({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),s=l.ref();return l.watch(r,()=>{o.value&&o.value.setData(r.value,!0)}),l.watchEffect(()=>{var c;a.components.map(u=>u.config),(c=o.value)==null||c.updateContainer({...l.toRaw(i.value),...l.toRaw(a)})}),l.onMounted(()=>{s.value&&(o.value=new Fg(s.value,{...l.toRaw(a)},r.value))}),l.onUnmounted(()=>{var c;return(c=o.value)==null?void 0:c.destroy()}),l.provide(Os,{data:r,update:c=>a.components=[...a.components,c],destroy:()=>{var c;return a.components=(c=a.components)==null?void 0:c.filter(u=>!u.isDestroyed())}}),l.provide(zs,{data:r,update:c=>a[`${c.config.type}Axis`]=c,destroy:c=>{a[`${c}Axis`]=void 0}}),l.provide(Fs,{data:r,update:c=>a.crosshair=c,destroy:()=>{a.crosshair=void 0}}),l.provide(Vs,{data:r,update:c=>a.tooltip=c,destroy:()=>{a.tooltip=void 0}}),l.provide(Ep,{data:r,update:c=>a.annotations=c,destroy:()=>{a.annotations=void 0}}),e({component:o}),(c,u)=>(l.openBlock(),l.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:s,class:"unovis-xy-container"},[l.renderSlot(c.$slots,"default")],512))}}),Np={"data-vis-axis":""},un=l.defineComponent({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelTextFitMode:{},labelTextTrimType:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyShowGridLines:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},color:{type:[Function,String,Array,null]},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=l.inject(zs),r=t,i=l.computed(()=>n.data.value??r.data),o=Je(r),a=l.ref();return l.onMounted(()=>{l.nextTick(()=>{var s;a.value=new Ns(o.value),(s=a.value)==null||s.setData(i.value),n.update(a.value)})}),l.onUnmounted(()=>{var s;(s=a.value)==null||s.destroy(),n.destroy(r.type)}),l.watch(o,(s,c)=>{var u;lr(s,c)||(u=a.value)==null||u.setConfig(o.value)}),l.watch(i,()=>{var s;(s=a.value)==null||s.setData(i.value)}),e({component:a}),(s,c)=>(l.openBlock(),l.createElementBlock("div",Np))}}),$p={"data-vis-crosshair":""},Xo=l.defineComponent({__name:"index",props:{data:{}},setup(t,{expose:e}){const n=l.inject(Fs),r=t,i=l.computed(()=>n.data.value??r.data),o=Je(r),a=l.ref();return l.onMounted(()=>{l.nextTick(()=>{var s;a.value=new Bs(o.value),(s=a.value)==null||s.setData(i.value),n.update(a.value)})}),l.onUnmounted(()=>{var s;(s=a.value)==null||s.destroy(),n.destroy()}),l.watch(o,(s,c)=>{var u;lr(s,c)||(u=a.value)==null||u.setConfig(o.value)}),l.watch(i,()=>{var s;(s=a.value)==null||s.setData(i.value)}),e({component:a}),(s,c)=>(l.openBlock(),l.createElementBlock("div",$p))}}),Rp={"data-vis-component":""},Go=l.defineComponent({__name:"index",props:{color:{type:[Function,String,Array,null]},groupWidth:{},groupMaxWidth:{},dataStep:{},groupPadding:{},barPadding:{},roundedCorners:{type:[Number,Boolean]},barMinHeight:{},cursor:{type:[Function,String,null]},orientation:{},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=l.inject(Os),r=t,i=l.computed(()=>n.data.value??r.data),o=Je(r),a=l.ref();return l.onMounted(()=>{l.nextTick(()=>{var s;a.value=new ks(o.value),(s=a.value)==null||s.setData(i.value),n.update(a.value)})}),l.onUnmounted(()=>{var s;(s=a.value)==null||s.destroy(),n.destroy()}),l.watch(o,(s,c)=>{var u;lr(s,c)||(u=a.value)==null||u.setConfig(o.value)}),l.watch(i,()=>{var s;(s=a.value)==null||s.setData(i.value)}),e({component:a}),(s,c)=>(l.openBlock(),l.createElementBlock("div",Rp))}}),Bp={"data-vis-tooltip":""},qo=l.defineComponent({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},hideDelay:{},showDelay:{},data:{}},setup(t,{expose:e}){const n=l.inject(Vs),r=Je(t),i=l.ref();return l.onMounted(()=>{l.nextTick(()=>{i.value=new _s(r.value),n.update(i.value)})}),l.onUnmounted(()=>{var o;(o=i.value)==null||o.destroy(),n.destroy()}),l.watch(r,(o,a)=>{var s;lr(o,a)||(s=i.value)==null||s.setConfig(r.value)}),e({component:i}),(o,a)=>(l.openBlock(),l.createElementBlock("div",Bp))}});(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend],[data-vis-flow-legend],[data-vis-rolling-pin-legend]{display:block}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const Op={class:"flex flex-col sm:flex-row"},Vp=["data-active"],Fp={class:"flex items-center gap-2"},zp={class:"block text-muted-foreground text-xs mr-2 max-w-[120px] truncate"},Ip={class:"block text-lg leading-none font-bold sm:text-3xl"},Lp={class:"mx-auto w-full max-w-sm mt-2 mb-8"},Pp={class:"text-muted-foreground"},Up={class:"text-muted-foreground"},Wp={class:"grid"},Hp={class:"flex gap-1 overflow-hidden max-w-80"},Yp={class:"truncate"},Xp=l.defineComponent({__name:"ResourceSelector",props:{resources:{type:Array,required:!0},totals:{type:Object,required:!0},viewMode:{type:String,required:!0},activeChart:{type:String,required:!1}},emits:["update:viewMode","update:activeChart"],setup(t,{emit:e}){const n=t,r=e,i=l.computed({get:()=>n.viewMode,set:u=>{r("update:viewMode",u)}}),o=l.computed({get:()=>n.activeChart,set:u=>{r("update:activeChart",u)}}),{width:a}=Ps.useWindowSize(),s=l.computed(()=>a.value<640),c=l.ref(!1);return(u,f)=>{const d=l.resolveComponent("DrawerTitle"),h=l.resolveComponent("DrawerDescription"),g=l.resolveComponent("DrawerHeader"),m=l.resolveComponent("Button"),p=l.resolveComponent("DrawerFooter"),_=l.resolveComponent("DrawerContent"),k=l.resolveComponent("Drawer"),x=l.resolveComponent("DropdownMenuTrigger"),C=l.resolveComponent("DropdownMenuLabel"),w=l.resolveComponent("DropdownMenuItem"),b=l.resolveComponent("DropdownMenuContent"),v=l.resolveComponent("DropdownMenu");return l.openBlock(),l.createElementBlock("div",Op,[t.resources.length>1?(l.openBlock(),l.createElementBlock("button",{key:0,"data-active":t.viewMode==="stacked",class:"hover:bg-muted/50 flex flex-1 flex-col justify-center gap-2 border-t px-4 py-3 text-left sm:border-t-0 sm:border-l sm:px-6 sm:py-6 cursor-pointer",onClick:f[0]||(f[0]=y=>c.value=!0)},[l.createElementVNode("div",Fp,[t.viewMode==="stacked"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(l.unref(dt.Layers),{class:"size-3 text-muted-foreground"}),f[5]||(f[5]=l.createElementVNode("span",{class:"block text-muted-foreground text-xs mr-2 max-w-[120px] truncate"},"All Resources",-1))],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("div",{class:"size-3 rounded-full mr-2",style:l.normalizeStyle({backgroundColor:t.resources.find(y=>y.id===t.activeChart)?.color||"#6b7280"})},null,4),l.createElementVNode("span",zp,l.toDisplayString(t.resources.find(y=>y.id===t.activeChart)?.name||"Select Resource"),1)],64)),l.createVNode(l.unref(dt.ChevronDown),{class:"ml-auto size-4"})]),l.createElementVNode("span",Ip,l.toDisplayString(t.viewMode==="stacked"?Object.values(t.totals).reduce((y,$)=>y+$,0).toLocaleString():(t.totals[t.activeChart]||0).toLocaleString()),1)],8,Vp)):l.createCommentVNode("",!0),l.unref(s)?(l.openBlock(),l.createBlock(k,{key:1,open:l.unref(c),"onUpdate:open":f[2]||(f[2]=y=>l.isRef(c)?c.value=y:null)},{default:l.withCtx(()=>[l.createVNode(_,null,{default:l.withCtx(()=>[l.createElementVNode("div",Lp,[l.createVNode(g,null,{default:l.withCtx(()=>[l.createVNode(d,null,{default:l.withCtx(()=>[...f[6]||(f[6]=[l.createTextVNode("Resources",-1)])]),_:1}),l.createVNode(h,null,{default:l.withCtx(()=>[...f[7]||(f[7]=[l.createTextVNode("Select the resources to display on the timeline.",-1)])]),_:1})]),_:1}),l.createVNode(p,null,{default:l.withCtx(()=>[l.createVNode(m,{onClick:f[1]||(f[1]=y=>{i.value="stacked",o.value="",c.value=!1}),variant:t.viewMode==="stacked"?"secondary":"outline"},{default:l.withCtx(()=>[l.createVNode(l.unref(dt.Layers),{class:"size-3 text-muted-foreground"}),l.createElementVNode("span",Pp," All Resources ("+l.toDisplayString(Object.values(t.totals).reduce((y,$)=>y+$,0).toLocaleString())+") ",1)]),_:1},8,["variant"]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.resources,y=>(l.openBlock(),l.createBlock(m,{key:y.id,onClick:$=>{i.value="single",o.value=y.id,c.value=!1},variant:t.viewMode==="single"&&t.activeChart===y.id?"secondary":"outline"},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"size-3 rounded-full",style:l.normalizeStyle({backgroundColor:y.color||"#6b7280"})},null,4),l.createElementVNode("span",Up,l.toDisplayString(y.name)+" ("+l.toDisplayString((t.totals[y.id]||0).toLocaleString())+") ",1)]),_:2},1032,["onClick","variant"]))),128))]),_:1})])]),_:1})]),_:1},8,["open"])):(l.openBlock(),l.createBlock(v,{key:2,open:l.unref(c),"onUpdate:open":f[4]||(f[4]=y=>l.isRef(c)?c.value=y:null)},{default:l.withCtx(()=>[l.createVNode(x,{"as-child":""},{default:l.withCtx(()=>[...f[8]||(f[8]=[l.createElementVNode("button",{tabindex:"-1",class:"size-0 opacity-0 self-end"},null,-1)])]),_:1}),l.createVNode(b,{align:"start"},{default:l.withCtx(()=>[l.createVNode(C,null,{default:l.withCtx(()=>[...f[9]||(f[9]=[l.createTextVNode("Resources",-1)])]),_:1}),l.createElementVNode("div",Wp,[l.createVNode(w,{onClick:f[3]||(f[3]=y=>{i.value="stacked",o.value="",c.value=!1}),class:l.normalizeClass(t.viewMode==="stacked"?"bg-input":"")},{default:l.withCtx(()=>[l.createVNode(l.unref(dt.Layers),{class:"size-3 text-muted-foreground"}),l.createElementVNode("span",null," All Resources ("+l.toDisplayString(Object.values(t.totals).reduce((y,$)=>y+$,0).toLocaleString())+") ",1)]),_:1},8,["class"]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.resources,y=>(l.openBlock(),l.createBlock(w,{key:y.id,onClick:$=>{i.value="single",o.value=y.id,c.value=!1},class:l.normalizeClass(t.viewMode==="single"&&t.activeChart===y.id?"bg-input":"")},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"size-3 rounded-full",style:l.normalizeStyle({backgroundColor:y.color||"#6b7280"})},null,4),l.createElementVNode("span",Hp,[l.createElementVNode("span",Yp,l.toDisplayString(y.name),1),l.createElementVNode("span",null,"("+l.toDisplayString((t.totals[y.id]||0).toLocaleString())+")",1)])]),_:2},1032,["onClick","class"]))),128))])]),_:1})]),_:1},8,["open"]))])}}}),Gp={class:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6"},qp={class:"flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-3"},jp={class:"flex items-center gap-1"},Zp={key:1,class:"flex items-center justify-center px-6 py-4 text-muted-foreground text-sm"},Qp={key:0,class:"flex items-center justify-center h-[250px]"},Kp={key:1,class:"flex items-center justify-center h-[250px]"},Jp=l.defineComponent({__name:"Timeline",props:{modelValue:{},selectedResource:{},viewMode:{},agendaData:{},resources:{}},emits:["update:modelValue","update:selectedResource","update:viewMode"],setup(t,{emit:e}){const n=t,r=e,{params:i}=Tt.useModuleRoute(),{config:o}=Tt.useModule(),a=Tt.useFirebaseIntegration(o.project),s=l.ref([]),c=l.ref([]),u=l.ref(!0),f=l.ref(n.viewMode||"stacked"),d=l.ref(n.selectedResource||"");l.watch(f,T=>{r("update:viewMode",T)},{immediate:!0}),l.watch(d,T=>{r("update:selectedResource",f.value==="single"?T:null)}),l.watch(f,T=>{r("update:selectedResource",T==="single"?d.value:null)});const h=new Date,g=l.ref(n.modelValue||new Date);l.watch(()=>n.modelValue,T=>{T&&T.getTime()!==g.value.getTime()&&(g.value=T)}),l.watch(g,T=>{r("update:modelValue",T)},{immediate:!0});const m=l.computed(()=>{const T=new Date(h);T.setDate(h.getDate()-1);const R=new Date(h);return R.setDate(h.getDate()+1),g.value.toDateString()===h.toDateString()?"Today":g.value.toDateString()===T.toDateString()?"Yesterday":g.value.toDateString()===R.toDateString()?"Tomorrow":g.value.toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})}),p=()=>{const T=new Date(g.value);T.setDate(T.getDate()-1),g.value=T},_=()=>{const T=new Date(g.value);T.setDate(T.getDate()+1),g.value=T},k=()=>{g.value=new Date},x=l.computed(()=>n.resources?.length===0?10:Math.max(...(n.resources||[]).map(T=>T.capacity||10))),C=l.computed(()=>(n.resources?.length||0)===0?60:Math.min(...(n.resources||[]).map(T=>T.interval||60))),w=l.computed(()=>{const T={total:{label:"Total Reservations",color:void 0}};return(n.resources||[]).forEach((R,I)=>{T[R.id]={label:R.name,color:R.color||`var(--chart-${I%5+1})`}}),T});l.watch(()=>n.resources,T=>{(T?.length||0)>0&&!d.value&&(d.value=T[0].id)},{immediate:!0});const b=l.computed(()=>[...n.resources||[]].sort((T,R)=>{const I=y.value[T.id]||0;return(y.value[R.id]||0)-I})),v=l.computed(()=>{const T=[];return C.value,s.value.forEach((R,I)=>{R.time.endsWith(":00")&&T.push(I)}),T}),y=l.computed(()=>{const T={};return n.resources?.forEach(R=>{T[R.id]=c.value.filter(I=>I.resourceId===R.id).reduce((I,W)=>I+(W.reserved||0),0)}),T}),$=T=>{const R=T.getFullYear(),I=String(T.getMonth()+1).padStart(2,"0"),W=String(T.getDate()).padStart(2,"0");return`${R}-${I}-${W}`},E=T=>{const[R,I]=T.split(":").map(Number);return R*60+I},N=(T,R)=>(n.agendaData?.exceptions||[]).find(W=>R>=W.startDate&&R<=W.endDate?W.resourceIds===null?!0:W.resourceIds?.includes(T):!1)||null,O=l.computed(()=>{const T=$(g.value),R=g.value.getDay();let I=1440,W=0;if((n.resources||[]).forEach(yt=>{const J=N(yt.id,T);if(J){if(J.isClosed)return;J.timeslots.forEach(ot=>{const V=E(ot.startTime),L=E(ot.endTime);I=Math.min(I,V),W=Math.max(W,L)})}else(yt.openingHours?.[R]||[]).forEach(V=>{const L=E(V.start),pt=E(V.end);I=Math.min(I,L),W=Math.max(W,pt)})}),I>=W)return{startMinutes:540,endMinutes:1020};const j=Math.floor(I/60)*60,Q=Math.ceil(W/60)*60;return{startMinutes:j,endMinutes:Q}}),A=()=>{const T=[],R=C.value,{startMinutes:I,endMinutes:W}=O.value;for(let j=I;j<W;j+=R){const Q=Math.floor(j/60),yt=j%60,J=`${String(Q).padStart(2,"0")}:${String(yt).padStart(2,"0")}`,ot={time:J,label:J};n.resources?.forEach(V=>{ot[V.id]=0}),T.push(ot)}return T},X=async()=>{u.value=!0;try{const T=i.value.id,R=$(g.value),I=`${T}_${R}`,W=await a.get(o.reservedSpotsCollection,I);c.value=[];for(const J of n.resources||[]){const ot=W?.[J.id]||{};Object.entries(ot).forEach(([V,L])=>{const[pt,ae]=V.split("-");c.value.push({resourceId:J.id,startTime:pt,endTime:ae,reserved:L})})}const j=A(),Q=C.value,{startMinutes:yt}=O.value;c.value.forEach(J=>{const ot=E(J.startTime),V=E(J.endTime);for(let L=ot;L<V;L+=Q){const pt=Math.floor((L-yt)/Q);if(pt>=0&&pt<j.length){const ae=j[pt][J.resourceId];typeof ae=="number"&&(j[pt][J.resourceId]=ae+(J.reserved||0))}}}),s.value=j}catch(T){console.error("Error loading reservation data:",T),s.value=A(),c.value=[]}finally{u.value=!1}};return(async()=>await X())(),l.watch(g,()=>{X()}),l.watch(()=>n.resources,()=>{(n.resources?.length||0)>0&&X()}),(T,R)=>{const I=l.resolveComponent("CardTitle"),W=l.resolveComponent("Button"),j=l.resolveComponent("CardDescription"),Q=l.resolveComponent("CardHeader"),yt=l.resolveComponent("ChartContainer"),J=l.resolveComponent("CardContent"),ot=l.resolveComponent("Card");return l.openBlock(),l.createBlock(ot,{class:"py-4 sm:py-0"},{default:l.withCtx(()=>[l.createVNode(Q,{class:"flex flex-col items-stretch border-b !p-0 sm:flex-row"},{default:l.withCtx(()=>[l.createElementVNode("div",Gp,[l.createElementVNode("div",qp,[l.createVNode(I,null,{default:l.withCtx(()=>[...R[2]||(R[2]=[l.createTextVNode("Reservations",-1)])]),_:1}),l.createElementVNode("div",jp,[l.createVNode(W,{variant:"ghost",size:"icon",class:"size-8",onClick:p},{default:l.withCtx(()=>[l.createVNode(l.unref(dt.ChevronLeft),{size:16})]),_:1}),l.createVNode(W,{variant:"ghost",size:"sm",class:"h-8 px-3 text-xs",onClick:k},{default:l.withCtx(()=>[...R[3]||(R[3]=[l.createTextVNode(" Today ",-1)])]),_:1}),l.createVNode(W,{variant:"ghost",size:"icon",class:"size-8",onClick:_},{default:l.withCtx(()=>[l.createVNode(l.unref(dt.ChevronRight),{size:16})]),_:1})])]),l.createVNode(j,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(m)),1)]),_:1})]),t.resources.length>0?(l.openBlock(),l.createBlock(Xp,{key:0,resources:t.resources,totals:l.unref(y),viewMode:l.unref(f),"onUpdate:viewMode":R[0]||(R[0]=V=>l.isRef(f)?f.value=V:null),activeChart:l.unref(d),"onUpdate:activeChart":R[1]||(R[1]=V=>l.isRef(d)?d.value=V:null)},null,8,["resources","totals","viewMode","activeChart"])):(l.openBlock(),l.createElementBlock("div",Zp," No resources configured "))]),_:1}),l.createVNode(J,{class:"px-2 sm:p-6"},{default:l.withCtx(()=>[l.unref(u)?(l.openBlock(),l.createElementBlock("div",Qp,[...R[4]||(R[4]=[l.createElementVNode("div",{class:"text-muted-foreground"},"Loading...",-1)])])):t.resources.length===0?(l.openBlock(),l.createElementBlock("div",Kp,[...R[5]||(R[5]=[l.createElementVNode("div",{class:"text-muted-foreground"},"No resources to display",-1)])])):l.unref(f)==="stacked"?(l.openBlock(),l.createBlock(yt,{key:2,config:l.unref(w),class:"aspect-auto h-[250px] w-full",cursor:""},{default:l.withCtx(()=>[l.createVNode(l.unref(Yo),{data:l.unref(s),margin:{left:-24},"y-domain":[0,l.unref(x)]},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(b),V=>(l.openBlock(),l.createBlock(l.unref(Go),{key:V.id,x:(L,pt)=>pt,y:L=>L[V.id]||0,color:L=>L[V.id]>0?l.unref(w)[V.id]?.color:"#61616180","bar-padding":.1,"rounded-corners":2},null,8,["x","y","color"]))),128)),l.createVNode(l.unref(un),{type:"x",x:(V,L)=>L,"tick-line":!1,"domain-line":!1,"grid-line":!1,"tick-values":l.unref(v),"tick-format":V=>l.unref(s)[V]?.time||""},null,8,["x","tick-values","tick-format"]),l.createVNode(l.unref(un),{type:"y","num-ticks":3,"tick-line":!1,"domain-line":!1}),l.createVNode(l.unref(qo)),l.createVNode(l.unref(Xo),{template:l.unref(tn.st)(l.unref(w),l.unref(tn.Ue),{labelFormatter(V){const L=Math.round(V);return L>=0&&L<l.unref(s).length&&l.unref(s)[L]?.time||""}}),color:"#0000"},null,8,["template"])]),_:1},8,["data","y-domain"])]),_:1},8,["config"])):(l.openBlock(),l.createBlock(yt,{key:3,config:l.unref(w),class:"aspect-auto h-[250px] w-full",cursor:""},{default:l.withCtx(()=>[l.createVNode(l.unref(Yo),{data:l.unref(s),margin:{left:-24},"y-domain":[0,l.unref(x)]},{default:l.withCtx(()=>[l.createVNode(l.unref(Go),{x:(V,L)=>L,y:V=>V[l.unref(d)]||0,color:V=>V[l.unref(d)]>0?l.unref(w)[l.unref(d)]?.color:"hsl(var(--muted))","bar-padding":.1,"rounded-corners":!1},null,8,["x","y","color"]),l.createVNode(l.unref(un),{type:"x",x:(V,L)=>L,"tick-line":!1,"domain-line":!1,"grid-line":!1,"tick-values":l.unref(v),"tick-format":V=>l.unref(s)[V]?.time||""},null,8,["x","tick-values","tick-format"]),l.createVNode(l.unref(un),{type:"y","num-ticks":3,"tick-line":!1,"domain-line":!1}),l.createVNode(l.unref(qo)),l.createVNode(l.unref(Xo),{template:l.unref(tn.st)(l.unref(w),l.unref(tn.Ue),{labelFormatter(V){const L=Math.round(V);return L>=0&&L<l.unref(s).length&&l.unref(s)[L]?.time||""}}),color:"#0000"},null,8,["template"])]),_:1},8,["data","y-domain"])]),_:1},8,["config"]))]),_:1})]),_:1})}}}),tm={class:"flex flex-row items-center justify-between gap-2"},em={class:"relative mb-4"},nm={class:"flex gap-1 mb-4 flex-wrap"},rm={key:0,class:"mb-3 text-sm text-muted-foreground"},im={key:1,class:"flex items-center justify-center py-8"},om={key:2,class:"flex flex-col items-center gap-2 text-center py-8 text-muted-foreground"},am={key:3,class:"text-center py-8 text-muted-foreground"},sm={key:4,class:"space-y-2"},cm=["onClick"],lm={class:"flex items-start justify-between"},um={class:"flex-1"},fm={class:"font-medium"},dm={class:"text-sm text-muted-foreground"},hm={class:"text-sm text-muted-foreground"},gm={class:"flex items-center gap-4 flex-wrap"},pm={class:"flex items-center gap-2 mt-1 text-xs text-muted-foreground"},mm={class:"flex items-center gap-2 mt-1 text-xs text-muted-foreground"},vm={key:0,class:"flex items-center gap-1 mt-1 text-xs text-muted-foreground"},ym={class:"text-right"},xm={key:0,class:"inline-block px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400"},_m={key:1,class:"inline-block px-2 py-1 text-xs rounded-full bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400"},wm={key:2,class:"inline-block px-2 py-1 text-xs rounded-full bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"},bm={key:3,class:"inline-block px-2 py-1 text-xs rounded-full bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"},km={key:4,class:"inline-block px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400"},Cm={key:5,class:"text-sm font-medium mt-1"},Sm=l.defineComponent({__name:"BookingsList",props:{activeDate:{},selectedResource:{},resources:{}},setup(t){const e=t,{params:n}=Tt.useModuleRoute(),{config:r}=Tt.useModule(),i=Tt.useFirebaseIntegration(r.project),o=l.ref([]),a=l.ref(!0),s=l.ref(""),c=l.ref(null),u=l.computed(()=>({date:f(e.activeDate),resource:null}));l.provide("event",u);const f=w=>{const b=w.getFullYear(),v=String(w.getMonth()+1).padStart(2,"0"),y=String(w.getDate()).padStart(2,"0");return`${b}-${v}-${y}`},d=l.computed(()=>{let w=o.value;return e.selectedResource&&(w=w.filter(b=>b.resourceId===e.selectedResource)),s.value.trim()&&(w=new Ti.Fuse(w,{keys:["customerInfo.firstName","customerInfo.lastName","customerInfo.email","customerInfo.phone","resourceName"],threshold:.3,ignoreLocation:!0}).search(s.value).map(v=>v.item)),w}),h=l.computed(()=>d.value.filter(w=>_.value.includes(w.reservationStatus))),g=l.computed(()=>o.value.some(w=>w.reservationStatus==="approved"||w.reservationStatus==="needs_approval")),m=l.computed(()=>({spots:o.value.reduce((w,b)=>w+(b.spots||0),0),bookings:o.value.length})),p=()=>{s.value=""},_=l.ref(["needs_approval","approved"]),k=w=>{_.value.includes(w)?_.value=_.value.filter(b=>b!==w):_.value.push(w)},x=async()=>{a.value=!0,o.value=[];try{const w=n.value.id,b=f(e.activeDate),v=new Set;e.resources?.forEach(E=>{const N=`${E.id}_${b}`;v.add(N)});const y=await i.find(r.reservationsCollection,{filters:[{field:"agendaId",operator:"==",value:w},{field:"status",operator:"==",value:"confirmed"},{field:"flattenedReservationDates",operator:"array-contains-any",value:Array.from(v)}]});let $=[];y.forEach(E=>{(E.reservations?.filter(O=>O.date===b)||[]).forEach(O=>{const A=e.resources.find(X=>X.id===O.resourceId);$.push({customerInfo:E.customerInfo,amountDue:E.amountDue,amountPaid:E.amountPaid,status:E.status,reservationStatus:O.status,subtotal:E.subtotal,total:E.total,discount:E.discount,id:E.id,res_id:O.id,resourceId:O.resourceId,spots:O.spots,date:b,startTime:O.timeslot?.startTime,endTime:O.timeslot?.endTime,reservationPrice:O.totalPrice,reservationBasePrice:O.basePrice,reservationAddOnsPrice:O.addOnsPrice,pricingOptionId:O.pricingOptionId,pricingOption:O.pricingOption,resourceName:A?.name||"Unknown",resourceColor:A?.color})})}),o.value=$.sort((E,N)=>E.startTime?.localeCompare(N.startTime||"")||0)}catch(w){console.error("Error loading orders:",w),o.value=[]}finally{a.value=!1}};return(async()=>await x())(),l.watch(()=>e.activeDate,()=>{x()}),(w,b)=>{const v=l.resolveComponent("Badge"),y=l.resolveComponent("CardTitle"),$=l.resolveComponent("CardDescription"),E=l.resolveComponent("Button"),N=l.resolveComponent("CardHeader"),O=l.resolveComponent("Input"),A=l.resolveComponent("CardContent"),X=l.resolveComponent("Card");return l.openBlock(),l.createBlock(X,null,{default:l.withCtx(()=>[l.createVNode(N,null,{default:l.withCtx(()=>[l.createElementVNode("div",tm,[l.createElementVNode("div",null,[l.createVNode(y,{class:"flex items-center gap-2"},{default:l.withCtx(()=>[b[6]||(b[6]=l.createTextVNode(" Bookings ",-1)),l.unref(m).bookings>0?(l.openBlock(),l.createBlock(v,{key:0,variant:"secondary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(m).bookings),1)]),_:1})):l.createCommentVNode("",!0)]),_:1}),l.createVNode($,{class:"flex items-center gap-2 mt-1"},{default:l.withCtx(()=>[l.createVNode(l.unref(dt.Users),{size:14}),l.createElementVNode("span",null,l.toDisplayString(l.unref(m).spots)+" total spots",1)]),_:1})]),l.createVNode(E,{variant:"ghost",size:"icon",onClick:x,disabled:l.unref(a)},{default:l.withCtx(()=>[l.createVNode(l.unref(dt.RefreshCw),{size:16,class:l.normalizeClass({"animate-spin":l.unref(a)})},null,8,["class"])]),_:1},8,["disabled"])])]),_:1}),l.createVNode(A,null,{default:l.withCtx(()=>[l.createElementVNode("div",em,[l.createVNode(l.unref(dt.Search),{size:16,class:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),l.createVNode(O,{modelValue:l.unref(s),"onUpdate:modelValue":b[0]||(b[0]=B=>l.isRef(s)?s.value=B:null),placeholder:"Search by name, email, or phone...",class:"pl-9 pr-9"},null,8,["modelValue"]),l.unref(s)?(l.openBlock(),l.createBlock(E,{key:0,variant:"ghost",size:"icon",class:"absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7",onClick:p},{default:l.withCtx(()=>[l.createVNode(l.unref(dt.X),{size:14})]),_:1})):l.createCommentVNode("",!0)]),l.createElementVNode("div",nm,[l.createElementVNode("button",{onClick:b[1]||(b[1]=B=>k("needs_approval")),class:l.normalizeClass(["px-3 py-1.5 rounded-full text-sm bg-muted",{"opacity-50 hover:opacity-75":!l.unref(_).includes("needs_approval")}])}," Needs Approval ",2),l.createElementVNode("button",{onClick:b[2]||(b[2]=B=>k("approved")),class:l.normalizeClass(["px-3 py-1.5 rounded-full text-sm bg-muted",{"opacity-50 hover:opacity-75":!l.unref(_).includes("approved")}])}," Approved ",2),l.createElementVNode("button",{onClick:b[3]||(b[3]=B=>k("rejected")),class:l.normalizeClass(["px-3 py-1.5 rounded-full text-sm bg-muted",{"opacity-50 hover:opacity-75":!l.unref(_).includes("rejected")}])}," Rejected ",2),l.createElementVNode("button",{onClick:b[4]||(b[4]=B=>k("cancelled")),class:l.normalizeClass(["px-3 py-1.5 rounded-full text-sm bg-muted",{"opacity-50 hover:opacity-75":!l.unref(_).includes("cancelled")}])}," Cancelled ",2)]),l.unref(s)?(l.openBlock(),l.createElementBlock("div",rm," Showing "+l.toDisplayString(l.unref(d).length)+" of "+l.toDisplayString(l.unref(o).length)+" bookings ",1)):l.createCommentVNode("",!0),l.unref(a)?(l.openBlock(),l.createElementBlock("div",im,[...b[7]||(b[7]=[l.createElementVNode("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"},null,-1)])])):l.unref(h).length===0?(l.openBlock(),l.createElementBlock("div",om,[b[9]||(b[9]=l.createTextVNode(" No bookings for this day ",-1)),l.unref(g)?(l.openBlock(),l.createBlock(E,{key:0,onClick:b[5]||(b[5]=B=>_.value=["needs_approval","approved"])},{default:l.withCtx(()=>[...b[8]||(b[8]=[l.createTextVNode("Reset filters",-1)])]),_:1})):l.createCommentVNode("",!0)])):l.unref(d).length===0?(l.openBlock(),l.createElementBlock("div",am," No bookings match your search ")):(l.openBlock(),l.createElementBlock("div",sm,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(d),B=>(l.openBlock(),l.createElementBlock("div",{key:B.res_id||B.id,class:"p-3 border rounded-lg hover:bg-muted/50 transition-colors cursor-pointer",onClick:T=>l.unref(c)?.openDialog(B)},[l.createElementVNode("div",lm,[l.createElementVNode("div",um,[l.createElementVNode("div",fm,l.toDisplayString(B.customerInfo?.firstName)+" "+l.toDisplayString(B.customerInfo?.lastName||"Unknown Customer"),1),l.createElementVNode("div",dm,l.toDisplayString(B.customerInfo?.email),1),l.createElementVNode("div",hm,l.toDisplayString(B.customerInfo?.phone),1),l.createElementVNode("div",gm,[l.createElementVNode("div",pm,[l.createVNode(l.unref(dt.Clock),{size:12}),l.createElementVNode("span",null,l.toDisplayString(B.startTime)+" - "+l.toDisplayString(B.endTime),1)]),l.createElementVNode("div",mm,[l.createVNode(l.unref(dt.Users),{size:12}),l.createElementVNode("span",null,l.toDisplayString(B.spots)+" spots",1)]),B.resourceName?(l.openBlock(),l.createElementBlock("div",vm,[l.createElementVNode("div",{class:"w-3 h-3 rounded-full",style:l.normalizeStyle({backgroundColor:B.resourceColor||"#6b7280"})},null,4),l.createElementVNode("span",null,l.toDisplayString(B.resourceName),1)])):l.createCommentVNode("",!0)])]),l.createElementVNode("div",ym,[B.reservationStatus==="needs_approval"?(l.openBlock(),l.createElementBlock("span",xm,"Needs Approval")):B.reservationStatus==="approved"?(l.openBlock(),l.createElementBlock("span",_m,"Approved")):B.reservationStatus==="rejected"?(l.openBlock(),l.createElementBlock("span",wm,"Rejected")):B.reservationStatus==="cancelled"?(l.openBlock(),l.createElementBlock("span",bm,"Cancelled")):(l.openBlock(),l.createElementBlock("span",km,"Pending")),B.reservationPrice||B.reservationPrice===0?(l.openBlock(),l.createElementBlock("div",Cm," €"+l.toDisplayString(B.reservationPrice.toFixed(2)),1)):l.createCommentVNode("",!0)])])],8,cm))),128))]))]),_:1}),l.createVNode(Ti._sfc_main,{ref_key:"reservationDetailDialog",ref:c,onCancelled:x,onConfirmed:x,onRejected:x},null,512)]),_:1})}}}),Tm={class:"space-y-6"},Mm={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},Am={class:"text-2xl font-semibold tracking-tight"},Dm={class:"flex flex-col md:flex-row gap-2"},Em={class:"grid gap-6 md:grid-cols-2 lg:grid-cols-3"},Nm={class:"md:col-span-2 lg:col-span-3"},$m=l.defineComponent({__name:"index",setup(t){const{hasPermission:e}=Tt.useModulePermissions(),{params:n,resolvePath:r}=Tt.useModuleRoute(),{config:i}=Tt.useModule(),o=Tt.useFirebaseIntegration(i.project),a=l.ref(""),s=l.ref(!0),c=l.ref(new Date),u=l.ref(null),f=l.ref("stacked"),d=l.ref(null),h=l.ref([]);return(async()=>{try{const m=await o.get(i.agendaCollection,n.value.id);a.value=m?.serviceName||"",d.value=m,h.value=m?.resources?.filter(p=>p.isActive)||[]}catch(m){console.error("Error loading data:",m)}finally{s.value=!1}})(),l.provide("agendaData",d),(m,p)=>{const _=l.resolveComponent("Button"),k=l.resolveComponent("NuxtLink");return l.openBlock(),l.createBlock(Ls._sfc_main,null,{default:l.withCtx(()=>[l.createElementVNode("div",Tm,[l.createElementVNode("div",Mm,[l.createElementVNode("div",null,[l.createElementVNode("h1",Am,l.toDisplayString(l.unref(a)||"Dashboard"),1),p[3]||(p[3]=l.createElementVNode("p",{class:"text-muted-foreground text-sm mt-1"}," Overview and analytics for your booking service ",-1))]),l.createElementVNode("div",Dm,[l.unref(e)("manage-reservations")?(l.openBlock(),l.createBlock(Us._sfc_main,{key:0})):l.createCommentVNode("",!0),l.createVNode(k,{to:l.unref(r)(`/edit/${l.unref(n).id}/agenda`)},{default:l.withCtx(()=>[l.createVNode(_,{class:"w-full"},{default:l.withCtx(()=>[l.createVNode(l.unref(dt.Calendar),{class:"size-4"}),p[4]||(p[4]=l.createTextVNode(" View Agenda ",-1))]),_:1})]),_:1},8,["to"])])]),l.createVNode(Jp,{modelValue:l.unref(c),"onUpdate:modelValue":p[0]||(p[0]=x=>l.isRef(c)?c.value=x:null),"view-mode":l.unref(f),"onUpdate:viewMode":p[1]||(p[1]=x=>l.isRef(f)?f.value=x:null),"onUpdate:selectedResource":p[2]||(p[2]=x=>u.value=x),"agenda-data":l.unref(d),resources:l.unref(h)},null,8,["modelValue","view-mode","agenda-data","resources"]),l.createElementVNode("div",Em,[l.createElementVNode("div",Nm,[l.unref(h).length>0?(l.openBlock(),l.createBlock(Sm,{key:0,"active-date":l.unref(c),"selected-resource":l.unref(u),resources:l.unref(h)},null,8,["active-date","selected-resource","resources"])):l.createCommentVNode("",!0)])])])]),_:1})}}});exports.default=$m;
|