@webquark/core 1.1.0-dev.6 → 1.1.0-dev.8
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/README.md +7 -5
- package/dist/cjs/{action.props-CtwTiyf6.js → action.props-N0urQtdP.js} +1 -1
- package/dist/cjs/{chevron-up-Dysp_9UJ.js → chevron-up-D4t2OSHA.js} +2 -2
- package/dist/cjs/{data-table-cell-BAv6IIYx.js → data-table-cell-8uUCk2Qz.js} +5 -0
- package/dist/cjs/{field-CiEtk37y.js → field-CsrQGhG-.js} +2 -2
- package/dist/cjs/form-field-adapter-D0CJ6poh.js +51 -0
- package/dist/cjs/form-field-state-P63wN30v.js +51 -0
- package/dist/cjs/form-submit-action-C6c4aq6C.js +227 -0
- package/dist/cjs/image-crop-BZD5Cxd7.js +53 -0
- package/dist/cjs/{index-BLlc_shC.js → index-DWXhKHCB.js} +25 -26
- package/dist/cjs/index.cjs.js +8 -3
- package/dist/cjs/leaflet-maplibre-gl-JIaCQ-7v.js +1025 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{map.types-DNrz8rJh.js → map.types-BWymIRql.js} +1 -1
- package/dist/cjs/q-accordion.cjs.entry.js +2 -2
- package/dist/cjs/q-alert.cjs.entry.js +1 -1
- package/dist/cjs/q-avatar.cjs.entry.js +2 -2
- package/dist/cjs/q-banner.cjs.entry.js +1 -1
- package/dist/cjs/q-button_2.cjs.entry.js +112 -25
- package/dist/cjs/q-card.cjs.entry.js +3 -3
- package/dist/cjs/q-carousel.cjs.entry.js +400 -13
- package/dist/cjs/q-chip.cjs.entry.js +2 -2
- package/dist/cjs/q-conversation-bubble.cjs.entry.js +1 -1
- package/dist/cjs/q-data-table.cjs.entry.js +73 -11
- package/dist/cjs/q-dialog.cjs.entry.js +4 -4
- package/dist/cjs/q-dropdown.cjs.entry.js +65 -12
- package/dist/cjs/q-form.cjs.entry.js +775 -288
- package/dist/cjs/q-grid.cjs.entry.js +3 -3
- package/dist/cjs/q-icon.cjs.entry.js +143 -89
- package/dist/cjs/q-image-comparison.cjs.entry.js +201 -0
- package/dist/cjs/q-inline.cjs.entry.js +3 -3
- package/dist/cjs/q-input_2.cjs.entry.js +91 -23
- package/dist/cjs/q-link.cjs.entry.js +2 -2
- package/dist/cjs/q-map.cjs.entry.js +141 -22
- package/dist/cjs/q-media.cjs.entry.js +3 -3
- package/dist/cjs/q-navbar.cjs.entry.js +4 -4
- package/dist/cjs/q-pagination.cjs.entry.js +2 -2
- package/dist/cjs/q-panel.cjs.entry.js +6 -6
- package/dist/cjs/q-quantity-selector.cjs.entry.js +6 -6
- package/dist/cjs/q-radio-group.cjs.entry.js +49 -12
- package/dist/cjs/q-reel.cjs.entry.js +3 -3
- package/dist/cjs/q-scrollable.cjs.entry.js +4 -4
- package/dist/cjs/q-section.cjs.entry.js +2 -2
- package/dist/cjs/q-sidepanel.cjs.entry.js +145 -25
- package/dist/cjs/q-stack.cjs.entry.js +3 -3
- package/dist/cjs/q-step-diagram-item.cjs.entry.js +2 -2
- package/dist/cjs/q-step-diagram.cjs.entry.js +3 -3
- package/dist/cjs/q-syntax-box.cjs.entry.js +418 -301
- package/dist/cjs/q-tabs.cjs.entry.js +3 -3
- package/dist/cjs/q-textarea.cjs.entry.js +67 -22
- package/dist/cjs/q-thumbnail.cjs.entry.js +3 -3
- package/dist/cjs/q-toast.cjs.entry.js +1 -1
- package/dist/cjs/q-toggle.cjs.entry.js +59 -13
- package/dist/cjs/q-toolbar.cjs.entry.js +5 -5
- package/dist/cjs/registry-C3IYlNMp.js +323 -0
- package/dist/cjs/tokens-RMRaIOqv.js +957 -0
- package/dist/cjs/webquark.cjs.js +3 -3
- package/dist/collection/assets/icons/spinner.svg +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/actions/button/button.css +6 -6
- package/dist/collection/components/actions/button/button.js +250 -14
- package/dist/collection/components/actions/button/test/button-slots.cmp.test.js +70 -0
- package/dist/collection/components/content/card/card.css +1 -1
- package/dist/collection/components/content/carousel/carousel.css +91 -5
- package/dist/collection/components/content/carousel/carousel.js +511 -20
- package/dist/collection/components/content/carousel/internals/autoplay.js +64 -0
- package/dist/collection/components/content/carousel/internals/slide-state.js +50 -0
- package/dist/collection/components/content/carousel/test/transitions.cmp.test.js +328 -0
- package/dist/collection/components/data-display/accordion/accordion.js +1 -1
- package/dist/collection/components/data-display/data-table/data-table-cell.js +4 -0
- package/dist/collection/components/data-display/data-table/data-table.css +73 -0
- package/dist/collection/components/data-display/data-table/data-table.js +117 -3
- package/dist/collection/components/data-display/data-table/internals/render-table-body.js +15 -3
- package/dist/collection/components/data-display/data-table/internals/render-table-head.js +1 -1
- package/dist/collection/components/data-display/data-table/internals/table-model.js +9 -1
- package/dist/collection/components/data-display/data-table/test/row-gutter.cmp.test.js +104 -0
- package/dist/collection/components/data-display/data-table/test/two-line-rows.cmp.test.js +164 -0
- package/dist/collection/components/data-display/map/internals/marker-controller.js +22 -0
- package/dist/collection/components/data-display/map/internals/marker-presentation.js +51 -2
- package/dist/collection/components/data-display/map/internals/markers.js +16 -1
- package/dist/collection/components/data-display/map/map.css +31 -0
- package/dist/collection/components/data-display/map/map.js +96 -15
- package/dist/collection/components/data-display/map/map.types.js +1 -1
- package/dist/collection/components/data-display/map/test/map.cmp.test.js +213 -0
- package/dist/collection/components/data-display/pagination/pagination.js +1 -1
- package/dist/collection/components/data-display/syntax-box/internals/value-sync.js +6 -23
- package/dist/collection/components/data-display/syntax-box/internals/value-sync.unit.test.js +25 -0
- package/dist/collection/components/data-display/syntax-box/syntax-box.css +12 -5
- package/dist/collection/components/data-display/syntax-box/syntax-box.js +78 -23
- package/dist/collection/components/data-display/syntax-box/test/format-fixtures.js +20 -0
- package/dist/collection/components/data-display/syntax-box/test/syntax-box.cmp.test.js +241 -0
- package/dist/collection/components/data-display/syntax-box/test/syntax-fixtures.js +14 -0
- package/dist/collection/components/data-display/syntax-box/test/syntax-format.cmp.test.js +157 -0
- package/dist/collection/components/indicators/step-diagram/step-diagram.js +2 -2
- package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +1 -1
- package/dist/collection/components/inputs/dropdown/dropdown.css +11 -11
- package/dist/collection/components/inputs/dropdown/dropdown.js +64 -10
- package/dist/collection/components/inputs/form/form.css +5 -5
- package/dist/collection/components/inputs/form/form.js +203 -100
- package/dist/collection/components/inputs/form/internals/controls.js +121 -27
- package/dist/collection/components/inputs/form/internals/enter-behavior.js +14 -25
- package/dist/collection/components/inputs/form/internals/field-state.js +129 -0
- package/dist/collection/components/inputs/form/internals/reset.js +50 -0
- package/dist/collection/components/inputs/form/internals/submission.js +140 -0
- package/dist/collection/components/inputs/form/internals/values.js +176 -153
- package/dist/collection/components/inputs/form/internals/values.unit.test.js +59 -0
- package/dist/collection/components/inputs/form/test/form-reset-state.cmp.test.js +559 -0
- package/dist/collection/components/inputs/form/test/form-submit-transport.cmp.test.js +352 -0
- package/dist/collection/components/inputs/form/test/form-submit.cmp.test.js +438 -0
- package/dist/collection/components/inputs/form/test/form-values.cmp.test.js +440 -0
- package/dist/collection/components/inputs/input/input.css +10 -10
- package/dist/collection/components/inputs/input/input.js +91 -20
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +6 -6
- package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +4 -4
- package/dist/collection/components/inputs/radio-group/radio-group.css +10 -10
- package/dist/collection/components/inputs/radio-group/radio-group.js +51 -9
- package/dist/collection/components/inputs/textarea/textarea.css +10 -10
- package/dist/collection/components/inputs/textarea/textarea.js +70 -18
- package/dist/collection/components/inputs/toggle/toggle.css +10 -10
- package/dist/collection/components/inputs/toggle/toggle.js +57 -10
- package/dist/collection/components/layout/grid/grid.js +1 -1
- package/dist/collection/components/layout/inline/inline.js +1 -1
- package/dist/collection/components/layout/navbar/navbar.css +10 -10
- package/dist/collection/components/layout/navbar/navbar.js +2 -2
- package/dist/collection/components/layout/panel/panel.js +4 -4
- package/dist/collection/components/layout/scrollable/scrollable.js +3 -3
- package/dist/collection/components/layout/section/section.js +1 -1
- package/dist/collection/components/layout/sidepanel/internals/drawer.js +42 -4
- package/dist/collection/components/layout/sidepanel/sidepanel.css +148 -17
- package/dist/collection/components/layout/sidepanel/sidepanel.js +99 -10
- package/dist/collection/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.js +120 -0
- package/dist/collection/components/layout/sidepanel/test/panel-transitions.cmp.test.js +180 -0
- package/dist/collection/components/layout/stack/stack.js +1 -1
- package/dist/collection/components/layout/tabs/tabs.css +9 -9
- package/dist/collection/components/layout/tabs/tabs.js +1 -1
- package/dist/collection/components/layout/toolbar/toolbar.css +6 -6
- package/dist/collection/components/layout/toolbar/toolbar.js +2 -2
- package/dist/collection/components/media/avatar/avatar.js +1 -1
- package/dist/collection/components/media/icon/internals/fetch-icon.js +33 -4
- package/dist/collection/components/media/icon/internals/fetch-icon.unit.test.js +51 -0
- package/dist/collection/components/media/icon/internals/policy.js +184 -0
- package/dist/collection/components/media/icon/internals/policy.unit.test.js +65 -0
- package/dist/collection/components/media/icon/internals/registry-lucide.unit.test.js +78 -0
- package/dist/collection/components/media/icon/internals/registry.js +33 -82
- package/dist/collection/components/media/icon/internals/sanitize-svg.js +80 -57
- package/dist/collection/components/media/icon/internals/url.js +31 -27
- package/dist/collection/components/media/icon/internals/url.unit.test.js +34 -0
- package/dist/collection/components/media/icon/test/icon-fixtures.js +47 -0
- package/dist/collection/components/media/icon/test/icon.cmp.test.js +223 -0
- package/dist/collection/components/media/image-comparison/image-comparison.css +124 -0
- package/dist/collection/components/media/image-comparison/image-comparison.js +468 -0
- package/dist/collection/components/media/image-comparison/test/image-comparison.cmp.test.js +234 -0
- package/dist/collection/components/media/media/media.js +22 -22
- package/dist/collection/components/media/reel/reel.js +2 -2
- package/dist/collection/components/media/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/overlays/dialog/dialog.css +1 -1
- package/dist/collection/components/overlays/dialog/dialog.js +2 -2
- package/dist/collection/components/overlays/tooltip/internals/positioning.js +20 -5
- package/dist/collection/components/overlays/tooltip/tooltip.css +6 -2
- package/dist/collection/components/overlays/tooltip/tooltip.js +9 -3
- package/dist/collection/components/shared/field.js +1 -1
- package/dist/collection/index.js +2 -1
- package/dist/collection/native-content.css +24 -0
- package/dist/collection/playground/assets/comparison-after.svg +1 -0
- package/dist/collection/playground/assets/comparison-before.svg +1 -0
- package/dist/collection/playground/components/playground-header/playground-header.js +1 -1
- package/dist/collection/playground/playground.bundled.js +164 -4
- package/dist/collection/theme/test/foundation.cmp.test.js +6 -0
- package/dist/collection/theme/test/presets.cmp.test.js +129 -0
- package/dist/collection/theme/tokens.js +136 -4
- package/dist/collection/utils/form-field-adapter.js +44 -0
- package/dist/collection/utils/form-field-state.js +45 -0
- package/dist/collection/utils/form-reset-action.js +60 -0
- package/dist/collection/utils/form-submit-action.js +151 -0
- package/dist/collection/utils/form-submit-action.unit.test.js +15 -0
- package/dist/collection/utils/formatter.js +137 -158
- package/dist/collection/utils/formatter.unit.test.js +69 -51
- package/dist/collection/utils/image-crop.js +47 -0
- package/dist/collection/utils/image-crop.unit.test.js +57 -0
- package/dist/collection/utils/syntax.js +210 -81
- package/dist/collection/utils/syntax.unit.test.js +134 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-NEolaUak.js → p-6PPZ2sIO.js} +1 -1
- package/dist/components/p-B4Mg1xEw.js +1 -0
- package/dist/components/{p-BxFGkrUe.js → p-BH4gQWub.js} +1 -1
- package/dist/components/p-BOdNg0jc.js +1 -0
- package/dist/components/p-BcL0NVv0.js +1 -0
- package/dist/components/p-BofcK-7Z.js +1 -0
- package/dist/components/p-C6vxokHH.js +1 -0
- package/dist/components/p-CGml_DQ8.js +1 -0
- package/dist/components/{p-CK7avZdv.js → p-CKuPOxKN.js} +1 -1
- package/dist/components/p-CN1ut2Lb.js +1 -0
- package/dist/components/p-C_RztzNv.js +5 -0
- package/dist/components/p-CoIMrUb3.js +1 -0
- package/dist/components/{p-g9vOVxQ4.js → p-DKrPmn2y.js} +2 -2
- package/dist/components/p-DT6k8Yhx.js +1 -0
- package/dist/components/p-Dfp_If-_.js +1 -0
- package/dist/components/p-DstNl_WY.js +1 -0
- package/dist/components/p-GHhpSfZU.js +1 -0
- package/dist/components/p-SzKf4WZF.js +1 -0
- package/dist/components/p-ye27qtRo.js +1 -0
- package/dist/components/q-accordion.js +1 -1
- package/dist/components/q-alert.js +1 -1
- package/dist/components/q-avatar.js +1 -1
- package/dist/components/q-banner.js +1 -1
- package/dist/components/q-button.js +1 -1
- package/dist/components/q-card.js +1 -1
- package/dist/components/q-carousel.js +1 -1
- package/dist/components/q-chip.js +1 -1
- package/dist/components/q-conversation-bubble.js +1 -1
- package/dist/components/q-data-table.js +1 -1
- package/dist/components/q-dialog.js +1 -1
- package/dist/components/q-dropdown.js +1 -1
- package/dist/components/q-form.js +1 -1
- package/dist/components/q-grid.js +1 -1
- package/dist/components/q-icon.js +1 -1
- package/dist/components/q-image-comparison.d.ts +11 -0
- package/dist/components/q-image-comparison.js +1 -0
- package/dist/components/q-inline.js +1 -1
- package/dist/components/q-input.js +1 -1
- package/dist/components/q-link.js +1 -1
- package/dist/components/q-map.js +1 -1
- package/dist/components/q-media.js +1 -1
- package/dist/components/q-navbar.js +1 -1
- package/dist/components/q-pagination.js +1 -1
- package/dist/components/q-panel.js +1 -1
- package/dist/components/q-progress.js +1 -1
- package/dist/components/q-quantity-selector.js +1 -1
- package/dist/components/q-radio-group.js +1 -1
- package/dist/components/q-reel.js +1 -1
- package/dist/components/q-scrollable.js +1 -1
- package/dist/components/q-section.js +1 -1
- package/dist/components/q-sidepanel.js +5 -5
- package/dist/components/q-stack.js +1 -1
- package/dist/components/q-step-diagram-item.js +1 -1
- package/dist/components/q-step-diagram.js +1 -1
- package/dist/components/q-syntax-box.js +5 -5
- package/dist/components/q-tabs.js +1 -1
- package/dist/components/q-textarea.js +1 -1
- package/dist/components/q-thumbnail.js +1 -1
- package/dist/components/q-toast.js +1 -1
- package/dist/components/q-toggle.js +1 -1
- package/dist/components/q-toolbar.js +1 -1
- package/dist/components/q-tooltip.js +1 -1
- package/dist/esm/{action.props-GP1ameE3.js → action.props-CpnGza8z.js} +1 -1
- package/dist/esm/{chevron-up-g9vOVxQ4.js → chevron-up-DKrPmn2y.js} +2 -2
- package/dist/esm/{data-table-cell-DmqVhVoj.js → data-table-cell-SzKf4WZF.js} +5 -1
- package/dist/esm/{field-DkpyvZiX.js → field-zfD6OQ02.js} +2 -2
- package/dist/esm/form-field-adapter-CGml_DQ8.js +46 -0
- package/dist/esm/form-field-state-DstNl_WY.js +47 -0
- package/dist/esm/form-submit-action-CoEIvDqE.js +213 -0
- package/dist/esm/image-crop-BcL0NVv0.js +49 -0
- package/dist/esm/{index-DbGG9Q40.js → index-B5ElFlHv.js} +25 -26
- package/dist/esm/index.js +4 -3
- package/dist/esm/leaflet-maplibre-gl-BvKlNmWf.js +1020 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{map.types-WJHaLJS_.js → map.types-CoIMrUb3.js} +1 -1
- package/dist/esm/q-accordion.entry.js +2 -2
- package/dist/esm/q-alert.entry.js +1 -1
- package/dist/esm/q-avatar.entry.js +2 -2
- package/dist/esm/q-banner.entry.js +1 -1
- package/dist/esm/q-button_2.entry.js +112 -25
- package/dist/esm/q-card.entry.js +3 -3
- package/dist/esm/q-carousel.entry.js +400 -13
- package/dist/esm/q-chip.entry.js +2 -2
- package/dist/esm/q-conversation-bubble.entry.js +1 -1
- package/dist/esm/q-data-table.entry.js +73 -11
- package/dist/esm/q-dialog.entry.js +4 -4
- package/dist/esm/q-dropdown.entry.js +65 -12
- package/dist/esm/q-form.entry.js +775 -288
- package/dist/esm/q-grid.entry.js +3 -3
- package/dist/esm/q-icon.entry.js +143 -89
- package/dist/esm/q-image-comparison.entry.js +199 -0
- package/dist/esm/q-inline.entry.js +3 -3
- package/dist/esm/q-input_2.entry.js +91 -23
- package/dist/esm/q-link.entry.js +2 -2
- package/dist/esm/q-map.entry.js +141 -22
- package/dist/esm/q-media.entry.js +3 -3
- package/dist/esm/q-navbar.entry.js +4 -4
- package/dist/esm/q-pagination.entry.js +2 -2
- package/dist/esm/q-panel.entry.js +6 -6
- package/dist/esm/q-quantity-selector.entry.js +6 -6
- package/dist/esm/q-radio-group.entry.js +49 -12
- package/dist/esm/q-reel.entry.js +3 -3
- package/dist/esm/q-scrollable.entry.js +4 -4
- package/dist/esm/q-section.entry.js +2 -2
- package/dist/esm/q-sidepanel.entry.js +146 -26
- package/dist/esm/q-stack.entry.js +3 -3
- package/dist/esm/q-step-diagram-item.entry.js +2 -2
- package/dist/esm/q-step-diagram.entry.js +3 -3
- package/dist/esm/q-syntax-box.entry.js +418 -301
- package/dist/esm/q-tabs.entry.js +3 -3
- package/dist/esm/q-textarea.entry.js +67 -22
- package/dist/esm/q-thumbnail.entry.js +3 -3
- package/dist/esm/q-toast.entry.js +1 -1
- package/dist/esm/q-toggle.entry.js +59 -13
- package/dist/esm/q-toolbar.entry.js +5 -5
- package/dist/esm/registry-GHhpSfZU.js +308 -0
- package/dist/esm/tokens-B4Mg1xEw.js +953 -0
- package/dist/esm/webquark.js +4 -4
- package/dist/playground/assets/comparison-after.svg +1 -0
- package/dist/playground/assets/comparison-before.svg +1 -0
- package/dist/playground/assets/icons/check-preview.png +0 -0
- package/dist/playground/assets/icons/spinner.svg +1 -1
- package/dist/playground/build/index.esm.js +1 -1
- package/dist/playground/build/{p-737ca99e.entry.js → p-023f8437.entry.js} +1 -1
- package/dist/{webquark/p-989bdc1a.entry.js → playground/build/p-030ecde3.entry.js} +1 -1
- package/dist/playground/build/p-04c8cb9e.entry.js +1 -0
- package/dist/playground/build/p-059daa8a.entry.js +1 -0
- package/dist/playground/build/{p-ecbc0fee.entry.js → p-09cca7b9.entry.js} +1 -1
- package/dist/playground/build/p-0aa74ad6.entry.js +1 -0
- package/dist/playground/build/p-0ae43d6c.entry.js +1 -0
- package/dist/playground/build/p-0c3aac3f.entry.js +1 -0
- package/dist/playground/build/p-144ef339.entry.js +1 -0
- package/dist/playground/build/p-1d1f7bc3.entry.js +1 -0
- package/dist/playground/build/p-296fbdb1.entry.js +1 -0
- package/dist/playground/build/p-36118d90.entry.js +1 -0
- package/dist/playground/build/{p-742e39f1.entry.js → p-3bc4629c.entry.js} +1 -1
- package/dist/playground/build/{p-8bdababd.entry.js → p-48fb5228.entry.js} +1 -1
- package/dist/{webquark/p-abf54361.entry.js → playground/build/p-4d61b70d.entry.js} +1 -1
- package/dist/playground/build/p-5f232b44.entry.js +13 -0
- package/dist/playground/build/{p-6b63922b.entry.js → p-64096386.entry.js} +1 -1
- package/dist/playground/build/{p-15502232.entry.js → p-6bfffa79.entry.js} +1 -1
- package/dist/{webquark/p-ff1e2363.entry.js → playground/build/p-6e28cfe2.entry.js} +1 -1
- package/dist/playground/build/{p-96ef2b54.entry.js → p-70d9ffde.entry.js} +1 -1
- package/dist/playground/build/{p-97dae970.entry.js → p-8ece2c62.entry.js} +1 -1
- package/dist/playground/build/p-90b0858c.entry.js +1 -0
- package/dist/playground/build/p-91fff6b6.entry.js +1 -0
- package/dist/playground/build/p-923dac41.entry.js +1 -0
- package/dist/playground/build/p-97a89cae.entry.js +1 -0
- package/dist/playground/build/{p-f911c90f.entry.js → p-99d785ca.entry.js} +1 -1
- package/dist/playground/build/p-9e78b796.entry.js +1 -0
- package/dist/{webquark/p-d4a915e5.entry.js → playground/build/p-9ff7e5a4.entry.js} +1 -1
- package/dist/playground/build/p-B4Mg1xEw.js +1 -0
- package/dist/playground/build/p-B5ElFlHv.js +3 -0
- package/dist/playground/build/p-BOdNg0jc.js +1 -0
- package/dist/playground/build/p-BcL0NVv0.js +1 -0
- package/dist/playground/build/p-CGml_DQ8.js +1 -0
- package/dist/playground/build/p-C_RztzNv.js +5 -0
- package/dist/playground/build/p-CoIMrUb3.js +1 -0
- package/dist/{webquark/p-g9vOVxQ4.js → playground/build/p-DKrPmn2y.js} +2 -2
- package/dist/playground/build/{p-BqvCR2U8.js → p-DWO-pleQ.js} +1 -1
- package/dist/playground/build/p-Dhsn99q4.js +1 -0
- package/dist/playground/build/p-DstNl_WY.js +1 -0
- package/dist/playground/build/p-GHhpSfZU.js +1 -0
- package/dist/playground/build/p-SzKf4WZF.js +1 -0
- package/dist/playground/build/p-c523ec6f.entry.js +1 -0
- package/dist/playground/build/p-d0253d64.entry.js +1 -0
- package/dist/playground/build/p-d0fbd2b1.entry.js +1 -0
- package/dist/playground/build/{p-0d98e500.entry.js → p-dd115868.entry.js} +1 -1
- package/dist/playground/build/{p-c4fd89b8.entry.js → p-f1bac94c.entry.js} +1 -1
- package/dist/playground/build/p-f4f97e74.entry.js +1 -0
- package/dist/playground/build/p-f63b7214.entry.js +1 -0
- package/dist/{webquark/p-b465aebd.entry.js → playground/build/p-f98f9439.entry.js} +1 -1
- package/dist/playground/build/{p-de8813be.entry.js → p-f9ad63ff.entry.js} +1 -1
- package/dist/playground/build/p-fe200f68.entry.js +1 -0
- package/dist/playground/build/p-fe8c634a.entry.js +13 -0
- package/dist/playground/build/p-fec6fe0a.entry.js +1 -0
- package/dist/playground/build/webquark.css +1 -1
- package/dist/playground/build/webquark.esm.js +1 -1
- package/dist/playground/native-content.css +24 -0
- package/dist/playground/playground/components.manifest.json +1 -0
- package/dist/playground/playground/specs/q-carousel.sandbox.json +15 -0
- package/dist/playground/playground/specs/q-data-table.sandbox.json +24 -0
- package/dist/playground/playground/specs/q-icon.sandbox.json +17 -1
- package/dist/playground/playground/specs/q-image-comparison.sandbox.json +24 -0
- package/dist/playground/playground/specs/q-syntax-box.sandbox.json +68 -24
- package/dist/playground/playground.js +164 -4
- package/dist/playground/presets.html +47 -0
- package/dist/types/components/actions/button/button.d.ts +26 -0
- package/dist/types/components/actions/button/test/button-slots.cmp.test.d.ts +1 -0
- package/dist/types/components/content/carousel/carousel.d.ts +71 -4
- package/dist/types/components/content/carousel/carousel.types.d.ts +5 -0
- package/dist/types/components/content/carousel/internals/autoplay.d.ts +22 -0
- package/dist/types/components/content/carousel/internals/slide-state.d.ts +8 -0
- package/dist/types/components/content/carousel/test/transitions.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/data-table/data-table-cell.d.ts +2 -0
- package/dist/types/components/data-display/data-table/data-table.d.ts +18 -1
- package/dist/types/components/data-display/data-table/data-table.types.d.ts +3 -0
- package/dist/types/components/data-display/data-table/internals/render-table-body.d.ts +1 -0
- package/dist/types/components/data-display/data-table/internals/table-model.d.ts +5 -1
- package/dist/types/components/data-display/data-table/test/row-gutter.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/data-table/test/two-line-rows.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/map/internals/marker-controller.d.ts +2 -0
- package/dist/types/components/data-display/map/map.d.ts +7 -3
- package/dist/types/components/data-display/map/map.types.d.ts +11 -1
- package/dist/types/components/data-display/syntax-box/internals/value-sync.d.ts +1 -4
- package/dist/types/components/data-display/syntax-box/internals/value-sync.unit.test.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/syntax-box.d.ts +9 -3
- package/dist/types/components/data-display/syntax-box/test/format-fixtures.d.ts +6 -0
- package/dist/types/components/data-display/syntax-box/test/syntax-box.cmp.test.d.ts +1 -0
- package/dist/types/components/data-display/syntax-box/test/syntax-fixtures.d.ts +9 -0
- package/dist/types/components/data-display/syntax-box/test/syntax-format.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/dropdown/dropdown.d.ts +5 -0
- package/dist/types/components/inputs/form/form.d.ts +12 -7
- package/dist/types/components/inputs/form/form.types.d.ts +2 -0
- package/dist/types/components/inputs/form/internals/controls.d.ts +3 -0
- package/dist/types/components/inputs/form/internals/field-state.d.ts +19 -0
- package/dist/types/components/inputs/form/internals/reset.d.ts +3 -0
- package/dist/types/components/inputs/form/internals/submission.d.ts +17 -0
- package/dist/types/components/inputs/form/internals/values.d.ts +6 -1
- package/dist/types/components/inputs/form/internals/values.unit.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-reset-state.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-submit-transport.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-submit.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/form/test/form-values.cmp.test.d.ts +1 -0
- package/dist/types/components/inputs/input/input.d.ts +7 -1
- package/dist/types/components/inputs/radio-group/radio-group.d.ts +4 -0
- package/dist/types/components/inputs/textarea/textarea.d.ts +6 -1
- package/dist/types/components/inputs/toggle/toggle.d.ts +5 -0
- package/dist/types/components/layout/sidepanel/sidepanel.d.ts +9 -0
- package/dist/types/components/layout/sidepanel/test/nav-drawer-transitions.cmp.test.d.ts +1 -0
- package/dist/types/components/layout/sidepanel/test/panel-transitions.cmp.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/fetch-icon.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/policy.d.ts +19 -0
- package/dist/types/components/media/icon/internals/policy.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/registry-lucide.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/internals/sanitize-svg.d.ts +1 -1
- package/dist/types/components/media/icon/internals/url.unit.test.d.ts +1 -0
- package/dist/types/components/media/icon/test/icon-fixtures.d.ts +4 -0
- package/dist/types/components/media/icon/test/icon.cmp.test.d.ts +1 -0
- package/dist/types/components/media/image-comparison/image-comparison.d.ts +63 -0
- package/dist/types/components/media/image-comparison/test/image-comparison.cmp.test.d.ts +1 -0
- package/dist/types/components/media/media/media.d.ts +1 -1
- package/dist/types/components/overlays/tooltip/internals/positioning.d.ts +1 -1
- package/dist/types/components/overlays/tooltip/tooltip.d.ts +5 -0
- package/dist/types/components.d.ts +436 -23
- package/dist/types/index.d.ts +7 -4
- package/dist/types/theme/test/presets.cmp.test.d.ts +7 -0
- package/dist/types/theme/tokens.d.ts +78 -0
- package/dist/types/utils/form-field-adapter.d.ts +17 -0
- package/dist/types/utils/form-field-state.d.ts +4 -0
- package/dist/types/utils/form-reset-action.d.ts +5 -0
- package/dist/types/utils/form-submit-action.d.ts +17 -0
- package/dist/types/utils/form-submit-action.unit.test.d.ts +1 -0
- package/dist/types/utils/formatter.d.ts +10 -19
- package/dist/types/utils/image-crop.d.ts +30 -0
- package/dist/types/utils/image-crop.unit.test.d.ts +1 -0
- package/dist/types/utils/syntax.d.ts +11 -7
- package/dist/types/utils/syntax.unit.test.d.ts +1 -0
- package/dist/webquark/index.esm.js +1 -1
- package/dist/webquark/native-content.css +24 -0
- package/dist/webquark/{p-737ca99e.entry.js → p-023f8437.entry.js} +1 -1
- package/dist/{playground/build/p-989bdc1a.entry.js → webquark/p-030ecde3.entry.js} +1 -1
- package/dist/webquark/p-04c8cb9e.entry.js +1 -0
- package/dist/webquark/p-059daa8a.entry.js +1 -0
- package/dist/webquark/{p-ecbc0fee.entry.js → p-09cca7b9.entry.js} +1 -1
- package/dist/webquark/p-0aa74ad6.entry.js +1 -0
- package/dist/webquark/p-0ae43d6c.entry.js +1 -0
- package/dist/webquark/p-0c3aac3f.entry.js +1 -0
- package/dist/webquark/p-144ef339.entry.js +1 -0
- package/dist/webquark/p-1d1f7bc3.entry.js +1 -0
- package/dist/webquark/p-296fbdb1.entry.js +1 -0
- package/dist/webquark/p-36118d90.entry.js +1 -0
- package/dist/webquark/{p-742e39f1.entry.js → p-3bc4629c.entry.js} +1 -1
- package/dist/webquark/{p-8bdababd.entry.js → p-48fb5228.entry.js} +1 -1
- package/dist/{playground/build/p-abf54361.entry.js → webquark/p-4d61b70d.entry.js} +1 -1
- package/dist/webquark/p-5f232b44.entry.js +13 -0
- package/dist/webquark/{p-6b63922b.entry.js → p-64096386.entry.js} +1 -1
- package/dist/webquark/{p-15502232.entry.js → p-6bfffa79.entry.js} +1 -1
- package/dist/{playground/build/p-ff1e2363.entry.js → webquark/p-6e28cfe2.entry.js} +1 -1
- package/dist/webquark/{p-96ef2b54.entry.js → p-70d9ffde.entry.js} +1 -1
- package/dist/webquark/{p-97dae970.entry.js → p-8ece2c62.entry.js} +1 -1
- package/dist/webquark/p-90b0858c.entry.js +1 -0
- package/dist/webquark/p-91fff6b6.entry.js +1 -0
- package/dist/webquark/p-923dac41.entry.js +1 -0
- package/dist/webquark/p-97a89cae.entry.js +1 -0
- package/dist/webquark/{p-f911c90f.entry.js → p-99d785ca.entry.js} +1 -1
- package/dist/webquark/p-9e78b796.entry.js +1 -0
- package/dist/{playground/build/p-d4a915e5.entry.js → webquark/p-9ff7e5a4.entry.js} +1 -1
- package/dist/webquark/p-B4Mg1xEw.js +1 -0
- package/dist/webquark/p-B5ElFlHv.js +3 -0
- package/dist/webquark/p-BOdNg0jc.js +1 -0
- package/dist/webquark/p-BcL0NVv0.js +1 -0
- package/dist/webquark/p-CGml_DQ8.js +1 -0
- package/dist/webquark/p-C_RztzNv.js +5 -0
- package/dist/webquark/p-CoIMrUb3.js +1 -0
- package/dist/{playground/build/p-g9vOVxQ4.js → webquark/p-DKrPmn2y.js} +2 -2
- package/dist/webquark/{p-BqvCR2U8.js → p-DWO-pleQ.js} +1 -1
- package/dist/webquark/p-Dhsn99q4.js +1 -0
- package/dist/webquark/p-DstNl_WY.js +1 -0
- package/dist/webquark/p-GHhpSfZU.js +1 -0
- package/dist/webquark/p-SzKf4WZF.js +1 -0
- package/dist/webquark/p-c523ec6f.entry.js +1 -0
- package/dist/webquark/p-d0253d64.entry.js +1 -0
- package/dist/webquark/p-d0fbd2b1.entry.js +1 -0
- package/dist/webquark/{p-0d98e500.entry.js → p-dd115868.entry.js} +1 -1
- package/dist/webquark/{p-c4fd89b8.entry.js → p-f1bac94c.entry.js} +1 -1
- package/dist/webquark/p-f4f97e74.entry.js +1 -0
- package/dist/webquark/p-f63b7214.entry.js +1 -0
- package/dist/{playground/build/p-b465aebd.entry.js → webquark/p-f98f9439.entry.js} +1 -1
- package/dist/webquark/{p-de8813be.entry.js → p-f9ad63ff.entry.js} +1 -1
- package/dist/webquark/p-fe200f68.entry.js +1 -0
- package/dist/webquark/p-fe8c634a.entry.js +13 -0
- package/dist/webquark/p-fec6fe0a.entry.js +1 -0
- package/dist/webquark/webquark.css +1 -1
- package/dist/webquark/webquark.esm.js +1 -1
- package/package.json +17 -19
- package/scripts/webquark-serve.js +9 -7
- package/scripts/wq-switch/README.md +115 -103
- package/scripts/wq-switch/dist/index.js +129 -82
- package/scripts/wq-switch/dist/setup.js +81 -61
- package/dist/cjs/leaflet-maplibre-gl-BJKExsns.js +0 -1031
- package/dist/cjs/registry-BhkCNgxt.js +0 -179
- package/dist/cjs/tokens-DGECOqpA.js +0 -42
- package/dist/components/p-0PieXMX9.js +0 -1
- package/dist/components/p-BOYjkCNa.js +0 -1
- package/dist/components/p-BvBRW3dl.js +0 -1
- package/dist/components/p-Bw4TVbfm.js +0 -1
- package/dist/components/p-CFuqfXuv.js +0 -9
- package/dist/components/p-Cx1vCuMp.js +0 -1
- package/dist/components/p-D0Q2vrt5.js +0 -1
- package/dist/components/p-DmqVhVoj.js +0 -1
- package/dist/components/p-GU98U1DJ.js +0 -1
- package/dist/components/p-WJHaLJS_.js +0 -1
- package/dist/components/p-f95uguY1.js +0 -1
- package/dist/esm/leaflet-maplibre-gl-BVDAAs7w.js +0 -1026
- package/dist/esm/registry-BvBRW3dl.js +0 -173
- package/dist/esm/tokens-f95uguY1.js +0 -38
- package/dist/playground/build/p-0aea8464.entry.js +0 -1
- package/dist/playground/build/p-0aecd9b1.entry.js +0 -1
- package/dist/playground/build/p-139fec38.entry.js +0 -1
- package/dist/playground/build/p-17340abf.entry.js +0 -1
- package/dist/playground/build/p-303dcac8.entry.js +0 -1
- package/dist/playground/build/p-408bf48a.entry.js +0 -1
- package/dist/playground/build/p-47253466.entry.js +0 -1
- package/dist/playground/build/p-5f6860f2.entry.js +0 -13
- package/dist/playground/build/p-6b619655.entry.js +0 -1
- package/dist/playground/build/p-71e3d582.entry.js +0 -1
- package/dist/playground/build/p-8115ec23.entry.js +0 -1
- package/dist/playground/build/p-8ad43d7f.entry.js +0 -1
- package/dist/playground/build/p-9418caa0.entry.js +0 -1
- package/dist/playground/build/p-BvBRW3dl.js +0 -1
- package/dist/playground/build/p-CFuqfXuv.js +0 -9
- package/dist/playground/build/p-DbGG9Q40.js +0 -3
- package/dist/playground/build/p-DmqVhVoj.js +0 -1
- package/dist/playground/build/p-JgeOdXyP.js +0 -1
- package/dist/playground/build/p-WJHaLJS_.js +0 -1
- package/dist/playground/build/p-a4b36120.entry.js +0 -1
- package/dist/playground/build/p-aed4b219.entry.js +0 -1
- package/dist/playground/build/p-b3a07d94.entry.js +0 -1
- package/dist/playground/build/p-c1f3dca6.entry.js +0 -1
- package/dist/playground/build/p-c4899c2b.entry.js +0 -1
- package/dist/playground/build/p-cf8f7f2a.entry.js +0 -1
- package/dist/playground/build/p-d7d436c5.entry.js +0 -13
- package/dist/playground/build/p-eb71e335.entry.js +0 -1
- package/dist/playground/build/p-ed327679.entry.js +0 -1
- package/dist/playground/build/p-f95uguY1.js +0 -1
- package/dist/webquark/p-0aea8464.entry.js +0 -1
- package/dist/webquark/p-0aecd9b1.entry.js +0 -1
- package/dist/webquark/p-139fec38.entry.js +0 -1
- package/dist/webquark/p-17340abf.entry.js +0 -1
- package/dist/webquark/p-303dcac8.entry.js +0 -1
- package/dist/webquark/p-408bf48a.entry.js +0 -1
- package/dist/webquark/p-47253466.entry.js +0 -1
- package/dist/webquark/p-5f6860f2.entry.js +0 -13
- package/dist/webquark/p-6b619655.entry.js +0 -1
- package/dist/webquark/p-71e3d582.entry.js +0 -1
- package/dist/webquark/p-8115ec23.entry.js +0 -1
- package/dist/webquark/p-8ad43d7f.entry.js +0 -1
- package/dist/webquark/p-9418caa0.entry.js +0 -1
- package/dist/webquark/p-BvBRW3dl.js +0 -1
- package/dist/webquark/p-CFuqfXuv.js +0 -9
- package/dist/webquark/p-DbGG9Q40.js +0 -3
- package/dist/webquark/p-DmqVhVoj.js +0 -1
- package/dist/webquark/p-JgeOdXyP.js +0 -1
- package/dist/webquark/p-WJHaLJS_.js +0 -1
- package/dist/webquark/p-a4b36120.entry.js +0 -1
- package/dist/webquark/p-aed4b219.entry.js +0 -1
- package/dist/webquark/p-b3a07d94.entry.js +0 -1
- package/dist/webquark/p-c1f3dca6.entry.js +0 -1
- package/dist/webquark/p-c4899c2b.entry.js +0 -1
- package/dist/webquark/p-cf8f7f2a.entry.js +0 -1
- package/dist/webquark/p-d7d436c5.entry.js +0 -13
- package/dist/webquark/p-eb71e335.entry.js +0 -1
- package/dist/webquark/p-ed327679.entry.js +0 -1
- package/dist/webquark/p-f95uguY1.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,a as r,h as i}from"./p-DbGG9Q40.js";import{g as a,d as n,e as o,f as s,a as l,b as c,c as d,Q as h}from"./p-WJHaLJS_.js";class u{operations;revision=0;active;pendingAttachController;constructor(t){this.operations=t}getActiveState(){return{activeProvider:this.active?.provider,usingFallback:this.active?.usingFallback??!1}}async sync(t){const e=++this.revision;if(this.abortPendingAttach(),!this.isConfigured(t))return this.clearActiveLayer(),{kind:"empty",activeProvider:void 0,usingFallback:!1};const r=await this.createCandidate(t.requestedProvider,t,e);if("stale"===r.kind)return r;const i="ready"===r.kind?await this.commit(r.candidate,t.requestedProvider,!1,e):r;if("stale"===i.kind||"ready"===i.kind)return i;if("tiles"===t.requestedProvider||!t.tileUrl.trim())return{kind:"error",error:i.error,...this.getActiveState()};const a=await this.createCandidate("tiles",t,e);if("stale"===a.kind)return a;if("error"===a.kind)return{kind:"error",error:i.error,fallbackError:a.error,...this.getActiveState()};const n=await this.commit(a.candidate,"tiles",!0,e);return"ready"===n.kind?{...n,warning:i.error}:"error"===n.kind?{kind:"error",error:i.error,fallbackError:n.error,...this.getActiveState()}:n}destroy(){this.revision+=1,this.abortPendingAttach(),this.clearActiveLayer()}isConfigured(t){return"google"===t.requestedProvider?t.googleApiAvailable||t.googleApiKey.trim().length>0:"vector"===t.requestedProvider?t.vectorStyleUrl.trim().length>0:t.tileUrl.trim().length>0}async createCandidate(t,e,r){try{const i="google"===t?await this.operations.createGoogle(e):"vector"===t?await this.operations.createVector(e):this.operations.createTiles(e);return r!==this.revision?(this.removeLayer(i),{kind:"stale"}):{kind:"ready",candidate:i}}catch(t){return r===this.revision?{kind:"error",error:t}:{kind:"stale"}}}async commit(t,e,r,i){if(i!==this.revision)return this.removeLayer(t),{kind:"stale"};const a=new AbortController;this.pendingAttachController=a;try{await this.operations.attach(t,e,{replacing:void 0!==this.active,signal:a.signal})}catch(e){return this.clearPendingAttach(a),this.removeLayer(t),i!==this.revision||a.signal.aborted?{kind:"stale"}:{kind:"error",error:e,...this.getActiveState()}}if(this.clearPendingAttach(a),i!==this.revision)return this.removeLayer(t),{kind:"stale"};const n=this.active;return this.active={layer:t,provider:e,usingFallback:r},n?.layer!==t&&this.removeLayer(n?.layer),{kind:"ready",activeProvider:e,usingFallback:r}}clearActiveLayer(){this.removeLayer(this.active?.layer),this.active=void 0}abortPendingAttach(){this.pendingAttachController?.abort(),this.pendingAttachController=void 0}clearPendingAttach(t){this.pendingAttachController===t&&(this.pendingAttachController=void 0)}removeLayer(t){if(t)try{t.remove()}catch{}}}function m(t,e,r,i,a="full-batch"){const n=t.tileLayer(e,r),o=n._initTile.bind(n);if(n._initTile=t=>{o(t);const e=n.getTileSize();t.style.width=`${e.x+1}px`,t.style.height=`${e.y+1}px`},"progressive"===a&&function(t){const e=t.onAdd.bind(t);let r=!1;t.onAdd=i=>{const a=e(i);return function(t){if(null===t._tiles||"object"!=typeof t._tiles||Array.isArray(t._tiles))throw f()}(t),r||(function(t){const e=t._tileReady.bind(t),r=t._pruneTiles.bind(t),i=t._updateOpacity.bind(t),a=e=>{const r=t._pruneTiles;t._pruneTiles=()=>{};try{e()}finally{t._pruneTiles=r}};t._tileReady=(i,n,o)=>{const s=t._tiles[t._tileCoordsToKey(i)];if(!n)return s&&(s.progressiveLoadFailed=!1),void e(i,n,o);a((()=>e(i,n,o))),s&&(s.progressiveLoadFailed=!0,s.active=!1),r()},t._updateOpacity=()=>{a(i),(()=>{for(const e of Object.values(t._tiles))e.progressiveLoadFailed&&(e.active=!1)})(),r()}}(t),r=!0),a}}(function(t){const e=t;if("function"!=typeof e._pruneTiles||"function"!=typeof e._tileCoordsToKey||"function"!=typeof e._tileReady||"function"!=typeof e._updateOpacity||"function"!=typeof e.onAdd)throw f();return e}(n)),0===i)return n;const s=n._getTiledPixelBounds.bind(n);return n._getTiledPixelBounds=e=>{const r=s(e),a=n.getTileSize(),o=a.x*i,l=a.y*i;return new t.Bounds(r.min.subtract([o,l]),r.max.add([o,l]))},n}function f(){return new Error("Progressive raster loading is not supported by this Leaflet tile layer.")}function p(t){return"number"==typeof t&&Number.isFinite(t)&&t>=-90&&t<=90}function g(t){return"number"==typeof t&&Number.isFinite(t)&&t>=-180&&t<=180}function b(t){const{parsed:e,invalidJson:r}=function(t){if("string"!=typeof t)return{parsed:t,invalidJson:!1};if(!t.trim())return{parsed:void 0,invalidJson:!1};try{return{parsed:JSON.parse(t),invalidJson:!1}}catch{return{invalidJson:!0}}}(t);if(r)return{kind:"invalid",message:"maxBounds must be valid JSON or a bounds object."};if(void 0===e)return{kind:"clear"};if("object"!=typeof(i=e)||null===i)return{kind:"invalid",message:"maxBounds must be a bounds object."};var i;const{southLatitude:a,westLongitude:n,northLatitude:o,eastLongitude:s}=e;if(!p(a)||!p(o))return{kind:"invalid",message:"maxBounds latitude values must be finite numbers from -90 to 90."};if(!g(n)||!g(s))return{kind:"invalid",message:"maxBounds longitude values must be finite numbers from -180 to 180."};if(a>=o)return{kind:"invalid",message:"maxBounds southLatitude must be below northLatitude."};if(n>=s)return{kind:"invalid",message:"maxBounds westLongitude must be below eastLongitude; antimeridian-crossing bounds are not supported."};const l={southLatitude:a,westLongitude:n,northLatitude:o,eastLongitude:s};return{kind:"valid",bounds:l,leafletBounds:[[l.southLatitude,l.westLongitude],[l.northLatitude,l.eastLongitude]]}}function v(t){const e=Number.isFinite(t)?t:1;return Math.max(0,Math.min(1,e))}let k,w,q,y,x=0;function _(){return"undefined"!=typeof window&&"function"==typeof window.google?.maps?.Map}function M(){if(!_())throw new Error("The Maps library loaded without exposing google.maps.Map.")}const z=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],C=new Uint32Array(96);class A{static from(t){if(!t||void 0===t.byteLength||t.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[e,r]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const i=r>>4;if(1!==i)throw new Error(`Got v${i} data when expected v1.`);const a=z[15&r];if(!a)throw new Error("Unrecognized array type.");const[n]=new Uint16Array(t,2,1),[o]=new Uint32Array(t,4,1);return new A(o,n,a,void 0,t)}constructor(t,e=64,r=Float64Array,i=ArrayBuffer,a){if(isNaN(t)||t<0)throw new Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const n=z.indexOf(this.ArrayType),o=2*t*this.ArrayType.BYTES_PER_ELEMENT,s=t*this.IndexArrayType.BYTES_PER_ELEMENT,l=(8-s%8)%8;if(n<0)throw new Error(`Unexpected typed array class: ${r}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,t),this.coords=new r(a,8+s+l,2*t),this._pos=2*t,this._finished=!0;else{const a=this.data=new i(8+o+s+l);this.ids=new this.IndexArrayType(a,8,t),this.coords=new r(a,8+s+l,2*t),this._pos=0,this._finished=!1,new Uint8Array(a,0,2).set([219,16+n]),new Uint16Array(a,2,1)[0]=e,new Uint32Array(a,4,1)[0]=t}}add(t,e){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return L(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:a,coords:n,nodeSize:o}=this;C[0]=0,C[1]=a.length-1,C[2]=0;let s=3;const l=[];for(;s>0;){const c=C[--s],d=C[--s],h=C[--s];if(d-h<=o){for(let o=h;o<=d;o++){const s=n[2*o],c=n[2*o+1];s>=t&&s<=r&&c>=e&&c<=i&&l.push(a[o])}continue}const u=h+d>>1,m=n[2*u],f=n[2*u+1];m>=t&&m<=r&&f>=e&&f<=i&&l.push(a[u]),(0===c?t<=m:e<=f)&&(C[s++]=h,C[s++]=u-1,C[s++]=1-c),(0===c?r>=m:i>=f)&&(C[s++]=u+1,C[s++]=d,C[s++]=1-c)}return l}within(t,e,r){const i=[];return this.withinInto(t,e,r,i),i}withinInto(t,e,r,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:a,coords:n,nodeSize:o}=this;C[0]=0,C[1]=a.length-1,C[2]=0;let s=3,l=0;const c=r*r;for(;s>0;){const d=C[--s],h=C[--s],u=C[--s];if(h-u<=o){for(let r=u;r<=h;r++)E(n[2*r],n[2*r+1],t,e)<=c&&(i[l++]=a[r]);continue}const m=u+h>>1,f=n[2*m],p=n[2*m+1];E(f,p,t,e)<=c&&(i[l++]=a[m]),(0===d?t-r<=f:e-r<=p)&&(C[s++]=u,C[s++]=m-1,C[s++]=1-d),(0===d?t+r>=f:e+r>=p)&&(C[s++]=m+1,C[s++]=h,C[s++]=1-d)}return l}}function L(t,e,r,i,a,n){if(a-i<=r)return;const o=i+a>>1;P(t,e,o,i,a,n),L(t,e,r,i,o-1,1-n),L(t,e,r,o+1,a,1-n)}function P(t,e,r,i,a,n){for(;a>i;){if(a-i>600){const o=a-i+1,s=r-i+1,l=Math.log(o),c=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2<0?-1:1);P(t,e,r,Math.max(i,Math.floor(r-s*c/o+d)),Math.min(a,Math.floor(r+(o-s)*c/o+d)),n)}const o=e[2*r+n];let s=i,l=a;for($(t,e,i,r),e[2*a+n]>o&&$(t,e,i,a);s<l;){for($(t,e,s,l),s++,l--;e[2*s+n]<o;)s++;for(;e[2*l+n]>o;)l--}e[2*i+n]===o?$(t,e,i,l):(l++,$(t,e,l,a)),l<=r&&(i=l+1),r<=l&&(a=l-1)}}function $(t,e,r,i){S(t,r,i),S(e,2*r,2*i),S(e,2*r+1,2*i+1)}function S(t,e,r){const i=t[e];t[e]=t[r],t[r]=i}function E(t,e,r,i){const a=t-r,n=e-i;return a*a+n*n}const Z={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},B=1073741824,N=1/B,I=t=>(t-.5)*B,U=t=>t*N+.5;class O{constructor(t){const e=this.options=Object.assign(Object.create(Z),t);e.maxZoom=Math.min(e.maxZoom,30),e.minZoom=Math.min(e.minZoom,e.maxZoom),this.trees=new Array(e.maxZoom+1),this.stride=e.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:r,maxZoom:i}=this.options;e&&console.time("total time");const a=i+1,n=`z${a}: ${t.length} points`;e&&console.time(n);const o=this.stride;let s=t.length;for(const e of t){const t=e.geometry;t&&"MultiPoint"===t.type&&(s+=t.coordinates.length-1)}this.numPoints=s;const l=this.props=new Array(s),c=this.coords=new Float64Array(2*s);let d=null;const h=new Int32Array(s*o);let u=0,m=0;for(const e of t){const t=e.geometry;if(!t){m++;continue}const r=t.coordinates,i="MultiPoint"===t.type;for(let t=0,n=i?r.length:1;t<n;t++,m++){const[n,f]=i?r[t]:r,p=R(n),g=j(f);c[2*m]=p,c[2*m+1]=g,h[u]=I(p),h[u+1]=I(g),h[u+2]=a,h[u+3]=m,h[u+4]=-1,h[u+5]=1,l[m]=e.properties,void 0!==e.id&&(d||(d=new Array(s)),d[m]=e.id),u+=o}}this.ids=d;let f=u===h.length?h:h.subarray(0,u),p=u/o;this.trees[i+1]=this._createTree(f,p),e&&console.timeEnd(n);let g=null;for(let t=i;t>=r;t--){const r=performance.now(),i=g||new Int32Array(p*o);g=null;const a=this._cluster(f,p,t,i);a===p?(this.trees[t]=this.trees[t+1],g=i):(this.trees[t]=this._createTree(i,a),f=i,p=a),e&&console.log(`z${t}: ${this.trees[t].numItems} clusters in ${(performance.now()-r).toFixed(2)}ms`)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[1]));let a=180===t[2]?180:((t[2]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,a=180;else if(r>a){const t=this.getClusters([r,i,180,n],e),o=this.getClusters([-180,i,a,n],e);return t.concat(o)}const o=this.trees[this._limitZoom(e)],s=o.range(I(R(r)),I(j(n)),I(R(a)),I(j(i))),l=o.data,c=[];for(const t of s)c.push(this._featureJSON(l,this.stride*t));return c}getChildren(t){const e=this._getOriginId(t),r=this._getOriginZoom(t),i="No cluster with the specified id.",a=this.trees[r];if(!a)throw new Error(i);const n=a.data;if(e>=a.numItems)throw new Error(i);const o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=a.within(n[e*this.stride],n[e*this.stride+1],o*B),l=[];for(const e of s){const r=e*this.stride;n[r+4]===t&&l.push(this._featureJSON(n,r))}if(0===l.length)throw new Error(i);return l}getLeaves(t,e,r){const i=[];return this._appendLeaves(i,t,e=e||10,r=r||0,0),i}getTile(t,e,r){return this._getTile(t,e,r,!1)}getTileRaw(t,e,r){return this._getTile(t,e,r,!0)}_getTile(t,e,r,i){const a=this.trees[this._limitZoom(t)],n=Math.pow(2,t),{extent:o,radius:s}=this.options,l=s/o,c=I((r-l)/n),d=I((r+1+l)/n),h={features:[]};return this._addTileFeatures(a.range(I((e-l)/n),c,I((e+1+l)/n),d),a.data,e,r,n,h,i),0===e&&this._addTileFeatures(a.range(I(1-l/n),c,I(1),d),a.data,n,r,n,h,i),e===n-1&&this._addTileFeatures(a.range(I(0),c,I(l/n),d),a.data,-1,r,n,h,i),h.features.length?h:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,i,a){const n=this.getChildren(e);for(const e of n){const n=e.properties;if(n&&n.cluster?a+n.point_count<=i?a+=n.point_count:a=this._appendLeaves(t,n.cluster_id,r,i,a):a<i?a++:t.push(e),t.length===r)break}return a}_createTree(t,e){const r=new A(e,this.options.nodeSize,Int32Array),i=this.stride;for(let a=0;a<e;a++)r.add(t[a*i],t[a*i+1]);return r.finish(),r.data=t,r}_addTileFeatures(t,e,r,i,a,n,o){for(const s of t){const t=s*this.stride,l=e[t+5]>1;let c,d,h;if(l)c=T(e,t,this.clusterProps),d=U(e[t]),h=U(e[t+1]);else{const r=e[t+3];c=this.props[r],d=this.coords[2*r],h=this.coords[2*r+1]}const u=Math.round(this.options.extent*(d*a-r)),m=Math.round(this.options.extent*(h*a-i)),f=o?{type:4,x:u,y:m,tags:c}:{type:1,geometry:[[u,m]],tags:c},p=e[t+3],g=l||this.options.generateId?p:this.ids?this.ids[p]:void 0;void 0!==g&&(f.id=g),n.features.push(f)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e,r,i){const{radius:a,extent:n,reduce:o,minPoints:s,maxZoom:l}=this.options,c=a/(n*(1<<r))*B,d=l+1,h=this.trees[r+1],u=this.stride,m=e*u,f=new Uint32Array(e);let p=0;for(let e=0;e<m;e+=u){if(t[e+2]<=r)continue;t[e+2]=r;const a=t[e],n=t[e+1],l=h.withinInto(a,n,c,f),m=t[e+5];let g=m;for(let e=0;e<l;e++){const i=f[e]*u;t[i+2]>r&&(g+=t[i+5])}if(g>m&&g>=s){let s,c=a*m,h=n*m,b=-1;const v=(e/u<<5)+(r+1)+this.numPoints;for(let i=0;i<l;i++){const a=f[i]*u;if(t[a+2]<=r)continue;t[a+2]=r;const n=t[a+5];c+=t[a]*n,h+=t[a+1]*n,t[a+4]=v,o&&(s||(s=this._map(t,e,!0),b=this.clusterProps.length,this.clusterProps.push(s)),o(s,this._map(t,a)))}t[e+4]=v,i[p]=c/g,i[p+1]=h/g,i[p+2]=d,i[p+3]=v,i[p+4]=-1,i[p+5]=g,o&&(i[p+6]=b),p+=u}else{for(let r=0;r<u;r++)i[p+r]=t[e+r];if(p+=u,g>1)for(let e=0;e<l;e++){const a=f[e]*u;if(!(t[a+2]<=r)){t[a+2]=r;for(let e=0;e<u;e++)i[p+e]=t[a+e];p+=u}}}}return p/u}_getOriginId(t){return t-this.numPoints>>5}_getOriginZoom(t){return(t-this.numPoints)%32}_featureJSON(t,e){const r=t[e+3],i=t[e+5]>1,a=i?r:this.ids?this.ids[r]:void 0,n={type:"Feature",properties:i?T(t,e,this.clusterProps):this.props[r],geometry:{type:"Point",coordinates:i?[F(U(t[e])),V(U(t[e+1]))]:[F(this.coords[2*r]),V(this.coords[2*r+1])]}};return void 0!==a&&(n.id=a),n}_map(t,e,r){if(t[e+5]>1){const i=this.clusterProps[t[e+6]];return r?Object.assign({},i):i}const i=this.props[t[e+3]],a=this.options.map(i);return r&&a===i?Object.assign({},a):a}}function T(t,e,r){const i=t[e+5],a=i>=1e4?`${Math.round(i/1e3)}k`:i>=1e3?Math.round(i/100)/10+"k":i,n=t[e+6],o=-1===n?{}:Object.assign({},r[n]);return Object.assign(o,{cluster:!0,cluster_id:t[e+3],point_count:i,point_count_abbreviated:a})}function R(t){return t/360+.5}function j(t){const e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function F(t){return 360*(t-.5)}function V(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}const G=new Set(a),Q=new Set(n),D=new Set(o),J=new Set(s),K=new Set(l),W=new Set(c),X=new Set(d);function H(t){return"object"==typeof t&&null!==t}function Y(t){return"string"==typeof t&&G.has(t)?t:"default"}function tt(t,e){return"string"==typeof t&&e.has(t)?t:void 0}function et(t){if("string"!=typeof t)return;const e=t.trim();return e.length>0?e:void 0}function rt(t){return"number"==typeof t&&Number.isFinite(t)?t:void 0}function it(t){return et(t)??h}function at(t){return it(t.clusterGroup)}function nt(t){if(!H(t))return;const e=et(t.label),r="number"==typeof t.value&&Number.isFinite(t.value)?t.value:et(t.value);return e&&void 0!==r?{label:e,value:r,layout:tt(t.layout,W)??"compact"}:void 0}function ot(t){if(!H(t)||!function(t){return"string"==typeof t&&t.trim().length>0||"number"==typeof t&&Number.isFinite(t)}(t.id))return;if("number"!=typeof t.latitude||!Number.isFinite(t.latitude)||t.latitude<-90||t.latitude>90)return;if("number"!=typeof t.longitude||!Number.isFinite(t.longitude)||t.longitude<-180||t.longitude>180)return;const e="string"==typeof t.label&&t.label.trim().length>0?t.label:String(t.id),r=et(t.imageUrl),i=et(t.fallbackText),a=et(t.icon),n=rt(t.iconSize),o=rt(t.iconOffsetX),s=rt(t.iconOffsetY),l=tt(t.kind,Q),c="icon"!==l||a?l:"dot",d=tt(t.size,J),h=tt(t.ring,D),u=function(t){if(!H(t))return;const e=et(t.ariaLabel),r=et(t.icon),i=et(t.text);return e&&(r||i)?{ariaLabel:e,variant:Y(t.variant),...r?{icon:r}:{},...i?{text:i}:{}}:void 0}(t.badge),m=function(t){if(!H(t))return;const e=et(t.title);if(!e)return;const r=et(t.subtitle),i=et(t.meta),a=function(t){if(!Array.isArray(t))return;const e=t.map(nt).filter((t=>void 0!==t)).slice(0,6);return e.length>0?e:void 0}(t.stats),n=function(t){if(!H(t))return;const e=et(t.label);return e?{label:e,variant:Y(t.variant)}:void 0}(t.status),o=tt(t.placement,K)??"auto",s=tt(t.visibility,X)??"always";return{title:e,variant:Y(t.variant),placement:o,visibility:s,...r?{subtitle:r}:{},...i?{meta:i}:{},...a?{stats:a}:{},...n?{status:n}:{}}}(t.callout);return{id:t.id,latitude:t.latitude,longitude:t.longitude,label:e,clusterable:!1!==t.clusterable,clusterGroup:it(t.clusterGroup),variant:Y(t.variant),...r?{imageUrl:r}:{},...i?{fallbackText:i}:{},...c?{kind:c}:{},...a?{icon:a}:{},...void 0!==n?{iconSize:n}:{},...void 0!==o?{iconOffsetX:o}:{},...void 0!==s?{iconOffsetY:s}:{},...d?{size:d}:{},...h?{ring:h}:{},...!0===t.pulse?{pulse:!0}:{},...u?{badge:u}:{},...m?{callout:m}:{}}}function st(t){return"number"==typeof t?`number:${t}`:`string:${t}`}function lt(t,e,r){return Math.max(e,Math.min(r,Math.round(t)))}function ct(t,e){return`${e.radius}:${e.minPoints}:${e.maxZoom}:${t.map((t=>`${st(t.id)}@${t.longitude},${t.latitude}`)).sort().join("|")}`}function dt(t){return"cluster"in t.properties&&!0===t.properties.cluster}function ht(t,e){const r=new O({radius:e.radius,minPoints:e.minPoints,maxZoom:e.maxZoom});return r.load(t.map((t=>({type:"Feature",geometry:{type:"Point",coordinates:[t.longitude,t.latitude]},properties:{markerKey:st(t.id)}})))),r}class ut{clusterGroups=new Map;standaloneMarkers=new Map;load(t,e){const r=[...t].sort(((t,e)=>st(t.id).localeCompare(st(e.id))));this.standaloneMarkers.clear();const i=new Map;for(const t of r){const e=st(t.id);if(!1===t.clusterable)this.standaloneMarkers.set(e,t);else{const e=at(t),r=i.get(e)??[];r.push(t),i.set(e,r)}}const a=new Map,n=[...i].sort((([t],[e])=>t.localeCompare(e)));for(const[t,r]of n){const i=new Map(r.map((t=>[st(t.id),t]))),n=ct(r,e),o=this.clusterGroups.get(t);a.set(t,{index:o?.signature===n?o.index:ht(r,e),markers:i,signature:n})}this.clusterGroups=a}getViewportItems(t,e,r){const i=void 0===r?void 0:st(r),a=new Map;for(const[r,n]of this.clusterGroups)for(const o of n.index.getClusters(t,Math.max(0,Math.floor(e)))){if(!dt(o)){const t=n.markers.get(o.properties.markerKey);if(t){const e=st(t.id);a.set(e,{kind:"marker",key:e,marker:t})}continue}const t=o.properties.cluster_id,e=n.index.getLeaves(t,1/0).map((t=>t.properties.markerKey)).filter((t=>n.markers.has(t))).sort(),s=e.map((t=>n.markers.get(t)?.id)).filter((t=>void 0!==t)),l=String(t),c=`cluster:${encodeURIComponent(r)}:${l}`;a.set(c,{kind:"cluster",key:c,clusterId:l,clusterGroup:r,markerIds:s,markerKeys:e,latitude:o.geometry.coordinates[1],longitude:o.geometry.coordinates[0],count:s.length,expansionZoom:n.index.getClusterExpansionZoom(t),containsSelection:void 0!==i&&e.includes(i)})}for(const[e,r]of this.standaloneMarkers)mt(r,t)&&a.set(e,{kind:"marker",key:e,marker:r});return[...a.values()].sort(((t,e)=>t.key.localeCompare(e.key)))}clear(){this.clusterGroups.clear(),this.standaloneMarkers.clear()}}function mt(t,[e,r,i,a]){return t.longitude>=e&&t.longitude<=i&&t.latitude>=r&&t.latitude<=a}function ft(t){return t.x+t.offset.x}function pt(t){return t.y+t.offset.y}function gt(t,e){let r=2166136261;for(const i of`${t}\0${e}`)r^=i.charCodeAt(0),r=Math.imul(r,16777619);const i=(r>>>0)%360*(Math.PI/180);return{x:Math.cos(i),y:Math.sin(i)}}const bt=["kind-dot","kind-avatar","kind-icon"],vt=["ring-none","ring-solid","ring-dashed"];function kt(t,e){const r=t.createElement("q-icon");return r.className=e,r.setAttribute("size","100%"),r.setAttribute("aria-hidden","true"),r}function wt(t,e){t.hidden=!e,e?t.setAttribute("name",e):t.removeAttribute("name")}function qt(t,e,r){Number.isFinite(r)?t.style.setProperty(e,`${Object.is(r,-0)?0:r}px`):t.style.removeProperty(e)}const yt=s.map((t=>_t(t)));class xt{options;layers=new Map;markers=new Map;clusterIndex=new ut;visibleItems=new Map;pendingFocusMarkerKey;handleViewportChange=()=>this.reconcile();constructor(t){this.options=t,t.map.on("moveend zoomend",this.handleViewportChange)}sync(t){const e=function(t){const e=new Map;for(const r of function(t){if(Array.isArray(t))return t;try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}}(t)){const t=ot(r);t&&e.set(st(t.id),t)}return[...e.values()]}(t);this.markers.clear();for(const t of e)this.markers.set(st(t.id),t);const r=this.options.getClusteringOptions();r.enabled?this.clusterIndex.load(e,r):this.clusterIndex.clear(),this.reconcile()}syncSelection(){this.reconcile()}getVisibilityTarget(t){const e=st(t),r=this.markers.get(e);if(!r)return;const i=this.layers.get(e);if("marker"===i?.kind)return{latitude:r.latitude,longitude:r.longitude,rendered:{kind:i.kind,element:i.element}};for(const t of this.layers.values())if(t.markerKeys.includes(e))return{latitude:r.latitude,longitude:r.longitude,rendered:{kind:t.kind,element:t.element}};return{latitude:r.latitude,longitude:r.longitude}}destroy(){this.options.map.off("moveend zoomend",this.handleViewportChange);for(const t of[...this.layers.keys()])this.remove(t);this.visibleItems.clear(),this.markers.clear(),this.clusterIndex.clear()}reconcile(){const t=this.captureFocusIntent(),e=this.getVisibleItems();this.visibleItems=new Map(e.map((t=>[t.key,t])));for(const t of[...this.layers.keys()])this.visibleItems.has(t)||this.remove(t);for(const t of e){const e=this.layers.get(t.key);e&&e.kind!==t.kind&&this.remove(t.key);const r=this.layers.get(t.key)??this.add(t);r&&this.update(r,t)}this.syncCollisionOffsets(e);const r=t&&this.layers.get(t.renderKey)?.element===t.element;this.pendingFocusMarkerKey?this.restoreFocus(this.pendingFocusMarkerKey)&&(this.pendingFocusMarkerKey=void 0):t&&!r&&(this.restoreFocus(t.markerKey)||this.options.map.getContainer().focus())}getVisibleItems(){if(!this.options.getClusteringOptions().enabled)return[...this.markers].map((([t,e])=>({kind:"marker",key:t,marker:e})));const t=this.options.map.getBounds().pad(.2),e=Math.max(-90,t.getSouth()),r=Math.min(90,t.getNorth()),i=Math.max(-180,t.getWest()),a=Math.min(180,t.getEast());return this.clusterIndex.getViewportItems(a>i?[i,e,a,r]:[-180,e,180,r],this.options.map.getZoom(),this.options.getSelectedMarkerId())}add(t){const e=this.options.map.getContainer().ownerDocument,r="marker"===t.kind?function(t){const e=t.createElement("span");e.className="q-map-marker",e.setAttribute("part","marker");const r=t.createElement("span");r.className="q-map-marker__content",r.setAttribute("aria-hidden","true");const i=t.createElement("span");i.className="q-map-marker__center";const a=t.createElement("span");a.className="q-map-marker__fallback",a.hidden=!0;const n=t.createElement("img");n.className="q-map-marker__image",n.alt="",n.decoding="async",n.draggable=!1,n.hidden=!0,n.setAttribute("aria-hidden","true"),n.addEventListener("load",(()=>{n.dataset.source===n.getAttribute("src")&&(n.hidden=!1,i.classList.add("has-image"))})),n.addEventListener("error",(()=>{n.dataset.source===n.getAttribute("src")&&(n.hidden=!0,i.classList.remove("has-image"))}));const o=kt(t,"q-map-marker__icon");o.hidden=!0;const s=t.createElement("span");s.className="q-map-marker__badge",s.setAttribute("part","marker-badge"),s.hidden=!0;const l=kt(t,"q-map-marker__badge-icon");l.hidden=!0;const c=t.createElement("span");return c.className="q-map-marker__badge-text",c.hidden=!0,i.append(a,n,o),s.append(l,c),r.append(i,s),e.append(r),e}(e):function(t){const e=t.createElement("span");e.className="q-map-cluster",e.setAttribute("part","cluster");const r=t.createElement("span");r.className="q-map-cluster__content",r.setAttribute("aria-hidden","true");const i=t.createElement("span");return i.className="q-map-cluster__count",r.append(i),e.append(r),e}(e),i="marker"===t.kind?"q-map-marker-position":"q-map-cluster-position",a="marker"===t.kind?t.marker.label:`${t.count} map markers`,n=this.options.leaflet.marker([this.getLatitude(t),this.getLongitude(t)],{bubblingMouseEvents:!1,icon:this.options.leaflet.divIcon({className:i,html:r,iconAnchor:[0,0],iconSize:[0,0]}),keyboard:!1,riseOnHover:!0,riseOffset:1e3,title:a,zIndexOffset:this.getZIndexOffset(t)});n.addTo(this.options.map);const o=n.getElement();if(!o)return void n.remove();if(!o.contains(r))return void n.remove();const s=e=>{e.stopPropagation(),this.activate(t.key,e)},l=e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),this.activate(t.key,e))};r.addEventListener("click",s),r.addEventListener("keydown",l);const c={kind:t.kind,layer:n,element:r,markerKeys:[],click:s,keydown:l};return this.layers.set(t.key,c),c}update(t,e){if(t.layer.setLatLng([this.getLatitude(e),this.getLongitude(e)]),t.layer.setZIndexOffset(this.getZIndexOffset(e)),t.markerKeys="marker"===e.kind?[st(e.marker.id)]:e.markerKeys,"marker"===e.kind){const i=this.isSelected(e.marker.id);return this.syncMarkerSize(t,e.marker.size),function(t,e,r){for(const e of a)t.classList.remove(`variant-${e}`);t.classList.remove(...bt,...vt),t.classList.add(`variant-${e.variant??"default"}`,`ring-${e.ring??"none"}`);const i="icon"!==e.kind||e.icon?e.kind:"dot";i&&t.classList.add(`kind-${i}`),t.classList.toggle("is-pulsing",!0===e.pulse),t.classList.toggle("is-selected",r),qt(t,"--q-map-marker-icon-size",e.iconSize),qt(t,"--q-map-marker-icon-offset-x",e.iconOffsetX),qt(t,"--q-map-marker-icon-offset-y",e.iconOffsetY);const n=t.querySelector(".q-map-marker__center"),o=n?.querySelector(".q-map-marker__fallback"),s=n?.querySelector(".q-map-marker__image"),l=n?.querySelector(".q-map-marker__icon");if(!(n&&o&&s&&l))return;const c="avatar"===i||void 0===i,d=c?e.fallbackText??"":"",h=c?e.imageUrl:void 0,u="icon"===i?e.icon:void 0;o.textContent=d,o.hidden=!d,function(t,e,r){if(!r)return e.hidden=!0,e.removeAttribute("src"),delete e.dataset.source,void t.classList.remove("has-image");e.dataset.source!==r&&(e.hidden=!0,t.classList.remove("has-image"),e.dataset.source=r,e.src=r)}(n,s,h),wt(l,u),t.classList.toggle("has-content",Boolean(d||h||u));const m=t.querySelector(".q-map-marker__badge"),f=m?.querySelector(".q-map-marker__badge-icon"),p=m?.querySelector(".q-map-marker__badge-text");if(m&&f&&p){for(const t of a)m.classList.remove(`variant-${t}`);m.hidden=!e.badge,m.classList.add(`variant-${e.badge?.variant??"default"}`),wt(f,e.badge?.icon),p.textContent=e.badge?.text??"",p.hidden=!e.badge?.text}}(t.element,e.marker,i),t.element.setAttribute("role","button"),t.element.setAttribute("tabindex","0"),t.element.setAttribute("aria-label",(r=e.marker).badge?`${r.label}. ${r.badge.ariaLabel}`:r.label),t.element.setAttribute("aria-pressed",i?"true":"false"),t.element.setAttribute("data-marker-id",e.key),t.element.setAttribute("title",e.marker.label),void this.syncCallout(t,e.marker,i)}var r;this.unbindCallout(t),function(t,e,r){const i=t.querySelector(".q-map-cluster__count");i&&(i.textContent=e>999?Math.floor(e/100)/10+"k":String(e)),t.classList.toggle("contains-selection",r)}(t.element,e.count,e.containsSelection),t.element.setAttribute("role","button"),t.element.setAttribute("tabindex","0"),t.element.setAttribute("aria-label",`${e.count} map markers${e.containsSelection?", including the selected marker":""}`),t.element.setAttribute("part",`cluster cluster-group-${e.clusterGroup.toLowerCase().replace(/[^a-z0-9_-]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")||"default"}`),t.element.setAttribute("data-cluster-id",e.clusterId),t.element.setAttribute("data-cluster-group",e.clusterGroup),t.element.setAttribute("title",`${e.count} map markers`),t.element.removeAttribute("aria-pressed")}getZIndexOffset(t){return"marker"===t.kind&&!1===t.marker.clusterable?2e3:0}syncMarkerSize(t,e){const r=t.layer.getElement();r&&(r.classList.remove(...yt),e&&r.classList.add(_t(e)))}syncCollisionOffsets(t){const e=[];for(const r of t){const t=this.layers.get(r.key);if(!t||t.kind!==r.kind)continue;const i=this.options.map.latLngToContainerPoint([this.getLatitude(r),this.getLongitude(r)]),a=t.layer.getElement(),n=a?.getBoundingClientRect(),o=Math.max(n?.width??0,n?.height??0)||("cluster"===r.kind?32:20);e.push({key:r.key,x:i.x,y:i.y,diameter:o})}const r=function(t){const e=t.filter((t=>Number.isFinite(t.x)&&Number.isFinite(t.y)&&Number.isFinite(t.diameter)&&t.diameter>0)).map((t=>({...t,collisionRadius:.75*t.diameter*.5,offset:{x:0,y:0}}))).sort(((t,e)=>t.key.localeCompare(e.key))),r=Math.max(0,...e.map((t=>t.collisionRadius)));for(let t=0;t<12;t+=1){let t=!1;const i=[...e].sort(((t,e)=>ft(t)-ft(e)||pt(t)-pt(e)||t.key.localeCompare(e.key)));for(let e=0;e<i.length;e+=1){const a=i[e];if(a)for(let n=e+1;n<i.length;n+=1){const e=i[n];if(!e)continue;if(ft(e)-ft(a)>=a.collisionRadius+r)break;const o=ft(e)-ft(a),s=pt(e)-pt(a),l=Math.hypot(o,s),c=a.collisionRadius+e.collisionRadius;if(l+.01>=c)continue;const d=l>.01?{x:o/l,y:s/l}:gt(a.key,e.key),h=.5*(c-l);a.offset.x-=d.x*h,a.offset.y-=d.y*h,e.offset.x+=d.x*h,e.offset.y+=d.y*h,t=!0}}if(!t)break}return new Map(e.map((t=>[t.key,t.offset])))}(e);for(const t of e){const e=this.layers.get(t.key);if(!e)continue;const i=r.get(t.key);!i||Math.abs(i.x)<.01&&Math.abs(i.y)<.01?(e.element.style.removeProperty("translate"),this.syncCalloutCollisionOffset(e,0,0)):(e.element.style.setProperty("translate",`${Mt(i.x)}px ${Mt(i.y)}px`),this.syncCalloutCollisionOffset(e,i.x,i.y))}}syncCalloutCollisionOffset(t,e,r){const i=t.layer.getTooltip();if(!i)return;const a=Mt(e),n=Mt(r),o=`${a}:${n}`;t.calloutCollisionOffset===o||void 0===t.calloutCollisionOffset&&0===a&&0===n||(t.calloutCollisionOffset=o,i.options.offset=this.options.leaflet.point(a,n),i.update())}syncCallout(t,e,r){const i=e.callout;if(!i||!i||"selected"===i.visibility&&!r)return void this.unbindCallout(t);const n=i.placement??"auto";t.calloutBound&&t.calloutPlacement!==n&&this.unbindCallout(t),t.calloutContent??=function(t){const e=t.createElement("div");e.className="q-map-callout__content",e.setAttribute("aria-hidden","true");const r=t.createElement("span");r.className="q-map-callout__heading";const i=t.createElement("span");i.className="q-map-callout__title";const a=t.createElement("span");a.className="q-map-callout__status",a.hidden=!0;const n=t.createElement("span");n.className="q-map-callout__subtitle",n.hidden=!0;const o=t.createElement("span");o.className="q-map-callout__meta",o.hidden=!0;const s=t.createElement("dl");return s.className="q-map-callout__stats",s.hidden=!0,r.append(i,a),e.append(r,n,o,s),e}(t.element.ownerDocument),function(t,e){const r=t.querySelector(".q-map-callout__title"),i=t.querySelector(".q-map-callout__subtitle"),n=t.querySelector(".q-map-callout__status"),o=t.querySelector(".q-map-callout__meta"),s=t.querySelector(".q-map-callout__stats");if(r&&i&&n&&o&&s){for(const e of a)t.classList.remove(`variant-${e}`);t.classList.add(`variant-${e.variant??"default"}`),r.textContent=e.title,i.textContent=e.subtitle??"",i.hidden=!e.subtitle;for(const t of a)n.classList.remove(`variant-${t}`);n.classList.add(`variant-${e.status?.variant??"default"}`),n.textContent=e.status?.label??"",n.hidden=!e.status,o.textContent=e.meta??"",o.hidden=!e.meta,function(t,e){const r=e.map((e=>{const r=t.ownerDocument.createElement("div");r.className=`q-map-callout__stat layout-${e.layout??"compact"}`;const i=t.ownerDocument.createElement("dt");i.className="q-map-callout__stat-label",i.textContent=e.label;const a=t.ownerDocument.createElement("dd");return a.className="q-map-callout__stat-value",a.textContent=String(e.value),r.append(i,a),r}));t.textContent="",t.append(...r),t.hidden=0===r.length}(s,e.stats??[])}}(t.calloutContent,i),t.calloutPlacement=n,t.calloutBound||(t.layer.bindTooltip(t.calloutContent,{className:"q-map-callout",direction:n,interactive:!1,opacity:1,permanent:!0}),t.calloutBound=!0),t.layer.setTooltipContent(t.calloutContent),t.layer.openTooltip();const o=t.layer.getTooltip()?.getElement();o?.setAttribute("part","marker-callout"),o?.setAttribute("aria-hidden","true")}unbindCallout(t){t.calloutBound&&(t.layer.unbindTooltip(),t.calloutBound=!1,t.calloutCollisionOffset=void 0)}activate(t,e){const r=this.visibleItems.get(t);r&&("marker"!==r.kind?this.activateCluster(r,e):this.options.onMarkerSelect(r.marker,e))}activateCluster(t,e){const r=Math.min(this.options.map.getMaxZoom(),Math.max(this.options.map.getZoom()+1,t.expansionZoom));if(!this.options.onClusterSelect({clusterId:t.clusterId,clusterGroup:t.clusterGroup,markerIds:t.markerIds,latitude:t.latitude,longitude:t.longitude,expansionZoom:r,originalEvent:e})){if(e instanceof KeyboardEvent){const e=this.options.getSelectedMarkerId(),r=void 0===e?void 0:st(e);this.pendingFocusMarkerKey=r&&t.markerKeys.includes(r)?r:t.markerKeys[0]}this.options.map.setView([t.latitude,t.longitude],r,{animate:!this.options.prefersReducedMotion()})}}captureFocusIntent(){for(const[t,e]of this.layers){if(e.element.getRootNode().activeElement!==e.element)continue;const r=this.options.getSelectedMarkerId(),i=void 0===r?void 0:st(r);return{element:e.element,renderKey:t,markerKey:i&&e.markerKeys.includes(i)?i:e.markerKeys[0]}}}restoreFocus(t){const e=this.layers.get(t);if("marker"===e?.kind)return e.element.focus(),!0;for(const e of this.layers.values())if("cluster"===e.kind&&e.markerKeys.includes(t))return e.element.focus(),!0;return!1}isSelected(t){const e=this.options.getSelectedMarkerId();return void 0!==e&&st(e)===st(t)}getLatitude(t){return"marker"===t.kind?t.marker.latitude:t.latitude}getLongitude(t){return"marker"===t.kind?t.marker.longitude:t.longitude}remove(t){const e=this.layers.get(t);e&&(e.element.removeEventListener("click",e.click),e.element.removeEventListener("keydown",e.keydown),this.unbindCallout(e),e.layer.remove(),this.layers.delete(t))}}function _t(t){return`size-${t}`}function Mt(t){return Math.round(100*t)/100}const zt=.01;function Ct(t,e,r){const i=Pt(t),a=Pt(e);if(!i||!a)return;if($t(i)>$t(a)+zt||St(i)>St(a)+zt)return;const n=r.map(Pt).filter((t=>void 0!==t)).map((t=>{return e=t,r=a,Pt({top:Math.max(e.top,r.top),right:Math.min(e.right,r.right),bottom:Math.min(e.bottom,r.bottom),left:Math.max(e.left,r.left)});var e,r})).filter((t=>void 0!==t)),o=new Set([0,a.left-i.left,a.right-i.right]),s=new Set([0,a.top-i.top,a.bottom-i.bottom]);for(const t of n)o.add(t.left-i.right),o.add(t.right-i.left),s.add(t.top-i.bottom),s.add(t.bottom-i.top);let l,c=Number.POSITIVE_INFINITY;for(const t of o)for(const e of s){const r=Bt(i,t,e);if(!Nt(a,r))continue;if(n.some((t=>It(r,t))))continue;const o=t*t+e*e;o+zt<c&&(l={x:t,y:e},c=o)}return l}function At(t,e,r){const i=Pt(t),a=Pt(e);return!(!i||!a||!Nt(a,i)||r.some((t=>{const e=Pt(t);return!!e&&It(i,e)})))}function Lt(t,e){const r=Et(t.getBoundingClientRect());if("marker"===e){const e=Math.max(function(t){if(!t.classList.contains("ring-solid")&&!t.classList.contains("ring-dashed"))return 0;const e=t.ownerDocument.defaultView;if(!e)return 7;const r=e.getComputedStyle(t,"::after"),i=[r.top,r.right,r.bottom,r.left].map((t=>Number.parseFloat(t))).filter(Number.isFinite).map((t=>Math.max(0,-t)));return Math.max(7,...i)}(t),t.classList.contains("is-selected")?3:0);let n=Zt(r,e);const o=t.querySelector(".q-map-marker__badge:not([hidden])");return o&&(i=n,a=Et(o.getBoundingClientRect()),n={top:Math.min(i.top,a.top),right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom),left:Math.min(i.left,a.left)}),n}var i,a;return Zt(r,t.classList.contains("contains-selection")?7:4)}function Pt(t){const{top:e,right:r,bottom:i,left:a}=t;if([e,r,i,a].every(Number.isFinite)&&!(r<=a||i<=e))return{top:e,right:r,bottom:i,left:a}}function $t(t){return t.right-t.left}function St(t){return t.bottom-t.top}function Et(t){return{top:t.top,right:t.right,bottom:t.bottom,left:t.left}}function Zt(t,e){return{top:t.top-e,right:t.right+e,bottom:t.bottom+e,left:t.left-e}}function Bt(t,e,r){return{top:t.top+r,right:t.right+e,bottom:t.bottom+r,left:t.left+e}}function Nt(t,e){return e.left>=t.left-zt&&e.top>=t.top-zt&&e.right<=t.right+zt&&e.bottom<=t.bottom+zt}function It(t,e){return t.left<e.right-zt&&t.right>e.left+zt&&t.top<e.bottom-zt&&t.bottom>e.top+zt}const Ut=1e4;function Ot(){const t=new Error("Raster tile loading was cancelled.");return t.name="AbortError",t}function Tt(t){return Number.isFinite(t)?Math.max(0,Math.min(.5,t)):.2}const Rt=["roadmap","satellite","terrain","hybrid"],jt=class{constructor(r){t(this,r),this.qReady=e(this,"qReady"),this.qMapClick=e(this,"qMapClick"),this.qMarkerSelect=e(this,"qMarkerSelect"),this.qClusterSelect=e(this,"qClusterSelect"),this.qStatusChange=e(this,"qStatusChange"),this.qError=e(this,"qError")}get el(){return r(this)}attribution="";attributionUrl="";markers=[];clusterMarkers=!1;clusterRadius=48;clusterMinPoints=2;clusterMaxZoom;centerLatitude=0;centerLongitude=0;zoom=2;zoomControls=!0;minZoom=0;maxZoom=19;maxBounds;maxBoundsViscosity=1;selectedMarkerId;provider="tiles";tileUrl="";tilePreloadBuffer=0;rasterTileLoadingPolicy="full-batch";vectorStyleUrl="";vectorPadding=.2;googleApiKey="";googleMapType="roadmap";ariaLabel="Interactive map";qReady;qMapClick;qMarkerSelect;qClusterSelect;qStatusChange;qError;providerStatus="initializing";activeProvider;usingFallback=!1;errorMessage;leaflet;map;canvas;resizeObserver;resizeFrame;initializationToken=0;markerVisibilityToken=0;cancelMarkerVisibilityPan;layerController;markerController;lastInvalidBoundsInput;reportedRequestedProvider;baseLayerSyncQueued=!1;hasLoaded=!1;connected=!1;connectedCallback(){this.connected=!0,this.hasLoaded&&this.initializeMap()}componentDidLoad(){this.hasLoaded=!0,this.initializeMap()}disconnectedCallback(){this.connected=!1,this.initializationToken+=1,this.destroyMap()}async ensureMarkerVisible(t,e){const r=++this.markerVisibilityToken;if(this.cancelMarkerVisibilityPan?.(),!this.isMarkerVisibilityCurrent(r))return"unavailable";let i=!1;for(let a=0;a<3;a+=1){if(!this.isMarkerVisibilityCurrent(r))return"unavailable";const a=this.map,n=this.canvas,o=this.markerController;if(!a||!n||!o)return"unavailable";const s=o.getVisibilityTarget(t);if(!s)return"unavailable";const l=this.toViewportRect(n.getBoundingClientRect()),c=this.getMarkerVisibilityOcclusions(e),d=s.rendered?Lt(s.rendered.element,s.rendered.kind):this.getCoordinateRect(s.latitude,s.longitude,l);if(s.rendered&&At(d,l,c))return i?"panned":"visible";const h=Ct(d,l,c);if(!h)return"constrained";if(Math.abs(h.x)<.01&&Math.abs(h.y)<.01){if(o.syncSelection(),!this.isMarkerVisibilityCurrent(r))return"unavailable";if(await this.waitForMarkerLayout(),!this.isMarkerVisibilityCurrent(r))return"unavailable"}else{if(!this.isMarkerVisibilityCurrent(r))return"unavailable";if(await this.panByMarkerTranslation(a,h.x,h.y,r),!this.isMarkerVisibilityCurrent(r))return"unavailable";if(i=!0,!this.isMarkerVisibilityCurrent(r))return"unavailable";if(await this.waitForMarkerLayout(),!this.isMarkerVisibilityCurrent(r))return"unavailable"}}if(!this.isMarkerVisibilityCurrent(r))return"unavailable";const a=this.map,n=this.canvas,o=this.markerController?.getVisibilityTarget(t);if(!a||!n||!o)return"unavailable";if(!o.rendered)return"constrained";const s=this.toViewportRect(n.getBoundingClientRect());return At(Lt(o.rendered.element,o.rendered.kind),s,this.getMarkerVisibilityOcclusions(e))?i?"panned":"visible":"constrained"}handleBaseLayerChange(){this.scheduleBaseLayerSync()}handleTilePreloadBufferChange(){const t=this.getProvider(),e=this.layerController?.getActiveState().activeProvider;(function(t,e){return"tiles"===t||"tiles"===e})(t,e)&&this.scheduleBaseLayerSync()}handleVectorPaddingChange(){const t=this.getProvider(),e=this.layerController?.getActiveState().activeProvider;(function(t,e){return"vector"===t||"vector"===e})(t,e)&&this.scheduleBaseLayerSync()}scheduleBaseLayerSync(){this.map?this.baseLayerSyncQueued||(this.baseLayerSyncQueued=!0,queueMicrotask((()=>{this.baseLayerSyncQueued=!1,this.connected&&this.map&&this.syncBaseLayer()}))):this.initializeMap()}handleMarkersChange(){this.markerController?.sync(this.markers)}handleMarkerClusteringChange(){this.markerController?.sync(this.markers)}handleSelectedMarkerChange(){this.markerController?.syncSelection()}handleViewChange(){this.syncView(!0)}handleZoomLimitsChange(){if(!this.map)return;const{minimum:t,maximum:e}=this.getZoomLimits();this.map.setMinZoom(t),this.map.setMaxZoom(e),this.syncView(),this.syncBaseLayer(),this.markerController?.sync(this.markers)}handleBoundsChange(){this.syncBounds(!0)}handleZoomControlsChange(){this.map&&(this.destroyMap(),this.initializeMap())}setCanvas=t=>{this.canvas=t??void 0};handleMapClick=t=>{this.qMapClick.emit({latitude:t.latlng.lat,longitude:t.latlng.lng,originalEvent:t.originalEvent})};async initializeMap(){if(this.map||!this.canvas||!this.connected||"undefined"==typeof window)return;const t=++this.initializationToken;this.setProviderStatus("initializing",void 0,!1,!0);try{const r=this.leaflet??await import("./p-DYMWBqU1.js").then((function(t){return t.L}));if(this.leaflet=r,t!==this.initializationToken||!this.canvas||!this.connected||!this.el.isConnected)return;const{minimum:i,maximum:a}=this.getZoomLimits(),n=b(this.maxBounds),o=!this.prefersReducedMotion();if(this.map=r.map(this.canvas,{attributionControl:!1,fadeAnimation:o,inertia:!1,keyboard:!0,markerZoomAnimation:o,maxBounds:(e=n,"valid"===e.kind?e.leafletBounds:void 0),maxBoundsViscosity:v(this.maxBoundsViscosity),maxZoom:a,minZoom:i,trackResize:!1,wheelDebounceTime:o?16:40,wheelPxPerZoomLevel:o?120:60,zoomAnimation:o,zoomControl:this.zoomControls,zoomDelta:o?.5:1,zoomSnap:o?.25:1}),"invalid"===n.kind?this.reportInvalidBounds(n.message):this.lastInvalidBoundsInput=void 0,this.bindMapEvents(this.map),this.createControllers(this.map,r),this.syncView(),await this.syncBaseLayer(),t!==this.initializationToken||!this.map||!this.connected)return;this.markerController?.sync(this.markers),this.observeResize(),this.map.invalidateSize({animate:!1,pan:!1}),this.qReady.emit()}catch(e){if(t!==this.initializationToken)return;this.destroyMap(),this.errorMessage="Map failed to initialize.",this.setProviderStatus("error",void 0,!1),this.reportError("leaflet-initialization-failed",e,!1)}var e}bindMapEvents(t){t.on("click",this.handleMapClick)}unbindMapEvents(t){t.off("click",this.handleMapClick)}createControllers(t,e){this.layerController=new u({attach:async(e,r,i)=>{if("tiles"===r){const r=e;i.replacing?await function(t,e={}){const{loadingPolicy:r="full-batch",signal:i,startLoading:a,timeoutMs:n=Ut}=e;return new Promise(((e,o)=>{if(i?.aborted)return void o(Ot());let s,l=!1;const c=r=>{l||(l=!0,t.off("load",d),t.off("tileload",h),t.off("tileerror",u),i?.removeEventListener("abort",m),void 0!==s&&clearTimeout(s),r?o(r):e())},d=()=>"full-batch"===r?c():c(new Error("Raster tiles failed to load.")),h=()=>{"progressive"===r&&c()},u=()=>{"full-batch"===r&&c(new Error("Raster tiles failed to load."))},m=()=>c(Ot());if(t.on("load",d),t.on("tileload",h),t.on("tileerror",u),i?.addEventListener("abort",m,{once:!0}),s=setTimeout((()=>c(new Error("Raster tile loading timed out."))),Math.max(0,n)),a)try{a(),t.isLoading()||c()}catch(t){c(function(t){return t instanceof Error?t:new Error(String(t))}(t))}}))}(r,{loadingPolicy:this.getRasterTileLoadingPolicy(),signal:i.signal,startLoading:()=>e.addTo(t)}):e.addTo(t)}else e.addTo(t);"vector"===r&&await function(t){const e=t.getMaplibreMap;if("function"!=typeof e)return Promise.reject(new Error("QMap: the vector layer did not expose its MapLibre map."));const r=e.call(t);return r.loaded()?Promise.resolve():new Promise(((t,e)=>{const i=()=>o(t),a=t=>{o((()=>e(t.error??new Error("QMap: the vector style failed to load."))))},n=window.setTimeout((()=>{o((()=>e(new Error("QMap: the vector style timed out while loading."))))}),15e3),o=t=>{window.clearTimeout(n),r.off("load",i),r.off("error",a),t()};r.on("load",i),r.on("error",a)}))}(e)},createGoogle:async t=>(await function(t){if("undefined"==typeof window||"undefined"==typeof document)return Promise.reject(new Error("QMap: Google Maps is only available in a browser environment."));if(_())return Promise.resolve();const e=t.trim(),r=window.google?.maps?.importLibrary;return w?k&&e&&k!==e?Promise.reject(new Error("QMap: Google Maps is already loading with a different API key.")):w:r?(w=r("maps").then((()=>M())).catch((t=>{throw w=void 0,new Error("QMap: Google Maps failed to load.",{cause:t})})),w):e?(k=e,w=function(t){const e=window,r=e.google,i=r?.maps,a="__webquarkGoogleMapsReady"+ ++x,n=e,o=document.createElement("script"),s=new URLSearchParams({callback:a,key:t,loading:"async",v:"quarterly"});o.async=!0,o.defer=!0,o.src=`https://maps.googleapis.com/maps/api/js?${s.toString()}`,o.dataset.webquarkGoogleMaps="true";const l=document.querySelector("script[nonce]")?.nonce;return l&&(o.nonce=l),new Promise(((t,s)=>{const l=t=>{delete n[a],o.onerror=null,t&&(o.remove(),function(t,e,r){e?(t.google=e,r?e.maps=r:delete e.maps):delete t.google}(e,r,i))};n[a]=()=>{try{M(),l(!1),t()}catch(t){l(!0),s(t)}},o.onerror=()=>{l(!0),s(new Error("The Google Maps script could not be loaded."))},document.head.append(o)}))}(e).catch((t=>{throw k=void 0,w=void 0,new Error("QMap: Google Maps failed to load.",{cause:t})})),w):Promise.reject(new Error("QMap: A Google Maps API key is required."))}(t.googleApiKey),new(await function(t){return q||(q=async function(t){if("undefined"==typeof window)throw new Error("QMap: GoogleMutant is only available in a browser environment.");const e=globalThis,r=t.gridLayer,i=Object.prototype.hasOwnProperty,a=i.call(e,"L"),n=e.L,o=i.call(r,"googleMutant"),s=r.googleMutant;e.L=t;try{const t=await import("./p-DuX-9GOi.js");if("function"!=typeof t.default)throw new Error("QMap: GoogleMutant did not expose its default constructor.");return t.default}finally{o?r.googleMutant=s:delete r.googleMutant,a?e.L=n:delete e.L}}(t).catch((t=>{throw q=void 0,t}))),q}(e))({type:t.googleMapType,minZoom:t.minZoom,maxZoom:t.maxZoom})),createTiles:t=>{const r=this.getRasterTileLoadingPolicy();return m(e,t.tileUrl,function(t,e,r,i="full-batch"){return{attribution:"",minZoom:t,maxZoom:e,..."progressive"===i?{updateWhenZooming:!0}:{},...r>0?{updateInterval:50,updateWhenIdle:!1,updateWhenZooming:!0}:{}}}(t.minZoom,t.maxZoom,t.tilePreloadBuffer,r),t.tilePreloadBuffer,r)},createVector:async t=>(await function(t){return y||(y=async function(t){if("undefined"==typeof window)throw new Error("QMap: the vector provider is only available in a browser environment.");await import("./p-CFuqfXuv.js");const e=t.maplibreGL;if("function"!=typeof e)throw new Error("QMap: MapLibre did not register its Leaflet layer factory.");return e}(t).catch((t=>{throw y=void 0,t}))),y}(e))({attributionControl:!1,fadeDuration:750,interactive:!1,maxTileCacheZoomLevels:6,maxZoom:t.maxZoom,minZoom:t.minZoom,padding:t.vectorPadding,style:t.vectorStyleUrl,updateInterval:16})}),this.markerController=new xt({map:t,leaflet:e,getSelectedMarkerId:()=>this.selectedMarkerId,getClusteringOptions:()=>function(t,e,r,i,a){const n=Number.isFinite(a)?Math.max(0,Math.floor(a)):19;return{enabled:t,radius:Number.isFinite(e)?lt(e,1,200):48,minPoints:Number.isFinite(r)?lt(r,2,1e3):2,maxZoom:Number.isFinite(i)?lt(i,0,n):Math.max(0,n-1)}}(this.clusterMarkers,this.clusterRadius,this.clusterMinPoints,this.clusterMaxZoom,t.getMaxZoom()),prefersReducedMotion:()=>this.prefersReducedMotion(),onMarkerSelect:(t,e)=>this.qMarkerSelect.emit({marker:t,originalEvent:e}),onClusterSelect:t=>this.qClusterSelect.emit(t).defaultPrevented})}async syncBaseLayer(){const t=this.layerController;if(!t)return;const e=this.getProvider(),r=t.getActiveState();this.errorMessage=void 0,this.setProviderStatus("initializing",r.activeProvider,r.usingFallback);const{minimum:i,maximum:a}=this.getZoomLimits(),n=await t.sync({requestedProvider:e,tileUrl:this.tileUrl.trim(),tilePreloadBuffer:(o=this.tilePreloadBuffer,Number.isFinite(o)?Math.min(4,Math.max(0,Math.round(o))):0),vectorStyleUrl:this.vectorStyleUrl.trim(),vectorPadding:Tt(this.vectorPadding),googleApiKey:this.googleApiKey.trim(),googleApiAvailable:!!_()||"undefined"!=typeof window&&"function"==typeof window.google?.maps?.importLibrary,googleMapType:this.getGoogleMapType(),minZoom:i,maxZoom:a});var o;if(t===this.layerController&&"stale"!==n.kind)if("empty"!==n.kind){if("ready"===n.kind)return n.warning&&this.reportError("provider-initialization-failed",n.warning,!0),void this.setProviderStatus("ready",n.activeProvider,n.usingFallback);this.reportError("provider-initialization-failed",n.error,!0),n.fallbackError&&this.reportError("fallback-initialization-failed",n.fallbackError,!0),this.errorMessage=n.activeProvider?"The requested map provider failed. The previous map remains available.":"Map imagery failed to load.",this.setProviderStatus("error",n.activeProvider,n.usingFallback)}else this.setProviderStatus("empty",void 0,!1)}getZoomLimits(){const t=Number.isFinite(this.minZoom)?this.minZoom:0,e=Number.isFinite(this.maxZoom)?this.maxZoom:19;return{minimum:t,maximum:Math.max(t,e)}}getCenter(){return[Number.isFinite(this.centerLatitude)?Math.max(-90,Math.min(90,this.centerLatitude)):0,Number.isFinite(this.centerLongitude)?Math.max(-180,Math.min(180,this.centerLongitude)):0]}getZoom(){const{minimum:t,maximum:e}=this.getZoomLimits(),r=Number.isFinite(this.zoom)?this.zoom:t;return Math.max(t,Math.min(e,r))}getProvider(){return"google"===this.provider||"vector"===this.provider?this.provider:"tiles"}getRasterTileLoadingPolicy(){return"progressive"===this.rasterTileLoadingPolicy?"progressive":"full-batch"}getGoogleMapType(){return Rt.includes(this.googleMapType)?this.googleMapType:"roadmap"}syncView(t=!1){this.map?.setView(this.getCenter(),this.getZoom(),{animate:t&&!this.prefersReducedMotion()})}getMarkerVisibilityOcclusions(t){const e=[...t],r=this.el.shadowRoot;if(!r)return e;for(const t of Array.from(r.querySelectorAll(".leaflet-control, .map-attribution"))){const r=t.ownerDocument.defaultView?.getComputedStyle(t);if("none"===r?.display||"hidden"===r?.visibility)continue;const i=t.getBoundingClientRect();i.width<=0||i.height<=0||e.push(this.toViewportRect(i))}return e}getCoordinateRect(t,e,r){const i=this.map?.latLngToContainerPoint([t,e]),a=r.left+(i?.x??0),n=r.top+(i?.y??0);return{top:n-.5,right:a+.5,bottom:n+.5,left:a-.5}}toViewportRect(t){return{top:t.top,right:t.right,bottom:t.bottom,left:t.left}}async panByMarkerTranslation(t,e,r,i){const a=!this.prefersReducedMotion();await new Promise((n=>{const o=this.el.ownerDocument.defaultView,s=Date.now();let l,c,d=!1;const h=()=>{d||(d=!0,t.off("moveend",u),void 0!==l&&o?.clearTimeout(l),void 0!==c&&o?.clearTimeout(c),this.cancelMarkerVisibilityPan===m&&(this.cancelMarkerVisibilityPan=void 0),n())},u=()=>{if(d)return;t.off("moveend",u),void 0!==l&&o?.clearTimeout(l);const e=a?Math.max(0,275-(Date.now()-s)):0;e>0&&o?c=o.setTimeout(h,e):h()},m=()=>{d||(t.stop(),h())};this.isMarkerVisibilityCurrent(i)?(this.cancelMarkerVisibilityPan=m,t.once("moveend",u),l=o?.setTimeout(u,500),t.panBy([-Ft(e),-Ft(r)],{animate:a})):h()}))}async waitForMarkerLayout(){await new Promise((t=>{const e=this.el.ownerDocument.defaultView;e&&"function"==typeof e.requestAnimationFrame?e.requestAnimationFrame((()=>t())):queueMicrotask(t)}))}isMarkerVisibilityCurrent(t){return t===this.markerVisibilityToken&&this.connected}prefersReducedMotion(){return"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}syncBounds(t){if(!this.map)return;const e=b(this.maxBounds);!function(t,e,r){t.options.maxBoundsViscosity=v(r),"invalid"!==e.kind&&t.setMaxBounds("valid"===e.kind?e.leafletBounds:void 0)}(this.map,e,this.maxBoundsViscosity),"invalid"===e.kind?t&&this.reportInvalidBounds(e.message):this.lastInvalidBoundsInput=void 0}reportInvalidBounds(t){this.lastInvalidBoundsInput!==this.maxBounds&&(this.lastInvalidBoundsInput=this.maxBounds,this.reportError("invalid-max-bounds",new Error(t),!0))}setProviderStatus(t,e,r,i=!1){const a=t!==this.providerStatus||e!==this.activeProvider||r!==this.usingFallback||this.getProvider()!==this.reportedRequestedProvider;this.providerStatus=t,this.activeProvider=e,this.usingFallback=r,this.reportedRequestedProvider=this.getProvider(),(a||i)&&this.qStatusChange.emit({status:t,requestedProvider:this.getProvider(),activeProvider:e,usingFallback:r})}reportError(t,e,r){this.qError.emit({code:t,message:e instanceof Error?e.message:String(e),requestedProvider:this.getProvider(),recoverable:r})}observeResize(){this.canvas&&"undefined"!=typeof ResizeObserver&&(this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver((()=>this.scheduleResize())),this.resizeObserver.observe(this.canvas))}scheduleResize(){void 0!==this.resizeFrame&&cancelAnimationFrame(this.resizeFrame),this.resizeFrame=requestAnimationFrame((()=>{this.resizeFrame=void 0,this.map?.invalidateSize({animate:!1,debounceMoveend:!0,pan:!1}),this.syncBounds(!1)}))}destroyMap(){this.markerVisibilityToken+=1,this.cancelMarkerVisibilityPan?.(),this.cancelMarkerVisibilityPan=void 0,this.resizeObserver?.disconnect(),this.resizeObserver=void 0,void 0!==this.resizeFrame&&(cancelAnimationFrame(this.resizeFrame),this.resizeFrame=void 0),this.markerController?.destroy(),this.markerController=void 0,this.layerController?.destroy(),this.layerController=void 0;const t=this.map;t&&(this.unbindMapEvents(t),t.remove()),this.map=void 0}renderAttribution(){if("tiles"!==this.activeProvider&&"vector"!==this.activeProvider)return null;const t=this.attribution.trim();if(!t)return null;const e=this.getAttributionUrl();return e?i("a",{class:"map-attribution",part:"attribution",href:e,target:"_blank",rel:"noopener noreferrer"},t,i("span",{class:"visually-hidden"}," (opens in a new tab)")):i("span",{class:"map-attribution",part:"attribution"},t)}getAttributionUrl(){const t=this.attributionUrl.trim();if(t)try{const e=new URL(t,this.el.ownerDocument.baseURI);return"https:"===e.protocol||"http:"===e.protocol?t:void 0}catch{return}}render(){return i("div",{key:"753eeb63e0f1e0be9c018d72997d9553495b9ad8",class:"map-surface",part:"surface"},i("div",{key:"2da65495446a24640d1f81c8b1583664664293bf",class:"map-canvas",part:"canvas",role:"region","aria-label":this.ariaLabel,"aria-busy":"initializing"===this.providerStatus?"true":void 0,ref:this.setCanvas}),i("q-icon",{key:"e61c59f96ed6624a2bedf1a32b8828b0ab133cbd",class:"map-icon-registration","aria-hidden":"true"}),"empty"===this.providerStatus&&i("div",{key:"c7b24a9d6a6f796dd92b5e4d088711113de3a448",class:"map-empty",part:"empty",role:"status"},i("slot",{key:"97f0b1fe4dd669512b1a55b58fb428f37a23fdfc",name:"empty"},"Map provider is not configured.")),"error"===this.providerStatus&&i("div",{key:"f72f0211b9df1e9eb833828215575b08479cea59",class:"map-empty map-error",part:"error",role:"alert"},i("slot",{key:"44026803ec28e2acb3d8b91dec1ab85ae3c74663",name:"error"},this.errorMessage??"Map imagery is unavailable.")),this.renderAttribution())}static get watchers(){return{provider:[{handleBaseLayerChange:0}],tileUrl:[{handleBaseLayerChange:0}],rasterTileLoadingPolicy:[{handleBaseLayerChange:0}],vectorStyleUrl:[{handleBaseLayerChange:0}],googleApiKey:[{handleBaseLayerChange:0}],googleMapType:[{handleBaseLayerChange:0}],tilePreloadBuffer:[{handleTilePreloadBufferChange:0}],vectorPadding:[{handleVectorPaddingChange:0}],markers:[{handleMarkersChange:0}],clusterMarkers:[{handleMarkerClusteringChange:0}],clusterRadius:[{handleMarkerClusteringChange:0}],clusterMinPoints:[{handleMarkerClusteringChange:0}],clusterMaxZoom:[{handleMarkerClusteringChange:0}],selectedMarkerId:[{handleSelectedMarkerChange:0}],centerLatitude:[{handleViewChange:0}],centerLongitude:[{handleViewChange:0}],zoom:[{handleViewChange:0}],minZoom:[{handleZoomLimitsChange:0}],maxZoom:[{handleZoomLimitsChange:0}],maxBounds:[{handleBoundsChange:0}],maxBoundsViscosity:[{handleBoundsChange:0}],zoomControls:[{handleZoomControlsChange:0}]}}};function Ft(t){return Math.sign(t)*Math.ceil(Math.abs(t))}jt.style=":host{display:block;width:100%;height:var(--q-map-height, 100%);min-width:0;min-height:var(--q-map-min-height, 240px);box-sizing:border-box}.map-surface{position:relative;width:100%;height:100%;min-height:inherit;box-sizing:border-box;overflow:hidden;background:var(--q-map-bg, var(--q-bg-surface-1, #1f2937));border:var(--q-map-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-map-radius, var(--q-radius-lg, 11px))}.map-canvas{width:100%;height:100%;min-height:inherit;background:inherit;outline:none}.map-canvas:focus-visible{box-shadow:inset 0 0 0 2px var(--q-color-primary, #60a5fa)}.map-icon-registration{display:none}.map-empty{position:absolute;z-index:900;top:50%;left:50%;max-width:calc(100% - 32px);padding:8px 12px;transform:translate(-50%, -50%);border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);color:var(--q-fg-muted, #9ca3af);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2));font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-sm, 0.8rem);line-height:1.4;text-align:center;pointer-events:none}.map-error{color:var(--q-color-danger, #ef4444)}.map-attribution{position:absolute;z-index:1000;right:0;bottom:0;max-width:calc(100% - 8px);padding:2px 6px;overflow:hidden;background:var(--q-map-attribution-bg, var(--q-bg-base, #111827));color:var(--q-map-attribution-color, var(--q-fg-muted, #9ca3af));font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-xs, 0.7rem);line-height:1.4;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}a.map-attribution:hover,a.map-attribution:focus-visible{color:var(--q-fg-base, #f9fafb);text-decoration:underline}a.map-attribution:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.visually-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-tooltip-pane{position:absolute;top:0;left:0}.leaflet-container{overflow:hidden;-webkit-tap-highlight-color:transparent;touch-action:none}.maplibregl-map{position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.maplibregl-canvas{position:absolute;top:0;left:0}.maplibregl-control-container{display:none}.leaflet-zoom-animated{transform-origin:0 0}.leaflet-tile-container.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform 250ms cubic-bezier(0, 0, 0.25, 1);will-change:transform}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{display:block;user-select:none;-webkit-user-drag:none}.leaflet-container .leaflet-tile-pane img,.leaflet-container .leaflet-tile{width:auto;max-width:none !important;max-height:none !important;padding:0}.leaflet-tile-pane{filter:var(--q-map-tile-filter, none)}.leaflet-tile{visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{position:relative;z-index:800;float:left;clear:both;pointer-events:auto}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive{pointer-events:auto}.leaflet-grab{cursor:grab}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-marker-draggable{cursor:grabbing}.leaflet-interactive{cursor:pointer}.leaflet-bar{overflow:hidden;border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-bg-base, #111827);box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.2))}.leaflet-bar a{display:block;width:30px;height:30px;border-bottom:1px solid var(--q-border-color, #374151);background:var(--q-bg-base, #111827);color:var(--q-fg-base, #f9fafb);font:700 18px/30px var(--q-font-family, sans-serif);text-align:center;text-decoration:none}.leaflet-bar a:last-child{border-bottom:0}.leaflet-bar a:hover,.leaflet-bar a:focus-visible{background:var(--q-bg-surface-2, #374151);color:var(--q-color-primary, #60a5fa)}.leaflet-bar a:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:-2px}.leaflet-bar a.leaflet-disabled{color:var(--q-fg-disabled, #6b7280);cursor:default}.q-map-marker-position{--q-map-marker-rendered-size:var(--q-map-marker-size, 20px);width:var(--q-map-marker-rendered-size) !important;height:var(--q-map-marker-rendered-size) !important;margin-top:calc(var(--q-map-marker-rendered-size) * -0.5) !important;margin-left:calc(var(--q-map-marker-rendered-size) * -0.5) !important}.q-map-marker-position.size-small{--q-map-marker-rendered-size:var(--q-map-marker-size-small, 16px)}.q-map-marker-position.size-medium{--q-map-marker-rendered-size:var(--q-map-marker-size-medium, var(--q-map-marker-size, 20px))}.q-map-marker-position.size-large{--q-map-marker-rendered-size:var(--q-map-marker-size-large, 24px)}.q-map-marker{position:relative;display:grid;width:100%;height:100%;place-items:center;box-sizing:border-box;border:3px solid var(--q-bg-base, #111827);border-radius:50%;background:var(--q-map-marker-color, var(--q-color-primary, #60a5fa));box-shadow:var(--q-shadow-low, 0 2px 4px rgba(0, 0, 0, 0.3));outline:none;transition:box-shadow 160ms ease}.q-map-marker.variant-success{background:var(--q-map-marker-success, var(--q-color-success, #22c55e))}.q-map-marker.variant-warning{background:var(--q-map-marker-warning, var(--q-color-warning, #f59e0b))}.q-map-marker.variant-danger{background:var(--q-map-marker-danger, var(--q-color-danger, #ef4444))}.q-map-marker.variant-muted{background:var(--q-map-marker-muted, var(--q-fg-muted, #9ca3af))}.q-map-marker.is-selected{box-shadow:0 0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)), var( --q-map-marker-selected-shadow, var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3)) )}.q-map-marker:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:4px}.q-map-marker__center{display:grid;width:30%;height:30%;place-items:center;overflow:hidden;border-radius:50%;background:var(--q-bg-base, #111827);pointer-events:none}.q-map-marker.has-content{padding:var(--q-map-marker-content-gap, 2px)}.q-map-marker.has-content .q-map-marker__center{width:100%;height:100%;background:var(--q-map-marker-content-bg, var(--q-bg-base, #111827));color:var(--q-map-marker-content-color, var(--q-fg-base, #f9fafb));font:700 clamp(0.5rem, calc(var(--q-map-marker-rendered-size, var(--q-map-marker-size, 20px)) * 0.25), 0.75rem) / 1 var(--q-font-family, sans-serif)}.q-map-marker__fallback,.q-map-marker__image{grid-area:1 / 1}.q-map-marker__fallback{max-width:100%;overflow:hidden;text-overflow:clip;white-space:nowrap}.q-map-marker__image{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}.q-map-marker__image[hidden]{display:none}.q-map-marker__content{position:relative;z-index:1;display:grid;width:100%;height:100%;place-items:center;pointer-events:none}.q-map-marker.kind-icon{border-radius:var(--q-radius-md, 8px)}.q-map-marker.kind-icon .q-map-marker__center{border-radius:calc(var(--q-radius-md, 8px) - 3px)}.q-map-marker__icon{width:var(--q-map-marker-icon-size, 58%) !important;height:var(--q-map-marker-icon-size, 58%) !important;transform:translate( var(--q-map-marker-icon-offset-x, 0), var(--q-map-marker-icon-offset-y, 0) );color:var(--q-map-marker-content-color, var(--q-fg-base, #f9fafb));pointer-events:none}.q-map-marker__icon[hidden]{display:none}.q-map-marker.ring-solid::after,.q-map-marker.ring-dashed::after{position:absolute;z-index:0;inset:-7px;box-sizing:border-box;border:2px solid var(--q-map-marker-ring-color, currentColor);border-radius:inherit;content:'';pointer-events:none}.q-map-marker.ring-dashed::after{border-style:dashed}.q-map-marker.is-pulsing::before{position:absolute;z-index:0;inset:-4px;border:2px solid var(--q-map-marker-pulse-color, var(--q-color-primary, #60a5fa));border-radius:inherit;content:'';pointer-events:none;animation:q-map-marker-pulse 1.8s ease-out infinite}@keyframes q-map-marker-pulse{0%{opacity:0.85;transform:scale(0.9)}75%,100%{opacity:0;transform:scale(1.8)}}.q-map-marker__badge{position:absolute;z-index:3;right:-7px;bottom:-6px;display:inline-flex;min-width:14px;height:14px;padding:0 3px;align-items:center;justify-content:center;gap:2px;box-sizing:border-box;border:2px solid var(--q-bg-base, #111827);border-radius:999px;background:var(--q-map-marker-color, var(--q-color-primary, #60a5fa));color:var(--q-fg-base, #f9fafb);font:700 8px/1 var(--q-font-family, sans-serif);white-space:nowrap}.q-map-marker__badge[hidden]{display:none}.q-map-marker__badge.variant-success{background:var(--q-map-marker-success, var(--q-color-success, #22c55e))}.q-map-marker__badge.variant-warning{background:var(--q-map-marker-warning, var(--q-color-warning, #f59e0b))}.q-map-marker__badge.variant-danger{background:var(--q-map-marker-danger, var(--q-color-danger, #ef4444))}.q-map-marker__badge.variant-muted{background:var(--q-map-marker-muted, var(--q-fg-muted, #9ca3af))}.q-map-marker__badge-icon{width:8px !important;height:8px !important}.q-map-marker__badge-icon[hidden],.q-map-marker__badge-text[hidden]{display:none}.q-map-cluster-position{width:var(--q-map-marker-cluster-size, 32px) !important;height:var(--q-map-marker-cluster-size, 32px) !important;margin-top:calc(var(--q-map-marker-cluster-size, 32px) * -0.5) !important;margin-left:calc(var(--q-map-marker-cluster-size, 32px) * -0.5) !important}.q-map-cluster{position:relative;display:grid;width:100%;height:100%;place-items:center;box-sizing:border-box;border:2px solid color-mix(in srgb, var(--q-color-primary, #60a5fa) 70%, white);border-radius:50%;background:color-mix(in srgb, var(--q-color-primary, #60a5fa) 24%, var(--q-bg-base, #111827));box-shadow:0 0 0 4px color-mix(in srgb, var(--q-color-primary, #60a5fa) 18%, transparent), var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3));color:var(--q-fg-base, #f9fafb);outline:none;transition:box-shadow 160ms ease}.q-map-cluster.contains-selection{box-shadow:0 0 0 3px var(--q-map-marker-selected-color, var(--q-fg-base, #f9fafb)), 0 0 0 7px color-mix(in srgb, var(--q-color-primary, #60a5fa) 28%, transparent), var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3))}.q-map-cluster:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:4px}.q-map-cluster__content{display:grid;width:100%;height:100%;place-items:center;pointer-events:none}.q-map-cluster__count{font:700 0.7rem/1 var(--q-font-family, sans-serif)}.leaflet-tooltip{position:absolute;box-sizing:border-box;white-space:nowrap;pointer-events:none;user-select:none}.q-map-callout{width:var(--q-map-marker-callout-width, var(--q-map-marker-callout-max-width, 220px));max-width:calc(100vw - 24px);padding:7px 9px;border:var(--q-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 8px);background:var(--q-map-marker-callout-bg, color-mix(in srgb, var(--q-bg-base, #111827) 94%, transparent));color:var(--q-fg-base, #f9fafb);box-shadow:var(--q-shadow-medium, 0 8px 16px rgba(0, 0, 0, 0.3));font-family:var(--q-font-family, sans-serif)}.q-map-callout.leaflet-tooltip-top{margin-top:-20px}.q-map-callout.leaflet-tooltip-bottom{margin-top:20px}.q-map-callout.leaflet-tooltip-left{margin-left:-20px}.q-map-callout.leaflet-tooltip-right{margin-left:20px}.q-map-callout__content{display:grid;min-width:0;gap:2px}.q-map-callout__heading{display:flex;min-width:0;align-items:center;gap:6px}.q-map-callout__title,.q-map-callout__subtitle,.q-map-callout__meta{overflow:hidden;text-overflow:ellipsis}.q-map-callout__title{flex:1 1 auto;min-width:0;color:inherit;font-size:var(--q-font-size-sm, 0.8rem);font-weight:700}.q-map-callout__subtitle,.q-map-callout__meta{color:var(--q-fg-muted, #9ca3af);font-size:var(--q-font-size-xs, 0.7rem)}.q-map-callout__subtitle{min-width:0}.q-map-callout__status{--q-map-marker-callout-status-accent:var(--q-color-primary, #60a5fa);display:inline-flex;flex:none;max-width:var(--q-map-marker-callout-status-max-width, 45%);margin-inline-start:auto;min-height:18px;padding:2px 6px;align-items:center;overflow:hidden;box-sizing:border-box;border:1px solid color-mix(in srgb, var(--q-map-marker-callout-status-accent) 34%, transparent);border-radius:999px;background:color-mix(in srgb, var(--q-map-marker-callout-status-accent) 16%, transparent);color:var(--q-map-marker-callout-status-accent);font-size:var(--q-font-size-xs, 0.7rem);font-weight:600;line-height:1;text-overflow:ellipsis;white-space:nowrap}.q-map-callout__status.variant-success{--q-map-marker-callout-status-accent:var(--q-color-success, #34d399)}.q-map-callout__status.variant-warning{--q-map-marker-callout-status-accent:var(--q-color-warning, #fbbf24)}.q-map-callout__status.variant-danger{--q-map-marker-callout-status-accent:var(--q-color-danger, #f87171)}.q-map-callout__status.variant-muted{--q-map-marker-callout-status-accent:var(--q-fg-muted, #9ca3af)}.q-map-callout__meta{color:var(--q-map-marker-callout-meta-color, var(--q-color-primary, #60a5fa))}.q-map-callout__stats{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:6px 8px;margin:4px 0 0;padding:5px 0 0;border-top:1px solid color-mix(in srgb, var(--q-border-color, #374151) 70%, transparent)}.q-map-callout__stat{min-width:0}.q-map-callout__stat.layout-wide{grid-column:1 / -1}.q-map-callout__stat-label,.q-map-callout__stat-value{margin:0;overflow:hidden;text-overflow:ellipsis}.q-map-callout__stat-label{color:var(--q-fg-muted, #9ca3af);font-size:var(--q-font-size-2xs, 0.625rem);line-height:1.2;white-space:nowrap}.q-map-callout__stat-value{margin-top:1px;color:inherit;font-size:var(--q-font-size-xs, 0.7rem);font-weight:600;line-height:1.25;white-space:nowrap}.q-map-callout__stat.layout-wide .q-map-callout__stat-value{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}.q-map-callout__subtitle[hidden],.q-map-callout__status[hidden],.q-map-callout__meta[hidden],.q-map-callout__stats[hidden]{display:none}@media (prefers-reduced-motion: reduce){.q-map-marker,.q-map-cluster{transition:none}.q-map-marker.is-pulsing::before{opacity:0.65;animation:none;transform:none}}";export{jt as q_map}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as i,a as e}from"./p-DbGG9Q40.js";import{a as s,p as n,i as r}from"./p-BvBRW3dl.js";function o(i){const[e,s,n]=i;return t(e,s,n?.map(o))}const a=new Set(["script","foreignobject","iframe","object","embed","link","meta"]),h=/<\s*(script|foreignObject|iframe|object|embed|link|meta)\b[\s\S]*?(?:<\/\s*\1\s*>|\/\s*>)/gi,c=/\s+on[a-z]+\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,l=/\s+(style|tabindex)\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,d=/\s+(xlink:href|href)\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,f=/\s+[a-z_:.-]+\s*=\s*("[^"]*javascript:[^"]*"|'[^']*javascript:[^']*'|[^\s>]*javascript:[^\s>]*)/gi;function u(t){return/<svg[\s>]/i.test(t)?t.replace(h,"").replace(c,"").replace(l,"").replace(f,"").replace(d,((t,i,e)=>String(e).replace(/^['"]|['"]$/g,"").trim().toLowerCase().startsWith("#")?t:"")).replace(/<svg\b([^>]*)>/i,((t,i)=>`<svg${String(i).replace(/\s+aria-hidden\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/\s+focusable\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,"")} aria-hidden="true" focusable="false">`)).trim():""}const g=[".png",".jpg",".jpeg",".webp",".gif",".ico"];function p(t,i){const e=t?.trim();return e||i}const m=class{constructor(t){i(this,t)}get el(){return e(this)}name;library;lib="lucide";localPath="/assets/icons/";libraryVersion;libVersion;fetchTimeout=8e3;definition;size="md";color="currentColor";label;svgContent="";isBinary=!1;resolvedUrl="";hasError=!1;resolvedDefinition;fetchId=0;watchHandler(){this.loadIcon()}componentWillLoad(){this.loadIcon()}componentWillRender(){this.syncHostState()}componentDidRender(){this.syncHostState()}componentDidLoad(){this.syncHostState()}componentDidUpdate(){this.syncHostState()}get accessibleLabel(){const t=this.label?.trim();return t||void 0}handleImageError=()=>{this.hasError=!0,this.syncHostState()};syncHostState(){if(!this.el)return;const t=function(t){const i=t?String(t).trim():"md";return"sm"===i?"16px":"md"===i?"24px":"lg"===i?"32px":/^\d+$/.test(i)?`${i}px`:i}(this.size),i=this.accessibleLabel;this.el.style.width=t,this.el.style.height=t,this.el.style.color=this.color,this.el.classList.toggle("q-icon-error",this.hasError),this.el.classList.toggle("q-icon-binary",!this.hasError&&this.isBinary),this.el.classList.toggle("q-icon-svg",!this.hasError&&!this.isBinary),i?(this.el.setAttribute("role","img"),this.el.setAttribute("aria-label",i),this.el.setAttribute("aria-hidden","false")):(this.el.removeAttribute("role"),this.el.removeAttribute("aria-label"),this.el.setAttribute("aria-hidden","true"))}async loadIcon(){const t=++this.fetchId;this.hasError=!1,this.resolvedDefinition=void 0,this.syncHostState();const i=this.definition??s(this.name);if(i){try{this.resolvedDefinition=this.definition?n(i,"q-icon definition"):i,this.svgContent="",this.resolvedUrl="",this.isBinary=!1}catch(t){console.error(t),this.hasError=!0}return void this.syncHostState()}if(!this.name)return this.svgContent="",this.resolvedUrl="",this.isBinary=!1,void this.syncHostState();if(r())return this.svgContent="",this.resolvedUrl="",this.isBinary=!1,this.hasError=!0,void this.syncHostState();const e=function(t){const i=t.name.trim();if("lucide"===t.library)return`https://cdn.jsdelivr.net/npm/lucide-static@${p(t.libraryVersion,"0.416.0")}/icons/${encodeURIComponent(i)}.svg`;if("font-awesome"===t.library||"fontawesome"===t.library)return`https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@${p(t.libraryVersion,"6.7.2")}/svgs/solid/${encodeURIComponent(i)}.svg`;if("local"===t.library){let e=t.localPath||"/assets/icons/";return e.endsWith("/")||(e+="/"),`${e}${i}${i.includes(".")?"":".svg"}`}if(t.library.includes("{name}"))return t.library.replace("{name}",i);let e=t.library;return e.endsWith("/")||(e+="/"),`${e}${i}`}({name:this.name,library:this.library??this.lib,localPath:this.localPath,libraryVersion:this.libraryVersion??this.libVersion});if(function(t){const i=t.toLowerCase();return g.some((t=>i.endsWith(t)))}(e))this.fetchId===t&&(this.isBinary=!0,this.resolvedUrl=e,this.svgContent="",this.syncHostState());else{this.fetchId===t&&(this.isBinary=!1,this.resolvedUrl="",this.syncHostState());try{const i=function(t,i=("undefined"!=typeof window?window.location:void 0)){if(!i||/^https?:\/\//i.test(t)||t.startsWith("data:"))return t;const e=i.origin&&"null"!==i.origin?i.origin:"http://localhost";try{return new URL(t,e).href}catch(i){return t}}(e),s=await async function(t,i){const e=Number.isFinite(i)&&i>0?i:8e3,s="undefined"!=typeof AbortController?new AbortController:void 0,n=s?setTimeout((()=>s.abort()),e):void 0;try{const i=await fetch(t,s?{signal:s.signal}:void 0);if(!i.ok)throw new Error(`Failed to load icon SVG from ${t} (status: ${i.status})`);return await i.text()}finally{void 0!==n&&clearTimeout(n)}}(i,this.fetchTimeout),n=function(t){if("undefined"==typeof DOMParser||"undefined"==typeof XMLSerializer)return u(t);const i=(new DOMParser).parseFromString(t,"image/svg+xml"),e=i.querySelector("parsererror"),s=i.documentElement;if(e||!s||"svg"!==s.tagName.toLowerCase())return u(t);const n=t=>{const i=t.tagName.toLowerCase();a.has(i)?t.remove():(Array.from(t.attributes).forEach((e=>{const s=e.name.toLowerCase(),n=e.value.trim().toLowerCase();(s.startsWith("on")||"style"===s||"tabindex"===s||n.startsWith("javascript:")||n.includes("url(javascript:")||("href"===s||"xlink:href"===s)&&"use"===i&&!n.startsWith("#"))&&t.removeAttribute(e.name)})),Array.from(t.children).forEach(n))};return n(s),s.setAttribute("aria-hidden","true"),s.setAttribute("focusable","false"),(new XMLSerializer).serializeToString(s)}(s);if(!n)throw new Error(`Failed to sanitize icon SVG from ${i}`);this.fetchId===t&&(this.svgContent=n,this.syncHostState())}catch(i){console.error(i),this.fetchId===t&&(this.hasError=!0,this.svgContent="",this.syncHostState())}}}render(){return this.hasError?t("div",{class:"icon-fallback",part:"fallback"},t("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true",focusable:"false"},t("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),t("line",{x1:"9",y1:"9",x2:"15",y2:"15"}),t("line",{x1:"15",y1:"9",x2:"9",y2:"15"}))):this.resolvedDefinition?t("div",{class:"svg-container",part:"svg"},function(i){const e={xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${i.width??i.size??24} ${i.height??i.size??24}`,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",...i.attributes,width:"100%",height:"100%","aria-hidden":"true",focusable:"false"};return t("svg",e,i.node.map(o))}(this.resolvedDefinition)):this.isBinary?t("img",{src:this.resolvedUrl,alt:"","aria-hidden":"true",part:"image",style:{width:"100%",height:"100%",objectFit:"contain"},onError:this.handleImageError}):t("div",{class:"svg-container",part:"svg",innerHTML:this.svgContent})}static get watchers(){return{name:[{watchHandler:0}],definition:[{watchHandler:0}],lib:[{watchHandler:0}],library:[{watchHandler:0}],localPath:[{watchHandler:0}],libVersion:[{watchHandler:0}],libraryVersion:[{watchHandler:0}]}}};m.style=":host{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;line-height:1}.svg-container{display:inline-flex;width:100%;height:100%;align-items:center;justify-content:center}.svg-container svg{width:100% !important;height:100% !important;stroke-width:var(--q-icon-stroke-width, 2.1) !important;display:block}.icon-fallback{display:inline-flex;align-items:center;justify-content:center;color:var(--q-color-danger, #f87171);opacity:0.8;width:100%;height:100%}.icon-fallback svg{width:100%;height:100%;stroke-width:var(--q-icon-stroke-width, 2.1);display:block}";export{m as q_icon}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=Symbol.for("@webquark/core:q-icon-registry:v1"),r=/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/,t=/^[a-zA-Z_:][a-zA-Z0-9_.:-]*$/,n=new Set(["circle","clipPath","defs","ellipse","g","line","linearGradient","mask","path","polygon","polyline","radialGradient","rect","stop","symbol","use"]);function o(){const r=globalThis,t=r[e];if(1===t?.version&&t.registry instanceof Map&&"boolean"==typeof t.strict)return t;const n={version:1,registry:new Map,strict:!1};return Object.defineProperty(r,e,{configurable:!1,enumerable:!1,writable:!1,value:n}),n}function i(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function a(e){return Array.from(e.matchAll(/url\s*\(([^)]*)\)/gi)).some((([,e])=>!e.trim().replace(/^(['"])(.*)\1$/,"$2").trim().startsWith("#")))}function s(e,r,t){if(void 0!==e&&("number"!=typeof e||!Number.isFinite(e)||e<=0))throw new TypeError(`${t}.${r} must be a positive finite number.`)}function c(e,r){if(!i(e))throw new TypeError(`${r} must be an object of string SVG attributes.`);const n={};for(const[o,i]of Object.entries(e)){if(!t.test(o)||o.toLowerCase().startsWith("on"))throw new TypeError(`${r} contains an unsafe SVG attribute name: ${o}.`);if("style"===o.toLowerCase()||"src"===o.toLowerCase())throw new TypeError(`${r} contains an unsupported SVG attribute: ${o}.`);if("string"!=typeof i)throw new TypeError(`${r}.${o} must be a string.`);const e=i.trim().toLowerCase();if(e.includes("javascript:"))throw new TypeError(`${r}.${o} contains an unsafe SVG attribute value.`);if(("href"===o.toLowerCase()||"xlink:href"===o.toLowerCase())&&!e.startsWith("#"))throw new TypeError(`${r}.${o} must reference an element in the same SVG.`);if(a(i))throw new TypeError(`${r}.${o} must not reference an external resource.`);n[o]=i}return Object.freeze(n)}function u(e,r,t,o){if(!Array.isArray(e)||2!==e.length&&3!==e.length)throw new TypeError(`${r} must be a [tagName, attributes, children?] tuple.`);if(t>16)throw new TypeError(`${r} exceeds the maximum icon node depth of 16.`);if(o.value+=1,o.value>512)throw new TypeError("Icon definitions may contain at most 512 SVG nodes.");const[i,a,s]=e;if("string"!=typeof i||!n.has(i))throw new TypeError(`${r} contains an unsupported SVG element: ${String(i)}.`);const f=c(a,`${r}[1]`);if(void 0===s)return Object.freeze([i,f]);if(!Array.isArray(s))throw new TypeError(`${r}[2] must be an array of SVG nodes.`);const p=Object.freeze(s.map(((e,n)=>u(e,`${r}[2][${n}]`,t+1,o))));return Object.freeze([i,f,p])}function f(e,r="Icon definition"){if(!i(e)||!Array.isArray(e.node))throw new TypeError(`${r} must contain a node array.`);if(s(e.size,"size",r),s(e.width,"width",r),s(e.height,"height",r),void 0===e.width!=(void 0===e.height))throw new TypeError(`${r}.width and ${r}.height must be provided together.`);if(void 0!==e.name&&"string"!=typeof e.name)throw new TypeError(`${r}.name must be a string when provided.`);const t={value:0},n=Object.freeze(e.node.map(((e,n)=>u(e,`${r}.node[${n}]`,1,t)))),o=void 0===e.attributes?void 0:c(e.attributes,`${r}.attributes`),a={...void 0===e.name?{}:{name:e.name},node:n,...void 0===e.size?{}:{size:e.size},...void 0===e.width?{}:{width:e.width,height:e.height},...void 0===o?{}:{attributes:o}};return Object.freeze(a)}function p(e){if(!i(e))throw new TypeError("QIcon registry must be an object keyed by icon name.");const t=new Map;for(const[n,o]of Object.entries(e)){const e=n.trim();if(e!==n||e.length>128||!r.test(e))throw new TypeError(`Invalid q-icon registry name: ${JSON.stringify(n)}.`);t.set(e,f(o,`Icon definition ${JSON.stringify(e)}`))}o().registry=t}function w(e){if(!i(e)||"boolean"!=typeof e.strict)throw new TypeError("QIcon configuration must provide a boolean strict value.");o().strict=e.strict}function y(e){const r=e?.trim();return r?o().registry.get(r):void 0}function b(){return o().strict}export{y as a,w as c,b as i,f as p,p as r}
|