@esri/solutions-components 0.10.47 → 0.10.48
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{ExpandToggle-2cdd9a8e.js → ExpandToggle-c5e409ce.js} +5 -5
- package/dist/cjs/{FloatingArrow-91a71a80.js → FloatingArrow-c2b50d47.js} +1 -1
- package/dist/cjs/{Heading-a3e36113.js → Heading-3e2d46fd.js} +1 -1
- package/dist/cjs/{Validation-55fc2417.js → Validation-c065b988.js} +1 -1
- package/dist/cjs/{app-globals-3ff4b752.js → app-globals-09eb9eb5.js} +5 -5
- package/dist/cjs/{ar-76c21e64.js → ar-0afb390b.js} +20 -20
- package/dist/cjs/{array-286e5a3b.js → array-a8a57676.js} +1 -1
- package/dist/cjs/{bg-14c9b066.js → bg-b1be4ef3.js} +20 -20
- package/dist/cjs/{browser-333a21c5.js → browser-0bedacf5.js} +1 -1
- package/dist/cjs/{bs-af03a828.js → bs-a314390f.js} +20 -20
- package/dist/cjs/buffer-tools_3.cjs.entry.js +4 -4
- package/dist/cjs/{ca-ae8e24ac.js → ca-b8e89e47.js} +20 -20
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action-bar.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action-group.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action_2.cjs.entry.js +20 -20
- package/dist/cjs/calcite-alert_6.cjs.entry.js +17 -17
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block-section.cjs.entry.js +10 -10
- package/dist/cjs/calcite-block_5.cjs.entry.js +27 -27
- package/dist/cjs/calcite-button.cjs.entry.js +14 -14
- package/dist/cjs/calcite-card-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-card.cjs.entry.js +11 -11
- package/dist/cjs/calcite-carousel_2.cjs.entry.js +14 -14
- package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -11
- package/dist/cjs/calcite-chip-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-chip_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-color-picker.cjs.entry.js +12 -12
- package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +24 -24
- package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-dialog.cjs.entry.js +22 -17
- package/dist/cjs/calcite-dropdown_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter_5.cjs.entry.js +18 -18
- package/dist/cjs/calcite-flow_4.cjs.entry.js +4 -4
- package/dist/cjs/calcite-graph_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-icon_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-number.cjs.entry.js +16 -16
- package/dist/cjs/calcite-input-text.cjs.entry.js +16 -16
- package/dist/cjs/{calcite-input-time-picker-74396a94.js → calcite-input-time-picker-42ed419f.js} +64 -64
- package/dist/cjs/calcite-input-time-picker.cjs.entry.js +20 -20
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +21 -21
- package/dist/cjs/calcite-input_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +6 -6
- package/dist/cjs/calcite-list-item-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu-item.cjs.entry.js +10 -10
- package/dist/cjs/calcite-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal.cjs.entry.js +16 -16
- package/dist/cjs/calcite-navigation-logo.cjs.entry.js +4 -4
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +3 -3
- package/dist/cjs/calcite-navigation.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +15 -15
- package/dist/cjs/calcite-option_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pagination.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pick-list-group.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pick-list-item.cjs.entry.js +15 -15
- package/dist/cjs/calcite-pick-list.cjs.entry.js +13 -13
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -14
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-sheet.cjs.entry.js +10 -10
- package/dist/cjs/calcite-shell-center-row.cjs.entry.js +23 -9
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +29 -29
- package/dist/cjs/calcite-shell.cjs.entry.js +7 -7
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +8 -8
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stepper-item.cjs.entry.js +11 -11
- package/dist/cjs/calcite-stepper.cjs.entry.js +10 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-table-row.cjs.entry.js +7 -7
- package/dist/cjs/calcite-table.cjs.entry.js +10 -10
- package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
- package/dist/cjs/calcite-tile-group.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tile-select.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
- package/dist/cjs/calcite-time-picker.cjs.entry.js +13 -13
- package/dist/cjs/calcite-tip-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tip-manager.cjs.entry.js +12 -12
- package/dist/cjs/calcite-tip.cjs.entry.js +13 -13
- package/dist/cjs/calcite-tooltip.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tree_2.cjs.entry.js +10 -10
- package/dist/cjs/{component-5d190962.js → component-65f2fe4b.js} +1 -1
- package/dist/cjs/{conditionalSlot-37ff4832.js → conditionalSlot-003e6975.js} +2 -2
- package/dist/cjs/{config-e76d9931.js → config-2282fdac.js} +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +9 -2
- package/dist/cjs/{cs-5c693156.js → cs-f14626e8.js} +20 -20
- package/dist/cjs/{da-1a406d67.js → da-2fce32d4.js} +20 -20
- package/dist/cjs/{date-bb8f971c.js → date-e763caec.js} +2 -2
- package/dist/cjs/{de-11376da8.js → de-2c1fce6f.js} +20 -20
- package/dist/cjs/{de-at-a7437de2.js → de-at-94de293d.js} +20 -20
- package/dist/cjs/{de-ch-862dfe8d.js → de-ch-d42f4faf.js} +20 -20
- package/dist/cjs/{dom-795d4a33.js → dom-e11b7daf.js} +3 -3
- package/dist/cjs/{el-69fd471f.js → el-8092eeb9.js} +20 -20
- package/dist/cjs/{en-au-4af4c244.js → en-au-9bc4467f.js} +20 -20
- package/dist/cjs/{en-ca-dd0f74b8.js → en-ca-d9140239.js} +20 -20
- package/dist/cjs/{en-gb-d9916a0a.js → en-gb-f5e2af8e.js} +20 -20
- package/dist/cjs/{es-b96f4aa7.js → es-4b6327d7.js} +20 -20
- package/dist/cjs/{es-mx-7ce9a959.js → es-mx-f729412a.js} +20 -20
- package/dist/cjs/{et-ed1f6381.js → et-ec115eb3.js} +20 -20
- package/dist/cjs/{fi-16433386.js → fi-95701850.js} +20 -20
- package/dist/cjs/{filter-e600c2fe.js → filter-899cda85.js} +1 -1
- package/dist/cjs/{floating-ui-0f85d59c.js → floating-ui-a8693586.js} +4 -4
- package/dist/cjs/{focusTrapComponent-b19fd5d5.js → focusTrapComponent-48fdd3f6.js} +3 -3
- package/dist/cjs/{form-6dd8050a.js → form-a36bd0e5.js} +2 -2
- package/dist/cjs/{fr-ch-368648e3.js → fr-ch-a231f229.js} +20 -20
- package/dist/cjs/{fr-32b252ad.js → fr-e22a2684.js} +20 -20
- package/dist/cjs/{guid-e84a8375.js → guid-d99f21fe.js} +1 -1
- package/dist/cjs/{he-d139901b.js → he-d0070eb9.js} +20 -20
- package/dist/cjs/{hi-ba5e377e.js → hi-04615e27.js} +20 -20
- package/dist/cjs/{hr-87b5a9d8.js → hr-27fefb6d.js} +20 -20
- package/dist/cjs/{hu-3b80d082.js → hu-63da9819.js} +20 -20
- package/dist/cjs/{id-09dfbe6e.js → id-d4fe65cd.js} +20 -20
- package/dist/cjs/{index-89a62dc9.js → index-0b0f3737.js} +3 -3
- package/dist/cjs/{index-c134f2f6.js → index-b4e2f888.js} +3 -3
- package/dist/cjs/{index-0fb00064.js → index-fedf53b1.js} +2 -2
- package/dist/cjs/{input-8c28213d.js → input-ce93953f.js} +1 -1
- package/dist/cjs/{interactive-a128ac30.js → interactive-7ccdd728.js} +1 -1
- package/dist/cjs/{it-da71aa25.js → it-418a53bf.js} +20 -20
- package/dist/cjs/{it-ch-00a4c4b4.js → it-ch-7f4632ab.js} +20 -20
- package/dist/cjs/{ja-c3519ced.js → ja-6c5d5c7d.js} +20 -20
- package/dist/cjs/{key-47c9469a.js → key-cdfc85aa.js} +1 -1
- package/dist/cjs/{ko-ea8cd08b.js → ko-e4154b91.js} +20 -20
- package/dist/cjs/{label-726fc287.js → label-e18f62c9.js} +3 -3
- package/dist/cjs/{loadable-1c888c87.js → loadable-f3fe73a2.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-da840314.js → locale-7eb2f603.js} +5 -5
- package/dist/cjs/{logger-f177776b.js → logger-912d7f26.js} +2 -2
- package/dist/cjs/{lt-4e8161c8.js → lt-d6dae6fd.js} +20 -20
- package/dist/cjs/{lv-b976ad37.js → lv-bcf9724a.js} +20 -20
- package/dist/cjs/{math-089392ef.js → math-34746601.js} +1 -1
- package/dist/cjs/{mk-e2ea18b4.js → mk-171505d2.js} +20 -20
- package/dist/cjs/{nb-d81f921b.js → nb-0dcee19c.js} +20 -20
- package/dist/cjs/{nl-7249cded.js → nl-dace5864.js} +20 -20
- package/dist/cjs/{observers-18d87cb5.js → observers-affd684f.js} +2 -2
- package/dist/cjs/{openCloseComponent-3c540d25.js → openCloseComponent-044883e4.js} +2 -2
- package/dist/cjs/{pl-d93521bd.js → pl-7755a609.js} +20 -20
- package/dist/cjs/{pt-bf297919.js → pt-3121cc39.js} +20 -20
- package/dist/cjs/{pt-br-2c9c4ba2.js → pt-br-67b16e3a.js} +20 -20
- package/dist/cjs/{region-26804632.js → region-7f262d75.js} +1 -1
- package/dist/cjs/{resources-cf1791da.js → resources-1454138b.js} +1 -1
- package/dist/cjs/{resources-9c07e2ea.js → resources-18358747.js} +1 -1
- package/dist/cjs/{resources-b3dc59f7.js → resources-2392e12e.js} +1 -1
- package/dist/cjs/{resources-eeda5acf.js → resources-23a86b54.js} +1 -1
- package/dist/cjs/{resources-f895ff54.js → resources-2ae05f17.js} +1 -1
- package/dist/cjs/{resources-535f936c.js → resources-392a021f.js} +1 -1
- package/dist/cjs/{resources-388efec5.js → resources-51c2cde3.js} +1 -1
- package/dist/cjs/{resources-18f799c7.js → resources-6c04ccee.js} +1 -1
- package/dist/cjs/{resources-f9ab74c4.js → resources-72fc2b95.js} +1 -1
- package/dist/cjs/{resources-7aaf489b.js → resources-9b6cf400.js} +1 -1
- package/dist/cjs/{responsive-a61585b1.js → responsive-9d6c09ff.js} +1 -1
- package/dist/cjs/{ro-b770ba3d.js → ro-7f726306.js} +20 -20
- package/dist/cjs/{ru-f70d0afe.js → ru-fc11963d.js} +20 -20
- package/dist/cjs/{shared-list-render-546c7296.js → shared-list-render-3d6ec3ca.js} +7 -7
- package/dist/cjs/{sk-67e2fd96.js → sk-e85b9c15.js} +20 -20
- package/dist/cjs/{sl-cf79e6c6.js → sl-9eb375c2.js} +20 -20
- package/dist/cjs/solutions-components.cjs.js +5 -5
- package/dist/cjs/{sortableComponent-5dfc7ff8.js → sortableComponent-6983a0f0.js} +1 -1
- package/dist/cjs/{sr-02a5153e.js → sr-1d2513be.js} +20 -20
- package/dist/cjs/{sv-1c32f9ba.js → sv-f7693c9f.js} +20 -20
- package/dist/cjs/{t9n-ed5c03a7.js → t9n-64df74f3.js} +3 -3
- package/dist/cjs/{th-ddd7073f.js → th-0d2328bb.js} +20 -20
- package/dist/cjs/{time-a92ca33f.js → time-513586eb.js} +3 -3
- package/dist/cjs/{time-zones-a7e83971.js → time-zones-bb3f09ac.js} +1 -1
- package/dist/cjs/{tr-31fcd3f7.js → tr-2c074411.js} +20 -20
- package/dist/cjs/{uk-a0f9e2bc.js → uk-5e16db67.js} +20 -20
- package/dist/cjs/{utils-51a793a5.js → utils-5f5839d7.js} +2 -2
- package/dist/cjs/{utils-7e5609ab.js → utils-d0049d76.js} +5 -4
- package/dist/cjs/{vi-d484e1b9.js → vi-2a4d8334.js} +20 -20
- package/dist/cjs/{zh-cn-3d843268.js → zh-cn-126bcbc0.js} +20 -20
- package/dist/cjs/{zh-hk-4aacd6d2.js → zh-hk-aeeba861.js} +20 -20
- package/dist/cjs/{zh-tw-cbd770ad.js → zh-tw-0cfb6e20.js} +20 -20
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +10 -1
- package/dist/collection/demos/crowdsource-reporter.html +267 -266
- package/dist/components/ExpandToggle.js +2 -2
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/Validation.js +1 -1
- package/dist/components/accordion-item.js +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/action-bar.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action-pad.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/alert.js +2 -2
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +2 -2
- package/dist/components/block.js +1 -1
- package/dist/components/browser.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-dialog.js +8 -3
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input-time-zone.js +2 -2
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-meter.js +1 -1
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-sheet.js +1 -1
- package/dist/components/calcite-shell-center-row.js +16 -3
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +2 -2
- package/dist/components/calcite-table-row.js +1 -1
- package/dist/components/calcite-table.js +1 -1
- package/dist/components/calcite-text-area.js +1 -1
- package/dist/components/calcite-tile-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/carousel-item.js +1 -1
- package/dist/components/carousel.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +2 -2
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item-group.js +1 -1
- package/dist/components/combobox-item.js +1 -1
- package/dist/components/combobox.js +5 -5
- package/dist/components/component.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/config.js +1 -1
- package/dist/components/crowdsource-reporter.js +11 -3
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker.js +2 -2
- package/dist/components/date.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/flow-item.js +1 -1
- package/dist/components/flow.js +1 -1
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/input-date-picker.js +2 -2
- package/dist/components/input-message.js +1 -1
- package/dist/components/input-number.js +1 -1
- package/dist/components/input-text.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/input2.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale2.js +2 -2
- package/dist/components/logger.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/modal.js +1 -1
- package/dist/components/navigation-user.js +1 -1
- package/dist/components/notice.js +2 -2
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/panel.js +2 -2
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +2 -2
- package/dist/components/radio-button.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/resources5.js +1 -1
- package/dist/components/resources6.js +1 -1
- package/dist/components/responsive.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/segmented-control-item.js +1 -1
- package/dist/components/segmented-control.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/shared-list-render.js +2 -2
- package/dist/components/shell-panel.js +1 -1
- package/dist/components/shell.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/table-cell.js +1 -1
- package/dist/components/table-header.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/time-picker.js +2 -2
- package/dist/components/tooltip.js +3 -3
- package/dist/components/tree-item.js +1 -1
- package/dist/components/tree.js +1 -1
- package/dist/components/utils.js +2 -2
- package/dist/components/utils2.js +3 -2
- package/dist/components/utils3.js +1 -1
- package/dist/components/value-list-item.js +1 -1
- package/dist/components/value-list.js +2 -2
- package/dist/esm/{ExpandToggle-4d440eb0.js → ExpandToggle-d2cde0b5.js} +5 -5
- package/dist/esm/{FloatingArrow-4f645ccd.js → FloatingArrow-1ba04e83.js} +1 -1
- package/dist/esm/{Heading-80b3be96.js → Heading-82d9e017.js} +1 -1
- package/dist/esm/{Validation-cf136c56.js → Validation-594a63f5.js} +1 -1
- package/dist/esm/{app-globals-4aab2132.js → app-globals-177bd1cd.js} +5 -5
- package/dist/esm/{ar-d4e9c6ca.js → ar-a85b5d05.js} +20 -20
- package/dist/esm/{array-0e780f6f.js → array-e540e707.js} +1 -1
- package/dist/esm/{bg-e7db3070.js → bg-def28c6d.js} +20 -20
- package/dist/esm/{browser-b67d8df6.js → browser-e3f463e1.js} +1 -1
- package/dist/esm/{bs-154d0540.js → bs-86bb2bcb.js} +20 -20
- package/dist/esm/buffer-tools_3.entry.js +4 -4
- package/dist/esm/{ca-403d9586.js → ca-823e6ba8.js} +20 -20
- package/dist/esm/calcite-accordion_2.entry.js +10 -10
- package/dist/esm/calcite-action-bar.entry.js +14 -14
- package/dist/esm/calcite-action-group.entry.js +12 -12
- package/dist/esm/calcite-action-menu_2.entry.js +16 -16
- package/dist/esm/calcite-action-pad_2.entry.js +14 -14
- package/dist/esm/calcite-action_2.entry.js +20 -20
- package/dist/esm/calcite-alert_6.entry.js +17 -17
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block-section.entry.js +10 -10
- package/dist/esm/calcite-block_5.entry.js +27 -27
- package/dist/esm/calcite-button.entry.js +14 -14
- package/dist/esm/calcite-card-group.entry.js +6 -6
- package/dist/esm/calcite-card.entry.js +11 -11
- package/dist/esm/calcite-carousel_2.entry.js +14 -14
- package/dist/esm/calcite-checkbox.entry.js +11 -11
- package/dist/esm/calcite-chip-group.entry.js +6 -6
- package/dist/esm/calcite-chip_2.entry.js +16 -16
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +8 -8
- package/dist/esm/calcite-color-picker.entry.js +12 -12
- package/dist/esm/calcite-combobox-item-group.entry.js +6 -6
- package/dist/esm/calcite-combobox_3.entry.js +24 -24
- package/dist/esm/calcite-date-picker-day_3.entry.js +13 -13
- package/dist/esm/calcite-dialog.entry.js +22 -17
- package/dist/esm/calcite-dropdown_2.entry.js +13 -13
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter_5.entry.js +18 -18
- package/dist/esm/calcite-flow_4.entry.js +4 -4
- package/dist/esm/calcite-graph_2.entry.js +15 -15
- package/dist/esm/calcite-icon_2.entry.js +10 -10
- package/dist/esm/calcite-inline-editable.entry.js +13 -13
- package/dist/esm/calcite-input-number.entry.js +16 -16
- package/dist/esm/calcite-input-text.entry.js +16 -16
- package/dist/esm/{calcite-input-time-picker-cc675f33.js → calcite-input-time-picker-c45e1964.js} +64 -64
- package/dist/esm/calcite-input-time-picker.entry.js +20 -20
- package/dist/esm/calcite-input-time-zone.entry.js +21 -21
- package/dist/esm/calcite-input_2.entry.js +16 -16
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +6 -6
- package/dist/esm/calcite-list-item-group.entry.js +3 -3
- package/dist/esm/calcite-menu-item.entry.js +10 -10
- package/dist/esm/calcite-menu.entry.js +9 -9
- package/dist/esm/calcite-meter.entry.js +10 -10
- package/dist/esm/calcite-modal.entry.js +16 -16
- package/dist/esm/calcite-navigation-logo.entry.js +4 -4
- package/dist/esm/calcite-navigation-user.entry.js +3 -3
- package/dist/esm/calcite-navigation.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +15 -15
- package/dist/esm/calcite-option_2.entry.js +12 -12
- package/dist/esm/calcite-pagination.entry.js +12 -12
- package/dist/esm/calcite-pick-list-group.entry.js +10 -10
- package/dist/esm/calcite-pick-list-item.entry.js +15 -15
- package/dist/esm/calcite-pick-list.entry.js +13 -13
- package/dist/esm/calcite-radio-button-group.entry.js +8 -8
- package/dist/esm/calcite-radio-button.entry.js +11 -11
- package/dist/esm/calcite-rating.entry.js +14 -14
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +12 -12
- package/dist/esm/calcite-sheet.entry.js +10 -10
- package/dist/esm/calcite-shell-center-row.entry.js +23 -9
- package/dist/esm/calcite-shell-panel_14.entry.js +29 -29
- package/dist/esm/calcite-shell.entry.js +7 -7
- package/dist/esm/calcite-sortable-list.entry.js +8 -8
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stepper-item.entry.js +11 -11
- package/dist/esm/calcite-stepper.entry.js +10 -10
- package/dist/esm/calcite-switch.entry.js +11 -11
- package/dist/esm/calcite-table-cell_2.entry.js +13 -13
- package/dist/esm/calcite-table-row.entry.js +7 -7
- package/dist/esm/calcite-table.entry.js +10 -10
- package/dist/esm/calcite-text-area.entry.js +16 -16
- package/dist/esm/calcite-tile-group.entry.js +7 -7
- package/dist/esm/calcite-tile-select-group.entry.js +3 -3
- package/dist/esm/calcite-tile-select.entry.js +7 -7
- package/dist/esm/calcite-tile.entry.js +7 -7
- package/dist/esm/calcite-time-picker.entry.js +13 -13
- package/dist/esm/calcite-tip-group.entry.js +2 -2
- package/dist/esm/calcite-tip-manager.entry.js +12 -12
- package/dist/esm/calcite-tip.entry.js +13 -13
- package/dist/esm/calcite-tooltip.entry.js +10 -10
- package/dist/esm/calcite-tree_2.entry.js +10 -10
- package/dist/esm/{component-83541c88.js → component-09697fb8.js} +1 -1
- package/dist/esm/{conditionalSlot-8a0b08ef.js → conditionalSlot-720a3c33.js} +2 -2
- package/dist/esm/{config-16813c92.js → config-3af0e436.js} +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +9 -2
- package/dist/esm/{cs-4687cf9f.js → cs-87414fd8.js} +20 -20
- package/dist/esm/{da-27cb521d.js → da-f7060594.js} +20 -20
- package/dist/esm/{date-4fc03f44.js → date-8f6c3f50.js} +2 -2
- package/dist/esm/{de-1fcb8b55.js → de-18aa2195.js} +20 -20
- package/dist/esm/{de-at-621e3161.js → de-at-00f0ce55.js} +20 -20
- package/dist/esm/{de-ch-dbe106ba.js → de-ch-2bf886c0.js} +20 -20
- package/dist/esm/{dom-75c641a7.js → dom-6f6759df.js} +3 -3
- package/dist/esm/{el-60cb7e8e.js → el-0c5df4ce.js} +20 -20
- package/dist/esm/{en-au-6b31eadf.js → en-au-947d067e.js} +20 -20
- package/dist/esm/{en-ca-c62e2c29.js → en-ca-d80eb647.js} +20 -20
- package/dist/esm/{en-gb-7b86a861.js → en-gb-78272f13.js} +20 -20
- package/dist/esm/{es-b048cf9a.js → es-6b8b399b.js} +20 -20
- package/dist/esm/{es-mx-a469d043.js → es-mx-4f12df51.js} +20 -20
- package/dist/esm/{et-09e59731.js → et-11aeba76.js} +20 -20
- package/dist/esm/{fi-98448a04.js → fi-c44d11d6.js} +20 -20
- package/dist/esm/{filter-c0066fe2.js → filter-848e0efa.js} +1 -1
- package/dist/esm/{floating-ui-93b345b1.js → floating-ui-d21020a0.js} +4 -4
- package/dist/esm/{focusTrapComponent-35b3348c.js → focusTrapComponent-1ddc67c5.js} +3 -3
- package/dist/esm/{form-d45062d8.js → form-e9b1ad9a.js} +2 -2
- package/dist/esm/{fr-3a6bc75f.js → fr-cac28d20.js} +20 -20
- package/dist/esm/{fr-ch-dd9aa577.js → fr-ch-a324bd02.js} +20 -20
- package/dist/esm/{guid-b0fb1de3.js → guid-45e997d8.js} +1 -1
- package/dist/esm/{he-510944f3.js → he-eab95e66.js} +20 -20
- package/dist/esm/{hi-b7f35ddc.js → hi-cefe2a7e.js} +20 -20
- package/dist/esm/{hr-91d6e89b.js → hr-f863024d.js} +20 -20
- package/dist/esm/{hu-ab576bec.js → hu-2921d1d5.js} +20 -20
- package/dist/esm/{id-5ebe99df.js → id-4e25c1e7.js} +20 -20
- package/dist/esm/{index-3aaf8d41.js → index-92bcd383.js} +2 -2
- package/dist/esm/{index-46fa2a72.js → index-c8258692.js} +3 -3
- package/dist/esm/{index-19dc829d.js → index-e86ce97a.js} +3 -3
- package/dist/esm/{input-e01adc49.js → input-461c96ef.js} +1 -1
- package/dist/esm/{interactive-98ed6b6f.js → interactive-949b348f.js} +1 -1
- package/dist/esm/{it-62f24385.js → it-1f2ce2fc.js} +20 -20
- package/dist/esm/{it-ch-11bc01ef.js → it-ch-fa4f6a28.js} +20 -20
- package/dist/esm/{ja-4073b97b.js → ja-dd6ac9b5.js} +20 -20
- package/dist/esm/{key-e6b442de.js → key-2e7789c2.js} +1 -1
- package/dist/esm/{ko-c1f9c746.js → ko-3c269b4f.js} +20 -20
- package/dist/esm/{label-272c5973.js → label-1ef4763d.js} +3 -3
- package/dist/esm/{loadable-7cb2fc6f.js → loadable-421e634e.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-24516fec.js → locale-a75d14ff.js} +5 -5
- package/dist/esm/{logger-f75712ce.js → logger-5c7a2fec.js} +2 -2
- package/dist/esm/{lt-f293ef90.js → lt-8f5fd3eb.js} +20 -20
- package/dist/esm/{lv-cc60dc4f.js → lv-d1afc7ed.js} +20 -20
- package/dist/esm/{math-d7c8823c.js → math-abbf3537.js} +1 -1
- package/dist/esm/{mk-90d4457e.js → mk-794650fc.js} +20 -20
- package/dist/esm/{nb-3d8eb4cc.js → nb-800989aa.js} +20 -20
- package/dist/esm/{nl-a2e0732f.js → nl-634b9b85.js} +20 -20
- package/dist/esm/{observers-c83631e8.js → observers-2d4fa9e3.js} +2 -2
- package/dist/esm/{openCloseComponent-f642bffd.js → openCloseComponent-4621d4ae.js} +2 -2
- package/dist/esm/{pl-1e1abb9b.js → pl-45fb968c.js} +20 -20
- package/dist/esm/{pt-1bc85b37.js → pt-bd7887a6.js} +20 -20
- package/dist/esm/{pt-br-bd78f1f2.js → pt-br-d9181dce.js} +20 -20
- package/dist/esm/{region-a37e45f7.js → region-9343aba8.js} +1 -1
- package/dist/esm/{resources-c1a8d628.js → resources-2780a851.js} +1 -1
- package/dist/esm/{resources-14a1713f.js → resources-32f19aa5.js} +1 -1
- package/dist/esm/{resources-de1ba6bb.js → resources-3adf06cd.js} +1 -1
- package/dist/esm/{resources-be1618c8.js → resources-833bf39f.js} +1 -1
- package/dist/esm/{resources-aa7bb7b6.js → resources-912401b4.js} +1 -1
- package/dist/esm/{resources-8e2ed936.js → resources-ab131744.js} +1 -1
- package/dist/esm/{resources-35208c6c.js → resources-bc66182e.js} +1 -1
- package/dist/esm/{resources-bc1429eb.js → resources-d81723e9.js} +1 -1
- package/dist/esm/{resources-5956d3f9.js → resources-f6e948a0.js} +1 -1
- package/dist/esm/{resources-29590c8b.js → resources-fa50aa39.js} +1 -1
- package/dist/esm/{responsive-b2be423e.js → responsive-6cfebeae.js} +1 -1
- package/dist/esm/{ro-c1cb4571.js → ro-31fe0dcc.js} +20 -20
- package/dist/esm/{ru-deb7b95b.js → ru-e73bc075.js} +20 -20
- package/dist/esm/{shared-list-render-0d3e719c.js → shared-list-render-83bb7274.js} +7 -7
- package/dist/esm/{sk-e86a1a74.js → sk-e7e24146.js} +20 -20
- package/dist/esm/{sl-4f70ce5c.js → sl-ad96d047.js} +20 -20
- package/dist/esm/solutions-components.js +5 -5
- package/dist/esm/{sortableComponent-7f184466.js → sortableComponent-55f7a145.js} +1 -1
- package/dist/esm/{sr-bcde0bb0.js → sr-785166a3.js} +20 -20
- package/dist/esm/{sv-e585fbb5.js → sv-9f422817.js} +20 -20
- package/dist/esm/{t9n-9a5d28cf.js → t9n-23649a4a.js} +3 -3
- package/dist/esm/{th-f1746070.js → th-7e8b3dad.js} +20 -20
- package/dist/esm/{time-fbe17659.js → time-5ca488ba.js} +3 -3
- package/dist/esm/{time-zones-044d518b.js → time-zones-b8cfef3f.js} +1 -1
- package/dist/esm/{tr-065767bb.js → tr-1b1dd6db.js} +20 -20
- package/dist/esm/{uk-96e72322.js → uk-13d0afbf.js} +20 -20
- package/dist/esm/{utils-b5a6dbcd.js → utils-a564ca55.js} +5 -4
- package/dist/esm/{utils-dadbd166.js → utils-c1c0bd2c.js} +2 -2
- package/dist/esm/{vi-667fe4b6.js → vi-82ec876c.js} +20 -20
- package/dist/esm/{zh-cn-fbbbe429.js → zh-cn-c4181895.js} +20 -20
- package/dist/esm/{zh-hk-d11430a1.js → zh-hk-752cc263.js} +20 -20
- package/dist/esm/{zh-tw-4a1b522b.js → zh-tw-e653ba6c.js} +20 -20
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion/accordion.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion-item/accordion-item.css +6 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action/action.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-group/action-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-menu/action-menu.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-pad/action-pad.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/alert/alert.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/avatar/avatar.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block/block.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/block-section/block-section.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/button/button.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card/card.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/card-group/card-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel/carousel.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel-item/carousel-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/checkbox/checkbox.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip/chip.css +10 -19
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip-group/chip-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker/color-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-swatch/color-picker-swatch.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox/combobox.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item/combobox-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item-group/combobox-item-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker/date-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-day/date-picker-day.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month/date-picker-month.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month-header/date-picker-month-header.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dialog/dialog.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-group/dropdown-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/dropdown-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/fab/fab.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/filter/filter.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow/flow.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow-item/flow-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/graph/graph.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/handle/handle.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/icon/icon.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/inline-editable/inline-editable.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input/input.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-date-picker/input-date-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-message/input-message.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-number/input-number.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-text/input-text.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-picker/input-time-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-zone/input-time-zone.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/label/label.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/link/link.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list/list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item/list-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item-group/list-item-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/loader/loader.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu/menu.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu-item/menu-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/meter/meter.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/modal/modal.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation/navigation.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-logo/navigation-logo.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-user/navigation-user.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/notice/notice.css +7 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option/option.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/option-group/option-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pagination/pagination.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/panel/panel.css +5 -6
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list/pick-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-group/pick-list-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-item/pick-list-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/popover/popover.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/progress/progress.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button/radio-button.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button-group/radio-button-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/rating/rating.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/scrim/scrim.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control/segmented-control.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control-item/segmented-control-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/select/select.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sheet/sheet.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell/shell.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-center-row/shell-center-row.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-panel/shell-panel.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/slider/slider.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/sortable-list/sortable-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/split-button/split-button.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stack/stack.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper/stepper.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/switch/switch.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab/tab.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-nav/tab-nav.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-title/tab-title.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table/table.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-cell/table-cell.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-header/table-header.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-row/table-row.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tabs/tabs.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/text-area/text-area.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile/tile.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-group/tile-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select/tile-select.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select-group/tile-select-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/time-picker/time-picker.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip/tip.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-group/tip-group.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-manager/tip-manager.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tooltip/tooltip.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree/tree.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree-item/tree-item.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list/value-list.css +5 -5
- package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list-item/value-list-item.css +5 -5
- package/dist/solutions-components/demos/crowdsource-reporter.html +267 -266
- package/dist/solutions-components/{p-6aab07ba.entry.js → p-087c3740.entry.js} +1 -1
- package/dist/solutions-components/{p-4f82eb55.js → p-08c18450.js} +1 -1
- package/dist/solutions-components/{p-ed844e16.entry.js → p-09d34b2b.entry.js} +3 -3
- package/dist/solutions-components/{p-d4f16e41.js → p-0af967af.js} +1 -1
- package/dist/solutions-components/{p-e01d27aa.entry.js → p-0f8241d2.entry.js} +1 -1
- package/dist/solutions-components/{p-d0f16cd3.entry.js → p-10a158fd.entry.js} +2 -2
- package/dist/solutions-components/{p-020143eb.entry.js → p-115af8e4.entry.js} +3 -3
- package/dist/solutions-components/{p-f898b163.js → p-12833b70.js} +1 -1
- package/dist/solutions-components/{p-91e05c99.js → p-13fd4eeb.js} +1 -1
- package/dist/solutions-components/{p-895e7b9c.js → p-177b4cbc.js} +5 -5
- package/dist/solutions-components/p-184b270d.entry.js +11 -0
- package/dist/solutions-components/{p-faf3343c.entry.js → p-191f30e1.entry.js} +2 -2
- package/dist/solutions-components/{p-5e406ad0.entry.js → p-19e89591.entry.js} +3 -3
- package/dist/solutions-components/{p-d3338131.entry.js → p-1afc5947.entry.js} +2 -2
- package/dist/solutions-components/{p-c97472e4.js → p-1b3684d7.js} +1 -1
- package/dist/solutions-components/{p-c9f94a25.js → p-1b59cd94.js} +1 -1
- package/dist/solutions-components/p-1e8af7ed.js +6 -0
- package/dist/solutions-components/{p-a584543f.js → p-1f65aed7.js} +1 -1
- package/dist/solutions-components/{p-2506309d.entry.js → p-1fafdc23.entry.js} +2 -2
- package/dist/solutions-components/{p-33d732d7.entry.js → p-20ed3f7f.entry.js} +2 -2
- package/dist/solutions-components/{p-fc243a76.entry.js → p-25f30972.entry.js} +2 -2
- package/dist/solutions-components/{p-621ad249.js → p-26ba0cc7.js} +2 -2
- package/dist/solutions-components/{p-47f85755.entry.js → p-2714ede8.entry.js} +4 -4
- package/dist/solutions-components/p-294cd25c.js +6 -0
- package/dist/solutions-components/p-2b9f9f7d.js +16 -0
- package/dist/solutions-components/{p-58338ff8.entry.js → p-2d9072d8.entry.js} +3 -3
- package/dist/solutions-components/{p-f966fadb.entry.js → p-2e0aea4e.entry.js} +3 -3
- package/dist/solutions-components/{p-f62b8031.js → p-2e42f34c.js} +1 -1
- package/dist/solutions-components/{p-6e93a997.entry.js → p-2f1ef41d.entry.js} +1 -1
- package/dist/solutions-components/p-368902f1.entry.js +6 -0
- package/dist/solutions-components/{p-60412359.js → p-39e21b70.js} +1 -1
- package/dist/solutions-components/{p-347f341e.js → p-3aee989b.js} +3 -3
- package/dist/solutions-components/{p-2154a0f9.entry.js → p-3af39767.entry.js} +1 -1
- package/dist/solutions-components/{p-91f0f556.entry.js → p-3ba388b6.entry.js} +3 -3
- package/dist/solutions-components/{p-16f52a67.js → p-3e87c19c.js} +1 -1
- package/dist/solutions-components/{p-efdd44e3.js → p-3f9ec755.js} +1 -1
- package/dist/solutions-components/{p-be9a6a87.entry.js → p-4416d650.entry.js} +3 -3
- package/dist/solutions-components/p-443be7fe.js +6 -0
- package/dist/solutions-components/{p-7b8d7eef.entry.js → p-49df6eb3.entry.js} +2 -2
- package/dist/solutions-components/{p-9e862c85.js → p-4a665563.js} +1 -1
- package/dist/solutions-components/{p-24ab8211.entry.js → p-4b15f4a4.entry.js} +2 -2
- package/dist/solutions-components/{p-097bf845.entry.js → p-4b47caf1.entry.js} +3 -3
- package/dist/solutions-components/{p-fae4708b.js → p-4bfecfe9.js} +1 -1
- package/dist/solutions-components/{p-3df0c310.entry.js → p-4d6e359e.entry.js} +2 -2
- package/dist/solutions-components/{p-da2fd30a.js → p-4e3a18b1.js} +1 -1
- package/dist/solutions-components/{p-39678a7e.js → p-4ff35ed4.js} +1 -1
- package/dist/solutions-components/{p-91371f97.js → p-51ab623a.js} +1 -1
- package/dist/solutions-components/{p-7ffa7eae.entry.js → p-545a48dc.entry.js} +3 -3
- package/dist/solutions-components/p-55bbfdbc.entry.js +6 -0
- package/dist/solutions-components/{p-876c3f5f.js → p-55d38454.js} +1 -1
- package/dist/solutions-components/{p-706cddd1.entry.js → p-5804e6e1.entry.js} +7 -7
- package/dist/solutions-components/{p-bb1de7a0.entry.js → p-58cff07f.entry.js} +3 -3
- package/dist/solutions-components/p-592ab45c.js +6 -0
- package/dist/solutions-components/p-5b5b78c0.js +6 -0
- package/dist/solutions-components/{p-72ab74b8.entry.js → p-614a66c4.entry.js} +3 -3
- package/dist/solutions-components/{p-c6dac8d2.js → p-6166d8b4.js} +5 -5
- package/dist/solutions-components/{p-9ff02b5e.js → p-61cc2efe.js} +1 -1
- package/dist/solutions-components/{p-96a983ab.entry.js → p-62c10928.entry.js} +1 -1
- package/dist/solutions-components/{p-3776809a.js → p-63a91fdb.js} +1 -1
- package/dist/solutions-components/p-63d334b2.entry.js +6 -0
- package/dist/solutions-components/{p-144b7a4d.js → p-677db47a.js} +1 -1
- package/dist/solutions-components/p-68375137.js +6 -0
- package/dist/solutions-components/{p-36b864ba.entry.js → p-6acd19c5.entry.js} +2 -2
- package/dist/solutions-components/{p-b3e498bd.js → p-6cad2a22.js} +1 -1
- package/dist/solutions-components/p-7059fc40.js +6 -0
- package/dist/solutions-components/{p-3cfc1e2e.js → p-70e78995.js} +1 -1
- package/dist/solutions-components/p-70eba636.entry.js +6 -0
- package/dist/solutions-components/{p-89334c32.js → p-71f31d39.js} +1 -1
- package/dist/solutions-components/{p-8d59545b.js → p-725a961a.js} +1 -1
- package/dist/solutions-components/{p-49fbb67d.js → p-74720d2b.js} +1 -1
- package/dist/solutions-components/{p-5230c9ff.entry.js → p-764ff506.entry.js} +2 -2
- package/dist/solutions-components/{p-d6902512.js → p-770a5a64.js} +1 -1
- package/dist/solutions-components/{p-15410144.js → p-77469834.js} +1 -1
- package/dist/solutions-components/{p-49ed272d.entry.js → p-77865541.entry.js} +2 -2
- package/dist/solutions-components/{p-0bfef9c6.entry.js → p-78df7603.entry.js} +3 -3
- package/dist/solutions-components/{p-efe845d9.js → p-78e09c03.js} +1 -1
- package/dist/solutions-components/{p-a9742ffc.entry.js → p-7a7951bd.entry.js} +3 -3
- package/dist/solutions-components/p-7cc8e95a.js +11 -0
- package/dist/solutions-components/{p-f746ec20.js → p-7d5d1b0a.js} +2 -2
- package/dist/solutions-components/{p-a02e2069.js → p-7eee9aa8.js} +1 -1
- package/dist/solutions-components/p-7f68e6a4.js +11 -0
- package/dist/solutions-components/{p-143f9e99.entry.js → p-7fb51464.entry.js} +3 -3
- package/dist/solutions-components/{p-8d0d5a69.js → p-80ff858b.js} +1 -1
- package/dist/solutions-components/p-8304ce4b.js +17 -0
- package/dist/solutions-components/{p-c0c6f4b2.js → p-85c068fd.js} +1 -1
- package/dist/solutions-components/{p-ff336351.js → p-85c3237c.js} +2 -2
- package/dist/solutions-components/{p-fb4f7ace.js → p-860099d5.js} +1 -1
- package/dist/solutions-components/{p-dac93fa8.js → p-86a5caf8.js} +1 -1
- package/dist/solutions-components/{p-b5ddeee9.js → p-86db882f.js} +1 -1
- package/dist/solutions-components/{p-e070ef82.entry.js → p-872986ce.entry.js} +3 -3
- package/dist/solutions-components/{p-f76d3cfe.js → p-8a2ccb1e.js} +1 -1
- package/dist/solutions-components/{p-471c6630.js → p-8cb9ecf6.js} +1 -1
- package/dist/solutions-components/{p-5949dd38.js → p-8d811472.js} +1 -1
- package/dist/solutions-components/{p-bb630f8c.entry.js → p-8dc9d5b6.entry.js} +1 -1
- package/dist/solutions-components/{p-40bfb158.entry.js → p-8ff43000.entry.js} +2 -2
- package/dist/solutions-components/{p-96027923.entry.js → p-91a83986.entry.js} +8 -8
- package/dist/solutions-components/{p-cd8e711f.entry.js → p-928f0b5e.entry.js} +1 -1
- package/dist/solutions-components/{p-c7f8b7f0.js → p-93d03bf0.js} +2 -2
- package/dist/solutions-components/{p-b13aca6a.js → p-977c099e.js} +1 -1
- package/dist/solutions-components/{p-7b862835.js → p-997afdca.js} +1 -1
- package/dist/solutions-components/{p-89f86585.js → p-9c1a6360.js} +1 -1
- package/dist/solutions-components/{p-6adaac20.js → p-9c5d5171.js} +2 -2
- package/dist/solutions-components/{p-d25fc2c2.js → p-9ce8e34f.js} +2 -2
- package/dist/solutions-components/p-9d86dd68.js +6 -0
- package/dist/solutions-components/{p-7475b8b4.entry.js → p-9e8d7c1d.entry.js} +5 -5
- package/dist/solutions-components/p-9e996faa.js +6 -0
- package/dist/solutions-components/{p-fe58f3f0.entry.js → p-a1473254.entry.js} +2 -2
- package/dist/solutions-components/{p-1effd2f3.entry.js → p-a1ed15b8.entry.js} +3 -3
- package/dist/solutions-components/{p-1c9db4df.entry.js → p-a329f05c.entry.js} +1 -1
- package/dist/solutions-components/{p-af0e57e2.js → p-a3df6501.js} +1 -1
- package/dist/solutions-components/{p-08e9cb30.entry.js → p-a52fa87b.entry.js} +3 -3
- package/dist/solutions-components/{p-353312fc.entry.js → p-a5f6a4b9.entry.js} +6 -6
- package/dist/solutions-components/{p-181ac808.entry.js → p-a6790373.entry.js} +3 -3
- package/dist/solutions-components/{p-96385535.entry.js → p-a693aa25.entry.js} +5 -5
- package/dist/solutions-components/{p-f0c96a6a.js → p-a71250ea.js} +1 -1
- package/dist/solutions-components/{p-bf187297.js → p-a7d249d9.js} +1 -1
- package/dist/solutions-components/p-a7d4b1a4.js +6 -0
- package/dist/solutions-components/{p-f61fdfc6.entry.js → p-ac9c4111.entry.js} +2 -2
- package/dist/solutions-components/{p-3ec0ab00.entry.js → p-acc4d847.entry.js} +2 -2
- package/dist/solutions-components/{p-4a291f79.js → p-ae019e19.js} +1 -1
- package/dist/solutions-components/{p-e93184af.entry.js → p-ae5ea416.entry.js} +1 -1
- package/dist/solutions-components/{p-fa80bc7e.js → p-b138a65e.js} +2 -2
- package/dist/solutions-components/{p-b0b1c672.entry.js → p-b5a5da41.entry.js} +4 -4
- package/dist/solutions-components/{p-daff208e.js → p-b90978d2.js} +1 -1
- package/dist/solutions-components/{p-fdeceaf6.entry.js → p-bab47a85.entry.js} +5 -5
- package/dist/solutions-components/{p-cf4273a0.js → p-bd35725f.js} +1 -1
- package/dist/solutions-components/{p-61aebbb5.js → p-bd7be7a7.js} +1 -1
- package/dist/solutions-components/{p-3517faab.entry.js → p-be6cd650.entry.js} +2 -2
- package/dist/solutions-components/{p-54a3d9b8.js → p-c0ceb17a.js} +1 -1
- package/dist/solutions-components/p-c2ceb29c.js +6 -0
- package/dist/solutions-components/p-c604728b.js +6 -0
- package/dist/solutions-components/{p-a922f993.entry.js → p-c63451e1.entry.js} +2 -2
- package/dist/solutions-components/{p-7d974838.js → p-c8ad7a15.js} +1 -1
- package/dist/solutions-components/{p-b10d9165.entry.js → p-c8e22575.entry.js} +6 -6
- package/dist/solutions-components/{p-685091db.js → p-c9422007.js} +1 -1
- package/dist/solutions-components/{p-d751e255.entry.js → p-c9715704.entry.js} +3 -3
- package/dist/solutions-components/p-cb8d90d1.js +11 -0
- package/dist/solutions-components/{p-5f63be31.entry.js → p-cc6f6e41.entry.js} +5 -5
- package/dist/solutions-components/{p-81681ba0.entry.js → p-cdc63710.entry.js} +2 -2
- package/dist/solutions-components/{p-3cadb18d.js → p-cdd08de8.js} +1 -1
- package/dist/solutions-components/{p-8a1a0f9b.entry.js → p-ce7b0b1a.entry.js} +3 -3
- package/dist/solutions-components/p-cf2947f6.entry.js +11 -0
- package/dist/solutions-components/p-d02fb95c.entry.js +17 -0
- package/dist/solutions-components/{p-8cdeed09.entry.js → p-d031cf50.entry.js} +3 -3
- package/dist/solutions-components/{p-3c775d00.js → p-d0ebd10d.js} +1 -1
- package/dist/solutions-components/{p-2ebd8a9b.entry.js → p-d154b5a1.entry.js} +2 -2
- package/dist/solutions-components/{p-2daeb1fe.js → p-d1a979b8.js} +1 -1
- package/dist/solutions-components/{p-b034e287.entry.js → p-d1b2484b.entry.js} +3 -3
- package/dist/solutions-components/{p-549cdc87.entry.js → p-d2c2a105.entry.js} +3 -3
- package/dist/solutions-components/{p-2a6ecaa9.entry.js → p-d390df76.entry.js} +2 -2
- package/dist/solutions-components/{p-296bd1c0.js → p-d3e1cc81.js} +1 -1
- package/dist/solutions-components/p-d4f7a87c.js +6 -0
- package/dist/solutions-components/{p-8d48a13f.js → p-d851b11e.js} +1 -1
- package/dist/solutions-components/{p-d75cf651.entry.js → p-d9d25da8.entry.js} +2 -2
- package/dist/solutions-components/{p-4253e9f1.js → p-d9e9fe80.js} +2 -2
- package/dist/solutions-components/p-d9f3778e.js +6 -0
- package/dist/solutions-components/{p-ec56afaa.js → p-daae2ae7.js} +1 -1
- package/dist/solutions-components/p-ddb37cba.entry.js +11 -0
- package/dist/solutions-components/{p-27bcce86.entry.js → p-df062602.entry.js} +3 -3
- package/dist/solutions-components/{p-e799935e.js → p-e2fd2e29.js} +1 -1
- package/dist/solutions-components/{p-5d8592e0.js → p-e3111b70.js} +1 -1
- package/dist/solutions-components/{p-745efeab.js → p-e37e117f.js} +1 -1
- package/dist/solutions-components/{p-b90ed430.entry.js → p-e4be63b6.entry.js} +2 -2
- package/dist/solutions-components/p-e4e7add2.js +11 -0
- package/dist/solutions-components/{p-44d04914.entry.js → p-e93a531c.entry.js} +2 -2
- package/dist/solutions-components/{p-233f219c.js → p-ec51378a.js} +1 -1
- package/dist/solutions-components/{p-54e5a55d.js → p-ee3c41d6.js} +1 -1
- package/dist/solutions-components/{p-1862084a.entry.js → p-ee487e75.entry.js} +3 -3
- package/dist/solutions-components/{p-7d542581.js → p-eed08718.js} +1 -1
- package/dist/solutions-components/{p-72522a67.js → p-ef773a13.js} +1 -1
- package/dist/solutions-components/{p-e7acd771.entry.js → p-f3119757.entry.js} +2 -2
- package/dist/solutions-components/{p-67e7f047.entry.js → p-f5789e08.entry.js} +8 -8
- package/dist/solutions-components/{p-1fc9919b.entry.js → p-f6cc1cf8.entry.js} +5 -5
- package/dist/solutions-components/{p-7fdb374f.js → p-f845da58.js} +1 -1
- package/dist/solutions-components/{p-8f556cfc.entry.js → p-fbf63d14.entry.js} +1 -1
- package/dist/solutions-components/{p-13d2e3cb.js → p-fc7c88c8.js} +1 -1
- package/dist/solutions-components/{p-27a4a537.js → p-fd019d15.js} +2 -2
- package/dist/solutions-components/{p-ea822f6e.js → p-fd40d066.js} +1 -1
- package/dist/solutions-components/{p-4bb08a47.entry.js → p-febf9f75.entry.js} +2 -2
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +4 -0
- package/package.json +6 -6
- package/dist/solutions-components/p-017f63c5.js +0 -6
- package/dist/solutions-components/p-0374291c.js +0 -6
- package/dist/solutions-components/p-086f8bbb.js +0 -6
- package/dist/solutions-components/p-1726f46c.js +0 -6
- package/dist/solutions-components/p-2bb1b8a8.entry.js +0 -6
- package/dist/solutions-components/p-319f79c2.js +0 -6
- package/dist/solutions-components/p-347fa724.js +0 -6
- package/dist/solutions-components/p-45ab1117.entry.js +0 -11
- package/dist/solutions-components/p-5d2cd0a4.js +0 -11
- package/dist/solutions-components/p-5e25a0b8.js +0 -11
- package/dist/solutions-components/p-5f6d9950.js +0 -6
- package/dist/solutions-components/p-713949f2.js +0 -6
- package/dist/solutions-components/p-7cc351f6.js +0 -6
- package/dist/solutions-components/p-866cc732.js +0 -6
- package/dist/solutions-components/p-8ac08cc3.entry.js +0 -17
- package/dist/solutions-components/p-8e0a95ff.js +0 -16
- package/dist/solutions-components/p-904a670f.js +0 -6
- package/dist/solutions-components/p-93b87dd4.entry.js +0 -11
- package/dist/solutions-components/p-986dd5b2.js +0 -17
- package/dist/solutions-components/p-9f98f213.js +0 -6
- package/dist/solutions-components/p-ad9d1221.js +0 -11
- package/dist/solutions-components/p-b658f264.js +0 -6
- package/dist/solutions-components/p-c64d61d9.entry.js +0 -6
- package/dist/solutions-components/p-d4e07230.entry.js +0 -11
- package/dist/solutions-components/p-efaa77a0.js +0 -11
- package/dist/solutions-components/p-f86c2a0c.entry.js +0 -6
- package/dist/solutions-components/p-fca48d30.entry.js +0 -6
- package/dist/solutions-components/p-fdbb52ca.js +0 -6
- /package/dist/cjs/{index-c44fa2e4.js → index-04255c05.js} +0 -0
- /package/dist/cjs/{index-p4VH55K1-8a6a97cb.js → index-p4VH55K1-3ec8b213.js} +0 -0
- /package/dist/esm/{index-8fda18f5.js → index-87ec7c0a.js} +0 -0
- /package/dist/esm/{index-p4VH55K1-881b80d8.js → index-p4VH55K1-c28a3519.js} +0 -0
- /package/dist/solutions-components/{p-794d1b98.js → p-1a3181c3.js} +0 -0
- /package/dist/solutions-components/{p-065e678f.js → p-6ae916a3.js} +0 -0
- /package/dist/solutions-components/{p-33ff2b9e.js → p-fc17754b.js} +0 -0
@@ -3,9 +3,9 @@
|
|
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,h as e,H as n,g as r}from"./p-4e6eb06e.js";import{c as o}from"./p-d4056c1c.js";import{t as a,f as s}from"./p-621ad249.js";import{c,d as u,u as l,a as h}from"./p-4253e9f1.js";import{s as f,a as v,c as d}from"./p-ad9d1221.js";import{c as p}from"./p-ff336351.js";import{o as g}from"./p-c7f8b7f0.js";import{c as m,d as y}from"./p-895e7b9c.js";import{s as b,c as x,d as w,u as k}from"./p-efaa77a0.js";import{c as z}from"./p-4a291f79.js";import{S as M}from"./p-3776809a.js";import"./p-7d542581.js";import"./p-91371f97.js";import"./p-a02e2069.js";import"./p-4f82eb55.js";import"./p-233f219c.js";var E,O={exports:{}};(E=O).exports=function(){function t(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function i(i){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?t(Object(n),!0).forEach((function(t){a(i,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(n,t))}))}return i}function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function r(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function o(t,i,e){return i&&r(t.prototype,i),e&&r(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,i,e){return(i=v(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function s(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&u(t,i)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,i){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},u(t,i)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,n=c(t);if(i){var r=c(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(t,i){if(i&&("object"==typeof i||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,e)}}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,i,e){var n=function(t,i){for(;!Object.prototype.hasOwnProperty.call(t,i)&&null!==(t=c(t)););return t}(t,i);if(n){var r=Object.getOwnPropertyDescriptor(n,i);return r.get?r.get.call(arguments.length<3?t:e):r.value}},f.apply(this,arguments)}function v(t){var i=function(t){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var e=i.call(t,"string");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:i+""}var d=function(t){return!(!t||!t.Window)&&t instanceof t.Window},p=void 0,g=void 0;function m(t){p=t;var i=t.document.createTextNode("");i.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(i)===i&&(t=t.wrap(t)),g=t}function y(t){return d(t)?t:(t.ownerDocument||t).defaultView||g.window}"undefined"!=typeof window&&window&&m(window);var b=function(t){return!!t&&"object"===e(t)},x=function(t){return"function"==typeof t},w={window:function(t){return t===g||d(t)},docFrag:function(t){return b(t)&&11===t.nodeType},object:b,func:x,number:function(t){return"number"==typeof t},bool:function(t){return"boolean"==typeof t},string:function(t){return"string"==typeof t},element:function(t){if(!t||"object"!==e(t))return!1;var i=y(t)||g;return/object|function/.test("undefined"==typeof Element?"undefined":e(Element))?t instanceof Element||t instanceof i.Element:1===t.nodeType&&"string"==typeof t.nodeName},plainObject:function(t){return b(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return b(t)&&void 0!==t.length&&x(t.splice)}};function k(t){var i=t.interaction;if("drag"===i.prepared.name){var e=i.prepared.axis;"x"===e?(i.coords.cur.page.y=i.coords.start.page.y,i.coords.cur.client.y=i.coords.start.client.y,i.coords.velocity.client.y=0,i.coords.velocity.page.y=0):"y"===e&&(i.coords.cur.page.x=i.coords.start.page.x,i.coords.cur.client.x=i.coords.start.client.x,i.coords.velocity.client.x=0,i.coords.velocity.page.x=0)}}function z(t){var i=t.iEvent,e=t.interaction;if("drag"===e.prepared.name){var n=e.prepared.axis;if("x"===n||"y"===n){var r="x"===n?"y":"x";i.page[r]=e.coords.start.page[r],i.client[r]=e.coords.start.client[r],i.delta[r]=0}}}var M={id:"actions/drag",install:function(t){var i=t.actions,e=t.defaults;t.Interactable.prototype.draggable=M.draggable,i.map.drag=M,i.methodDict.drag="draggable",e.actions.drag=M.defaults},listeners:{"interactions:before-action-move":k,"interactions:action-resume":k,"interactions:action-move":z,"auto-start:check":function(t){var i=t.interaction,e=t.interactable,n=t.buttons,r=e.options.drag;if(r&&r.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||n&e.options.drag.mouseButtons))return t.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(t){return w.object(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):w.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:k,move:z,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return 0===t.search("drag")}},O=M,S={init:function(t){var i=t;S.document=i.document,S.DocumentFragment=i.DocumentFragment||T,S.SVGElement=i.SVGElement||T,S.SVGSVGElement=i.SVGSVGElement||T,S.SVGElementInstance=i.SVGElementInstance||T,S.Element=i.Element||T,S.HTMLElement=i.HTMLElement||S.Element,S.Event=i.Event,S.Touch=i.Touch||T,S.PointerEvent=i.PointerEvent||i.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function T(){}var j=S,I={init:function(t){var i=j.Element,e=t.navigator||{};I.supportsTouch="ontouchstart"in t||w.func(t.DocumentTouch)&&j.document instanceof t.DocumentTouch,I.supportsPointerEvent=!1!==e.pointerEnabled&&!!j.PointerEvent,I.isIOS=/iP(hone|od|ad)/.test(e.platform),I.isIOS7=/iP(hone|od|ad)/.test(e.platform)&&/OS 7[^\d]/.test(e.appVersion),I.isIe9=/MSIE 9/.test(e.userAgent),I.isOperaMobile="Opera"===e.appName&&I.supportsTouch&&/Presto/.test(e.userAgent),I.prefixedMatchesSelector="matches"in i.prototype?"matches":"webkitMatchesSelector"in i.prototype?"webkitMatchesSelector":"mozMatchesSelector"in i.prototype?"mozMatchesSelector":"oMatchesSelector"in i.prototype?"oMatchesSelector":"msMatchesSelector",I.pEventTypes=I.supportsPointerEvent?j.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,I.wheelEvent=j.document&&"onmousewheel"in j.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},P=I;function D(t,i){if(t.contains)return t.contains(i);for(;i;){if(i===t)return!0;i=i.parentNode}return!1}function C(t,i){for(;w.element(t);){if(R(t,i))return t;t=A(t)}return null}function A(t){var i=t.parentNode;if(w.docFrag(i)){for(;(i=i.host)&&w.docFrag(i););return i}return i}function R(t,i){return g!==p&&(i=i.replace(/\/deep\//g," ")),t[P.prefixedMatchesSelector](i)}var _=function(t){return t.parentNode||t.host};function F(t,i){for(var e,n=[],r=t;(e=_(r))&&r!==i&&e!==r.ownerDocument;)n.unshift(r),r=e;return n}function L(t,i,e){for(;w.element(t);){if(R(t,i))return!0;if((t=A(t))===e)return R(t,i)}return!1}function $(t){return t.correspondingUseElement||t}function B(t){var i=t instanceof j.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return i&&{left:i.left,right:i.right,top:i.top,bottom:i.bottom,width:i.width||i.right-i.left,height:i.height||i.bottom-i.top}}function X(t){var i,e=B(t);if(!P.isIOS7&&e){var n={x:(i=(i=y(t))||g).scrollX||i.document.documentElement.scrollLeft,y:i.scrollY||i.document.documentElement.scrollTop};e.left+=n.x,e.right+=n.x,e.top+=n.y,e.bottom+=n.y}return e}function Y(t){for(var i=[];t;)i.push(t),t=A(t);return i}function U(t){return!!w.string(t)&&(j.document.querySelector(t),!0)}function V(t,i){for(var e in i)t[e]=i[e];return t}function N(t,i,e){return"parent"===t?A(e):"self"===t?i.getRect(e):C(e,t)}function q(t,i,e,n){var r=t;return w.string(r)?r=N(r,i,e):w.func(r)&&(r=r.apply(void 0,n)),w.element(r)&&(r=X(r)),r}function H(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function G(t){return!t||"x"in t&&"y"in t||((t=V({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function K(t,i,e){t.left&&(i.left+=e.x),t.right&&(i.right+=e.x),t.top&&(i.top+=e.y),t.bottom&&(i.bottom+=e.y),i.width=i.right-i.left,i.height=i.bottom-i.top}function W(t,i,e){var n=e&&t.options[e];return H(q(n&&n.origin||t.options.origin,t,i,[t&&i]))||{x:0,y:0}}function J(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0},n=arguments.length>3?arguments[3]:void 0;if(n=n||{},w.string(t)&&-1!==t.search(" ")&&(t=Q(t)),w.array(t))return t.forEach((function(t){return J(t,i,e,n)})),n;if(w.object(t)&&(i=t,t=""),w.func(i)&&e(t))n[t]=n[t]||[],n[t].push(i);else if(w.array(i))for(var r=0,o=i;r<o.length;r++)J(t,o[r],e,n);else if(w.object(i))for(var a in i)J(Q(a).map((function(i){return"".concat(t).concat(i)})),i[a],e,n);return n}function Q(t){return t.trim().split(/ +/)}var Z=function(t,i){return Math.sqrt(t*t+i*i)},tt=["webkit","moz"];function it(t,i){t.__set||(t.__set={});var e=function(e){if(tt.some((function(t){return 0===e.indexOf(t)})))return 1;"function"!=typeof t[e]&&"__set"!==e&&Object.defineProperty(t,e,{get:function(){return e in t.__set?t.__set[e]:t.__set[e]=i[e]},set:function(i){t.__set[e]=i},configurable:!0})};for(var n in i)e(n);return t}function et(t,i){t.page=t.page||{},t.page.x=i.page.x,t.page.y=i.page.y,t.client=t.client||{},t.client.x=i.client.x,t.client.y=i.client.y,t.timeStamp=i.timeStamp}function nt(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function rt(t){return t instanceof j.Event||t instanceof j.Touch}function ot(t,i,e){return(e=e||{}).x=i[(t=t||"page")+"X"],e.y=i[t+"Y"],e}function at(t,i){return i=i||{x:0,y:0},P.isOperaMobile&&rt(t)?(ot("screen",t,i),i.x+=window.scrollX,i.y+=window.scrollY):ot("page",t,i),i}function st(t){return w.number(t.pointerId)?t.pointerId:t.identifier}function ct(t){var i=[];return w.array(t)?(i[0]=t[0],i[1]=t[1]):"touchend"===t.type?1===t.touches.length?(i[0]=t.touches[0],i[1]=t.changedTouches[0]):0===t.touches.length&&(i[0]=t.changedTouches[0],i[1]=t.changedTouches[1]):(i[0]=t.touches[0],i[1]=t.touches[1]),i}function ut(t){for(var i={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},e=0;e<t.length;e++){var n=t[e];for(var r in i)i[r]+=n[r]}for(var o in i)i[o]/=t.length;return i}function lt(t){if(!t.length)return null;var i=ct(t),e=Math.min(i[0].pageX,i[1].pageX),n=Math.min(i[0].pageY,i[1].pageY),r=Math.max(i[0].pageX,i[1].pageX),o=Math.max(i[0].pageY,i[1].pageY);return{x:e,y:n,left:e,top:n,right:r,bottom:o,width:r-e,height:o-n}}function ht(t,i){var e=i+"X",n=i+"Y",r=ct(t);return Z(r[0][e]-r[1][e],r[0][n]-r[1][n])}function ft(t,i){var e=i+"X",n=i+"Y",r=ct(t);return 180*Math.atan2(r[1][n]-r[0][n],r[1][e]-r[0][e])/Math.PI}function vt(t){return w.string(t.pointerType)?t.pointerType:w.number(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof j.Touch?"touch":"mouse"}function dt(t){var i=w.func(t.composedPath)?t.composedPath():t.path;return[$(i?i[0]:t.target),$(t.currentTarget)]}var pt=function(){function t(i){n(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=i}return o(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(pt.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var gt=function(t,i){for(var e=0;e<i.length;e++)t.push(i[e]);return t},mt=function(t){return gt([],t)},yt=function(t,i){for(var e=0;e<t.length;e++)if(i(t[e],e,t))return e;return-1},bt=function(t,i){return t[yt(t,i)]},xt=function(t){s(e,t);var i=h(e);function e(t,r,o){var a;n(this,e),(a=i.call(this,r._interaction)).dropzone=void 0,a.dragEvent=void 0,a.relatedTarget=void 0,a.draggable=void 0,a.propagationStopped=!1,a.immediatePropagationStopped=!1;var s="dragleave"===o?t.prev:t.cur,c=s.element,u=s.dropzone;return a.type=o,a.target=c,a.currentTarget=c,a.dropzone=u,a.dragEvent=r,a.relatedTarget=r.target,a.draggable=r.interactable,a.timeStamp=r.timeStamp,a}return o(e,[{key:"reject",value:function(){var t=this,i=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&i.cur.dropzone===this.dropzone&&i.cur.element===this.target)if(i.prev.dropzone=this.dropzone,i.prev.element=this.target,i.rejected=!0,i.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var n=yt(i.activeDrops,(function(i){return i.dropzone===t.dropzone&&i.element===t.target}));i.activeDrops.splice(n,1);var r=new e(i,this.dragEvent,"dropdeactivate");r.dropzone=this.dropzone,r.target=this.target,this.dropzone.fire(r)}else this.dropzone.fire(new e(i,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),e}(pt);function wt(t,i){for(var e=0,n=t.slice();e<n.length;e++){var r=n[e],o=r.dropzone,a=r.element;i.dropzone=o,i.target=a,o.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function kt(t,i){for(var e=function(t,i){for(var e=[],n=0,r=t.interactables.list;n<r.length;n++){var o=r[n];if(o.options.drop.enabled){var a=o.options.drop.accept;if(!(w.element(a)&&a!==i||w.string(a)&&!R(i,a)||w.func(a)&&!a({dropzone:o,draggableElement:i})))for(var s=0,c=o.getAllElements();s<c.length;s++){var u=c[s];u!==i&&e.push({dropzone:o,element:u,rect:o.getRect(u)})}}}return e}(t,i),n=0;n<e.length;n++){var r=e[n];r.rect=r.dropzone.getRect(r.element)}return e}function zt(t,i,e){for(var n=t.dropState,r=t.interactable,o=t.element,a=[],s=0,c=n.activeDrops;s<c.length;s++){var u=c[s],l=u.element,h=u.dropzone.dropCheck(i,e,r,o,l,u.rect);a.push(h?l:null)}var f=function(t){for(var i,e,n,r=[],o=0;o<t.length;o++){var a=t[o],s=t[i];if(a&&o!==i)if(s){var c=_(a),u=_(s);if(c!==a.ownerDocument)if(u!==a.ownerDocument)if(c!==u){r=r.length?r:F(s);var l=void 0;if(s instanceof j.HTMLElement&&a instanceof j.SVGElement&&!(a instanceof j.SVGSVGElement)){if(a===u)continue;l=a.ownerSVGElement}else l=a;for(var h=F(l,s.ownerDocument),f=0;h[f]&&h[f]===r[f];)f++;var v=[h[f-1],h[f],r[f]];if(v[0])for(var d=v[0].lastChild;d;){if(d===v[1]){i=o,r=h;break}if(d===v[2])break;d=d.previousSibling}}else n=s,(parseInt(y(e=a).getComputedStyle(e).zIndex,10)||0)>=(parseInt(y(n).getComputedStyle(n).zIndex,10)||0)&&(i=o);else i=o}else i=o}return i}(a);return n.activeDrops[f]||null}function Mt(t,i,e){var n=t.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===e.type&&(r.activate=new xt(n,e,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===e.type&&(r.deactivate=new xt(n,e,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),n.rejected||(n.cur.element!==n.prev.element&&(n.prev.dropzone&&(r.leave=new xt(n,e,"dragleave"),e.dragLeave=r.leave.target=n.prev.element,e.prevDropzone=r.leave.dropzone=n.prev.dropzone),n.cur.dropzone&&(r.enter=new xt(n,e,"dragenter"),e.dragEnter=n.cur.element,e.dropzone=n.cur.dropzone)),"dragend"===e.type&&n.cur.dropzone&&(r.drop=new xt(n,e,"drop"),e.dropzone=n.cur.dropzone,e.relatedTarget=n.cur.element),"dragmove"===e.type&&n.cur.dropzone&&(r.move=new xt(n,e,"dropmove"),e.dropzone=n.cur.dropzone)),r}function Et(t,i){var e=t.dropState,n=e.activeDrops,r=e.cur;i.leave&&e.prev.dropzone.fire(i.leave),i.enter&&r.dropzone.fire(i.enter),i.move&&r.dropzone.fire(i.move),i.drop&&r.dropzone.fire(i.drop),i.deactivate&&wt(n,i.deactivate),e.prev.dropzone=r.dropzone,e.prev.element=r.element}function Ot(t,i){var e=t.interaction,n=t.iEvent,r=t.event;if("dragmove"===n.type||"dragend"===n.type){var o=e.dropState;i.dynamicDrop&&(o.activeDrops=kt(i,e.element));var a=n,s=zt(e,a,r);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=Mt(e,0,a)}}var St={id:"actions/drop",install:function(t){var i=t.actions,e=t.interactStatic,n=t.Interactable,r=t.defaults;t.usePlugin(O),n.prototype.dropzone=function(t){return function(t,i){if(w.object(i)){if(t.options.drop.enabled=!1!==i.enabled,i.listeners){var e=J(i.listeners),n=Object.keys(e).reduce((function(t,i){return t[/^(enter|leave)/.test(i)?"drag".concat(i):/^(activate|deactivate|move)/.test(i)?"drop".concat(i):i]=e[i],t}),{}),r=t.options.drop.listeners;r&&t.off(r),t.on(n),t.options.drop.listeners=n}return w.func(i.ondrop)&&t.on("drop",i.ondrop),w.func(i.ondropactivate)&&t.on("dropactivate",i.ondropactivate),w.func(i.ondropdeactivate)&&t.on("dropdeactivate",i.ondropdeactivate),w.func(i.ondragenter)&&t.on("dragenter",i.ondragenter),w.func(i.ondragleave)&&t.on("dragleave",i.ondragleave),w.func(i.ondropmove)&&t.on("dropmove",i.ondropmove),/^(pointer|center)$/.test(i.overlap)?t.options.drop.overlap=i.overlap:w.number(i.overlap)&&(t.options.drop.overlap=Math.max(Math.min(1,i.overlap),0)),"accept"in i&&(t.options.drop.accept=i.accept),"checker"in i&&(t.options.drop.checker=i.checker),t}return w.bool(i)?(t.options.drop.enabled=i,t):t.options.drop}(this,t)},n.prototype.dropCheck=function(t,i,e,n,r,o){return function(t,i,e,n,r,o,a){var s=!1;if(!(a=a||t.getRect(o)))return!!t.options.drop.checker&&t.options.drop.checker(i,e,s,t,o,n,r);var c=t.options.drop.overlap;if("pointer"===c){var u=W(n,r,"drag"),l=at(i);l.x+=u.x,l.y+=u.y,s=l.x>a.left&&l.x<a.right&&l.y>a.top&&l.y<a.bottom}var h=n.getRect(r);if(h&&"center"===c){var f=h.left+h.width/2,v=h.top+h.height/2;s=f>=a.left&&f<=a.right&&v>=a.top&&v<=a.bottom}return h&&w.number(c)&&(s=Math.max(0,Math.min(a.right,h.right)-Math.max(a.left,h.left))*Math.max(0,Math.min(a.bottom,h.bottom)-Math.max(a.top,h.top))/(h.width*h.height)>=c),t.options.drop.checker&&(s=t.options.drop.checker(i,e,s,t,o,n,r)),s}(this,t,i,e,n,r,o)},e.dynamicDrop=function(i){return w.bool(i)?(t.dynamicDrop=i,e):t.dynamicDrop},V(i.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),i.methodDict.drop="dropzone",t.dynamicDrop=!1,r.actions.drop=St.defaults},listeners:{"interactions:before-action-start":function(t){var i=t.interaction;"drag"===i.prepared.name&&(i.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,i){var e=t.interaction,n=t.iEvent;if("drag"===e.prepared.name){var r=e.dropState;r.activeDrops=[],r.events={},r.activeDrops=kt(i,e.element),r.events=Mt(e,0,n),r.events.activate&&(wt(r.activeDrops,r.events.activate),i.fire("actions/drop:start",{interaction:e,dragEvent:n}))}},"interactions:action-move":Ot,"interactions:after-action-move":function(t,i){var e=t.interaction,n=t.iEvent;if("drag"===e.prepared.name){var r=e.dropState;Et(e,r.events),i.fire("actions/drop:move",{interaction:e,dragEvent:n}),r.events={}}},"interactions:action-end":function(t,i){if("drag"===t.interaction.prepared.name){var e=t.interaction,n=t.iEvent;Ot(t,i),Et(e,e.dropState.events),i.fire("actions/drop:end",{interaction:e,dragEvent:n})}},"interactions:stop":function(t){var i=t.interaction;if("drag"===i.prepared.name){var e=i.dropState;e&&(e.activeDrops=null,e.events=null,e.cur.dropzone=null,e.cur.element=null,e.prev.dropzone=null,e.prev.element=null,e.rejected=!1)}}},getActiveDrops:kt,getDrop:zt,getDropEvents:Mt,fireDropEvents:Et,filterEventType:function(t){return 0===t.search("drag")||0===t.search("drop")},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Tt=St;function jt(t){var i=t.interaction,e=t.iEvent,n=t.phase;if("gesture"===i.prepared.name){var r=i.pointers.map((function(t){return t.pointer})),o="start"===n,a="end"===n,s=i.interactable.options.deltaSource;if(e.touches=[r[0],r[1]],o)e.distance=ht(r,s),e.box=lt(r),e.scale=1,e.ds=0,e.angle=ft(r,s),e.da=0,i.gesture.startDistance=e.distance,i.gesture.startAngle=e.angle;else if(a||i.pointers.length<2){var c=i.prevEvent;e.distance=c.distance,e.box=c.box,e.scale=c.scale,e.ds=0,e.angle=c.angle,e.da=0}else e.distance=ht(r,s),e.box=lt(r),e.scale=e.distance/i.gesture.startDistance,e.angle=ft(r,s),e.ds=e.scale-i.gesture.scale,e.da=e.angle-i.gesture.angle;i.gesture.distance=e.distance,i.gesture.angle=e.angle,w.number(e.scale)&&e.scale!==1/0&&!isNaN(e.scale)&&(i.gesture.scale=e.scale)}}var It={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var i=t.actions,e=t.defaults;t.Interactable.prototype.gesturable=function(t){return w.object(t)?(this.options.gesture.enabled=!1!==t.enabled,this.setPerAction("gesture",t),this.setOnEvents("gesture",t),this):w.bool(t)?(this.options.gesture.enabled=t,this):this.options.gesture},i.map.gesture=It,i.methodDict.gesture="gesturable",e.actions.gesture=It.defaults},listeners:{"interactions:action-start":jt,"interactions:action-move":jt,"interactions:action-end":jt,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var i=t.interactable.options.gesture;if(i&&i.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return 0===t.search("gesture")}},Pt=It;function Dt(t,i,e,n,r,o,a){if(!i)return!1;if(!0===i){var s=w.number(o.width)?o.width:o.right-o.left,c=w.number(o.height)?o.height:o.bottom-o.top;if(a=Math.min(a,Math.abs(("left"===t||"right"===t?s:c)/2)),s<0&&("left"===t?t="right":"right"===t&&(t="left")),c<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t)return e.x<(s>=0?o.left:o.right)+a;if("top"===t)return e.y<(c>=0?o.top:o.bottom)+a;if("right"===t)return e.x>(s>=0?o.right:o.left)-a;if("bottom"===t)return e.y>(c>=0?o.bottom:o.top)-a}return!!w.element(n)&&(w.element(i)?i===n:L(n,i,r))}function Ct(t){var i=t.interaction;if("resize"===i.prepared.name&&i.resizeAxes){var e=t.iEvent;i.interactable.options.resize.square?("y"===i.resizeAxes?e.delta.x=e.delta.y:e.delta.y=e.delta.x,e.axes="xy"):(e.axes=i.resizeAxes,"x"===i.resizeAxes?e.delta.y=0:"y"===i.resizeAxes&&(e.delta.x=0))}}var At,Rt,_t={id:"actions/resize",before:["actions/drag"],install:function(t){var i=t.actions,e=t.browser,n=t.Interactable,r=t.defaults;_t.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(e),_t.defaultMargin=e.supportsTouch||e.supportsPointerEvent?20:10,n.prototype.resizable=function(i){return function(t,i,e){return w.object(i)?(t.options.resize.enabled=!1!==i.enabled,t.setPerAction("resize",i),t.setOnEvents("resize",i),w.string(i.axis)&&/^x$|^y$|^xy$/.test(i.axis)?t.options.resize.axis=i.axis:null===i.axis&&(t.options.resize.axis=e.defaults.actions.resize.axis),w.bool(i.preserveAspectRatio)?t.options.resize.preserveAspectRatio=i.preserveAspectRatio:w.bool(i.square)&&(t.options.resize.square=i.square),t):w.bool(i)?(t.options.resize.enabled=i,t):t.options.resize}(this,i,t)},i.map.resize=_t,i.methodDict.resize="resizable",r.actions.resize=_t.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){!function(t){var i=t.interaction;if("resize"===i.prepared.name&&i.prepared.edges){var e=t.iEvent,n=i.rect;i._rects={start:V({},n),corrected:V({},n),previous:V({},n),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},e.edges=i.prepared.edges,e.rect=i._rects.corrected,e.deltaRect=i._rects.delta}}(t),Ct(t)},"interactions:action-move":function(t){!function(t){var i=t.interaction;if("resize"===i.prepared.name&&i.prepared.edges){var e=t.iEvent,n=i.interactable.options.resize.invert,r="reposition"===n||"negate"===n,o=i.rect,a=i._rects,s=a.start,c=a.corrected,u=a.delta,l=a.previous;if(V(l,c),r){if(V(c,o),"reposition"===n){if(c.top>c.bottom){var h=c.top;c.top=c.bottom,c.bottom=h}if(c.left>c.right){var f=c.left;c.left=c.right,c.right=f}}}else c.top=Math.min(o.top,s.bottom),c.bottom=Math.max(o.bottom,s.top),c.left=Math.min(o.left,s.right),c.right=Math.max(o.right,s.left);for(var v in c.width=c.right-c.left,c.height=c.bottom-c.top,c)u[v]=c[v]-l[v];e.edges=i.prepared.edges,e.rect=c,e.deltaRect=u}}(t),Ct(t)},"interactions:action-end":function(t){var i=t.interaction;if("resize"===i.prepared.name&&i.prepared.edges){var e=t.iEvent;e.edges=i.prepared.edges,e.rect=i._rects.corrected,e.deltaRect=i._rects.delta}},"auto-start:check":function(t){var i=t.interaction,e=t.interactable,n=t.element,r=t.rect,o=t.buttons;if(r){var a=V({},i.coords.cur.page),s=e.options.resize;if(s&&s.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||o&s.mouseButtons)){if(w.object(s.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var u in c)c[u]=Dt(u,s.edges[u],a,i._latestPointer.eventTarget,n,r,s.margin||_t.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(t.action={name:"resize",edges:c})}else{var l="y"!==s.axis&&a.x>r.right-_t.defaultMargin,h="x"!==s.axis&&a.y>r.bottom-_t.defaultMargin;(l||h)&&(t.action={name:"resize",axes:(l?"x":"")+(h?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var i=t.edges,e=t.axis,n=_t.cursors,r=null;if(e)r=n[t.name+e];else if(i){for(var o="",a=0,s=["top","bottom","left","right"];a<s.length;a++){var c=s[a];i[c]&&(o+=c)}r=n[o]}return r},filterEventType:function(t){return 0===t.search("resize")},defaultMargin:null},Ft=_t,Lt={id:"actions",install:function(t){t.usePlugin(Pt),t.usePlugin(Ft),t.usePlugin(O),t.usePlugin(Tt)}},$t=0,Bt=function(t){return At(t)},Xt=function(t){return Rt(t)},Yt=function(t){if(Rt=t.cancelAnimationFrame,!(At=t.requestAnimationFrame))for(var i=["ms","moz","webkit","o"],e=0;e<i.length;e++){var n=i[e];At=t["".concat(n,"RequestAnimationFrame")],Rt=t["".concat(n,"CancelAnimationFrame")]||t["".concat(n,"CancelRequestAnimationFrame")]}At=At&&At.bind(t),Rt=Rt&&Rt.bind(t),At||(At=function(i){var e=Date.now(),n=Math.max(0,16-(e-$t)),r=t.setTimeout((function(){i(e+n)}),n);return $t=e+n,r},Rt=function(t){return clearTimeout(t)})},Ut={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(t){Ut.isScrolling=!0,Xt(Ut.i),t.autoScroll=Ut,Ut.interaction=t,Ut.prevTime=Ut.now(),Ut.i=Bt(Ut.scroll)},stop:function(){Ut.isScrolling=!1,Ut.interaction&&(Ut.interaction.autoScroll=null),Xt(Ut.i)},scroll:function(){var t=Ut.interaction,i=t.interactable,e=t.element,n=i.options[t.prepared.name].autoScroll,r=Vt(n.container,i,e),o=Ut.now(),a=n.speed*((o-Ut.prevTime)/1e3);if(a>=1){var s={x:Ut.x*a,y:Ut.y*a};if(s.x||s.y){var c=Nt(r);w.window(r)?r.scrollBy(s.x,s.y):r&&(r.scrollLeft+=s.x,r.scrollTop+=s.y);var u=Nt(r),l={x:u.x-c.x,y:u.y-c.y};(l.x||l.y)&&i.fire({type:"autoscroll",target:e,interactable:i,delta:l,interaction:t,container:r})}Ut.prevTime=o}Ut.isScrolling&&(Xt(Ut.i),Ut.i=Bt(Ut.scroll))},check:function(t,i){var e;return null==(e=t.options[i].autoScroll)?void 0:e.enabled},onInteractionMove:function(t){var i=t.interaction,e=t.pointer;if(i.interacting()&&Ut.check(i.interactable,i.prepared.name))if(i.simulation)Ut.x=Ut.y=0;else{var n,r,o,a,s=i.interactable,c=s.options[i.prepared.name].autoScroll,u=Vt(c.container,s,i.element);if(w.window(u))a=e.clientX<Ut.margin,n=e.clientY<Ut.margin,r=e.clientX>u.innerWidth-Ut.margin,o=e.clientY>u.innerHeight-Ut.margin;else{var l=B(u);a=e.clientX<l.left+Ut.margin,n=e.clientY<l.top+Ut.margin,r=e.clientX>l.right-Ut.margin,o=e.clientY>l.bottom-Ut.margin}Ut.x=r?1:a?-1:0,Ut.y=o?1:n?-1:0,Ut.isScrolling||(Ut.margin=c.margin,Ut.speed=c.speed,Ut.start(i))}}};function Vt(t,i,e){return(w.string(t)?N(t,i,e):t)||y(e)}function Nt(t){return w.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var qt={id:"auto-scroll",install:function(t){var i=t.defaults,e=t.actions;t.autoScroll=Ut,Ut.now=function(){return t.now()},e.phaselessTypes.autoscroll=!0,i.perAction.autoScroll=Ut.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,Ut.stop(),Ut.interaction&&(Ut.interaction=null)},"interactions:stop":Ut.stop,"interactions:action-move":function(t){return Ut.onInteractionMove(t)}}},Ht=qt;function Gt(t,i){var e=!1;return function(){return e||(g.console.warn(i),e=!0),t.apply(this,arguments)}}function Kt(t,i){return t.name=i.name,t.axis=i.axis,t.edges=i.edges,t}function Wt(t){return w.bool(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function Jt(t){return w.func(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}var Qt={id:"auto-start/interactableMethods",install:function(t){var i=t.Interactable;i.prototype.getAction=function(i,e,n,r){var o=function(t,i,e,n,r){var o=t.getRect(n),a={action:null,interactable:t,interaction:e,element:n,rect:o,buttons:i.buttons||{0:1,1:4,3:8,4:16}[i.button]};return r.fire("auto-start:check",a),a.action}(this,e,n,r,t);return this.options.actionChecker?this.options.actionChecker(i,e,o,this,r,n):o},i.prototype.ignoreFrom=Gt((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),i.prototype.allowFrom=Gt((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),i.prototype.actionChecker=Jt,i.prototype.styleCursor=Wt}};function Zt(t,i,e,n,r){return i.testIgnoreAllow(i.options[t.name],e,n)&&i.options[t.name].enabled&&ni(i,e,t,r)?t:null}function ti(t,i,e,n,r,o,a){for(var s=0,c=n.length;s<c;s++){var u=n[s],l=r[s],h=u.getAction(i,e,t,l);if(h){var f=Zt(h,u,l,o,a);if(f)return{action:f,interactable:u,element:l}}}return{action:null,interactable:null,element:null}}function ii(t,i,e,n,r){var o=[],a=[],s=n;function c(t){o.push(t),a.push(s)}for(;w.element(s);){o=[],a=[],r.interactables.forEachMatch(s,c);var u=ti(t,i,e,o,a,n,r);if(u.action&&!u.interactable.options[u.action.name].manualStart)return u;s=A(s)}return{action:null,interactable:null,element:null}}function ei(t,i,e){var n=i.action,r=i.interactable,o=i.element;n=n||{name:null},t.interactable=r,t.element=o,Kt(t.prepared,n),t.rect=r&&n.name?r.getRect(o):null,ai(t,e),e.fire("autoStart:prepared",{interaction:t})}function ni(t,i,e,n){var r=t.options,o=r[e.name].max,a=r[e.name].maxPerElement,s=n.autoStart.maxInteractions,c=0,u=0,l=0;if(!(o&&a&&s))return!1;for(var h=0,f=n.interactions.list;h<f.length;h++){var v=f[h],d=v.prepared.name;if(v.interacting()){if(++c>=s)return!1;if(v.interactable===t){if((u+=d===e.name?1:0)>=o)return!1;if(v.element===i&&(l++,d===e.name&&l>=a))return!1}}}return s>0}function ri(t,i){return w.number(t)?(i.autoStart.maxInteractions=t,this):i.autoStart.maxInteractions}function oi(t,i,e){var n=e.autoStart.cursorElement;n&&n!==t&&(n.style.cursor=""),t.ownerDocument.documentElement.style.cursor=i,t.style.cursor=i,e.autoStart.cursorElement=i?t:null}function ai(t,i){var e=t.interactable,n=t.element,r=t.prepared;if("mouse"===t.pointerType&&e&&e.options.styleCursor){var o="";if(r.name){var a=e.options[r.name].cursorChecker;o=w.func(a)?a(r,e,n,t._interacting):i.actions.map[r.name].getCursor(r)}oi(t.element,o||"",i)}else i.autoStart.cursorElement&&oi(i.autoStart.cursorElement,"",i)}var si={id:"auto-start/base",before:["actions"],install:function(t){var i=t.interactStatic,e=t.defaults;t.usePlugin(Qt),e.base.actionChecker=null,e.base.styleCursor=!0,V(e.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),i.maxInteractions=function(i){return ri(i,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:ni,cursorElement:null}},listeners:{"interactions:down":function(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget;e.interacting()||ei(e,ii(e,n,r,o,i),i)},"interactions:move":function(t,i){!function(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget;"mouse"!==e.pointerType||e.pointerIsDown||e.interacting()||ei(e,ii(e,n,r,o,i),i)}(t,i),function(t,i){var e=t.interaction;if(e.pointerIsDown&&!e.interacting()&&e.pointerWasMoved&&e.prepared.name){i.fire("autoStart:before-start",t);var n=e.interactable,r=e.prepared.name;r&&n&&(n.options[r].manualStart||!ni(n,e.element,e.prepared,i)?e.stop():(e.start(e.prepared,n,e.element),ai(e,i)))}}(t,i)},"interactions:stop":function(t,i){var e=t.interaction,n=e.interactable;n&&n.options.styleCursor&&oi(e.element,"",i)}},maxInteractions:ri,withinInteractionLimit:ni,validateAction:Zt},ci=si,ui={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,i){var e=t.interaction,n=t.eventTarget,r=t.dy;if("drag"===e.prepared.name){var o=Math.abs(t.dx),a=Math.abs(r),s=e.interactable.options.drag,c=s.startAxis,u=o>a?"x":o<a?"y":"xy";if(e.prepared.axis="start"===s.lockAxis?u[0]:s.lockAxis,"xy"!==u&&"xy"!==c&&c!==u){e.prepared.name=null;for(var l=n,h=function(t){if(t!==e.interactable){var r=e.interactable.options.drag;if(!r.manualStart&&t.testIgnoreAllow(r,l,n)){var o=t.getAction(e.downPointer,e.downEvent,e,l);if(o&&"drag"===o.name&&function(t,i){if(!i)return!1;var e=i.options.drag.startAxis;return"xy"===t||"xy"===e||e===t}(u,t)&&ci.validateAction(o,t,l,n,i))return t}}};w.element(l);){var f=i.interactables.forEachMatch(l,h);if(f){e.prepared.name="drag",e.interactable=f,e.element=l;break}l=A(l)}}}}}};function li(t){var i=t.prepared&&t.prepared.name;if(!i)return null;var e=t.interactable.options;return e[i].hold||e[i].delay}var hi={id:"auto-start/hold",install:function(t){var i=t.defaults;t.usePlugin(ci),i.perAction.hold=0,i.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var i=t.interaction,e=li(i);e>0&&(i.autoStartHoldTimer=setTimeout((function(){i.start(i.prepared,i.interactable,i.element)}),e))},"interactions:move":function(t){var i=t.interaction;i.autoStartHoldTimer&&i.pointerWasMoved&&!t.duplicate&&(clearTimeout(i.autoStartHoldTimer),i.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var i=t.interaction;li(i)>0&&(i.prepared.name=null)}},getHoldDuration:li},fi=hi,vi={id:"auto-start",install:function(t){t.usePlugin(ci),t.usePlugin(fi),t.usePlugin(ui)}},di=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):w.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function pi(t){var i=t.interaction;i.interactable&&i.interactable.checkAndPreventDefault(t.event)}var gi={id:"core/interactablePreventDefault",install:function(t){var i=t.Interactable;i.prototype.preventDefault=di,i.prototype.checkAndPreventDefault=function(i){return function(t,i,e){var n=t.options.preventDefault;if("never"!==n)if("always"!==n){if(i.events.supportsPassive&&/^touch(start|move)$/.test(e.type)){var r=y(e.target).document,o=i.getDocOptions(r);if(!o||!o.events||!1!==o.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(e.type)||w.element(e.target)&&R(e.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||e.preventDefault()}else e.preventDefault()}(this,t,i)},t.interactions.docEvents.push({type:"dragstart",listener:function(i){for(var e=0,n=t.interactions.list;e<n.length;e++){var r=n[e];if(r.element&&(r.element===i.target||D(r.element,i.target)))return void r.interactable.checkAndPreventDefault(i)}}})},listeners:["down","move","up","cancel"].reduce((function(t,i){return t["interactions:".concat(i)]=pi,t}),{})};function mi(t,i){if(i.phaselessTypes[t])return!0;for(var e in i.map)if(0===t.indexOf(e)&&t.substr(e.length)in i.phases)return!0;return!1}function yi(t){var i={};for(var e in t){var n=t[e];i[e]=w.plainObject(n)?yi(n):w.array(n)?mt(n):n}return i}var bi=function(){function t(i){n(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=i,this.result=xi(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return o(t,[{key:"start",value:function(t,i){var e,n,r=t.phase,o=this.interaction,a=function(t){var i=t.interactable.options[t.prepared.name],e=i.modifiers;return e&&e.length?e:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(t){var e=i[t];return e&&e.enabled&&{options:e,methods:e._methods}})).filter((function(t){return!!t}))}(o);this.prepareStates(a),this.startEdges=V({},o.edges),this.edges=V({},this.startEdges),this.startOffset=(n=i,(e=o.rect)?{left:n.x-e.left,top:n.y-e.top,right:e.right-n.x,bottom:e.bottom-n.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var s=this.fillArg({phase:r,pageCoords:i,preEnd:!1});return this.result=xi(),this.startAll(s),this.result=this.setAll(s)}},{key:"fillArg",value:function(t){var i=this.interaction;return t.interaction=i,t.interactable=i.interactable,t.element=i.element,t.rect||(t.rect=i.rect),t.edges||(t.edges=this.startEdges),t.startOffset=this.startOffset,t}},{key:"startAll",value:function(t){for(var i=0,e=this.states;i<e.length;i++){var n=e[i];n.methods.start&&(t.state=n,n.methods.start(t))}}},{key:"setAll",value:function(t){var i=t.phase,e=t.preEnd,n=t.skipModifiers,r=t.rect,o=t.edges;t.coords=V({},t.pageCoords),t.rect=V({},r),t.edges=V({},o);for(var a=n?this.states.slice(n):this.states,s=xi(t.coords,t.rect),c=0;c<a.length;c++){var u,l=a[c],h=l.options,f=V({},t.coords),v=null;null!=(u=l.methods)&&u.set&&this.shouldDo(h,e,i)&&(t.state=l,v=l.methods.set(t),K(t.edges,t.rect,{x:t.coords.x-f.x,y:t.coords.y-f.y})),s.eventProps.push(v)}V(this.edges,t.edges),s.delta.x=t.coords.x-t.pageCoords.x,s.delta.y=t.coords.y-t.pageCoords.y,s.rectDelta.left=t.rect.left-r.left,s.rectDelta.right=t.rect.right-r.right,s.rectDelta.top=t.rect.top-r.top,s.rectDelta.bottom=t.rect.bottom-r.bottom;var d=this.result.coords,p=this.result.rect;return d&&p&&(s.changed=s.rect.left!==p.left||s.rect.right!==p.right||s.rect.top!==p.top||s.rect.bottom!==p.bottom||d.x!==s.coords.x||d.y!==s.coords.y),s}},{key:"applyToInteraction",value:function(t){var i=this.interaction,e=i.coords.cur,n=i.coords.start,r=this.result,o=this.startDelta,a=r.delta;"start"===t.phase&&V(this.startDelta,r.delta);for(var s=0,c=[[n,o],[e,a]];s<c.length;s++){var u=c[s],l=u[0],h=u[1];l.page.x+=h.x,l.page.y+=h.y,l.client.x+=h.x,l.client.y+=h.y}var f=this.result.rectDelta,v=t.rect||i.rect;v.left+=f.left,v.right+=f.right,v.top+=f.top,v.bottom+=f.bottom,v.width=v.right-v.left,v.height=v.bottom-v.top}},{key:"setAndApply",value:function(t){var i=this.interaction,e=t.skipModifiers,n=this.setAll(this.fillArg({preEnd:t.preEnd,phase:t.phase,pageCoords:t.modifiedCoords||i.coords.cur.page}));if(this.result=n,!n.changed&&(!e||e<this.states.length)&&i.interacting())return!1;if(t.modifiedCoords){var r=i.coords.cur.page,o={x:t.modifiedCoords.x-r.x,y:t.modifiedCoords.y-r.y};n.coords.x+=o.x,n.coords.y+=o.y,n.delta.x+=o.x,n.delta.y+=o.y}this.applyToInteraction(t)}},{key:"beforeEnd",value:function(t){var i=t.interaction,e=t.event,n=this.states;if(n&&n.length){for(var r=!1,o=0;o<n.length;o++){var a=n[o];t.state=a;var s=a.options,c=a.methods,u=c.beforeEnd&&c.beforeEnd(t);if(u)return this.endResult=u,!1;r=r||!r&&this.shouldDo(s,!0,t.phase,!0)}r&&i.move({event:e,preEnd:!0})}}},{key:"stop",value:function(t){var i=t.interaction;if(this.states&&this.states.length){var e=V({states:this.states,interactable:i.interactable,element:i.element,rect:null},t);this.fillArg(e);for(var n=0,r=this.states;n<r.length;n++){var o=r[n];e.state=o,o.methods.stop&&o.methods.stop(e)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(t){this.states=[];for(var i=0;i<t.length;i++){var e=t[i];this.states.push({options:e.options,methods:e.methods,index:i,name:e.name})}return this.states}},{key:"restoreInteractionCoords",value:function(t){var i=t.interaction,e=i.coords,n=i.rect,r=i.modification;if(r.result){for(var o=r.result,a=o.rectDelta,s=0,c=[[e.start,r.startDelta],[e.cur,o.delta]];s<c.length;s++){var u=c[s],l=u[0],h=u[1];l.page.x-=h.x,l.page.y-=h.y,l.client.x-=h.x,l.client.y-=h.y}n.left-=a.left,n.right-=a.right,n.top-=a.top,n.bottom-=a.bottom}}},{key:"shouldDo",value:function(t,i,e,n){return!(!t||!1===t.enabled||n&&!t.endOnly||t.endOnly&&!i||"start"===e&&!t.setStart)}},{key:"copyFrom",value:function(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.startEdges=t.startEdges,this.edges=t.edges,this.states=t.states.map((function(t){return yi(t)})),this.result=xi(V({},t.result.coords),V({},t.result.rect))}},{key:"destroy",value:function(){for(var t in this)this[t]=null}}]),t}();function xi(t,i){return{rect:i,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function wi(t,i){var e=t.defaults,n={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},r=function(t){var r=t||{};for(var o in r.enabled=!1!==r.enabled,e)o in r||(r[o]=e[o]);var a={options:r,methods:n,name:i,enable:function(){return r.enabled=!0,a},disable:function(){return r.enabled=!1,a}};return a};return i&&"string"==typeof i&&(r._defaults=e,r._methods=n),r}function ki(t){var i=t.interaction.modification.result;i&&(t.iEvent.modifiers=i.eventProps)}var zi={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var i=t.interaction;i.modification=new bi(i)},"interactions:before-action-start":function(t){var i=t.interaction,e=t.interaction.modification;e.start(t,i.coords.start.page),i.edges=e.edges,e.applyToInteraction(t)},"interactions:before-action-move":function(t){var i=t.interaction,e=i.modification,n=e.setAndApply(t);return i.edges=e.edges,n},"interactions:before-action-end":function(t){var i=t.interaction,e=i.modification,n=e.beforeEnd(t);return i.edges=e.startEdges,n},"interactions:action-start":ki,"interactions:action-move":ki,"interactions:action-end":ki,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},Mi=zi,Ei={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Oi=function(t){s(e,t);var i=h(e);function e(t,r,o,a,s,c,u){var h;n(this,e),(h=i.call(this,t)).relatedTarget=null,h.screenX=void 0,h.screenY=void 0,h.button=void 0,h.buttons=void 0,h.ctrlKey=void 0,h.shiftKey=void 0,h.altKey=void 0,h.metaKey=void 0,h.page=void 0,h.client=void 0,h.delta=void 0,h.rect=void 0,h.x0=void 0,h.y0=void 0,h.t0=void 0,h.dt=void 0,h.duration=void 0,h.clientX0=void 0,h.clientY0=void 0,h.velocity=void 0,h.speed=void 0,h.swipe=void 0,h.axes=void 0,h.preEnd=void 0;var f=t.interactable,v=(f&&f.options||Ei).deltaSource,d=W(f,s=s||t.element,o),p="start"===a,g="end"===a,m=p?l(h):t.prevEvent,y=p?t.coords.start:g?{page:m.page,client:m.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;return h.page=V({},y.page),h.client=V({},y.client),h.rect=V({},t.rect),h.timeStamp=y.timeStamp,g||(h.page.x-=d.x,h.page.y-=d.y,h.client.x-=d.x,h.client.y-=d.y),h.ctrlKey=r.ctrlKey,h.altKey=r.altKey,h.shiftKey=r.shiftKey,h.metaKey=r.metaKey,h.button=r.button,h.buttons=r.buttons,h.target=s,h.currentTarget=s,h.preEnd=c,h.type=u||o+(a||""),h.interactable=f,h.t0=p?t.pointers[t.pointers.length-1].downTime:m.t0,h.x0=t.coords.start.page.x-d.x,h.y0=t.coords.start.page.y-d.y,h.clientX0=t.coords.start.client.x-d.x,h.clientY0=t.coords.start.client.y-d.y,h.delta=p||g?{x:0,y:0}:{x:h[v].x-m[v].x,y:h[v].y-m[v].y},h.dt=t.coords.delta.timeStamp,h.duration=h.timeStamp-h.t0,h.velocity=V({},t.coords.velocity[v]),h.speed=Z(h.velocity.x,h.velocity.y),h.swipe=g||"inertiastart"===a?h.getSwipe():null,h}return o(e,[{key:"getSwipe",value:function(){var t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;var i=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;i<0&&(i+=360);var e=112.5<=i&&i<247.5,n=202.5<=i&&i<337.5;return{up:n,down:!n&&22.5<=i&&i<157.5,left:e,right:!e&&(292.5<=i||i<67.5),angle:i,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),e}(pt);Object.defineProperties(Oi.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var Si=o((function t(i,e,r,o,a){n(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=i,this.pointer=e,this.event=r,this.downTime=o,this.downTarget=a})),Ti=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),ji=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),Ii=0,Pi=function(){function t(i){var e=this,r=i.pointerType,o=i.scopeFire;n(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=Gt((function(t){this.move(t)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Ii++,this._scopeFire=o,this.pointerType=r;var a=this;this._proxy={};var s=function(t){Object.defineProperty(e._proxy,t,{get:function(){return a[t]}})};for(var c in Ti)s(c);var u=function(t){Object.defineProperty(e._proxy,t,{value:function(){return a[t].apply(a,arguments)}})};for(var l in ji)u(l);this._scopeFire("interactions:new",{interaction:this})}return o(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(t,i,e){var n=this.updatePointer(t,i,e,!0);this._scopeFire("interactions:down",{pointer:t,event:i,eventTarget:e,pointerIndex:n,pointerInfo:this.pointers[n],type:"down",interaction:this})}},{key:"start",value:function(t,i,e){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!i.options[t.name].enabled)&&(Kt(this.prepared,t),this.interactable=i,this.element=e,this.rect=i.getRect(e),this.edges=this.prepared.edges?V({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(t,i,e){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,i,e,!1);var n,r,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(this.pointerWasMoved=Z(n=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y)>this.pointerMoveTolerance);var a,s,c,u=this.getPointerIndex(t),l={pointer:t,pointerIndex:u,pointerInfo:this.pointers[u],event:i,type:"move",eventTarget:e,dx:n,dy:r,duplicate:o,interaction:this};o||(a=this.coords.velocity,s=this.coords.delta,c=Math.max(s.timeStamp/1e3,.001),a.page.x=s.page.x/c,a.page.y=s.page.y/c,a.client.x=s.client.x/c,a.client.y=s.client.y/c,a.timeStamp=c),this._scopeFire("interactions:move",l),o||this.simulation||(this.interacting()&&(l.type=null,this.move(l)),this.pointerWasMoved&&et(this.coords.prev,this.coords.cur))}},{key:"move",value:function(t){t&&t.event||nt(this.coords.delta),(t=V({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}},{key:"pointerUp",value:function(t,i,e,n){var r=this.getPointerIndex(t);-1===r&&(r=this.updatePointer(t,i,e,!1));var o=/cancel$/i.test(i.type)?"cancel":"up";this._scopeFire("interactions:".concat(o),{pointer:t,pointerIndex:r,pointerInfo:this.pointers[r],event:i,eventTarget:e,type:o,curEventTarget:n,interaction:this}),this.simulation||this.end(i),this.removePointer(t,i)}},{key:"documentBlur",value:function(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}},{key:"end",value:function(t){var i;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(i=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===i&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(t){var i=st(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:yt(this.pointers,(function(t){return t.id===i}))}},{key:"getPointerInfo",value:function(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function(t,i,e,n){var r,o,a,s=st(t),c=this.getPointerIndex(t),u=this.pointers[c];return n=!1!==n&&(n||/(down|start)$/i.test(i.type)),u?u.pointer=t:(u=new Si(s,t,i,null,null),c=this.pointers.length,this.pointers.push(u)),function(t,i,e){var n=i.length>1?ut(i):i[0];at(n,t.page),function(t,i){i=i||{},P.isOperaMobile&&rt(t)?ot("screen",t,i):ot("client",t,i)}(n,t.client),t.timeStamp=e}(this.coords.cur,this.pointers.map((function(t){return t.pointer})),this._now()),(r=this.coords.delta).page.x=(a=this.coords.cur).page.x-(o=this.coords.prev).page.x,r.page.y=a.page.y-o.page.y,r.client.x=a.client.x-o.client.x,r.client.y=a.client.y-o.client.y,r.timeStamp=a.timeStamp-o.timeStamp,n&&(this.pointerIsDown=!0,u.downTime=this.coords.cur.timeStamp,u.downTarget=e,it(this.downPointer,t),this.interacting()||(et(this.coords.start,this.coords.cur),et(this.coords.prev,this.coords.cur),this.downEvent=i,this.pointerWasMoved=!1)),this._updateLatestPointer(t,i,e),this._scopeFire("interactions:update-pointer",{pointer:t,event:i,eventTarget:e,down:n,pointerInfo:u,pointerIndex:c,interaction:this}),c}},{key:"removePointer",value:function(t,i){var e=this.getPointerIndex(t);-1!==e&&(this._scopeFire("interactions:remove-pointer",{pointer:t,event:i,eventTarget:null,pointerIndex:e,pointerInfo:this.pointers[e],interaction:this}),this.pointers.splice(e,1),this.pointerIsDown=!1)}},{key:"_updateLatestPointer",value:function(t,i,e){this._latestPointer.pointer=t,this._latestPointer.event=i,this._latestPointer.eventTarget=e}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(t,i,e,n){return new Oi(this,t,this.prepared.name,i,this.element,e,n)}},{key:"_fireEvent",value:function(t){var i;null==(i=this.interactable)||i.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}},{key:"_doPhase",value:function(t){var i=t.event,e=t.phase,n=t.preEnd,r=t.type,o=this.rect;if(o&&"move"===e&&(K(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-".concat(e),t))return!1;var a=t.iEvent=this._createPreparedEvent(i,e,n,r);return this._scopeFire("interactions:action-".concat(e),t),"start"===e&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-".concat(e),t),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Di(t){Ci(t.interaction)}function Ci(t){if(!function(t){return!(!t.offset.pending.x&&!t.offset.pending.y)}(t))return!1;var i=t.offset.pending;return Ri(t.coords.cur,i),Ri(t.coords.delta,i),K(t.edges,t.rect,i),i.x=0,i.y=0,!0}function Ai(t){var i=t.x,e=t.y;this.offset.pending.x+=i,this.offset.pending.y+=e,this.offset.total.x+=i,this.offset.total.y+=e}function Ri(t,i){var e=t.page,n=t.client,r=i.x,o=i.y;e.x+=r,e.y+=o,n.x+=r,n.y+=o}ji.offsetBy="";var _i={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Ai},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(t){t.pointerIsDown&&(Ri(t.coords.cur,t.offset.total),t.offset.pending.x=0,t.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Di,"interactions:before-action-move":Di,"interactions:before-action-end":function(t){var i=t.interaction;if(Ci(i))return i.move({offset:!0}),i.end(),!1},"interactions:stop":function(t){var i=t.interaction;i.offset.total.x=0,i.offset.total.y=0,i.offset.pending.x=0,i.offset.pending.y=0}}},Fi=_i,Li=function(){function t(i){n(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=i}return o(t,[{key:"start",value:function(t){var i=this.interaction,e=$i(i);if(!e||!e.enabled)return!1;var n=i.coords.velocity.client,r=Z(n.x,n.y),o=this.modification||(this.modification=new bi(i));if(o.copyFrom(i.modification),this.t0=i._now(),this.allowResume=e.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=i.coords.cur.page,this.modifierArg=o.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-i.coords.cur.timeStamp<50&&r>e.minSpeed&&r>e.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return i.modification.result.rect=null,i.offsetBy(this.targetOffset),i._doPhase({interaction:i,event:t,phase:"inertiastart"}),i.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),i.modification.result.rect=null,this.active=!0,i.simulation=this,!0}},{key:"startInertia",value:function(){var t=this,i=this.interaction.coords.velocity.client,e=$i(this.interaction),n=e.resistance,r=-Math.log(e.endSpeed/this.v0)/n;this.targetOffset={x:(i.x-r)/n,y:(i.y-r)/n},this.te=r,this.lambda_v0=n/this.v0,this.one_ve_v0=1-e.endSpeed/this.v0;var o=this.modification,a=this.modifierArg;a.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(a),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame((function(){return t.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var t=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return t.smoothEndTick()}))}},{key:"onNextFrame",value:function(t){var i=this;this.timeout=Bt((function(){i.active&&t()}))}},{key:"inertiaTick",value:function(){var t,i,e,n=this,r=this.interaction,o=$i(r).resistance,a=(r._now()-this.t0)/1e3;if(a<this.te){var s,c=1-(Math.exp(-o*a)-this.lambda_v0)/this.one_ve_v0;this.isModified?(t=this.targetOffset.y,i=this.modifiedOffset.y,s={x:Xi(e=c,0,this.targetOffset.x,this.modifiedOffset.x),y:Xi(e,0,t,i)}):s={x:this.targetOffset.x*c,y:this.targetOffset.y*c};var u={x:s.x-this.currentOffset.x,y:s.y-this.currentOffset.y};this.currentOffset.x+=u.x,this.currentOffset.y+=u.y,r.offsetBy(u),r.move(),this.onNextFrame((function(){return n.inertiaTick()}))}else r.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var t=this,i=this.interaction,e=i._now()-this.t0,n=$i(i).smoothEndDuration;if(e<n){var r={x:Yi(e,0,this.targetOffset.x,n),y:Yi(e,0,this.targetOffset.y,n)},o={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=o.x,this.currentOffset.y+=o.y,i.offsetBy(o),i.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return t.smoothEndTick()}))}else i.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(t){var i=t.pointer,e=t.event,n=t.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(i,e,n,!0),r._doPhase({interaction:r,event:e,phase:"resume"}),et(r.coords.prev,r.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Xt(this.timeout)}}]),t}();function $i(t){var i=t.interactable,e=t.prepared;return i&&i.options&&e.name&&i.options[e.name].inertia}var Bi={id:"inertia",before:["modifiers","actions"],install:function(t){var i=t.defaults;t.usePlugin(Fi),t.usePlugin(Mi),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,i.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var i=t.interaction;i.inertia=new Li(i)},"interactions:before-action-end":function(t){var i=t.interaction;return(!i._interacting||i.simulation||!i.inertia.start(t.event))&&null},"interactions:down":function(t){var i=t.interaction,e=i.inertia;if(e.active)for(var n=t.eventTarget;w.element(n);){if(n===i.element){e.resume(t);break}n=A(n)}},"interactions:stop":function(t){var i=t.interaction.inertia;i.active&&i.stop()},"interactions:before-action-resume":function(t){var i=t.interaction.modification;i.stop(t),i.start(t,t.interaction.coords.cur.page),i.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":ki,"interactions:action-inertiastart":ki,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function Xi(t,i,e,n){var r=1-t;return r*r*i+2*r*t*e+t*t*n}function Yi(t,i,e,n){return-e*(t/=n)*(t-2)+i}var Ui=Bi;function Vi(t,i){for(var e=0;e<i.length;e++){var n=i[e];if(t.immediatePropagationStopped)break;n(t)}}var Ni=function(){function t(i){n(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=V({},i||{})}return o(t,[{key:"fire",value:function(t){var i,e=this.global;(i=this.types[t.type])&&Vi(t,i),!t.propagationStopped&&e&&(i=e[t.type])&&Vi(t,i)}},{key:"on",value:function(t,i){var e=J(t,i);for(t in e)this.types[t]=gt(this.types[t]||[],e[t])}},{key:"off",value:function(t,i){var e=J(t,i);for(t in e){var n=this.types[t];if(n&&n.length)for(var r=0,o=e[t];r<o.length;r++){var a=n.indexOf(o[r]);-1!==a&&n.splice(a,1)}}}},{key:"getRect",value:function(){return null}}]),t}(),qi=function(){function t(i){n(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,it(this,i)}return o(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function Hi(t){return w.object(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function Gi(t,i){return t===i||("boolean"==typeof t?!!i.capture===t&&0==!!i.passive:!!t.capture==!!i.capture&&!!t.passive==!!i.passive)}var Ki={id:"events",install:function(t){var i,e=[],n={},r=[],o={add:a,remove:s,addDelegate:function(t,i,e,o,s){var l=Hi(s);if(!n[e]){n[e]=[];for(var h=0;h<r.length;h++){var f=r[h];a(f,e,c),a(f,e,u,!0)}}var v=n[e],d=bt(v,(function(e){return e.selector===t&&e.context===i}));d||v.push(d={selector:t,context:i,listeners:[]}),d.listeners.push({func:o,options:l})},removeDelegate:function(t,i,e,r,o){var a,l=Hi(o),h=n[e],f=!1;if(h)for(a=h.length-1;a>=0;a--){var v=h[a];if(v.selector===t&&v.context===i){for(var d=v.listeners,p=d.length-1;p>=0;p--){var g=d[p];if(g.func===r&&Gi(g.options,l)){d.splice(p,1),d.length||(h.splice(a,1),s(i,e,c),s(i,e,u,!0)),f=!0;break}}if(f)break}}},delegateListener:c,delegateUseCapture:u,delegatedEvents:n,documents:r,targets:e,supportsOptions:!1,supportsPassive:!1};function a(t,i,n,r){if(t.addEventListener){var a=Hi(r),s=bt(e,(function(i){return i.eventTarget===t}));s||e.push(s={eventTarget:t,events:{}}),s.events[i]||(s.events[i]=[]),bt(s.events[i],(function(t){return t.func===n&&Gi(t.options,a)}))||(t.addEventListener(i,n,o.supportsOptions?a:a.capture),s.events[i].push({func:n,options:a}))}}function s(t,i,n,r){if(t.addEventListener&&t.removeEventListener){var a=yt(e,(function(i){return i.eventTarget===t})),c=e[a];if(c&&c.events)if("all"!==i){var u=!1,l=c.events[i];if(l){if("all"===n){for(var h=l.length-1;h>=0;h--){var f=l[h];s(t,i,f.func,f.options)}return}for(var v=Hi(r),d=0;d<l.length;d++){var p=l[d];if(p.func===n&&Gi(p.options,v)){t.removeEventListener(i,n,o.supportsOptions?v:v.capture),l.splice(d,1),0===l.length&&(delete c.events[i],u=!0);break}}}u&&!Object.keys(c.events).length&&e.splice(a,1)}else for(i in c.events)c.events.hasOwnProperty(i)&&s(t,i,"all")}}function c(t,i){for(var e=Hi(i),r=new qi(t),o=n[t.type],a=dt(t)[0],s=a;w.element(s);){for(var c=0;c<o.length;c++){var u=o[c],l=u.context;if(R(s,u.selector)&&D(l,a)&&D(l,s)){var h=u.listeners;r.currentTarget=s;for(var f=0;f<h.length;f++){var v=h[f];Gi(v.options,e)&&v.func(r)}}}s=A(s)}}function u(t){return c(t,!0)}return null==(i=t.document)||i.createElement("div").addEventListener("test",null,{get capture(){return o.supportsOptions=!0},get passive(){return o.supportsPassive=!0}}),t.events=o,o}},Wi={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var i=0,e=Wi.methodOrder;i<e.length;i++){var n=Wi[e[i]](t);if(n)return n}return null},simulationResume:function(t){var i=t.pointerType,e=t.eventTarget,n=t.scope;if(!/down|start/i.test(t.eventType))return null;for(var r=0,o=n.interactions.list;r<o.length;r++){var a=o[r],s=e;if(a.simulation&&a.simulation.allowResume&&a.pointerType===i)for(;s;){if(s===a.element)return a;s=A(s)}}return null},mouseOrPen:function(t){var i,e=t.pointerId,n=t.pointerType,r=t.eventType,o=t.scope;if("mouse"!==n&&"pen"!==n)return null;for(var a=0,s=o.interactions.list;a<s.length;a++){var c=s[a];if(c.pointerType===n){if(c.simulation&&!Ji(c,e))continue;if(c.interacting())return c;i||(i=c)}}if(i)return i;for(var u=0,l=o.interactions.list;u<l.length;u++){var h=l[u];if(!(h.pointerType!==n||/down/i.test(r)&&h.simulation))return h}return null},hasPointer:function(t){for(var i=t.pointerId,e=0,n=t.scope.interactions.list;e<n.length;e++){var r=n[e];if(Ji(r,i))return r}return null},idle:function(t){for(var i=t.pointerType,e=0,n=t.scope.interactions.list;e<n.length;e++){var r=n[e];if(1===r.pointers.length){var o=r.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&i===r.pointerType)return r}return null}};function Ji(t,i){return t.pointers.some((function(t){return t.id===i}))}var Qi=Wi,Zi=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function te(t,i){return function(e){var n=i.interactions.list,r=vt(e),o=dt(e),a=o[0],s=o[1],c=[];if(/^touch/.test(e.type)){i.prevTouchTime=i.now();for(var u=0,l=e.changedTouches;u<l.length;u++){var h=l[u],f={pointer:h,pointerId:st(h),pointerType:r,eventType:e.type,eventTarget:a,curEventTarget:s,scope:i},v=ie(f);c.push([f.pointer,f.eventTarget,f.curEventTarget,v])}}else{var d=!1;if(!P.supportsPointerEvent&&/mouse/.test(e.type)){for(var p=0;p<n.length&&!d;p++)d="mouse"!==n[p].pointerType&&n[p].pointerIsDown;d=d||i.now()-i.prevTouchTime<500||0===e.timeStamp}if(!d){var g={pointer:e,pointerId:st(e),pointerType:r,eventType:e.type,curEventTarget:s,eventTarget:a,scope:i},m=ie(g);c.push([g.pointer,g.eventTarget,g.curEventTarget,m])}}for(var y=0;y<c.length;y++){var b=c[y];b[3][t](b[0],e,b[1],b[2])}}}function ie(t){var i=t.pointerType,e=t.scope,n={interaction:Qi.search(t),searchDetails:t};return e.fire("interactions:find",n),n.interaction||e.interactions.new({pointerType:i})}function ee(t,i){var e=t.doc,n=t.scope,r=t.options,o=n.interactions.docEvents,a=n.events,s=a[i];for(var c in n.browser.isIOS&&!r.events&&(r.events={passive:!1}),a.delegatedEvents)s(e,c,a.delegateListener),s(e,c,a.delegateUseCapture,!0);for(var u=r&&r.events,l=0;l<o.length;l++){var h=o[l];s(e,h.type,h.listener,u)}}var ne={id:"core/interactions",install:function(t){for(var i={},e=0;e<Zi.length;e++){var r=Zi[e];i[r]=te(r,t)}var a,c=P.pEventTypes;function u(){for(var i=0,e=t.interactions.list;i<e.length;i++){var n=e[i];if(n.pointerIsDown&&"touch"===n.pointerType&&!n._interacting)for(var r=function(){var i=a[o];t.documents.some((function(t){return D(t.doc,i.downTarget)}))||n.removePointer(i.pointer,i.event)},o=0,a=n.pointers;o<a.length;o++)r()}}(a=j.PointerEvent?[{type:c.down,listener:u},{type:c.down,listener:i.pointerDown},{type:c.move,listener:i.pointerMove},{type:c.up,listener:i.pointerUp},{type:c.cancel,listener:i.pointerUp}]:[{type:"mousedown",listener:i.pointerDown},{type:"mousemove",listener:i.pointerMove},{type:"mouseup",listener:i.pointerUp},{type:"touchstart",listener:u},{type:"touchstart",listener:i.pointerDown},{type:"touchmove",listener:i.pointerMove},{type:"touchend",listener:i.pointerUp},{type:"touchcancel",listener:i.pointerUp}]).push({type:"blur",listener:function(i){for(var e=0,n=t.interactions.list;e<n.length;e++)n[e].documentBlur(i)}}),t.prevTouchTime=0,t.Interaction=function(i){s(r,i);var e=h(r);function r(){return n(this,r),e.apply(this,arguments)}return o(r,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(i){t.interactions.pointerMoveTolerance=i}},{key:"_now",value:function(){return t.now()}}]),r}(Pi),t.interactions={list:[],new:function(i){i.scopeFire=function(i,e){return t.fire(i,e)};var e=new t.Interaction(i);return t.interactions.list.push(e),e},listeners:i,docEvents:a,pointerMoveTolerance:1},t.usePlugin(gi)},listeners:{"scope:add-document":function(t){return ee(t,"add")},"scope:remove-document":function(t){return ee(t,"remove")},"interactable:unset":function(t,i){for(var e=t.interactable,n=i.interactions.list.length-1;n>=0;n--){var r=i.interactions.list[n];r.interactable===e&&(r.stop(),i.fire("interactions:destroy",{interaction:r}),r.destroy(),i.interactions.list.length>2&&i.interactions.list.splice(n,1))}}},onDocSignal:ee,doOnInteractions:te,methodNames:Zi},re=ne,oe=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(oe||{}),ae=function(){function t(i,e,r,o){n(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Ni,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=e.actions,this.target=i,this._context=e.context||r,this._win=y(U(i)?this._context:i),this._doc=this._win.document,this._scopeEvents=o,this.set(e)}return o(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(t,i){return w.func(i.onstart)&&this.on("".concat(t,"start"),i.onstart),w.func(i.onmove)&&this.on("".concat(t,"move"),i.onmove),w.func(i.onend)&&this.on("".concat(t,"end"),i.onend),w.func(i.oninertiastart)&&this.on("".concat(t,"inertiastart"),i.oninertiastart),this}},{key:"updatePerActionListeners",value:function(t,i,e){var n,r=this,o=null==(n=this._actions.map[t])?void 0:n.filterEventType,a=function(t){return(null==o||o(t))&&mi(t,r._actions)};(w.array(i)||w.object(i))&&this._onOff(oe.Off,t,i,void 0,a),(w.array(e)||w.object(e))&&this._onOff(oe.On,t,e,void 0,a)}},{key:"setPerAction",value:function(t,i){var e=this._defaults;for(var n in i){var r=n,o=this.options[t],a=i[r];"listeners"===r&&this.updatePerActionListeners(t,o.listeners,a),w.array(a)?o[r]=mt(a):w.plainObject(a)?(o[r]=V(o[r]||{},yi(a)),w.object(e.perAction[r])&&"enabled"in e.perAction[r]&&(o[r].enabled=!1!==a.enabled)):w.bool(a)&&w.object(e.perAction[r])?o[r].enabled=a:o[r]=a}}},{key:"getRect",value:function(t){return t=t||(w.element(this.target)?this.target:null),w.string(this.target)&&(t=t||this._context.querySelector(this.target)),X(t)}},{key:"rectChecker",value:function(t){var i=this;return w.func(t)?(this.getRect=function(e){var n=V({},t.apply(i,e));return"width"in n||(n.width=n.right-n.left,n.height=n.bottom-n.top),n},this):null===t?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(t,i){if(U(i)||w.object(i)){for(var e in this.options[t]=i,this._actions.map)this.options[e][t]=i;return this}return this.options[t]}},{key:"origin",value:function(t){return this._backCompatOption("origin",t)}},{key:"deltaSource",value:function(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var t=this.target;return w.string(t)?Array.from(this._context.querySelectorAll(t)):w.func(t)&&t.getAllElements?t.getAllElements():w.element(t)?[t]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(t){return this._context===t.ownerDocument||D(this._context,t)}},{key:"testIgnoreAllow",value:function(t,i,e){return!this.testIgnore(t.ignoreFrom,i,e)&&this.testAllow(t.allowFrom,i,e)}},{key:"testAllow",value:function(t,i,e){return!t||!!w.element(e)&&(w.string(t)?L(e,t,i):!!w.element(t)&&D(t,e))}},{key:"testIgnore",value:function(t,i,e){return!(!t||!w.element(e))&&(w.string(t)?L(e,t,i):!!w.element(t)&&D(t,e))}},{key:"fire",value:function(t){return this.events.fire(t),this}},{key:"_onOff",value:function(t,i,e,n,r){w.object(i)&&!w.array(i)&&(n=e,e=null);var o=J(i,e,r);for(var a in o){"wheel"===a&&(a=P.wheelEvent);for(var s=0,c=o[a];s<c.length;s++){var u=c[s];mi(a,this._actions)?this.events[t===oe.On?"on":"off"](a,u):w.string(this.target)?this._scopeEvents[t===oe.On?"addDelegate":"removeDelegate"](this.target,this._context,a,u,n):this._scopeEvents[t===oe.On?"add":"remove"](this.target,a,u,n)}}return this}},{key:"on",value:function(t,i,e){return this._onOff(oe.On,t,i,e)}},{key:"off",value:function(t,i,e){return this._onOff(oe.Off,t,i,e)}},{key:"set",value:function(t){var i=this._defaults;for(var e in w.object(t)||(t={}),this.options=yi(i.base),this._actions.methodDict){var n=e,r=this._actions.methodDict[n];this.options[n]={},this.setPerAction(n,V(V({},i.perAction),i.actions[n])),this[r](t[n])}for(var o in t)"getRect"!==o?w.func(this[o])&&this[o](t[o]):this.rectChecker(t.getRect);return this}},{key:"unset",value:function(){if(w.string(this.target))for(var t in this._scopeEvents.delegatedEvents)for(var i=this._scopeEvents.delegatedEvents[t],e=i.length-1;e>=0;e--){var n=i[e],r=n.listeners;n.selector===this.target&&n.context===this._context&&i.splice(e,1);for(var o=r.length-1;o>=0;o--)this._scopeEvents.removeDelegate(this.target,this._context,t,r[o][0],r[o][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),se=function(){function t(i){var e=this;n(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=i,i.addListeners({"interactable:unset":function(t){var i=t.interactable,n=i.target,r=w.string(n)?e.selectorMap[n]:n[e.scope.id],o=yt(r,(function(t){return t===i}));r.splice(o,1)}})}return o(t,[{key:"new",value:function(t,i){i=V(i||{},{actions:this.scope.actions});var e=new this.scope.Interactable(t,i,this.scope.document,this.scope.events);return this.scope.addDocument(e._doc),this.list.push(e),w.string(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(e)):(e.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(e)),this.scope.fire("interactable:new",{target:t,options:i,interactable:e,win:this.scope._win}),e}},{key:"getExisting",value:function(t,i){var e=i&&i.context||this.scope.document,n=w.string(t),r=n?this.selectorMap[t]:t[this.scope.id];if(r)return bt(r,(function(i){return i._context===e&&(n||i.inContext(t))}))}},{key:"forEachMatch",value:function(t,i){for(var e=0,n=this.list;e<n.length;e++){var r=n[e],o=void 0;if((w.string(r.target)?w.element(t)&&R(t,r.target):t===r.target)&&r.inContext(t)&&(o=i(r)),void 0!==o)return o}}}]),t}(),ce=function(){function t(){var i=this;n(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=P,this.defaults=yi(Ei),this.Eventable=Ni,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(t){var i=function i(e,n){var r=t.interactables.getExisting(e,n);return r||((r=t.interactables.new(e,n)).events.global=i.globalEvents),r};return i.getPointerAverage=ut,i.getTouchBBox=lt,i.getTouchDistance=ht,i.getTouchAngle=ft,i.getElementRect=X,i.getElementClientRect=B,i.matchesSelector=R,i.closest=C,i.globalEvents={},i.version="1.10.27",i.scope=t,i.use=function(t,i){return this.scope.usePlugin(t,i),this},i.isSet=function(t,i){return!!this.scope.interactables.get(t,i&&i.context)},i.on=Gt((function(t,i,e){if(w.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),w.array(t)){for(var n=0,r=t;n<r.length;n++)this.on(r[n],i,e);return this}if(w.object(t)){for(var o in t)this.on(o,t[o],i);return this}return mi(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(i):this.globalEvents[t]=[i]:this.scope.events.add(this.scope.document,t,i,{options:e}),this}),"The interact.on() method is being deprecated"),i.off=Gt((function(t,i,e){if(w.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),w.array(t)){for(var n=0,r=t;n<r.length;n++)this.off(r[n],i,e);return this}if(w.object(t)){for(var o in t)this.off(o,t[o],i);return this}var a;return mi(t,this.scope.actions)?t in this.globalEvents&&-1!==(a=this.globalEvents[t].indexOf(i))&&this.globalEvents[t].splice(a,1):this.scope.events.remove(this.scope.document,t,i,e),this}),"The interact.off() method is being deprecated"),i.debug=function(){return this.scope},i.supportsTouch=function(){return P.supportsTouch},i.supportsPointerEvent=function(){return P.supportsPointerEvent},i.stop=function(){for(var t=0,i=this.scope.interactions.list;t<i.length;t++)i[t].stop();return this},i.pointerMoveTolerance=function(t){return w.number(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},i.addDocument=function(t,i){this.scope.addDocument(t,i)},i.removeDocument=function(t){this.scope.removeDocument(t)},i}(this),this.InteractEvent=Oi,this.Interactable=void 0,this.interactables=new se(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(t){return i.removeDocument(t.target)};var e=this;this.Interactable=function(t){s(r,t);var i=h(r);function r(){return n(this,r),i.apply(this,arguments)}return o(r,[{key:"_defaults",get:function(){return e.defaults}},{key:"set",value:function(t){return f(c(r.prototype),"set",this).call(this,t),e.fire("interactable:set",{options:t,interactable:this}),this}},{key:"unset",value:function(){f(c(r.prototype),"unset",this).call(this);var t=e.interactables.list.indexOf(this);t<0||(e.interactables.list.splice(t,1),e.fire("interactable:unset",{interactable:this}))}}]),r}(ae)}return o(t,[{key:"addListeners",value:function(t,i){this.listenerMaps.push({id:i,map:t})}},{key:"fire",value:function(t,i){for(var e=0,n=this.listenerMaps;e<n.length;e++){var r=n[e].map[t];if(r&&!1===r(i,this,t))return!1}}},{key:"init",value:function(t){return this.isInitialized?this:function(t,i){return t.isInitialized=!0,w.window(i)&&m(i),j.init(i),P.init(i),Yt(i),t.window=i,t.document=i.document,t.usePlugin(re),t.usePlugin(Ki),t}(this,t)}},{key:"pluginIsInstalled",value:function(t){var i=t.id;return i?!!this._plugins.map[i]:-1!==this._plugins.list.indexOf(t)}},{key:"usePlugin",value:function(t,i){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,i),t.listeners&&t.before){for(var e=0,n=this.listenerMaps.length,r=t.before.reduce((function(t,i){return t[i]=!0,t[ue(i)]=!0,t}),{});e<n;e++){var o=this.listenerMaps[e].id;if(o&&(r[o]||r[ue(o)]))break}this.listenerMaps.splice(e,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}},{key:"addDocument",value:function(t,i){if(-1!==this.getDocIndex(t))return!1;var e=y(t);i=i?V({},i):{},this.documents.push({doc:t,options:i}),this.events.documents.push(t),t!==this.document&&this.events.add(e,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:e,scope:this,options:i})}},{key:"removeDocument",value:function(t){var i=this.getDocIndex(t),e=y(t),n=this.documents[i].options;this.events.remove(e,"unload",this.onWindowUnload),this.documents.splice(i,1),this.events.documents.splice(i,1),this.fire("scope:remove-document",{doc:t,window:e,scope:this,options:n})}},{key:"getDocIndex",value:function(t){for(var i=0;i<this.documents.length;i++)if(this.documents[i].doc===t)return i;return-1}},{key:"getDocOptions",value:function(t){var i=this.getDocIndex(t);return-1===i?null:this.documents[i].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}();function ue(t){return t&&t.replace(/\/.*$/,"")}var le=new ce,he=le.interactStatic,fe="undefined"!=typeof globalThis?globalThis:window;le.init(fe);var ve=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var i=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(i){return i[0]in t||i[1]in t})),e=function(e,n){for(var r=t.limits,o=void 0===r?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:r,a=t.offset,s=void 0===a?{x:0,y:0}:a,c={range:t.range,grid:t,x:null,y:null},u=0;u<i.length;u++){var l=i[u],h=l[0],f=l[1],v=Math.round((e-s.x)/t[h]),d=Math.round((n-s.y)/t[f]);c[h]=Math.max(o.left,Math.min(o.right,v*t[h]+s.x)),c[f]=Math.max(o.top,Math.min(o.bottom,d*t[f]+s.y))}return c};return e.grid=t,e.coordFields=i,e}}),de={id:"snappers",install:function(t){var i=t.interactStatic;i.snappers=V(i.snappers||{},ve),i.createSnapGrid=i.snappers.grid}},pe=de,ge={start:function(t){var e=t.state,n=t.rect,r=t.edges,o=e.options,a=o.ratio,s=o.enabled,c=e.options,u=c.equalDelta,l=c.modifiers;"preserve"===a&&(a=n.width/n.height),e.startCoords=V({},t.pageCoords),e.startRect=V({},n),e.ratio=a,e.equalDelta=u;var h=e.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(e.xIsPrimaryAxis=!(!r.left&&!r.right),e.equalDelta){var f=(h.left?1:-1)*(h.top?1:-1);e.edgeSign={x:f,y:f}}else e.edgeSign={x:h.left?-1:1,y:h.top?-1:1};if(!1!==s&&V(r,h),null!=l&&l.length){var v=new bi(t.interaction);v.copyFrom(t.interaction.modification),v.prepareStates(l),e.subModification=v,v.startAll(i({},t))}},set:function(t){var e=t.state,n=t.rect,r=t.coords,o=e.linkedEdges,a=V({},r),s=e.equalDelta?me:ye;if(V(t.edges,o),s(e,e.xIsPrimaryAxis,r,n),!e.subModification)return null;var c=V({},n);K(o,c,{x:r.x-a.x,y:r.y-a.y});var u=e.subModification.setAll(i(i({},t),{},{rect:c,edges:o,pageCoords:r,prevCoords:r,prevRect:c})),l=u.delta;return u.changed&&(s(e,Math.abs(l.x)>Math.abs(l.y),u.coords,u.rect),V(r,u.coords)),u.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function me(t,i,e){var n=t.startCoords,r=t.edgeSign;i?e.y=n.y+(e.x-n.x)*r.y:e.x=n.x+(e.y-n.y)*r.x}function ye(t,i,e,n){var r=t.startRect,o=t.startCoords,a=t.ratio,s=t.edgeSign;i?e.y=o.y+(n.width/a-r.height)*s.y:e.x=o.x+(n.height*a-r.width)*s.x}var be=wi(ge,"aspectRatio"),xe=function(){};xe._defaults={};var we=xe;function ke(t,i,e){return w.func(t)?q(t,i.interactable,i.element,[e.x,e.y,i]):q(t,i.interactable,i.element)}var ze={start:function(t){var i=t.rect,e=t.startOffset,n=t.state,r=t.interaction,o=t.pageCoords,a=n.options,s=a.elementRect,c=V({left:0,top:0,right:0,bottom:0},a.offset||{});if(i&&s){var u=ke(a.restriction,r,o);if(u){var l=u.right-u.left-i.width,h=u.bottom-u.top-i.height;l<0&&(c.left+=l,c.right+=l),h<0&&(c.top+=h,c.bottom+=h)}c.left+=e.left-i.width*s.left,c.top+=e.top-i.height*s.top,c.right+=e.right-i.width*(1-s.right),c.bottom+=e.bottom-i.height*(1-s.bottom)}n.offset=c},set:function(t){var i=t.coords,e=t.state,n=e.offset,r=ke(e.options.restriction,t.interaction,i);if(r){var o=function(t){return!t||"left"in t&&"top"in t||((t=V({},t)).left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}(r);i.x=Math.max(Math.min(o.right-n.right,i.x),o.left+n.left),i.y=Math.max(Math.min(o.bottom-n.bottom,i.y),o.top+n.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Me=wi(ze,"restrict"),Ee={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Oe={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Se(t,i){for(var e=0,n=["top","left","bottom","right"];e<n.length;e++){var r=n[e];r in t||(t[r]=i[r])}return t}var Te={noInner:Ee,noOuter:Oe,start:function(t){var i,e=t.interaction,n=t.startOffset,r=t.state,o=r.options;o&&(i=H(ke(o.offset,e,e.coords.start.page))),r.offset={top:(i=i||{x:0,y:0}).y+n.top,left:i.x+n.left,bottom:i.y-n.bottom,right:i.x-n.right}},set:function(t){var i=t.coords,e=t.edges,n=t.interaction,r=t.state,o=r.offset,a=r.options;if(e){var s=V({},i),c=ke(a.inner,n,s)||{},u=ke(a.outer,n,s)||{};Se(c,Ee),Se(u,Oe),e.top?i.y=Math.min(Math.max(u.top+o.top,s.y),c.top+o.top):e.bottom&&(i.y=Math.max(Math.min(u.bottom+o.bottom,s.y),c.bottom+o.bottom)),e.left?i.x=Math.min(Math.max(u.left+o.left,s.x),c.left+o.left):e.right&&(i.x=Math.max(Math.min(u.right+o.right,s.x),c.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},je=wi(Te,"restrictEdges"),Ie=V({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},ze.defaults),Pe=wi({start:ze.start,set:ze.set,defaults:Ie},"restrictRect"),De={width:-1/0,height:-1/0},Ce={width:1/0,height:1/0},Ae=wi({start:function(t){return Te.start(t)},set:function(t){var i=t.interaction,e=t.state,n=t.rect,r=t.edges,o=e.options;if(r){var a=G(ke(o.min,i,t.coords))||De,s=G(ke(o.max,i,t.coords))||Ce;e.options={endOnly:o.endOnly,inner:V({},Te.noInner),outer:V({},Te.noOuter)},r.top?(e.options.inner.top=n.bottom-a.height,e.options.outer.top=n.bottom-s.height):r.bottom&&(e.options.inner.bottom=n.top+a.height,e.options.outer.bottom=n.top+s.height),r.left?(e.options.inner.left=n.right-a.width,e.options.outer.left=n.right-s.width):r.right&&(e.options.inner.right=n.left+a.width,e.options.outer.right=n.left+s.width),Te.set(t),e.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Re={start:function(t){var i,e=t.interaction,n=t.interactable,r=t.element,o=t.rect,a=t.state,s=t.startOffset,c=a.options,u=c.offsetWithOrigin?function(t){var i=t.interaction.element;return H(q(t.state.options.origin,null,null,[i]))||W(t.interactable,i,t.interaction.prepared.name)}(t):{x:0,y:0};if("startCoords"===c.offset)i={x:e.coords.start.page.x,y:e.coords.start.page.y};else{var l=q(c.offset,n,r,[e]);(i=H(l)||{x:0,y:0}).x+=u.x,i.y+=u.y}var h=c.relativePoints;a.offsets=o&&h&&h.length?h.map((function(t,e){return{index:e,relativePoint:t,x:s.left-o.width*t.x+i.x,y:s.top-o.height*t.y+i.y}})):[{index:0,relativePoint:null,x:i.x,y:i.y}]},set:function(t){var i=t.interaction,e=t.coords,n=t.state,r=n.options,o=n.offsets,a=W(i.interactable,i.element,i.prepared.name),s=V({},e),c=[];r.offsetWithOrigin||(s.x-=a.x,s.y-=a.y);for(var u=0,l=o;u<l.length;u++)for(var h=l[u],f=s.x-h.x,v=s.y-h.y,d=0,p=r.targets.length;d<p;d++){var g,m=r.targets[d];(g=w.func(m)?m(f,v,i._proxy,h,d):m)&&c.push({x:(w.number(g.x)?g.x:f)+h.x,y:(w.number(g.y)?g.y:v)+h.y,range:w.number(g.range)?g.range:r.range,source:m,index:d,offset:h})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<c.length;b++){var x=c[b],k=x.range,z=x.x-s.x,M=x.y-s.y,E=Z(z,M),O=E<=k;k===1/0&&y.inRange&&y.range!==1/0&&(O=!1),y.target&&!(O?y.inRange&&k!==1/0?E/k<y.distance/y.range:k===1/0&&y.range!==1/0||E<y.distance:!y.inRange&&E<y.distance)||(y.target=x,y.distance=E,y.range=k,y.inRange=O,y.delta.x=z,y.delta.y=M)}return y.inRange&&(e.x=y.target.x,e.y=y.target.y),n.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},_e=wi(Re,"snap"),Fe={start:function(t){var i=t.state,e=t.edges,n=i.options;if(!e)return null;t.state={options:{targets:null,relativePoints:[{x:e.left?0:1,y:e.top?0:1}],offset:n.offset||"self",origin:{x:0,y:0},range:n.range}},i.targetFields=i.targetFields||[["width","height"],["x","y"]],Re.start(t),i.offsets=t.state.offsets,t.state=i},set:function(t){var i=t.interaction,e=t.state,n=t.coords,r=e.options,o=e.offsets,a={x:n.x-o[0].x,y:n.y-o[0].y};e.options=V({},r),e.options.targets=[];for(var s=0,c=r.targets||[];s<c.length;s++){var u=c[s],l=void 0;if(l=w.func(u)?u(a.x,a.y,i):u){for(var h=0,f=e.targetFields;h<f.length;h++){var v=f[h],d=v[0],p=v[1];if(d in l||p in l){l.x=l[d],l.y=l[p];break}}e.options.targets.push(l)}}var g=Re.set(t);return e.options=r,g},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Le=wi(Fe,"snapSize"),$e={aspectRatio:be,restrictEdges:je,restrict:Me,restrictRect:Pe,restrictSize:Ae,snapEdges:wi({start:function(t){var i=t.edges;return i?(t.state.targetFields=t.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],Fe.start(t)):null},set:Fe.set,defaults:V(yi(Fe.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:_e,snapSize:Le,spring:we,avoid:we,transform:we,rubberband:we},Be={id:"modifiers",install:function(t){var i=t.interactStatic;for(var e in t.usePlugin(Mi),t.usePlugin(pe),i.modifiers=$e,$e){var n=$e[e],r=n._defaults;r._methods=n._methods,t.defaults.perAction[e]=r}}},Xe=Be,Ye=function(t){s(e,t);var i=h(e);function e(t,r,o,a,s,c){var u;if(n(this,e),it(l(u=i.call(this,s)),o),o!==r&&it(l(u),r),u.timeStamp=c,u.originalEvent=o,u.type=t,u.pointerId=st(r),u.pointerType=vt(r),u.target=a,u.currentTarget=null,"tap"===t){var h=s.getPointerIndex(r);u.dt=u.timeStamp-s.pointers[h].downTime,u.double=!!s.prevTap&&"doubletap"!==s.prevTap.type&&s.prevTap.target===u.target&&u.timeStamp-s.tapTime<500}else"doubletap"===t&&(u.dt=r.timeStamp-s.tapTime,u.double=!0);return u}return o(e,[{key:"_subtractOrigin",value:function(t){var i=t.x,e=t.y;return this.pageX-=i,this.pageY-=e,this.clientX-=i,this.clientY-=e,this}},{key:"_addOrigin",value:function(t){var i=t.x,e=t.y;return this.pageX+=i,this.pageY+=e,this.clientX+=i,this.clientY+=e,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),e}(pt),Ue={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=Ue,t.defaults.actions.pointerEvents=Ue.defaults,V(t.actions.phaselessTypes,Ue.types)},listeners:{"interactions:new":function(t){var i=t.interaction;i.prevTap=null,i.tapTime=0},"interactions:update-pointer":function(t){var i=t.pointerInfo;!t.down&&i.hold||(i.hold={duration:1/0,timeout:null})},"interactions:move":function(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget;t.duplicate||e.pointerIsDown&&!e.pointerWasMoved||(e.pointerIsDown&&qe(t),Ve({interaction:e,pointer:n,event:r,eventTarget:o,type:"move"},i))},"interactions:down":function(t,i){!function(t,i){for(var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget,a=e.pointers[t.pointerIndex].hold,s=Y(o),c={interaction:e,pointer:n,event:r,eventTarget:o,type:"hold",targets:[],path:s,node:null},u=0;u<s.length;u++)c.node=s[u],i.fire("pointerEvents:collect-targets",c);if(c.targets.length){for(var l=1/0,h=0,f=c.targets;h<f.length;h++){var v=f[h].eventable.options.holdDuration;v<l&&(l=v)}a.duration=l,a.timeout=setTimeout((function(){Ve({interaction:e,eventTarget:o,pointer:n,event:r,type:"hold"},i)}),l)}}(t,i),Ve(t,i)},"interactions:up":function(t,i){qe(t),Ve(t,i),function(t,i){var e=t.interaction;e.pointerWasMoved||Ve({interaction:e,eventTarget:t.eventTarget,pointer:t.pointer,event:t.event,type:"tap"},i)}(t,i)},"interactions:cancel":function(t,i){qe(t),Ve(t,i)}},PointerEvent:Ye,fire:Ve,collectEventTargets:Ne,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Ve(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget,a=t.type,s=t.targets,c=void 0===s?Ne(t,i):s,u=new Ye(a,n,r,o,e,i.now());i.fire("pointerEvents:new",{pointerEvent:u});for(var l={interaction:e,pointer:n,event:r,eventTarget:o,targets:c,type:a,pointerEvent:u},h=0;h<c.length;h++){var f=c[h];for(var v in f.props||{})u[v]=f.props[v];var d=W(f.eventable,f.node);if(u._subtractOrigin(d),u.eventable=f.eventable,u.currentTarget=f.node,f.eventable.fire(u),u._addOrigin(d),u.immediatePropagationStopped||u.propagationStopped&&h+1<c.length&&c[h+1].node!==u.currentTarget)break}if(i.fire("pointerEvents:fired",l),"tap"===a){var p=u.double?Ve({interaction:e,pointer:n,event:r,eventTarget:o,type:"doubletap"},i):u;e.prevTap=p,e.tapTime=p.timeStamp}return u}function Ne(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget,a=t.type,s=e.getPointerIndex(n),c=e.pointers[s];if("tap"===a&&(e.pointerWasMoved||!c||c.downTarget!==o))return[];for(var u=Y(o),l={interaction:e,pointer:n,event:r,eventTarget:o,type:a,path:u,targets:[],node:null},h=0;h<u.length;h++)l.node=u[h],i.fire("pointerEvents:collect-targets",l);return"hold"===a&&(l.targets=l.targets.filter((function(t){var i,n;return t.eventable.options.holdDuration===(null==(i=e.pointers[s])||null==(n=i.hold)?void 0:n.duration)}))),l.targets}function qe(t){var i=t.interaction.pointers[t.pointerIndex].hold;i&&i.timeout&&(clearTimeout(i.timeout),i.timeout=null)}var He=Object.freeze({__proto__:null,default:Ue});function Ge(t){var i=t.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var Ke={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(Ue);var i=t.pointerEvents;i.defaults.holdRepeatInterval=0,i.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(t,i){return t["pointerEvents:".concat(i)]=Ge,t}),{"pointerEvents:new":function(t){var i=t.pointerEvent;"hold"===i.type&&(i.count=(i.count||0)+1)},"pointerEvents:fired":function(t,i){var e=t.interaction,n=t.pointerEvent,r=t.eventTarget,o=t.targets;if("hold"===n.type&&o.length){var a=o[0].eventable.options.holdRepeatInterval;a<=0||(e.holdIntervalHandle=setTimeout((function(){i.pointerEvents.fire({interaction:e,eventTarget:r,type:"hold",pointer:n,event:n},i)}),a))}}})},We=Ke,Je={id:"pointer-events/interactableTargets",install:function(t){var i=t.Interactable;i.prototype.pointerEvents=function(t){return V(this.events.options,t),this};var e=i.prototype._backCompatOption;i.prototype._backCompatOption=function(t,i){var n=e.call(this,t,i);return n===this&&(this.events.options[t]=i),n}},listeners:{"pointerEvents:collect-targets":function(t,i){var e=t.targets,n=t.node,r=t.type,o=t.eventTarget;i.interactables.forEachMatch(n,(function(t){var i=t.events;i.types[r]&&i.types[r].length&&t.testIgnoreAllow(i.options,n,o)&&e.push({node:n,eventable:i,props:{interactable:t}})}))},"interactable:new":function(t){var i=t.interactable;i.events.getRect=function(t){return i.getRect(t)}},"interactable:set":function(t,i){var e=t.interactable,n=t.options;V(e.events.options,i.pointerEvents.defaults),V(e.events.options,n.pointerEvents||{})}}},Qe=Je,Ze={id:"pointer-events",install:function(t){t.usePlugin(He),t.usePlugin(We),t.usePlugin(Qe)}},tn=Ze,en={id:"reflow",install:function(t){var i=t.Interactable;t.actions.phases.reflow=!0,i.prototype.reflow=function(i){return function(t,i,e){for(var n=t.getAllElements(),r=e.window.Promise,o=r?[]:null,a=function(){var a=n[s],c=t.getRect(a);if(!c)return 1;var u,l=bt(e.interactions.list,(function(e){return e.interacting()&&e.interactable===t&&e.element===a&&e.prepared.name===i.name}));if(l)l.move(),o&&(u=l._reflowPromise||new r((function(t){l._reflowResolve=t})));else{var h=G(c),f=function(t){return{coords:t,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:h.x,y:h.y},client:{x:h.x,y:h.y},timeStamp:e.now()});u=function(t,i,e,n,r){var o=t.interactions.new({pointerType:"reflow"}),a={interaction:o,event:r,pointer:r,eventTarget:e,phase:"reflow"};o.interactable=i,o.element=e,o.prevEvent=r,o.updatePointer(r,r,e,!0),nt(o.coords.delta),Kt(o.prepared,n),o._doPhase(a);var s=t.window.Promise,c=s?new s((function(t){o._reflowResolve=t})):void 0;return o._reflowPromise=c,o.start(n,i,e),o._interacting?(o.move(a),o.end(r)):(o.stop(),o._reflowResolve()),o.removePointer(r,r),c}(e,t,a,i,f)}o&&o.push(u)},s=0;s<n.length&&!a();s++);return o&&r.all(o).then((function(){return t}))}(this,i,t)}},listeners:{"interactions:stop":function(t,i){var e=t.interaction;"reflow"===e.pointerType&&(e._reflowResolve&&e._reflowResolve(),function(t,i){t.splice(t.indexOf(i),1)}(i.interactions.list,e))}}},nn=en;if(he.use(gi),he.use(Fi),he.use(tn),he.use(Ui),he.use(Xe),he.use(vi),he.use(Lt),he.use(Ht),he.use(nn),he.default=he,"object"===e(E)&&E)try{E.exports=he}catch(t){}return he.default=he,he}();const S=O.exports,T="container",j="container--open",I="container--embedded",P=25,D={x:0,y:0},C={top:0,right:0,bottom:0,left:0};
|
6
|
+
import{r as t,c as i,h as e,H as n,g as r}from"./p-4e6eb06e.js";import{c as o}from"./p-d4056c1c.js";import{t as a,f as s}from"./p-26ba0cc7.js";import{c,d as u,u as l,a as h}from"./p-d9e9fe80.js";import{s as f,a as v,c as d}from"./p-7f68e6a4.js";import{c as p}from"./p-85c3237c.js";import{o as g}from"./p-93d03bf0.js";import{c as m,d as y}from"./p-177b4cbc.js";import{s as b,c as x,d as w,u as k}from"./p-cb8d90d1.js";import{c as z}from"./p-ae019e19.js";import{S as M}from"./p-63a91fdb.js";import"./p-eed08718.js";import"./p-51ab623a.js";import"./p-7eee9aa8.js";import"./p-08c18450.js";import"./p-ec51378a.js";var E,O={exports:{}};(E=O).exports=function(){function t(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function i(i){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?t(Object(n),!0).forEach((function(t){a(i,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(n,t))}))}return i}function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function r(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function o(t,i,e){return i&&r(t.prototype,i),e&&r(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,i,e){return(i=v(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function s(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&u(t,i)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,i){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},u(t,i)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,n=c(t);if(i){var r=c(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(t,i){if(i&&("object"==typeof i||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,e)}}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,i,e){var n=function(t,i){for(;!Object.prototype.hasOwnProperty.call(t,i)&&null!==(t=c(t)););return t}(t,i);if(n){var r=Object.getOwnPropertyDescriptor(n,i);return r.get?r.get.call(arguments.length<3?t:e):r.value}},f.apply(this,arguments)}function v(t){var i=function(t){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var e=i.call(t,"string");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:i+""}var d=function(t){return!(!t||!t.Window)&&t instanceof t.Window},p=void 0,g=void 0;function m(t){p=t;var i=t.document.createTextNode("");i.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(i)===i&&(t=t.wrap(t)),g=t}function y(t){return d(t)?t:(t.ownerDocument||t).defaultView||g.window}"undefined"!=typeof window&&window&&m(window);var b=function(t){return!!t&&"object"===e(t)},x=function(t){return"function"==typeof t},w={window:function(t){return t===g||d(t)},docFrag:function(t){return b(t)&&11===t.nodeType},object:b,func:x,number:function(t){return"number"==typeof t},bool:function(t){return"boolean"==typeof t},string:function(t){return"string"==typeof t},element:function(t){if(!t||"object"!==e(t))return!1;var i=y(t)||g;return/object|function/.test("undefined"==typeof Element?"undefined":e(Element))?t instanceof Element||t instanceof i.Element:1===t.nodeType&&"string"==typeof t.nodeName},plainObject:function(t){return b(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return b(t)&&void 0!==t.length&&x(t.splice)}};function k(t){var i=t.interaction;if("drag"===i.prepared.name){var e=i.prepared.axis;"x"===e?(i.coords.cur.page.y=i.coords.start.page.y,i.coords.cur.client.y=i.coords.start.client.y,i.coords.velocity.client.y=0,i.coords.velocity.page.y=0):"y"===e&&(i.coords.cur.page.x=i.coords.start.page.x,i.coords.cur.client.x=i.coords.start.client.x,i.coords.velocity.client.x=0,i.coords.velocity.page.x=0)}}function z(t){var i=t.iEvent,e=t.interaction;if("drag"===e.prepared.name){var n=e.prepared.axis;if("x"===n||"y"===n){var r="x"===n?"y":"x";i.page[r]=e.coords.start.page[r],i.client[r]=e.coords.start.client[r],i.delta[r]=0}}}var M={id:"actions/drag",install:function(t){var i=t.actions,e=t.defaults;t.Interactable.prototype.draggable=M.draggable,i.map.drag=M,i.methodDict.drag="draggable",e.actions.drag=M.defaults},listeners:{"interactions:before-action-move":k,"interactions:action-resume":k,"interactions:action-move":z,"auto-start:check":function(t){var i=t.interaction,e=t.interactable,n=t.buttons,r=e.options.drag;if(r&&r.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||n&e.options.drag.mouseButtons))return t.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(t){return w.object(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):w.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:k,move:z,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return 0===t.search("drag")}},O=M,S={init:function(t){var i=t;S.document=i.document,S.DocumentFragment=i.DocumentFragment||T,S.SVGElement=i.SVGElement||T,S.SVGSVGElement=i.SVGSVGElement||T,S.SVGElementInstance=i.SVGElementInstance||T,S.Element=i.Element||T,S.HTMLElement=i.HTMLElement||S.Element,S.Event=i.Event,S.Touch=i.Touch||T,S.PointerEvent=i.PointerEvent||i.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function T(){}var j=S,I={init:function(t){var i=j.Element,e=t.navigator||{};I.supportsTouch="ontouchstart"in t||w.func(t.DocumentTouch)&&j.document instanceof t.DocumentTouch,I.supportsPointerEvent=!1!==e.pointerEnabled&&!!j.PointerEvent,I.isIOS=/iP(hone|od|ad)/.test(e.platform),I.isIOS7=/iP(hone|od|ad)/.test(e.platform)&&/OS 7[^\d]/.test(e.appVersion),I.isIe9=/MSIE 9/.test(e.userAgent),I.isOperaMobile="Opera"===e.appName&&I.supportsTouch&&/Presto/.test(e.userAgent),I.prefixedMatchesSelector="matches"in i.prototype?"matches":"webkitMatchesSelector"in i.prototype?"webkitMatchesSelector":"mozMatchesSelector"in i.prototype?"mozMatchesSelector":"oMatchesSelector"in i.prototype?"oMatchesSelector":"msMatchesSelector",I.pEventTypes=I.supportsPointerEvent?j.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,I.wheelEvent=j.document&&"onmousewheel"in j.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},P=I;function D(t,i){if(t.contains)return t.contains(i);for(;i;){if(i===t)return!0;i=i.parentNode}return!1}function C(t,i){for(;w.element(t);){if(R(t,i))return t;t=A(t)}return null}function A(t){var i=t.parentNode;if(w.docFrag(i)){for(;(i=i.host)&&w.docFrag(i););return i}return i}function R(t,i){return g!==p&&(i=i.replace(/\/deep\//g," ")),t[P.prefixedMatchesSelector](i)}var _=function(t){return t.parentNode||t.host};function F(t,i){for(var e,n=[],r=t;(e=_(r))&&r!==i&&e!==r.ownerDocument;)n.unshift(r),r=e;return n}function L(t,i,e){for(;w.element(t);){if(R(t,i))return!0;if((t=A(t))===e)return R(t,i)}return!1}function $(t){return t.correspondingUseElement||t}function B(t){var i=t instanceof j.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return i&&{left:i.left,right:i.right,top:i.top,bottom:i.bottom,width:i.width||i.right-i.left,height:i.height||i.bottom-i.top}}function X(t){var i,e=B(t);if(!P.isIOS7&&e){var n={x:(i=(i=y(t))||g).scrollX||i.document.documentElement.scrollLeft,y:i.scrollY||i.document.documentElement.scrollTop};e.left+=n.x,e.right+=n.x,e.top+=n.y,e.bottom+=n.y}return e}function Y(t){for(var i=[];t;)i.push(t),t=A(t);return i}function U(t){return!!w.string(t)&&(j.document.querySelector(t),!0)}function V(t,i){for(var e in i)t[e]=i[e];return t}function N(t,i,e){return"parent"===t?A(e):"self"===t?i.getRect(e):C(e,t)}function q(t,i,e,n){var r=t;return w.string(r)?r=N(r,i,e):w.func(r)&&(r=r.apply(void 0,n)),w.element(r)&&(r=X(r)),r}function H(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function G(t){return!t||"x"in t&&"y"in t||((t=V({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function K(t,i,e){t.left&&(i.left+=e.x),t.right&&(i.right+=e.x),t.top&&(i.top+=e.y),t.bottom&&(i.bottom+=e.y),i.width=i.right-i.left,i.height=i.bottom-i.top}function W(t,i,e){var n=e&&t.options[e];return H(q(n&&n.origin||t.options.origin,t,i,[t&&i]))||{x:0,y:0}}function J(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0},n=arguments.length>3?arguments[3]:void 0;if(n=n||{},w.string(t)&&-1!==t.search(" ")&&(t=Q(t)),w.array(t))return t.forEach((function(t){return J(t,i,e,n)})),n;if(w.object(t)&&(i=t,t=""),w.func(i)&&e(t))n[t]=n[t]||[],n[t].push(i);else if(w.array(i))for(var r=0,o=i;r<o.length;r++)J(t,o[r],e,n);else if(w.object(i))for(var a in i)J(Q(a).map((function(i){return"".concat(t).concat(i)})),i[a],e,n);return n}function Q(t){return t.trim().split(/ +/)}var Z=function(t,i){return Math.sqrt(t*t+i*i)},tt=["webkit","moz"];function it(t,i){t.__set||(t.__set={});var e=function(e){if(tt.some((function(t){return 0===e.indexOf(t)})))return 1;"function"!=typeof t[e]&&"__set"!==e&&Object.defineProperty(t,e,{get:function(){return e in t.__set?t.__set[e]:t.__set[e]=i[e]},set:function(i){t.__set[e]=i},configurable:!0})};for(var n in i)e(n);return t}function et(t,i){t.page=t.page||{},t.page.x=i.page.x,t.page.y=i.page.y,t.client=t.client||{},t.client.x=i.client.x,t.client.y=i.client.y,t.timeStamp=i.timeStamp}function nt(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function rt(t){return t instanceof j.Event||t instanceof j.Touch}function ot(t,i,e){return(e=e||{}).x=i[(t=t||"page")+"X"],e.y=i[t+"Y"],e}function at(t,i){return i=i||{x:0,y:0},P.isOperaMobile&&rt(t)?(ot("screen",t,i),i.x+=window.scrollX,i.y+=window.scrollY):ot("page",t,i),i}function st(t){return w.number(t.pointerId)?t.pointerId:t.identifier}function ct(t){var i=[];return w.array(t)?(i[0]=t[0],i[1]=t[1]):"touchend"===t.type?1===t.touches.length?(i[0]=t.touches[0],i[1]=t.changedTouches[0]):0===t.touches.length&&(i[0]=t.changedTouches[0],i[1]=t.changedTouches[1]):(i[0]=t.touches[0],i[1]=t.touches[1]),i}function ut(t){for(var i={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},e=0;e<t.length;e++){var n=t[e];for(var r in i)i[r]+=n[r]}for(var o in i)i[o]/=t.length;return i}function lt(t){if(!t.length)return null;var i=ct(t),e=Math.min(i[0].pageX,i[1].pageX),n=Math.min(i[0].pageY,i[1].pageY),r=Math.max(i[0].pageX,i[1].pageX),o=Math.max(i[0].pageY,i[1].pageY);return{x:e,y:n,left:e,top:n,right:r,bottom:o,width:r-e,height:o-n}}function ht(t,i){var e=i+"X",n=i+"Y",r=ct(t);return Z(r[0][e]-r[1][e],r[0][n]-r[1][n])}function ft(t,i){var e=i+"X",n=i+"Y",r=ct(t);return 180*Math.atan2(r[1][n]-r[0][n],r[1][e]-r[0][e])/Math.PI}function vt(t){return w.string(t.pointerType)?t.pointerType:w.number(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof j.Touch?"touch":"mouse"}function dt(t){var i=w.func(t.composedPath)?t.composedPath():t.path;return[$(i?i[0]:t.target),$(t.currentTarget)]}var pt=function(){function t(i){n(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=i}return o(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(pt.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var gt=function(t,i){for(var e=0;e<i.length;e++)t.push(i[e]);return t},mt=function(t){return gt([],t)},yt=function(t,i){for(var e=0;e<t.length;e++)if(i(t[e],e,t))return e;return-1},bt=function(t,i){return t[yt(t,i)]},xt=function(t){s(e,t);var i=h(e);function e(t,r,o){var a;n(this,e),(a=i.call(this,r._interaction)).dropzone=void 0,a.dragEvent=void 0,a.relatedTarget=void 0,a.draggable=void 0,a.propagationStopped=!1,a.immediatePropagationStopped=!1;var s="dragleave"===o?t.prev:t.cur,c=s.element,u=s.dropzone;return a.type=o,a.target=c,a.currentTarget=c,a.dropzone=u,a.dragEvent=r,a.relatedTarget=r.target,a.draggable=r.interactable,a.timeStamp=r.timeStamp,a}return o(e,[{key:"reject",value:function(){var t=this,i=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&i.cur.dropzone===this.dropzone&&i.cur.element===this.target)if(i.prev.dropzone=this.dropzone,i.prev.element=this.target,i.rejected=!0,i.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var n=yt(i.activeDrops,(function(i){return i.dropzone===t.dropzone&&i.element===t.target}));i.activeDrops.splice(n,1);var r=new e(i,this.dragEvent,"dropdeactivate");r.dropzone=this.dropzone,r.target=this.target,this.dropzone.fire(r)}else this.dropzone.fire(new e(i,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),e}(pt);function wt(t,i){for(var e=0,n=t.slice();e<n.length;e++){var r=n[e],o=r.dropzone,a=r.element;i.dropzone=o,i.target=a,o.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function kt(t,i){for(var e=function(t,i){for(var e=[],n=0,r=t.interactables.list;n<r.length;n++){var o=r[n];if(o.options.drop.enabled){var a=o.options.drop.accept;if(!(w.element(a)&&a!==i||w.string(a)&&!R(i,a)||w.func(a)&&!a({dropzone:o,draggableElement:i})))for(var s=0,c=o.getAllElements();s<c.length;s++){var u=c[s];u!==i&&e.push({dropzone:o,element:u,rect:o.getRect(u)})}}}return e}(t,i),n=0;n<e.length;n++){var r=e[n];r.rect=r.dropzone.getRect(r.element)}return e}function zt(t,i,e){for(var n=t.dropState,r=t.interactable,o=t.element,a=[],s=0,c=n.activeDrops;s<c.length;s++){var u=c[s],l=u.element,h=u.dropzone.dropCheck(i,e,r,o,l,u.rect);a.push(h?l:null)}var f=function(t){for(var i,e,n,r=[],o=0;o<t.length;o++){var a=t[o],s=t[i];if(a&&o!==i)if(s){var c=_(a),u=_(s);if(c!==a.ownerDocument)if(u!==a.ownerDocument)if(c!==u){r=r.length?r:F(s);var l=void 0;if(s instanceof j.HTMLElement&&a instanceof j.SVGElement&&!(a instanceof j.SVGSVGElement)){if(a===u)continue;l=a.ownerSVGElement}else l=a;for(var h=F(l,s.ownerDocument),f=0;h[f]&&h[f]===r[f];)f++;var v=[h[f-1],h[f],r[f]];if(v[0])for(var d=v[0].lastChild;d;){if(d===v[1]){i=o,r=h;break}if(d===v[2])break;d=d.previousSibling}}else n=s,(parseInt(y(e=a).getComputedStyle(e).zIndex,10)||0)>=(parseInt(y(n).getComputedStyle(n).zIndex,10)||0)&&(i=o);else i=o}else i=o}return i}(a);return n.activeDrops[f]||null}function Mt(t,i,e){var n=t.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===e.type&&(r.activate=new xt(n,e,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===e.type&&(r.deactivate=new xt(n,e,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),n.rejected||(n.cur.element!==n.prev.element&&(n.prev.dropzone&&(r.leave=new xt(n,e,"dragleave"),e.dragLeave=r.leave.target=n.prev.element,e.prevDropzone=r.leave.dropzone=n.prev.dropzone),n.cur.dropzone&&(r.enter=new xt(n,e,"dragenter"),e.dragEnter=n.cur.element,e.dropzone=n.cur.dropzone)),"dragend"===e.type&&n.cur.dropzone&&(r.drop=new xt(n,e,"drop"),e.dropzone=n.cur.dropzone,e.relatedTarget=n.cur.element),"dragmove"===e.type&&n.cur.dropzone&&(r.move=new xt(n,e,"dropmove"),e.dropzone=n.cur.dropzone)),r}function Et(t,i){var e=t.dropState,n=e.activeDrops,r=e.cur;i.leave&&e.prev.dropzone.fire(i.leave),i.enter&&r.dropzone.fire(i.enter),i.move&&r.dropzone.fire(i.move),i.drop&&r.dropzone.fire(i.drop),i.deactivate&&wt(n,i.deactivate),e.prev.dropzone=r.dropzone,e.prev.element=r.element}function Ot(t,i){var e=t.interaction,n=t.iEvent,r=t.event;if("dragmove"===n.type||"dragend"===n.type){var o=e.dropState;i.dynamicDrop&&(o.activeDrops=kt(i,e.element));var a=n,s=zt(e,a,r);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=Mt(e,0,a)}}var St={id:"actions/drop",install:function(t){var i=t.actions,e=t.interactStatic,n=t.Interactable,r=t.defaults;t.usePlugin(O),n.prototype.dropzone=function(t){return function(t,i){if(w.object(i)){if(t.options.drop.enabled=!1!==i.enabled,i.listeners){var e=J(i.listeners),n=Object.keys(e).reduce((function(t,i){return t[/^(enter|leave)/.test(i)?"drag".concat(i):/^(activate|deactivate|move)/.test(i)?"drop".concat(i):i]=e[i],t}),{}),r=t.options.drop.listeners;r&&t.off(r),t.on(n),t.options.drop.listeners=n}return w.func(i.ondrop)&&t.on("drop",i.ondrop),w.func(i.ondropactivate)&&t.on("dropactivate",i.ondropactivate),w.func(i.ondropdeactivate)&&t.on("dropdeactivate",i.ondropdeactivate),w.func(i.ondragenter)&&t.on("dragenter",i.ondragenter),w.func(i.ondragleave)&&t.on("dragleave",i.ondragleave),w.func(i.ondropmove)&&t.on("dropmove",i.ondropmove),/^(pointer|center)$/.test(i.overlap)?t.options.drop.overlap=i.overlap:w.number(i.overlap)&&(t.options.drop.overlap=Math.max(Math.min(1,i.overlap),0)),"accept"in i&&(t.options.drop.accept=i.accept),"checker"in i&&(t.options.drop.checker=i.checker),t}return w.bool(i)?(t.options.drop.enabled=i,t):t.options.drop}(this,t)},n.prototype.dropCheck=function(t,i,e,n,r,o){return function(t,i,e,n,r,o,a){var s=!1;if(!(a=a||t.getRect(o)))return!!t.options.drop.checker&&t.options.drop.checker(i,e,s,t,o,n,r);var c=t.options.drop.overlap;if("pointer"===c){var u=W(n,r,"drag"),l=at(i);l.x+=u.x,l.y+=u.y,s=l.x>a.left&&l.x<a.right&&l.y>a.top&&l.y<a.bottom}var h=n.getRect(r);if(h&&"center"===c){var f=h.left+h.width/2,v=h.top+h.height/2;s=f>=a.left&&f<=a.right&&v>=a.top&&v<=a.bottom}return h&&w.number(c)&&(s=Math.max(0,Math.min(a.right,h.right)-Math.max(a.left,h.left))*Math.max(0,Math.min(a.bottom,h.bottom)-Math.max(a.top,h.top))/(h.width*h.height)>=c),t.options.drop.checker&&(s=t.options.drop.checker(i,e,s,t,o,n,r)),s}(this,t,i,e,n,r,o)},e.dynamicDrop=function(i){return w.bool(i)?(t.dynamicDrop=i,e):t.dynamicDrop},V(i.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),i.methodDict.drop="dropzone",t.dynamicDrop=!1,r.actions.drop=St.defaults},listeners:{"interactions:before-action-start":function(t){var i=t.interaction;"drag"===i.prepared.name&&(i.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,i){var e=t.interaction,n=t.iEvent;if("drag"===e.prepared.name){var r=e.dropState;r.activeDrops=[],r.events={},r.activeDrops=kt(i,e.element),r.events=Mt(e,0,n),r.events.activate&&(wt(r.activeDrops,r.events.activate),i.fire("actions/drop:start",{interaction:e,dragEvent:n}))}},"interactions:action-move":Ot,"interactions:after-action-move":function(t,i){var e=t.interaction,n=t.iEvent;if("drag"===e.prepared.name){var r=e.dropState;Et(e,r.events),i.fire("actions/drop:move",{interaction:e,dragEvent:n}),r.events={}}},"interactions:action-end":function(t,i){if("drag"===t.interaction.prepared.name){var e=t.interaction,n=t.iEvent;Ot(t,i),Et(e,e.dropState.events),i.fire("actions/drop:end",{interaction:e,dragEvent:n})}},"interactions:stop":function(t){var i=t.interaction;if("drag"===i.prepared.name){var e=i.dropState;e&&(e.activeDrops=null,e.events=null,e.cur.dropzone=null,e.cur.element=null,e.prev.dropzone=null,e.prev.element=null,e.rejected=!1)}}},getActiveDrops:kt,getDrop:zt,getDropEvents:Mt,fireDropEvents:Et,filterEventType:function(t){return 0===t.search("drag")||0===t.search("drop")},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Tt=St;function jt(t){var i=t.interaction,e=t.iEvent,n=t.phase;if("gesture"===i.prepared.name){var r=i.pointers.map((function(t){return t.pointer})),o="start"===n,a="end"===n,s=i.interactable.options.deltaSource;if(e.touches=[r[0],r[1]],o)e.distance=ht(r,s),e.box=lt(r),e.scale=1,e.ds=0,e.angle=ft(r,s),e.da=0,i.gesture.startDistance=e.distance,i.gesture.startAngle=e.angle;else if(a||i.pointers.length<2){var c=i.prevEvent;e.distance=c.distance,e.box=c.box,e.scale=c.scale,e.ds=0,e.angle=c.angle,e.da=0}else e.distance=ht(r,s),e.box=lt(r),e.scale=e.distance/i.gesture.startDistance,e.angle=ft(r,s),e.ds=e.scale-i.gesture.scale,e.da=e.angle-i.gesture.angle;i.gesture.distance=e.distance,i.gesture.angle=e.angle,w.number(e.scale)&&e.scale!==1/0&&!isNaN(e.scale)&&(i.gesture.scale=e.scale)}}var It={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var i=t.actions,e=t.defaults;t.Interactable.prototype.gesturable=function(t){return w.object(t)?(this.options.gesture.enabled=!1!==t.enabled,this.setPerAction("gesture",t),this.setOnEvents("gesture",t),this):w.bool(t)?(this.options.gesture.enabled=t,this):this.options.gesture},i.map.gesture=It,i.methodDict.gesture="gesturable",e.actions.gesture=It.defaults},listeners:{"interactions:action-start":jt,"interactions:action-move":jt,"interactions:action-end":jt,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var i=t.interactable.options.gesture;if(i&&i.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return 0===t.search("gesture")}},Pt=It;function Dt(t,i,e,n,r,o,a){if(!i)return!1;if(!0===i){var s=w.number(o.width)?o.width:o.right-o.left,c=w.number(o.height)?o.height:o.bottom-o.top;if(a=Math.min(a,Math.abs(("left"===t||"right"===t?s:c)/2)),s<0&&("left"===t?t="right":"right"===t&&(t="left")),c<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t)return e.x<(s>=0?o.left:o.right)+a;if("top"===t)return e.y<(c>=0?o.top:o.bottom)+a;if("right"===t)return e.x>(s>=0?o.right:o.left)-a;if("bottom"===t)return e.y>(c>=0?o.bottom:o.top)-a}return!!w.element(n)&&(w.element(i)?i===n:L(n,i,r))}function Ct(t){var i=t.interaction;if("resize"===i.prepared.name&&i.resizeAxes){var e=t.iEvent;i.interactable.options.resize.square?("y"===i.resizeAxes?e.delta.x=e.delta.y:e.delta.y=e.delta.x,e.axes="xy"):(e.axes=i.resizeAxes,"x"===i.resizeAxes?e.delta.y=0:"y"===i.resizeAxes&&(e.delta.x=0))}}var At,Rt,_t={id:"actions/resize",before:["actions/drag"],install:function(t){var i=t.actions,e=t.browser,n=t.Interactable,r=t.defaults;_t.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(e),_t.defaultMargin=e.supportsTouch||e.supportsPointerEvent?20:10,n.prototype.resizable=function(i){return function(t,i,e){return w.object(i)?(t.options.resize.enabled=!1!==i.enabled,t.setPerAction("resize",i),t.setOnEvents("resize",i),w.string(i.axis)&&/^x$|^y$|^xy$/.test(i.axis)?t.options.resize.axis=i.axis:null===i.axis&&(t.options.resize.axis=e.defaults.actions.resize.axis),w.bool(i.preserveAspectRatio)?t.options.resize.preserveAspectRatio=i.preserveAspectRatio:w.bool(i.square)&&(t.options.resize.square=i.square),t):w.bool(i)?(t.options.resize.enabled=i,t):t.options.resize}(this,i,t)},i.map.resize=_t,i.methodDict.resize="resizable",r.actions.resize=_t.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){!function(t){var i=t.interaction;if("resize"===i.prepared.name&&i.prepared.edges){var e=t.iEvent,n=i.rect;i._rects={start:V({},n),corrected:V({},n),previous:V({},n),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},e.edges=i.prepared.edges,e.rect=i._rects.corrected,e.deltaRect=i._rects.delta}}(t),Ct(t)},"interactions:action-move":function(t){!function(t){var i=t.interaction;if("resize"===i.prepared.name&&i.prepared.edges){var e=t.iEvent,n=i.interactable.options.resize.invert,r="reposition"===n||"negate"===n,o=i.rect,a=i._rects,s=a.start,c=a.corrected,u=a.delta,l=a.previous;if(V(l,c),r){if(V(c,o),"reposition"===n){if(c.top>c.bottom){var h=c.top;c.top=c.bottom,c.bottom=h}if(c.left>c.right){var f=c.left;c.left=c.right,c.right=f}}}else c.top=Math.min(o.top,s.bottom),c.bottom=Math.max(o.bottom,s.top),c.left=Math.min(o.left,s.right),c.right=Math.max(o.right,s.left);for(var v in c.width=c.right-c.left,c.height=c.bottom-c.top,c)u[v]=c[v]-l[v];e.edges=i.prepared.edges,e.rect=c,e.deltaRect=u}}(t),Ct(t)},"interactions:action-end":function(t){var i=t.interaction;if("resize"===i.prepared.name&&i.prepared.edges){var e=t.iEvent;e.edges=i.prepared.edges,e.rect=i._rects.corrected,e.deltaRect=i._rects.delta}},"auto-start:check":function(t){var i=t.interaction,e=t.interactable,n=t.element,r=t.rect,o=t.buttons;if(r){var a=V({},i.coords.cur.page),s=e.options.resize;if(s&&s.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||o&s.mouseButtons)){if(w.object(s.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var u in c)c[u]=Dt(u,s.edges[u],a,i._latestPointer.eventTarget,n,r,s.margin||_t.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(t.action={name:"resize",edges:c})}else{var l="y"!==s.axis&&a.x>r.right-_t.defaultMargin,h="x"!==s.axis&&a.y>r.bottom-_t.defaultMargin;(l||h)&&(t.action={name:"resize",axes:(l?"x":"")+(h?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var i=t.edges,e=t.axis,n=_t.cursors,r=null;if(e)r=n[t.name+e];else if(i){for(var o="",a=0,s=["top","bottom","left","right"];a<s.length;a++){var c=s[a];i[c]&&(o+=c)}r=n[o]}return r},filterEventType:function(t){return 0===t.search("resize")},defaultMargin:null},Ft=_t,Lt={id:"actions",install:function(t){t.usePlugin(Pt),t.usePlugin(Ft),t.usePlugin(O),t.usePlugin(Tt)}},$t=0,Bt=function(t){return At(t)},Xt=function(t){return Rt(t)},Yt=function(t){if(Rt=t.cancelAnimationFrame,!(At=t.requestAnimationFrame))for(var i=["ms","moz","webkit","o"],e=0;e<i.length;e++){var n=i[e];At=t["".concat(n,"RequestAnimationFrame")],Rt=t["".concat(n,"CancelAnimationFrame")]||t["".concat(n,"CancelRequestAnimationFrame")]}At=At&&At.bind(t),Rt=Rt&&Rt.bind(t),At||(At=function(i){var e=Date.now(),n=Math.max(0,16-(e-$t)),r=t.setTimeout((function(){i(e+n)}),n);return $t=e+n,r},Rt=function(t){return clearTimeout(t)})},Ut={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(t){Ut.isScrolling=!0,Xt(Ut.i),t.autoScroll=Ut,Ut.interaction=t,Ut.prevTime=Ut.now(),Ut.i=Bt(Ut.scroll)},stop:function(){Ut.isScrolling=!1,Ut.interaction&&(Ut.interaction.autoScroll=null),Xt(Ut.i)},scroll:function(){var t=Ut.interaction,i=t.interactable,e=t.element,n=i.options[t.prepared.name].autoScroll,r=Vt(n.container,i,e),o=Ut.now(),a=n.speed*((o-Ut.prevTime)/1e3);if(a>=1){var s={x:Ut.x*a,y:Ut.y*a};if(s.x||s.y){var c=Nt(r);w.window(r)?r.scrollBy(s.x,s.y):r&&(r.scrollLeft+=s.x,r.scrollTop+=s.y);var u=Nt(r),l={x:u.x-c.x,y:u.y-c.y};(l.x||l.y)&&i.fire({type:"autoscroll",target:e,interactable:i,delta:l,interaction:t,container:r})}Ut.prevTime=o}Ut.isScrolling&&(Xt(Ut.i),Ut.i=Bt(Ut.scroll))},check:function(t,i){var e;return null==(e=t.options[i].autoScroll)?void 0:e.enabled},onInteractionMove:function(t){var i=t.interaction,e=t.pointer;if(i.interacting()&&Ut.check(i.interactable,i.prepared.name))if(i.simulation)Ut.x=Ut.y=0;else{var n,r,o,a,s=i.interactable,c=s.options[i.prepared.name].autoScroll,u=Vt(c.container,s,i.element);if(w.window(u))a=e.clientX<Ut.margin,n=e.clientY<Ut.margin,r=e.clientX>u.innerWidth-Ut.margin,o=e.clientY>u.innerHeight-Ut.margin;else{var l=B(u);a=e.clientX<l.left+Ut.margin,n=e.clientY<l.top+Ut.margin,r=e.clientX>l.right-Ut.margin,o=e.clientY>l.bottom-Ut.margin}Ut.x=r?1:a?-1:0,Ut.y=o?1:n?-1:0,Ut.isScrolling||(Ut.margin=c.margin,Ut.speed=c.speed,Ut.start(i))}}};function Vt(t,i,e){return(w.string(t)?N(t,i,e):t)||y(e)}function Nt(t){return w.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var qt={id:"auto-scroll",install:function(t){var i=t.defaults,e=t.actions;t.autoScroll=Ut,Ut.now=function(){return t.now()},e.phaselessTypes.autoscroll=!0,i.perAction.autoScroll=Ut.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,Ut.stop(),Ut.interaction&&(Ut.interaction=null)},"interactions:stop":Ut.stop,"interactions:action-move":function(t){return Ut.onInteractionMove(t)}}},Ht=qt;function Gt(t,i){var e=!1;return function(){return e||(g.console.warn(i),e=!0),t.apply(this,arguments)}}function Kt(t,i){return t.name=i.name,t.axis=i.axis,t.edges=i.edges,t}function Wt(t){return w.bool(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function Jt(t){return w.func(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}var Qt={id:"auto-start/interactableMethods",install:function(t){var i=t.Interactable;i.prototype.getAction=function(i,e,n,r){var o=function(t,i,e,n,r){var o=t.getRect(n),a={action:null,interactable:t,interaction:e,element:n,rect:o,buttons:i.buttons||{0:1,1:4,3:8,4:16}[i.button]};return r.fire("auto-start:check",a),a.action}(this,e,n,r,t);return this.options.actionChecker?this.options.actionChecker(i,e,o,this,r,n):o},i.prototype.ignoreFrom=Gt((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),i.prototype.allowFrom=Gt((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),i.prototype.actionChecker=Jt,i.prototype.styleCursor=Wt}};function Zt(t,i,e,n,r){return i.testIgnoreAllow(i.options[t.name],e,n)&&i.options[t.name].enabled&&ni(i,e,t,r)?t:null}function ti(t,i,e,n,r,o,a){for(var s=0,c=n.length;s<c;s++){var u=n[s],l=r[s],h=u.getAction(i,e,t,l);if(h){var f=Zt(h,u,l,o,a);if(f)return{action:f,interactable:u,element:l}}}return{action:null,interactable:null,element:null}}function ii(t,i,e,n,r){var o=[],a=[],s=n;function c(t){o.push(t),a.push(s)}for(;w.element(s);){o=[],a=[],r.interactables.forEachMatch(s,c);var u=ti(t,i,e,o,a,n,r);if(u.action&&!u.interactable.options[u.action.name].manualStart)return u;s=A(s)}return{action:null,interactable:null,element:null}}function ei(t,i,e){var n=i.action,r=i.interactable,o=i.element;n=n||{name:null},t.interactable=r,t.element=o,Kt(t.prepared,n),t.rect=r&&n.name?r.getRect(o):null,ai(t,e),e.fire("autoStart:prepared",{interaction:t})}function ni(t,i,e,n){var r=t.options,o=r[e.name].max,a=r[e.name].maxPerElement,s=n.autoStart.maxInteractions,c=0,u=0,l=0;if(!(o&&a&&s))return!1;for(var h=0,f=n.interactions.list;h<f.length;h++){var v=f[h],d=v.prepared.name;if(v.interacting()){if(++c>=s)return!1;if(v.interactable===t){if((u+=d===e.name?1:0)>=o)return!1;if(v.element===i&&(l++,d===e.name&&l>=a))return!1}}}return s>0}function ri(t,i){return w.number(t)?(i.autoStart.maxInteractions=t,this):i.autoStart.maxInteractions}function oi(t,i,e){var n=e.autoStart.cursorElement;n&&n!==t&&(n.style.cursor=""),t.ownerDocument.documentElement.style.cursor=i,t.style.cursor=i,e.autoStart.cursorElement=i?t:null}function ai(t,i){var e=t.interactable,n=t.element,r=t.prepared;if("mouse"===t.pointerType&&e&&e.options.styleCursor){var o="";if(r.name){var a=e.options[r.name].cursorChecker;o=w.func(a)?a(r,e,n,t._interacting):i.actions.map[r.name].getCursor(r)}oi(t.element,o||"",i)}else i.autoStart.cursorElement&&oi(i.autoStart.cursorElement,"",i)}var si={id:"auto-start/base",before:["actions"],install:function(t){var i=t.interactStatic,e=t.defaults;t.usePlugin(Qt),e.base.actionChecker=null,e.base.styleCursor=!0,V(e.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),i.maxInteractions=function(i){return ri(i,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:ni,cursorElement:null}},listeners:{"interactions:down":function(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget;e.interacting()||ei(e,ii(e,n,r,o,i),i)},"interactions:move":function(t,i){!function(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget;"mouse"!==e.pointerType||e.pointerIsDown||e.interacting()||ei(e,ii(e,n,r,o,i),i)}(t,i),function(t,i){var e=t.interaction;if(e.pointerIsDown&&!e.interacting()&&e.pointerWasMoved&&e.prepared.name){i.fire("autoStart:before-start",t);var n=e.interactable,r=e.prepared.name;r&&n&&(n.options[r].manualStart||!ni(n,e.element,e.prepared,i)?e.stop():(e.start(e.prepared,n,e.element),ai(e,i)))}}(t,i)},"interactions:stop":function(t,i){var e=t.interaction,n=e.interactable;n&&n.options.styleCursor&&oi(e.element,"",i)}},maxInteractions:ri,withinInteractionLimit:ni,validateAction:Zt},ci=si,ui={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,i){var e=t.interaction,n=t.eventTarget,r=t.dy;if("drag"===e.prepared.name){var o=Math.abs(t.dx),a=Math.abs(r),s=e.interactable.options.drag,c=s.startAxis,u=o>a?"x":o<a?"y":"xy";if(e.prepared.axis="start"===s.lockAxis?u[0]:s.lockAxis,"xy"!==u&&"xy"!==c&&c!==u){e.prepared.name=null;for(var l=n,h=function(t){if(t!==e.interactable){var r=e.interactable.options.drag;if(!r.manualStart&&t.testIgnoreAllow(r,l,n)){var o=t.getAction(e.downPointer,e.downEvent,e,l);if(o&&"drag"===o.name&&function(t,i){if(!i)return!1;var e=i.options.drag.startAxis;return"xy"===t||"xy"===e||e===t}(u,t)&&ci.validateAction(o,t,l,n,i))return t}}};w.element(l);){var f=i.interactables.forEachMatch(l,h);if(f){e.prepared.name="drag",e.interactable=f,e.element=l;break}l=A(l)}}}}}};function li(t){var i=t.prepared&&t.prepared.name;if(!i)return null;var e=t.interactable.options;return e[i].hold||e[i].delay}var hi={id:"auto-start/hold",install:function(t){var i=t.defaults;t.usePlugin(ci),i.perAction.hold=0,i.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var i=t.interaction,e=li(i);e>0&&(i.autoStartHoldTimer=setTimeout((function(){i.start(i.prepared,i.interactable,i.element)}),e))},"interactions:move":function(t){var i=t.interaction;i.autoStartHoldTimer&&i.pointerWasMoved&&!t.duplicate&&(clearTimeout(i.autoStartHoldTimer),i.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var i=t.interaction;li(i)>0&&(i.prepared.name=null)}},getHoldDuration:li},fi=hi,vi={id:"auto-start",install:function(t){t.usePlugin(ci),t.usePlugin(fi),t.usePlugin(ui)}},di=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):w.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function pi(t){var i=t.interaction;i.interactable&&i.interactable.checkAndPreventDefault(t.event)}var gi={id:"core/interactablePreventDefault",install:function(t){var i=t.Interactable;i.prototype.preventDefault=di,i.prototype.checkAndPreventDefault=function(i){return function(t,i,e){var n=t.options.preventDefault;if("never"!==n)if("always"!==n){if(i.events.supportsPassive&&/^touch(start|move)$/.test(e.type)){var r=y(e.target).document,o=i.getDocOptions(r);if(!o||!o.events||!1!==o.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(e.type)||w.element(e.target)&&R(e.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||e.preventDefault()}else e.preventDefault()}(this,t,i)},t.interactions.docEvents.push({type:"dragstart",listener:function(i){for(var e=0,n=t.interactions.list;e<n.length;e++){var r=n[e];if(r.element&&(r.element===i.target||D(r.element,i.target)))return void r.interactable.checkAndPreventDefault(i)}}})},listeners:["down","move","up","cancel"].reduce((function(t,i){return t["interactions:".concat(i)]=pi,t}),{})};function mi(t,i){if(i.phaselessTypes[t])return!0;for(var e in i.map)if(0===t.indexOf(e)&&t.substr(e.length)in i.phases)return!0;return!1}function yi(t){var i={};for(var e in t){var n=t[e];i[e]=w.plainObject(n)?yi(n):w.array(n)?mt(n):n}return i}var bi=function(){function t(i){n(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=i,this.result=xi(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return o(t,[{key:"start",value:function(t,i){var e,n,r=t.phase,o=this.interaction,a=function(t){var i=t.interactable.options[t.prepared.name],e=i.modifiers;return e&&e.length?e:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(t){var e=i[t];return e&&e.enabled&&{options:e,methods:e._methods}})).filter((function(t){return!!t}))}(o);this.prepareStates(a),this.startEdges=V({},o.edges),this.edges=V({},this.startEdges),this.startOffset=(n=i,(e=o.rect)?{left:n.x-e.left,top:n.y-e.top,right:e.right-n.x,bottom:e.bottom-n.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var s=this.fillArg({phase:r,pageCoords:i,preEnd:!1});return this.result=xi(),this.startAll(s),this.result=this.setAll(s)}},{key:"fillArg",value:function(t){var i=this.interaction;return t.interaction=i,t.interactable=i.interactable,t.element=i.element,t.rect||(t.rect=i.rect),t.edges||(t.edges=this.startEdges),t.startOffset=this.startOffset,t}},{key:"startAll",value:function(t){for(var i=0,e=this.states;i<e.length;i++){var n=e[i];n.methods.start&&(t.state=n,n.methods.start(t))}}},{key:"setAll",value:function(t){var i=t.phase,e=t.preEnd,n=t.skipModifiers,r=t.rect,o=t.edges;t.coords=V({},t.pageCoords),t.rect=V({},r),t.edges=V({},o);for(var a=n?this.states.slice(n):this.states,s=xi(t.coords,t.rect),c=0;c<a.length;c++){var u,l=a[c],h=l.options,f=V({},t.coords),v=null;null!=(u=l.methods)&&u.set&&this.shouldDo(h,e,i)&&(t.state=l,v=l.methods.set(t),K(t.edges,t.rect,{x:t.coords.x-f.x,y:t.coords.y-f.y})),s.eventProps.push(v)}V(this.edges,t.edges),s.delta.x=t.coords.x-t.pageCoords.x,s.delta.y=t.coords.y-t.pageCoords.y,s.rectDelta.left=t.rect.left-r.left,s.rectDelta.right=t.rect.right-r.right,s.rectDelta.top=t.rect.top-r.top,s.rectDelta.bottom=t.rect.bottom-r.bottom;var d=this.result.coords,p=this.result.rect;return d&&p&&(s.changed=s.rect.left!==p.left||s.rect.right!==p.right||s.rect.top!==p.top||s.rect.bottom!==p.bottom||d.x!==s.coords.x||d.y!==s.coords.y),s}},{key:"applyToInteraction",value:function(t){var i=this.interaction,e=i.coords.cur,n=i.coords.start,r=this.result,o=this.startDelta,a=r.delta;"start"===t.phase&&V(this.startDelta,r.delta);for(var s=0,c=[[n,o],[e,a]];s<c.length;s++){var u=c[s],l=u[0],h=u[1];l.page.x+=h.x,l.page.y+=h.y,l.client.x+=h.x,l.client.y+=h.y}var f=this.result.rectDelta,v=t.rect||i.rect;v.left+=f.left,v.right+=f.right,v.top+=f.top,v.bottom+=f.bottom,v.width=v.right-v.left,v.height=v.bottom-v.top}},{key:"setAndApply",value:function(t){var i=this.interaction,e=t.skipModifiers,n=this.setAll(this.fillArg({preEnd:t.preEnd,phase:t.phase,pageCoords:t.modifiedCoords||i.coords.cur.page}));if(this.result=n,!n.changed&&(!e||e<this.states.length)&&i.interacting())return!1;if(t.modifiedCoords){var r=i.coords.cur.page,o={x:t.modifiedCoords.x-r.x,y:t.modifiedCoords.y-r.y};n.coords.x+=o.x,n.coords.y+=o.y,n.delta.x+=o.x,n.delta.y+=o.y}this.applyToInteraction(t)}},{key:"beforeEnd",value:function(t){var i=t.interaction,e=t.event,n=this.states;if(n&&n.length){for(var r=!1,o=0;o<n.length;o++){var a=n[o];t.state=a;var s=a.options,c=a.methods,u=c.beforeEnd&&c.beforeEnd(t);if(u)return this.endResult=u,!1;r=r||!r&&this.shouldDo(s,!0,t.phase,!0)}r&&i.move({event:e,preEnd:!0})}}},{key:"stop",value:function(t){var i=t.interaction;if(this.states&&this.states.length){var e=V({states:this.states,interactable:i.interactable,element:i.element,rect:null},t);this.fillArg(e);for(var n=0,r=this.states;n<r.length;n++){var o=r[n];e.state=o,o.methods.stop&&o.methods.stop(e)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(t){this.states=[];for(var i=0;i<t.length;i++){var e=t[i];this.states.push({options:e.options,methods:e.methods,index:i,name:e.name})}return this.states}},{key:"restoreInteractionCoords",value:function(t){var i=t.interaction,e=i.coords,n=i.rect,r=i.modification;if(r.result){for(var o=r.result,a=o.rectDelta,s=0,c=[[e.start,r.startDelta],[e.cur,o.delta]];s<c.length;s++){var u=c[s],l=u[0],h=u[1];l.page.x-=h.x,l.page.y-=h.y,l.client.x-=h.x,l.client.y-=h.y}n.left-=a.left,n.right-=a.right,n.top-=a.top,n.bottom-=a.bottom}}},{key:"shouldDo",value:function(t,i,e,n){return!(!t||!1===t.enabled||n&&!t.endOnly||t.endOnly&&!i||"start"===e&&!t.setStart)}},{key:"copyFrom",value:function(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.startEdges=t.startEdges,this.edges=t.edges,this.states=t.states.map((function(t){return yi(t)})),this.result=xi(V({},t.result.coords),V({},t.result.rect))}},{key:"destroy",value:function(){for(var t in this)this[t]=null}}]),t}();function xi(t,i){return{rect:i,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function wi(t,i){var e=t.defaults,n={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},r=function(t){var r=t||{};for(var o in r.enabled=!1!==r.enabled,e)o in r||(r[o]=e[o]);var a={options:r,methods:n,name:i,enable:function(){return r.enabled=!0,a},disable:function(){return r.enabled=!1,a}};return a};return i&&"string"==typeof i&&(r._defaults=e,r._methods=n),r}function ki(t){var i=t.interaction.modification.result;i&&(t.iEvent.modifiers=i.eventProps)}var zi={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var i=t.interaction;i.modification=new bi(i)},"interactions:before-action-start":function(t){var i=t.interaction,e=t.interaction.modification;e.start(t,i.coords.start.page),i.edges=e.edges,e.applyToInteraction(t)},"interactions:before-action-move":function(t){var i=t.interaction,e=i.modification,n=e.setAndApply(t);return i.edges=e.edges,n},"interactions:before-action-end":function(t){var i=t.interaction,e=i.modification,n=e.beforeEnd(t);return i.edges=e.startEdges,n},"interactions:action-start":ki,"interactions:action-move":ki,"interactions:action-end":ki,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},Mi=zi,Ei={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Oi=function(t){s(e,t);var i=h(e);function e(t,r,o,a,s,c,u){var h;n(this,e),(h=i.call(this,t)).relatedTarget=null,h.screenX=void 0,h.screenY=void 0,h.button=void 0,h.buttons=void 0,h.ctrlKey=void 0,h.shiftKey=void 0,h.altKey=void 0,h.metaKey=void 0,h.page=void 0,h.client=void 0,h.delta=void 0,h.rect=void 0,h.x0=void 0,h.y0=void 0,h.t0=void 0,h.dt=void 0,h.duration=void 0,h.clientX0=void 0,h.clientY0=void 0,h.velocity=void 0,h.speed=void 0,h.swipe=void 0,h.axes=void 0,h.preEnd=void 0;var f=t.interactable,v=(f&&f.options||Ei).deltaSource,d=W(f,s=s||t.element,o),p="start"===a,g="end"===a,m=p?l(h):t.prevEvent,y=p?t.coords.start:g?{page:m.page,client:m.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;return h.page=V({},y.page),h.client=V({},y.client),h.rect=V({},t.rect),h.timeStamp=y.timeStamp,g||(h.page.x-=d.x,h.page.y-=d.y,h.client.x-=d.x,h.client.y-=d.y),h.ctrlKey=r.ctrlKey,h.altKey=r.altKey,h.shiftKey=r.shiftKey,h.metaKey=r.metaKey,h.button=r.button,h.buttons=r.buttons,h.target=s,h.currentTarget=s,h.preEnd=c,h.type=u||o+(a||""),h.interactable=f,h.t0=p?t.pointers[t.pointers.length-1].downTime:m.t0,h.x0=t.coords.start.page.x-d.x,h.y0=t.coords.start.page.y-d.y,h.clientX0=t.coords.start.client.x-d.x,h.clientY0=t.coords.start.client.y-d.y,h.delta=p||g?{x:0,y:0}:{x:h[v].x-m[v].x,y:h[v].y-m[v].y},h.dt=t.coords.delta.timeStamp,h.duration=h.timeStamp-h.t0,h.velocity=V({},t.coords.velocity[v]),h.speed=Z(h.velocity.x,h.velocity.y),h.swipe=g||"inertiastart"===a?h.getSwipe():null,h}return o(e,[{key:"getSwipe",value:function(){var t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;var i=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;i<0&&(i+=360);var e=112.5<=i&&i<247.5,n=202.5<=i&&i<337.5;return{up:n,down:!n&&22.5<=i&&i<157.5,left:e,right:!e&&(292.5<=i||i<67.5),angle:i,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),e}(pt);Object.defineProperties(Oi.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var Si=o((function t(i,e,r,o,a){n(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=i,this.pointer=e,this.event=r,this.downTime=o,this.downTarget=a})),Ti=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),ji=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),Ii=0,Pi=function(){function t(i){var e=this,r=i.pointerType,o=i.scopeFire;n(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=Gt((function(t){this.move(t)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Ii++,this._scopeFire=o,this.pointerType=r;var a=this;this._proxy={};var s=function(t){Object.defineProperty(e._proxy,t,{get:function(){return a[t]}})};for(var c in Ti)s(c);var u=function(t){Object.defineProperty(e._proxy,t,{value:function(){return a[t].apply(a,arguments)}})};for(var l in ji)u(l);this._scopeFire("interactions:new",{interaction:this})}return o(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(t,i,e){var n=this.updatePointer(t,i,e,!0);this._scopeFire("interactions:down",{pointer:t,event:i,eventTarget:e,pointerIndex:n,pointerInfo:this.pointers[n],type:"down",interaction:this})}},{key:"start",value:function(t,i,e){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!i.options[t.name].enabled)&&(Kt(this.prepared,t),this.interactable=i,this.element=e,this.rect=i.getRect(e),this.edges=this.prepared.edges?V({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(t,i,e){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,i,e,!1);var n,r,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(this.pointerWasMoved=Z(n=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y)>this.pointerMoveTolerance);var a,s,c,u=this.getPointerIndex(t),l={pointer:t,pointerIndex:u,pointerInfo:this.pointers[u],event:i,type:"move",eventTarget:e,dx:n,dy:r,duplicate:o,interaction:this};o||(a=this.coords.velocity,s=this.coords.delta,c=Math.max(s.timeStamp/1e3,.001),a.page.x=s.page.x/c,a.page.y=s.page.y/c,a.client.x=s.client.x/c,a.client.y=s.client.y/c,a.timeStamp=c),this._scopeFire("interactions:move",l),o||this.simulation||(this.interacting()&&(l.type=null,this.move(l)),this.pointerWasMoved&&et(this.coords.prev,this.coords.cur))}},{key:"move",value:function(t){t&&t.event||nt(this.coords.delta),(t=V({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}},{key:"pointerUp",value:function(t,i,e,n){var r=this.getPointerIndex(t);-1===r&&(r=this.updatePointer(t,i,e,!1));var o=/cancel$/i.test(i.type)?"cancel":"up";this._scopeFire("interactions:".concat(o),{pointer:t,pointerIndex:r,pointerInfo:this.pointers[r],event:i,eventTarget:e,type:o,curEventTarget:n,interaction:this}),this.simulation||this.end(i),this.removePointer(t,i)}},{key:"documentBlur",value:function(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}},{key:"end",value:function(t){var i;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(i=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===i&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(t){var i=st(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:yt(this.pointers,(function(t){return t.id===i}))}},{key:"getPointerInfo",value:function(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function(t,i,e,n){var r,o,a,s=st(t),c=this.getPointerIndex(t),u=this.pointers[c];return n=!1!==n&&(n||/(down|start)$/i.test(i.type)),u?u.pointer=t:(u=new Si(s,t,i,null,null),c=this.pointers.length,this.pointers.push(u)),function(t,i,e){var n=i.length>1?ut(i):i[0];at(n,t.page),function(t,i){i=i||{},P.isOperaMobile&&rt(t)?ot("screen",t,i):ot("client",t,i)}(n,t.client),t.timeStamp=e}(this.coords.cur,this.pointers.map((function(t){return t.pointer})),this._now()),(r=this.coords.delta).page.x=(a=this.coords.cur).page.x-(o=this.coords.prev).page.x,r.page.y=a.page.y-o.page.y,r.client.x=a.client.x-o.client.x,r.client.y=a.client.y-o.client.y,r.timeStamp=a.timeStamp-o.timeStamp,n&&(this.pointerIsDown=!0,u.downTime=this.coords.cur.timeStamp,u.downTarget=e,it(this.downPointer,t),this.interacting()||(et(this.coords.start,this.coords.cur),et(this.coords.prev,this.coords.cur),this.downEvent=i,this.pointerWasMoved=!1)),this._updateLatestPointer(t,i,e),this._scopeFire("interactions:update-pointer",{pointer:t,event:i,eventTarget:e,down:n,pointerInfo:u,pointerIndex:c,interaction:this}),c}},{key:"removePointer",value:function(t,i){var e=this.getPointerIndex(t);-1!==e&&(this._scopeFire("interactions:remove-pointer",{pointer:t,event:i,eventTarget:null,pointerIndex:e,pointerInfo:this.pointers[e],interaction:this}),this.pointers.splice(e,1),this.pointerIsDown=!1)}},{key:"_updateLatestPointer",value:function(t,i,e){this._latestPointer.pointer=t,this._latestPointer.event=i,this._latestPointer.eventTarget=e}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(t,i,e,n){return new Oi(this,t,this.prepared.name,i,this.element,e,n)}},{key:"_fireEvent",value:function(t){var i;null==(i=this.interactable)||i.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}},{key:"_doPhase",value:function(t){var i=t.event,e=t.phase,n=t.preEnd,r=t.type,o=this.rect;if(o&&"move"===e&&(K(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-".concat(e),t))return!1;var a=t.iEvent=this._createPreparedEvent(i,e,n,r);return this._scopeFire("interactions:action-".concat(e),t),"start"===e&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-".concat(e),t),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Di(t){Ci(t.interaction)}function Ci(t){if(!function(t){return!(!t.offset.pending.x&&!t.offset.pending.y)}(t))return!1;var i=t.offset.pending;return Ri(t.coords.cur,i),Ri(t.coords.delta,i),K(t.edges,t.rect,i),i.x=0,i.y=0,!0}function Ai(t){var i=t.x,e=t.y;this.offset.pending.x+=i,this.offset.pending.y+=e,this.offset.total.x+=i,this.offset.total.y+=e}function Ri(t,i){var e=t.page,n=t.client,r=i.x,o=i.y;e.x+=r,e.y+=o,n.x+=r,n.y+=o}ji.offsetBy="";var _i={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Ai},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(t){t.pointerIsDown&&(Ri(t.coords.cur,t.offset.total),t.offset.pending.x=0,t.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Di,"interactions:before-action-move":Di,"interactions:before-action-end":function(t){var i=t.interaction;if(Ci(i))return i.move({offset:!0}),i.end(),!1},"interactions:stop":function(t){var i=t.interaction;i.offset.total.x=0,i.offset.total.y=0,i.offset.pending.x=0,i.offset.pending.y=0}}},Fi=_i,Li=function(){function t(i){n(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=i}return o(t,[{key:"start",value:function(t){var i=this.interaction,e=$i(i);if(!e||!e.enabled)return!1;var n=i.coords.velocity.client,r=Z(n.x,n.y),o=this.modification||(this.modification=new bi(i));if(o.copyFrom(i.modification),this.t0=i._now(),this.allowResume=e.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=i.coords.cur.page,this.modifierArg=o.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-i.coords.cur.timeStamp<50&&r>e.minSpeed&&r>e.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return i.modification.result.rect=null,i.offsetBy(this.targetOffset),i._doPhase({interaction:i,event:t,phase:"inertiastart"}),i.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),i.modification.result.rect=null,this.active=!0,i.simulation=this,!0}},{key:"startInertia",value:function(){var t=this,i=this.interaction.coords.velocity.client,e=$i(this.interaction),n=e.resistance,r=-Math.log(e.endSpeed/this.v0)/n;this.targetOffset={x:(i.x-r)/n,y:(i.y-r)/n},this.te=r,this.lambda_v0=n/this.v0,this.one_ve_v0=1-e.endSpeed/this.v0;var o=this.modification,a=this.modifierArg;a.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(a),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame((function(){return t.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var t=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return t.smoothEndTick()}))}},{key:"onNextFrame",value:function(t){var i=this;this.timeout=Bt((function(){i.active&&t()}))}},{key:"inertiaTick",value:function(){var t,i,e,n=this,r=this.interaction,o=$i(r).resistance,a=(r._now()-this.t0)/1e3;if(a<this.te){var s,c=1-(Math.exp(-o*a)-this.lambda_v0)/this.one_ve_v0;this.isModified?(t=this.targetOffset.y,i=this.modifiedOffset.y,s={x:Xi(e=c,0,this.targetOffset.x,this.modifiedOffset.x),y:Xi(e,0,t,i)}):s={x:this.targetOffset.x*c,y:this.targetOffset.y*c};var u={x:s.x-this.currentOffset.x,y:s.y-this.currentOffset.y};this.currentOffset.x+=u.x,this.currentOffset.y+=u.y,r.offsetBy(u),r.move(),this.onNextFrame((function(){return n.inertiaTick()}))}else r.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var t=this,i=this.interaction,e=i._now()-this.t0,n=$i(i).smoothEndDuration;if(e<n){var r={x:Yi(e,0,this.targetOffset.x,n),y:Yi(e,0,this.targetOffset.y,n)},o={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=o.x,this.currentOffset.y+=o.y,i.offsetBy(o),i.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return t.smoothEndTick()}))}else i.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(t){var i=t.pointer,e=t.event,n=t.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(i,e,n,!0),r._doPhase({interaction:r,event:e,phase:"resume"}),et(r.coords.prev,r.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Xt(this.timeout)}}]),t}();function $i(t){var i=t.interactable,e=t.prepared;return i&&i.options&&e.name&&i.options[e.name].inertia}var Bi={id:"inertia",before:["modifiers","actions"],install:function(t){var i=t.defaults;t.usePlugin(Fi),t.usePlugin(Mi),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,i.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var i=t.interaction;i.inertia=new Li(i)},"interactions:before-action-end":function(t){var i=t.interaction;return(!i._interacting||i.simulation||!i.inertia.start(t.event))&&null},"interactions:down":function(t){var i=t.interaction,e=i.inertia;if(e.active)for(var n=t.eventTarget;w.element(n);){if(n===i.element){e.resume(t);break}n=A(n)}},"interactions:stop":function(t){var i=t.interaction.inertia;i.active&&i.stop()},"interactions:before-action-resume":function(t){var i=t.interaction.modification;i.stop(t),i.start(t,t.interaction.coords.cur.page),i.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":ki,"interactions:action-inertiastart":ki,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function Xi(t,i,e,n){var r=1-t;return r*r*i+2*r*t*e+t*t*n}function Yi(t,i,e,n){return-e*(t/=n)*(t-2)+i}var Ui=Bi;function Vi(t,i){for(var e=0;e<i.length;e++){var n=i[e];if(t.immediatePropagationStopped)break;n(t)}}var Ni=function(){function t(i){n(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=V({},i||{})}return o(t,[{key:"fire",value:function(t){var i,e=this.global;(i=this.types[t.type])&&Vi(t,i),!t.propagationStopped&&e&&(i=e[t.type])&&Vi(t,i)}},{key:"on",value:function(t,i){var e=J(t,i);for(t in e)this.types[t]=gt(this.types[t]||[],e[t])}},{key:"off",value:function(t,i){var e=J(t,i);for(t in e){var n=this.types[t];if(n&&n.length)for(var r=0,o=e[t];r<o.length;r++){var a=n.indexOf(o[r]);-1!==a&&n.splice(a,1)}}}},{key:"getRect",value:function(){return null}}]),t}(),qi=function(){function t(i){n(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,it(this,i)}return o(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function Hi(t){return w.object(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function Gi(t,i){return t===i||("boolean"==typeof t?!!i.capture===t&&0==!!i.passive:!!t.capture==!!i.capture&&!!t.passive==!!i.passive)}var Ki={id:"events",install:function(t){var i,e=[],n={},r=[],o={add:a,remove:s,addDelegate:function(t,i,e,o,s){var l=Hi(s);if(!n[e]){n[e]=[];for(var h=0;h<r.length;h++){var f=r[h];a(f,e,c),a(f,e,u,!0)}}var v=n[e],d=bt(v,(function(e){return e.selector===t&&e.context===i}));d||v.push(d={selector:t,context:i,listeners:[]}),d.listeners.push({func:o,options:l})},removeDelegate:function(t,i,e,r,o){var a,l=Hi(o),h=n[e],f=!1;if(h)for(a=h.length-1;a>=0;a--){var v=h[a];if(v.selector===t&&v.context===i){for(var d=v.listeners,p=d.length-1;p>=0;p--){var g=d[p];if(g.func===r&&Gi(g.options,l)){d.splice(p,1),d.length||(h.splice(a,1),s(i,e,c),s(i,e,u,!0)),f=!0;break}}if(f)break}}},delegateListener:c,delegateUseCapture:u,delegatedEvents:n,documents:r,targets:e,supportsOptions:!1,supportsPassive:!1};function a(t,i,n,r){if(t.addEventListener){var a=Hi(r),s=bt(e,(function(i){return i.eventTarget===t}));s||e.push(s={eventTarget:t,events:{}}),s.events[i]||(s.events[i]=[]),bt(s.events[i],(function(t){return t.func===n&&Gi(t.options,a)}))||(t.addEventListener(i,n,o.supportsOptions?a:a.capture),s.events[i].push({func:n,options:a}))}}function s(t,i,n,r){if(t.addEventListener&&t.removeEventListener){var a=yt(e,(function(i){return i.eventTarget===t})),c=e[a];if(c&&c.events)if("all"!==i){var u=!1,l=c.events[i];if(l){if("all"===n){for(var h=l.length-1;h>=0;h--){var f=l[h];s(t,i,f.func,f.options)}return}for(var v=Hi(r),d=0;d<l.length;d++){var p=l[d];if(p.func===n&&Gi(p.options,v)){t.removeEventListener(i,n,o.supportsOptions?v:v.capture),l.splice(d,1),0===l.length&&(delete c.events[i],u=!0);break}}}u&&!Object.keys(c.events).length&&e.splice(a,1)}else for(i in c.events)c.events.hasOwnProperty(i)&&s(t,i,"all")}}function c(t,i){for(var e=Hi(i),r=new qi(t),o=n[t.type],a=dt(t)[0],s=a;w.element(s);){for(var c=0;c<o.length;c++){var u=o[c],l=u.context;if(R(s,u.selector)&&D(l,a)&&D(l,s)){var h=u.listeners;r.currentTarget=s;for(var f=0;f<h.length;f++){var v=h[f];Gi(v.options,e)&&v.func(r)}}}s=A(s)}}function u(t){return c(t,!0)}return null==(i=t.document)||i.createElement("div").addEventListener("test",null,{get capture(){return o.supportsOptions=!0},get passive(){return o.supportsPassive=!0}}),t.events=o,o}},Wi={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var i=0,e=Wi.methodOrder;i<e.length;i++){var n=Wi[e[i]](t);if(n)return n}return null},simulationResume:function(t){var i=t.pointerType,e=t.eventTarget,n=t.scope;if(!/down|start/i.test(t.eventType))return null;for(var r=0,o=n.interactions.list;r<o.length;r++){var a=o[r],s=e;if(a.simulation&&a.simulation.allowResume&&a.pointerType===i)for(;s;){if(s===a.element)return a;s=A(s)}}return null},mouseOrPen:function(t){var i,e=t.pointerId,n=t.pointerType,r=t.eventType,o=t.scope;if("mouse"!==n&&"pen"!==n)return null;for(var a=0,s=o.interactions.list;a<s.length;a++){var c=s[a];if(c.pointerType===n){if(c.simulation&&!Ji(c,e))continue;if(c.interacting())return c;i||(i=c)}}if(i)return i;for(var u=0,l=o.interactions.list;u<l.length;u++){var h=l[u];if(!(h.pointerType!==n||/down/i.test(r)&&h.simulation))return h}return null},hasPointer:function(t){for(var i=t.pointerId,e=0,n=t.scope.interactions.list;e<n.length;e++){var r=n[e];if(Ji(r,i))return r}return null},idle:function(t){for(var i=t.pointerType,e=0,n=t.scope.interactions.list;e<n.length;e++){var r=n[e];if(1===r.pointers.length){var o=r.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&i===r.pointerType)return r}return null}};function Ji(t,i){return t.pointers.some((function(t){return t.id===i}))}var Qi=Wi,Zi=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function te(t,i){return function(e){var n=i.interactions.list,r=vt(e),o=dt(e),a=o[0],s=o[1],c=[];if(/^touch/.test(e.type)){i.prevTouchTime=i.now();for(var u=0,l=e.changedTouches;u<l.length;u++){var h=l[u],f={pointer:h,pointerId:st(h),pointerType:r,eventType:e.type,eventTarget:a,curEventTarget:s,scope:i},v=ie(f);c.push([f.pointer,f.eventTarget,f.curEventTarget,v])}}else{var d=!1;if(!P.supportsPointerEvent&&/mouse/.test(e.type)){for(var p=0;p<n.length&&!d;p++)d="mouse"!==n[p].pointerType&&n[p].pointerIsDown;d=d||i.now()-i.prevTouchTime<500||0===e.timeStamp}if(!d){var g={pointer:e,pointerId:st(e),pointerType:r,eventType:e.type,curEventTarget:s,eventTarget:a,scope:i},m=ie(g);c.push([g.pointer,g.eventTarget,g.curEventTarget,m])}}for(var y=0;y<c.length;y++){var b=c[y];b[3][t](b[0],e,b[1],b[2])}}}function ie(t){var i=t.pointerType,e=t.scope,n={interaction:Qi.search(t),searchDetails:t};return e.fire("interactions:find",n),n.interaction||e.interactions.new({pointerType:i})}function ee(t,i){var e=t.doc,n=t.scope,r=t.options,o=n.interactions.docEvents,a=n.events,s=a[i];for(var c in n.browser.isIOS&&!r.events&&(r.events={passive:!1}),a.delegatedEvents)s(e,c,a.delegateListener),s(e,c,a.delegateUseCapture,!0);for(var u=r&&r.events,l=0;l<o.length;l++){var h=o[l];s(e,h.type,h.listener,u)}}var ne={id:"core/interactions",install:function(t){for(var i={},e=0;e<Zi.length;e++){var r=Zi[e];i[r]=te(r,t)}var a,c=P.pEventTypes;function u(){for(var i=0,e=t.interactions.list;i<e.length;i++){var n=e[i];if(n.pointerIsDown&&"touch"===n.pointerType&&!n._interacting)for(var r=function(){var i=a[o];t.documents.some((function(t){return D(t.doc,i.downTarget)}))||n.removePointer(i.pointer,i.event)},o=0,a=n.pointers;o<a.length;o++)r()}}(a=j.PointerEvent?[{type:c.down,listener:u},{type:c.down,listener:i.pointerDown},{type:c.move,listener:i.pointerMove},{type:c.up,listener:i.pointerUp},{type:c.cancel,listener:i.pointerUp}]:[{type:"mousedown",listener:i.pointerDown},{type:"mousemove",listener:i.pointerMove},{type:"mouseup",listener:i.pointerUp},{type:"touchstart",listener:u},{type:"touchstart",listener:i.pointerDown},{type:"touchmove",listener:i.pointerMove},{type:"touchend",listener:i.pointerUp},{type:"touchcancel",listener:i.pointerUp}]).push({type:"blur",listener:function(i){for(var e=0,n=t.interactions.list;e<n.length;e++)n[e].documentBlur(i)}}),t.prevTouchTime=0,t.Interaction=function(i){s(r,i);var e=h(r);function r(){return n(this,r),e.apply(this,arguments)}return o(r,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(i){t.interactions.pointerMoveTolerance=i}},{key:"_now",value:function(){return t.now()}}]),r}(Pi),t.interactions={list:[],new:function(i){i.scopeFire=function(i,e){return t.fire(i,e)};var e=new t.Interaction(i);return t.interactions.list.push(e),e},listeners:i,docEvents:a,pointerMoveTolerance:1},t.usePlugin(gi)},listeners:{"scope:add-document":function(t){return ee(t,"add")},"scope:remove-document":function(t){return ee(t,"remove")},"interactable:unset":function(t,i){for(var e=t.interactable,n=i.interactions.list.length-1;n>=0;n--){var r=i.interactions.list[n];r.interactable===e&&(r.stop(),i.fire("interactions:destroy",{interaction:r}),r.destroy(),i.interactions.list.length>2&&i.interactions.list.splice(n,1))}}},onDocSignal:ee,doOnInteractions:te,methodNames:Zi},re=ne,oe=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(oe||{}),ae=function(){function t(i,e,r,o){n(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Ni,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=e.actions,this.target=i,this._context=e.context||r,this._win=y(U(i)?this._context:i),this._doc=this._win.document,this._scopeEvents=o,this.set(e)}return o(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(t,i){return w.func(i.onstart)&&this.on("".concat(t,"start"),i.onstart),w.func(i.onmove)&&this.on("".concat(t,"move"),i.onmove),w.func(i.onend)&&this.on("".concat(t,"end"),i.onend),w.func(i.oninertiastart)&&this.on("".concat(t,"inertiastart"),i.oninertiastart),this}},{key:"updatePerActionListeners",value:function(t,i,e){var n,r=this,o=null==(n=this._actions.map[t])?void 0:n.filterEventType,a=function(t){return(null==o||o(t))&&mi(t,r._actions)};(w.array(i)||w.object(i))&&this._onOff(oe.Off,t,i,void 0,a),(w.array(e)||w.object(e))&&this._onOff(oe.On,t,e,void 0,a)}},{key:"setPerAction",value:function(t,i){var e=this._defaults;for(var n in i){var r=n,o=this.options[t],a=i[r];"listeners"===r&&this.updatePerActionListeners(t,o.listeners,a),w.array(a)?o[r]=mt(a):w.plainObject(a)?(o[r]=V(o[r]||{},yi(a)),w.object(e.perAction[r])&&"enabled"in e.perAction[r]&&(o[r].enabled=!1!==a.enabled)):w.bool(a)&&w.object(e.perAction[r])?o[r].enabled=a:o[r]=a}}},{key:"getRect",value:function(t){return t=t||(w.element(this.target)?this.target:null),w.string(this.target)&&(t=t||this._context.querySelector(this.target)),X(t)}},{key:"rectChecker",value:function(t){var i=this;return w.func(t)?(this.getRect=function(e){var n=V({},t.apply(i,e));return"width"in n||(n.width=n.right-n.left,n.height=n.bottom-n.top),n},this):null===t?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(t,i){if(U(i)||w.object(i)){for(var e in this.options[t]=i,this._actions.map)this.options[e][t]=i;return this}return this.options[t]}},{key:"origin",value:function(t){return this._backCompatOption("origin",t)}},{key:"deltaSource",value:function(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var t=this.target;return w.string(t)?Array.from(this._context.querySelectorAll(t)):w.func(t)&&t.getAllElements?t.getAllElements():w.element(t)?[t]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(t){return this._context===t.ownerDocument||D(this._context,t)}},{key:"testIgnoreAllow",value:function(t,i,e){return!this.testIgnore(t.ignoreFrom,i,e)&&this.testAllow(t.allowFrom,i,e)}},{key:"testAllow",value:function(t,i,e){return!t||!!w.element(e)&&(w.string(t)?L(e,t,i):!!w.element(t)&&D(t,e))}},{key:"testIgnore",value:function(t,i,e){return!(!t||!w.element(e))&&(w.string(t)?L(e,t,i):!!w.element(t)&&D(t,e))}},{key:"fire",value:function(t){return this.events.fire(t),this}},{key:"_onOff",value:function(t,i,e,n,r){w.object(i)&&!w.array(i)&&(n=e,e=null);var o=J(i,e,r);for(var a in o){"wheel"===a&&(a=P.wheelEvent);for(var s=0,c=o[a];s<c.length;s++){var u=c[s];mi(a,this._actions)?this.events[t===oe.On?"on":"off"](a,u):w.string(this.target)?this._scopeEvents[t===oe.On?"addDelegate":"removeDelegate"](this.target,this._context,a,u,n):this._scopeEvents[t===oe.On?"add":"remove"](this.target,a,u,n)}}return this}},{key:"on",value:function(t,i,e){return this._onOff(oe.On,t,i,e)}},{key:"off",value:function(t,i,e){return this._onOff(oe.Off,t,i,e)}},{key:"set",value:function(t){var i=this._defaults;for(var e in w.object(t)||(t={}),this.options=yi(i.base),this._actions.methodDict){var n=e,r=this._actions.methodDict[n];this.options[n]={},this.setPerAction(n,V(V({},i.perAction),i.actions[n])),this[r](t[n])}for(var o in t)"getRect"!==o?w.func(this[o])&&this[o](t[o]):this.rectChecker(t.getRect);return this}},{key:"unset",value:function(){if(w.string(this.target))for(var t in this._scopeEvents.delegatedEvents)for(var i=this._scopeEvents.delegatedEvents[t],e=i.length-1;e>=0;e--){var n=i[e],r=n.listeners;n.selector===this.target&&n.context===this._context&&i.splice(e,1);for(var o=r.length-1;o>=0;o--)this._scopeEvents.removeDelegate(this.target,this._context,t,r[o][0],r[o][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),se=function(){function t(i){var e=this;n(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=i,i.addListeners({"interactable:unset":function(t){var i=t.interactable,n=i.target,r=w.string(n)?e.selectorMap[n]:n[e.scope.id],o=yt(r,(function(t){return t===i}));r.splice(o,1)}})}return o(t,[{key:"new",value:function(t,i){i=V(i||{},{actions:this.scope.actions});var e=new this.scope.Interactable(t,i,this.scope.document,this.scope.events);return this.scope.addDocument(e._doc),this.list.push(e),w.string(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(e)):(e.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(e)),this.scope.fire("interactable:new",{target:t,options:i,interactable:e,win:this.scope._win}),e}},{key:"getExisting",value:function(t,i){var e=i&&i.context||this.scope.document,n=w.string(t),r=n?this.selectorMap[t]:t[this.scope.id];if(r)return bt(r,(function(i){return i._context===e&&(n||i.inContext(t))}))}},{key:"forEachMatch",value:function(t,i){for(var e=0,n=this.list;e<n.length;e++){var r=n[e],o=void 0;if((w.string(r.target)?w.element(t)&&R(t,r.target):t===r.target)&&r.inContext(t)&&(o=i(r)),void 0!==o)return o}}}]),t}(),ce=function(){function t(){var i=this;n(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=P,this.defaults=yi(Ei),this.Eventable=Ni,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(t){var i=function i(e,n){var r=t.interactables.getExisting(e,n);return r||((r=t.interactables.new(e,n)).events.global=i.globalEvents),r};return i.getPointerAverage=ut,i.getTouchBBox=lt,i.getTouchDistance=ht,i.getTouchAngle=ft,i.getElementRect=X,i.getElementClientRect=B,i.matchesSelector=R,i.closest=C,i.globalEvents={},i.version="1.10.27",i.scope=t,i.use=function(t,i){return this.scope.usePlugin(t,i),this},i.isSet=function(t,i){return!!this.scope.interactables.get(t,i&&i.context)},i.on=Gt((function(t,i,e){if(w.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),w.array(t)){for(var n=0,r=t;n<r.length;n++)this.on(r[n],i,e);return this}if(w.object(t)){for(var o in t)this.on(o,t[o],i);return this}return mi(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(i):this.globalEvents[t]=[i]:this.scope.events.add(this.scope.document,t,i,{options:e}),this}),"The interact.on() method is being deprecated"),i.off=Gt((function(t,i,e){if(w.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),w.array(t)){for(var n=0,r=t;n<r.length;n++)this.off(r[n],i,e);return this}if(w.object(t)){for(var o in t)this.off(o,t[o],i);return this}var a;return mi(t,this.scope.actions)?t in this.globalEvents&&-1!==(a=this.globalEvents[t].indexOf(i))&&this.globalEvents[t].splice(a,1):this.scope.events.remove(this.scope.document,t,i,e),this}),"The interact.off() method is being deprecated"),i.debug=function(){return this.scope},i.supportsTouch=function(){return P.supportsTouch},i.supportsPointerEvent=function(){return P.supportsPointerEvent},i.stop=function(){for(var t=0,i=this.scope.interactions.list;t<i.length;t++)i[t].stop();return this},i.pointerMoveTolerance=function(t){return w.number(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},i.addDocument=function(t,i){this.scope.addDocument(t,i)},i.removeDocument=function(t){this.scope.removeDocument(t)},i}(this),this.InteractEvent=Oi,this.Interactable=void 0,this.interactables=new se(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(t){return i.removeDocument(t.target)};var e=this;this.Interactable=function(t){s(r,t);var i=h(r);function r(){return n(this,r),i.apply(this,arguments)}return o(r,[{key:"_defaults",get:function(){return e.defaults}},{key:"set",value:function(t){return f(c(r.prototype),"set",this).call(this,t),e.fire("interactable:set",{options:t,interactable:this}),this}},{key:"unset",value:function(){f(c(r.prototype),"unset",this).call(this);var t=e.interactables.list.indexOf(this);t<0||(e.interactables.list.splice(t,1),e.fire("interactable:unset",{interactable:this}))}}]),r}(ae)}return o(t,[{key:"addListeners",value:function(t,i){this.listenerMaps.push({id:i,map:t})}},{key:"fire",value:function(t,i){for(var e=0,n=this.listenerMaps;e<n.length;e++){var r=n[e].map[t];if(r&&!1===r(i,this,t))return!1}}},{key:"init",value:function(t){return this.isInitialized?this:function(t,i){return t.isInitialized=!0,w.window(i)&&m(i),j.init(i),P.init(i),Yt(i),t.window=i,t.document=i.document,t.usePlugin(re),t.usePlugin(Ki),t}(this,t)}},{key:"pluginIsInstalled",value:function(t){var i=t.id;return i?!!this._plugins.map[i]:-1!==this._plugins.list.indexOf(t)}},{key:"usePlugin",value:function(t,i){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,i),t.listeners&&t.before){for(var e=0,n=this.listenerMaps.length,r=t.before.reduce((function(t,i){return t[i]=!0,t[ue(i)]=!0,t}),{});e<n;e++){var o=this.listenerMaps[e].id;if(o&&(r[o]||r[ue(o)]))break}this.listenerMaps.splice(e,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}},{key:"addDocument",value:function(t,i){if(-1!==this.getDocIndex(t))return!1;var e=y(t);i=i?V({},i):{},this.documents.push({doc:t,options:i}),this.events.documents.push(t),t!==this.document&&this.events.add(e,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:e,scope:this,options:i})}},{key:"removeDocument",value:function(t){var i=this.getDocIndex(t),e=y(t),n=this.documents[i].options;this.events.remove(e,"unload",this.onWindowUnload),this.documents.splice(i,1),this.events.documents.splice(i,1),this.fire("scope:remove-document",{doc:t,window:e,scope:this,options:n})}},{key:"getDocIndex",value:function(t){for(var i=0;i<this.documents.length;i++)if(this.documents[i].doc===t)return i;return-1}},{key:"getDocOptions",value:function(t){var i=this.getDocIndex(t);return-1===i?null:this.documents[i].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}();function ue(t){return t&&t.replace(/\/.*$/,"")}var le=new ce,he=le.interactStatic,fe="undefined"!=typeof globalThis?globalThis:window;le.init(fe);var ve=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var i=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(i){return i[0]in t||i[1]in t})),e=function(e,n){for(var r=t.limits,o=void 0===r?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:r,a=t.offset,s=void 0===a?{x:0,y:0}:a,c={range:t.range,grid:t,x:null,y:null},u=0;u<i.length;u++){var l=i[u],h=l[0],f=l[1],v=Math.round((e-s.x)/t[h]),d=Math.round((n-s.y)/t[f]);c[h]=Math.max(o.left,Math.min(o.right,v*t[h]+s.x)),c[f]=Math.max(o.top,Math.min(o.bottom,d*t[f]+s.y))}return c};return e.grid=t,e.coordFields=i,e}}),de={id:"snappers",install:function(t){var i=t.interactStatic;i.snappers=V(i.snappers||{},ve),i.createSnapGrid=i.snappers.grid}},pe=de,ge={start:function(t){var e=t.state,n=t.rect,r=t.edges,o=e.options,a=o.ratio,s=o.enabled,c=e.options,u=c.equalDelta,l=c.modifiers;"preserve"===a&&(a=n.width/n.height),e.startCoords=V({},t.pageCoords),e.startRect=V({},n),e.ratio=a,e.equalDelta=u;var h=e.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(e.xIsPrimaryAxis=!(!r.left&&!r.right),e.equalDelta){var f=(h.left?1:-1)*(h.top?1:-1);e.edgeSign={x:f,y:f}}else e.edgeSign={x:h.left?-1:1,y:h.top?-1:1};if(!1!==s&&V(r,h),null!=l&&l.length){var v=new bi(t.interaction);v.copyFrom(t.interaction.modification),v.prepareStates(l),e.subModification=v,v.startAll(i({},t))}},set:function(t){var e=t.state,n=t.rect,r=t.coords,o=e.linkedEdges,a=V({},r),s=e.equalDelta?me:ye;if(V(t.edges,o),s(e,e.xIsPrimaryAxis,r,n),!e.subModification)return null;var c=V({},n);K(o,c,{x:r.x-a.x,y:r.y-a.y});var u=e.subModification.setAll(i(i({},t),{},{rect:c,edges:o,pageCoords:r,prevCoords:r,prevRect:c})),l=u.delta;return u.changed&&(s(e,Math.abs(l.x)>Math.abs(l.y),u.coords,u.rect),V(r,u.coords)),u.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function me(t,i,e){var n=t.startCoords,r=t.edgeSign;i?e.y=n.y+(e.x-n.x)*r.y:e.x=n.x+(e.y-n.y)*r.x}function ye(t,i,e,n){var r=t.startRect,o=t.startCoords,a=t.ratio,s=t.edgeSign;i?e.y=o.y+(n.width/a-r.height)*s.y:e.x=o.x+(n.height*a-r.width)*s.x}var be=wi(ge,"aspectRatio"),xe=function(){};xe._defaults={};var we=xe;function ke(t,i,e){return w.func(t)?q(t,i.interactable,i.element,[e.x,e.y,i]):q(t,i.interactable,i.element)}var ze={start:function(t){var i=t.rect,e=t.startOffset,n=t.state,r=t.interaction,o=t.pageCoords,a=n.options,s=a.elementRect,c=V({left:0,top:0,right:0,bottom:0},a.offset||{});if(i&&s){var u=ke(a.restriction,r,o);if(u){var l=u.right-u.left-i.width,h=u.bottom-u.top-i.height;l<0&&(c.left+=l,c.right+=l),h<0&&(c.top+=h,c.bottom+=h)}c.left+=e.left-i.width*s.left,c.top+=e.top-i.height*s.top,c.right+=e.right-i.width*(1-s.right),c.bottom+=e.bottom-i.height*(1-s.bottom)}n.offset=c},set:function(t){var i=t.coords,e=t.state,n=e.offset,r=ke(e.options.restriction,t.interaction,i);if(r){var o=function(t){return!t||"left"in t&&"top"in t||((t=V({},t)).left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}(r);i.x=Math.max(Math.min(o.right-n.right,i.x),o.left+n.left),i.y=Math.max(Math.min(o.bottom-n.bottom,i.y),o.top+n.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Me=wi(ze,"restrict"),Ee={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Oe={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Se(t,i){for(var e=0,n=["top","left","bottom","right"];e<n.length;e++){var r=n[e];r in t||(t[r]=i[r])}return t}var Te={noInner:Ee,noOuter:Oe,start:function(t){var i,e=t.interaction,n=t.startOffset,r=t.state,o=r.options;o&&(i=H(ke(o.offset,e,e.coords.start.page))),r.offset={top:(i=i||{x:0,y:0}).y+n.top,left:i.x+n.left,bottom:i.y-n.bottom,right:i.x-n.right}},set:function(t){var i=t.coords,e=t.edges,n=t.interaction,r=t.state,o=r.offset,a=r.options;if(e){var s=V({},i),c=ke(a.inner,n,s)||{},u=ke(a.outer,n,s)||{};Se(c,Ee),Se(u,Oe),e.top?i.y=Math.min(Math.max(u.top+o.top,s.y),c.top+o.top):e.bottom&&(i.y=Math.max(Math.min(u.bottom+o.bottom,s.y),c.bottom+o.bottom)),e.left?i.x=Math.min(Math.max(u.left+o.left,s.x),c.left+o.left):e.right&&(i.x=Math.max(Math.min(u.right+o.right,s.x),c.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},je=wi(Te,"restrictEdges"),Ie=V({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},ze.defaults),Pe=wi({start:ze.start,set:ze.set,defaults:Ie},"restrictRect"),De={width:-1/0,height:-1/0},Ce={width:1/0,height:1/0},Ae=wi({start:function(t){return Te.start(t)},set:function(t){var i=t.interaction,e=t.state,n=t.rect,r=t.edges,o=e.options;if(r){var a=G(ke(o.min,i,t.coords))||De,s=G(ke(o.max,i,t.coords))||Ce;e.options={endOnly:o.endOnly,inner:V({},Te.noInner),outer:V({},Te.noOuter)},r.top?(e.options.inner.top=n.bottom-a.height,e.options.outer.top=n.bottom-s.height):r.bottom&&(e.options.inner.bottom=n.top+a.height,e.options.outer.bottom=n.top+s.height),r.left?(e.options.inner.left=n.right-a.width,e.options.outer.left=n.right-s.width):r.right&&(e.options.inner.right=n.left+a.width,e.options.outer.right=n.left+s.width),Te.set(t),e.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Re={start:function(t){var i,e=t.interaction,n=t.interactable,r=t.element,o=t.rect,a=t.state,s=t.startOffset,c=a.options,u=c.offsetWithOrigin?function(t){var i=t.interaction.element;return H(q(t.state.options.origin,null,null,[i]))||W(t.interactable,i,t.interaction.prepared.name)}(t):{x:0,y:0};if("startCoords"===c.offset)i={x:e.coords.start.page.x,y:e.coords.start.page.y};else{var l=q(c.offset,n,r,[e]);(i=H(l)||{x:0,y:0}).x+=u.x,i.y+=u.y}var h=c.relativePoints;a.offsets=o&&h&&h.length?h.map((function(t,e){return{index:e,relativePoint:t,x:s.left-o.width*t.x+i.x,y:s.top-o.height*t.y+i.y}})):[{index:0,relativePoint:null,x:i.x,y:i.y}]},set:function(t){var i=t.interaction,e=t.coords,n=t.state,r=n.options,o=n.offsets,a=W(i.interactable,i.element,i.prepared.name),s=V({},e),c=[];r.offsetWithOrigin||(s.x-=a.x,s.y-=a.y);for(var u=0,l=o;u<l.length;u++)for(var h=l[u],f=s.x-h.x,v=s.y-h.y,d=0,p=r.targets.length;d<p;d++){var g,m=r.targets[d];(g=w.func(m)?m(f,v,i._proxy,h,d):m)&&c.push({x:(w.number(g.x)?g.x:f)+h.x,y:(w.number(g.y)?g.y:v)+h.y,range:w.number(g.range)?g.range:r.range,source:m,index:d,offset:h})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<c.length;b++){var x=c[b],k=x.range,z=x.x-s.x,M=x.y-s.y,E=Z(z,M),O=E<=k;k===1/0&&y.inRange&&y.range!==1/0&&(O=!1),y.target&&!(O?y.inRange&&k!==1/0?E/k<y.distance/y.range:k===1/0&&y.range!==1/0||E<y.distance:!y.inRange&&E<y.distance)||(y.target=x,y.distance=E,y.range=k,y.inRange=O,y.delta.x=z,y.delta.y=M)}return y.inRange&&(e.x=y.target.x,e.y=y.target.y),n.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},_e=wi(Re,"snap"),Fe={start:function(t){var i=t.state,e=t.edges,n=i.options;if(!e)return null;t.state={options:{targets:null,relativePoints:[{x:e.left?0:1,y:e.top?0:1}],offset:n.offset||"self",origin:{x:0,y:0},range:n.range}},i.targetFields=i.targetFields||[["width","height"],["x","y"]],Re.start(t),i.offsets=t.state.offsets,t.state=i},set:function(t){var i=t.interaction,e=t.state,n=t.coords,r=e.options,o=e.offsets,a={x:n.x-o[0].x,y:n.y-o[0].y};e.options=V({},r),e.options.targets=[];for(var s=0,c=r.targets||[];s<c.length;s++){var u=c[s],l=void 0;if(l=w.func(u)?u(a.x,a.y,i):u){for(var h=0,f=e.targetFields;h<f.length;h++){var v=f[h],d=v[0],p=v[1];if(d in l||p in l){l.x=l[d],l.y=l[p];break}}e.options.targets.push(l)}}var g=Re.set(t);return e.options=r,g},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Le=wi(Fe,"snapSize"),$e={aspectRatio:be,restrictEdges:je,restrict:Me,restrictRect:Pe,restrictSize:Ae,snapEdges:wi({start:function(t){var i=t.edges;return i?(t.state.targetFields=t.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],Fe.start(t)):null},set:Fe.set,defaults:V(yi(Fe.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:_e,snapSize:Le,spring:we,avoid:we,transform:we,rubberband:we},Be={id:"modifiers",install:function(t){var i=t.interactStatic;for(var e in t.usePlugin(Mi),t.usePlugin(pe),i.modifiers=$e,$e){var n=$e[e],r=n._defaults;r._methods=n._methods,t.defaults.perAction[e]=r}}},Xe=Be,Ye=function(t){s(e,t);var i=h(e);function e(t,r,o,a,s,c){var u;if(n(this,e),it(l(u=i.call(this,s)),o),o!==r&&it(l(u),r),u.timeStamp=c,u.originalEvent=o,u.type=t,u.pointerId=st(r),u.pointerType=vt(r),u.target=a,u.currentTarget=null,"tap"===t){var h=s.getPointerIndex(r);u.dt=u.timeStamp-s.pointers[h].downTime,u.double=!!s.prevTap&&"doubletap"!==s.prevTap.type&&s.prevTap.target===u.target&&u.timeStamp-s.tapTime<500}else"doubletap"===t&&(u.dt=r.timeStamp-s.tapTime,u.double=!0);return u}return o(e,[{key:"_subtractOrigin",value:function(t){var i=t.x,e=t.y;return this.pageX-=i,this.pageY-=e,this.clientX-=i,this.clientY-=e,this}},{key:"_addOrigin",value:function(t){var i=t.x,e=t.y;return this.pageX+=i,this.pageY+=e,this.clientX+=i,this.clientY+=e,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),e}(pt),Ue={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=Ue,t.defaults.actions.pointerEvents=Ue.defaults,V(t.actions.phaselessTypes,Ue.types)},listeners:{"interactions:new":function(t){var i=t.interaction;i.prevTap=null,i.tapTime=0},"interactions:update-pointer":function(t){var i=t.pointerInfo;!t.down&&i.hold||(i.hold={duration:1/0,timeout:null})},"interactions:move":function(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget;t.duplicate||e.pointerIsDown&&!e.pointerWasMoved||(e.pointerIsDown&&qe(t),Ve({interaction:e,pointer:n,event:r,eventTarget:o,type:"move"},i))},"interactions:down":function(t,i){!function(t,i){for(var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget,a=e.pointers[t.pointerIndex].hold,s=Y(o),c={interaction:e,pointer:n,event:r,eventTarget:o,type:"hold",targets:[],path:s,node:null},u=0;u<s.length;u++)c.node=s[u],i.fire("pointerEvents:collect-targets",c);if(c.targets.length){for(var l=1/0,h=0,f=c.targets;h<f.length;h++){var v=f[h].eventable.options.holdDuration;v<l&&(l=v)}a.duration=l,a.timeout=setTimeout((function(){Ve({interaction:e,eventTarget:o,pointer:n,event:r,type:"hold"},i)}),l)}}(t,i),Ve(t,i)},"interactions:up":function(t,i){qe(t),Ve(t,i),function(t,i){var e=t.interaction;e.pointerWasMoved||Ve({interaction:e,eventTarget:t.eventTarget,pointer:t.pointer,event:t.event,type:"tap"},i)}(t,i)},"interactions:cancel":function(t,i){qe(t),Ve(t,i)}},PointerEvent:Ye,fire:Ve,collectEventTargets:Ne,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Ve(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget,a=t.type,s=t.targets,c=void 0===s?Ne(t,i):s,u=new Ye(a,n,r,o,e,i.now());i.fire("pointerEvents:new",{pointerEvent:u});for(var l={interaction:e,pointer:n,event:r,eventTarget:o,targets:c,type:a,pointerEvent:u},h=0;h<c.length;h++){var f=c[h];for(var v in f.props||{})u[v]=f.props[v];var d=W(f.eventable,f.node);if(u._subtractOrigin(d),u.eventable=f.eventable,u.currentTarget=f.node,f.eventable.fire(u),u._addOrigin(d),u.immediatePropagationStopped||u.propagationStopped&&h+1<c.length&&c[h+1].node!==u.currentTarget)break}if(i.fire("pointerEvents:fired",l),"tap"===a){var p=u.double?Ve({interaction:e,pointer:n,event:r,eventTarget:o,type:"doubletap"},i):u;e.prevTap=p,e.tapTime=p.timeStamp}return u}function Ne(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget,a=t.type,s=e.getPointerIndex(n),c=e.pointers[s];if("tap"===a&&(e.pointerWasMoved||!c||c.downTarget!==o))return[];for(var u=Y(o),l={interaction:e,pointer:n,event:r,eventTarget:o,type:a,path:u,targets:[],node:null},h=0;h<u.length;h++)l.node=u[h],i.fire("pointerEvents:collect-targets",l);return"hold"===a&&(l.targets=l.targets.filter((function(t){var i,n;return t.eventable.options.holdDuration===(null==(i=e.pointers[s])||null==(n=i.hold)?void 0:n.duration)}))),l.targets}function qe(t){var i=t.interaction.pointers[t.pointerIndex].hold;i&&i.timeout&&(clearTimeout(i.timeout),i.timeout=null)}var He=Object.freeze({__proto__:null,default:Ue});function Ge(t){var i=t.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var Ke={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(Ue);var i=t.pointerEvents;i.defaults.holdRepeatInterval=0,i.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(t,i){return t["pointerEvents:".concat(i)]=Ge,t}),{"pointerEvents:new":function(t){var i=t.pointerEvent;"hold"===i.type&&(i.count=(i.count||0)+1)},"pointerEvents:fired":function(t,i){var e=t.interaction,n=t.pointerEvent,r=t.eventTarget,o=t.targets;if("hold"===n.type&&o.length){var a=o[0].eventable.options.holdRepeatInterval;a<=0||(e.holdIntervalHandle=setTimeout((function(){i.pointerEvents.fire({interaction:e,eventTarget:r,type:"hold",pointer:n,event:n},i)}),a))}}})},We=Ke,Je={id:"pointer-events/interactableTargets",install:function(t){var i=t.Interactable;i.prototype.pointerEvents=function(t){return V(this.events.options,t),this};var e=i.prototype._backCompatOption;i.prototype._backCompatOption=function(t,i){var n=e.call(this,t,i);return n===this&&(this.events.options[t]=i),n}},listeners:{"pointerEvents:collect-targets":function(t,i){var e=t.targets,n=t.node,r=t.type,o=t.eventTarget;i.interactables.forEachMatch(n,(function(t){var i=t.events;i.types[r]&&i.types[r].length&&t.testIgnoreAllow(i.options,n,o)&&e.push({node:n,eventable:i,props:{interactable:t}})}))},"interactable:new":function(t){var i=t.interactable;i.events.getRect=function(t){return i.getRect(t)}},"interactable:set":function(t,i){var e=t.interactable,n=t.options;V(e.events.options,i.pointerEvents.defaults),V(e.events.options,n.pointerEvents||{})}}},Qe=Je,Ze={id:"pointer-events",install:function(t){t.usePlugin(He),t.usePlugin(We),t.usePlugin(Qe)}},tn=Ze,en={id:"reflow",install:function(t){var i=t.Interactable;t.actions.phases.reflow=!0,i.prototype.reflow=function(i){return function(t,i,e){for(var n=t.getAllElements(),r=e.window.Promise,o=r?[]:null,a=function(){var a=n[s],c=t.getRect(a);if(!c)return 1;var u,l=bt(e.interactions.list,(function(e){return e.interacting()&&e.interactable===t&&e.element===a&&e.prepared.name===i.name}));if(l)l.move(),o&&(u=l._reflowPromise||new r((function(t){l._reflowResolve=t})));else{var h=G(c),f=function(t){return{coords:t,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:h.x,y:h.y},client:{x:h.x,y:h.y},timeStamp:e.now()});u=function(t,i,e,n,r){var o=t.interactions.new({pointerType:"reflow"}),a={interaction:o,event:r,pointer:r,eventTarget:e,phase:"reflow"};o.interactable=i,o.element=e,o.prevEvent=r,o.updatePointer(r,r,e,!0),nt(o.coords.delta),Kt(o.prepared,n),o._doPhase(a);var s=t.window.Promise,c=s?new s((function(t){o._reflowResolve=t})):void 0;return o._reflowPromise=c,o.start(n,i,e),o._interacting?(o.move(a),o.end(r)):(o.stop(),o._reflowResolve()),o.removePointer(r,r),c}(e,t,a,i,f)}o&&o.push(u)},s=0;s<n.length&&!a();s++);return o&&r.all(o).then((function(){return t}))}(this,i,t)}},listeners:{"interactions:stop":function(t,i){var e=t.interaction;"reflow"===e.pointerType&&(e._reflowResolve&&e._reflowResolve(),function(t,i){t.splice(t.indexOf(i),1)}(i.interactions.list,e))}}},nn=en;if(he.use(gi),he.use(Fi),he.use(tn),he.use(Ui),he.use(Xe),he.use(vi),he.use(Lt),he.use(Ht),he.use(nn),he.default=he,"object"===e(E)&&E)try{E.exports=he}catch(t){}return he.default=he,he}();const S=O.exports,T="container",j="container--open",I="container--embedded",P=25,D={x:0,y:0},C={top:0,right:0,bottom:0,left:0};
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
10
|
-
* v2.13.
|
11
|
-
*/let A=0,R="";const _=class{constructor(e){t(this,e),this.calciteDialogBeforeClose=i(this,"calciteDialogBeforeClose",6),this.calciteDialogClose=i(this,"calciteDialogClose",6),this.calciteDialogBeforeOpen=i(this,"calciteDialogBeforeOpen",6),this.calciteDialogOpen=i(this,"calciteDialogOpen",6),this.calciteDialogScroll=i(this,"calciteDialogScroll",6),this.openTransitionProp="opacity",this.resizePosition={...C},this.dragPosition={...D},this.ignoreOpenChange=!1,this.mutationObserver=p("mutation",(()=>this.handleMutationObserver())),this.handleKeyDown=t=>{const{key:i,shiftKey:e,defaultPrevented:n}=t,{dragEnabled:r,resizable:o,resizePosition:a,dragPosition:s,transitionEl:c}=this;if(!n&&["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(i))switch(i){case"ArrowUp":e&&o&&c?(this.updateSize({size:this.getTransitionElDOMRect().height-P,type:"blockSize"}),a.bottom-=P,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):r&&(s.y-=25,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowDown":e&&o&&c?(this.updateSize({size:this.getTransitionElDOMRect().height+P,type:"blockSize"}),a.bottom+=P,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):r&&(s.y+=25,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowLeft":e&&o&&c?(this.updateSize({size:this.getTransitionElDOMRect().width-P,type:"inlineSize"}),a.right-=P,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):r&&(s.x-=25,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowRight":e&&o&&c?(this.updateSize({size:this.getTransitionElDOMRect().width+P,type:"inlineSize"}),a.right+=P,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):r&&(s.x+=25,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault())}},this.setTransitionEl=t=>{this.transitionEl=t,this.setupInteractions()},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteDialogOpen",this.openEnd)},this.handleInternalPanelScroll=t=>{t.target===this.panelEl&&(t.stopPropagation(),this.calciteDialogScroll.emit())},this.handleInternalPanelCloseClick=t=>{t.target===this.panelEl&&(t.stopPropagation(),this.open=!1)},this.handlePanelKeyDown=t=>{this.escapeDisabled&&"Escape"===t.key&&t.preventDefault()},this.handleOutsideClose=()=>{this.outsideCloseDisabled||(this.open=!1)},this.closeDialog=async()=>{if(this.beforeClose)try{await this.beforeClose()}catch(t){return void requestAnimationFrame((()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1}))}A--,this.opened=!1,this.updateOverflowHiddenClass()},this.updateOverflowHiddenClass=()=>{this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()},this.handleMutationObserver=()=>{this.updateFocusTrapElements()},this.beforeClose=void 0,this.description=void 0,this.dragEnabled=!1,this.closeDisabled=!1,this.embedded=!1,this.escapeDisabled=!1,this.heading=void 0,this.headingLevel=void 0,this.kind=void 0,this.loading=!1,this.menuOpen=!1,this.messages=void 0,this.messageOverrides=void 0,this.modal=!1,this.open=!1,this.outsideCloseDisabled=!1,this.overlayPositioning="absolute",this.placement="center",this.resizable=!1,this.scale="m",this.widthScale="m",this.opened=!1,this.hasFooter=!0,this.hasContentTop=!1,this.hasContentBottom=!1,this.effectiveLocale=void 0,this.defaultMessages=void 0,this.assistiveText=null}onMessagesChange(){}onModalChange(){this.updateOverflowHiddenClass()}async componentWillLoad(){await b(this),f(this),this.open&&this.openDialog()}componentDidLoad(){v(this)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),m(this),x(this),c(this),this.setupInteractions()}disconnectedCallback(){this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),u(this),y(this),w(this),this.embedded=!1,this.cleanupInteractions()}render(){const{assistiveText:t,description:i,heading:r,opened:o}=this;return e(n,{key:"bf406255eaa6d94c8443af185a74a2b2d58c6d59"},e("div",{key:"de2a34b6da4a82c66e9fafdbdd2056e4e11e1315",class:{[T]:!0,[j]:o,[I]:this.embedded}},this.modal?e("calcite-scrim",{class:"scrim",onClick:this.handleOutsideClose}):null,e("div",{key:"be47093e3a955ce45a71c555700143a4a1c7a166","aria-description":i,"aria-label":r,"aria-modal":a(this.modal),class:"dialog",onKeyDown:this.handleKeyDown,ref:this.setTransitionEl,role:"dialog"},t?e("div",{"aria-live":"polite",class:"assistive-text",key:"assistive-text"},t):null,e("slot",{key:"6ed9f10ae7d5ecc1ec9062d6aba559001d5194e6",name:"content"},e("calcite-panel",{key:"cd6ebaa7d7362cbeb70e9ae623f38298d1e831e3",beforeClose:this.beforeClose,class:"panel",closable:!this.closeDisabled,closed:!o,description:i,heading:r,headingLevel:this.headingLevel,loading:this.loading,menuOpen:this.menuOpen,messageOverrides:this.messageOverrides,onCalcitePanelClose:this.handleInternalPanelCloseClick,onCalcitePanelScroll:this.handleInternalPanelScroll,onKeyDown:this.handlePanelKeyDown,overlayPositioning:this.overlayPositioning,ref:t=>this.panelEl=t,scale:this.scale},e("slot",{key:"2ce955775c33b09fc849a083d0bcc1c8ce523dd8",name:"action-bar",slot:M.actionBar}),e("slot",{key:"dd44184de251320af6225baa2e59571b881a23cd",name:"alerts",slot:M.alerts}),e("slot",{key:"da343a1a10e015b04b37463c10592e612a576e9b",name:"header-actions-start",slot:M.headerActionsStart}),e("slot",{key:"6680fde2bd7ad6dc5803c78ea7250d11d4920b7c",name:"header-actions-end",slot:M.headerActionsEnd}),e("slot",{key:"a17ca64188ffe6000792e67eafc838df575ebbc3",name:"header-content",slot:M.headerContent}),e("slot",{key:"7e048c4a9104053ca0a61ab2514b018efb4fc872",name:"header-menu-actions",slot:M.headerMenuActions}),e("slot",{key:"6760c8a6c105a511fcb859cfd222f8c1355a82c4",name:"fab",slot:M.fab}),e("slot",{key:"e0f2e7644281d408d8c21ce5bf16b08af0a59c3b",name:"content-top",slot:M.contentTop}),e("slot",{key:"01889c3b7fc13bc49521c27feb2ab35346552504",name:"content-bottom",slot:M.contentBottom}),e("slot",{key:"593bad35110b5d7e7b44d598b397e4b87cc28e28",name:"footer-start",slot:M.footerStart}),e("slot",{key:"5e84099e096a6afb678cce9731b189f4011dc067",name:"footer",slot:M.footer}),e("slot",{key:"69a805bd0c1f43a6d165939e62db562428f39f11",name:"footer-end",slot:M.footerEnd}),e("slot",{key:"b49e14ff6d2c63caaa8fd296920618e7673eb71b"}))))))}effectiveLocaleChange(){k(this,this.effectiveLocale)}handleInteractionChange(){this.setupInteractions()}updateAssistiveText(){const{messages:t}=this;this.assistiveText=t&&(this.dragEnabled||this.resizable)?`${this.dragEnabled?t.dragEnabled:""} ${this.resizable?t.resizeEnabled:""}`:null}handleEscape(t){!this.open||this.escapeDisabled||"Escape"!==t.key||t.defaultPrevented||(this.open=!1,t.preventDefault())}async setFocus(){return await d(this),this.panelEl?.setFocus()??s(this.el)}async updateFocusTrapElements(){l(this)}async scrollContentTo(t){await(this.panelEl?.scrollContentTo(t))}onBeforeOpen(){this.calciteDialogBeforeOpen.emit()}onOpen(){this.calciteDialogOpen.emit(),h(this)}onBeforeClose(){this.calciteDialogBeforeClose.emit()}onClose(){this.calciteDialogClose.emit(),u(this)}toggleDialog(t){this.ignoreOpenChange||(t?this.openDialog():this.closeDialog())}handleOpenedChange(t){this.transitionEl.classList.toggle("dialog--opening-active",t),g(this)}async triggerInteractModifiers(){const{interaction:t}=this;t&&(await t.reflow({name:"drag"}),await t.reflow({name:"resize"}))}getTransitionElDOMRect(){return this.transitionEl.getBoundingClientRect()}updateTransform(){const{dragPosition:{x:t,y:i},resizePosition:e,transitionEl:n}=this;if(!n)return;const{top:r,right:o,bottom:a,left:s}=this.getAdjustedResizePosition(e),c=Math.round(t+s+o),u=Math.round(i+r+a);n.style.transform=`translate(${c}px, ${u}px)`}updateSize({type:t,size:i}){const{transitionEl:e}=this;e&&(e.style[t]=null!==i?`${Math.round(i)}px`:null)}cleanupInteractions(){this.interaction?.unset(),this.updateSize({size:null,type:"inlineSize"}),this.updateSize({size:null,type:"blockSize"}),this.dragPosition={...D},this.resizePosition={...C},this.updateTransform()}setupInteractions(){this.cleanupInteractions();const{el:t,transitionEl:i,resizable:e,dragEnabled:n,resizePosition:r,dragPosition:o}=this;if(i&&this.open){if((e||n)&&(this.interaction=S(i,{context:t.ownerDocument})),e){const{minInlineSize:t,minBlockSize:e,maxInlineSize:n,maxBlockSize:o}=window.getComputedStyle(i);this.interaction.resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},modifiers:[S.modifiers.restrictSize({min:{width:this.isPixelValue(t)?parseInt(t,10):0,height:this.isPixelValue(e)?parseInt(e,10):0},max:{width:this.isPixelValue(n)?parseInt(n,10):window.innerWidth,height:this.isPixelValue(o)?parseInt(o,10):window.innerHeight}}),S.modifiers.restrict({restriction:"parent"})],listeners:{move:({rect:t,deltaRect:i})=>{i&&(r.top+=i.top,r.right+=i.right,r.bottom+=i.bottom,r.left+=i.left),this.updateSize({size:t.width,type:"inlineSize"}),this.updateSize({size:t.height,type:"blockSize"}),this.updateTransform()}}})}n&&this.interaction.draggable({modifiers:[S.modifiers.restrictRect({restriction:"parent"})],listeners:{move:({dx:t,dy:i})=>{o.x+=t,o.y+=i,this.updateTransform()}}})}}isPixelValue(t){return-1!==t.indexOf("px")}getAdjustedResizePosition({top:t,right:i,bottom:e,left:n}){const r=t/2,o=i/2,a=e/2,s=n/2;switch(this.placement){case"top":return{top:t,right:o,bottom:0,left:s};case"top-start":return{top:t,right:0,bottom:0,left:n};case"top-end":return{top:t,right:i,bottom:0,left:0};case"bottom":return{top:0,right:o,bottom:e,left:s};case"bottom-start":return{top:0,right:0,bottom:e,left:n};case"bottom-end":return{top:0,right:i,bottom:e,left:0};default:return{top:r,right:o,bottom:a,left:s}}}async openDialog(){await z(this.el),this.el.addEventListener("calciteDialogOpen",this.openEnd),this.opened=!0,this.updateOverflowHiddenClass()}addOverflowHiddenClass(){0===A&&(R=document.documentElement.style.overflow),A++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",R)}static get assetsDirs(){return["assets"]}get el(){return r(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],modal:["onModalChange"],effectiveLocale:["effectiveLocaleChange"],open:["handleInteractionChange","toggleDialog"],placement:["handleInteractionChange"],resizable:["handleInteractionChange","updateAssistiveText"],dragEnabled:["handleInteractionChange","updateAssistiveText"],messages:["updateAssistiveText"],opened:["handleOpenedChange"]}}};_.style=":host{--calcite-dialog-scrim-background-color:rgba(0, 0, 0, 0.85);pointer-events:none;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;--calcite-internal-dialog-animation-offset:20px}:host([modal]){position:absolute}.container{pointer-events:auto;position:fixed;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([placement=top]) .container{align-items:flex-start;justify-content:center}:host([placement=top-start]) .container{align-items:flex-start;justify-content:flex-start}:host([placement=top-end]) .container{align-items:flex-start;justify-content:flex-end}:host([placement=bottom]) .container{align-items:flex-end;justify-content:center}:host([placement=bottom-start]) .container{align-items:flex-end;justify-content:flex-start}:host([placement=bottom-end]) .container{align-items:flex-end;justify-content:flex-end}:host(:not([modal])) .container{pointer-events:none}:host([scale=s]){--calcite-internal-dialog-content-padding:var(--calcite-dialog-content-space, var(--calcite-spacing-sm));--calcite-internal-dialog-min-size-x:198px;--calcite-internal-dialog-min-size-y:140px}:host([scale=m]){--calcite-internal-dialog-content-padding:var(--calcite-dialog-content-space, var(--calcite-spacing-md));--calcite-internal-dialog-min-size-x:288px;--calcite-internal-dialog-min-size-y:180px}:host([scale=l]){--calcite-internal-dialog-content-padding:var(--calcite-dialog-content-space, var(--calcite-spacing-lg));--calcite-internal-dialog-min-size-x:388px;--calcite-internal-dialog-min-size-y:220px}.scrim{--calcite-scrim-background:var(--calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim));--calcite-scrim-background-color:var(\n --calcite-dialog-scrim-background-color,\n var(--calcite-color-transparent-scrim)\n );position:fixed;inset:0px;display:flex;overflow-y:hidden}calcite-panel{--calcite-panel-content-space:var(--calcite-dialog-content-space, var(--calcite-internal-dialog-content-padding));--calcite-panel-footer-padding:var(--calcite-dialog-footer-space);--calcite-panel-header-border-block-end:var(--calcite-border-width-sm) solid var(--calcite-dialog-border-color);--calcite-panel-background-color:var(--calcite-dialog-background-color)}.dialog{pointer-events:none;position:relative;z-index:var(--calcite-z-index-modal);margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;border-radius:0.25rem;opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);min-inline-size:var(--calcite-dialog-min-size-x, var(--calcite-internal-dialog-min-size-x));max-inline-size:var(--calcite-dialog-max-size-x, 100%);min-block-size:var(--calcite-dialog-min-size-y, var(--calcite-internal-dialog-min-size-y));max-block-size:var(--calcite-dialog-max-size-y, 100%);--calcite-internal-dialog-hidden-position:calc(\n var(--calcite-dialog-offset-y, 0px) + var(--calcite-internal-dialog-animation-offset)\n );--calcite-internal-dialog-shown-position:var(--calcite-dialog-offset-y, 0);inset-inline-start:var(--calcite-dialog-offset-x, 0);inset-block-start:var(--calcite-internal-dialog-hidden-position)}.dialog--opening-active{inset-block-start:var(--calcite-internal-dialog-shown-position)}:host([menu-open]) .dialog{transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}.panel{border-radius:0.25rem}.container--open{opacity:1;visibility:visible;transition-delay:0ms}.container--open .dialog{pointer-events:auto;visibility:visible;opacity:1;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}:host([width=small]) .dialog{inline-size:auto}:host([width-scale=s]) .dialog{inline-size:var(--calcite-dialog-size-x, 32rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 35rem){:host([width-scale=s]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}:host([width-scale=s]) .dialog--opening-active{inset-block-start:0}}:host([width-scale=m]) .dialog{inline-size:var(--calcite-dialog-size-x, 48rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 51rem){:host([width-scale=m]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}:host([width-scale=m]) .dialog--opening-active{inset-block-start:0}}:host([width-scale=l]) .dialog{inline-size:var(--calcite-dialog-size-x, 94rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 97rem){:host([width-scale=l]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}:host([width-scale=l]) .dialog--opening-active{inset-block-start:0}}:host([placement=cover]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([placement=cover]) .panel{border-radius:0px}:host([kind]) .panel{border-start-start-radius:0px;border-start-end-radius:0px}:host([kind=brand]) .dialog{border-color:var(--calcite-color-brand)}:host([kind=danger]) .dialog{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .dialog{border-color:var(--calcite-color-status-info)}:host([kind=success]) .dialog{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .dialog{border-color:var(--calcite-color-status-warning)}:host([kind=brand][open]) .dialog,:host([kind=danger][open]) .dialog,:host([kind=info][open]) .dialog,:host([kind=success][open]) .dialog,:host([kind=warning][open]) .dialog{border-width:0px;border-block-start-width:4px;border-style:solid}.container--embedded{position:absolute;pointer-events:auto}.container--embedded calcite-scrim{position:absolute}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}";export{_ as calcite_dialog}
|
10
|
+
* v2.13.2
|
11
|
+
*/let A=0,R="";const _=class{constructor(e){t(this,e),this.calciteDialogBeforeClose=i(this,"calciteDialogBeforeClose",6),this.calciteDialogClose=i(this,"calciteDialogClose",6),this.calciteDialogBeforeOpen=i(this,"calciteDialogBeforeOpen",6),this.calciteDialogOpen=i(this,"calciteDialogOpen",6),this.calciteDialogScroll=i(this,"calciteDialogScroll",6),this.openTransitionProp="opacity",this.resizePosition={...C},this.dragPosition={...D},this.ignoreOpenChange=!1,this.mutationObserver=p("mutation",(()=>this.handleMutationObserver())),this.handleKeyDown=t=>{const{key:i,shiftKey:e,defaultPrevented:n}=t,{dragEnabled:r,resizable:o,resizePosition:a,dragPosition:s,transitionEl:c}=this;if(!n&&["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(i))switch(i){case"ArrowUp":e&&o&&c?(this.updateSize({size:this.getTransitionElDOMRect().height-P,type:"blockSize"}),a.bottom-=P,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):r&&(s.y-=25,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowDown":e&&o&&c?(this.updateSize({size:this.getTransitionElDOMRect().height+P,type:"blockSize"}),a.bottom+=P,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):r&&(s.y+=25,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowLeft":e&&o&&c?(this.updateSize({size:this.getTransitionElDOMRect().width-P,type:"inlineSize"}),a.right-=P,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):r&&(s.x-=25,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowRight":e&&o&&c?(this.updateSize({size:this.getTransitionElDOMRect().width+P,type:"inlineSize"}),a.right+=P,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):r&&(s.x+=25,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault())}},this.setTransitionEl=t=>{this.transitionEl=t,this.setupInteractions()},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteDialogOpen",this.openEnd)},this.handleInternalPanelScroll=t=>{t.target===this.panelEl&&(t.stopPropagation(),this.calciteDialogScroll.emit())},this.handleInternalPanelCloseClick=t=>{t.target===this.panelEl&&(t.stopPropagation(),this.open=!1)},this.handlePanelKeyDown=t=>{this.escapeDisabled&&"Escape"===t.key&&t.preventDefault()},this.handleOutsideClose=()=>{this.outsideCloseDisabled||(this.open=!1)},this.closeDialog=async()=>{if(this.beforeClose)try{await this.beforeClose()}catch(t){return void requestAnimationFrame((()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1}))}A--,this.opened=!1,this.updateOverflowHiddenClass()},this.updateOverflowHiddenClass=()=>{this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()},this.handleMutationObserver=()=>{this.updateFocusTrapElements()},this.beforeClose=void 0,this.description=void 0,this.dragEnabled=!1,this.closeDisabled=!1,this.embedded=!1,this.escapeDisabled=!1,this.heading=void 0,this.headingLevel=void 0,this.kind=void 0,this.loading=!1,this.menuOpen=!1,this.messages=void 0,this.messageOverrides=void 0,this.modal=!1,this.open=!1,this.outsideCloseDisabled=!1,this.overlayPositioning="absolute",this.placement="center",this.resizable=!1,this.scale="m",this.widthScale="m",this.opened=!1,this.hasFooter=!0,this.hasContentTop=!1,this.hasContentBottom=!1,this.effectiveLocale=void 0,this.defaultMessages=void 0,this.assistiveText=null}onMessagesChange(){}onModalChange(){this.updateOverflowHiddenClass()}async componentWillLoad(){await b(this),f(this),this.open&&this.openDialog()}componentDidLoad(){v(this)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),m(this),x(this),c(this),this.setupInteractions()}disconnectedCallback(){this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),u(this),y(this),w(this),this.embedded=!1,this.cleanupInteractions()}render(){const{assistiveText:t,description:i,heading:r,opened:o}=this;return e(n,{key:"bf406255eaa6d94c8443af185a74a2b2d58c6d59"},e("div",{key:"de2a34b6da4a82c66e9fafdbdd2056e4e11e1315",class:{[T]:!0,[j]:o,[I]:this.embedded}},this.modal?e("calcite-scrim",{class:"scrim",onClick:this.handleOutsideClose}):null,e("div",{key:"be47093e3a955ce45a71c555700143a4a1c7a166","aria-description":i,"aria-label":r,"aria-modal":a(this.modal),class:"dialog",onKeyDown:this.handleKeyDown,ref:this.setTransitionEl,role:"dialog"},t?e("div",{"aria-live":"polite",class:"assistive-text",key:"assistive-text"},t):null,e("slot",{key:"6ed9f10ae7d5ecc1ec9062d6aba559001d5194e6",name:"content"},e("calcite-panel",{key:"cd6ebaa7d7362cbeb70e9ae623f38298d1e831e3",beforeClose:this.beforeClose,class:"panel",closable:!this.closeDisabled,closed:!o,description:i,heading:r,headingLevel:this.headingLevel,loading:this.loading,menuOpen:this.menuOpen,messageOverrides:this.messageOverrides,onCalcitePanelClose:this.handleInternalPanelCloseClick,onCalcitePanelScroll:this.handleInternalPanelScroll,onKeyDown:this.handlePanelKeyDown,overlayPositioning:this.overlayPositioning,ref:t=>this.panelEl=t,scale:this.scale},e("slot",{key:"2ce955775c33b09fc849a083d0bcc1c8ce523dd8",name:"action-bar",slot:M.actionBar}),e("slot",{key:"dd44184de251320af6225baa2e59571b881a23cd",name:"alerts",slot:M.alerts}),e("slot",{key:"da343a1a10e015b04b37463c10592e612a576e9b",name:"header-actions-start",slot:M.headerActionsStart}),e("slot",{key:"6680fde2bd7ad6dc5803c78ea7250d11d4920b7c",name:"header-actions-end",slot:M.headerActionsEnd}),e("slot",{key:"a17ca64188ffe6000792e67eafc838df575ebbc3",name:"header-content",slot:M.headerContent}),e("slot",{key:"7e048c4a9104053ca0a61ab2514b018efb4fc872",name:"header-menu-actions",slot:M.headerMenuActions}),e("slot",{key:"6760c8a6c105a511fcb859cfd222f8c1355a82c4",name:"fab",slot:M.fab}),e("slot",{key:"e0f2e7644281d408d8c21ce5bf16b08af0a59c3b",name:"content-top",slot:M.contentTop}),e("slot",{key:"01889c3b7fc13bc49521c27feb2ab35346552504",name:"content-bottom",slot:M.contentBottom}),e("slot",{key:"593bad35110b5d7e7b44d598b397e4b87cc28e28",name:"footer-start",slot:M.footerStart}),e("slot",{key:"5e84099e096a6afb678cce9731b189f4011dc067",name:"footer",slot:M.footer}),e("slot",{key:"69a805bd0c1f43a6d165939e62db562428f39f11",name:"footer-end",slot:M.footerEnd}),e("slot",{key:"b49e14ff6d2c63caaa8fd296920618e7673eb71b"}))))))}effectiveLocaleChange(){k(this,this.effectiveLocale)}handleInteractionChange(){this.setupInteractions()}updateAssistiveText(){const{messages:t}=this;this.assistiveText=t&&(this.dragEnabled||this.resizable)?`${this.dragEnabled?t.dragEnabled:""} ${this.resizable?t.resizeEnabled:""}`:null}handleEscape(t){!this.open||this.escapeDisabled||"Escape"!==t.key||t.defaultPrevented||(this.open=!1,t.preventDefault())}async setFocus(){return await d(this),this.panelEl?.setFocus()??s(this.el)}async updateFocusTrapElements(){l(this)}async scrollContentTo(t){await(this.panelEl?.scrollContentTo(t))}onBeforeOpen(){this.calciteDialogBeforeOpen.emit()}onOpen(){this.calciteDialogOpen.emit(),h(this)}onBeforeClose(){this.calciteDialogBeforeClose.emit()}onClose(){this.calciteDialogClose.emit(),u(this)}toggleDialog(t){this.ignoreOpenChange||(t?this.openDialog():this.closeDialog())}handleOpenedChange(t){this.transitionEl.classList.toggle("dialog--opening-active",t),g(this)}async triggerInteractModifiers(){const{interaction:t}=this;t&&(await t.reflow({name:"drag"}),await t.reflow({name:"resize"}))}getTransitionElDOMRect(){return this.transitionEl.getBoundingClientRect()}updateTransform(){const{dragPosition:{x:t,y:i},resizePosition:e,transitionEl:n,dragEnabled:r,resizable:o}=this;if(!n)return;if(!r&&!o)return void(n.style.transform=null);const{top:a,right:s,bottom:c,left:u}=this.getAdjustedResizePosition(e),l=Math.round(t+u+s),h=Math.round(i+a+c);n.style.transform=l||h?`translate(${l}px, ${h}px)`:null}updateSize({type:t,size:i}){const{transitionEl:e}=this;e&&(e.style[t]=null!==i?`${Math.round(i)}px`:null)}cleanupInteractions(){this.interaction?.unset(),this.updateSize({size:null,type:"inlineSize"}),this.updateSize({size:null,type:"blockSize"}),this.dragPosition={...D},this.resizePosition={...C},this.updateTransform()}setupInteractions(){this.cleanupInteractions();const{el:t,transitionEl:i,resizable:e,dragEnabled:n,resizePosition:r,dragPosition:o}=this;if(i&&this.open){if((e||n)&&(this.interaction=S(i,{context:t.ownerDocument})),e){const{minInlineSize:t,minBlockSize:e,maxInlineSize:n,maxBlockSize:o}=window.getComputedStyle(i);this.interaction.resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},modifiers:[S.modifiers.restrictSize({min:{width:this.isPixelValue(t)?parseInt(t,10):0,height:this.isPixelValue(e)?parseInt(e,10):0},max:{width:this.isPixelValue(n)?parseInt(n,10):window.innerWidth,height:this.isPixelValue(o)?parseInt(o,10):window.innerHeight}}),S.modifiers.restrict({restriction:"parent"})],listeners:{move:({rect:t,deltaRect:i})=>{i&&(r.top+=i.top,r.right+=i.right,r.bottom+=i.bottom,r.left+=i.left),this.updateSize({size:t.width,type:"inlineSize"}),this.updateSize({size:t.height,type:"blockSize"}),this.updateTransform()}}})}n&&this.interaction.draggable({modifiers:[S.modifiers.restrictRect({restriction:"parent"})],listeners:{move:({dx:t,dy:i})=>{o.x+=t,o.y+=i,this.updateTransform()}}})}}isPixelValue(t){return-1!==t.indexOf("px")}getAdjustedResizePosition({top:t,right:i,bottom:e,left:n}){const r=t/2,o=i/2,a=e/2,s=n/2;switch(this.placement){case"top":return{top:t,right:o,bottom:0,left:s};case"top-start":return{top:t,right:0,bottom:0,left:n};case"top-end":return{top:t,right:i,bottom:0,left:0};case"bottom":return{top:0,right:o,bottom:e,left:s};case"bottom-start":return{top:0,right:0,bottom:e,left:n};case"bottom-end":return{top:0,right:i,bottom:e,left:0};default:return{top:r,right:o,bottom:a,left:s}}}async openDialog(){await z(this.el),this.el.addEventListener("calciteDialogOpen",this.openEnd),this.opened=!0,this.updateOverflowHiddenClass()}addOverflowHiddenClass(){0===A&&(R=document.documentElement.style.overflow),A++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",R)}static get assetsDirs(){return["assets"]}get el(){return r(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],modal:["onModalChange"],effectiveLocale:["effectiveLocaleChange"],open:["handleInteractionChange","toggleDialog"],placement:["handleInteractionChange"],resizable:["handleInteractionChange","updateAssistiveText"],dragEnabled:["handleInteractionChange","updateAssistiveText"],messages:["updateAssistiveText"],opened:["handleOpenedChange"]}}};_.style=":host{--calcite-dialog-scrim-background-color:rgba(0, 0, 0, 0.85);pointer-events:none;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;--calcite-internal-dialog-animation-offset:20px}:host([modal]){position:absolute}.container{pointer-events:auto;position:fixed;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([placement=top]) .container{align-items:flex-start;justify-content:center}:host([placement=top-start]) .container{align-items:flex-start;justify-content:flex-start}:host([placement=top-end]) .container{align-items:flex-start;justify-content:flex-end}:host([placement=bottom]) .container{align-items:flex-end;justify-content:center}:host([placement=bottom-start]) .container{align-items:flex-end;justify-content:flex-start}:host([placement=bottom-end]) .container{align-items:flex-end;justify-content:flex-end}:host(:not([modal])) .container{pointer-events:none}:host([scale=s]){--calcite-internal-dialog-content-padding:var(--calcite-dialog-content-space, var(--calcite-spacing-sm));--calcite-internal-dialog-min-size-x:198px;--calcite-internal-dialog-min-size-y:140px}:host([scale=m]){--calcite-internal-dialog-content-padding:var(--calcite-dialog-content-space, var(--calcite-spacing-md));--calcite-internal-dialog-min-size-x:288px;--calcite-internal-dialog-min-size-y:180px}:host([scale=l]){--calcite-internal-dialog-content-padding:var(--calcite-dialog-content-space, var(--calcite-spacing-lg));--calcite-internal-dialog-min-size-x:388px;--calcite-internal-dialog-min-size-y:220px}.scrim{--calcite-scrim-background:var(--calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim));--calcite-scrim-background-color:var(\n --calcite-dialog-scrim-background-color,\n var(--calcite-color-transparent-scrim)\n );position:fixed;inset:0px;display:flex;overflow-y:hidden}calcite-panel{--calcite-panel-content-space:var(--calcite-dialog-content-space, var(--calcite-internal-dialog-content-padding));--calcite-panel-footer-padding:var(--calcite-dialog-footer-space);--calcite-panel-header-border-block-end:var(--calcite-border-width-sm) solid var(--calcite-dialog-border-color);--calcite-panel-background-color:var(--calcite-dialog-background-color)}.dialog{pointer-events:none;position:relative;z-index:var(--calcite-z-index-modal);margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;border-radius:0.25rem;opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);min-inline-size:var(--calcite-dialog-min-size-x, var(--calcite-internal-dialog-min-size-x));max-inline-size:var(--calcite-dialog-max-size-x, 100%);min-block-size:var(--calcite-dialog-min-size-y, var(--calcite-internal-dialog-min-size-y));max-block-size:var(--calcite-dialog-max-size-y, 100%);--calcite-internal-dialog-hidden-position:calc(\n var(--calcite-dialog-offset-y, 0px) + var(--calcite-internal-dialog-animation-offset)\n );--calcite-internal-dialog-shown-position:var(--calcite-dialog-offset-y, 0);inset-inline-start:var(--calcite-dialog-offset-x, 0);inset-block-start:var(--calcite-internal-dialog-hidden-position)}.dialog--opening-active{inset-block-start:var(--calcite-internal-dialog-shown-position)}:host([menu-open]) .dialog{transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}.panel{border-radius:0.25rem}.container--open{opacity:1;visibility:visible;transition-delay:0ms}.container--open .dialog{pointer-events:auto;visibility:visible;opacity:1;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}:host([width=small]) .dialog{inline-size:auto}:host([width-scale=s]) .dialog{inline-size:var(--calcite-dialog-size-x, 32rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 35rem){:host([width-scale=s]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}:host([width-scale=s]) .dialog--opening-active{inset-block-start:0}}:host([width-scale=m]) .dialog{inline-size:var(--calcite-dialog-size-x, 48rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 51rem){:host([width-scale=m]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}:host([width-scale=m]) .dialog--opening-active{inset-block-start:0}}:host([width-scale=l]) .dialog{inline-size:var(--calcite-dialog-size-x, 94rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 97rem){:host([width-scale=l]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}:host([width-scale=l]) .dialog--opening-active{inset-block-start:0}}:host([placement=cover]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([placement=cover]) .panel{border-radius:0px}:host([kind]) .panel{border-start-start-radius:0px;border-start-end-radius:0px}:host([kind=brand]) .dialog{border-color:var(--calcite-color-brand)}:host([kind=danger]) .dialog{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .dialog{border-color:var(--calcite-color-status-info)}:host([kind=success]) .dialog{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .dialog{border-color:var(--calcite-color-status-warning)}:host([kind=brand][open]) .dialog,:host([kind=danger][open]) .dialog,:host([kind=info][open]) .dialog,:host([kind=success][open]) .dialog,:host([kind=warning][open]) .dialog{border-width:0px;border-block-start-width:4px;border-style:solid}.container--embedded{position:absolute;pointer-events:auto}.container--embedded calcite-scrim{position:absolute}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}";export{_ as calcite_dialog}
|