@esri/solutions-components 0.11.16 → 0.11.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{asyncToGenerator-ccb3278b.js → asyncToGenerator-c7fc3ee4.js} +1 -1
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +3 -3
- package/dist/cjs/buffer-tools_2.cjs.entry.js +5 -5
- package/dist/cjs/card-manager_3.cjs.entry.js +133 -146
- package/dist/cjs/consent-manager.cjs.entry.js +5 -5
- package/dist/cjs/create-feature_4.cjs.entry.js +59 -13
- package/dist/cjs/create-related-feature_3.cjs.entry.js +4 -4
- package/dist/cjs/crowdsource-manager.cjs.entry.js +32 -13
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +5 -5
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/delete-dialog.cjs.entry.js +3 -3
- package/dist/cjs/{downloadUtils-9de366bc.js → downloadUtils-9abff913.js} +5 -5
- package/dist/cjs/{effects-78c31457.js → effects-3607d1ba.js} +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +7 -7
- package/dist/cjs/{helpers-67a2c953.js → helpers-a65cb83a.js} +3 -3
- package/dist/cjs/{index-b936ec03.js → index-2c21082d.js} +24 -17
- package/dist/cjs/{index-b2821254.js → index-90ef3c01.js} +1 -1
- package/dist/cjs/{index.es-0441a948.js → index.es-3c2404c3.js} +2 -2
- package/dist/cjs/instant-apps-app-guide.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +7 -7
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-create.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-export.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-filter-list_2.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-header.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +6 -6
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +8 -8
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +8 -8
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +8 -8
- package/dist/cjs/instant-apps-measurement-tool.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-popover.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-splash.cjs.entry.js +5 -5
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +7 -7
- package/dist/cjs/json-editor_7.cjs.entry.js +5 -5
- package/dist/cjs/{languageSwitcher-e2118cc6.js → languageSwitcher-19a22439.js} +1 -1
- package/dist/cjs/{languageUtil-f22ce913.js → languageUtil-a3e1eafd.js} +1 -1
- package/dist/cjs/{loadModules-accd5295.js → loadModules-e9d8977c.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{locale-e2a974ae.js → locale-0a273172.js} +3 -3
- package/dist/cjs/{locale-8017d061.js → locale-c09e93fb.js} +2 -2
- package/dist/cjs/map-layer-picker.cjs.entry.js +6 -6
- package/dist/cjs/map-select-tools_3.cjs.entry.js +8 -8
- package/dist/cjs/{mapViewUtils-18c46b84.js → mapViewUtils-4ea7216c.js} +1 -45
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/{popupUtils-3b069427.js → popupUtils-fc7557da.js} +2 -2
- package/dist/cjs/public-notification.cjs.entry.js +8 -8
- package/dist/cjs/{publicNotificationStore-76755c44.js → publicNotificationStore-ee00411f.js} +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +5 -5
- package/dist/cjs/solution-contents_3.cjs.entry.js +5 -5
- package/dist/cjs/solution-item-accordion.cjs.entry.js +11 -7
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/{solution-store-a2a8422d.js → solution-store-6208ce28.js} +1 -1
- package/dist/cjs/solutions-components.cjs.js +3 -3
- package/dist/cjs/spatial-ref.cjs.entry.js +3 -3
- package/dist/cjs/store-manager.cjs.entry.js +3 -3
- package/dist/cjs/{utils-0f287cfa.js → utils-30344ce0.js} +2 -2
- package/dist/collection/assets/t9n/consent-manager/resources_ar.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_bg.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_bs.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_ca.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_cs.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_da.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_de.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_el.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_es.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_et.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_fi.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_fr.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_he.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_hr.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_hu.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_id.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_it.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_ja.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_ko.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_lt.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_lv.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_nb.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_nl.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_pl.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_pt-BR.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_pt-PT.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_ro.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_ru.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_sk.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_sl.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_sr.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_sv.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_th.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_tr.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_uk.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_vi.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_zh-CN.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_zh-HK.json +5 -0
- package/dist/collection/assets/t9n/consent-manager/resources_zh-TW.json +5 -0
- package/dist/collection/assets/t9n/create-feature/resources_pt-BR.json +1 -1
- package/dist/collection/assets/t9n/crowdsource-manager/resources.json +4 -1
- package/dist/collection/assets/t9n/crowdsource-manager/resources_en.json +4 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources.json +3 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_ar.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_bg.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_bs.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_ca.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_cs.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_da.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_de.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_el.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_en.json +3 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_es.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_et.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_fi.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_fr.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_he.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_hr.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_hu.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_id.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_it.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_ja.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_ko.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_lt.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_lv.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_nb.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_nl.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_pl.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_pt-BR.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_pt-PT.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_ro.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_ru.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_sk.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_sl.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_sr.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_sv.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_th.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_tr.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_uk.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_vi.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-CN.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-HK.json +2 -1
- package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-TW.json +2 -1
- package/dist/collection/assets/t9n/edit-card/resources_fr.json +1 -1
- package/dist/collection/assets/t9n/feature-list/resources_ar.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_bg.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_bs.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_ca.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_cs.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_da.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_de.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_el.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_es.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_et.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_fi.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_fr.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_he.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_hr.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_hu.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_id.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_it.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_ja.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_ko.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_lt.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_lv.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_nb.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_nl.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_pl.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_pt-BR.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_pt-PT.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_ro.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_ru.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_sk.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_sl.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_sr.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_sv.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_th.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_tr.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_uk.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_vi.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_zh-CN.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_zh-HK.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_zh-TW.json +3 -1
- package/dist/collection/assets/t9n/info-card/resources_et.json +1 -1
- package/dist/collection/assets/t9n/info-card/resources_ko.json +1 -1
- package/dist/collection/assets/t9n/info-card/resources_pt-PT.json +1 -1
- package/dist/collection/assets/t9n/info-card/resources_ru.json +1 -1
- package/dist/collection/assets/t9n/info-card/resources_sk.json +1 -1
- package/dist/collection/assets/t9n/info-card/resources_vi.json +1 -1
- package/dist/collection/assets/t9n/info-card/resources_zh-CN.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_ar.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_bg.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_bs.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_ca.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_cs.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_da.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_de.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_el.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_es.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_et.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_fi.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_fr.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_he.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_hr.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_hu.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_id.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_it.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_ja.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_ko.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_lt.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_lv.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_nb.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_nl.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_pl.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_pt-BR.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_pt-PT.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_ro.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_ru.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_sk.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_sl.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_sr.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_sv.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_th.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_tr.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_uk.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_vi.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_zh-CN.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_zh-HK.json +1 -1
- package/dist/collection/assets/t9n/map-card/resources_zh-TW.json +1 -1
- package/dist/collection/assets/t9n/map-select-tools/resources_zh-HK.json +1 -1
- package/dist/collection/assets/t9n/map-select-tools/resources_zh-TW.json +1 -1
- package/dist/collection/assets/t9n/solution-item-accordion/resources_ar.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_bg.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_bs.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_ca.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_cs.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_da.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_de.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_el.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_es.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_et.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_fi.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_fr.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_he.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_hr.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_hu.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_id.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_it.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_ja.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_ko.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_lt.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_lv.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_nb.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_nl.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_pl.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_pt-BR.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_pt-PT.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_ro.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_ru.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_sk.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_sl.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_sr.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_sv.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_th.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_tr.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_uk.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_vi.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_zh-CN.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_zh-HK.json +3 -0
- package/dist/collection/assets/t9n/solution-item-accordion/resources_zh-TW.json +3 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/card-manager/card-manager.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +23 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +29 -9
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +88 -7
- package/dist/collection/components/layer-table/layer-table.js +160 -142
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +18 -6
- package/dist/collection/demos/crowdsource-manager.html +1 -0
- package/dist/collection/utils/mapViewUtils.js +1 -1
- package/dist/collection/utils/mapViewUtils.ts +1 -1
- package/dist/components/card-manager2.js +1 -1
- package/dist/components/crowdsource-manager.js +30 -10
- package/dist/components/crowdsource-reporter.js +1 -1
- package/dist/components/info-card2.js +54 -6
- package/dist/components/layer-table2.js +129 -141
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/mapViewUtils.js +1 -1
- package/dist/components/queryUtils.js +1 -43
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/solution-item-accordion.js +8 -4
- package/dist/esm/{asyncToGenerator-48cd21fe.js → asyncToGenerator-96b2368d.js} +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +3 -3
- package/dist/esm/buffer-tools_2.entry.js +5 -5
- package/dist/esm/card-manager_3.entry.js +133 -146
- package/dist/esm/consent-manager.entry.js +5 -5
- package/dist/esm/create-feature_4.entry.js +59 -13
- package/dist/esm/create-related-feature_3.entry.js +4 -4
- package/dist/esm/crowdsource-manager.entry.js +32 -13
- package/dist/esm/crowdsource-reporter.entry.js +5 -5
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/delete-dialog.entry.js +3 -3
- package/dist/esm/{downloadUtils-992b4e25.js → downloadUtils-36d854d2.js} +5 -5
- package/dist/esm/{effects-45daffc6.js → effects-38bc1195.js} +1 -1
- package/dist/esm/feature-list.entry.js +7 -7
- package/dist/esm/{helpers-38ea1ae1.js → helpers-77bdd30e.js} +3 -3
- package/dist/esm/{index-000c7a7c.js → index-3702583a.js} +24 -17
- package/dist/esm/{index-f7533fcc.js → index-6de7c296.js} +1 -1
- package/dist/esm/{index.es-c379ea10.js → index.es-87662946.js} +2 -2
- package/dist/esm/instant-apps-app-guide.entry.js +5 -5
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +7 -7
- package/dist/esm/instant-apps-control-panel.entry.js +3 -3
- package/dist/esm/instant-apps-create.entry.js +5 -5
- package/dist/esm/instant-apps-export-views.entry.js +5 -5
- package/dist/esm/instant-apps-export.entry.js +5 -5
- package/dist/esm/instant-apps-filter-list_2.entry.js +5 -5
- package/dist/esm/instant-apps-header.entry.js +3 -3
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +6 -6
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +6 -6
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +6 -6
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +6 -6
- package/dist/esm/instant-apps-interactive-legend.entry.js +8 -8
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +5 -5
- package/dist/esm/instant-apps-landing-page.entry.js +1 -1
- package/dist/esm/instant-apps-language-switcher.entry.js +8 -8
- package/dist/esm/instant-apps-language-translator.entry.js +8 -8
- package/dist/esm/instant-apps-measurement-tool.entry.js +3 -3
- package/dist/esm/instant-apps-measurement.entry.js +5 -5
- package/dist/esm/instant-apps-popover.entry.js +5 -5
- package/dist/esm/instant-apps-popovers.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +5 -5
- package/dist/esm/instant-apps-sign-in.entry.js +5 -5
- package/dist/esm/instant-apps-splash.entry.js +5 -5
- package/dist/esm/instant-apps-time-filter.entry.js +7 -7
- package/dist/esm/json-editor_7.entry.js +5 -5
- package/dist/esm/{languageSwitcher-446c6fe7.js → languageSwitcher-49bad3f4.js} +1 -1
- package/dist/esm/{languageUtil-a3e6adf6.js → languageUtil-2b6e191a.js} +1 -1
- package/dist/esm/{loadModules-736e0284.js → loadModules-947ccfd4.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale-8a3e6795.js → locale-aa656a2c.js} +2 -2
- package/dist/esm/{locale-5b76949e.js → locale-b0016f8e.js} +3 -3
- package/dist/esm/map-layer-picker.entry.js +6 -6
- package/dist/esm/map-select-tools_3.entry.js +8 -8
- package/dist/esm/{mapViewUtils-f54edae3.js → mapViewUtils-9da9be1c.js} +2 -44
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/{popupUtils-12e61a9a.js → popupUtils-64d25cb0.js} +2 -2
- package/dist/esm/public-notification.entry.js +8 -8
- package/dist/esm/{publicNotificationStore-e5306ea6.js → publicNotificationStore-70219049.js} +1 -1
- package/dist/esm/solution-configuration.entry.js +5 -5
- package/dist/esm/solution-contents_3.entry.js +5 -5
- package/dist/esm/solution-item-accordion.entry.js +11 -7
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/{solution-store-26e3d8c6.js → solution-store-2493275a.js} +1 -1
- package/dist/esm/solutions-components.js +4 -4
- package/dist/esm/spatial-ref.entry.js +3 -3
- package/dist/esm/store-manager.entry.js +3 -3
- package/dist/esm/{utils-793f7261.js → utils-68015f9d.js} +2 -2
- package/dist/solutions-components/assets/t9n/consent-manager/resources_ar.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_bg.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_bs.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_ca.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_cs.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_da.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_de.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_el.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_es.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_et.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_fi.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_fr.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_he.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_hr.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_hu.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_id.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_it.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_ja.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_ko.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_lt.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_lv.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_nb.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_nl.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_pl.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_pt-BR.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_pt-PT.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_ro.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_ru.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_sk.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_sl.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_sr.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_sv.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_th.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_tr.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_uk.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_vi.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_zh-CN.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_zh-HK.json +5 -0
- package/dist/solutions-components/assets/t9n/consent-manager/resources_zh-TW.json +5 -0
- package/dist/solutions-components/assets/t9n/create-feature/resources_pt-BR.json +1 -1
- package/dist/solutions-components/assets/t9n/crowdsource-manager/resources.json +4 -1
- package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_en.json +4 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources.json +3 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ar.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_bg.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_bs.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ca.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_cs.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_da.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_de.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_el.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_en.json +3 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_es.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_et.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_fi.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_fr.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_he.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_hr.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_hu.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_id.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_it.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ja.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ko.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_lt.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_lv.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_nb.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_nl.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pl.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pt-BR.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pt-PT.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ro.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ru.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sk.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sl.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sr.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sv.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_th.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_tr.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_uk.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_vi.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-CN.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-HK.json +2 -1
- package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-TW.json +2 -1
- package/dist/solutions-components/assets/t9n/edit-card/resources_fr.json +1 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_ar.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_bg.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_bs.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_ca.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_cs.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_da.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_de.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_el.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_es.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_et.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_fi.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_fr.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_he.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_hr.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_hu.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_id.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_it.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_ja.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_ko.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_lt.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_lv.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_nb.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_nl.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_pl.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_pt-BR.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_pt-PT.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_ro.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_ru.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_sk.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_sl.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_sr.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_sv.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_th.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_tr.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_uk.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_vi.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_zh-CN.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_zh-HK.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_zh-TW.json +3 -1
- package/dist/solutions-components/assets/t9n/info-card/resources_et.json +1 -1
- package/dist/solutions-components/assets/t9n/info-card/resources_ko.json +1 -1
- package/dist/solutions-components/assets/t9n/info-card/resources_pt-PT.json +1 -1
- package/dist/solutions-components/assets/t9n/info-card/resources_ru.json +1 -1
- package/dist/solutions-components/assets/t9n/info-card/resources_sk.json +1 -1
- package/dist/solutions-components/assets/t9n/info-card/resources_vi.json +1 -1
- package/dist/solutions-components/assets/t9n/info-card/resources_zh-CN.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_ar.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_bg.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_bs.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_ca.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_cs.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_da.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_de.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_el.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_es.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_et.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_fi.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_fr.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_he.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_hr.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_hu.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_id.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_it.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_ja.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_ko.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_lt.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_lv.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_nb.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_nl.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_pl.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_pt-BR.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_pt-PT.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_ro.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_ru.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_sk.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_sl.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_sr.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_sv.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_th.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_tr.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_uk.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_vi.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_zh-CN.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_zh-HK.json +1 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_zh-TW.json +1 -1
- package/dist/solutions-components/assets/t9n/map-select-tools/resources_zh-HK.json +1 -1
- package/dist/solutions-components/assets/t9n/map-select-tools/resources_zh-TW.json +1 -1
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ar.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_bg.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_bs.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ca.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_cs.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_da.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_de.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_el.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_es.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_et.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_fi.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_fr.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_he.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_hr.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_hu.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_id.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_it.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ja.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ko.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_lt.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_lv.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_nb.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_nl.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_pl.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_pt-BR.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_pt-PT.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ro.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ru.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sk.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sl.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sr.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sv.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_th.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_tr.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_uk.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_vi.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_zh-CN.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_zh-HK.json +3 -0
- package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_zh-TW.json +3 -0
- package/dist/solutions-components/demos/crowdsource-manager.html +1 -0
- package/dist/solutions-components/{p-282a3090.entry.js → p-032d4411.entry.js} +1 -1
- package/dist/solutions-components/{p-75fabd1c.entry.js → p-055706e3.entry.js} +1 -1
- package/dist/solutions-components/{p-20bd829d.entry.js → p-06970873.entry.js} +1 -1
- package/dist/solutions-components/{p-a4bd7b09.js → p-08ad0b7a.js} +1 -1
- package/dist/solutions-components/{p-1e364924.js → p-173d5fce.js} +1 -1
- package/dist/solutions-components/{p-3e25c5b0.js → p-174fa218.js} +1 -1
- package/dist/solutions-components/{p-0d311ebf.entry.js → p-1890b884.entry.js} +1 -1
- package/dist/solutions-components/p-1b0588d2.js +7 -0
- package/dist/solutions-components/{p-ae7bcbff.entry.js → p-1ddd7128.entry.js} +1 -1
- package/dist/solutions-components/{p-ff3d2df3.entry.js → p-1dffcc22.entry.js} +1 -1
- package/dist/solutions-components/{p-182a4844.entry.js → p-265f5dc4.entry.js} +1 -1
- package/dist/solutions-components/{p-056d4371.entry.js → p-2b556610.entry.js} +1 -1
- package/dist/solutions-components/{p-d600ca73.entry.js → p-2c8360b4.entry.js} +1 -1
- package/dist/solutions-components/{p-b2a6916d.entry.js → p-2dcf8f00.entry.js} +1 -1
- package/dist/solutions-components/{p-0d879c77.entry.js → p-300ff31e.entry.js} +1 -1
- package/dist/solutions-components/{p-9e92da5e.entry.js → p-335a630e.entry.js} +1 -1
- package/dist/solutions-components/{p-5b3ee71d.entry.js → p-3c43839b.entry.js} +1 -1
- package/dist/solutions-components/{p-ea6440fd.js → p-3d20e307.js} +1 -1
- package/dist/solutions-components/{p-b8dde3e5.entry.js → p-4426901e.entry.js} +1 -1
- package/dist/solutions-components/{p-bf007c87.js → p-48942eb8.js} +2 -2
- package/dist/solutions-components/{p-79083691.entry.js → p-4bdd4009.entry.js} +1 -1
- package/dist/solutions-components/{p-b66a3619.entry.js → p-4ebc471b.entry.js} +1 -1
- package/dist/solutions-components/{p-8af77823.entry.js → p-579628d9.entry.js} +1 -1
- package/dist/solutions-components/{p-ec7c3f5c.entry.js → p-68d49e1a.entry.js} +1 -1
- package/dist/solutions-components/{p-5474d6f0.entry.js → p-699a9557.entry.js} +1 -1
- package/dist/solutions-components/{p-5c05f28a.entry.js → p-6d62a4fa.entry.js} +1 -1
- package/dist/solutions-components/{p-a1d1dc83.entry.js → p-6da8fe2d.entry.js} +1 -1
- package/dist/solutions-components/{p-20085e58.js → p-6eab9d1f.js} +2 -2
- package/dist/solutions-components/{p-f3ee7398.entry.js → p-70036eb6.entry.js} +1 -1
- package/dist/solutions-components/{p-c25ebd5a.entry.js → p-70e8be5c.entry.js} +1 -1
- package/dist/solutions-components/{p-442b2dfb.entry.js → p-72ae3bf0.entry.js} +1 -1
- package/dist/solutions-components/p-777ed6b0.entry.js +6 -0
- package/dist/solutions-components/{p-e508cfaf.entry.js → p-7f6cbe61.entry.js} +1 -1
- package/dist/solutions-components/{p-0bb54295.entry.js → p-8107be38.entry.js} +1 -1
- package/dist/solutions-components/{p-a7d18a21.entry.js → p-81ae30bd.entry.js} +1 -1
- package/dist/solutions-components/{p-78051ff1.js → p-89fbc318.js} +1 -1
- package/dist/solutions-components/{p-1309ac58.js → p-8b218ba7.js} +1 -1
- package/dist/solutions-components/{p-3ab93412.entry.js → p-8b5c3c9f.entry.js} +1 -1
- package/dist/solutions-components/{p-3ea987a7.js → p-8f7957a2.js} +1 -1
- package/dist/solutions-components/{p-60bdf635.entry.js → p-959cb673.entry.js} +1 -1
- package/dist/solutions-components/{p-e8fa98f5.entry.js → p-9d953313.entry.js} +1 -1
- package/dist/solutions-components/{p-ff0b00d7.entry.js → p-a44815ea.entry.js} +1 -1
- package/dist/solutions-components/{p-af2c8aa9.js → p-ac122d9e.js} +1 -1
- package/dist/solutions-components/{p-65df6acd.entry.js → p-acd2699e.entry.js} +1 -1
- package/dist/solutions-components/p-afc3ac6d.entry.js +6 -0
- package/dist/solutions-components/p-b1bd3028.entry.js +6 -0
- package/dist/solutions-components/{p-74b3e39c.entry.js → p-b40b5be5.entry.js} +1 -1
- package/dist/solutions-components/{p-d995adc3.entry.js → p-b560498c.entry.js} +1 -1
- package/dist/solutions-components/{p-91bb7fdc.js → p-d0d21a1f.js} +1 -1
- package/dist/solutions-components/{p-62a0aa8e.js → p-d65f8b73.js} +1 -1
- package/dist/solutions-components/{p-6d1ee086.js → p-dc188d13.js} +1 -1
- package/dist/solutions-components/p-dcd2f00b.js +36 -0
- package/dist/solutions-components/{p-fe9c9f03.entry.js → p-e2270562.entry.js} +1 -1
- package/dist/solutions-components/{p-fa639501.js → p-e23b4193.js} +1 -1
- package/dist/solutions-components/{p-1fb25c0c.entry.js → p-e81e2d83.entry.js} +1 -1
- package/dist/solutions-components/{p-c44cbee6.entry.js → p-e85da876.entry.js} +1 -1
- package/dist/solutions-components/p-e90c0e26.entry.js +6 -0
- package/dist/solutions-components/{p-ed8f7591.entry.js → p-ea64b72e.entry.js} +1 -1
- package/dist/solutions-components/{p-ffa545ee.entry.js → p-eb97b5ad.entry.js} +1 -1
- package/dist/solutions-components/{p-a23de3b0.js → p-ee2cbba0.js} +1 -1
- package/dist/solutions-components/{p-097bac90.entry.js → p-ee863ffb.entry.js} +1 -1
- package/dist/solutions-components/{p-c421d92d.entry.js → p-f07a02e2.entry.js} +1 -1
- package/dist/solutions-components/{p-c5f701bd.entry.js → p-fa09caf3.entry.js} +1 -1
- package/dist/solutions-components/{p-2010e62e.entry.js → p-ff5db601.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/mapViewUtils.ts +1 -1
- package/dist/solutions-components_commit.txt +8 -5
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +11 -1
- package/dist/types/components/info-card/info-card.d.ts +16 -0
- package/dist/types/components/layer-table/layer-table.d.ts +32 -21
- package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +2 -2
- package/dist/types/components.d.ts +20 -3
- package/dist/types/preact.d.ts +2 -1
- package/package.json +17 -17
- package/dist/solutions-components/p-433b34a3.entry.js +0 -6
- package/dist/solutions-components/p-44105d86.entry.js +0 -6
- package/dist/solutions-components/p-8c40bdec.js +0 -7
- package/dist/solutions-components/p-a5618671.entry.js +0 -6
- package/dist/solutions-components/p-ad03f5cf.entry.js +0 -6
- package/dist/solutions-components/p-d572627c.js +0 -36
- /package/dist/cjs/{esri-loader-a56cbcbe.js → esri-loader-08dc41bd.js} +0 -0
- /package/dist/cjs/{typeof-920a4426.js → typeof-2a7e2dec.js} +0 -0
- /package/dist/esm/{esri-loader-781d738a.js → esri-loader-c6842c6b.js} +0 -0
- /package/dist/esm/{typeof-2511410e.js → typeof-ef2a007d.js} +0 -0
- /package/dist/solutions-components/{p-6a68306c.js → p-0a24ad5f.js} +0 -0
- /package/dist/solutions-components/{p-af7e43e0.js → p-4fe489cf.js} +0 -0
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as e,f as t,h as i,g as n,c as a}from"./p-8c40bdec.js";import{g as s,m as l,s as o,i as c,a as d,z as r,n as p,l as h,o as v,u as g,p as u}from"./p-ea6440fd.js";import{l as m}from"./p-a4bd7b09.js";import{g as f}from"./p-78051ff1.js";import"./p-fa639501.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";const y=class{constructor(t){e(this,t),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){var e;this.expanded=!!(null===(e=this.layerCaption)||void 0===e?void 0:e.expanded)}async componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0})}render(){return i("div",{key:"ab9a4911afa5f1021f3270c4fec409a708e2ec51",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:"esri-legend__service esri-legend__group-layer"},i("instant-apps-interactive-legend-layer-element-caption",{key:"bc80abe473c1b47920a78b072033d5b214f7822c",ref:e=>this.layerCaption=e,class:s(this.el),legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:this.isChild}),i("div",{key:"cf6dc1620eb0a95430129b9d414a9f6b893b61c2",class:"esri-legend__group-content "+(!1===this.expanded?"hide":"show")},i("slot",{key:"f346b52020e3cf4e3a072fdfa17a3762676aba53",name:"content"})))}get el(){return n(this)}};y.style=".sc-instant-apps-interactive-legend-group-legend-element-h{display:block}.sc-instant-apps-interactive-legend-group-legend-element-h .esri-legend__service.sc-instant-apps-interactive-legend-group-legend-element{margin:0;padding:0}.sc-instant-apps-interactive-legend-group-legend-element-h .hide.sc-instant-apps-interactive-legend-group-legend-element{display:none}";const _=class{constructor(t){e(this,t),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=void 0,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=this.layerCaption.expanded}componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0})}render(){var e,t;return i("div",{key:"45305a415db8ba0a08ab69de820ff6b8711e1cee",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:"esri-legend__service"+(this.activeLayerInfo.parent?" esri-legend__group-layer-child":""),tabIndex:0},i("instant-apps-interactive-legend-layer-element-caption",{key:"7babce8571540883bca9e0ff07c0a152cbb30fbb",ref:e=>this.layerCaption=e,legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:!!this.isChild,class:s(this.el)}),i("div",{key:"c021d9c441c407d5fac6f246eb9f4b6ce76bcaa5",id:`${null===(t=null===(e=this.activeLayerInfo)||void 0===e?void 0:e.layer)||void 0===t?void 0:t.id}-legend-layer`,class:"esri-legend__layer"+(!1===this.expanded?" hide":" show")},i("slot",{key:"761834066d924654c87a39601c1670625c88d863",name:"content"})))}get el(){return n(this)}};_.style=".sc-instant-apps-interactive-legend-layer-element-h{display:block}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__service.sc-instant-apps-interactive-legend-layer-element{padding:0}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-layer-element{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-layer-element-h .hide.sc-instant-apps-interactive-legend-layer-element{display:none}";const b=class{constructor(t){e(this,t),this.activeLayerInfo=void 0,this.isSizeRamp=void 0,this.isChild=void 0,this.isColorRamp=void 0,this.isRelationshipRamp=void 0,this.isInteractive=void 0,this.zoomTo=void 0,this.legendElement=void 0,this.titleText=void 0,this.legendvm=void 0,this.legendElementIndex=void 0,this.messages=void 0,this.expanded=!0}legendLayerExpandUpdatedEmitted(){this.expanded=this.legendLayerCaption.expanded}render(){var e,t,n,a,s,c,d,r,p;const h=this.isChild?"esri-legend__layer-child-table":"esri-legend__layer-table",v=1===(null===(t=null===(e=this.legendElement)||void 0===e?void 0:e.infos)||void 0===t?void 0:t.length)&&!(null===(s=null===(a=null===(n=this.activeLayerInfo)||void 0===n?void 0:n.layer)||void 0===a?void 0:a.renderer)||void 0===s?void 0:s.field),g=!this.isSizeRamp&&this.isChild||this.isColorRamp?"":" esri-legend__layer-table--size-ramp",u=this.isInteractive?"":" instant-apps-interactive-legend__non-interactive",m=l(this.activeLayerInfo)?" instant-apps-interactive-legend__nested-unique-symbol":"";let f=!(!v||this.expanded||this.zoomTo)||this.expanded;return this.isRelationshipRamp&&(f=o.get("relationshipRampExpandStates")[this.activeLayerInfo.layer.id]),i("div",{key:"cd76a15dfd77c630708e61535a4d22d66385a4bf",class:`${h}${g}${u}${m}`},i("div",{key:"24eb28f5fa505d1d4471a750b5273b34af2f3428",id:`${null===(d=null===(c=this.activeLayerInfo)||void 0===c?void 0:c.layer)||void 0===d?void 0:d.id}-legend-element-caption`,class:this.isRelationshipRamp||!this.titleText&&!this.zoomTo&&v?"hide":"show"},i("instant-apps-interactive-legend-legend-element-caption",{key:"5ffd04439d1c99251e358afcf077628a780c8e40",ref:e=>this.legendLayerCaption=e,legendvm:this.legendvm,activeLayerInfo:this.activeLayerInfo,layer:this.activeLayerInfo.layer,titleText:this.titleText,legendElement:this.legendElement,legendElementIndex:this.legendElementIndex,zoomTo:this.zoomTo,isInteractive:this.isInteractive,messages:this.messages})),i("div",{key:"content",id:`${null===(p=null===(r=this.activeLayerInfo)||void 0===r?void 0:r.layer)||void 0===p?void 0:p.id}-legend-element-content-${this.legendElementIndex}`,class:!1===f?"hide":"show"},i("slot",{key:"c95e14737a003f85f7c494e6d30d9f946bef464a",name:"content"})))}};var L;b.style=".sc-instant-apps-interactive-legend-legend-element-h{display:block}.sc-instant-apps-interactive-legend-legend-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-legend-element,.sc-instant-apps-interactive-legend-legend-element-h .instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-legend-element{margin:0}.sc-instant-apps-interactive-legend-legend-element-h .hide.sc-instant-apps-interactive-legend-legend-element{display:none}",function(e){e.ZoomTo="magnifying-glass-plus",e.ShowAll="list-check-all"}(L||(L={}));const x=class{constructor(t){e(this,t),this.showAllSelectedEvent=a(this,"showAllSelected",7),this.legendLayerExpandUpdatedEvent=a(this,"legendLayerExpandUpdated",7),this.legendvm=void 0,this.activeLayerInfo=void 0,this.layer=void 0,this.titleText=void 0,this.legendElementIndex=void 0,this.zoomTo=void 0,this.isInteractive=void 0,this.legendElement=void 0,this.expanded=!0,this.messages=void 0}render(){var e,t,n,a;const s=l(this.activeLayerInfo),c=p(this.activeLayerInfo),{expanded:d}=this,r=o.get("compact"),h=r?" instant-apps-interactive-legend__layer-caption--compact":"";if(s&&!this.titleText)return null;const v=this.titleText&&i("span",{class:"instant-apps-interactive-legend__legend-layer-caption-text",title:this.titleText},this.titleText),g=(this.isInteractive||c)&&this.renderLegendElementCaptionControls();return i("div",{class:`esri-legend__layer-caption${h}`},i("calcite-action",{onClick:this.toggleExpanded(),icon:!1===d?"chevron-up":"chevron-down",appearance:"transparent",text:!1===d?null===(e=this.messages)||void 0===e?void 0:e.expand:null===(t=this.messages)||void 0===t?void 0:t.collapse,label:!1===d?null===(n=this.messages)||void 0===n?void 0:n.expand:null===(a=this.messages)||void 0===a?void 0:a.collapse,scale:"s"}),r?[v,g]:[g,v])}renderLegendElementCaptionControls(){return i("div",{key:"layer-caption-btn-container",class:"instant-apps-interactive-legend__layer-caption-btn-container"+(this.titleText?"":" instant-apps-interactive-legend__layer-caption-btn-container--no-text")},this.renderShowAllZoomToButtons())}renderShowAllZoomToButtons(){return o.get("compact")?this.renderCompactButtonUI():this.renderButtonUI()}renderCompactButtonUI(){var e,t,n,a,s,l;const{data:o}=c,{id:d}=this.layer||{},r=(null===(t=null===(e=null==o?void 0:o[d])||void 0===e?void 0:e.categories)||void 0===t?void 0:t.size)>1,p="zoomToCompact";return[this.zoomTo&&[i("calcite-action",{id:p,class:"instant-apps-interactive-legend__zoom-to-btn",onClick:this.handleZoomTo(),icon:L.ZoomTo,appearance:"transparent",scale:"s",text:null===(n=this.messages)||void 0===n?void 0:n.zoomTo}),i("calcite-tooltip",{"reference-element":p,placement:"top",label:null===(a=this.messages)||void 0===a?void 0:a.zoomTo},null===(s=this.messages)||void 0===s?void 0:s.zoomTo)],r&&i("button",{onClick:this.handleShowAll(),class:"instant-apps-interactive-legend__show-all-btn"},null===(l=this.messages)||void 0===l?void 0:l.showAll)]}renderButtonUI(){var e,t,n,a,s,l,o,d;const{data:r}=c,{id:p}=this.layer||{},h="showAll",v="zoomTo";return[(null===(t=null===(e=null==r?void 0:r[p])||void 0===e?void 0:e.categories)||void 0===t?void 0:t.size)>1&&[i("calcite-button",{key:"show-all-button",id:h,label:null===(n=this.messages)||void 0===n?void 0:n.showAll,onClick:this.handleShowAll(),iconStart:L.ShowAll,appearance:"outline",round:!0}),i("calcite-tooltip",{referenceElement:h,placement:"top",label:null===(a=this.messages)||void 0===a?void 0:a.showAll},null===(s=this.messages)||void 0===s?void 0:s.showAll)],this.zoomTo&&[i("calcite-button",{key:"zoom-to-button",id:v,label:null===(l=this.messages)||void 0===l?void 0:l.zoomTo,onClick:this.handleZoomTo(),iconStart:L.ZoomTo,appearance:"outline",round:!0}),i("calcite-tooltip",{"reference-element":v,placement:"top",label:null===(o=this.messages)||void 0===o?void 0:o.zoomTo},null===(d=this.messages)||void 0===d?void 0:d.zoomTo)]]}toggleExpanded(){return()=>{var e,t;this.expanded=!this.expanded,this.legendLayerExpandUpdatedEvent.emit(),(null===(t=null===(e=this.activeLayerInfo)||void 0===e?void 0:e.legendElements)||void 0===t?void 0:t.filter((e=>"relationship-ramp"===e.type))).length>0&&o.set("relationshipRampExpandStates",Object.assign(Object.assign({},c.relationshipRampExpandStates),{[this.activeLayerInfo.layer.id]:this.expanded}))}}handleZoomTo(){return()=>{const e=h(this.layer),t=d(e,this.legendElement);r(e,this.legendvm.view,t)}}handleShowAll(){return()=>{var e,t;const i=null===(e=c.data)||void 0===e?void 0:e[null===(t=this.layer)||void 0===t?void 0:t.id];d(i,this.legendElement)?(()=>{const e=v(i,this.legendElement.title);g({intLegendLayerData:e,layerId:this.layer.id})})():((()=>{const e=u(i);g({intLegendLayerData:e,layerId:this.layer.id})})(),this.showAllSelectedEvent.emit())}}get el(){return n(this)}};x.style=".sc-instant-apps-interactive-legend-legend-element-caption-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption{--instant-apps-interactive-legend-ui-padding:5px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;justify-content:flex-end;width:100%}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__show-all-btn.sc-instant-apps-interactive-legend-legend-element-caption{border:none;background-color:transparent;cursor:pointer;color:var(--calcite-ui-brand);font-weight:var(--calcite-font-weight-medium);font-size:0.75rem;padding-inline-start:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__zoom-to-btn.sc-instant-apps-interactive-legend-legend-element-caption{--calcite-icon-color:var(--calcite-ui-brand);--calcite-color-transparent-hover:transparent}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;font-size:0.75rem;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;margin-left:5px;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;white-space:nowrap}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption calcite-button.sc-instant-apps-interactive-legend-legend-element-caption{margin:2px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight);padding:var(--instant-apps-interactive-legend-ui-padding)}html[dir=rtl] .sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:unset;margin-right:20px}";const w=".esri-relationship-ramp--diamond__middle-column--ramp svg g",k=class{constructor(t){e(this,t),this.cellNodeCounter=0,this.filterMode=void 0,this.activeLayerInfo=void 0,this.legendElement=void 0,this.messages=void 0}applyInteractivity(){this.applyRelationshipRampInteractivity()}showAllSelectedEmitted(){const e=0===c.data[this.activeLayerInfo.layer.id].queryExpressions.length,t=this.relationshipRamp.querySelector(w).children,i=t?Array.from(t):null;e&&(null==i||i.forEach((e=>{e.removeAttribute("stroke"),e.removeAttribute("stroke-width"),e.removeAttribute("stroke-opacity"),e.classList.remove("esri-interactive-legend--selected-cell")})))}async componentWillLoad(){const[e]=await m(["esri/symbols/support/symbolUtils"]);this.symbolUtils=e}render(){var e,t;return i("div",{key:"b24758bce1743ae91567e78df38854fddabf52fd",ref:e=>{if(!(null==e?void 0:e.querySelector("relationshipStyles"))){const t=document.createElement("style");t.id="relationshipStyles",t.innerHTML="\n rect:hover {\n cursor: pointer;\n opacity: 0.8;\n }\n ",null==e||e.appendChild(t)}}},i("span",{key:"e3f3bc2a4e7d423bb6aec2072252654b3ac77b2e",class:"instant-apps-interactive-legend-relationship__instructional-text"},null===(t=null===(e=this.messages)||void 0===e?void 0:e.relationship)||void 0===t?void 0:t.instructionalText),this.renderRelationshipRamp())}renderRelationshipRamp(){var e;const t=(null===(e=this.activeLayerInfo)||void 0===e?void 0:e.layer).renderer,n=this.symbolUtils.renderRelationshipRampPreviewHTML(t);return i("div",{ref:e=>{this.relationshipRamp=e,this.applyRelationshipRampInteractivity()},key:"relationship-ramp-diamond",innerHTML:`${null==n?void 0:n.outerHTML}`})}applyRelationshipRampInteractivity(){if(!(this.relationshipRamp&&this.activeLayerInfo&&this.legendElement&&c.data))return;let e=setInterval((()=>{const t=this.relationshipRamp.querySelector(w);t&&(clearInterval(e),this.setupRelationshipDrawingStyle(t.children))}),10)}setupRelationshipDrawingStyle(e){const t=e?Array.from(e):null;if(!t)return;t.map(((e,t)=>{var i,n,a,s,l,o,c,d,r;const p=(null===(n=null===(i=this.activeLayerInfo)||void 0===i?void 0:i.layer)||void 0===n?void 0:n.renderer).uniqueValueInfos;if(p[t]){const i=null===(c=null===(o=null===(l=null===(s=null===(a=null==p?void 0:p[t])||void 0===a?void 0:a.symbol)||void 0===s?void 0:s.data)||void 0===l?void 0:l.symbol)||void 0===o?void 0:o.symbolLayers)||void 0===c?void 0:c[1].color,n=null===(r=null===(d=null==p?void 0:p[t])||void 0===d?void 0:d.symbol)||void 0===r?void 0:r.color;p.forEach(((t,a)=>{var s,l,o,c,d;const r=null===(s=null==t?void 0:t.symbol)||void 0===s?void 0:s.color,p=null===(d=null===(c=null===(o=null===(l=null==t?void 0:t.symbol)||void 0===l?void 0:l.data)||void 0===o?void 0:o.symbol)||void 0===c?void 0:c.symbolLayers)||void 0===d?void 0:d[1].color;let h=!1;h=p?p.every(((e,t)=>e===i[t])):r.r===n.r&&r.g===n.g&&r.b===n.b&&r.a===n.a,h&&this.setCellAttributes(e,a)})),e.classList.add("esri-interactive-legend__svg-rect-element")}}));const i=this.reorderCellNodes(t);this.attachFeatureIndexes(i),this.applyEventHandlers()}setCellAttributes(e,t){const i=this.activeLayerInfo.layer.renderer.uniqueValueInfos,n=this.generateIndexPattern(t);i[n]&&(e.setAttribute("data-color",`${i[n].symbol.color}`),e.setAttribute("data-cell-index",`${n}`),e.setAttribute("tabindex","0"))}generateIndexPattern(e){const{focus:t,numClasses:i}=this.legendElement;return"HL"===t?e:2===i?this.twoClasses(e,t):3===i?this.threeClasses(e,t):4===i?this.fourClasses(e,t):null}twoClasses(e,t){return"HH"===t||null===t?0===e||2===e?e+1:1===e||3===e?e-1:null:"LH"===t?0===e?e+3:1===e?e+1:2===e?e-1:3===e?e-3:4===e?e+0:null:"LL"===t?0===e||1===e?e+2:2===e||3===e?e-2:null:void 0}threeClasses(e,t){return"HH"===t||null===t?0===e||3===e||6===e?e+2:2===e||5===e||8===e?e-2:e:"LH"===t?0===e?e+8:1===e?e+6:2===e?e+4:3===e?e+2:5===e?e-2:6===e?e-4:7===e?e-6:8===e?e-8:e:"LL"===t?0===e||1===e||2===e?e+6:6===e||7===e||8===e?e-6:e:void 0}fourClasses(e,t){return"HH"===t||null===t?0===e||4===e||8===e||12===e?e+3:1===e||5===e||9===e||13===e?e+1:2===e||6===e||10===e||14===e?e-1:3===e||7===e||11===e||15===e?e-3:null:"LH"===t?0===e?e+15:1===e?e+13:2===e?e+11:3===e?e+9:4===e?e+7:5===e?e+5:6===e?e+3:7===e?e+1:8===e?e-1:9===e?e-3:10===e?e-5:11===e?e-7:12===e?e-9:13===e?e-11:14===e?e-13:15===e?e-15:null:"LL"===t?0===e||1===e||2===e||3===e?e+12:4===e||5===e||6===e||7===e?e+4:8===e||9===e||10===e||11===e?e-4:12===e||13===e||14===e||15===e?e-12:null:void 0}reorderCellNodes(e){const t=[];for(;this.cellNodeCounter<=e.length-1;)e.map((e=>{parseInt(e.getAttribute("data-cell-index"))===this.cellNodeCounter&&t.push(e)})),this.cellNodeCounter++;return this.cellNodeCounter=0,t}attachFeatureIndexes(e){const{focus:t,numClasses:i}=this.legendElement;"HH"===t||null===t?this.relationshipFocusIsHighHigh(e,i):"LL"===t?this.relationshipFocusIsLowLow(e,i):"LH"===t?this.relationshipFocusIsLowHigh(e,i):"HL"===t&&this.relationshipFocusIsHighLow(e,i),this.cellNodeCounter=0}relationshipFocusIsHighHigh(e,t){for(let i=t-1;i>=0;i--)for(let n=t-1;n>=0;n--)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsLowLow(e,t){for(let i=0;i<t;i++)for(let n=0;n<t;n++)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsLowHigh(e,t){for(let i=0;i<t;i++)for(let n=t-1;n>=0;n--)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsHighLow(e,t){for(let i=t-1;i>=0;i--)for(let n=0;n<t;n++)this.setDataAttributes(e,n,i,t),this.cellNodeCounter++}setDataAttributes(e,t,i,n){const a=e[this.cellNodeCounter];2===n?this.twoClassAttributes(a,t,i):3===n?this.threeClassAttributes(a,t,i):this.fourClassAttributes(a,t,i)}twoClassAttributes(e,t,i){const{legendElement:n}=this;"HL"===n.focus?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i)}threeClassAttributes(e,t,i){const{legendElement:n}=this;1===this.cellNodeCounter||3===this.cellNodeCounter||5===this.cellNodeCounter||7===this.cellNodeCounter?"HL"===n.focus?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i):"HL"!==n.focus?this.setDataFeatureIndexes(e,t,i):this.swapDataFeatureIndexes(e,t,i)}fourClassAttributes(e,t,i){const{legendElement:n}=this,{focus:a}=n;1===this.cellNodeCounter||2===this.cellNodeCounter||4===this.cellNodeCounter||5===this.cellNodeCounter||7===this.cellNodeCounter||8===this.cellNodeCounter||10===this.cellNodeCounter||11===this.cellNodeCounter||13===this.cellNodeCounter||14===this.cellNodeCounter?"HL"===a?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i):"HL"!==a?this.setDataFeatureIndexes(e,t,i):this.swapDataFeatureIndexes(e,t,i)}setDataFeatureIndexes(e,t,i){e.setAttribute("data-feature-i",`${t}`),e.setAttribute("data-feature-j",`${i}`),this.setDataCellFocus(e,t,i)}swapDataFeatureIndexes(e,t,i){e.setAttribute("data-feature-i",`${i}`),e.setAttribute("data-feature-j",`${t}`),this.setDataCellFocus(e,i,t)}setDataCellFocus(e,t,i){const{numClasses:n}=this.legendElement;2===n?this.setDataCellFocusForTwoClasses(e,t,i):3===n?this.setDataCellFocusForThreeClasses(e,t,i):4===n&&this.setDataCellFocusForFourClasses(e,t,i)}setDataCellFocusForTwoClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","HL"):1===t&&1===i&&e.setAttribute("data-cell-focus","HH")}setDataCellFocusForThreeClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LM"):0===t&&2===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","ML"):1===t&&1===i?e.setAttribute("data-cell-focus","MM"):1===t&&2===i?e.setAttribute("data-cell-focus","MH"):2===t&&0===i?e.setAttribute("data-cell-focus","HL"):2===t&&1===i?e.setAttribute("data-cell-focus","HM"):2===t&&2===i&&e.setAttribute("data-cell-focus","HH")}setDataCellFocusForFourClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LM1"):0===t&&2===i?e.setAttribute("data-cell-focus","LM2"):0===t&&3===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","M1L"):1===t&&1===i?e.setAttribute("data-cell-focus","M1M1"):1===t&&2===i?e.setAttribute("data-cell-focus","M1M2"):1===t&&3===i?e.setAttribute("data-cell-focus","M1H"):2===t&&0===i?e.setAttribute("data-cell-focus","M2L"):2===t&&1===i?e.setAttribute("data-cell-focus","M2M1"):2===t&&2===i?e.setAttribute("data-cell-focus","M2M2"):2===t&&3===i?e.setAttribute("data-cell-focus","M2H"):3===t&&0===i?e.setAttribute("data-cell-focus","HL"):3===t&&1===i?e.setAttribute("data-cell-focus","HM1"):3===t&&2===i?e.setAttribute("data-cell-focus","HM2"):3===t&&3===i&&e.setAttribute("data-cell-focus","HH")}applyEventHandlers(){const e=document.querySelectorAll(".esri-interactive-legend__svg-rect-element");Array.from(e).map((e=>{const t=e.getAttribute("data-feature-i"),i=e.getAttribute("data-feature-j"),n=e.getAttribute("data-cell-focus");e.onclick=()=>{this.handleFilter(t,i,n),this.handleSelectedElement(e)},e.onkeydown=a=>{const{key:s}=a;("Enter"===s||"Space"===s)&&(this.handleFilter(t,i,n),this.handleSelectedElement(e))}}))}async handleFilter(e,t,i){var n,a,s,l,o;const d=this.activeLayerInfo.layer,{authoringInfo:r}=d.renderer,{field1:p,field2:h}=r,{queryExpressions:v,fLayerView:g}=c.data[this.activeLayerInfo.layer.id];if("relationship-ramp"===this.legendElement.type&&r&&p&&h){const c=this.generateExpressionParams(p,h,r,e,t,i),d=this.generateExpressionForRelationship(c);0===v.length?v[0]=d:-1===v.indexOf(d)?v.push(d):v.splice(v.indexOf(d),1);const u=v.join(" OR "),y=null!==(a=null===(n=null==g?void 0:g.filter)||void 0===n?void 0:n.timeExtent)&&void 0!==a?a:null,[_,b]=await m(["esri/layers/support/FeatureFilter","esri/layers/support/FeatureEffect"]);if("filter"===(null===(s=this.filterMode)||void 0===s?void 0:s.type))g.filter=new _({where:u,timeExtent:(null===(l=null==g?void 0:g.filter)||void 0===l?void 0:l.timeExtent)?g.filter.timeExtent:null});else if(null===(o=this.filterMode)||void 0===o?void 0:o.effect){const{includedEffect:e,excludedEffect:t}=this.filterMode.effect,i=await f(t,g,"excludedEffect"),n=await f(e,g,"includedEffect");g.featureEffect=new b({filter:new _({where:u,timeExtent:y}),includedEffect:n,excludedEffect:i})}}}generateExpressionParams(e,t,i,n,a,s){const l=[],o=e.field,c=t.field,d=e.classBreakInfos,r=t.classBreakInfos,p=i.field1.hasOwnProperty("normalizationField")?i.field1.normalizationField:null,h=i.field2.hasOwnProperty("normalizationField")?i.field2.normalizationField:null;return d.forEach(((e,t)=>{const i=[];r.forEach(((e,n)=>{i.push([d[t],r[n]])})),l.push(i)})),{data:l,i:n,j:a,field1:p?`(${o}/${p})`:`${o}`,field2:h?`(${c}/${h})`:`${c}`,focus:s}}generateExpressionForRelationship(e){const{focus:t,field1:i,field2:n,data:a,i:s,j:l}=e;return"LL"===t?`${i} >= ${a[s][l][0].minValue} AND ${i} <= ${a[s][l][0].maxValue} AND ${n} >= ${a[s][l][1].minValue} AND ${n} <= ${a[s][l][1].maxValue}`:"LM"===t||"LM1"===t||"LM2"===t||"LH"===t?`${i} >= ${a[s][l][0].minValue} AND ${i} <= ${a[s][l][0].maxValue} AND ${n} > ${a[s][l][1].minValue} AND ${n} <= ${a[s][l][1].maxValue}`:"ML"===t||"M1L"===t||"M2L"===t||"HL"===t?`${i} > ${a[s][l][0].minValue} AND ${i} <= ${a[s][l][0].maxValue} AND ${n} >= ${a[s][l][1].minValue} AND ${n} <= ${a[s][l][1].maxValue}`:`${i} > ${a[s][l][0].minValue} AND ${i} <= ${a[s][l][0].maxValue} AND ${n} > ${a[s][l][1].minValue} AND ${n} <= ${a[s][l][1].maxValue}`}handleSelectedElement(e){const t=e.classList;t.contains("esri-interactive-legend--selected-cell")?(e.removeAttribute("stroke"),e.removeAttribute("stroke-width"),e.removeAttribute("stroke-opacity"),t.remove("esri-interactive-legend--selected-cell")):(t.add("esri-interactive-legend--selected-cell"),e.setAttribute("stroke","black"),e.setAttribute("stroke-width","3px"),e.setAttribute("stroke-opacity","1"))}};k.style=".sc-instant-apps-interactive-legend-relationship-h{display:block}.sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{display:inline-block;width:100%;text-align:center;margin-bottom:10px;background-color:#d2e9f9}.calcite-mode-dark .sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{background-color:var(--calcite-color-brand);color:#151515}";export{y as instant_apps_interactive_legend_group_legend_element,_ as instant_apps_interactive_legend_layer_element,b as instant_apps_interactive_legend_legend_element,x as instant_apps_interactive_legend_legend_element_caption,k as instant_apps_interactive_legend_relationship}
|
6
|
+
import{r as e,f as t,h as i,g as n,c as a}from"./p-1b0588d2.js";import{g as s,m as l,s as o,i as c,a as d,z as r,n as p,l as h,o as v,u as g,p as u}from"./p-3d20e307.js";import{l as m}from"./p-08ad0b7a.js";import{g as f}from"./p-89fbc318.js";import"./p-e23b4193.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const y=class{constructor(t){e(this,t),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){var e;this.expanded=!!(null===(e=this.layerCaption)||void 0===e?void 0:e.expanded)}async componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0})}render(){return i("div",{key:"ab9a4911afa5f1021f3270c4fec409a708e2ec51",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:"esri-legend__service esri-legend__group-layer"},i("instant-apps-interactive-legend-layer-element-caption",{key:"bc80abe473c1b47920a78b072033d5b214f7822c",ref:e=>this.layerCaption=e,class:s(this.el),legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:this.isChild}),i("div",{key:"cf6dc1620eb0a95430129b9d414a9f6b893b61c2",class:"esri-legend__group-content "+(!1===this.expanded?"hide":"show")},i("slot",{key:"f346b52020e3cf4e3a072fdfa17a3762676aba53",name:"content"})))}get el(){return n(this)}};y.style=".sc-instant-apps-interactive-legend-group-legend-element-h{display:block}.sc-instant-apps-interactive-legend-group-legend-element-h .esri-legend__service.sc-instant-apps-interactive-legend-group-legend-element{margin:0;padding:0}.sc-instant-apps-interactive-legend-group-legend-element-h .hide.sc-instant-apps-interactive-legend-group-legend-element{display:none}";const _=class{constructor(t){e(this,t),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=void 0,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=this.layerCaption.expanded}componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0})}render(){var e,t;return i("div",{key:"45305a415db8ba0a08ab69de820ff6b8711e1cee",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:"esri-legend__service"+(this.activeLayerInfo.parent?" esri-legend__group-layer-child":""),tabIndex:0},i("instant-apps-interactive-legend-layer-element-caption",{key:"7babce8571540883bca9e0ff07c0a152cbb30fbb",ref:e=>this.layerCaption=e,legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:!!this.isChild,class:s(this.el)}),i("div",{key:"c021d9c441c407d5fac6f246eb9f4b6ce76bcaa5",id:`${null===(t=null===(e=this.activeLayerInfo)||void 0===e?void 0:e.layer)||void 0===t?void 0:t.id}-legend-layer`,class:"esri-legend__layer"+(!1===this.expanded?" hide":" show")},i("slot",{key:"761834066d924654c87a39601c1670625c88d863",name:"content"})))}get el(){return n(this)}};_.style=".sc-instant-apps-interactive-legend-layer-element-h{display:block}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__service.sc-instant-apps-interactive-legend-layer-element{padding:0}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-layer-element{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-layer-element-h .hide.sc-instant-apps-interactive-legend-layer-element{display:none}";const b=class{constructor(t){e(this,t),this.activeLayerInfo=void 0,this.isSizeRamp=void 0,this.isChild=void 0,this.isColorRamp=void 0,this.isRelationshipRamp=void 0,this.isInteractive=void 0,this.zoomTo=void 0,this.legendElement=void 0,this.titleText=void 0,this.legendvm=void 0,this.legendElementIndex=void 0,this.messages=void 0,this.expanded=!0}legendLayerExpandUpdatedEmitted(){this.expanded=this.legendLayerCaption.expanded}render(){var e,t,n,a,s,c,d,r,p;const h=this.isChild?"esri-legend__layer-child-table":"esri-legend__layer-table",v=1===(null===(t=null===(e=this.legendElement)||void 0===e?void 0:e.infos)||void 0===t?void 0:t.length)&&!(null===(s=null===(a=null===(n=this.activeLayerInfo)||void 0===n?void 0:n.layer)||void 0===a?void 0:a.renderer)||void 0===s?void 0:s.field),g=!this.isSizeRamp&&this.isChild||this.isColorRamp?"":" esri-legend__layer-table--size-ramp",u=this.isInteractive?"":" instant-apps-interactive-legend__non-interactive",m=l(this.activeLayerInfo)?" instant-apps-interactive-legend__nested-unique-symbol":"";let f=!(!v||this.expanded||this.zoomTo)||this.expanded;return this.isRelationshipRamp&&(f=o.get("relationshipRampExpandStates")[this.activeLayerInfo.layer.id]),i("div",{key:"cd76a15dfd77c630708e61535a4d22d66385a4bf",class:`${h}${g}${u}${m}`},i("div",{key:"24eb28f5fa505d1d4471a750b5273b34af2f3428",id:`${null===(d=null===(c=this.activeLayerInfo)||void 0===c?void 0:c.layer)||void 0===d?void 0:d.id}-legend-element-caption`,class:this.isRelationshipRamp||!this.titleText&&!this.zoomTo&&v?"hide":"show"},i("instant-apps-interactive-legend-legend-element-caption",{key:"5ffd04439d1c99251e358afcf077628a780c8e40",ref:e=>this.legendLayerCaption=e,legendvm:this.legendvm,activeLayerInfo:this.activeLayerInfo,layer:this.activeLayerInfo.layer,titleText:this.titleText,legendElement:this.legendElement,legendElementIndex:this.legendElementIndex,zoomTo:this.zoomTo,isInteractive:this.isInteractive,messages:this.messages})),i("div",{key:"content",id:`${null===(p=null===(r=this.activeLayerInfo)||void 0===r?void 0:r.layer)||void 0===p?void 0:p.id}-legend-element-content-${this.legendElementIndex}`,class:!1===f?"hide":"show"},i("slot",{key:"c95e14737a003f85f7c494e6d30d9f946bef464a",name:"content"})))}};var L;b.style=".sc-instant-apps-interactive-legend-legend-element-h{display:block}.sc-instant-apps-interactive-legend-legend-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-legend-element,.sc-instant-apps-interactive-legend-legend-element-h .instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-legend-element{margin:0}.sc-instant-apps-interactive-legend-legend-element-h .hide.sc-instant-apps-interactive-legend-legend-element{display:none}",function(e){e.ZoomTo="magnifying-glass-plus",e.ShowAll="list-check-all"}(L||(L={}));const x=class{constructor(t){e(this,t),this.showAllSelectedEvent=a(this,"showAllSelected",7),this.legendLayerExpandUpdatedEvent=a(this,"legendLayerExpandUpdated",7),this.legendvm=void 0,this.activeLayerInfo=void 0,this.layer=void 0,this.titleText=void 0,this.legendElementIndex=void 0,this.zoomTo=void 0,this.isInteractive=void 0,this.legendElement=void 0,this.expanded=!0,this.messages=void 0}render(){var e,t,n,a;const s=l(this.activeLayerInfo),c=p(this.activeLayerInfo),{expanded:d}=this,r=o.get("compact"),h=r?" instant-apps-interactive-legend__layer-caption--compact":"";if(s&&!this.titleText)return null;const v=this.titleText&&i("span",{class:"instant-apps-interactive-legend__legend-layer-caption-text",title:this.titleText},this.titleText),g=(this.isInteractive||c)&&this.renderLegendElementCaptionControls();return i("div",{class:`esri-legend__layer-caption${h}`},i("calcite-action",{onClick:this.toggleExpanded(),icon:!1===d?"chevron-up":"chevron-down",appearance:"transparent",text:!1===d?null===(e=this.messages)||void 0===e?void 0:e.expand:null===(t=this.messages)||void 0===t?void 0:t.collapse,label:!1===d?null===(n=this.messages)||void 0===n?void 0:n.expand:null===(a=this.messages)||void 0===a?void 0:a.collapse,scale:"s"}),r?[v,g]:[g,v])}renderLegendElementCaptionControls(){return i("div",{key:"layer-caption-btn-container",class:"instant-apps-interactive-legend__layer-caption-btn-container"+(this.titleText?"":" instant-apps-interactive-legend__layer-caption-btn-container--no-text")},this.renderShowAllZoomToButtons())}renderShowAllZoomToButtons(){return o.get("compact")?this.renderCompactButtonUI():this.renderButtonUI()}renderCompactButtonUI(){var e,t,n,a,s,l;const{data:o}=c,{id:d}=this.layer||{},r=(null===(t=null===(e=null==o?void 0:o[d])||void 0===e?void 0:e.categories)||void 0===t?void 0:t.size)>1,p="zoomToCompact";return[this.zoomTo&&[i("calcite-action",{id:p,class:"instant-apps-interactive-legend__zoom-to-btn",onClick:this.handleZoomTo(),icon:L.ZoomTo,appearance:"transparent",scale:"s",text:null===(n=this.messages)||void 0===n?void 0:n.zoomTo}),i("calcite-tooltip",{"reference-element":p,placement:"top",label:null===(a=this.messages)||void 0===a?void 0:a.zoomTo},null===(s=this.messages)||void 0===s?void 0:s.zoomTo)],r&&i("button",{onClick:this.handleShowAll(),class:"instant-apps-interactive-legend__show-all-btn"},null===(l=this.messages)||void 0===l?void 0:l.showAll)]}renderButtonUI(){var e,t,n,a,s,l,o,d;const{data:r}=c,{id:p}=this.layer||{},h="showAll",v="zoomTo";return[(null===(t=null===(e=null==r?void 0:r[p])||void 0===e?void 0:e.categories)||void 0===t?void 0:t.size)>1&&[i("calcite-button",{key:"show-all-button",id:h,label:null===(n=this.messages)||void 0===n?void 0:n.showAll,onClick:this.handleShowAll(),iconStart:L.ShowAll,appearance:"outline",round:!0}),i("calcite-tooltip",{referenceElement:h,placement:"top",label:null===(a=this.messages)||void 0===a?void 0:a.showAll},null===(s=this.messages)||void 0===s?void 0:s.showAll)],this.zoomTo&&[i("calcite-button",{key:"zoom-to-button",id:v,label:null===(l=this.messages)||void 0===l?void 0:l.zoomTo,onClick:this.handleZoomTo(),iconStart:L.ZoomTo,appearance:"outline",round:!0}),i("calcite-tooltip",{"reference-element":v,placement:"top",label:null===(o=this.messages)||void 0===o?void 0:o.zoomTo},null===(d=this.messages)||void 0===d?void 0:d.zoomTo)]]}toggleExpanded(){return()=>{var e,t;this.expanded=!this.expanded,this.legendLayerExpandUpdatedEvent.emit(),(null===(t=null===(e=this.activeLayerInfo)||void 0===e?void 0:e.legendElements)||void 0===t?void 0:t.filter((e=>"relationship-ramp"===e.type))).length>0&&o.set("relationshipRampExpandStates",Object.assign(Object.assign({},c.relationshipRampExpandStates),{[this.activeLayerInfo.layer.id]:this.expanded}))}}handleZoomTo(){return()=>{const e=h(this.layer),t=d(e,this.legendElement);r(e,this.legendvm.view,t)}}handleShowAll(){return()=>{var e,t;const i=null===(e=c.data)||void 0===e?void 0:e[null===(t=this.layer)||void 0===t?void 0:t.id];d(i,this.legendElement)?(()=>{const e=v(i,this.legendElement.title);g({intLegendLayerData:e,layerId:this.layer.id})})():((()=>{const e=u(i);g({intLegendLayerData:e,layerId:this.layer.id})})(),this.showAllSelectedEvent.emit())}}get el(){return n(this)}};x.style=".sc-instant-apps-interactive-legend-legend-element-caption-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption{--instant-apps-interactive-legend-ui-padding:5px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;justify-content:flex-end;width:100%}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__show-all-btn.sc-instant-apps-interactive-legend-legend-element-caption{border:none;background-color:transparent;cursor:pointer;color:var(--calcite-ui-brand);font-weight:var(--calcite-font-weight-medium);font-size:0.75rem;padding-inline-start:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__zoom-to-btn.sc-instant-apps-interactive-legend-legend-element-caption{--calcite-icon-color:var(--calcite-ui-brand);--calcite-color-transparent-hover:transparent}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;font-size:0.75rem;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;margin-left:5px;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;white-space:nowrap}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption calcite-button.sc-instant-apps-interactive-legend-legend-element-caption{margin:2px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight);padding:var(--instant-apps-interactive-legend-ui-padding)}html[dir=rtl] .sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:unset;margin-right:20px}";const w=".esri-relationship-ramp--diamond__middle-column--ramp svg g",k=class{constructor(t){e(this,t),this.cellNodeCounter=0,this.filterMode=void 0,this.activeLayerInfo=void 0,this.legendElement=void 0,this.messages=void 0}applyInteractivity(){this.applyRelationshipRampInteractivity()}showAllSelectedEmitted(){const e=0===c.data[this.activeLayerInfo.layer.id].queryExpressions.length,t=this.relationshipRamp.querySelector(w).children,i=t?Array.from(t):null;e&&(null==i||i.forEach((e=>{e.removeAttribute("stroke"),e.removeAttribute("stroke-width"),e.removeAttribute("stroke-opacity"),e.classList.remove("esri-interactive-legend--selected-cell")})))}async componentWillLoad(){const[e]=await m(["esri/symbols/support/symbolUtils"]);this.symbolUtils=e}render(){var e,t;return i("div",{key:"b24758bce1743ae91567e78df38854fddabf52fd",ref:e=>{if(!(null==e?void 0:e.querySelector("relationshipStyles"))){const t=document.createElement("style");t.id="relationshipStyles",t.innerHTML="\n rect:hover {\n cursor: pointer;\n opacity: 0.8;\n }\n ",null==e||e.appendChild(t)}}},i("span",{key:"e3f3bc2a4e7d423bb6aec2072252654b3ac77b2e",class:"instant-apps-interactive-legend-relationship__instructional-text"},null===(t=null===(e=this.messages)||void 0===e?void 0:e.relationship)||void 0===t?void 0:t.instructionalText),this.renderRelationshipRamp())}renderRelationshipRamp(){var e;const t=(null===(e=this.activeLayerInfo)||void 0===e?void 0:e.layer).renderer,n=this.symbolUtils.renderRelationshipRampPreviewHTML(t);return i("div",{ref:e=>{this.relationshipRamp=e,this.applyRelationshipRampInteractivity()},key:"relationship-ramp-diamond",innerHTML:`${null==n?void 0:n.outerHTML}`})}applyRelationshipRampInteractivity(){if(!(this.relationshipRamp&&this.activeLayerInfo&&this.legendElement&&c.data))return;let e=setInterval((()=>{const t=this.relationshipRamp.querySelector(w);t&&(clearInterval(e),this.setupRelationshipDrawingStyle(t.children))}),10)}setupRelationshipDrawingStyle(e){const t=e?Array.from(e):null;if(!t)return;t.map(((e,t)=>{var i,n,a,s,l,o,c,d,r;const p=(null===(n=null===(i=this.activeLayerInfo)||void 0===i?void 0:i.layer)||void 0===n?void 0:n.renderer).uniqueValueInfos;if(p[t]){const i=null===(c=null===(o=null===(l=null===(s=null===(a=null==p?void 0:p[t])||void 0===a?void 0:a.symbol)||void 0===s?void 0:s.data)||void 0===l?void 0:l.symbol)||void 0===o?void 0:o.symbolLayers)||void 0===c?void 0:c[1].color,n=null===(r=null===(d=null==p?void 0:p[t])||void 0===d?void 0:d.symbol)||void 0===r?void 0:r.color;p.forEach(((t,a)=>{var s,l,o,c,d;const r=null===(s=null==t?void 0:t.symbol)||void 0===s?void 0:s.color,p=null===(d=null===(c=null===(o=null===(l=null==t?void 0:t.symbol)||void 0===l?void 0:l.data)||void 0===o?void 0:o.symbol)||void 0===c?void 0:c.symbolLayers)||void 0===d?void 0:d[1].color;let h=!1;h=p?p.every(((e,t)=>e===i[t])):r.r===n.r&&r.g===n.g&&r.b===n.b&&r.a===n.a,h&&this.setCellAttributes(e,a)})),e.classList.add("esri-interactive-legend__svg-rect-element")}}));const i=this.reorderCellNodes(t);this.attachFeatureIndexes(i),this.applyEventHandlers()}setCellAttributes(e,t){const i=this.activeLayerInfo.layer.renderer.uniqueValueInfos,n=this.generateIndexPattern(t);i[n]&&(e.setAttribute("data-color",`${i[n].symbol.color}`),e.setAttribute("data-cell-index",`${n}`),e.setAttribute("tabindex","0"))}generateIndexPattern(e){const{focus:t,numClasses:i}=this.legendElement;return"HL"===t?e:2===i?this.twoClasses(e,t):3===i?this.threeClasses(e,t):4===i?this.fourClasses(e,t):null}twoClasses(e,t){return"HH"===t||null===t?0===e||2===e?e+1:1===e||3===e?e-1:null:"LH"===t?0===e?e+3:1===e?e+1:2===e?e-1:3===e?e-3:4===e?e+0:null:"LL"===t?0===e||1===e?e+2:2===e||3===e?e-2:null:void 0}threeClasses(e,t){return"HH"===t||null===t?0===e||3===e||6===e?e+2:2===e||5===e||8===e?e-2:e:"LH"===t?0===e?e+8:1===e?e+6:2===e?e+4:3===e?e+2:5===e?e-2:6===e?e-4:7===e?e-6:8===e?e-8:e:"LL"===t?0===e||1===e||2===e?e+6:6===e||7===e||8===e?e-6:e:void 0}fourClasses(e,t){return"HH"===t||null===t?0===e||4===e||8===e||12===e?e+3:1===e||5===e||9===e||13===e?e+1:2===e||6===e||10===e||14===e?e-1:3===e||7===e||11===e||15===e?e-3:null:"LH"===t?0===e?e+15:1===e?e+13:2===e?e+11:3===e?e+9:4===e?e+7:5===e?e+5:6===e?e+3:7===e?e+1:8===e?e-1:9===e?e-3:10===e?e-5:11===e?e-7:12===e?e-9:13===e?e-11:14===e?e-13:15===e?e-15:null:"LL"===t?0===e||1===e||2===e||3===e?e+12:4===e||5===e||6===e||7===e?e+4:8===e||9===e||10===e||11===e?e-4:12===e||13===e||14===e||15===e?e-12:null:void 0}reorderCellNodes(e){const t=[];for(;this.cellNodeCounter<=e.length-1;)e.map((e=>{parseInt(e.getAttribute("data-cell-index"))===this.cellNodeCounter&&t.push(e)})),this.cellNodeCounter++;return this.cellNodeCounter=0,t}attachFeatureIndexes(e){const{focus:t,numClasses:i}=this.legendElement;"HH"===t||null===t?this.relationshipFocusIsHighHigh(e,i):"LL"===t?this.relationshipFocusIsLowLow(e,i):"LH"===t?this.relationshipFocusIsLowHigh(e,i):"HL"===t&&this.relationshipFocusIsHighLow(e,i),this.cellNodeCounter=0}relationshipFocusIsHighHigh(e,t){for(let i=t-1;i>=0;i--)for(let n=t-1;n>=0;n--)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsLowLow(e,t){for(let i=0;i<t;i++)for(let n=0;n<t;n++)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsLowHigh(e,t){for(let i=0;i<t;i++)for(let n=t-1;n>=0;n--)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsHighLow(e,t){for(let i=t-1;i>=0;i--)for(let n=0;n<t;n++)this.setDataAttributes(e,n,i,t),this.cellNodeCounter++}setDataAttributes(e,t,i,n){const a=e[this.cellNodeCounter];2===n?this.twoClassAttributes(a,t,i):3===n?this.threeClassAttributes(a,t,i):this.fourClassAttributes(a,t,i)}twoClassAttributes(e,t,i){const{legendElement:n}=this;"HL"===n.focus?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i)}threeClassAttributes(e,t,i){const{legendElement:n}=this;1===this.cellNodeCounter||3===this.cellNodeCounter||5===this.cellNodeCounter||7===this.cellNodeCounter?"HL"===n.focus?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i):"HL"!==n.focus?this.setDataFeatureIndexes(e,t,i):this.swapDataFeatureIndexes(e,t,i)}fourClassAttributes(e,t,i){const{legendElement:n}=this,{focus:a}=n;1===this.cellNodeCounter||2===this.cellNodeCounter||4===this.cellNodeCounter||5===this.cellNodeCounter||7===this.cellNodeCounter||8===this.cellNodeCounter||10===this.cellNodeCounter||11===this.cellNodeCounter||13===this.cellNodeCounter||14===this.cellNodeCounter?"HL"===a?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i):"HL"!==a?this.setDataFeatureIndexes(e,t,i):this.swapDataFeatureIndexes(e,t,i)}setDataFeatureIndexes(e,t,i){e.setAttribute("data-feature-i",`${t}`),e.setAttribute("data-feature-j",`${i}`),this.setDataCellFocus(e,t,i)}swapDataFeatureIndexes(e,t,i){e.setAttribute("data-feature-i",`${i}`),e.setAttribute("data-feature-j",`${t}`),this.setDataCellFocus(e,i,t)}setDataCellFocus(e,t,i){const{numClasses:n}=this.legendElement;2===n?this.setDataCellFocusForTwoClasses(e,t,i):3===n?this.setDataCellFocusForThreeClasses(e,t,i):4===n&&this.setDataCellFocusForFourClasses(e,t,i)}setDataCellFocusForTwoClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","HL"):1===t&&1===i&&e.setAttribute("data-cell-focus","HH")}setDataCellFocusForThreeClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LM"):0===t&&2===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","ML"):1===t&&1===i?e.setAttribute("data-cell-focus","MM"):1===t&&2===i?e.setAttribute("data-cell-focus","MH"):2===t&&0===i?e.setAttribute("data-cell-focus","HL"):2===t&&1===i?e.setAttribute("data-cell-focus","HM"):2===t&&2===i&&e.setAttribute("data-cell-focus","HH")}setDataCellFocusForFourClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LM1"):0===t&&2===i?e.setAttribute("data-cell-focus","LM2"):0===t&&3===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","M1L"):1===t&&1===i?e.setAttribute("data-cell-focus","M1M1"):1===t&&2===i?e.setAttribute("data-cell-focus","M1M2"):1===t&&3===i?e.setAttribute("data-cell-focus","M1H"):2===t&&0===i?e.setAttribute("data-cell-focus","M2L"):2===t&&1===i?e.setAttribute("data-cell-focus","M2M1"):2===t&&2===i?e.setAttribute("data-cell-focus","M2M2"):2===t&&3===i?e.setAttribute("data-cell-focus","M2H"):3===t&&0===i?e.setAttribute("data-cell-focus","HL"):3===t&&1===i?e.setAttribute("data-cell-focus","HM1"):3===t&&2===i?e.setAttribute("data-cell-focus","HM2"):3===t&&3===i&&e.setAttribute("data-cell-focus","HH")}applyEventHandlers(){const e=document.querySelectorAll(".esri-interactive-legend__svg-rect-element");Array.from(e).map((e=>{const t=e.getAttribute("data-feature-i"),i=e.getAttribute("data-feature-j"),n=e.getAttribute("data-cell-focus");e.onclick=()=>{this.handleFilter(t,i,n),this.handleSelectedElement(e)},e.onkeydown=a=>{const{key:s}=a;("Enter"===s||"Space"===s)&&(this.handleFilter(t,i,n),this.handleSelectedElement(e))}}))}async handleFilter(e,t,i){var n,a,s,l,o;const d=this.activeLayerInfo.layer,{authoringInfo:r}=d.renderer,{field1:p,field2:h}=r,{queryExpressions:v,fLayerView:g}=c.data[this.activeLayerInfo.layer.id];if("relationship-ramp"===this.legendElement.type&&r&&p&&h){const c=this.generateExpressionParams(p,h,r,e,t,i),d=this.generateExpressionForRelationship(c);0===v.length?v[0]=d:-1===v.indexOf(d)?v.push(d):v.splice(v.indexOf(d),1);const u=v.join(" OR "),y=null!==(a=null===(n=null==g?void 0:g.filter)||void 0===n?void 0:n.timeExtent)&&void 0!==a?a:null,[_,b]=await m(["esri/layers/support/FeatureFilter","esri/layers/support/FeatureEffect"]);if("filter"===(null===(s=this.filterMode)||void 0===s?void 0:s.type))g.filter=new _({where:u,timeExtent:(null===(l=null==g?void 0:g.filter)||void 0===l?void 0:l.timeExtent)?g.filter.timeExtent:null});else if(null===(o=this.filterMode)||void 0===o?void 0:o.effect){const{includedEffect:e,excludedEffect:t}=this.filterMode.effect,i=await f(t,g,"excludedEffect"),n=await f(e,g,"includedEffect");g.featureEffect=new b({filter:new _({where:u,timeExtent:y}),includedEffect:n,excludedEffect:i})}}}generateExpressionParams(e,t,i,n,a,s){const l=[],o=e.field,c=t.field,d=e.classBreakInfos,r=t.classBreakInfos,p=i.field1.hasOwnProperty("normalizationField")?i.field1.normalizationField:null,h=i.field2.hasOwnProperty("normalizationField")?i.field2.normalizationField:null;return d.forEach(((e,t)=>{const i=[];r.forEach(((e,n)=>{i.push([d[t],r[n]])})),l.push(i)})),{data:l,i:n,j:a,field1:p?`(${o}/${p})`:`${o}`,field2:h?`(${c}/${h})`:`${c}`,focus:s}}generateExpressionForRelationship(e){const{focus:t,field1:i,field2:n,data:a,i:s,j:l}=e;return"LL"===t?`${i} >= ${a[s][l][0].minValue} AND ${i} <= ${a[s][l][0].maxValue} AND ${n} >= ${a[s][l][1].minValue} AND ${n} <= ${a[s][l][1].maxValue}`:"LM"===t||"LM1"===t||"LM2"===t||"LH"===t?`${i} >= ${a[s][l][0].minValue} AND ${i} <= ${a[s][l][0].maxValue} AND ${n} > ${a[s][l][1].minValue} AND ${n} <= ${a[s][l][1].maxValue}`:"ML"===t||"M1L"===t||"M2L"===t||"HL"===t?`${i} > ${a[s][l][0].minValue} AND ${i} <= ${a[s][l][0].maxValue} AND ${n} >= ${a[s][l][1].minValue} AND ${n} <= ${a[s][l][1].maxValue}`:`${i} > ${a[s][l][0].minValue} AND ${i} <= ${a[s][l][0].maxValue} AND ${n} > ${a[s][l][1].minValue} AND ${n} <= ${a[s][l][1].maxValue}`}handleSelectedElement(e){const t=e.classList;t.contains("esri-interactive-legend--selected-cell")?(e.removeAttribute("stroke"),e.removeAttribute("stroke-width"),e.removeAttribute("stroke-opacity"),t.remove("esri-interactive-legend--selected-cell")):(t.add("esri-interactive-legend--selected-cell"),e.setAttribute("stroke","black"),e.setAttribute("stroke-width","3px"),e.setAttribute("stroke-opacity","1"))}};k.style=".sc-instant-apps-interactive-legend-relationship-h{display:block}.sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{display:inline-block;width:100%;text-align:center;margin-bottom:10px;background-color:#d2e9f9}.calcite-mode-dark .sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{background-color:var(--calcite-color-brand);color:#151515}";export{y as instant_apps_interactive_legend_group_legend_element,_ as instant_apps_interactive_legend_layer_element,b as instant_apps_interactive_legend_legend_element,x as instant_apps_interactive_legend_legend_element_caption,k as instant_apps_interactive_legend_relationship}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{_ as t}from"./p-
|
6
|
+
import{_ as t}from"./p-6eab9d1f.js";import{l as s}from"./p-ee2cbba0.js";
|
7
7
|
/** @license
|
8
8
|
* Copyright 2022 Esri
|
9
9
|
*
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{g as r}from"./p-d4056c1c.js";import{_ as t}from"./p-
|
6
|
+
import{g as r}from"./p-d4056c1c.js";import{_ as t}from"./p-4fe489cf.js";var n,o,e={exports:{}},i={exports:{}},u={exports:{}};o=t.exports.default,(n=u).exports=function(r,t){if("object"!=o(r)||!r)return r;var n=r[Symbol.toPrimitive];if(void 0!==n){var e=n.call(r,t||"default");if("object"!=o(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(r)},n.exports.__esModule=!0,n.exports.default=n.exports,function(r){var n=t.exports.default,o=u.exports;r.exports=function(r){var t=o(r,"string");return"symbol"==n(t)?t:t+""},r.exports.__esModule=!0,r.exports.default=r.exports}(i),function(r){var t=i.exports;r.exports=function(r,n,o){return(n=t(n))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r},r.exports.__esModule=!0,r.exports.default=r.exports}(e);const a=r(e.exports);var c={exports:{}};!function(r){function t(r,t,n,o,e,i,u){try{var a=r[i](u),c=a.value}catch(r){return void n(r)}a.done?t(c):Promise.resolve(c).then(o,e)}r.exports=function(r){return function(){var n=this,o=arguments;return new Promise((function(e,i){var u=r.apply(n,o);function a(r){t(u,e,i,a,c,"next",r)}function c(r){t(u,e,i,a,c,"throw",r)}a(void 0)}))}},r.exports.__esModule=!0,r.exports.default=r.exports}(c);const f=r(c.exports);export{f as _,a,e as d}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{c as t}from"./p-d4056c1c.js";import{_ as r,a as e}from"./p-62a0aa8e.js";import"./p-af7e43e0.js";var i=function(t){return t&&t.Math===Math&&t},n=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||i("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s={},a=function(t){try{return!!t()}catch(t){return!0}},o=!a((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=Function.prototype.call,c=h?u.bind(u):function(){return u.apply(u,arguments)},f={},l={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,d=v&&!l.call({1:2},1);f.f=d?function(t){var r=v(this,t);return!!r&&r.enumerable}:l;var p,y,g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=h,b=Function.prototype,w=b.call,x=m&&b.bind.bind(w,w),M=m?x:function(t){return function(){return w.apply(t,arguments)}},k=M,N=k({}.toString),S=k("".slice),O=function(t){return S(N(t),8,-1)},P=a,j=O,E=Object,C=M("".split),T=P((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"===j(t)?C(t,""):E(t)}:E,A=function(t){return null==t},R=A,B=TypeError,$=function(t){if(R(t))throw new B("Can't call method on "+t);return t},D=T,L=$,F=function(t){return D(L(t))},I="object"==typeof document&&document.all,z=void 0===I&&void 0!==I?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},_=z,Y=function(t){return"object"==typeof t?null!==t:_(t)},X=n,U=z,q=function(t,r){return arguments.length<2?U(e=X[t])?e:void 0:X[t]&&X[t][r];var e},G=M({}.isPrototypeOf),V=n.navigator,H=V&&V.userAgent,W=H?String(H):"",Q=W,Z=n.process,K=n.Deno,J=Z&&Z.versions||K&&K.version,tt=J&&J.v8;tt&&(y=(p=tt.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!y&&Q&&(!(p=Q.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=Q.match(/Chrome\/(\d+)/))&&(y=+p[1]);var rt=y,et=rt,it=n.String,nt=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol("symbol detection");return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&et&&et<41})),st=nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=q,ot=z,ht=G,ut=Object,ct=st?function(t){return"symbol"==typeof t}:function(t){var r=at("Symbol");return ot(r)&&ht(r.prototype,ut(t))},ft=String,lt=function(t){try{return ft(t)}catch(t){return"Object"}},vt=z,dt=lt,pt=TypeError,yt=function(t){if(vt(t))return t;throw new pt(dt(t)+" is not a function")},gt=yt,mt=A,bt=function(t,r){var e=t[r];return mt(e)?void 0:gt(e)},wt=c,xt=z,Mt=Y,kt=TypeError,Nt={exports:{}},St=n,Ot=Object.defineProperty,Pt=function(t,r){try{Ot(St,t,{value:r,configurable:!0,writable:!0})}catch(e){St[t]=r}return r},jt="__core-js_shared__",Et=Nt.exports=n[jt]||Pt(jt,{});(Et.versions||(Et.versions=[])).push({version:"3.40.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ct=Nt.exports,Tt=function(t,r){return Ct[t]||(Ct[t]=r||{})},At=$,Rt=Object,Bt=function(t){return Rt(At(t))},$t=Bt,Dt=M({}.hasOwnProperty),Lt=Object.hasOwn||function(t,r){return Dt($t(t),r)},Ft=M,It=0,zt=Math.random(),_t=Ft(1..toString),Yt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+_t(++It+zt,36)},Xt=Lt,Ut=Yt,qt=nt,Gt=st,Vt=n.Symbol,Ht=Tt("wks"),Wt=Gt?Vt.for||Vt:Vt&&Vt.withoutSetter||Ut,Qt=function(t){return Xt(Ht,t)||(Ht[t]=qt&&Xt(Vt,t)?Vt[t]:Wt("Symbol."+t)),Ht[t]},Zt=c,Kt=Y,Jt=ct,tr=bt,rr=TypeError,er=Qt("toPrimitive"),ir=function(t,r){if(!Kt(t)||Jt(t))return t;var e,i=tr(t,er);if(i){if(void 0===r&&(r="default"),e=Zt(i,t,r),!Kt(e)||Jt(e))return e;throw new rr("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var e,i;if("string"===r&&xt(e=t.toString)&&!Mt(i=wt(e,t)))return i;if(xt(e=t.valueOf)&&!Mt(i=wt(e,t)))return i;if("string"!==r&&xt(e=t.toString)&&!Mt(i=wt(e,t)))return i;throw new kt("Can't convert object to primitive value")}(t,r)},nr=ct,sr=function(t){var r=ir(t,"string");return nr(r)?r:r+""},ar=Y,or=n.document,hr=ar(or)&&ar(or.createElement),ur=function(t){return hr?or.createElement(t):{}},cr=ur,fr=!o&&!a((function(){return 7!==Object.defineProperty(cr("div"),"a",{get:function(){return 7}}).a})),lr=c,vr=f,dr=g,pr=F,yr=sr,gr=Lt,mr=fr,br=Object.getOwnPropertyDescriptor;s.f=o?br:function(t,r){if(t=pr(t),r=yr(r),mr)try{return br(t,r)}catch(t){}if(gr(t,r))return dr(!lr(vr.f,t,r),t[r])};var wr={},xr=o&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Mr=Y,kr=String,Nr=TypeError,Sr=function(t){if(Mr(t))return t;throw new Nr(kr(t)+" is not an object")},Or=fr,Pr=Sr,jr=sr,Er=TypeError,Cr=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,Ar="enumerable",Rr="configurable",Br="writable";wr.f=o?xr?function(t,r,e){if(Pr(t),r=jr(r),Pr(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Br in e&&!e[Br]){var i=Tr(t,r);i&&i[Br]&&(t[r]=e.value,e={configurable:Rr in e?e[Rr]:i[Rr],enumerable:Ar in e?e[Ar]:i[Ar],writable:!1})}return Cr(t,r,e)}:Cr:function(t,r,e){if(Pr(t),r=jr(r),Pr(e),Or)try{return Cr(t,r,e)}catch(t){}if("get"in e||"set"in e)throw new Er("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var $r=wr,Dr=g,Lr=o?function(t,r,e){return $r.f(t,r,Dr(1,e))}:function(t,r,e){return t[r]=e,t},Fr={exports:{}},Ir=o,zr=Function.prototype,_r=Ir&&Object.getOwnPropertyDescriptor,Yr=Lt(zr,"name"),Xr={EXISTS:Yr,PROPER:Yr&&"something"===function(){}.name,CONFIGURABLE:Yr&&(!Ir||Ir&&_r(zr,"name").configurable)},Ur=z,qr=Nt.exports,Gr=M(Function.toString);Ur(qr.inspectSource)||(qr.inspectSource=function(t){return Gr(t)});var Vr,Hr,Wr,Qr=qr.inspectSource,Zr=n.WeakMap,Kr=z(Zr)&&/native code/.test(String(Zr)),Jr=Yt,te=Tt("keys"),re=function(t){return te[t]||(te[t]=Jr(t))},ee={},ie=Y,ne=Lr,se=Lt,ae=Nt.exports,oe=re,he=ee,ue="Object already initialized",ce=n.TypeError;if(Kr||ae.state){var fe=ae.state||(ae.state=new(0,n.WeakMap));fe.get=fe.get,fe.has=fe.has,fe.set=fe.set,Vr=function(t,r){if(fe.has(t))throw new ce(ue);return r.facade=t,fe.set(t,r),r},Hr=function(t){return fe.get(t)||{}},Wr=function(t){return fe.has(t)}}else{var le=oe("state");he[le]=!0,Vr=function(t,r){if(se(t,le))throw new ce(ue);return r.facade=t,ne(t,le,r),r},Hr=function(t){return se(t,le)?t[le]:{}},Wr=function(t){return se(t,le)}}var ve={set:Vr,get:Hr,has:Wr,enforce:function(t){return Wr(t)?Hr(t):Vr(t,{})},getterFor:function(t){return function(r){var e;if(!ie(r)||(e=Hr(r)).type!==t)throw new ce("Incompatible receiver, "+t+" required");return e}}},de=M,pe=a,ye=z,ge=Lt,me=o,be=Xr.CONFIGURABLE,we=Qr,xe=ve.enforce,Me=ve.get,ke=String,Ne=Object.defineProperty,Se=de("".slice),Oe=de("".replace),Pe=de([].join),je=me&&!pe((function(){return 8!==Ne((function(){}),"length",{value:8}).length})),Ee=String(String).split("String"),Ce=Fr.exports=function(t,r,e){"Symbol("===Se(ke(r),0,7)&&(r="["+Oe(ke(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!ge(t,"name")||be&&t.name!==r)&&(me?Ne(t,"name",{value:r,configurable:!0}):t.name=r),je&&e&&ge(e,"arity")&&t.length!==e.arity&&Ne(t,"length",{value:e.arity});try{e&&ge(e,"constructor")&&e.constructor?me&&Ne(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=xe(t);return ge(i,"source")||(i.source=Pe(Ee,"string"==typeof r?r:"")),t};Function.prototype.toString=Ce((function(){return ye(this)&&Me(this).source||we(this)}),"toString");var Te=z,Ae=wr,Re=Fr.exports,Be=Pt,$e=function(t,r,e,i){i||(i={});var n=i.enumerable,s=void 0!==i.name?i.name:r;if(Te(e)&&Re(e,s,i),i.global)n?t[r]=e:Be(r,e);else{try{i.unsafe?t[r]&&(n=!0):delete t[r]}catch(t){}n?t[r]=e:Ae.f(t,r,{value:e,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return t},De={},Le=Math.ceil,Fe=Math.floor,Ie=Math.trunc||function(t){var r=+t;return(r>0?Fe:Le)(r)},ze=Ie,_e=function(t){var r=+t;return r!=r||0===r?0:ze(r)},Ye=_e,Xe=Math.max,Ue=Math.min,qe=_e,Ge=Math.min,Ve=function(t){var r=qe(t);return r>0?Ge(r,9007199254740991):0},He=Ve,We=function(t){return He(t.length)},Qe=F,Ze=We,Ke=function(t){return function(r,e,i){var n=Qe(r),s=Ze(n);if(0===s)return!t&&-1;var a,o=function(t,r){var e=Ye(t);return e<0?Xe(e+r,0):Ue(e,r)}(i,s);if(t&&e!=e){for(;s>o;)if((a=n[o++])!=a)return!0}else for(;s>o;o++)if((t||o in n)&&n[o]===e)return t||o||0;return!t&&-1}},Je={includes:Ke(!0),indexOf:Ke(!1)},ti=Lt,ri=F,ei=Je.indexOf,ii=ee,ni=M([].push),si=function(t,r){var e,i=ri(t),n=0,s=[];for(e in i)!ti(ii,e)&&ti(i,e)&&ni(s,e);for(;r.length>n;)ti(i,e=r[n++])&&(~ei(s,e)||ni(s,e));return s},ai=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oi=si,hi=ai.concat("length","prototype");De.f=Object.getOwnPropertyNames||function(t){return oi(t,hi)};var ui={};ui.f=Object.getOwnPropertySymbols;var ci=q,fi=De,li=ui,vi=Sr,di=M([].concat),pi=ci("Reflect","ownKeys")||function(t){var r=fi.f(vi(t)),e=li.f;return e?di(r,e(t)):r},yi=Lt,gi=pi,mi=s,bi=wr,wi=a,xi=z,Mi=/#|\.prototype\./,ki=function(t,r){var e=Si[Ni(t)];return e===Pi||e!==Oi&&(xi(r)?wi(r):!!r)},Ni=ki.normalize=function(t){return String(t).replace(Mi,".").toLowerCase()},Si=ki.data={},Oi=ki.NATIVE="N",Pi=ki.POLYFILL="P",ji=ki,Ei=n,Ci=s.f,Ti=Lr,Ai=$e,Ri=Pt,Bi=function(t,r,e){for(var i=gi(r),n=bi.f,s=mi.f,a=0;a<i.length;a++){var o=i[a];yi(t,o)||e&&yi(e,o)||n(t,o,s(r,o))}},$i=ji,Di=function(t,r){var e,i,n,s,a,o=t.target,h=t.global,u=t.stat;if(e=h?Ei:u?Ei[o]||Ri(o,{}):Ei[o]&&Ei[o].prototype)for(i in r){if(s=r[i],n=t.dontCallGetSet?(a=Ci(e,i))&&a.value:e[i],!$i(h?i:o+(u?".":"#")+i,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Bi(s,n)}(t.sham||n&&n.sham)&&Ti(s,"sham",!0),Ai(e,i,s,t)}},Li=n,Fi=W,Ii=O,zi=function(t){return Fi.slice(0,t.length)===t},_i=zi("Bun/")?"BUN":zi("Cloudflare-Workers")?"CLOUDFLARE":zi("Deno/")?"DENO":zi("Node.js/")?"NODE":Li.Bun&&"string"==typeof Bun.version?"BUN":Li.Deno&&"object"==typeof Deno.version?"DENO":"process"===Ii(Li.process)?"NODE":Li.window&&Li.document?"BROWSER":"REST",Yi="NODE"===_i,Xi=M,Ui=yt,qi=Y,Gi=String,Vi=TypeError,Hi=Y,Wi=$,Qi=function(t){if(function(t){return qi(t)||null===t}(t))return t;throw new Vi("Can't set "+Gi(t)+" as a prototype")},Zi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=function(t,r,e){try{return Xi(Ui(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(t){}}(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(t){}return function(e,i){return Wi(e),Qi(i),Hi(e)?(r?t(e,i):e.__proto__=i,e):e}}():void 0),Ki=wr.f,Ji=Lt,tn=Qt("toStringTag"),rn=function(t,r,e){t&&!e&&(t=t.prototype),t&&!Ji(t,tn)&&Ki(t,tn,{configurable:!0,value:r})},en=Fr.exports,nn=wr,sn=q,an=o,on=Qt("species"),hn=G,un=TypeError,cn={};cn[Qt("toStringTag")]="z";var fn="[object z]"===String(cn),ln=z,vn=O,dn=Qt("toStringTag"),pn=Object,yn="Arguments"===vn(function(){return arguments}()),gn=fn?vn:function(t){var r,e,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=pn(t),dn))?e:yn?vn(r):"Object"===(i=vn(r))&&ln(r.callee)?"Arguments":i},mn=M,bn=a,wn=z,xn=gn,Mn=Qr,kn=function(){},Nn=q("Reflect","construct"),Sn=/^\s*(?:class|function)\b/,On=mn(Sn.exec),Pn=!Sn.test(kn),jn=function(t){if(!wn(t))return!1;try{return Nn(kn,[],t),!0}catch(t){return!1}},En=function(t){if(!wn(t))return!1;switch(xn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Pn||!!On(Sn,Mn(t))}catch(t){return!0}};En.sham=!0;var Cn,Tn,An,Rn,Bn=!Nn||bn((function(){var t;return jn(jn.call)||!jn(Object)||!jn((function(){t=!0}))||t}))?En:jn,$n=Bn,Dn=lt,Ln=TypeError,Fn=Sr,In=A,zn=Qt("species"),_n=function(t,r){var e,i=Fn(t).constructor;return void 0===i||In(e=Fn(i)[zn])?r:function(t){if($n(t))return t;throw new Ln(Dn(t)+" is not a constructor")}(e)},Yn=Function.prototype,Xn=Yn.apply,Un=Yn.call,qn="object"==typeof Reflect&&Reflect.apply||(h?Un.bind(Xn):function(){return Un.apply(Xn,arguments)}),Gn=O,Vn=M,Hn=function(t){if("Function"===Gn(t))return Vn(t)},Wn=yt,Qn=h,Zn=Hn(Hn.bind),Kn=function(t,r){return Wn(t),void 0===r?t:Qn?Zn(t,r):function(){return t.apply(r,arguments)}},Jn=q("document","documentElement"),ts=M([].slice),rs=TypeError,es=/(?:ipad|iphone|ipod).*applewebkit/i.test(W),is=n,ns=qn,ss=Kn,as=z,os=Lt,hs=a,us=Jn,cs=ts,fs=ur,ls=es,vs=Yi,ds=is.setImmediate,ps=is.clearImmediate,ys=is.process,gs=is.Dispatch,ms=is.Function,bs=is.MessageChannel,ws=is.String,xs=0,Ms={},ks="onreadystatechange";hs((function(){Cn=is.location}));var Ns=function(t){if(os(Ms,t)){var r=Ms[t];delete Ms[t],r()}},Ss=function(t){return function(){Ns(t)}},Os=function(t){Ns(t.data)},Ps=function(t){is.postMessage(ws(t),Cn.protocol+"//"+Cn.host)};ds&&ps||(ds=function(t){!function(t,r){if(t<r)throw new rs("Not enough arguments")}(arguments.length,1);var r=as(t)?t:ms(t),e=cs(arguments,1);return Ms[++xs]=function(){ns(r,void 0,e)},Tn(xs),xs},ps=function(t){delete Ms[t]},vs?Tn=function(t){ys.nextTick(Ss(t))}:gs&&gs.now?Tn=function(t){gs.now(Ss(t))}:bs&&!ls?(Rn=(An=new bs).port2,An.port1.onmessage=Os,Tn=ss(Rn.postMessage,Rn)):is.addEventListener&&as(is.postMessage)&&!is.importScripts&&Cn&&"file:"!==Cn.protocol&&!hs(Ps)?(Tn=Ps,is.addEventListener("message",Os,!1)):Tn=ks in fs("script")?function(t){us.appendChild(fs("script"))[ks]=function(){us.removeChild(this),Ns(t)}}:function(t){setTimeout(Ss(t),0)});var js={set:ds,clear:ps},Es=n,Cs=o,Ts=Object.getOwnPropertyDescriptor,As=function(){this.head=null,this.tail=null};As.prototype={add:function(t){var r={item:t,next:null},e=this.tail;e?e.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Rs,Bs,$s,Ds,Ls,Fs=As,Is=/ipad|iphone|ipod/i.test(W)&&"undefined"!=typeof Pebble,zs=/web0s(?!.*chrome)/i.test(W),_s=n,Ys=Kn,Xs=js.set,Us=Fs,qs=es,Gs=Is,Vs=zs,Hs=Yi,Ws=_s.MutationObserver||_s.WebKitMutationObserver,Qs=_s.document,Zs=_s.process,Ks=_s.Promise,Js=function(t){if(!Cs)return Es[t];var r=Ts(Es,t);return r&&r.value}("queueMicrotask");if(!Js){var ta=new Us,ra=function(){var t,r;for(Hs&&(t=Zs.domain)&&t.exit();r=ta.get();)try{r()}catch(t){throw ta.head&&Rs(),t}t&&t.enter()};qs||Hs||Vs||!Ws||!Qs?!Gs&&Ks&&Ks.resolve?((Ds=Ks.resolve(void 0)).constructor=Ks,Ls=Ys(Ds.then,Ds),Rs=function(){Ls(ra)}):Hs?Rs=function(){Zs.nextTick(ra)}:(Xs=Ys(Xs,_s),Rs=function(){Xs(ra)}):(Bs=!0,$s=Qs.createTextNode(""),new Ws(ra).observe($s,{characterData:!0}),Rs=function(){$s.data=Bs=!Bs}),Js=function(t){ta.head||Rs(),ta.add(t)}}var ea=Js,ia=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},na=n.Promise,sa=n,aa=na,oa=z,ha=ji,ua=Qr,ca=_i,fa=rt,la=Qt("species"),va=!1,da=oa(sa.PromiseRejectionEvent),pa=ha("Promise",(function(){var t=ua(aa),r=t!==String(aa);if(!r&&66===fa)return!0;if(!fa||fa<51||!/native code/.test(t)){var e=new aa((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};if((e.constructor={})[la]=i,!(va=e.then((function(){}))instanceof i))return!0}return!(r||"BROWSER"!==ca&&"DENO"!==ca||da)})),ya={CONSTRUCTOR:pa,REJECTION_EVENT:da,SUBCLASSING:va},ga={},ma=yt,ba=TypeError,wa=function(t){var r,e;this.promise=new t((function(t,i){if(void 0!==r||void 0!==e)throw new ba("Bad Promise constructor");r=t,e=i})),this.resolve=ma(r),this.reject=ma(e)};ga.f=function(t){return new wa(t)};var xa,Ma,ka,Na,Sa=Di,Oa=Yi,Pa=n,ja=c,Ea=$e,Ca=Zi,Ta=rn,Aa=yt,Ra=z,Ba=Y,$a=_n,Da=js.set,La=ea,Fa=ia,Ia=Fs,za=ve,_a=na,Ya=ga,Xa="Promise",Ua=ya.CONSTRUCTOR,qa=ya.REJECTION_EVENT,Ga=ya.SUBCLASSING,Va=za.getterFor(Xa),Ha=za.set,Wa=_a&&_a.prototype,Qa=_a,Za=Wa,Ka=Pa.TypeError,Ja=Pa.document,to=Pa.process,ro=Ya.f,eo=ro,io=!!(Ja&&Ja.createEvent&&Pa.dispatchEvent),no="unhandledrejection",so=function(t){var r;return!(!Ba(t)||!Ra(r=t.then))&&r},ao=function(t,r){var e,i,n,s=r.value,a=1===r.state,o=a?t.ok:t.fail,h=t.resolve,u=t.reject,c=t.domain;try{o?(a||(2===r.rejection&&fo(r),r.rejection=1),!0===o?e=s:(c&&c.enter(),e=o(s),c&&(c.exit(),n=!0)),e===t.promise?u(new Ka("Promise-chain cycle")):(i=so(e))?ja(i,e,h,u):h(e)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},oo=function(t,r){t.notified||(t.notified=!0,La((function(){for(var e,i=t.reactions;e=i.get();)ao(e,t);t.notified=!1,r&&!t.rejection&&uo(t)})))},ho=function(t,r,e){var i,n;io?((i=Ja.createEvent("Event")).promise=r,i.reason=e,i.initEvent(t,!1,!0),Pa.dispatchEvent(i)):i={promise:r,reason:e},!qa&&(n=Pa["on"+t])?n(i):t===no&&function(t,r){try{1===arguments.length?console.error(t):console.error(t,r)}catch(t){}}("Unhandled promise rejection",e)},uo=function(t){ja(Da,Pa,(function(){var r,e=t.facade,i=t.value;if(co(t)&&(r=Fa((function(){Oa?to.emit("unhandledRejection",i,e):ho(no,e,i)})),t.rejection=Oa||co(t)?2:1,r.error))throw r.value}))},co=function(t){return 1!==t.rejection&&!t.parent},fo=function(t){ja(Da,Pa,(function(){var r=t.facade;Oa?to.emit("rejectionHandled",r):ho("rejectionhandled",r,t.value)}))},lo=function(t,r,e){return function(i){t(r,i,e)}},vo=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=2,oo(t,!0))},po=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw new Ka("Promise can't be resolved itself");var i=so(r);i?La((function(){var e={done:!1};try{ja(i,r,lo(po,e,t),lo(vo,e,t))}catch(r){vo(e,r,t)}})):(t.value=r,t.state=1,oo(t,!1))}catch(r){vo({done:!1},r,t)}}};if(Ua&&(Qa=function(t){(function(t,r){if(hn(r,t))return t;throw new un("Incorrect invocation")})(this,Za),Aa(t),ja(xa,this);var r=Va(this);try{t(lo(po,r),lo(vo,r))}catch(t){vo(r,t)}},(xa=function(){Ha(this,{type:Xa,done:!1,notified:!1,parent:!1,reactions:new Ia,rejection:!1,state:0,value:null})}).prototype=Ea(Za=Qa.prototype,"then",(function(t,r){var e=Va(this),i=ro($a(this,Qa));return e.parent=!0,i.ok=!Ra(t)||t,i.fail=Ra(r)&&r,i.domain=Oa?to.domain:void 0,0===e.state?e.reactions.add(i):La((function(){ao(i,e)})),i.promise})),Ma=function(){var t=new xa,r=Va(t);this.promise=t,this.resolve=lo(po,r),this.reject=lo(vo,r)},Ya.f=ro=function(t){return t===Qa||void 0===t?new Ma(t):eo(t)},Ra(_a)&&Wa!==Object.prototype)){ka=Wa.then,Ga||Ea(Wa,"then",(function(t,r){var e=this;return new Qa((function(t,r){ja(ka,e,t,r)})).then(t,r)}),{unsafe:!0});try{delete Wa.constructor}catch(t){}Ca&&Ca(Wa,Za)}Sa({global:!0,constructor:!0,wrap:!0,forced:Ua},{Promise:Qa}),Ta(Qa,Xa,!1),Na=sn(Xa),an&&Na&&!Na[on]&&function(t,r,e){e.get&&en(e.get,r,{getter:!0}),e.set&&en(e.set,r,{setter:!0}),nn.f(t,r,e)}(Na,on,{configurable:!0,get:function(){return this}});var yo={},go=yo,mo=Qt("iterator"),bo=Array.prototype,wo=gn,xo=bt,Mo=A,ko=yo,No=Qt("iterator"),So=function(t){if(!Mo(t))return xo(t,No)||xo(t,"@@iterator")||ko[wo(t)]},Oo=c,Po=yt,jo=Sr,Eo=lt,Co=So,To=TypeError,Ao=c,Ro=Sr,Bo=bt,$o=Kn,Do=c,Lo=Sr,Fo=lt,Io=We,zo=G,_o=So,Yo=function(t,r,e){var i,n;Ro(t);try{if(!(i=Bo(t,"return"))){if("throw"===r)throw e;return e}i=Ao(i,t)}catch(t){n=!0,i=t}if("throw"===r)throw e;if(n)throw i;return Ro(i),e},Xo=TypeError,Uo=function(t,r){this.stopped=t,this.result=r},qo=Uo.prototype,Go=function(t,r,e){var i,n,s,a,o,h,u,c,f=!(!e||!e.AS_ENTRIES),l=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),d=!(!e||!e.INTERRUPTED),p=$o(r,e&&e.that),y=function(t){return i&&Yo(i,"normal",t),new Uo(!0,t)},g=function(t){return f?(Lo(t),d?p(t[0],t[1],y):p(t[0],t[1])):d?p(t,y):p(t)};if(l)i=t.iterator;else if(v)i=t;else{if(!(n=_o(t)))throw new Xo(Fo(t)+" is not iterable");if(void 0!==(c=n)&&(go.Array===c||bo[mo]===c)){for(s=0,a=Io(t);a>s;s++)if((o=g(t[s]))&&zo(qo,o))return o;return new Uo(!1)}i=function(t,r){var e=arguments.length<2?Co(t):r;if(Po(e))return jo(Oo(e,t));throw new To(Eo(t)+" is not iterable")}(t,n)}for(h=l?t.next:i.next;!(u=Do(h,i)).done;){try{o=g(u.value)}catch(t){Yo(i,"throw",t)}if("object"==typeof o&&o&&zo(qo,o))return o}return new Uo(!1)},Vo=Qt("iterator"),Ho=!1;try{var Wo=0,Qo={next:function(){return{done:!!Wo++}},return:function(){Ho=!0}};Qo[Vo]=function(){return this},Array.from(Qo,(function(){throw 2}))}catch(t){}var Zo=na,Ko=ya.CONSTRUCTOR||!function(t,r){try{if(!r&&!Ho)return!1}catch(t){return!1}var e=!1;try{var i={};i[Vo]=function(){return{next:function(){return{done:e=!0}}}},t(i)}catch(t){}return e}((function(t){Zo.all(t).then(void 0,(function(){}))})),Jo=c,th=yt,rh=ga,eh=ia,ih=Go;Di({target:"Promise",stat:!0,forced:Ko},{all:function(t){var r=this,e=rh.f(r),i=e.resolve,n=e.reject,s=eh((function(){var e=th(r.resolve),s=[],a=0,o=1;ih(t,(function(t){var h=a++,u=!1;o++,Jo(e,r,t).then((function(t){u||(u=!0,s[h]=t,--o||i(s))}),n)})),--o||i(s)}));return s.error&&n(s.value),e.promise}});var nh=na,sh=q,ah=z,oh=$e,hh=nh&&nh.prototype;if(Di({target:"Promise",proto:!0,forced:ya.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),ah(nh)){var uh=sh("Promise").prototype.catch;hh.catch!==uh&&oh(hh,"catch",uh,{unsafe:!0})}var ch=c,fh=yt,lh=ga,vh=ia,dh=Go;Di({target:"Promise",stat:!0,forced:Ko},{race:function(t){var r=this,e=lh.f(r),i=e.reject,n=vh((function(){var n=fh(r.resolve);dh(t,(function(t){ch(n,r,t).then(e.resolve,i)}))}));return n.error&&i(n.value),e.promise}});var ph=ga;Di({target:"Promise",stat:!0,forced:ya.CONSTRUCTOR},{reject:function(t){var r=ph.f(this);return(0,r.reject)(t),r.promise}});var yh=Sr,gh=Y,mh=ga;Di({target:"Promise",stat:!0,forced:ya.CONSTRUCTOR},{resolve:function(t){return function(t,r){if(yh(t),gh(r)&&r.constructor===t)return r;var e=mh.f(t);return(0,e.resolve)(r),e.promise}(this,t)}});var bh=gn,wh=String,xh=function(t){if("Symbol"===bh(t))throw new TypeError("Cannot convert a Symbol value to a string");return wh(t)},Mh=Sr,kh=function(){var t=Mh(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Nh=a,Sh=n.RegExp,Oh=Nh((function(){var t=Sh("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),Ph=Oh||Nh((function(){return!Sh("a","y").sticky})),jh={BROKEN_CARET:Oh||Nh((function(){var t=Sh("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:Ph,UNSUPPORTED_Y:Oh},Eh={},Ch=si,Th=ai,Ah=Object.keys||function(t){return Ch(t,Th)},Rh=wr,Bh=Sr,$h=F,Dh=Ah;Eh.f=o&&!xr?Object.defineProperties:function(t,r){Bh(t);for(var e,i=$h(r),n=Dh(r),s=n.length,a=0;s>a;)Rh.f(t,e=n[a++],i[e]);return t};var Lh,Fh=Sr,Ih=Eh,zh=ai,_h=ee,Yh=Jn,Xh=ur,Uh="prototype",qh="script",Gh=re("IE_PROTO"),Vh=function(){},Hh=function(t){return"<"+qh+">"+t+"</"+qh+">"},Wh=function(t){t.write(Hh("")),t.close();var r=t.parentWindow.Object;return t=null,r},Qh=function(){try{Lh=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;Qh="undefined"!=typeof document?document.domain&&Lh?Wh(Lh):(r=Xh("iframe"),e="java"+qh+":",r.style.display="none",Yh.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(Hh("document.F=Object")),t.close(),t.F):Wh(Lh);for(var i=zh.length;i--;)delete Qh[Uh][zh[i]];return Qh()};_h[Gh]=!0;var Zh,Kh,Jh=Object.create||function(t,r){var e;return null!==t?(Vh[Uh]=Fh(t),e=new Vh,Vh[Uh]=null,e[Gh]=t):e=Qh(),void 0===r?e:Ih.f(e,r)},tu=n.RegExp,ru=a((function(){var t=tu(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),eu=n.RegExp,iu=a((function(){var t=eu("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),nu=c,su=M,au=xh,ou=kh,hu=jh,uu=Jh,cu=ve.get,fu=ru,lu=iu,vu=Tt("native-string-replace",String.prototype.replace),du=RegExp.prototype.exec,pu=du,yu=su("".charAt),gu=su("".indexOf),mu=su("".replace),bu=su("".slice),wu=(Kh=/b*/g,nu(du,Zh=/a/,"a"),nu(du,Kh,"a"),0!==Zh.lastIndex||0!==Kh.lastIndex),xu=hu.BROKEN_CARET,Mu=void 0!==/()??/.exec("")[1];(wu||Mu||xu||fu||lu)&&(pu=function(t){var r,e,i,n,s,a,o,h=this,u=cu(h),c=au(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,r=nu(pu,f,c),h.lastIndex=f.lastIndex,r;var l=u.groups,v=xu&&h.sticky,d=nu(ou,h),p=h.source,y=0,g=c;if(v&&(d=mu(d,"y",""),-1===gu(d,"g")&&(d+="g"),g=bu(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==yu(c,h.lastIndex-1))&&(p="(?: "+p+")",g=" "+g,y++),e=new RegExp("^(?:"+p+")",d)),Mu&&(e=new RegExp("^"+p+"$(?!\\s)",d)),wu&&(i=h.lastIndex),n=nu(du,v?e:h,g),v?n?(n.input=bu(n.input,y),n[0]=bu(n[0],y),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:wu&&n&&(h.lastIndex=h.global?n.index+n[0].length:i),Mu&&n&&n.length>1&&nu(vu,n[0],e,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&l)for(n.groups=a=uu(null),s=0;s<l.length;s++)a[(o=l[s])[0]]=n[o[1]];return n});var ku=pu;Di({target:"RegExp",proto:!0,forced:/./.exec!==ku},{exec:ku});var Nu=c,Su=$e,Ou=ku,Pu=a,ju=Qt,Eu=Lr,Cu=ju("species"),Tu=RegExp.prototype,Au=function(t,r,e,i){var n=ju(t),s=!Pu((function(){var r={};return r[n]=function(){return 7},7!==""[t](r)})),a=s&&!Pu((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[Cu]=function(){return e},e.flags="",e[n]=/./[n]),e.exec=function(){return r=!0,null},e[n](""),!r}));if(!s||!a||e){var o=/./[n],h=r(n,""[t],(function(t,r,e,i,n){var a=r.exec;return a===Ou||a===Tu.exec?s&&!n?{done:!0,value:Nu(o,r,e,i)}:{done:!0,value:Nu(t,e,r,i)}:{done:!1}}));Su(String.prototype,t,h[0]),Su(Tu,n,h[1])}i&&Eu(Tu[n],"sham",!0)},Ru=M,Bu=_e,$u=xh,Du=$,Lu=Ru("".charAt),Fu=Ru("".charCodeAt),Iu=Ru("".slice),zu=function(t){return function(r,e){var i,n,s=$u(Du(r)),a=Bu(e),o=s.length;return a<0||a>=o?t?"":void 0:(i=Fu(s,a))<55296||i>56319||a+1===o||(n=Fu(s,a+1))<56320||n>57343?t?Lu(s,a):i:t?Iu(s,a,a+2):n-56320+(i-55296<<10)+65536}},_u=(zu(!1),zu(!0)),Yu=function(t,r,e){return r+(e?_u(t,r).length:1)},Xu=c,Uu=Sr,qu=z,Gu=O,Vu=ku,Hu=TypeError,Wu=function(t,r){var e=t.exec;if(qu(e)){var i=Xu(e,t,r);return null!==i&&Uu(i),i}if("RegExp"===Gu(t))return Xu(Vu,t,r);throw new Hu("RegExp#exec called on incompatible receiver")},Qu=c,Zu=Sr,Ku=A,Ju=Ve,tc=xh,rc=$,ec=bt,ic=Yu,nc=Wu;Au("match",(function(t,r,e){return[function(r){var e=rc(this),i=Ku(r)?void 0:ec(r,t);return i?Qu(i,r,e):new RegExp(r)[t](tc(e))},function(t){var i=Zu(this),n=tc(t),s=e(r,i,n);if(s.done)return s.value;if(!i.global)return nc(i,n);var a=i.unicode;i.lastIndex=0;for(var o,h=[],u=0;null!==(o=nc(i,n));){var c=tc(o[0]);h[u]=c,""===c&&(i.lastIndex=ic(n,Ju(i.lastIndex),a)),u++}return 0===u?null:h}]}));var sc=M,ac=Bt,oc=Math.floor,hc=sc("".charAt),uc=sc("".replace),cc=sc("".slice),fc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,lc=/\$([$&'`]|\d{1,2})/g,vc=qn,dc=c,pc=M,yc=Au,gc=a,mc=Sr,bc=z,wc=A,xc=_e,Mc=Ve,kc=xh,Nc=$,Sc=Yu,Oc=bt,Pc=function(t,r,e,i,n,s){var a=e+t.length,o=i.length,h=lc;return void 0!==n&&(n=ac(n),h=fc),uc(s,h,(function(s,h){var u;switch(hc(h,0)){case"$":return"$";case"&":return t;case"`":return cc(r,0,e);case"'":return cc(r,a);case"<":u=n[cc(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=oc(c/10);return 0===f?s:f<=o?void 0===i[f-1]?hc(h,1):i[f-1]+hc(h,1):s}u=i[c-1]}return void 0===u?"":u}))},jc=Wu,Ec=Qt("replace"),Cc=Math.max,Tc=Math.min,Ac=pc([].concat),Rc=pc([].push),Bc=pc("".indexOf),$c=pc("".slice),Dc="$0"==="a".replace(/./,"$0"),Lc=!!/./[Ec]&&""===/./[Ec]("a","$0");yc("replace",(function(t,r,e){var i=Lc?"$":"$0";return[function(t,e){var i=Nc(this),n=wc(t)?void 0:Oc(t,Ec);return n?dc(n,t,i,e):dc(r,kc(i),t,e)},function(t,n){var s=mc(this),a=kc(t);if("string"==typeof n&&-1===Bc(n,i)&&-1===Bc(n,"$<")){var o=e(r,s,a,n);if(o.done)return o.value}var h=bc(n);h||(n=kc(n));var u,c=s.global;c&&(u=s.unicode,s.lastIndex=0);for(var f,l=[];null!==(f=jc(s,a))&&(Rc(l,f),c);)""===kc(f[0])&&(s.lastIndex=Sc(a,Mc(s.lastIndex),u));for(var v,d="",p=0,y=0;y<l.length;y++){for(var g,m=kc((f=l[y])[0]),b=Cc(Tc(xc(f.index),a.length),0),w=[],x=1;x<f.length;x++)Rc(w,void 0===(v=f[x])?v:String(v));var M=f.groups;if(h){var k=Ac([m],w,b,a);void 0!==M&&Rc(k,M),g=kc(vc(n,void 0,k))}else g=Pc(m,a,b,w,M,n);b>=p&&(d+=$c(a,p,b)+g,p=b+m.length)}return d+$c(a,p)}]}),!!gc((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Dc||Lc);var Fc,Ic=Y,zc=O,_c=Qt("match"),Yc=TypeError,Xc=function(t){if(function(t){var r;return Ic(t)&&(void 0!==(r=t[_c])?!!r:"RegExp"===zc(t))}(t))throw new Yc("The method doesn't accept regular expressions");return t},Uc=Qt("match"),qc=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[Uc]=!1,"/./"[t](r)}catch(t){}}return!1},Gc=Di,Vc=s.f,Hc=Ve,Wc=xh,Qc=Xc,Zc=$,Kc=qc,Jc=Hn("".slice),tf=Math.min,rf=Kc("startsWith");Gc({target:"String",proto:!0,forced:!(!rf&&(Fc=Vc(String.prototype,"startsWith"),Fc&&!Fc.writable)||rf)},{startsWith:function(t){var r=Wc(Zc(this));Qc(t);var e=Hc(tf(arguments.length>1?arguments[1]:void 0,r.length)),i=Wc(t);return Jc(r,e,e+i.length)===i}});var ef=Jh,nf=wr.f,sf=Qt("unscopables"),af=Array.prototype;void 0===af[sf]&&nf(af,sf,{configurable:!0,value:ef(null)});var of,hf,uf,cf=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ff=Lt,lf=z,vf=Bt,df=cf,pf=re("IE_PROTO"),yf=Object,gf=yf.prototype,mf=df?yf.getPrototypeOf:function(t){var r=vf(t);if(ff(r,pf))return r[pf];var e=r.constructor;return lf(e)&&r instanceof e?e.prototype:r instanceof yf?gf:null},bf=a,wf=z,xf=Y,Mf=mf,kf=$e,Nf=Qt("iterator"),Sf=!1;[].keys&&("next"in(uf=[].keys())?(hf=Mf(Mf(uf)))!==Object.prototype&&(of=hf):Sf=!0);var Of=!xf(of)||bf((function(){var t={};return of[Nf].call(t)!==t}));Of&&(of={}),wf(of[Nf])||kf(of,Nf,(function(){return this}));var Pf={IteratorPrototype:of,BUGGY_SAFARI_ITERATORS:Sf},jf=Pf.IteratorPrototype,Ef=Jh,Cf=g,Tf=rn,Af=yo,Rf=function(){return this},Bf=Di,$f=c,Df=z,Lf=mf,Ff=Zi,If=rn,zf=Lr,_f=$e,Yf=yo,Xf=Xr.PROPER,Uf=Xr.CONFIGURABLE,qf=Pf.IteratorPrototype,Gf=Pf.BUGGY_SAFARI_ITERATORS,Vf=Qt("iterator"),Hf="keys",Wf="values",Qf="entries",Zf=function(){return this},Kf=F,Jf=function(t){af[sf][t]=!0},tl=yo,rl=wr.f,el=function(t,r){return{value:t,done:r}},il=o,nl="Array Iterator",sl=ve.set,al=ve.getterFor(nl),ol=function(t,r,e,i,n,s,a){!function(t,r,e,i){var n=r+" Iterator";t.prototype=Ef(jf,{next:Cf(+!i,e)}),Tf(t,n,!1),Af[n]=Rf}(e,r,i);var o,h,u,c=function(t){if(t===n&&p)return p;if(!Gf&&t&&t in v)return v[t];switch(t){case Hf:case Wf:case Qf:return function(){return new e(this,t)}}return function(){return new e(this)}},f=r+" Iterator",l=!1,v=t.prototype,d=v[Vf]||v["@@iterator"]||n&&v[n],p=!Gf&&d||c(n),y="Array"===r&&v.entries||d;if(y&&(o=Lf(y.call(new t)))!==Object.prototype&&o.next&&(Lf(o)!==qf&&(Ff?Ff(o,qf):Df(o[Vf])||_f(o,Vf,Zf)),If(o,f,!0)),Xf&&n===Wf&&d&&d.name!==Wf&&(Uf?zf(v,"name",Wf):(l=!0,p=function(){return $f(d,this)})),n)if(h={values:c(Wf),keys:s?p:c(Hf),entries:c(Qf)},a)for(u in h)(Gf||l||!(u in v))&&_f(v,u,h[u]);else Bf({target:r,proto:!0,forced:Gf||l},h);return v[Vf]!==p&&_f(v,Vf,p,{name:n}),Yf[r]=p,h}(Array,"Array",(function(t,r){sl(this,{type:nl,target:Kf(t),index:0,kind:r})}),(function(){var t=al(this),r=t.target,e=t.index++;if(!r||e>=r.length)return t.target=null,el(void 0,!0);switch(t.kind){case"keys":return el(e,!1);case"values":return el(r[e],!1)}return el([e,r[e]],!1)}),"values"),hl=tl.Arguments=tl.Array;if(Jf("keys"),Jf("values"),Jf("entries"),il&&"values"!==hl.name)try{rl(hl,"name",{value:"values"})}catch(t){}var ul=ur("span").classList,cl=ul&&ul.constructor&&ul.constructor.prototype,fl=n,ll={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},vl=cl===Object.prototype?void 0:cl,dl=ol,pl=Lr,yl=rn,gl=Qt("iterator"),ml=dl.values,bl=function(t,r){if(t){if(t[gl]!==ml)try{pl(t,gl,ml)}catch(r){t[gl]=ml}if(yl(t,r,!0),ll[r])for(var e in dl)if(t[e]!==dl[e])try{pl(t,e,dl[e])}catch(r){t[e]=dl[e]}}};for(var wl in ll)bl(fl[wl]&&fl[wl].prototype,wl);bl(vl,"DOMTokenList");var xl=yt,Ml=Bt,kl=T,Nl=We,Sl=TypeError,Ol="Reduce of empty array with no initial value",Pl=function(t){return function(r,e,i,n){var s=Ml(r),a=kl(s),o=Nl(s);if(xl(e),0===o&&i<2)throw new Sl(Ol);var h=t?o-1:0,u=t?-1:1;if(i<2)for(;;){if(h in a){n=a[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw new Sl(Ol)}for(;t?h>=0:o>h;h+=u)h in a&&(n=e(n,a[h],h,s));return n}},jl={left:Pl(!1),right:Pl(!0)},El=a,Cl=function(t,r){var e=[][t];return!!e&&El((function(){e.call(null,r||function(){return 1},1)}))},Tl=jl.left;Di({target:"Array",proto:!0,forced:!Yi&&rt>79&&rt<83||!Cl("reduce")},{reduce:function(t){var r=arguments.length;return Tl(this,t,r,r>1?arguments[1]:void 0)}});var Al=Di,Rl=s.f,Bl=Ve,$l=xh,Dl=Xc,Ll=$,Fl=qc,Il=Hn("".slice),zl=Math.min,_l=Fl("endsWith"),Yl=!_l&&!!function(){var t=Rl(String.prototype,"endsWith");return t&&!t.writable}();Al({target:"String",proto:!0,forced:!Yl&&!_l},{endsWith:function(t){var r=$l(Ll(this));Dl(t);var e=arguments.length>1?arguments[1]:void 0,i=r.length,n=void 0===e?i:zl(Bl(e),i),s=$l(t);return Il(r,n-s.length,n)===s}});var Xl=c,Ul=M,ql=Au,Gl=Sr,Vl=A,Hl=$,Wl=_n,Ql=Yu,Zl=Ve,Kl=xh,Jl=bt,tv=Wu,rv=a,ev=jh.UNSUPPORTED_Y,iv=Math.min,nv=Ul([].push),sv=Ul("".slice),av=!rv((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var e="ab".split(t);return 2!==e.length||"a"!==e[0]||"b"!==e[1]})),ov="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;ql("split",(function(t,r,e){var i="0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:Xl(r,this,t,e)}:r;return[function(r,e){var n=Hl(this),s=Vl(r)?void 0:Jl(r,t);return s?Xl(s,r,n,e):Xl(i,Kl(n),r,e)},function(t,n){var s=Gl(this),a=Kl(t);if(!ov){var o=e(i,s,a,n,i!==r);if(o.done)return o.value}var h=Wl(s,RegExp),u=s.unicode,c=new h(ev?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(ev?"g":"y")),f=void 0===n?4294967295:n>>>0;if(0===f)return[];if(0===a.length)return null===tv(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=ev?0:v;var p,y=tv(c,ev?sv(a,v):a);if(null===y||(p=iv(Zl(c.lastIndex+(ev?v:0)),a.length))===l)v=Ql(a,v,u);else{if(nv(d,sv(a,l,v)),d.length===f)return d;for(var g=1;g<=y.length-1;g++)if(nv(d,y[g]),d.length===f)return d;v=l=p}}return nv(d,sv(a,l)),d}]}),ov||!av,ev);var hv={exports:{}},uv={exports:{}};(function(){var t,r,e,i,n,s;"undefined"!=typeof performance&&null!==performance&&performance.now?uv.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(uv.exports=function(){return(t()-n)/1e6},r=process.hrtime,i=(t=function(){var t;return 1e9*(t=r())[0]+t[1]})(),s=1e9*process.uptime(),n=i-s):Date.now?(uv.exports=function(){return Date.now()-e},e=Date.now()):(uv.exports=function(){return(new Date).getTime()-e},e=(new Date).getTime())}).call(t);for(var cv=uv.exports,fv="undefined"==typeof window?t:window,lv=["moz","webkit"],vv="AnimationFrame",dv=fv["request"+vv],pv=fv["cancel"+vv]||fv["cancelRequest"+vv],yv=0;!dv&&yv<lv.length;yv++)dv=fv[lv[yv]+"Request"+vv],pv=fv[lv[yv]+"Cancel"+vv]||fv[lv[yv]+"CancelRequest"+vv];if(!dv||!pv){var gv=0,mv=0,bv=[],wv=1e3/60;dv=function(t){if(0===bv.length){var r=cv(),e=Math.max(0,wv-(r-gv));gv=e+r,setTimeout((function(){var t=bv.slice(0);bv.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(gv)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(e))}return bv.push({handle:++mv,callback:t,cancelled:!1}),mv},pv=function(t){for(var r=0;r<bv.length;r++)bv[r].handle===t&&(bv[r].cancelled=!0)}}hv.exports=function(t){return dv.call(fv,t)},hv.exports.cancel=function(){pv.apply(fv,arguments)},hv.exports.polyfill=function(t){t||(t=fv),t.requestAnimationFrame=dv,t.cancelAnimationFrame=pv};const xv=hv.exports;var Mv,kv="\t\n\v\f\r \u2028\u2029\ufeff",Nv=$,Sv=xh,Ov=kv,Pv=M("".replace),jv=RegExp("^["+Ov+"]+"),Ev=RegExp("(^|[^"+Ov+"])["+Ov+"]+$"),Cv=function(t){return function(r){var e=Sv(Nv(r));return 1&t&&(e=Pv(e,jv,"")),2&t&&(e=Pv(e,Ev,"$1")),e}},Tv={start:Cv(1),end:Cv(2),trim:Cv(3)},Av=Xr.PROPER,Rv=kv,Bv=Tv.trim;Di({target:"String",proto:!0,forced:(Mv="trim",a((function(){return!!Rv[Mv]()||"
"!=="
"[Mv]()||Av&&Rv[Mv].name!==Mv})))},{trim:function(){return Bv(this)}});var $v=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=r[t]||t;for(var e=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i<e.length;i++){var n=e[i].process,s=e[i].re.exec(t);if(s){var a=n(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),r=this.g.toString(16),e=this.b.toString(16);return 1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),1==e.length&&(e="0"+e),"#"+t+r+e},this.getHelpXML=function(){for(var t=new Array,i=0;i<e.length;i++)for(var n=e[i].example,s=0;s<n.length;s++)t[t.length]=n[s];for(var a in r)t[t.length]=a;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),i=0;i<t.length;i++)try{var h=document.createElement("li"),u=new RGBColor(t[i]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[i]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(c),h.appendChild(f),o.appendChild(h)}catch(t){}return o}},Dv=Di,Lv=Je.indexOf,Fv=Cl,Iv=Hn([].indexOf),zv=!!Iv&&1/Iv([1],1,-0)<0;Dv({target:"Array",proto:!0,forced:zv||!Fv("indexOf")},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return zv?Iv(this,t,r)||0:Lv(this,t,r)}});var _v=Di,Yv=Xc,Xv=$,Uv=xh,qv=qc,Gv=M("".indexOf);_v({target:"String",proto:!0,forced:!qv("includes")},{includes:function(t){return!!~Gv(Uv(Xv(this)),Uv(Yv(t)),arguments.length>1?arguments[1]:void 0)}});var Vv=O,Hv=Di,Wv=Array.isArray||function(t){return"Array"===Vv(t)},Qv=M([].reverse),Zv=[1,2];Hv({target:"Array",proto:!0,forced:String(Zv)===String(Zv.reverse())},{reverse:function(){return Wv(this)&&(this.length=this.length),Qv(this)}});
|
6
|
+
import{c as t}from"./p-d4056c1c.js";import{_ as r,a as e}from"./p-d65f8b73.js";import"./p-4fe489cf.js";var i=function(t){return t&&t.Math===Math&&t},n=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||i("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s={},a=function(t){try{return!!t()}catch(t){return!0}},o=!a((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=Function.prototype.call,c=h?u.bind(u):function(){return u.apply(u,arguments)},f={},l={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,d=v&&!l.call({1:2},1);f.f=d?function(t){var r=v(this,t);return!!r&&r.enumerable}:l;var p,y,g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=h,b=Function.prototype,w=b.call,x=m&&b.bind.bind(w,w),M=m?x:function(t){return function(){return w.apply(t,arguments)}},k=M,N=k({}.toString),S=k("".slice),O=function(t){return S(N(t),8,-1)},P=a,j=O,E=Object,C=M("".split),T=P((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"===j(t)?C(t,""):E(t)}:E,A=function(t){return null==t},R=A,B=TypeError,$=function(t){if(R(t))throw new B("Can't call method on "+t);return t},D=T,L=$,F=function(t){return D(L(t))},I="object"==typeof document&&document.all,z=void 0===I&&void 0!==I?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},_=z,Y=function(t){return"object"==typeof t?null!==t:_(t)},X=n,U=z,q=function(t,r){return arguments.length<2?U(e=X[t])?e:void 0:X[t]&&X[t][r];var e},G=M({}.isPrototypeOf),V=n.navigator,H=V&&V.userAgent,W=H?String(H):"",Q=W,Z=n.process,K=n.Deno,J=Z&&Z.versions||K&&K.version,tt=J&&J.v8;tt&&(y=(p=tt.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!y&&Q&&(!(p=Q.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=Q.match(/Chrome\/(\d+)/))&&(y=+p[1]);var rt=y,et=rt,it=n.String,nt=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol("symbol detection");return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&et&&et<41})),st=nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=q,ot=z,ht=G,ut=Object,ct=st?function(t){return"symbol"==typeof t}:function(t){var r=at("Symbol");return ot(r)&&ht(r.prototype,ut(t))},ft=String,lt=function(t){try{return ft(t)}catch(t){return"Object"}},vt=z,dt=lt,pt=TypeError,yt=function(t){if(vt(t))return t;throw new pt(dt(t)+" is not a function")},gt=yt,mt=A,bt=function(t,r){var e=t[r];return mt(e)?void 0:gt(e)},wt=c,xt=z,Mt=Y,kt=TypeError,Nt={exports:{}},St=n,Ot=Object.defineProperty,Pt=function(t,r){try{Ot(St,t,{value:r,configurable:!0,writable:!0})}catch(e){St[t]=r}return r},jt="__core-js_shared__",Et=Nt.exports=n[jt]||Pt(jt,{});(Et.versions||(Et.versions=[])).push({version:"3.40.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ct=Nt.exports,Tt=function(t,r){return Ct[t]||(Ct[t]=r||{})},At=$,Rt=Object,Bt=function(t){return Rt(At(t))},$t=Bt,Dt=M({}.hasOwnProperty),Lt=Object.hasOwn||function(t,r){return Dt($t(t),r)},Ft=M,It=0,zt=Math.random(),_t=Ft(1..toString),Yt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+_t(++It+zt,36)},Xt=Lt,Ut=Yt,qt=nt,Gt=st,Vt=n.Symbol,Ht=Tt("wks"),Wt=Gt?Vt.for||Vt:Vt&&Vt.withoutSetter||Ut,Qt=function(t){return Xt(Ht,t)||(Ht[t]=qt&&Xt(Vt,t)?Vt[t]:Wt("Symbol."+t)),Ht[t]},Zt=c,Kt=Y,Jt=ct,tr=bt,rr=TypeError,er=Qt("toPrimitive"),ir=function(t,r){if(!Kt(t)||Jt(t))return t;var e,i=tr(t,er);if(i){if(void 0===r&&(r="default"),e=Zt(i,t,r),!Kt(e)||Jt(e))return e;throw new rr("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var e,i;if("string"===r&&xt(e=t.toString)&&!Mt(i=wt(e,t)))return i;if(xt(e=t.valueOf)&&!Mt(i=wt(e,t)))return i;if("string"!==r&&xt(e=t.toString)&&!Mt(i=wt(e,t)))return i;throw new kt("Can't convert object to primitive value")}(t,r)},nr=ct,sr=function(t){var r=ir(t,"string");return nr(r)?r:r+""},ar=Y,or=n.document,hr=ar(or)&&ar(or.createElement),ur=function(t){return hr?or.createElement(t):{}},cr=ur,fr=!o&&!a((function(){return 7!==Object.defineProperty(cr("div"),"a",{get:function(){return 7}}).a})),lr=c,vr=f,dr=g,pr=F,yr=sr,gr=Lt,mr=fr,br=Object.getOwnPropertyDescriptor;s.f=o?br:function(t,r){if(t=pr(t),r=yr(r),mr)try{return br(t,r)}catch(t){}if(gr(t,r))return dr(!lr(vr.f,t,r),t[r])};var wr={},xr=o&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Mr=Y,kr=String,Nr=TypeError,Sr=function(t){if(Mr(t))return t;throw new Nr(kr(t)+" is not an object")},Or=fr,Pr=Sr,jr=sr,Er=TypeError,Cr=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,Ar="enumerable",Rr="configurable",Br="writable";wr.f=o?xr?function(t,r,e){if(Pr(t),r=jr(r),Pr(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Br in e&&!e[Br]){var i=Tr(t,r);i&&i[Br]&&(t[r]=e.value,e={configurable:Rr in e?e[Rr]:i[Rr],enumerable:Ar in e?e[Ar]:i[Ar],writable:!1})}return Cr(t,r,e)}:Cr:function(t,r,e){if(Pr(t),r=jr(r),Pr(e),Or)try{return Cr(t,r,e)}catch(t){}if("get"in e||"set"in e)throw new Er("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var $r=wr,Dr=g,Lr=o?function(t,r,e){return $r.f(t,r,Dr(1,e))}:function(t,r,e){return t[r]=e,t},Fr={exports:{}},Ir=o,zr=Function.prototype,_r=Ir&&Object.getOwnPropertyDescriptor,Yr=Lt(zr,"name"),Xr={EXISTS:Yr,PROPER:Yr&&"something"===function(){}.name,CONFIGURABLE:Yr&&(!Ir||Ir&&_r(zr,"name").configurable)},Ur=z,qr=Nt.exports,Gr=M(Function.toString);Ur(qr.inspectSource)||(qr.inspectSource=function(t){return Gr(t)});var Vr,Hr,Wr,Qr=qr.inspectSource,Zr=n.WeakMap,Kr=z(Zr)&&/native code/.test(String(Zr)),Jr=Yt,te=Tt("keys"),re=function(t){return te[t]||(te[t]=Jr(t))},ee={},ie=Y,ne=Lr,se=Lt,ae=Nt.exports,oe=re,he=ee,ue="Object already initialized",ce=n.TypeError;if(Kr||ae.state){var fe=ae.state||(ae.state=new(0,n.WeakMap));fe.get=fe.get,fe.has=fe.has,fe.set=fe.set,Vr=function(t,r){if(fe.has(t))throw new ce(ue);return r.facade=t,fe.set(t,r),r},Hr=function(t){return fe.get(t)||{}},Wr=function(t){return fe.has(t)}}else{var le=oe("state");he[le]=!0,Vr=function(t,r){if(se(t,le))throw new ce(ue);return r.facade=t,ne(t,le,r),r},Hr=function(t){return se(t,le)?t[le]:{}},Wr=function(t){return se(t,le)}}var ve={set:Vr,get:Hr,has:Wr,enforce:function(t){return Wr(t)?Hr(t):Vr(t,{})},getterFor:function(t){return function(r){var e;if(!ie(r)||(e=Hr(r)).type!==t)throw new ce("Incompatible receiver, "+t+" required");return e}}},de=M,pe=a,ye=z,ge=Lt,me=o,be=Xr.CONFIGURABLE,we=Qr,xe=ve.enforce,Me=ve.get,ke=String,Ne=Object.defineProperty,Se=de("".slice),Oe=de("".replace),Pe=de([].join),je=me&&!pe((function(){return 8!==Ne((function(){}),"length",{value:8}).length})),Ee=String(String).split("String"),Ce=Fr.exports=function(t,r,e){"Symbol("===Se(ke(r),0,7)&&(r="["+Oe(ke(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!ge(t,"name")||be&&t.name!==r)&&(me?Ne(t,"name",{value:r,configurable:!0}):t.name=r),je&&e&&ge(e,"arity")&&t.length!==e.arity&&Ne(t,"length",{value:e.arity});try{e&&ge(e,"constructor")&&e.constructor?me&&Ne(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=xe(t);return ge(i,"source")||(i.source=Pe(Ee,"string"==typeof r?r:"")),t};Function.prototype.toString=Ce((function(){return ye(this)&&Me(this).source||we(this)}),"toString");var Te=z,Ae=wr,Re=Fr.exports,Be=Pt,$e=function(t,r,e,i){i||(i={});var n=i.enumerable,s=void 0!==i.name?i.name:r;if(Te(e)&&Re(e,s,i),i.global)n?t[r]=e:Be(r,e);else{try{i.unsafe?t[r]&&(n=!0):delete t[r]}catch(t){}n?t[r]=e:Ae.f(t,r,{value:e,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return t},De={},Le=Math.ceil,Fe=Math.floor,Ie=Math.trunc||function(t){var r=+t;return(r>0?Fe:Le)(r)},ze=Ie,_e=function(t){var r=+t;return r!=r||0===r?0:ze(r)},Ye=_e,Xe=Math.max,Ue=Math.min,qe=_e,Ge=Math.min,Ve=function(t){var r=qe(t);return r>0?Ge(r,9007199254740991):0},He=Ve,We=function(t){return He(t.length)},Qe=F,Ze=We,Ke=function(t){return function(r,e,i){var n=Qe(r),s=Ze(n);if(0===s)return!t&&-1;var a,o=function(t,r){var e=Ye(t);return e<0?Xe(e+r,0):Ue(e,r)}(i,s);if(t&&e!=e){for(;s>o;)if((a=n[o++])!=a)return!0}else for(;s>o;o++)if((t||o in n)&&n[o]===e)return t||o||0;return!t&&-1}},Je={includes:Ke(!0),indexOf:Ke(!1)},ti=Lt,ri=F,ei=Je.indexOf,ii=ee,ni=M([].push),si=function(t,r){var e,i=ri(t),n=0,s=[];for(e in i)!ti(ii,e)&&ti(i,e)&&ni(s,e);for(;r.length>n;)ti(i,e=r[n++])&&(~ei(s,e)||ni(s,e));return s},ai=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oi=si,hi=ai.concat("length","prototype");De.f=Object.getOwnPropertyNames||function(t){return oi(t,hi)};var ui={};ui.f=Object.getOwnPropertySymbols;var ci=q,fi=De,li=ui,vi=Sr,di=M([].concat),pi=ci("Reflect","ownKeys")||function(t){var r=fi.f(vi(t)),e=li.f;return e?di(r,e(t)):r},yi=Lt,gi=pi,mi=s,bi=wr,wi=a,xi=z,Mi=/#|\.prototype\./,ki=function(t,r){var e=Si[Ni(t)];return e===Pi||e!==Oi&&(xi(r)?wi(r):!!r)},Ni=ki.normalize=function(t){return String(t).replace(Mi,".").toLowerCase()},Si=ki.data={},Oi=ki.NATIVE="N",Pi=ki.POLYFILL="P",ji=ki,Ei=n,Ci=s.f,Ti=Lr,Ai=$e,Ri=Pt,Bi=function(t,r,e){for(var i=gi(r),n=bi.f,s=mi.f,a=0;a<i.length;a++){var o=i[a];yi(t,o)||e&&yi(e,o)||n(t,o,s(r,o))}},$i=ji,Di=function(t,r){var e,i,n,s,a,o=t.target,h=t.global,u=t.stat;if(e=h?Ei:u?Ei[o]||Ri(o,{}):Ei[o]&&Ei[o].prototype)for(i in r){if(s=r[i],n=t.dontCallGetSet?(a=Ci(e,i))&&a.value:e[i],!$i(h?i:o+(u?".":"#")+i,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Bi(s,n)}(t.sham||n&&n.sham)&&Ti(s,"sham",!0),Ai(e,i,s,t)}},Li=n,Fi=W,Ii=O,zi=function(t){return Fi.slice(0,t.length)===t},_i=zi("Bun/")?"BUN":zi("Cloudflare-Workers")?"CLOUDFLARE":zi("Deno/")?"DENO":zi("Node.js/")?"NODE":Li.Bun&&"string"==typeof Bun.version?"BUN":Li.Deno&&"object"==typeof Deno.version?"DENO":"process"===Ii(Li.process)?"NODE":Li.window&&Li.document?"BROWSER":"REST",Yi="NODE"===_i,Xi=M,Ui=yt,qi=Y,Gi=String,Vi=TypeError,Hi=Y,Wi=$,Qi=function(t){if(function(t){return qi(t)||null===t}(t))return t;throw new Vi("Can't set "+Gi(t)+" as a prototype")},Zi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=function(t,r,e){try{return Xi(Ui(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(t){}}(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(t){}return function(e,i){return Wi(e),Qi(i),Hi(e)?(r?t(e,i):e.__proto__=i,e):e}}():void 0),Ki=wr.f,Ji=Lt,tn=Qt("toStringTag"),rn=function(t,r,e){t&&!e&&(t=t.prototype),t&&!Ji(t,tn)&&Ki(t,tn,{configurable:!0,value:r})},en=Fr.exports,nn=wr,sn=q,an=o,on=Qt("species"),hn=G,un=TypeError,cn={};cn[Qt("toStringTag")]="z";var fn="[object z]"===String(cn),ln=z,vn=O,dn=Qt("toStringTag"),pn=Object,yn="Arguments"===vn(function(){return arguments}()),gn=fn?vn:function(t){var r,e,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=pn(t),dn))?e:yn?vn(r):"Object"===(i=vn(r))&&ln(r.callee)?"Arguments":i},mn=M,bn=a,wn=z,xn=gn,Mn=Qr,kn=function(){},Nn=q("Reflect","construct"),Sn=/^\s*(?:class|function)\b/,On=mn(Sn.exec),Pn=!Sn.test(kn),jn=function(t){if(!wn(t))return!1;try{return Nn(kn,[],t),!0}catch(t){return!1}},En=function(t){if(!wn(t))return!1;switch(xn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Pn||!!On(Sn,Mn(t))}catch(t){return!0}};En.sham=!0;var Cn,Tn,An,Rn,Bn=!Nn||bn((function(){var t;return jn(jn.call)||!jn(Object)||!jn((function(){t=!0}))||t}))?En:jn,$n=Bn,Dn=lt,Ln=TypeError,Fn=Sr,In=A,zn=Qt("species"),_n=function(t,r){var e,i=Fn(t).constructor;return void 0===i||In(e=Fn(i)[zn])?r:function(t){if($n(t))return t;throw new Ln(Dn(t)+" is not a constructor")}(e)},Yn=Function.prototype,Xn=Yn.apply,Un=Yn.call,qn="object"==typeof Reflect&&Reflect.apply||(h?Un.bind(Xn):function(){return Un.apply(Xn,arguments)}),Gn=O,Vn=M,Hn=function(t){if("Function"===Gn(t))return Vn(t)},Wn=yt,Qn=h,Zn=Hn(Hn.bind),Kn=function(t,r){return Wn(t),void 0===r?t:Qn?Zn(t,r):function(){return t.apply(r,arguments)}},Jn=q("document","documentElement"),ts=M([].slice),rs=TypeError,es=/(?:ipad|iphone|ipod).*applewebkit/i.test(W),is=n,ns=qn,ss=Kn,as=z,os=Lt,hs=a,us=Jn,cs=ts,fs=ur,ls=es,vs=Yi,ds=is.setImmediate,ps=is.clearImmediate,ys=is.process,gs=is.Dispatch,ms=is.Function,bs=is.MessageChannel,ws=is.String,xs=0,Ms={},ks="onreadystatechange";hs((function(){Cn=is.location}));var Ns=function(t){if(os(Ms,t)){var r=Ms[t];delete Ms[t],r()}},Ss=function(t){return function(){Ns(t)}},Os=function(t){Ns(t.data)},Ps=function(t){is.postMessage(ws(t),Cn.protocol+"//"+Cn.host)};ds&&ps||(ds=function(t){!function(t,r){if(t<r)throw new rs("Not enough arguments")}(arguments.length,1);var r=as(t)?t:ms(t),e=cs(arguments,1);return Ms[++xs]=function(){ns(r,void 0,e)},Tn(xs),xs},ps=function(t){delete Ms[t]},vs?Tn=function(t){ys.nextTick(Ss(t))}:gs&&gs.now?Tn=function(t){gs.now(Ss(t))}:bs&&!ls?(Rn=(An=new bs).port2,An.port1.onmessage=Os,Tn=ss(Rn.postMessage,Rn)):is.addEventListener&&as(is.postMessage)&&!is.importScripts&&Cn&&"file:"!==Cn.protocol&&!hs(Ps)?(Tn=Ps,is.addEventListener("message",Os,!1)):Tn=ks in fs("script")?function(t){us.appendChild(fs("script"))[ks]=function(){us.removeChild(this),Ns(t)}}:function(t){setTimeout(Ss(t),0)});var js={set:ds,clear:ps},Es=n,Cs=o,Ts=Object.getOwnPropertyDescriptor,As=function(){this.head=null,this.tail=null};As.prototype={add:function(t){var r={item:t,next:null},e=this.tail;e?e.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Rs,Bs,$s,Ds,Ls,Fs=As,Is=/ipad|iphone|ipod/i.test(W)&&"undefined"!=typeof Pebble,zs=/web0s(?!.*chrome)/i.test(W),_s=n,Ys=Kn,Xs=js.set,Us=Fs,qs=es,Gs=Is,Vs=zs,Hs=Yi,Ws=_s.MutationObserver||_s.WebKitMutationObserver,Qs=_s.document,Zs=_s.process,Ks=_s.Promise,Js=function(t){if(!Cs)return Es[t];var r=Ts(Es,t);return r&&r.value}("queueMicrotask");if(!Js){var ta=new Us,ra=function(){var t,r;for(Hs&&(t=Zs.domain)&&t.exit();r=ta.get();)try{r()}catch(t){throw ta.head&&Rs(),t}t&&t.enter()};qs||Hs||Vs||!Ws||!Qs?!Gs&&Ks&&Ks.resolve?((Ds=Ks.resolve(void 0)).constructor=Ks,Ls=Ys(Ds.then,Ds),Rs=function(){Ls(ra)}):Hs?Rs=function(){Zs.nextTick(ra)}:(Xs=Ys(Xs,_s),Rs=function(){Xs(ra)}):(Bs=!0,$s=Qs.createTextNode(""),new Ws(ra).observe($s,{characterData:!0}),Rs=function(){$s.data=Bs=!Bs}),Js=function(t){ta.head||Rs(),ta.add(t)}}var ea=Js,ia=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},na=n.Promise,sa=n,aa=na,oa=z,ha=ji,ua=Qr,ca=_i,fa=rt,la=Qt("species"),va=!1,da=oa(sa.PromiseRejectionEvent),pa=ha("Promise",(function(){var t=ua(aa),r=t!==String(aa);if(!r&&66===fa)return!0;if(!fa||fa<51||!/native code/.test(t)){var e=new aa((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};if((e.constructor={})[la]=i,!(va=e.then((function(){}))instanceof i))return!0}return!(r||"BROWSER"!==ca&&"DENO"!==ca||da)})),ya={CONSTRUCTOR:pa,REJECTION_EVENT:da,SUBCLASSING:va},ga={},ma=yt,ba=TypeError,wa=function(t){var r,e;this.promise=new t((function(t,i){if(void 0!==r||void 0!==e)throw new ba("Bad Promise constructor");r=t,e=i})),this.resolve=ma(r),this.reject=ma(e)};ga.f=function(t){return new wa(t)};var xa,Ma,ka,Na,Sa=Di,Oa=Yi,Pa=n,ja=c,Ea=$e,Ca=Zi,Ta=rn,Aa=yt,Ra=z,Ba=Y,$a=_n,Da=js.set,La=ea,Fa=ia,Ia=Fs,za=ve,_a=na,Ya=ga,Xa="Promise",Ua=ya.CONSTRUCTOR,qa=ya.REJECTION_EVENT,Ga=ya.SUBCLASSING,Va=za.getterFor(Xa),Ha=za.set,Wa=_a&&_a.prototype,Qa=_a,Za=Wa,Ka=Pa.TypeError,Ja=Pa.document,to=Pa.process,ro=Ya.f,eo=ro,io=!!(Ja&&Ja.createEvent&&Pa.dispatchEvent),no="unhandledrejection",so=function(t){var r;return!(!Ba(t)||!Ra(r=t.then))&&r},ao=function(t,r){var e,i,n,s=r.value,a=1===r.state,o=a?t.ok:t.fail,h=t.resolve,u=t.reject,c=t.domain;try{o?(a||(2===r.rejection&&fo(r),r.rejection=1),!0===o?e=s:(c&&c.enter(),e=o(s),c&&(c.exit(),n=!0)),e===t.promise?u(new Ka("Promise-chain cycle")):(i=so(e))?ja(i,e,h,u):h(e)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},oo=function(t,r){t.notified||(t.notified=!0,La((function(){for(var e,i=t.reactions;e=i.get();)ao(e,t);t.notified=!1,r&&!t.rejection&&uo(t)})))},ho=function(t,r,e){var i,n;io?((i=Ja.createEvent("Event")).promise=r,i.reason=e,i.initEvent(t,!1,!0),Pa.dispatchEvent(i)):i={promise:r,reason:e},!qa&&(n=Pa["on"+t])?n(i):t===no&&function(t,r){try{1===arguments.length?console.error(t):console.error(t,r)}catch(t){}}("Unhandled promise rejection",e)},uo=function(t){ja(Da,Pa,(function(){var r,e=t.facade,i=t.value;if(co(t)&&(r=Fa((function(){Oa?to.emit("unhandledRejection",i,e):ho(no,e,i)})),t.rejection=Oa||co(t)?2:1,r.error))throw r.value}))},co=function(t){return 1!==t.rejection&&!t.parent},fo=function(t){ja(Da,Pa,(function(){var r=t.facade;Oa?to.emit("rejectionHandled",r):ho("rejectionhandled",r,t.value)}))},lo=function(t,r,e){return function(i){t(r,i,e)}},vo=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=2,oo(t,!0))},po=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw new Ka("Promise can't be resolved itself");var i=so(r);i?La((function(){var e={done:!1};try{ja(i,r,lo(po,e,t),lo(vo,e,t))}catch(r){vo(e,r,t)}})):(t.value=r,t.state=1,oo(t,!1))}catch(r){vo({done:!1},r,t)}}};if(Ua&&(Qa=function(t){(function(t,r){if(hn(r,t))return t;throw new un("Incorrect invocation")})(this,Za),Aa(t),ja(xa,this);var r=Va(this);try{t(lo(po,r),lo(vo,r))}catch(t){vo(r,t)}},(xa=function(){Ha(this,{type:Xa,done:!1,notified:!1,parent:!1,reactions:new Ia,rejection:!1,state:0,value:null})}).prototype=Ea(Za=Qa.prototype,"then",(function(t,r){var e=Va(this),i=ro($a(this,Qa));return e.parent=!0,i.ok=!Ra(t)||t,i.fail=Ra(r)&&r,i.domain=Oa?to.domain:void 0,0===e.state?e.reactions.add(i):La((function(){ao(i,e)})),i.promise})),Ma=function(){var t=new xa,r=Va(t);this.promise=t,this.resolve=lo(po,r),this.reject=lo(vo,r)},Ya.f=ro=function(t){return t===Qa||void 0===t?new Ma(t):eo(t)},Ra(_a)&&Wa!==Object.prototype)){ka=Wa.then,Ga||Ea(Wa,"then",(function(t,r){var e=this;return new Qa((function(t,r){ja(ka,e,t,r)})).then(t,r)}),{unsafe:!0});try{delete Wa.constructor}catch(t){}Ca&&Ca(Wa,Za)}Sa({global:!0,constructor:!0,wrap:!0,forced:Ua},{Promise:Qa}),Ta(Qa,Xa,!1),Na=sn(Xa),an&&Na&&!Na[on]&&function(t,r,e){e.get&&en(e.get,r,{getter:!0}),e.set&&en(e.set,r,{setter:!0}),nn.f(t,r,e)}(Na,on,{configurable:!0,get:function(){return this}});var yo={},go=yo,mo=Qt("iterator"),bo=Array.prototype,wo=gn,xo=bt,Mo=A,ko=yo,No=Qt("iterator"),So=function(t){if(!Mo(t))return xo(t,No)||xo(t,"@@iterator")||ko[wo(t)]},Oo=c,Po=yt,jo=Sr,Eo=lt,Co=So,To=TypeError,Ao=c,Ro=Sr,Bo=bt,$o=Kn,Do=c,Lo=Sr,Fo=lt,Io=We,zo=G,_o=So,Yo=function(t,r,e){var i,n;Ro(t);try{if(!(i=Bo(t,"return"))){if("throw"===r)throw e;return e}i=Ao(i,t)}catch(t){n=!0,i=t}if("throw"===r)throw e;if(n)throw i;return Ro(i),e},Xo=TypeError,Uo=function(t,r){this.stopped=t,this.result=r},qo=Uo.prototype,Go=function(t,r,e){var i,n,s,a,o,h,u,c,f=!(!e||!e.AS_ENTRIES),l=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),d=!(!e||!e.INTERRUPTED),p=$o(r,e&&e.that),y=function(t){return i&&Yo(i,"normal",t),new Uo(!0,t)},g=function(t){return f?(Lo(t),d?p(t[0],t[1],y):p(t[0],t[1])):d?p(t,y):p(t)};if(l)i=t.iterator;else if(v)i=t;else{if(!(n=_o(t)))throw new Xo(Fo(t)+" is not iterable");if(void 0!==(c=n)&&(go.Array===c||bo[mo]===c)){for(s=0,a=Io(t);a>s;s++)if((o=g(t[s]))&&zo(qo,o))return o;return new Uo(!1)}i=function(t,r){var e=arguments.length<2?Co(t):r;if(Po(e))return jo(Oo(e,t));throw new To(Eo(t)+" is not iterable")}(t,n)}for(h=l?t.next:i.next;!(u=Do(h,i)).done;){try{o=g(u.value)}catch(t){Yo(i,"throw",t)}if("object"==typeof o&&o&&zo(qo,o))return o}return new Uo(!1)},Vo=Qt("iterator"),Ho=!1;try{var Wo=0,Qo={next:function(){return{done:!!Wo++}},return:function(){Ho=!0}};Qo[Vo]=function(){return this},Array.from(Qo,(function(){throw 2}))}catch(t){}var Zo=na,Ko=ya.CONSTRUCTOR||!function(t,r){try{if(!r&&!Ho)return!1}catch(t){return!1}var e=!1;try{var i={};i[Vo]=function(){return{next:function(){return{done:e=!0}}}},t(i)}catch(t){}return e}((function(t){Zo.all(t).then(void 0,(function(){}))})),Jo=c,th=yt,rh=ga,eh=ia,ih=Go;Di({target:"Promise",stat:!0,forced:Ko},{all:function(t){var r=this,e=rh.f(r),i=e.resolve,n=e.reject,s=eh((function(){var e=th(r.resolve),s=[],a=0,o=1;ih(t,(function(t){var h=a++,u=!1;o++,Jo(e,r,t).then((function(t){u||(u=!0,s[h]=t,--o||i(s))}),n)})),--o||i(s)}));return s.error&&n(s.value),e.promise}});var nh=na,sh=q,ah=z,oh=$e,hh=nh&&nh.prototype;if(Di({target:"Promise",proto:!0,forced:ya.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),ah(nh)){var uh=sh("Promise").prototype.catch;hh.catch!==uh&&oh(hh,"catch",uh,{unsafe:!0})}var ch=c,fh=yt,lh=ga,vh=ia,dh=Go;Di({target:"Promise",stat:!0,forced:Ko},{race:function(t){var r=this,e=lh.f(r),i=e.reject,n=vh((function(){var n=fh(r.resolve);dh(t,(function(t){ch(n,r,t).then(e.resolve,i)}))}));return n.error&&i(n.value),e.promise}});var ph=ga;Di({target:"Promise",stat:!0,forced:ya.CONSTRUCTOR},{reject:function(t){var r=ph.f(this);return(0,r.reject)(t),r.promise}});var yh=Sr,gh=Y,mh=ga;Di({target:"Promise",stat:!0,forced:ya.CONSTRUCTOR},{resolve:function(t){return function(t,r){if(yh(t),gh(r)&&r.constructor===t)return r;var e=mh.f(t);return(0,e.resolve)(r),e.promise}(this,t)}});var bh=gn,wh=String,xh=function(t){if("Symbol"===bh(t))throw new TypeError("Cannot convert a Symbol value to a string");return wh(t)},Mh=Sr,kh=function(){var t=Mh(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Nh=a,Sh=n.RegExp,Oh=Nh((function(){var t=Sh("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),Ph=Oh||Nh((function(){return!Sh("a","y").sticky})),jh={BROKEN_CARET:Oh||Nh((function(){var t=Sh("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:Ph,UNSUPPORTED_Y:Oh},Eh={},Ch=si,Th=ai,Ah=Object.keys||function(t){return Ch(t,Th)},Rh=wr,Bh=Sr,$h=F,Dh=Ah;Eh.f=o&&!xr?Object.defineProperties:function(t,r){Bh(t);for(var e,i=$h(r),n=Dh(r),s=n.length,a=0;s>a;)Rh.f(t,e=n[a++],i[e]);return t};var Lh,Fh=Sr,Ih=Eh,zh=ai,_h=ee,Yh=Jn,Xh=ur,Uh="prototype",qh="script",Gh=re("IE_PROTO"),Vh=function(){},Hh=function(t){return"<"+qh+">"+t+"</"+qh+">"},Wh=function(t){t.write(Hh("")),t.close();var r=t.parentWindow.Object;return t=null,r},Qh=function(){try{Lh=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;Qh="undefined"!=typeof document?document.domain&&Lh?Wh(Lh):(r=Xh("iframe"),e="java"+qh+":",r.style.display="none",Yh.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(Hh("document.F=Object")),t.close(),t.F):Wh(Lh);for(var i=zh.length;i--;)delete Qh[Uh][zh[i]];return Qh()};_h[Gh]=!0;var Zh,Kh,Jh=Object.create||function(t,r){var e;return null!==t?(Vh[Uh]=Fh(t),e=new Vh,Vh[Uh]=null,e[Gh]=t):e=Qh(),void 0===r?e:Ih.f(e,r)},tu=n.RegExp,ru=a((function(){var t=tu(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),eu=n.RegExp,iu=a((function(){var t=eu("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),nu=c,su=M,au=xh,ou=kh,hu=jh,uu=Jh,cu=ve.get,fu=ru,lu=iu,vu=Tt("native-string-replace",String.prototype.replace),du=RegExp.prototype.exec,pu=du,yu=su("".charAt),gu=su("".indexOf),mu=su("".replace),bu=su("".slice),wu=(Kh=/b*/g,nu(du,Zh=/a/,"a"),nu(du,Kh,"a"),0!==Zh.lastIndex||0!==Kh.lastIndex),xu=hu.BROKEN_CARET,Mu=void 0!==/()??/.exec("")[1];(wu||Mu||xu||fu||lu)&&(pu=function(t){var r,e,i,n,s,a,o,h=this,u=cu(h),c=au(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,r=nu(pu,f,c),h.lastIndex=f.lastIndex,r;var l=u.groups,v=xu&&h.sticky,d=nu(ou,h),p=h.source,y=0,g=c;if(v&&(d=mu(d,"y",""),-1===gu(d,"g")&&(d+="g"),g=bu(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==yu(c,h.lastIndex-1))&&(p="(?: "+p+")",g=" "+g,y++),e=new RegExp("^(?:"+p+")",d)),Mu&&(e=new RegExp("^"+p+"$(?!\\s)",d)),wu&&(i=h.lastIndex),n=nu(du,v?e:h,g),v?n?(n.input=bu(n.input,y),n[0]=bu(n[0],y),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:wu&&n&&(h.lastIndex=h.global?n.index+n[0].length:i),Mu&&n&&n.length>1&&nu(vu,n[0],e,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&l)for(n.groups=a=uu(null),s=0;s<l.length;s++)a[(o=l[s])[0]]=n[o[1]];return n});var ku=pu;Di({target:"RegExp",proto:!0,forced:/./.exec!==ku},{exec:ku});var Nu=c,Su=$e,Ou=ku,Pu=a,ju=Qt,Eu=Lr,Cu=ju("species"),Tu=RegExp.prototype,Au=function(t,r,e,i){var n=ju(t),s=!Pu((function(){var r={};return r[n]=function(){return 7},7!==""[t](r)})),a=s&&!Pu((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[Cu]=function(){return e},e.flags="",e[n]=/./[n]),e.exec=function(){return r=!0,null},e[n](""),!r}));if(!s||!a||e){var o=/./[n],h=r(n,""[t],(function(t,r,e,i,n){var a=r.exec;return a===Ou||a===Tu.exec?s&&!n?{done:!0,value:Nu(o,r,e,i)}:{done:!0,value:Nu(t,e,r,i)}:{done:!1}}));Su(String.prototype,t,h[0]),Su(Tu,n,h[1])}i&&Eu(Tu[n],"sham",!0)},Ru=M,Bu=_e,$u=xh,Du=$,Lu=Ru("".charAt),Fu=Ru("".charCodeAt),Iu=Ru("".slice),zu=function(t){return function(r,e){var i,n,s=$u(Du(r)),a=Bu(e),o=s.length;return a<0||a>=o?t?"":void 0:(i=Fu(s,a))<55296||i>56319||a+1===o||(n=Fu(s,a+1))<56320||n>57343?t?Lu(s,a):i:t?Iu(s,a,a+2):n-56320+(i-55296<<10)+65536}},_u=(zu(!1),zu(!0)),Yu=function(t,r,e){return r+(e?_u(t,r).length:1)},Xu=c,Uu=Sr,qu=z,Gu=O,Vu=ku,Hu=TypeError,Wu=function(t,r){var e=t.exec;if(qu(e)){var i=Xu(e,t,r);return null!==i&&Uu(i),i}if("RegExp"===Gu(t))return Xu(Vu,t,r);throw new Hu("RegExp#exec called on incompatible receiver")},Qu=c,Zu=Sr,Ku=A,Ju=Ve,tc=xh,rc=$,ec=bt,ic=Yu,nc=Wu;Au("match",(function(t,r,e){return[function(r){var e=rc(this),i=Ku(r)?void 0:ec(r,t);return i?Qu(i,r,e):new RegExp(r)[t](tc(e))},function(t){var i=Zu(this),n=tc(t),s=e(r,i,n);if(s.done)return s.value;if(!i.global)return nc(i,n);var a=i.unicode;i.lastIndex=0;for(var o,h=[],u=0;null!==(o=nc(i,n));){var c=tc(o[0]);h[u]=c,""===c&&(i.lastIndex=ic(n,Ju(i.lastIndex),a)),u++}return 0===u?null:h}]}));var sc=M,ac=Bt,oc=Math.floor,hc=sc("".charAt),uc=sc("".replace),cc=sc("".slice),fc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,lc=/\$([$&'`]|\d{1,2})/g,vc=qn,dc=c,pc=M,yc=Au,gc=a,mc=Sr,bc=z,wc=A,xc=_e,Mc=Ve,kc=xh,Nc=$,Sc=Yu,Oc=bt,Pc=function(t,r,e,i,n,s){var a=e+t.length,o=i.length,h=lc;return void 0!==n&&(n=ac(n),h=fc),uc(s,h,(function(s,h){var u;switch(hc(h,0)){case"$":return"$";case"&":return t;case"`":return cc(r,0,e);case"'":return cc(r,a);case"<":u=n[cc(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=oc(c/10);return 0===f?s:f<=o?void 0===i[f-1]?hc(h,1):i[f-1]+hc(h,1):s}u=i[c-1]}return void 0===u?"":u}))},jc=Wu,Ec=Qt("replace"),Cc=Math.max,Tc=Math.min,Ac=pc([].concat),Rc=pc([].push),Bc=pc("".indexOf),$c=pc("".slice),Dc="$0"==="a".replace(/./,"$0"),Lc=!!/./[Ec]&&""===/./[Ec]("a","$0");yc("replace",(function(t,r,e){var i=Lc?"$":"$0";return[function(t,e){var i=Nc(this),n=wc(t)?void 0:Oc(t,Ec);return n?dc(n,t,i,e):dc(r,kc(i),t,e)},function(t,n){var s=mc(this),a=kc(t);if("string"==typeof n&&-1===Bc(n,i)&&-1===Bc(n,"$<")){var o=e(r,s,a,n);if(o.done)return o.value}var h=bc(n);h||(n=kc(n));var u,c=s.global;c&&(u=s.unicode,s.lastIndex=0);for(var f,l=[];null!==(f=jc(s,a))&&(Rc(l,f),c);)""===kc(f[0])&&(s.lastIndex=Sc(a,Mc(s.lastIndex),u));for(var v,d="",p=0,y=0;y<l.length;y++){for(var g,m=kc((f=l[y])[0]),b=Cc(Tc(xc(f.index),a.length),0),w=[],x=1;x<f.length;x++)Rc(w,void 0===(v=f[x])?v:String(v));var M=f.groups;if(h){var k=Ac([m],w,b,a);void 0!==M&&Rc(k,M),g=kc(vc(n,void 0,k))}else g=Pc(m,a,b,w,M,n);b>=p&&(d+=$c(a,p,b)+g,p=b+m.length)}return d+$c(a,p)}]}),!!gc((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Dc||Lc);var Fc,Ic=Y,zc=O,_c=Qt("match"),Yc=TypeError,Xc=function(t){if(function(t){var r;return Ic(t)&&(void 0!==(r=t[_c])?!!r:"RegExp"===zc(t))}(t))throw new Yc("The method doesn't accept regular expressions");return t},Uc=Qt("match"),qc=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[Uc]=!1,"/./"[t](r)}catch(t){}}return!1},Gc=Di,Vc=s.f,Hc=Ve,Wc=xh,Qc=Xc,Zc=$,Kc=qc,Jc=Hn("".slice),tf=Math.min,rf=Kc("startsWith");Gc({target:"String",proto:!0,forced:!(!rf&&(Fc=Vc(String.prototype,"startsWith"),Fc&&!Fc.writable)||rf)},{startsWith:function(t){var r=Wc(Zc(this));Qc(t);var e=Hc(tf(arguments.length>1?arguments[1]:void 0,r.length)),i=Wc(t);return Jc(r,e,e+i.length)===i}});var ef=Jh,nf=wr.f,sf=Qt("unscopables"),af=Array.prototype;void 0===af[sf]&&nf(af,sf,{configurable:!0,value:ef(null)});var of,hf,uf,cf=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ff=Lt,lf=z,vf=Bt,df=cf,pf=re("IE_PROTO"),yf=Object,gf=yf.prototype,mf=df?yf.getPrototypeOf:function(t){var r=vf(t);if(ff(r,pf))return r[pf];var e=r.constructor;return lf(e)&&r instanceof e?e.prototype:r instanceof yf?gf:null},bf=a,wf=z,xf=Y,Mf=mf,kf=$e,Nf=Qt("iterator"),Sf=!1;[].keys&&("next"in(uf=[].keys())?(hf=Mf(Mf(uf)))!==Object.prototype&&(of=hf):Sf=!0);var Of=!xf(of)||bf((function(){var t={};return of[Nf].call(t)!==t}));Of&&(of={}),wf(of[Nf])||kf(of,Nf,(function(){return this}));var Pf={IteratorPrototype:of,BUGGY_SAFARI_ITERATORS:Sf},jf=Pf.IteratorPrototype,Ef=Jh,Cf=g,Tf=rn,Af=yo,Rf=function(){return this},Bf=Di,$f=c,Df=z,Lf=mf,Ff=Zi,If=rn,zf=Lr,_f=$e,Yf=yo,Xf=Xr.PROPER,Uf=Xr.CONFIGURABLE,qf=Pf.IteratorPrototype,Gf=Pf.BUGGY_SAFARI_ITERATORS,Vf=Qt("iterator"),Hf="keys",Wf="values",Qf="entries",Zf=function(){return this},Kf=F,Jf=function(t){af[sf][t]=!0},tl=yo,rl=wr.f,el=function(t,r){return{value:t,done:r}},il=o,nl="Array Iterator",sl=ve.set,al=ve.getterFor(nl),ol=function(t,r,e,i,n,s,a){!function(t,r,e,i){var n=r+" Iterator";t.prototype=Ef(jf,{next:Cf(+!i,e)}),Tf(t,n,!1),Af[n]=Rf}(e,r,i);var o,h,u,c=function(t){if(t===n&&p)return p;if(!Gf&&t&&t in v)return v[t];switch(t){case Hf:case Wf:case Qf:return function(){return new e(this,t)}}return function(){return new e(this)}},f=r+" Iterator",l=!1,v=t.prototype,d=v[Vf]||v["@@iterator"]||n&&v[n],p=!Gf&&d||c(n),y="Array"===r&&v.entries||d;if(y&&(o=Lf(y.call(new t)))!==Object.prototype&&o.next&&(Lf(o)!==qf&&(Ff?Ff(o,qf):Df(o[Vf])||_f(o,Vf,Zf)),If(o,f,!0)),Xf&&n===Wf&&d&&d.name!==Wf&&(Uf?zf(v,"name",Wf):(l=!0,p=function(){return $f(d,this)})),n)if(h={values:c(Wf),keys:s?p:c(Hf),entries:c(Qf)},a)for(u in h)(Gf||l||!(u in v))&&_f(v,u,h[u]);else Bf({target:r,proto:!0,forced:Gf||l},h);return v[Vf]!==p&&_f(v,Vf,p,{name:n}),Yf[r]=p,h}(Array,"Array",(function(t,r){sl(this,{type:nl,target:Kf(t),index:0,kind:r})}),(function(){var t=al(this),r=t.target,e=t.index++;if(!r||e>=r.length)return t.target=null,el(void 0,!0);switch(t.kind){case"keys":return el(e,!1);case"values":return el(r[e],!1)}return el([e,r[e]],!1)}),"values"),hl=tl.Arguments=tl.Array;if(Jf("keys"),Jf("values"),Jf("entries"),il&&"values"!==hl.name)try{rl(hl,"name",{value:"values"})}catch(t){}var ul=ur("span").classList,cl=ul&&ul.constructor&&ul.constructor.prototype,fl=n,ll={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},vl=cl===Object.prototype?void 0:cl,dl=ol,pl=Lr,yl=rn,gl=Qt("iterator"),ml=dl.values,bl=function(t,r){if(t){if(t[gl]!==ml)try{pl(t,gl,ml)}catch(r){t[gl]=ml}if(yl(t,r,!0),ll[r])for(var e in dl)if(t[e]!==dl[e])try{pl(t,e,dl[e])}catch(r){t[e]=dl[e]}}};for(var wl in ll)bl(fl[wl]&&fl[wl].prototype,wl);bl(vl,"DOMTokenList");var xl=yt,Ml=Bt,kl=T,Nl=We,Sl=TypeError,Ol="Reduce of empty array with no initial value",Pl=function(t){return function(r,e,i,n){var s=Ml(r),a=kl(s),o=Nl(s);if(xl(e),0===o&&i<2)throw new Sl(Ol);var h=t?o-1:0,u=t?-1:1;if(i<2)for(;;){if(h in a){n=a[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw new Sl(Ol)}for(;t?h>=0:o>h;h+=u)h in a&&(n=e(n,a[h],h,s));return n}},jl={left:Pl(!1),right:Pl(!0)},El=a,Cl=function(t,r){var e=[][t];return!!e&&El((function(){e.call(null,r||function(){return 1},1)}))},Tl=jl.left;Di({target:"Array",proto:!0,forced:!Yi&&rt>79&&rt<83||!Cl("reduce")},{reduce:function(t){var r=arguments.length;return Tl(this,t,r,r>1?arguments[1]:void 0)}});var Al=Di,Rl=s.f,Bl=Ve,$l=xh,Dl=Xc,Ll=$,Fl=qc,Il=Hn("".slice),zl=Math.min,_l=Fl("endsWith"),Yl=!_l&&!!function(){var t=Rl(String.prototype,"endsWith");return t&&!t.writable}();Al({target:"String",proto:!0,forced:!Yl&&!_l},{endsWith:function(t){var r=$l(Ll(this));Dl(t);var e=arguments.length>1?arguments[1]:void 0,i=r.length,n=void 0===e?i:zl(Bl(e),i),s=$l(t);return Il(r,n-s.length,n)===s}});var Xl=c,Ul=M,ql=Au,Gl=Sr,Vl=A,Hl=$,Wl=_n,Ql=Yu,Zl=Ve,Kl=xh,Jl=bt,tv=Wu,rv=a,ev=jh.UNSUPPORTED_Y,iv=Math.min,nv=Ul([].push),sv=Ul("".slice),av=!rv((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var e="ab".split(t);return 2!==e.length||"a"!==e[0]||"b"!==e[1]})),ov="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;ql("split",(function(t,r,e){var i="0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:Xl(r,this,t,e)}:r;return[function(r,e){var n=Hl(this),s=Vl(r)?void 0:Jl(r,t);return s?Xl(s,r,n,e):Xl(i,Kl(n),r,e)},function(t,n){var s=Gl(this),a=Kl(t);if(!ov){var o=e(i,s,a,n,i!==r);if(o.done)return o.value}var h=Wl(s,RegExp),u=s.unicode,c=new h(ev?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(ev?"g":"y")),f=void 0===n?4294967295:n>>>0;if(0===f)return[];if(0===a.length)return null===tv(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=ev?0:v;var p,y=tv(c,ev?sv(a,v):a);if(null===y||(p=iv(Zl(c.lastIndex+(ev?v:0)),a.length))===l)v=Ql(a,v,u);else{if(nv(d,sv(a,l,v)),d.length===f)return d;for(var g=1;g<=y.length-1;g++)if(nv(d,y[g]),d.length===f)return d;v=l=p}}return nv(d,sv(a,l)),d}]}),ov||!av,ev);var hv={exports:{}},uv={exports:{}};(function(){var t,r,e,i,n,s;"undefined"!=typeof performance&&null!==performance&&performance.now?uv.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(uv.exports=function(){return(t()-n)/1e6},r=process.hrtime,i=(t=function(){var t;return 1e9*(t=r())[0]+t[1]})(),s=1e9*process.uptime(),n=i-s):Date.now?(uv.exports=function(){return Date.now()-e},e=Date.now()):(uv.exports=function(){return(new Date).getTime()-e},e=(new Date).getTime())}).call(t);for(var cv=uv.exports,fv="undefined"==typeof window?t:window,lv=["moz","webkit"],vv="AnimationFrame",dv=fv["request"+vv],pv=fv["cancel"+vv]||fv["cancelRequest"+vv],yv=0;!dv&&yv<lv.length;yv++)dv=fv[lv[yv]+"Request"+vv],pv=fv[lv[yv]+"Cancel"+vv]||fv[lv[yv]+"CancelRequest"+vv];if(!dv||!pv){var gv=0,mv=0,bv=[],wv=1e3/60;dv=function(t){if(0===bv.length){var r=cv(),e=Math.max(0,wv-(r-gv));gv=e+r,setTimeout((function(){var t=bv.slice(0);bv.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(gv)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(e))}return bv.push({handle:++mv,callback:t,cancelled:!1}),mv},pv=function(t){for(var r=0;r<bv.length;r++)bv[r].handle===t&&(bv[r].cancelled=!0)}}hv.exports=function(t){return dv.call(fv,t)},hv.exports.cancel=function(){pv.apply(fv,arguments)},hv.exports.polyfill=function(t){t||(t=fv),t.requestAnimationFrame=dv,t.cancelAnimationFrame=pv};const xv=hv.exports;var Mv,kv="\t\n\v\f\r \u2028\u2029\ufeff",Nv=$,Sv=xh,Ov=kv,Pv=M("".replace),jv=RegExp("^["+Ov+"]+"),Ev=RegExp("(^|[^"+Ov+"])["+Ov+"]+$"),Cv=function(t){return function(r){var e=Sv(Nv(r));return 1&t&&(e=Pv(e,jv,"")),2&t&&(e=Pv(e,Ev,"$1")),e}},Tv={start:Cv(1),end:Cv(2),trim:Cv(3)},Av=Xr.PROPER,Rv=kv,Bv=Tv.trim;Di({target:"String",proto:!0,forced:(Mv="trim",a((function(){return!!Rv[Mv]()||"
"!=="
"[Mv]()||Av&&Rv[Mv].name!==Mv})))},{trim:function(){return Bv(this)}});var $v=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=r[t]||t;for(var e=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i<e.length;i++){var n=e[i].process,s=e[i].re.exec(t);if(s){var a=n(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),r=this.g.toString(16),e=this.b.toString(16);return 1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),1==e.length&&(e="0"+e),"#"+t+r+e},this.getHelpXML=function(){for(var t=new Array,i=0;i<e.length;i++)for(var n=e[i].example,s=0;s<n.length;s++)t[t.length]=n[s];for(var a in r)t[t.length]=a;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),i=0;i<t.length;i++)try{var h=document.createElement("li"),u=new RGBColor(t[i]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[i]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(c),h.appendChild(f),o.appendChild(h)}catch(t){}return o}},Dv=Di,Lv=Je.indexOf,Fv=Cl,Iv=Hn([].indexOf),zv=!!Iv&&1/Iv([1],1,-0)<0;Dv({target:"Array",proto:!0,forced:zv||!Fv("indexOf")},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return zv?Iv(this,t,r)||0:Lv(this,t,r)}});var _v=Di,Yv=Xc,Xv=$,Uv=xh,qv=qc,Gv=M("".indexOf);_v({target:"String",proto:!0,forced:!qv("includes")},{includes:function(t){return!!~Gv(Uv(Xv(this)),Uv(Yv(t)),arguments.length>1?arguments[1]:void 0)}});var Vv=O,Hv=Di,Wv=Array.isArray||function(t){return"Array"===Vv(t)},Qv=M([].reverse),Zv=[1,2];Hv({target:"Array",proto:!0,forced:String(Zv)===String(Zv.reverse())},{reverse:function(){return Wv(this)&&(this.length=this.length),Qv(this)}});
|
7
7
|
/*! *****************************************************************************
|
8
8
|
Copyright (c) Microsoft Corporation.
|
9
9
|
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import{a as t}from"./p-80cb7c73.js";
|
7
|
+
/** @license
|
8
|
+
* Copyright 2022 Esri
|
9
|
+
*
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
* you may not use this file except in compliance with the License.
|
12
|
+
* You may obtain a copy of the License at
|
13
|
+
*
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
*
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
* See the License for the specific language governing permissions and
|
20
|
+
* limitations under the License.
|
21
|
+
*/async function n(t,n){let a=[];const s=t?t.map((t=>async function(t,n){const a=n.createQuery();return a.spatialRelationship="intersects",a.geometry=t,n.queryObjectIds(a)}
|
22
|
+
/** @license
|
23
|
+
* Copyright 2022 Esri
|
24
|
+
*
|
25
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
26
|
+
* you may not use this file except in compliance with the License.
|
27
|
+
* You may obtain a copy of the License at
|
28
|
+
*
|
29
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
30
|
+
*
|
31
|
+
* Unless required by applicable law or agreed to in writing, software
|
32
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
33
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
34
|
+
* See the License for the specific language governing permissions and
|
35
|
+
* limitations under the License.
|
36
|
+
*/(t,n))):[Promise.resolve()];return(await Promise.all(s)).forEach((t=>{a=[...a,...t||[]]})),a}async function a(t,n,s,o,e,c){const i=n.capabilities?.query.maxRecordCount;0===t.length&&(t=await n.queryObjectIds());const r=n.createQuery();r.returnGeometry=o,r.objectIds=t.slice(0,i),e&&(r.outSpatialReference=e),c&&(r.outFields=c);const u=await n.queryFeatures(r);s=s.concat(u.features);const f=t.slice(i,t.length);return f.length>0?a(f,n,s,o,e,c):Promise.resolve(s)}async function s(t,n){const a=n.globalIdField;if(!a)return[];const s=n.createQuery();return s.returnGeometry=!1,s.outFields=[n.objectIdField],s.where=t.map((t=>`${a} = '${t}'`)).join(" or "),(await n.queryFeatures(s)).features}async function o(t,n,a,s){const e=n.capabilities.query.maxRecordCount,c=n.createQuery();c.start=t,c.num=e,c.geometry=a;const i=await n.queryFeatures(c);return s[n.id]=s[n.id].concat(i.features),i.exceededTransferLimit?o(t+=e,n,a,s):Promise.resolve(s)}function e(t,n){return[...c(t,"polygon",n),...c(t,"polyline",n),...c(t,"point",n)]}function c(t,n,a){const s=t?.filter((t=>t.type===n))||[];return s.length<=1?s:[a.union(s)]}async function i(t,n){let a;return await t.when((()=>{a=t.map.allLayers.toArray().reduce(((t,n)=>("feature"!==n.type&&"subtype-group"!==n?.type||(t[n.id]={name:n.title,supportsUpdate:void 0}),t)),{})})),u(n,a,t)}async function r(t,n){let a;return await t.when((()=>{a=t.map.allTables.toArray().reduce(((t,n)=>(t[n.id]={name:n.title,supportsUpdate:void 0},t)),{})})),u(n,a,t)}async function u(t,n,a){if(t){const t={},s=Object.keys(n);for(let o=0;o<s.length;o++){const e=s[o],c=await w(a,e);await c.load(),await c.when(),t[e]={name:n[e].name,supportsUpdate:c.editingEnabled&&c.capabilities.operations.supportsUpdate}}return t}return n}async function f(t,n){const a=await w(t,n);return a?await t.whenLayerView(a):void 0}async function w(t,n){let a=[];return await(t?.when((()=>{a=[...t.map.allLayers.toArray(),...t.map.allTables.toArray()].filter((t=>t.id===n))}))),a.length>0?a[0]:void 0}async function y(t){const n=t.map.allLayers.toArray();let a;return await t.when((()=>{a=n.map((n=>t.whenLayerView(n)))})),await Promise.allSettled(a),n}async function p(t){const n=t.map.allTables.toArray();let a;return await t.when((()=>{a=n.map((t=>t.load()))})),await Promise.allSettled(a),n}async function m(t,n,a,s=!1,o=0){return s&&(await b(t,n,a,!1,void 0,o),await new Promise((t=>setTimeout(t,1e3)))),n.highlight(t)}async function l(t){const n=d(t);return Object.keys(n).reduce(((t,a)=>{const s=n[a];return t.push(s.layerView.highlight(s.ids)),t}),[])}function d(n){return n.reduce(((n,a)=>{const s=a.layerView,o=s?.layer.id;return o&&Object.keys(n).indexOf(o)>-1?n[o].ids=[...new Set([...a.selectedIds,...n[o].ids])]:o&&(n[o]={layerView:s,ids:a.selectedIds}),a.workflowType===t.REFINE&&Object.keys(a.refineInfos).forEach((t=>{const s=a.refineInfos[t];Object.keys(n).indexOf(t)>-1&&(n[t].ids=[...new Set([...s.addIds,...n[t].ids])],n[t].ids=n[t].ids.filter((t=>s.removeIds.indexOf(t)<0)))})),n}),{})}async function b(t,n,a,s=!0,o,e=0){const c=await async function(t,n){const a=n.createQuery();return a.objectIds=t,n.queryExtent(a)}(t,n.layer),i={target:c.extent};1===c.count&&"point"===n.layer.geometryType&&e&&(i.scale=e),await a.goTo(i),s&&await async function(t,n,a){n.featureEffect={...a,filter:{objectIds:t}},setTimeout((()=>{n.featureEffect=void 0}),1300)}(t,n,o)}export{y as a,p as b,f as c,i as d,b as e,s as f,w as g,m as h,n as i,e as j,o as k,d as l,l as m,r as n,a as q}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,g as s,h as e,F as a}from"./p-8c40bdec.js";import{l as h,g as c,f as n}from"./p-a23de3b0.js";import{b as o,d as l,a as r,c as d}from"./p-d572627c.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";const p=class{constructor(s){t(this,s),this.success=i(this,"success",7),this.fail=i(this,"fail",7),this.isActionPending=i(this,"isActionPending",7),this.formReady=i(this,"formReady",7)}get el(){return s(this)}locale;mapView;table;selectedFeature;customizeSubmit=!1;showGuidingMsg=!0;_editorLoading=!1;_translations;Editor;_editor;reactiveUtils;_container;_addingAttachment;_isSubmitBtnClicked=!1;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((async()=>{await this.init()}))}async _editorLoadingWatchHandler(t){t&&(this._container?.classList.add("display-none"),await this.startCreate(),this._container?.classList.remove("display-none"),this._editorLoading=!1)}async submit(){this._editor&&(this._isSubmitBtnClicked=!0,this._editor.viewModel.featureFormViewModel.submit())}success;fail;isActionPending;formReady;async componentWillLoad(){await this._getTranslations(),await this.initModules()}async init(){this.mapView&&await this.createEditorWidget()}async initModules(){const[t,i]=await h(["esri/widgets/Editor","esri/core/reactiveUtils"]);this.Editor=t,this.reactiveUtils=i}render(){const t=this._editorLoading?"":"display-none";return e(a,{key:"261308f81b5bbed3e136efbb2100db9c1e5994a4"},this.showGuidingMsg&&e("calcite-notice",{key:"3aca1d3f48e46208ce07f2ccdd76ac4af752162d",class:"notice-msg",icon:"lightbulb",kind:"success",open:!0},e("div",{key:"f449d7dcde1cc75bf7470a75ae0ce915ef457459",slot:"message"},this._translations.provideDetailsMsg)),e("calcite-loader",{key:"e94e971b96ddba0ab36f27ffd4e37b820bb2432f",class:t,label:"",scale:"s"}))}async componentDidLoad(){await this.init()}disconnectedCallback(){this._editor&&this._editor.destroy()}async createEditorWidget(){this._editor&&this._editor.destroy(),this._container=document.createElement("div"),this._container?.classList.add("display-none"),this._editor=new this.Editor({view:this.mapView,visibleElements:{snappingControls:!1},container:this._container}),this.el.appendChild(this._container);const t=this.reactiveUtils.watch((()=>this._editor.viewModel.featureTemplatesViewModel.state),(t=>{"ready"===t&&(this._editorLoading=!0)}));this._editor.viewModel.addHandles(t);const i=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"adding-attachment"===t||"editing-attachment"===t?(this._addingAttachment=!0,this.isActionPending.emit(!0)):this._addingAttachment&&(this.isActionPending.emit(!1),this._addingAttachment=!1)}));this._editor.viewModel.addHandles(i);const s=this.reactiveUtils.watch((()=>this._editor.viewModel.featureFormViewModel?.state),(t=>{"ready"===t&&this.formReady.emit()}));this._editor.viewModel.addHandles(s)}async startCreate(){const t=this.selectedFeature.layer,i=this.table,s=t.relationships[0],e=i.relationships.find((i=>t.layerId===i.relatedTableId)),a=await t.queryFeatures({objectIds:[this.selectedFeature.getObjectId()],outFields:[t.objectIdField,s.keyField]}),h=i.templates[0],c={attributeOverrides:this.makeAttributesForRelatedFeature(a.features[0],s,e),layer:i,template:h};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(c),await this.hideEditorsElements(),this._editor.viewModel.featureFormViewModel.on("submit",this.submitted.bind(this))}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector(".esri-editor")?.querySelectorAll("calcite-flow-item")?.forEach((t=>{const i=t.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");i?.querySelector("header")?.setAttribute("style","display: none"),i?.querySelector("footer")?.setAttribute("style","display: none")})))}makeAttributesForRelatedFeature(t,i,s){const e=i.keyField;let a;t.attributes.hasOwnProperty(e)?a=t.getAttribute(e):t.attributes.hasOwnProperty(e.toLowerCase())?a=t.getAttribute(e.toLowerCase()):t.attributes.hasOwnProperty(e.toUpperCase())&&(a=t.getAttribute(e.toUpperCase()));let h=s.keyField;const c=this.table.fields.find((t=>t.name.toLocaleLowerCase()===h.toLocaleLowerCase()));return h=c.name,{[h]:a}}async submitted(t){if(t.invalid.length)this._isSubmitBtnClicked=!1;else if(t.valid.length&&this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{await this._editor.activeWorkflow.commit(),this._editor.viewModel.failures?.length&&this._editor.viewModel.failures.some((t=>{if(t.error)throw t.error}))}catch(t){return void this.fail.emit(t)}this.success.emit()}}timeout(t){return new Promise((i=>setTimeout(i,t)))}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],_editorLoading:["_editorLoadingWatchHandler"]}}};p.style=":host{display:block}.esri-editor__panel-toolbar{display:none !important}.display-none{display:none !important}.esri-editor__panel-content{padding-block:10px !important}.notice-msg{padding:10px;width:calc(100% - 20px)}";const b=class{constructor(s){t(this,s),this.loadingStatus=i(this,"loadingStatus",7),this.commentSelect=i(this,"commentSelect",7),this.addComment=i(this,"addComment",7),this.likeOrDislikeClicked=i(this,"likeOrDislikeClicked",7),this.featureSelectionChange=i(this,"featureSelectionChange",7)}get el(){return s(this)}mapView;graphics;reportingOptions;layerItemsHash;locale;showUserImageInCommentsList=!1;showFullCommentTitle=!0;_likeFieldAvailable=!1;_likeCount=0;_disLikeCount=0;_dislikeFieldAvailable=!1;_commentsAvailable=!1;_isLikeBtnClicked=!1;_isDislikeBtnClicked=!1;_relatedFeaturesOIDs;_updating=!1;_infoCard;_commentsList;_selectedGraphic;_likeField;_dislikeField;Graphic;RelationshipQuery;_validFieldTypes=["small-integer","integer","big-integer","single","long"];relatedTableId;async graphicsWatchHandler(){await this.getCompleteGraphic(this.graphics[0]),this.checkLikeDislikeFields(),await this.processComments()}async refresh(t){await this.getCompleteGraphic(t),await this.processComments(),this.isLikeDislikeConfigured(t.layer)?t&&this.graphics.length>1&&this.checkLikeDislikeFields():(this._likeFieldAvailable=!1,this._dislikeFieldAvailable=!1)}async back(){this._infoCard.back()}async next(){this._infoCard.next()}async toggleListView(){this._infoCard.toggleListView()}loadingStatus;commentSelect;addComment;likeOrDislikeClicked;featureSelectionChange;async componentWillLoad(){await this._initModules(),await this.getCompleteGraphic(this.graphics[0]),this.checkLikeDislikeFields(),await this.processComments()}render(){const t=this._relatedFeaturesOIDs?.length>0?`objectId in(${this._relatedFeaturesOIDs})`:"1=0";return e("calcite-panel",{key:"577f06f7bc41875b38e07a44f3c734ccc839e596","full-height":!0},e("info-card",{key:"e815f75d02bcdfe9cc11796c913be2a6c2bfecd2",allowEditing:!1,graphics:this.graphics,highlightEnabled:!1,isLoading:!1,isMobile:!1,locale:this.locale,mapView:this.mapView,onSelectionChanged:t=>{this.featureSelectionChange.emit(t.detail)},paginationEnabled:!1,position:"relative",ref:t=>this._infoCard=t}),(this._likeFieldAvailable||this._dislikeFieldAvailable||this._commentsAvailable)&&e("div",{key:"16d0af6b0e75b595573bd0816744f03d9d6dec37",class:"buttons-container"},this._commentsAvailable&&e("calcite-button",{key:"550b3af830911a1437fa3e967492666ec8c5a2e4",appearance:"transparent",iconEnd:"speech-bubble",kind:"neutral",onClick:()=>{this.addComment.emit()},scale:"m"},this._relatedFeaturesOIDs.length),this._likeFieldAvailable&&e("calcite-button",{key:"741848445c2083f4c0a3d9464cd810deee4a1218",appearance:"transparent",iconEnd:"thumbs-up",kind:this._isLikeBtnClicked?"brand":"neutral",loading:this._updating,onClick:this.onLikeButtonClick.bind(this),scale:"m"},this._likeCount??this._selectedGraphic.attributes[this._likeField]??0),this._dislikeFieldAvailable&&e("calcite-button",{key:"4d5e8ae279559dbf981b1b91238706adbd6ebeef",appearance:"transparent",iconEnd:"thumbs-down",kind:this._isDislikeBtnClicked?"brand":"neutral",loading:this._updating,onClick:this.onDislikeButtonClick.bind(this),scale:"m"},this._disLikeCount??this._selectedGraphic.attributes[this._dislikeField]??0)),this.relatedTableId&&this._commentsAvailable&&e("feature-list",{key:"0daad9b37b13a05afc4b8a3a6eca70a7356afd8f",class:"height-full",locale:this.locale,mapView:this.mapView,onFeatureSelect:t=>{this.commentSelect.emit(t.detail)},pageSize:5,ref:t=>this._commentsList=t,selectedLayerId:this.relatedTableId,showErrorWhenNoFeatures:!1,showFullTitle:this.showFullCommentTitle,showInitialLoading:!1,showUserImageInList:this.showUserImageInCommentsList,textSize:"small",whereClause:t}))}async _initModules(){const[t,i]=await h(["esri/rest/support/RelationshipQuery","esri/Graphic"]);this.RelationshipQuery=t,this.Graphic=i}async getCompleteGraphic(t){if(t){const i=t.layer,s=i.createQuery();s.objectIds=[t.getObjectId()];const e=await i.queryFeatures(s);this._selectedGraphic=e.features[0]}}async processComments(){const t=this._selectedGraphic.layer;if(this.reportingOptions&&this.reportingOptions[t.id]&&this.reportingOptions[t.id].comment&&t.relationships?.length>0){const i=await o(this.mapView);let s=null,e=null;if(t.relationships.some((a=>{const h=i.filter((i=>t.url===i.url&&i.layerId===a.relatedTableId));if(h&&h.length>0)return s=h[0],e=a.id,!0})),this.relatedTableId=s?.id??"",this.relatedTableId){const i=this._selectedGraphic.attributes[t.objectIdField],a=new this.RelationshipQuery({objectIds:[i],outFields:["*"],relationshipId:e}),h=await t.queryRelatedFeatures(a).catch((t=>{console.error(t)})),c=[];h[i]&&h[i].features.forEach((t=>{c.push(t.attributes[s.objectIdField])})),this._relatedFeaturesOIDs=c,this._commentsAvailable=!0}else this._relatedFeaturesOIDs=[],this._commentsAvailable=!1}else this._relatedFeaturesOIDs=[],this._commentsAvailable=!1,this.relatedTableId=""}isLikeDislikeConfigured(t){let i=!1,s=!1;if(this.reportingOptions&&this.reportingOptions[t.id]){if(!this.reportingOptions[t.id].like&&!this.reportingOptions[t.id].dislike)return!1;const e=this.reportingOptions[t.id].likeField,a=this.reportingOptions[t.id].dislikeField;if(!e&&!a)return!1;t.fields.forEach((h=>{this._validFieldTypes.indexOf(h.type)>-1&&this.layerItemsHash[t.id].supportsUpdate&&(h.name===e&&this.reportingOptions[t.id].like?i=!0:h.name===a&&this.reportingOptions[t.id].dislike&&(s=!0))}))}return i||s}checkLikeDislikeFields(){this._likeFieldAvailable=!1,this._dislikeFieldAvailable=!1,this._isLikeBtnClicked=!1,this._isDislikeBtnClicked=!1,this._likeCount=0,this._disLikeCount=0;const t=this._selectedGraphic.layer;if(this.reportingOptions&&this.reportingOptions[t.id]){if(this._likeField=this.reportingOptions[t.id].likeField,this._dislikeField=this.reportingOptions[t.id].dislikeField,!this._likeField&&!this._dislikeField)return;t.fields.forEach((i=>{this._validFieldTypes.indexOf(i.type)>-1&&this.layerItemsHash[t.id].supportsUpdate&&(i.name===this._likeField&&this.reportingOptions[t.id].like?(this._likeFieldAvailable=!0,this._likeCount=this._selectedGraphic.attributes[i.name]):i.name===this._dislikeField&&this.reportingOptions[t.id].dislike&&(this._dislikeFieldAvailable=!0,this._disLikeCount=this._selectedGraphic.attributes[i.name]))})),this.getFromLocalStorage()}}onLikeButtonClick(){this._isDislikeBtnClicked&&this.reportingOptions[this._selectedGraphic.layer.id].dislike&&this.onDislikeButtonClick(),this._isLikeBtnClicked=!this._isLikeBtnClicked,this._isLikeBtnClicked?this._likeCount++:this._likeCount--,this.updateFeaturesLikeDislikeField(this._likeField,this._isLikeBtnClicked)}onDislikeButtonClick(){this._isLikeBtnClicked&&this.reportingOptions[this._selectedGraphic.layer.id].like&&this.onLikeButtonClick(),this._isDislikeBtnClicked=!this._isDislikeBtnClicked,this._isDislikeBtnClicked?this._disLikeCount++:this._disLikeCount--,this.updateFeaturesLikeDislikeField(this._dislikeField,this._isDislikeBtnClicked)}async updateFeaturesLikeDislikeField(t,i){const s={},e=this._selectedGraphic.layer;this._updating=!0;const a=this._selectedGraphic;a.attributes[t]=Number(a.attributes[t])+(i?1:-1),s[e.objectIdField]=a.attributes[e.objectIdField],s[t]=a.attributes[t];const h=new this.Graphic;h.attributes=s;const c={updateFeatures:[h]};await e.applyEdits(c).then((()=>{this._selectedGraphic=a,this.setInLocalStorage(),this._updating=!1,this.likeOrDislikeClicked.emit()}),(t=>{this._updating=!1,console.log(t)}))}getFromLocalStorage(){const t=localStorage[this._selectedGraphic.layer.id];if(t){const i=JSON.parse(t).filter((t=>t.id===this._selectedGraphic.getObjectId()));i.length>0&&(this._isLikeBtnClicked=i[0].like,this._isDislikeBtnClicked=i[0].dislike)}}setInLocalStorage(){const t=this._selectedGraphic.layer.id,i=localStorage[t];let s=[];if(i){s=JSON.parse(i);const t=s.findIndex((t=>t.id===this._selectedGraphic.getObjectId()));t>=0&&s.splice(t,1)}s.push({id:this._selectedGraphic.getObjectId(),like:this._isLikeBtnClicked&&0!==this._likeCount,dislike:this._isDislikeBtnClicked&&0!==this._disLikeCount}),localStorage.setItem(t,JSON.stringify(s))}static get watchers(){return{graphics:["graphicsWatchHandler"]}}};b.style=":host{display:block}.buttons-container{align-items:center;display:flex;padding:4px;color:var(--calcite-color-text-1) !important;background-color:var(--calcite-color-foreground-1) !important;border-block-start:1px solid var(--calcite-color-border-3);border-block-end:1px solid var(--calcite-color-border-3)}";const y=class{constructor(s){t(this,s),this.layerSelect=i(this,"layerSelect",7),this.layersListLoaded=i(this,"layersListLoaded",7)}get el(){return s(this)}mapView;layers;locale;showFeatureCount=!0;showNextIcon=!1;applyLayerViewFilter=!1;_noLayersToDisplay=!1;_mapLayerIds=[];_isLoading=!1;_translations;_layerItemsHash;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async refresh(){await this.setLayers()}layerSelect;layersListLoaded;async componentWillLoad(){await this._getTranslations()}async componentDidLoad(){await this.setLayers()}render(){return e(a,{key:"a151c8fd65c50aacb23dcd0c858e52c0c7cd7e5e"},this._isLoading&&e("calcite-loader",{key:"544a134bccc29048ca80b996844cc944bcd97a24",label:"",scale:"m"}),!this._isLoading&&this.mapView&&this._noLayersToDisplay&&e("calcite-notice",{key:"7557f91c8c3349c120c043ea59458b4c834dce2e",class:"error-msg",icon:"layers-reference",kind:"danger",open:!0},e("div",{key:"ea8b20f8c7da5053641cfad56e3395ae3c6286f5",slot:"title"},this._translations.error),e("div",{key:"38aaed7b456aba0b1dd70183be03e9133834dfb4",slot:"message"},this._translations.noLayerToDisplayErrorMsg)),!this._isLoading&&this.mapView&&e("calcite-list",{key:"547b0681145fd8d8663b786472be9e5161cbd693",label:"","selection-appearance":"border","selection-mode":"none"},this.renderLayerList()))}async setLayers(){this.mapView&&(this._isLoading=!0,await this.initLayerHash(),this._isLoading=!1)}async initLayerHash(){const t=[];this._layerItemsHash=await l(this.mapView,!0);const i=await r(this.mapView);for(const s of i)if("feature"===s?.type&&this.showFeatureCount){const i=s.createQuery();if(s?.definitionExpression&&(i.where=i.where+" AND "+s.definitionExpression),this.applyLayerViewFilter){const t=await d(this.mapView,s.id);t?.filter?.where&&(i.where=i.where?i.where+" AND "+t.filter.where:t.filter.where)}const e=s.queryFeatureCount(i);t.push(e),e.then((async t=>{const i=isNaN(t)?"":await n(t,{places:0,api:4,type:"decimal"});this._layerItemsHash[s.id].formattedFeatureCount=i}))}await Promise.all(t).then((()=>{const t=this.getLayersToBeShownInList(this._layerItemsHash);this._mapLayerIds=t.reverse(),this.handleNoLayersToDisplay()}),(()=>{this._mapLayerIds=[],this.handleNoLayersToDisplay()}))}handleNoLayersToDisplay(){this._noLayersToDisplay=!(this._mapLayerIds.length>0),this.layersListLoaded.emit(this._mapLayerIds)}getLayersToBeShownInList(t){const i=this.layers?.length>0?this.layers:[];return Object.keys(t).reduce(((t,s)=>(i.indexOf(s)>-1&&t.push(s),t)),[])}renderLayerList(){return this._mapLayerIds.length>0&&this._mapLayerIds.reduce(((t,i)=>(this._layerItemsHash[i]&&t.push(this.getLayerListItem(i)),t)),[])}getLayerListItem(t){const i=this._layerItemsHash[t].formattedFeatureCount;return e("calcite-list-item",{onCalciteListItemSelect:()=>{this.onLayerItemSelected(t)}},e("div",{class:"layer-name",slot:"content-start"},this._layerItemsHash[t].name),this.showFeatureCount&&void 0!==i&&""!==i&&e("div",{class:"feature-count",slot:"content-end"},"("+i+")"),this.showNextIcon&&e("calcite-icon",{flipRtl:!0,icon:"chevron-right",scale:"s",slot:"content-end"}))}onLayerItemSelected(t){this.layerSelect.emit({layerId:t,layerName:this._layerItemsHash[t].name})}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"]}}};y.style=":host{display:block}.error-msg{padding:10px}.layer-name{font-weight:500;word-break:break-word}.feature-count{padding:0 10px}";export{p as create_related_feature,b as feature_details,y as layer_list}
|
6
|
+
import{r as t,c as i,g as s,h as e,F as a}from"./p-1b0588d2.js";import{l as h,g as c,f as n}from"./p-ee2cbba0.js";import{b as o,d as l,a as r,c as d}from"./p-dcd2f00b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";const p=class{constructor(s){t(this,s),this.success=i(this,"success",7),this.fail=i(this,"fail",7),this.isActionPending=i(this,"isActionPending",7),this.formReady=i(this,"formReady",7)}get el(){return s(this)}locale;mapView;table;selectedFeature;customizeSubmit=!1;showGuidingMsg=!0;_editorLoading=!1;_translations;Editor;_editor;reactiveUtils;_container;_addingAttachment;_isSubmitBtnClicked=!1;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((async()=>{await this.init()}))}async _editorLoadingWatchHandler(t){t&&(this._container?.classList.add("display-none"),await this.startCreate(),this._container?.classList.remove("display-none"),this._editorLoading=!1)}async submit(){this._editor&&(this._isSubmitBtnClicked=!0,this._editor.viewModel.featureFormViewModel.submit())}success;fail;isActionPending;formReady;async componentWillLoad(){await this._getTranslations(),await this.initModules()}async init(){this.mapView&&await this.createEditorWidget()}async initModules(){const[t,i]=await h(["esri/widgets/Editor","esri/core/reactiveUtils"]);this.Editor=t,this.reactiveUtils=i}render(){const t=this._editorLoading?"":"display-none";return e(a,{key:"261308f81b5bbed3e136efbb2100db9c1e5994a4"},this.showGuidingMsg&&e("calcite-notice",{key:"3aca1d3f48e46208ce07f2ccdd76ac4af752162d",class:"notice-msg",icon:"lightbulb",kind:"success",open:!0},e("div",{key:"f449d7dcde1cc75bf7470a75ae0ce915ef457459",slot:"message"},this._translations.provideDetailsMsg)),e("calcite-loader",{key:"e94e971b96ddba0ab36f27ffd4e37b820bb2432f",class:t,label:"",scale:"s"}))}async componentDidLoad(){await this.init()}disconnectedCallback(){this._editor&&this._editor.destroy()}async createEditorWidget(){this._editor&&this._editor.destroy(),this._container=document.createElement("div"),this._container?.classList.add("display-none"),this._editor=new this.Editor({view:this.mapView,visibleElements:{snappingControls:!1},container:this._container}),this.el.appendChild(this._container);const t=this.reactiveUtils.watch((()=>this._editor.viewModel.featureTemplatesViewModel.state),(t=>{"ready"===t&&(this._editorLoading=!0)}));this._editor.viewModel.addHandles(t);const i=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"adding-attachment"===t||"editing-attachment"===t?(this._addingAttachment=!0,this.isActionPending.emit(!0)):this._addingAttachment&&(this.isActionPending.emit(!1),this._addingAttachment=!1)}));this._editor.viewModel.addHandles(i);const s=this.reactiveUtils.watch((()=>this._editor.viewModel.featureFormViewModel?.state),(t=>{"ready"===t&&this.formReady.emit()}));this._editor.viewModel.addHandles(s)}async startCreate(){const t=this.selectedFeature.layer,i=this.table,s=t.relationships[0],e=i.relationships.find((i=>t.layerId===i.relatedTableId)),a=await t.queryFeatures({objectIds:[this.selectedFeature.getObjectId()],outFields:[t.objectIdField,s.keyField]}),h=i.templates[0],c={attributeOverrides:this.makeAttributesForRelatedFeature(a.features[0],s,e),layer:i,template:h};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(c),await this.hideEditorsElements(),this._editor.viewModel.featureFormViewModel.on("submit",this.submitted.bind(this))}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector(".esri-editor")?.querySelectorAll("calcite-flow-item")?.forEach((t=>{const i=t.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");i?.querySelector("header")?.setAttribute("style","display: none"),i?.querySelector("footer")?.setAttribute("style","display: none")})))}makeAttributesForRelatedFeature(t,i,s){const e=i.keyField;let a;t.attributes.hasOwnProperty(e)?a=t.getAttribute(e):t.attributes.hasOwnProperty(e.toLowerCase())?a=t.getAttribute(e.toLowerCase()):t.attributes.hasOwnProperty(e.toUpperCase())&&(a=t.getAttribute(e.toUpperCase()));let h=s.keyField;const c=this.table.fields.find((t=>t.name.toLocaleLowerCase()===h.toLocaleLowerCase()));return h=c.name,{[h]:a}}async submitted(t){if(t.invalid.length)this._isSubmitBtnClicked=!1;else if(t.valid.length&&this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{await this._editor.activeWorkflow.commit(),this._editor.viewModel.failures?.length&&this._editor.viewModel.failures.some((t=>{if(t.error)throw t.error}))}catch(t){return void this.fail.emit(t)}this.success.emit()}}timeout(t){return new Promise((i=>setTimeout(i,t)))}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],_editorLoading:["_editorLoadingWatchHandler"]}}};p.style=":host{display:block}.esri-editor__panel-toolbar{display:none !important}.display-none{display:none !important}.esri-editor__panel-content{padding-block:10px !important}.notice-msg{padding:10px;width:calc(100% - 20px)}";const b=class{constructor(s){t(this,s),this.loadingStatus=i(this,"loadingStatus",7),this.commentSelect=i(this,"commentSelect",7),this.addComment=i(this,"addComment",7),this.likeOrDislikeClicked=i(this,"likeOrDislikeClicked",7),this.featureSelectionChange=i(this,"featureSelectionChange",7)}get el(){return s(this)}mapView;graphics;reportingOptions;layerItemsHash;locale;showUserImageInCommentsList=!1;showFullCommentTitle=!0;_likeFieldAvailable=!1;_likeCount=0;_disLikeCount=0;_dislikeFieldAvailable=!1;_commentsAvailable=!1;_isLikeBtnClicked=!1;_isDislikeBtnClicked=!1;_relatedFeaturesOIDs;_updating=!1;_infoCard;_commentsList;_selectedGraphic;_likeField;_dislikeField;Graphic;RelationshipQuery;_validFieldTypes=["small-integer","integer","big-integer","single","long"];relatedTableId;async graphicsWatchHandler(){await this.getCompleteGraphic(this.graphics[0]),this.checkLikeDislikeFields(),await this.processComments()}async refresh(t){await this.getCompleteGraphic(t),await this.processComments(),this.isLikeDislikeConfigured(t.layer)?t&&this.graphics.length>1&&this.checkLikeDislikeFields():(this._likeFieldAvailable=!1,this._dislikeFieldAvailable=!1)}async back(){this._infoCard.back()}async next(){this._infoCard.next()}async toggleListView(){this._infoCard.toggleListView()}loadingStatus;commentSelect;addComment;likeOrDislikeClicked;featureSelectionChange;async componentWillLoad(){await this._initModules(),await this.getCompleteGraphic(this.graphics[0]),this.checkLikeDislikeFields(),await this.processComments()}render(){const t=this._relatedFeaturesOIDs?.length>0?`objectId in(${this._relatedFeaturesOIDs})`:"1=0";return e("calcite-panel",{key:"577f06f7bc41875b38e07a44f3c734ccc839e596","full-height":!0},e("info-card",{key:"e815f75d02bcdfe9cc11796c913be2a6c2bfecd2",allowEditing:!1,graphics:this.graphics,highlightEnabled:!1,isLoading:!1,isMobile:!1,locale:this.locale,mapView:this.mapView,onSelectionChanged:t=>{this.featureSelectionChange.emit(t.detail)},paginationEnabled:!1,position:"relative",ref:t=>this._infoCard=t}),(this._likeFieldAvailable||this._dislikeFieldAvailable||this._commentsAvailable)&&e("div",{key:"16d0af6b0e75b595573bd0816744f03d9d6dec37",class:"buttons-container"},this._commentsAvailable&&e("calcite-button",{key:"550b3af830911a1437fa3e967492666ec8c5a2e4",appearance:"transparent",iconEnd:"speech-bubble",kind:"neutral",onClick:()=>{this.addComment.emit()},scale:"m"},this._relatedFeaturesOIDs.length),this._likeFieldAvailable&&e("calcite-button",{key:"741848445c2083f4c0a3d9464cd810deee4a1218",appearance:"transparent",iconEnd:"thumbs-up",kind:this._isLikeBtnClicked?"brand":"neutral",loading:this._updating,onClick:this.onLikeButtonClick.bind(this),scale:"m"},this._likeCount??this._selectedGraphic.attributes[this._likeField]??0),this._dislikeFieldAvailable&&e("calcite-button",{key:"4d5e8ae279559dbf981b1b91238706adbd6ebeef",appearance:"transparent",iconEnd:"thumbs-down",kind:this._isDislikeBtnClicked?"brand":"neutral",loading:this._updating,onClick:this.onDislikeButtonClick.bind(this),scale:"m"},this._disLikeCount??this._selectedGraphic.attributes[this._dislikeField]??0)),this.relatedTableId&&this._commentsAvailable&&e("feature-list",{key:"0daad9b37b13a05afc4b8a3a6eca70a7356afd8f",class:"height-full",locale:this.locale,mapView:this.mapView,onFeatureSelect:t=>{this.commentSelect.emit(t.detail)},pageSize:5,ref:t=>this._commentsList=t,selectedLayerId:this.relatedTableId,showErrorWhenNoFeatures:!1,showFullTitle:this.showFullCommentTitle,showInitialLoading:!1,showUserImageInList:this.showUserImageInCommentsList,textSize:"small",whereClause:t}))}async _initModules(){const[t,i]=await h(["esri/rest/support/RelationshipQuery","esri/Graphic"]);this.RelationshipQuery=t,this.Graphic=i}async getCompleteGraphic(t){if(t){const i=t.layer,s=i.createQuery();s.objectIds=[t.getObjectId()];const e=await i.queryFeatures(s);this._selectedGraphic=e.features[0]}}async processComments(){const t=this._selectedGraphic.layer;if(this.reportingOptions&&this.reportingOptions[t.id]&&this.reportingOptions[t.id].comment&&t.relationships?.length>0){const i=await o(this.mapView);let s=null,e=null;if(t.relationships.some((a=>{const h=i.filter((i=>t.url===i.url&&i.layerId===a.relatedTableId));if(h&&h.length>0)return s=h[0],e=a.id,!0})),this.relatedTableId=s?.id??"",this.relatedTableId){const i=this._selectedGraphic.attributes[t.objectIdField],a=new this.RelationshipQuery({objectIds:[i],outFields:["*"],relationshipId:e}),h=await t.queryRelatedFeatures(a).catch((t=>{console.error(t)})),c=[];h[i]&&h[i].features.forEach((t=>{c.push(t.attributes[s.objectIdField])})),this._relatedFeaturesOIDs=c,this._commentsAvailable=!0}else this._relatedFeaturesOIDs=[],this._commentsAvailable=!1}else this._relatedFeaturesOIDs=[],this._commentsAvailable=!1,this.relatedTableId=""}isLikeDislikeConfigured(t){let i=!1,s=!1;if(this.reportingOptions&&this.reportingOptions[t.id]){if(!this.reportingOptions[t.id].like&&!this.reportingOptions[t.id].dislike)return!1;const e=this.reportingOptions[t.id].likeField,a=this.reportingOptions[t.id].dislikeField;if(!e&&!a)return!1;t.fields.forEach((h=>{this._validFieldTypes.indexOf(h.type)>-1&&this.layerItemsHash[t.id].supportsUpdate&&(h.name===e&&this.reportingOptions[t.id].like?i=!0:h.name===a&&this.reportingOptions[t.id].dislike&&(s=!0))}))}return i||s}checkLikeDislikeFields(){this._likeFieldAvailable=!1,this._dislikeFieldAvailable=!1,this._isLikeBtnClicked=!1,this._isDislikeBtnClicked=!1,this._likeCount=0,this._disLikeCount=0;const t=this._selectedGraphic.layer;if(this.reportingOptions&&this.reportingOptions[t.id]){if(this._likeField=this.reportingOptions[t.id].likeField,this._dislikeField=this.reportingOptions[t.id].dislikeField,!this._likeField&&!this._dislikeField)return;t.fields.forEach((i=>{this._validFieldTypes.indexOf(i.type)>-1&&this.layerItemsHash[t.id].supportsUpdate&&(i.name===this._likeField&&this.reportingOptions[t.id].like?(this._likeFieldAvailable=!0,this._likeCount=this._selectedGraphic.attributes[i.name]):i.name===this._dislikeField&&this.reportingOptions[t.id].dislike&&(this._dislikeFieldAvailable=!0,this._disLikeCount=this._selectedGraphic.attributes[i.name]))})),this.getFromLocalStorage()}}onLikeButtonClick(){this._isDislikeBtnClicked&&this.reportingOptions[this._selectedGraphic.layer.id].dislike&&this.onDislikeButtonClick(),this._isLikeBtnClicked=!this._isLikeBtnClicked,this._isLikeBtnClicked?this._likeCount++:this._likeCount--,this.updateFeaturesLikeDislikeField(this._likeField,this._isLikeBtnClicked)}onDislikeButtonClick(){this._isLikeBtnClicked&&this.reportingOptions[this._selectedGraphic.layer.id].like&&this.onLikeButtonClick(),this._isDislikeBtnClicked=!this._isDislikeBtnClicked,this._isDislikeBtnClicked?this._disLikeCount++:this._disLikeCount--,this.updateFeaturesLikeDislikeField(this._dislikeField,this._isDislikeBtnClicked)}async updateFeaturesLikeDislikeField(t,i){const s={},e=this._selectedGraphic.layer;this._updating=!0;const a=this._selectedGraphic;a.attributes[t]=Number(a.attributes[t])+(i?1:-1),s[e.objectIdField]=a.attributes[e.objectIdField],s[t]=a.attributes[t];const h=new this.Graphic;h.attributes=s;const c={updateFeatures:[h]};await e.applyEdits(c).then((()=>{this._selectedGraphic=a,this.setInLocalStorage(),this._updating=!1,this.likeOrDislikeClicked.emit()}),(t=>{this._updating=!1,console.log(t)}))}getFromLocalStorage(){const t=localStorage[this._selectedGraphic.layer.id];if(t){const i=JSON.parse(t).filter((t=>t.id===this._selectedGraphic.getObjectId()));i.length>0&&(this._isLikeBtnClicked=i[0].like,this._isDislikeBtnClicked=i[0].dislike)}}setInLocalStorage(){const t=this._selectedGraphic.layer.id,i=localStorage[t];let s=[];if(i){s=JSON.parse(i);const t=s.findIndex((t=>t.id===this._selectedGraphic.getObjectId()));t>=0&&s.splice(t,1)}s.push({id:this._selectedGraphic.getObjectId(),like:this._isLikeBtnClicked&&0!==this._likeCount,dislike:this._isDislikeBtnClicked&&0!==this._disLikeCount}),localStorage.setItem(t,JSON.stringify(s))}static get watchers(){return{graphics:["graphicsWatchHandler"]}}};b.style=":host{display:block}.buttons-container{align-items:center;display:flex;padding:4px;color:var(--calcite-color-text-1) !important;background-color:var(--calcite-color-foreground-1) !important;border-block-start:1px solid var(--calcite-color-border-3);border-block-end:1px solid var(--calcite-color-border-3)}";const y=class{constructor(s){t(this,s),this.layerSelect=i(this,"layerSelect",7),this.layersListLoaded=i(this,"layersListLoaded",7)}get el(){return s(this)}mapView;layers;locale;showFeatureCount=!0;showNextIcon=!1;applyLayerViewFilter=!1;_noLayersToDisplay=!1;_mapLayerIds=[];_isLoading=!1;_translations;_layerItemsHash;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async refresh(){await this.setLayers()}layerSelect;layersListLoaded;async componentWillLoad(){await this._getTranslations()}async componentDidLoad(){await this.setLayers()}render(){return e(a,{key:"a151c8fd65c50aacb23dcd0c858e52c0c7cd7e5e"},this._isLoading&&e("calcite-loader",{key:"544a134bccc29048ca80b996844cc944bcd97a24",label:"",scale:"m"}),!this._isLoading&&this.mapView&&this._noLayersToDisplay&&e("calcite-notice",{key:"7557f91c8c3349c120c043ea59458b4c834dce2e",class:"error-msg",icon:"layers-reference",kind:"danger",open:!0},e("div",{key:"ea8b20f8c7da5053641cfad56e3395ae3c6286f5",slot:"title"},this._translations.error),e("div",{key:"38aaed7b456aba0b1dd70183be03e9133834dfb4",slot:"message"},this._translations.noLayerToDisplayErrorMsg)),!this._isLoading&&this.mapView&&e("calcite-list",{key:"547b0681145fd8d8663b786472be9e5161cbd693",label:"","selection-appearance":"border","selection-mode":"none"},this.renderLayerList()))}async setLayers(){this.mapView&&(this._isLoading=!0,await this.initLayerHash(),this._isLoading=!1)}async initLayerHash(){const t=[];this._layerItemsHash=await l(this.mapView,!0);const i=await r(this.mapView);for(const s of i)if("feature"===s?.type&&this.showFeatureCount){const i=s.createQuery();if(s?.definitionExpression&&(i.where=i.where+" AND "+s.definitionExpression),this.applyLayerViewFilter){const t=await d(this.mapView,s.id);t?.filter?.where&&(i.where=i.where?i.where+" AND "+t.filter.where:t.filter.where)}const e=s.queryFeatureCount(i);t.push(e),e.then((async t=>{const i=isNaN(t)?"":await n(t,{places:0,api:4,type:"decimal"});this._layerItemsHash[s.id].formattedFeatureCount=i}))}await Promise.all(t).then((()=>{const t=this.getLayersToBeShownInList(this._layerItemsHash);this._mapLayerIds=t.reverse(),this.handleNoLayersToDisplay()}),(()=>{this._mapLayerIds=[],this.handleNoLayersToDisplay()}))}handleNoLayersToDisplay(){this._noLayersToDisplay=!(this._mapLayerIds.length>0),this.layersListLoaded.emit(this._mapLayerIds)}getLayersToBeShownInList(t){const i=this.layers?.length>0?this.layers:[];return Object.keys(t).reduce(((t,s)=>(i.indexOf(s)>-1&&t.push(s),t)),[])}renderLayerList(){return this._mapLayerIds.length>0&&this._mapLayerIds.reduce(((t,i)=>(this._layerItemsHash[i]&&t.push(this.getLayerListItem(i)),t)),[])}getLayerListItem(t){const i=this._layerItemsHash[t].formattedFeatureCount;return e("calcite-list-item",{onCalciteListItemSelect:()=>{this.onLayerItemSelected(t)}},e("div",{class:"layer-name",slot:"content-start"},this._layerItemsHash[t].name),this.showFeatureCount&&void 0!==i&&""!==i&&e("div",{class:"feature-count",slot:"content-end"},"("+i+")"),this.showNextIcon&&e("calcite-icon",{flipRtl:!0,icon:"chevron-right",scale:"s",slot:"content-end"}))}onLayerItemSelected(t){this.layerSelect.emit({layerId:t,layerName:this._layerItemsHash[t].name})}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"]}}};y.style=":host{display:block}.error-msg{padding:10px}.layer-name{font-weight:500;word-break:break-word}.feature-count{padding:0 10px}";export{p as create_related_feature,b as feature_details,y as layer_list}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{d as e,f as t}from"./p-
|
6
|
+
import{d as e,f as t}from"./p-1b0588d2.js";const s=e=>!("isConnected"in e)||e.isConnected,n=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(s))})(...t)}),2e3)}})(),o=e=>"function"==typeof e?e():e,r=(s,r)=>{const c=((e,t=((e,t)=>e!==t))=>{const s=o(e);let n=new Map(Object.entries(null!=s?s:{}));const r={dispose:[],get:[],set:[],reset:[]},c=()=>{var t;n=new Map(Object.entries(null!==(t=o(e))&&void 0!==t?t:{})),r.reset.forEach((e=>e()))},u=e=>(r.get.forEach((t=>t(e))),n.get(e)),i=(e,s)=>{const o=n.get(e);t(s,o,e)&&(n.set(e,s),r.set.forEach((t=>t(e,s,o))))},p="undefined"==typeof Proxy?{}:new Proxy(s,{get:(e,t)=>u(t),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>n.has(t),set:(e,t,s)=>(i(t,s),!0)}),a=(e,t)=>(r[e].push(t),()=>{((e,t)=>{const s=e.indexOf(t);s>=0&&(e[s]=e[e.length-1],e.length--)})(r[e],t)});return{state:p,get:u,set:i,on:a,onChange:(t,s)=>{const n=a("set",((e,n)=>{e===t&&s(n)})),r=a("reset",(()=>s(o(e)[t])));return()=>{n(),r()}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(a("set",t.set)),t.get&&e.push(a("get",t.get)),t.reset&&e.push(a("reset",t.reset)),t.dispose&&e.push(a("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{r.dispose.forEach((e=>e())),c()},reset:c,forceUpdate:e=>{const t=n.get(e);r.set.forEach((s=>s(e,t,t)))}}})(s,r);return c.use((()=>{if("function"!=typeof e)return{};const s=new Map;return{dispose:()=>s.clear(),get:t=>{const n=e();n&&((e,t,s)=>{const n=e.get(t);n?n.includes(s)||n.push(s):e.set(t,[s])})(s,t,n)},set:e=>{const o=s.get(e);o&&s.set(e,o.filter(t)),n(s)},reset:()=>{s.forEach((e=>e.forEach(t))),n(s)}}})()),c};export{r as c}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{g as t,r as e,h as i,H as n}from"./p-
|
6
|
+
import{g as t,r as e,h as i,H as n}from"./p-1b0588d2.js";import{g as r,a as s,b as o}from"./p-f6e81cf8.js";import{s as a}from"./p-8b218ba7.js";import"./p-4f236b5d.js";import{g as h}from"./p-ee2cbba0.js";import{r as c,N as u,c as l,e as f,A as d}from"./p-0668e30d.js";import"./p-80cb7c73.js";import"./p-570b13d9.js";import"./p-e23b4193.js";import"./p-d4056c1c.js";import"./p-0a24ad5f.js";
|
7
7
|
/*! *****************************************************************************
|
8
8
|
Copyright (c) Microsoft Corporation.
|
9
9
|
|