fec-dev-designer 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/es/_virtual/FileSaver.min.js +4 -0
- package/es/_virtual/___vite-browser-external.js +6 -0
- package/es/_virtual/__vite-browser-external.js +4 -0
- package/es/_virtual/_commonjs-dynamic-modules.js +6 -0
- package/es/_virtual/_commonjsHelpers.js +30 -0
- package/es/_virtual/_plugin-vue_export-helper.js +9 -0
- package/es/_virtual/advancedFormat.js +4 -0
- package/es/_virtual/aes.js +4 -0
- package/es/_virtual/bessel.js +4 -0
- package/es/_virtual/blowfish.js +4 -0
- package/es/_virtual/cipher-core.js +4 -0
- package/es/_virtual/clipboard.js +4 -0
- package/es/_virtual/core.js +4 -0
- package/es/_virtual/customParseFormat.js +4 -0
- package/es/_virtual/dayOfYear.js +4 -0
- package/es/_virtual/dayjs.min.js +4 -0
- package/es/_virtual/enc-base64.js +4 -0
- package/es/_virtual/enc-base64url.js +4 -0
- package/es/_virtual/enc-utf16.js +4 -0
- package/es/_virtual/evpkdf.js +4 -0
- package/es/_virtual/format-hex.js +4 -0
- package/es/_virtual/hmac.js +4 -0
- package/es/_virtual/index.js +4 -0
- package/es/_virtual/interact.min.js +4 -0
- package/es/_virtual/isSameOrAfter.js +4 -0
- package/es/_virtual/isSameOrBefore.js +4 -0
- package/es/_virtual/jstat.js +4 -0
- package/es/_virtual/lib-typedarrays.js +4 -0
- package/es/_virtual/localeData.js +4 -0
- package/es/_virtual/md5.js +4 -0
- package/es/_virtual/mode-cfb.js +4 -0
- package/es/_virtual/mode-ctr-gladman.js +4 -0
- package/es/_virtual/mode-ctr.js +4 -0
- package/es/_virtual/mode-ecb.js +4 -0
- package/es/_virtual/mode-ofb.js +4 -0
- package/es/_virtual/pad-ansix923.js +4 -0
- package/es/_virtual/pad-iso10126.js +4 -0
- package/es/_virtual/pad-iso97971.js +4 -0
- package/es/_virtual/pad-nopadding.js +4 -0
- package/es/_virtual/pad-zeropadding.js +4 -0
- package/es/_virtual/pbkdf2.js +4 -0
- package/es/_virtual/rabbit-legacy.js +4 -0
- package/es/_virtual/rabbit.js +4 -0
- package/es/_virtual/rc4.js +4 -0
- package/es/_virtual/ripemd160.js +4 -0
- package/es/_virtual/sha1.js +4 -0
- package/es/_virtual/sha224.js +4 -0
- package/es/_virtual/sha256.js +4 -0
- package/es/_virtual/sha3.js +4 -0
- package/es/_virtual/sha384.js +4 -0
- package/es/_virtual/sha512.js +4 -0
- package/es/_virtual/tripledes.js +4 -0
- package/es/_virtual/vue-json-viewer.js +4 -0
- package/es/_virtual/weekOfYear.js +4 -0
- package/es/_virtual/weekYear.js +4 -0
- package/es/_virtual/x64-core.js +4 -0
- package/es/config-dev.js +37 -0
- package/es/config-prod.js +37 -0
- package/es/logo.ico +0 -0
- package/es/node_modules/@codemirror/autocomplete/dist/index.js +1372 -0
- package/es/node_modules/@codemirror/commands/dist/index.js +845 -0
- package/es/node_modules/@codemirror/lang-javascript/dist/index.js +300 -0
- package/es/node_modules/@codemirror/language/dist/index.js +1301 -0
- package/es/node_modules/@codemirror/lint/dist/index.js +481 -0
- package/es/node_modules/@codemirror/search/dist/index.js +841 -0
- package/es/node_modules/@codemirror/state/dist/index.js +2649 -0
- package/es/node_modules/@codemirror/view/dist/index.js +7452 -0
- package/es/node_modules/@ctrl/tinycolor/dist/module/conversion.js +115 -0
- package/es/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +153 -0
- package/es/node_modules/@ctrl/tinycolor/dist/module/format-input.js +68 -0
- package/es/node_modules/@ctrl/tinycolor/dist/module/index.js +183 -0
- package/es/node_modules/@ctrl/tinycolor/dist/module/util.js +32 -0
- package/es/node_modules/@element-plus/icons-vue/dist/index.js +739 -0
- package/es/node_modules/@formulajs/formulajs/lib/esm/index.js +4095 -0
- package/es/node_modules/@lezer/common/dist/index.js +1434 -0
- package/es/node_modules/@lezer/highlight/dist/index.js +637 -0
- package/es/node_modules/@lezer/javascript/dist/index.js +166 -0
- package/es/node_modules/@lezer/lr/dist/index.js +1313 -0
- package/es/node_modules/@marijn/find-cluster-break/src/index.js +78 -0
- package/es/node_modules/@popperjs/core/dist/index.js +588 -0
- package/es/node_modules/@vexip-ui/hooks/dist/index.js +612 -0
- package/es/node_modules/@vexip-ui/utils/dist/index.js +250 -0
- package/es/node_modules/@vue/shared/dist/shared.esm-bundler.js +32 -0
- package/es/node_modules/@vueuse/core/index.js +299 -0
- package/es/node_modules/@vueuse/shared/index.js +111 -0
- package/es/node_modules/async-validator/dist-web/index.js +653 -0
- package/es/node_modules/bessel/bessel.js +136 -0
- package/es/node_modules/clipboard/dist/clipboard.js +499 -0
- package/es/node_modules/codemirror/dist/index.js +40 -0
- package/es/node_modules/crelt/index.js +31 -0
- package/es/node_modules/crypto-js/aes.js +70 -0
- package/es/node_modules/crypto-js/blowfish.js +1132 -0
- package/es/node_modules/crypto-js/cipher-core.js +545 -0
- package/es/node_modules/crypto-js/core.js +508 -0
- package/es/node_modules/crypto-js/enc-base64.js +81 -0
- package/es/node_modules/crypto-js/enc-base64url.js +88 -0
- package/es/node_modules/crypto-js/enc-utf16.js +100 -0
- package/es/node_modules/crypto-js/evpkdf.js +71 -0
- package/es/node_modules/crypto-js/format-hex.js +54 -0
- package/es/node_modules/crypto-js/hmac.js +84 -0
- package/es/node_modules/crypto-js/index.js +49 -0
- package/es/node_modules/crypto-js/lib-typedarrays.js +28 -0
- package/es/node_modules/crypto-js/md5.js +72 -0
- package/es/node_modules/crypto-js/mode-cfb.js +37 -0
- package/es/node_modules/crypto-js/mode-ctr-gladman.js +46 -0
- package/es/node_modules/crypto-js/mode-ctr.js +29 -0
- package/es/node_modules/crypto-js/mode-ecb.js +28 -0
- package/es/node_modules/crypto-js/mode-ofb.js +27 -0
- package/es/node_modules/crypto-js/pad-ansix923.js +26 -0
- package/es/node_modules/crypto-js/pad-iso10126.js +26 -0
- package/es/node_modules/crypto-js/pad-iso97971.js +24 -0
- package/es/node_modules/crypto-js/pad-nopadding.js +22 -0
- package/es/node_modules/crypto-js/pad-zeropadding.js +29 -0
- package/es/node_modules/crypto-js/pbkdf2.js +75 -0
- package/es/node_modules/crypto-js/rabbit-legacy.js +74 -0
- package/es/node_modules/crypto-js/rabbit.js +76 -0
- package/es/node_modules/crypto-js/rc4.js +64 -0
- package/es/node_modules/crypto-js/ripemd160.js +399 -0
- package/es/node_modules/crypto-js/sha1.js +50 -0
- package/es/node_modules/crypto-js/sha224.js +37 -0
- package/es/node_modules/crypto-js/sha256.js +58 -0
- package/es/node_modules/crypto-js/sha3.js +117 -0
- package/es/node_modules/crypto-js/sha384.js +38 -0
- package/es/node_modules/crypto-js/sha512.js +148 -0
- package/es/node_modules/crypto-js/tripledes.js +730 -0
- package/es/node_modules/crypto-js/x64-core.js +236 -0
- package/es/node_modules/dayjs/dayjs.min.js +296 -0
- package/es/node_modules/dayjs/plugin/advancedFormat.js +55 -0
- package/es/node_modules/dayjs/plugin/customParseFormat.js +138 -0
- package/es/node_modules/dayjs/plugin/dayOfYear.js +19 -0
- package/es/node_modules/dayjs/plugin/isSameOrAfter.js +18 -0
- package/es/node_modules/dayjs/plugin/isSameOrBefore.js +18 -0
- package/es/node_modules/dayjs/plugin/localeData.js +83 -0
- package/es/node_modules/dayjs/plugin/weekOfYear.js +31 -0
- package/es/node_modules/dayjs/plugin/weekYear.js +19 -0
- package/es/node_modules/element-plus/dist/locale/zh-cn.js +198 -0
- package/es/node_modules/element-plus/es/_virtual/plugin-vue_export-helper.js +9 -0
- package/es/node_modules/element-plus/es/components/alert/index.js +7 -0
- package/es/node_modules/element-plus/es/components/alert/src/alert.js +43 -0
- package/es/node_modules/element-plus/es/components/alert/src/alert2.js +130 -0
- package/es/node_modules/element-plus/es/components/badge/index.js +7 -0
- package/es/node_modules/element-plus/es/components/badge/src/badge.js +36 -0
- package/es/node_modules/element-plus/es/components/badge/src/badge2.js +73 -0
- package/es/node_modules/element-plus/es/components/button/index.js +11 -0
- package/es/node_modules/element-plus/es/components/button/src/button-custom.js +51 -0
- package/es/node_modules/element-plus/es/components/button/src/button-group.js +14 -0
- package/es/node_modules/element-plus/es/components/button/src/button-group2.js +35 -0
- package/es/node_modules/element-plus/es/components/button/src/button.js +72 -0
- package/es/node_modules/element-plus/es/components/button/src/button2.js +93 -0
- package/es/node_modules/element-plus/es/components/button/src/constants.js +6 -0
- package/es/node_modules/element-plus/es/components/button/src/use-button.js +79 -0
- package/es/node_modules/element-plus/es/components/card/index.js +7 -0
- package/es/node_modules/element-plus/es/components/card/src/card.js +26 -0
- package/es/node_modules/element-plus/es/components/card/src/card2.js +75 -0
- package/es/node_modules/element-plus/es/components/checkbox/index.js +15 -0
- package/es/node_modules/element-plus/es/components/checkbox/src/checkbox-button.js +92 -0
- package/es/node_modules/element-plus/es/components/checkbox/src/checkbox-group.js +53 -0
- package/es/node_modules/element-plus/es/components/checkbox/src/checkbox-group2.js +94 -0
- package/es/node_modules/element-plus/es/components/checkbox/src/checkbox.js +65 -0
- package/es/node_modules/element-plus/es/components/checkbox/src/checkbox2.js +119 -0
- package/es/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-disabled.js +27 -0
- package/es/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-event.js +49 -0
- package/es/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-model.js +25 -0
- package/es/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-status.js +34 -0
- package/es/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox.js +79 -0
- package/es/node_modules/element-plus/es/components/checkbox/src/constants.js +4 -0
- package/es/node_modules/element-plus/es/components/col/index.js +7 -0
- package/es/node_modules/element-plus/es/components/col/src/col.js +47 -0
- package/es/node_modules/element-plus/es/components/col/src/col2.js +43 -0
- package/es/node_modules/element-plus/es/components/collapse/index.js +11 -0
- package/es/node_modules/element-plus/es/components/collapse/src/collapse-item.js +21 -0
- package/es/node_modules/element-plus/es/components/collapse/src/collapse-item2.js +113 -0
- package/es/node_modules/element-plus/es/components/collapse/src/collapse.js +29 -0
- package/es/node_modules/element-plus/es/components/collapse/src/collapse2.js +30 -0
- package/es/node_modules/element-plus/es/components/collapse/src/constants.js +4 -0
- package/es/node_modules/element-plus/es/components/collapse/src/use-collapse-item.js +59 -0
- package/es/node_modules/element-plus/es/components/collapse/src/use-collapse.js +63 -0
- package/es/node_modules/element-plus/es/components/collapse-transition/index.js +7 -0
- package/es/node_modules/element-plus/es/components/collapse-transition/src/collapse-transition.js +51 -0
- package/es/node_modules/element-plus/es/components/collection/src/collection-item.js +13 -0
- package/es/node_modules/element-plus/es/components/collection/src/collection.js +53 -0
- package/es/node_modules/element-plus/es/components/collection/src/collection2.js +12 -0
- package/es/node_modules/element-plus/es/components/config-provider/index.js +9 -0
- package/es/node_modules/element-plus/es/components/config-provider/src/config-provider-props.js +44 -0
- package/es/node_modules/element-plus/es/components/config-provider/src/config-provider.js +24 -0
- package/es/node_modules/element-plus/es/components/config-provider/src/constants.js +4 -0
- package/es/node_modules/element-plus/es/components/config-provider/src/hooks/use-global-config.js +86 -0
- package/es/node_modules/element-plus/es/components/container/index.js +20 -0
- package/es/node_modules/element-plus/es/components/container/src/aside.js +33 -0
- package/es/node_modules/element-plus/es/components/container/src/container.js +34 -0
- package/es/node_modules/element-plus/es/components/container/src/footer.js +33 -0
- package/es/node_modules/element-plus/es/components/container/src/header.js +33 -0
- package/es/node_modules/element-plus/es/components/container/src/main.js +24 -0
- package/es/node_modules/element-plus/es/components/date-picker/index.js +7 -0
- package/es/node_modules/element-plus/es/components/date-picker/src/date-picker.js +68 -0
- package/es/node_modules/element-plus/es/components/date-picker/src/props.js +12 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/index.js +7 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-basic-date-table.js +190 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-month-range-header.js +30 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-panel-date-range.js +76 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-range-picker.js +93 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-shortcut.js +24 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-year-range-header.js +35 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/constants.js +5 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-cell-render.js +31 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-date-table.js +116 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-month-table.js +168 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-year-table.js +159 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.js +611 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-range.js +729 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-month-range.js +290 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-year-range.js +303 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-panel.js +79 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/panel-utils.js +20 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/basic-cell.js +9 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/basic-date-table.js +11 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/basic-month-table.js +9 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/basic-year-table.js +9 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/date-picker-panel.js +61 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/panel-date-pick.js +19 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/panel-date-range.js +9 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/panel-month-range.js +13 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/panel-year-range.js +13 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/props/shared.js +90 -0
- package/es/node_modules/element-plus/es/components/date-picker-panel/src/utils.js +81 -0
- package/es/node_modules/element-plus/es/components/dialog/index.js +7 -0
- package/es/node_modules/element-plus/es/components/dialog/src/constants.js +5 -0
- package/es/node_modules/element-plus/es/components/dialog/src/dialog-content.js +42 -0
- package/es/node_modules/element-plus/es/components/dialog/src/dialog-content2.js +101 -0
- package/es/node_modules/element-plus/es/components/dialog/src/dialog.js +77 -0
- package/es/node_modules/element-plus/es/components/dialog/src/dialog2.js +181 -0
- package/es/node_modules/element-plus/es/components/dialog/src/use-dialog.js +163 -0
- package/es/node_modules/element-plus/es/components/divider/index.js +7 -0
- package/es/node_modules/element-plus/es/components/divider/src/divider.js +20 -0
- package/es/node_modules/element-plus/es/components/divider/src/divider2.js +40 -0
- package/es/node_modules/element-plus/es/components/drawer/index.js +7 -0
- package/es/node_modules/element-plus/es/components/drawer/src/composables/useResizable.js +48 -0
- package/es/node_modules/element-plus/es/components/drawer/src/drawer.js +36 -0
- package/es/node_modules/element-plus/es/components/drawer/src/drawer2.js +212 -0
- package/es/node_modules/element-plus/es/components/dropdown/index.js +14 -0
- package/es/node_modules/element-plus/es/components/dropdown/src/dropdown-item-impl.js +99 -0
- package/es/node_modules/element-plus/es/components/dropdown/src/dropdown-item.js +87 -0
- package/es/node_modules/element-plus/es/components/dropdown/src/dropdown-menu.js +80 -0
- package/es/node_modules/element-plus/es/components/dropdown/src/dropdown.js +110 -0
- package/es/node_modules/element-plus/es/components/dropdown/src/dropdown2.js +242 -0
- package/es/node_modules/element-plus/es/components/dropdown/src/tokens.js +5 -0
- package/es/node_modules/element-plus/es/components/dropdown/src/useDropdown.js +15 -0
- package/es/node_modules/element-plus/es/components/empty/index.js +7 -0
- package/es/node_modules/element-plus/es/components/empty/src/empty.js +15 -0
- package/es/node_modules/element-plus/es/components/empty/src/empty2.js +75 -0
- package/es/node_modules/element-plus/es/components/empty/src/img-empty.js +132 -0
- package/es/node_modules/element-plus/es/components/focus-trap/src/focus-trap.js +165 -0
- package/es/node_modules/element-plus/es/components/focus-trap/src/tokens.js +17 -0
- package/es/node_modules/element-plus/es/components/focus-trap/src/utils.js +90 -0
- package/es/node_modules/element-plus/es/components/form/index.js +11 -0
- package/es/node_modules/element-plus/es/components/form/src/constants.js +5 -0
- package/es/node_modules/element-plus/es/components/form/src/form-item.js +243 -0
- package/es/node_modules/element-plus/es/components/form/src/form-item2.js +50 -0
- package/es/node_modules/element-plus/es/components/form/src/form-label-wrap.js +66 -0
- package/es/node_modules/element-plus/es/components/form/src/form.js +59 -0
- package/es/node_modules/element-plus/es/components/form/src/form2.js +149 -0
- package/es/node_modules/element-plus/es/components/form/src/hooks/use-form-common-props.js +20 -0
- package/es/node_modules/element-plus/es/components/form/src/hooks/use-form-item.js +51 -0
- package/es/node_modules/element-plus/es/components/form/src/utils.js +45 -0
- package/es/node_modules/element-plus/es/components/icon/index.js +7 -0
- package/es/node_modules/element-plus/es/components/icon/src/icon.js +12 -0
- package/es/node_modules/element-plus/es/components/icon/src/icon2.js +35 -0
- package/es/node_modules/element-plus/es/components/input/index.js +7 -0
- package/es/node_modules/element-plus/es/components/input/src/input.js +462 -0
- package/es/node_modules/element-plus/es/components/input/src/input2.js +128 -0
- package/es/node_modules/element-plus/es/components/input/src/utils.js +66 -0
- package/es/node_modules/element-plus/es/components/input-number/index.js +7 -0
- package/es/node_modules/element-plus/es/components/input-number/src/input-number.js +78 -0
- package/es/node_modules/element-plus/es/components/input-number/src/input-number2.js +272 -0
- package/es/node_modules/element-plus/es/components/input-tag/index.js +7 -0
- package/es/node_modules/element-plus/es/components/input-tag/src/composables/use-drag-tag.js +58 -0
- package/es/node_modules/element-plus/es/components/input-tag/src/composables/use-hovering.js +16 -0
- package/es/node_modules/element-plus/es/components/input-tag/src/composables/use-input-tag-dom.js +70 -0
- package/es/node_modules/element-plus/es/components/input-tag/src/composables/use-input-tag.js +145 -0
- package/es/node_modules/element-plus/es/components/input-tag/src/input-tag.js +86 -0
- package/es/node_modules/element-plus/es/components/input-tag/src/input-tag2.js +322 -0
- package/es/node_modules/element-plus/es/components/link/index.js +7 -0
- package/es/node_modules/element-plus/es/components/link/src/link.js +29 -0
- package/es/node_modules/element-plus/es/components/link/src/link2.js +72 -0
- package/es/node_modules/element-plus/es/components/loading/index.js +16 -0
- package/es/node_modules/element-plus/es/components/loading/src/directive.js +60 -0
- package/es/node_modules/element-plus/es/components/loading/src/loading.js +117 -0
- package/es/node_modules/element-plus/es/components/loading/src/service.js +67 -0
- package/es/node_modules/element-plus/es/components/menu/index.js +23 -0
- package/es/node_modules/element-plus/es/components/menu/src/menu-collapse-transition.js +40 -0
- package/es/node_modules/element-plus/es/components/menu/src/menu-item-group.js +6 -0
- package/es/node_modules/element-plus/es/components/menu/src/menu-item-group2.js +48 -0
- package/es/node_modules/element-plus/es/components/menu/src/menu-item.js +18 -0
- package/es/node_modules/element-plus/es/components/menu/src/menu-item2.js +102 -0
- package/es/node_modules/element-plus/es/components/menu/src/menu.js +299 -0
- package/es/node_modules/element-plus/es/components/menu/src/sub-menu.js +309 -0
- package/es/node_modules/element-plus/es/components/menu/src/tokens.js +5 -0
- package/es/node_modules/element-plus/es/components/menu/src/use-menu-color.js +11 -0
- package/es/node_modules/element-plus/es/components/menu/src/use-menu-css-var.js +19 -0
- package/es/node_modules/element-plus/es/components/menu/src/use-menu.js +22 -0
- package/es/node_modules/element-plus/es/components/menu/src/utils/menu-bar.js +15 -0
- package/es/node_modules/element-plus/es/components/menu/src/utils/menu-item.js +44 -0
- package/es/node_modules/element-plus/es/components/menu/src/utils/submenu.js +47 -0
- package/es/node_modules/element-plus/es/components/message/index.js +7 -0
- package/es/node_modules/element-plus/es/components/message/src/instance.js +18 -0
- package/es/node_modules/element-plus/es/components/message/src/message.js +112 -0
- package/es/node_modules/element-plus/es/components/message/src/message2.js +148 -0
- package/es/node_modules/element-plus/es/components/message/src/method.js +118 -0
- package/es/node_modules/element-plus/es/components/message-box/index.js +10 -0
- package/es/node_modules/element-plus/es/components/message-box/src/index.js +466 -0
- package/es/node_modules/element-plus/es/components/message-box/src/messageBox.js +93 -0
- package/es/node_modules/element-plus/es/components/overlay/index.js +9 -0
- package/es/node_modules/element-plus/es/components/overlay/src/overlay.js +70 -0
- package/es/node_modules/element-plus/es/components/pagination/index.js +10 -0
- package/es/node_modules/element-plus/es/components/pagination/src/components/jumper.js +11 -0
- package/es/node_modules/element-plus/es/components/pagination/src/components/jumper2.js +62 -0
- package/es/node_modules/element-plus/es/components/pagination/src/components/next.js +40 -0
- package/es/node_modules/element-plus/es/components/pagination/src/components/next2.js +22 -0
- package/es/node_modules/element-plus/es/components/pagination/src/components/pager.js +19 -0
- package/es/node_modules/element-plus/es/components/pagination/src/components/pager2.js +151 -0
- package/es/node_modules/element-plus/es/components/pagination/src/components/prev.js +21 -0
- package/es/node_modules/element-plus/es/components/pagination/src/components/prev2.js +40 -0
- package/es/node_modules/element-plus/es/components/pagination/src/components/sizes.js +29 -0
- package/es/node_modules/element-plus/es/components/pagination/src/components/sizes2.js +75 -0
- package/es/node_modules/element-plus/es/components/pagination/src/components/total.js +10 -0
- package/es/node_modules/element-plus/es/components/pagination/src/components/total2.js +24 -0
- package/es/node_modules/element-plus/es/components/pagination/src/constants.js +4 -0
- package/es/node_modules/element-plus/es/components/pagination/src/pagination.js +246 -0
- package/es/node_modules/element-plus/es/components/pagination/src/usePagination.js +6 -0
- package/es/node_modules/element-plus/es/components/popconfirm/index.js +7 -0
- package/es/node_modules/element-plus/es/components/popconfirm/src/popconfirm.js +145 -0
- package/es/node_modules/element-plus/es/components/popconfirm/src/popconfirm2.js +53 -0
- package/es/node_modules/element-plus/es/components/popover/index.js +11 -0
- package/es/node_modules/element-plus/es/components/popover/src/directive.js +17 -0
- package/es/node_modules/element-plus/es/components/popover/src/popover.js +70 -0
- package/es/node_modules/element-plus/es/components/popover/src/popover2.js +97 -0
- package/es/node_modules/element-plus/es/components/popper/index.js +7 -0
- package/es/node_modules/element-plus/es/components/popper/src/arrow.js +10 -0
- package/es/node_modules/element-plus/es/components/popper/src/arrow2.js +35 -0
- package/es/node_modules/element-plus/es/components/popper/src/composables/use-content-dom.js +40 -0
- package/es/node_modules/element-plus/es/components/popper/src/composables/use-content.js +63 -0
- package/es/node_modules/element-plus/es/components/popper/src/composables/use-focus-trap.js +29 -0
- package/es/node_modules/element-plus/es/components/popper/src/constants.js +5 -0
- package/es/node_modules/element-plus/es/components/popper/src/content.js +89 -0
- package/es/node_modules/element-plus/es/components/popper/src/content2.js +118 -0
- package/es/node_modules/element-plus/es/components/popper/src/popper.js +21 -0
- package/es/node_modules/element-plus/es/components/popper/src/popper2.js +24 -0
- package/es/node_modules/element-plus/es/components/popper/src/trigger.js +33 -0
- package/es/node_modules/element-plus/es/components/popper/src/trigger2.js +116 -0
- package/es/node_modules/element-plus/es/components/popper/src/utils.js +56 -0
- package/es/node_modules/element-plus/es/components/radio/index.js +14 -0
- package/es/node_modules/element-plus/es/components/radio/src/constants.js +4 -0
- package/es/node_modules/element-plus/es/components/radio/src/radio-button.js +8 -0
- package/es/node_modules/element-plus/es/components/radio/src/radio-button2.js +74 -0
- package/es/node_modules/element-plus/es/components/radio/src/radio-group.js +57 -0
- package/es/node_modules/element-plus/es/components/radio/src/radio-group2.js +82 -0
- package/es/node_modules/element-plus/es/components/radio/src/radio.js +39 -0
- package/es/node_modules/element-plus/es/components/radio/src/radio2.js +97 -0
- package/es/node_modules/element-plus/es/components/radio/src/use-radio.js +39 -0
- package/es/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group-impl.js +118 -0
- package/es/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group.js +33 -0
- package/es/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group2.js +34 -0
- package/es/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-item.js +81 -0
- package/es/node_modules/element-plus/es/components/roving-focus-group/src/tokens.js +5 -0
- package/es/node_modules/element-plus/es/components/roving-focus-group/src/utils.js +37 -0
- package/es/node_modules/element-plus/es/components/row/index.js +7 -0
- package/es/node_modules/element-plus/es/components/row/src/constants.js +4 -0
- package/es/node_modules/element-plus/es/components/row/src/row.js +32 -0
- package/es/node_modules/element-plus/es/components/row/src/row2.js +37 -0
- package/es/node_modules/element-plus/es/components/scrollbar/index.js +7 -0
- package/es/node_modules/element-plus/es/components/scrollbar/src/bar.js +14 -0
- package/es/node_modules/element-plus/es/components/scrollbar/src/bar2.js +51 -0
- package/es/node_modules/element-plus/es/components/scrollbar/src/constants.js +6 -0
- package/es/node_modules/element-plus/es/components/scrollbar/src/scrollbar.js +61 -0
- package/es/node_modules/element-plus/es/components/scrollbar/src/scrollbar2.js +168 -0
- package/es/node_modules/element-plus/es/components/scrollbar/src/thumb.js +14 -0
- package/es/node_modules/element-plus/es/components/scrollbar/src/thumb2.js +112 -0
- package/es/node_modules/element-plus/es/components/scrollbar/src/util.js +34 -0
- package/es/node_modules/element-plus/es/components/select/index.js +14 -0
- package/es/node_modules/element-plus/es/components/select/src/option-group.js +87 -0
- package/es/node_modules/element-plus/es/components/select/src/option.js +16 -0
- package/es/node_modules/element-plus/es/components/select/src/option2.js +82 -0
- package/es/node_modules/element-plus/es/components/select/src/options.js +28 -0
- package/es/node_modules/element-plus/es/components/select/src/select-dropdown.js +66 -0
- package/es/node_modules/element-plus/es/components/select/src/select.js +148 -0
- package/es/node_modules/element-plus/es/components/select/src/select2.js +664 -0
- package/es/node_modules/element-plus/es/components/select/src/token.js +5 -0
- package/es/node_modules/element-plus/es/components/select/src/useOption.js +68 -0
- package/es/node_modules/element-plus/es/components/select/src/useSelect.js +486 -0
- package/es/node_modules/element-plus/es/components/select-v2/src/useProps.js +30 -0
- package/es/node_modules/element-plus/es/components/slot/src/only-child.js +53 -0
- package/es/node_modules/element-plus/es/components/space/index.js +9 -0
- package/es/node_modules/element-plus/es/components/space/src/item.js +19 -0
- package/es/node_modules/element-plus/es/components/space/src/space.js +144 -0
- package/es/node_modules/element-plus/es/components/space/src/use-space.js +37 -0
- package/es/node_modules/element-plus/es/components/switch/index.js +7 -0
- package/es/node_modules/element-plus/es/components/switch/src/switch.js +264 -0
- package/es/node_modules/element-plus/es/components/switch/src/switch2.js +79 -0
- package/es/node_modules/element-plus/es/components/table/index.js +11 -0
- package/es/node_modules/element-plus/es/components/table/src/composables/use-scrollbar.js +20 -0
- package/es/node_modules/element-plus/es/components/table/src/config.js +204 -0
- package/es/node_modules/element-plus/es/components/table/src/filter-panel.js +306 -0
- package/es/node_modules/element-plus/es/components/table/src/h-helper.js +26 -0
- package/es/node_modules/element-plus/es/components/table/src/layout-observer.js +50 -0
- package/es/node_modules/element-plus/es/components/table/src/store/current.js +47 -0
- package/es/node_modules/element-plus/es/components/table/src/store/expand.js +50 -0
- package/es/node_modules/element-plus/es/components/table/src/store/helper.js +58 -0
- package/es/node_modules/element-plus/es/components/table/src/store/index.js +113 -0
- package/es/node_modules/element-plus/es/components/table/src/store/tree.js +151 -0
- package/es/node_modules/element-plus/es/components/table/src/store/watcher.js +327 -0
- package/es/node_modules/element-plus/es/components/table/src/table/defaults.js +90 -0
- package/es/node_modules/element-plus/es/components/table/src/table/key-render-helper.js +18 -0
- package/es/node_modules/element-plus/es/components/table/src/table/style-helper.js +173 -0
- package/es/node_modules/element-plus/es/components/table/src/table/utils-helper.js +35 -0
- package/es/node_modules/element-plus/es/components/table/src/table-body/defaults.js +25 -0
- package/es/node_modules/element-plus/es/components/table/src/table-body/events-helper.js +125 -0
- package/es/node_modules/element-plus/es/components/table/src/table-body/index.js +67 -0
- package/es/node_modules/element-plus/es/components/table/src/table-body/render-helper.js +178 -0
- package/es/node_modules/element-plus/es/components/table/src/table-body/styles-helper.js +88 -0
- package/es/node_modules/element-plus/es/components/table/src/table-body/td-wrapper.js +28 -0
- package/es/node_modules/element-plus/es/components/table/src/table-column/defaults.js +62 -0
- package/es/node_modules/element-plus/es/components/table/src/table-column/index.js +125 -0
- package/es/node_modules/element-plus/es/components/table/src/table-column/render-helper.js +106 -0
- package/es/node_modules/element-plus/es/components/table/src/table-column/watcher-helper.js +70 -0
- package/es/node_modules/element-plus/es/components/table/src/table-footer/index.js +99 -0
- package/es/node_modules/element-plus/es/components/table/src/table-footer/mapState-helper.js +34 -0
- package/es/node_modules/element-plus/es/components/table/src/table-footer/style-helper.js +30 -0
- package/es/node_modules/element-plus/es/components/table/src/table-header/event-helper.js +114 -0
- package/es/node_modules/element-plus/es/components/table/src/table-header/index.js +244 -0
- package/es/node_modules/element-plus/es/components/table/src/table-header/style.helper.js +64 -0
- package/es/node_modules/element-plus/es/components/table/src/table-header/utils-helper.js +45 -0
- package/es/node_modules/element-plus/es/components/table/src/table-layout.js +146 -0
- package/es/node_modules/element-plus/es/components/table/src/table.js +423 -0
- package/es/node_modules/element-plus/es/components/table/src/tokens.js +4 -0
- package/es/node_modules/element-plus/es/components/table/src/util.js +312 -0
- package/es/node_modules/element-plus/es/components/tabs/index.js +14 -0
- package/es/node_modules/element-plus/es/components/tabs/src/constants.js +4 -0
- package/es/node_modules/element-plus/es/components/tabs/src/tab-bar.js +15 -0
- package/es/node_modules/element-plus/es/components/tabs/src/tab-bar2.js +75 -0
- package/es/node_modules/element-plus/es/components/tabs/src/tab-nav.js +215 -0
- package/es/node_modules/element-plus/es/components/tabs/src/tab-pane.js +19 -0
- package/es/node_modules/element-plus/es/components/tabs/src/tab-pane2.js +69 -0
- package/es/node_modules/element-plus/es/components/tabs/src/tabs.js +151 -0
- package/es/node_modules/element-plus/es/components/tag/index.js +7 -0
- package/es/node_modules/element-plus/es/components/tag/src/tag.js +119 -0
- package/es/node_modules/element-plus/es/components/tag/src/tag2.js +30 -0
- package/es/node_modules/element-plus/es/components/teleport/index.js +7 -0
- package/es/node_modules/element-plus/es/components/teleport/src/teleport.js +11 -0
- package/es/node_modules/element-plus/es/components/teleport/src/teleport2.js +19 -0
- package/es/node_modules/element-plus/es/components/text/index.js +7 -0
- package/es/node_modules/element-plus/es/components/text/src/text.js +25 -0
- package/es/node_modules/element-plus/es/components/text/src/text2.js +49 -0
- package/es/node_modules/element-plus/es/components/time-picker/src/common/picker-range-trigger.js +112 -0
- package/es/node_modules/element-plus/es/components/time-picker/src/common/picker.js +410 -0
- package/es/node_modules/element-plus/es/components/time-picker/src/common/props.js +139 -0
- package/es/node_modules/element-plus/es/components/time-picker/src/composables/use-common-picker.js +61 -0
- package/es/node_modules/element-plus/es/components/time-picker/src/composables/use-time-panel.js +60 -0
- package/es/node_modules/element-plus/es/components/time-picker/src/composables/use-time-picker.js +40 -0
- package/es/node_modules/element-plus/es/components/time-picker/src/constants.js +23 -0
- package/es/node_modules/element-plus/es/components/time-picker/src/props/basic-time-spinner.js +25 -0
- package/es/node_modules/element-plus/es/components/time-picker/src/props/panel-time-picker.js +12 -0
- package/es/node_modules/element-plus/es/components/time-picker/src/props/shared.js +26 -0
- package/es/node_modules/element-plus/es/components/time-picker/src/time-picker-com/basic-time-spinner.js +312 -0
- package/es/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-pick.js +135 -0
- package/es/node_modules/element-plus/es/components/time-picker/src/utils.js +37 -0
- package/es/node_modules/element-plus/es/components/tooltip/index.js +7 -0
- package/es/node_modules/element-plus/es/components/tooltip/src/constants.js +4 -0
- package/es/node_modules/element-plus/es/components/tooltip/src/content.js +32 -0
- package/es/node_modules/element-plus/es/components/tooltip/src/content2.js +156 -0
- package/es/node_modules/element-plus/es/components/tooltip/src/tooltip.js +36 -0
- package/es/node_modules/element-plus/es/components/tooltip/src/tooltip2.js +156 -0
- package/es/node_modules/element-plus/es/components/tooltip/src/trigger.js +19 -0
- package/es/node_modules/element-plus/es/components/tooltip/src/trigger2.js +80 -0
- package/es/node_modules/element-plus/es/components/tooltip/src/utils.js +9 -0
- package/es/node_modules/element-plus/es/components/tree/index.js +7 -0
- package/es/node_modules/element-plus/es/components/tree/src/model/node.js +266 -0
- package/es/node_modules/element-plus/es/components/tree/src/model/tree-store.js +223 -0
- package/es/node_modules/element-plus/es/components/tree/src/model/useDragNode.js +90 -0
- package/es/node_modules/element-plus/es/components/tree/src/model/useKeydown.js +85 -0
- package/es/node_modules/element-plus/es/components/tree/src/model/useNodeExpandEventBroadcast.js +27 -0
- package/es/node_modules/element-plus/es/components/tree/src/model/util.js +19 -0
- package/es/node_modules/element-plus/es/components/tree/src/tokens.js +6 -0
- package/es/node_modules/element-plus/es/components/tree/src/tree-node-content.js +34 -0
- package/es/node_modules/element-plus/es/components/tree/src/tree-node.js +269 -0
- package/es/node_modules/element-plus/es/components/tree/src/tree.js +95 -0
- package/es/node_modules/element-plus/es/components/tree/src/tree2.js +250 -0
- package/es/node_modules/element-plus/es/components/virtual-list/src/defaults.js +4 -0
- package/es/node_modules/element-plus/es/components/virtual-list/src/hooks/use-wheel.js +22 -0
- package/es/node_modules/element-plus/es/constants/aria.js +20 -0
- package/es/node_modules/element-plus/es/constants/date.js +17 -0
- package/es/node_modules/element-plus/es/constants/event.js +6 -0
- package/es/node_modules/element-plus/es/constants/form.js +5 -0
- package/es/node_modules/element-plus/es/constants/size.js +4 -0
- package/es/node_modules/element-plus/es/directives/click-outside/index.js +46 -0
- package/es/node_modules/element-plus/es/directives/mousewheel/index.js +28 -0
- package/es/node_modules/element-plus/es/directives/repeat-click/index.js +30 -0
- package/es/node_modules/element-plus/es/directives/trap-focus/index.js +37 -0
- package/es/node_modules/element-plus/es/hooks/use-aria/index.js +14 -0
- package/es/node_modules/element-plus/es/hooks/use-attrs/index.js +22 -0
- package/es/node_modules/element-plus/es/hooks/use-calc-input-width/index.js +19 -0
- package/es/node_modules/element-plus/es/hooks/use-composition/index.js +29 -0
- package/es/node_modules/element-plus/es/hooks/use-cursor/index.js +39 -0
- package/es/node_modules/element-plus/es/hooks/use-delayed-toggle/index.js +49 -0
- package/es/node_modules/element-plus/es/hooks/use-deprecated/index.js +21 -0
- package/es/node_modules/element-plus/es/hooks/use-draggable/index.js +47 -0
- package/es/node_modules/element-plus/es/hooks/use-empty-values/index.js +38 -0
- package/es/node_modules/element-plus/es/hooks/use-escape-keydown/index.js +21 -0
- package/es/node_modules/element-plus/es/hooks/use-focus-controller/index.js +38 -0
- package/es/node_modules/element-plus/es/hooks/use-forward-ref/index.js +23 -0
- package/es/node_modules/element-plus/es/hooks/use-id/index.js +27 -0
- package/es/node_modules/element-plus/es/hooks/use-locale/index.js +27 -0
- package/es/node_modules/element-plus/es/hooks/use-lockscreen/index.js +30 -0
- package/es/node_modules/element-plus/es/hooks/use-model-toggle/index.js +69 -0
- package/es/node_modules/element-plus/es/hooks/use-namespace/index.js +44 -0
- package/es/node_modules/element-plus/es/hooks/use-ordered-children/index.js +45 -0
- package/es/node_modules/element-plus/es/hooks/use-popper/index.js +96 -0
- package/es/node_modules/element-plus/es/hooks/use-popper-container/index.js +26 -0
- package/es/node_modules/element-plus/es/hooks/use-prop/index.js +11 -0
- package/es/node_modules/element-plus/es/hooks/use-same-target/index.js +16 -0
- package/es/node_modules/element-plus/es/hooks/use-size/index.js +16 -0
- package/es/node_modules/element-plus/es/hooks/use-timeout/index.js +14 -0
- package/es/node_modules/element-plus/es/hooks/use-z-index/index.js +27 -0
- package/es/node_modules/element-plus/es/locale/lang/en.js +197 -0
- package/es/node_modules/element-plus/es/utils/arrays.js +6 -0
- package/es/node_modules/element-plus/es/utils/browser.js +9 -0
- package/es/node_modules/element-plus/es/utils/dom/aria.js +37 -0
- package/es/node_modules/element-plus/es/utils/dom/event.js +35 -0
- package/es/node_modules/element-plus/es/utils/dom/scroll.js +35 -0
- package/es/node_modules/element-plus/es/utils/dom/style.js +59 -0
- package/es/node_modules/element-plus/es/utils/error.js +19 -0
- package/es/node_modules/element-plus/es/utils/i18n.js +4 -0
- package/es/node_modules/element-plus/es/utils/objects.js +15 -0
- package/es/node_modules/element-plus/es/utils/raf.js +6 -0
- package/es/node_modules/element-plus/es/utils/strings.js +9 -0
- package/es/node_modules/element-plus/es/utils/types.js +20 -0
- package/es/node_modules/element-plus/es/utils/typescript.js +4 -0
- package/es/node_modules/element-plus/es/utils/vue/icon.js +32 -0
- package/es/node_modules/element-plus/es/utils/vue/install.js +20 -0
- package/es/node_modules/element-plus/es/utils/vue/props/runtime.js +37 -0
- package/es/node_modules/element-plus/es/utils/vue/refs.js +8 -0
- package/es/node_modules/element-plus/es/utils/vue/validator.js +5 -0
- package/es/node_modules/element-plus/es/utils/vue/vnode.js +26 -0
- package/es/node_modules/element-plus/theme-chalk/base.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-alert.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-aside.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-badge.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-button-group.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-button.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-card.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-checkbox-group.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-checkbox.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-col.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-collapse-item.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-collapse.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-config-provider.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-container.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-date-picker-panel.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-date-picker.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-dialog.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-divider.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-drawer.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-dropdown-item.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-dropdown-menu.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-dropdown.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-empty.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-footer.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-form-item.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-form.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-header.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-input-number.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-input-tag.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-input.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-link.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-loading.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-main.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-menu-item.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-menu.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-message-box.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-message.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-option-group.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-option.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-overlay.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-pagination.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-popconfirm.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-popover.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-popper.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-radio-button.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-radio-group.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-radio.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-row.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-scrollbar.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-select.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-space.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-sub-menu.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-switch.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-tab-pane.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-table-column.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-table.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-tabs.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-tag.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-text.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-tooltip.css.js +4 -0
- package/es/node_modules/element-plus/theme-chalk/el-tree.css.js +4 -0
- package/es/node_modules/file-saver/dist/FileSaver.min.js +73 -0
- package/es/node_modules/grid-layout-plus/es/components/grid-item.vue.js +358 -0
- package/es/node_modules/grid-layout-plus/es/components/grid-layout.vue.js +268 -0
- package/es/node_modules/grid-layout-plus/es/helpers/common.js +202 -0
- package/es/node_modules/grid-layout-plus/es/helpers/dom.js +10 -0
- package/es/node_modules/grid-layout-plus/es/helpers/draggable.js +33 -0
- package/es/node_modules/grid-layout-plus/es/helpers/responsive.js +40 -0
- package/es/node_modules/grid-layout-plus/es/index.js +13 -0
- package/es/node_modules/interactjs/dist/interact.min.js +2444 -0
- package/es/node_modules/jstat/dist/jstat.js +2295 -0
- package/es/node_modules/lodash-es/_DataView.js +7 -0
- package/es/node_modules/lodash-es/_Hash.js +20 -0
- package/es/node_modules/lodash-es/_ListCache.js +20 -0
- package/es/node_modules/lodash-es/_Map.js +7 -0
- package/es/node_modules/lodash-es/_MapCache.js +20 -0
- package/es/node_modules/lodash-es/_Promise.js +7 -0
- package/es/node_modules/lodash-es/_Set.js +7 -0
- package/es/node_modules/lodash-es/_SetCache.js +13 -0
- package/es/node_modules/lodash-es/_Stack.js +18 -0
- package/es/node_modules/lodash-es/_Symbol.js +6 -0
- package/es/node_modules/lodash-es/_Uint8Array.js +6 -0
- package/es/node_modules/lodash-es/_WeakMap.js +7 -0
- package/es/node_modules/lodash-es/_apply.js +16 -0
- package/es/node_modules/lodash-es/_arrayEach.js +8 -0
- package/es/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/es/node_modules/lodash-es/_arrayLikeKeys.js +20 -0
- package/es/node_modules/lodash-es/_arrayMap.js +8 -0
- package/es/node_modules/lodash-es/_arrayPush.js +8 -0
- package/es/node_modules/lodash-es/_arraySome.js +9 -0
- package/es/node_modules/lodash-es/_assignMergeValue.js +8 -0
- package/es/node_modules/lodash-es/_assignValue.js +10 -0
- package/es/node_modules/lodash-es/_assocIndexOf.js +10 -0
- package/es/node_modules/lodash-es/_baseAssign.js +8 -0
- package/es/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/es/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/es/node_modules/lodash-es/_baseClamp.js +6 -0
- package/es/node_modules/lodash-es/_baseClone.js +65 -0
- package/es/node_modules/lodash-es/_baseCreate.js +18 -0
- package/es/node_modules/lodash-es/_baseEach.js +7 -0
- package/es/node_modules/lodash-es/_baseFindIndex.js +9 -0
- package/es/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/es/node_modules/lodash-es/_baseFor.js +6 -0
- package/es/node_modules/lodash-es/_baseForOwn.js +8 -0
- package/es/node_modules/lodash-es/_baseGet.js +11 -0
- package/es/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/es/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/es/node_modules/lodash-es/_baseHas.js +7 -0
- package/es/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/es/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/es/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/es/node_modules/lodash-es/_baseIsEqualDeep.js +32 -0
- package/es/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/es/node_modules/lodash-es/_baseIsMatch.js +31 -0
- package/es/node_modules/lodash-es/_baseIsNative.js +16 -0
- package/es/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/es/node_modules/lodash-es/_baseIsTypedArray.js +12 -0
- package/es/node_modules/lodash-es/_baseIteratee.js +11 -0
- package/es/node_modules/lodash-es/_baseKeys.js +14 -0
- package/es/node_modules/lodash-es/_baseKeysIn.js +15 -0
- package/es/node_modules/lodash-es/_baseMap.js +11 -0
- package/es/node_modules/lodash-es/_baseMatches.js +12 -0
- package/es/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
- package/es/node_modules/lodash-es/_baseMerge.js +20 -0
- package/es/node_modules/lodash-es/_baseMergeDeep.js +31 -0
- package/es/node_modules/lodash-es/_basePick.js +10 -0
- package/es/node_modules/lodash-es/_basePickBy.js +13 -0
- package/es/node_modules/lodash-es/_baseProperty.js +8 -0
- package/es/node_modules/lodash-es/_basePropertyDeep.js +9 -0
- package/es/node_modules/lodash-es/_baseRest.js +9 -0
- package/es/node_modules/lodash-es/_baseSet.js +24 -0
- package/es/node_modules/lodash-es/_baseSetToString.js +15 -0
- package/es/node_modules/lodash-es/_baseSlice.js +10 -0
- package/es/node_modules/lodash-es/_baseTimes.js +8 -0
- package/es/node_modules/lodash-es/_baseToString.js +18 -0
- package/es/node_modules/lodash-es/_baseTrim.js +8 -0
- package/es/node_modules/lodash-es/_baseUnary.js +8 -0
- package/es/node_modules/lodash-es/_baseUnset.js +28 -0
- package/es/node_modules/lodash-es/_cacheHas.js +6 -0
- package/es/node_modules/lodash-es/_castPath.js +10 -0
- package/es/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/es/node_modules/lodash-es/_cloneBuffer.js +11 -0
- package/es/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/es/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/es/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/es/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/es/node_modules/lodash-es/_copyArray.js +9 -0
- package/es/node_modules/lodash-es/_copyObject.js +14 -0
- package/es/node_modules/lodash-es/_copySymbols.js +8 -0
- package/es/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/es/node_modules/lodash-es/_coreJsData.js +6 -0
- package/es/node_modules/lodash-es/_createAssigner.js +15 -0
- package/es/node_modules/lodash-es/_createBaseEach.js +15 -0
- package/es/node_modules/lodash-es/_createBaseFor.js +13 -0
- package/es/node_modules/lodash-es/_customOmitClone.js +7 -0
- package/es/node_modules/lodash-es/_defineProperty.js +12 -0
- package/es/node_modules/lodash-es/_equalArrays.js +40 -0
- package/es/node_modules/lodash-es/_equalByTag.js +45 -0
- package/es/node_modules/lodash-es/_equalObjects.js +36 -0
- package/es/node_modules/lodash-es/_flatRest.js +9 -0
- package/es/node_modules/lodash-es/_freeGlobal.js +5 -0
- package/es/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/es/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/es/node_modules/lodash-es/_getMapData.js +8 -0
- package/es/node_modules/lodash-es/_getMatchData.js +12 -0
- package/es/node_modules/lodash-es/_getNative.js +9 -0
- package/es/node_modules/lodash-es/_getPrototype.js +6 -0
- package/es/node_modules/lodash-es/_getRawTag.js +15 -0
- package/es/node_modules/lodash-es/_getSymbols.js +11 -0
- package/es/node_modules/lodash-es/_getSymbolsIn.js +13 -0
- package/es/node_modules/lodash-es/_getTag.js +29 -0
- package/es/node_modules/lodash-es/_getValue.js +6 -0
- package/es/node_modules/lodash-es/_hasPath.js +19 -0
- package/es/node_modules/lodash-es/_hashClear.js +7 -0
- package/es/node_modules/lodash-es/_hashDelete.js +7 -0
- package/es/node_modules/lodash-es/_hashGet.js +13 -0
- package/es/node_modules/lodash-es/_hashHas.js +9 -0
- package/es/node_modules/lodash-es/_hashSet.js +9 -0
- package/es/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/es/node_modules/lodash-es/_initCloneByTag.js +42 -0
- package/es/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/es/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/es/node_modules/lodash-es/_isIndex.js +8 -0
- package/es/node_modules/lodash-es/_isIterateeCall.js +13 -0
- package/es/node_modules/lodash-es/_isKey.js +12 -0
- package/es/node_modules/lodash-es/_isKeyable.js +7 -0
- package/es/node_modules/lodash-es/_isMasked.js +11 -0
- package/es/node_modules/lodash-es/_isPrototype.js +8 -0
- package/es/node_modules/lodash-es/_isStrictComparable.js +7 -0
- package/es/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/es/node_modules/lodash-es/_listCacheDelete.js +12 -0
- package/es/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/es/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/es/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/es/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/es/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/es/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/es/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/es/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/es/node_modules/lodash-es/_mapToArray.js +9 -0
- package/es/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
- package/es/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/es/node_modules/lodash-es/_nativeCreate.js +6 -0
- package/es/node_modules/lodash-es/_nativeKeys.js +6 -0
- package/es/node_modules/lodash-es/_nativeKeysIn.js +10 -0
- package/es/node_modules/lodash-es/_nodeUtil.js +12 -0
- package/es/node_modules/lodash-es/_objectToString.js +7 -0
- package/es/node_modules/lodash-es/_overArg.js +8 -0
- package/es/node_modules/lodash-es/_overRest.js +15 -0
- package/es/node_modules/lodash-es/_parent.js +8 -0
- package/es/node_modules/lodash-es/_root.js +6 -0
- package/es/node_modules/lodash-es/_safeGet.js +7 -0
- package/es/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/es/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/es/node_modules/lodash-es/_setToArray.js +9 -0
- package/es/node_modules/lodash-es/_setToString.js +7 -0
- package/es/node_modules/lodash-es/_shortOut.js +16 -0
- package/es/node_modules/lodash-es/_stackClear.js +7 -0
- package/es/node_modules/lodash-es/_stackDelete.js +7 -0
- package/es/node_modules/lodash-es/_stackGet.js +6 -0
- package/es/node_modules/lodash-es/_stackHas.js +6 -0
- package/es/node_modules/lodash-es/_stackSet.js +17 -0
- package/es/node_modules/lodash-es/_stringToPath.js +11 -0
- package/es/node_modules/lodash-es/_toKey.js +11 -0
- package/es/node_modules/lodash-es/_toSource.js +17 -0
- package/es/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
- package/es/node_modules/lodash-es/castArray.js +10 -0
- package/es/node_modules/lodash-es/clamp.js +8 -0
- package/es/node_modules/lodash-es/clone.js +8 -0
- package/es/node_modules/lodash-es/cloneDeep.js +8 -0
- package/es/node_modules/lodash-es/constant.js +8 -0
- package/es/node_modules/lodash-es/debounce.js +54 -0
- package/es/node_modules/lodash-es/eq.js +6 -0
- package/es/node_modules/lodash-es/findLastIndex.js +14 -0
- package/es/node_modules/lodash-es/flatMap.js +8 -0
- package/es/node_modules/lodash-es/flatten.js +8 -0
- package/es/node_modules/lodash-es/fromPairs.js +10 -0
- package/es/node_modules/lodash-es/get.js +8 -0
- package/es/node_modules/lodash-es/has.js +8 -0
- package/es/node_modules/lodash-es/hasIn.js +8 -0
- package/es/node_modules/lodash-es/identity.js +6 -0
- package/es/node_modules/lodash-es/isArguments.js +11 -0
- package/es/node_modules/lodash-es/isArray.js +5 -0
- package/es/node_modules/lodash-es/isArrayLike.js +8 -0
- package/es/node_modules/lodash-es/isArrayLikeObject.js +8 -0
- package/es/node_modules/lodash-es/isBuffer.js +7 -0
- package/es/node_modules/lodash-es/isEqual.js +7 -0
- package/es/node_modules/lodash-es/isFunction.js +12 -0
- package/es/node_modules/lodash-es/isLength.js +7 -0
- package/es/node_modules/lodash-es/isMap.js +8 -0
- package/es/node_modules/lodash-es/isNil.js +6 -0
- package/es/node_modules/lodash-es/isNull.js +6 -0
- package/es/node_modules/lodash-es/isObject.js +7 -0
- package/es/node_modules/lodash-es/isObjectLike.js +6 -0
- package/es/node_modules/lodash-es/isPlainObject.js +16 -0
- package/es/node_modules/lodash-es/isSet.js +8 -0
- package/es/node_modules/lodash-es/isSymbol.js +9 -0
- package/es/node_modules/lodash-es/isTypedArray.js +8 -0
- package/es/node_modules/lodash-es/isUndefined.js +6 -0
- package/es/node_modules/lodash-es/keys.js +9 -0
- package/es/node_modules/lodash-es/keysIn.js +9 -0
- package/es/node_modules/lodash-es/last.js +7 -0
- package/es/node_modules/lodash-es/map.js +11 -0
- package/es/node_modules/lodash-es/memoize.js +18 -0
- package/es/node_modules/lodash-es/merge.js +9 -0
- package/es/node_modules/lodash-es/now.js +8 -0
- package/es/node_modules/lodash-es/omit.js +24 -0
- package/es/node_modules/lodash-es/pick.js +9 -0
- package/es/node_modules/lodash-es/property.js +10 -0
- package/es/node_modules/lodash-es/set.js +7 -0
- package/es/node_modules/lodash-es/stubArray.js +6 -0
- package/es/node_modules/lodash-es/stubFalse.js +6 -0
- package/es/node_modules/lodash-es/toFinite.js +14 -0
- package/es/node_modules/lodash-es/toInteger.js +8 -0
- package/es/node_modules/lodash-es/toNumber.js +22 -0
- package/es/node_modules/lodash-es/toPlainObject.js +8 -0
- package/es/node_modules/lodash-es/toString.js +7 -0
- package/es/node_modules/mitt/dist/mitt.js +19 -0
- package/es/node_modules/normalize-wheel-es/dist/index.js +92 -0
- package/es/node_modules/style-mod/src/style-mod.js +116 -0
- package/es/node_modules/uuid/dist/esm-browser/native.js +6 -0
- package/es/node_modules/uuid/dist/esm-browser/rng.js +10 -0
- package/es/node_modules/uuid/dist/esm-browser/stringify.js +9 -0
- package/es/node_modules/uuid/dist/esm-browser/v4.js +19 -0
- package/es/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +140 -0
- package/es/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js +1597 -0
- package/es/node_modules/vue-json-viewer/vue-json-viewer.js +727 -0
- package/es/node_modules/vxe-table/lib/style.css.js +4 -0
- package/es/node_modules/w3c-keyname/index.js +96 -0
- package/es/src/api/index.js +12 -0
- package/es/src/axios/config.js +127 -0
- package/es/src/axios/crypto.js +29 -0
- package/es/src/axios/index.js +35 -0
- package/es/src/axios/util.js +68 -0
- package/es/src/components/ConditionConfigButton.vue.js +4 -0
- package/es/src/components/ConditionConfigButton.vue2.js +91 -0
- package/es/src/components/DataSourceSelect.vue.js +77 -0
- package/es/src/components/EventConfigButton.vue.js +79 -0
- package/es/src/components/EventConfigButton.vue2.js +4 -0
- package/es/src/components/FieldMapping.vue.js +4 -0
- package/es/src/components/FieldMapping.vue2.js +164 -0
- package/es/src/components/FilterConfigDisplay.vue.js +82 -0
- package/es/src/components/FilterConfigDisplay.vue2.js +4 -0
- package/es/src/components/FormulaEditorInput.vue.js +128 -0
- package/es/src/components/JsonDataDrawer.vue.js +81 -0
- package/es/src/components/JsonDataDrawer.vue2.js +4 -0
- package/es/src/components/OptionConfig.vue.js +238 -0
- package/es/src/components/OptionConfig.vue2.js +4 -0
- package/es/src/components/ParamsConfig.vue.js +4 -0
- package/es/src/components/ParamsConfig.vue2.js +117 -0
- package/es/src/components/TemplateSelector.vue.js +216 -0
- package/es/src/components/TemplateSelector.vue2.js +4 -0
- package/es/src/components/ValueSelector.vue.js +4 -0
- package/es/src/components/ValueSelector.vue2.js +142 -0
- package/es/src/components/ValueSelectorPopover.vue.js +4 -0
- package/es/src/components/ValueSelectorPopover.vue2.js +263 -0
- package/es/src/components/useJsonDataDrawer.js +15 -0
- package/es/src/index.js +11 -0
- package/es/src/layout/aside/index.vue.js +175 -0
- package/es/src/layout/aside/index.vue2.js +4 -0
- package/es/src/layout/header/index.vue.js +207 -0
- package/es/src/layout/header/index.vue2.js +4 -0
- package/es/src/layout/index.vue.js +97 -0
- package/es/src/layout/index.vue2.js +4 -0
- package/es/src/layout/property/index.vue.js +35 -0
- package/es/src/layout/property/index.vue2.js +4 -0
- package/es/src/packages/advancedFilter/AdvancedFilter.vue.js +4 -0
- package/es/src/packages/advancedFilter/AdvancedFilter.vue2.js +321 -0
- package/es/src/packages/advancedFilter/Operator.vue.js +4 -0
- package/es/src/packages/advancedFilter/Operator.vue2.js +79 -0
- package/es/src/packages/advancedFilter/Trigger.vue.js +4 -0
- package/es/src/packages/advancedFilter/Trigger.vue2.js +84 -0
- package/es/src/packages/advancedFilter/ValueInput.vue.js +4 -0
- package/es/src/packages/advancedFilter/ValueInput.vue2.js +356 -0
- package/es/src/packages/advancedFilter/dialog.vue.js +89 -0
- package/es/src/packages/advancedFilter/dialog.vue2.js +4 -0
- package/es/src/packages/advancedFilter/index.vue.js +58 -0
- package/es/src/packages/advancedFilter/useAdvancedFilterDialog.js +15 -0
- package/es/src/packages/dataLinkage/dialog.vue.js +77 -0
- package/es/src/packages/dataLinkage/dialog.vue2.js +4 -0
- package/es/src/packages/dataLinkage/index.vue.js +442 -0
- package/es/src/packages/dataLinkage/index.vue2.js +4 -0
- package/es/src/packages/dataLinkage/useDataLinkageDialog.js +15 -0
- package/es/src/packages/dataSource/dataSource.vue.js +323 -0
- package/es/src/packages/dataSource/dataSource.vue2.js +4 -0
- package/es/src/packages/dataSource/index.vue.js +244 -0
- package/es/src/packages/dataSource/index.vue2.js +4 -0
- package/es/src/packages/dataSource/useDataSourceDialog.js +15 -0
- package/es/src/packages/event/index.vue.js +4 -0
- package/es/src/packages/event/index.vue2.js +295 -0
- package/es/src/packages/event/pageEvent.vue.js +213 -0
- package/es/src/packages/event/pageEvent.vue2.js +4 -0
- package/es/src/packages/event/useEventDialog.js +15 -0
- package/es/src/packages/eventFlow/defaultProcessData.js +19 -0
- package/es/src/packages/eventFlow/dialog/action/Advanced.vue.js +50 -0
- package/es/src/packages/eventFlow/dialog/action/Confirm.vue.js +140 -0
- package/es/src/packages/eventFlow/dialog/action/FormSetValue.vue.js +4 -0
- package/es/src/packages/eventFlow/dialog/action/FormSetValue.vue2.js +43 -0
- package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue.js +4 -0
- package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +84 -0
- package/es/src/packages/eventFlow/dialog/action/Message.vue.js +68 -0
- package/es/src/packages/eventFlow/dialog/action/Page.vue.js +86 -0
- package/es/src/packages/eventFlow/dialog/action/PageGoBack.vue.js +111 -0
- package/es/src/packages/eventFlow/dialog/action/Request.vue.js +28 -0
- package/es/src/packages/eventFlow/dialog/action/TableRefresh.vue.js +4 -0
- package/es/src/packages/eventFlow/dialog/action/TableRefresh.vue2.js +54 -0
- package/es/src/packages/eventFlow/dialog/action/config.js +88 -0
- package/es/src/packages/eventFlow/dialog/action/index.vue.js +4 -0
- package/es/src/packages/eventFlow/dialog/action/index.vue2.js +193 -0
- package/es/src/packages/eventFlow/dialog/execution/index.vue.js +4 -0
- package/es/src/packages/eventFlow/dialog/execution/index.vue2.js +81 -0
- package/es/src/packages/eventFlow/dialog/index.vue.js +112 -0
- package/es/src/packages/eventFlow/eventFlow.vue.js +4 -0
- package/es/src/packages/eventFlow/eventFlow.vue2.js +298 -0
- package/es/src/packages/eventFlow/hooks/useDraggableScroll.js +27 -0
- package/es/src/packages/eventFlow/index.vue.js +26 -0
- package/es/src/packages/eventFlow/nodes/Add.vue.js +4 -0
- package/es/src/packages/eventFlow/nodes/Add.vue2.js +84 -0
- package/es/src/packages/eventFlow/nodes/ApprovalNode.vue.js +41 -0
- package/es/src/packages/eventFlow/nodes/CcNode.vue.js +73 -0
- package/es/src/packages/eventFlow/nodes/ConditionNode.vue.js +4 -0
- package/es/src/packages/eventFlow/nodes/ConditionNode.vue2.js +52 -0
- package/es/src/packages/eventFlow/nodes/EndNode.vue.js +4 -0
- package/es/src/packages/eventFlow/nodes/EndNode.vue2.js +45 -0
- package/es/src/packages/eventFlow/nodes/ExclusiveNode.vue.js +36 -0
- package/es/src/packages/eventFlow/nodes/GatewayNode.vue.js +4 -0
- package/es/src/packages/eventFlow/nodes/GatewayNode.vue2.js +79 -0
- package/es/src/packages/eventFlow/nodes/Node.vue.js +4 -0
- package/es/src/packages/eventFlow/nodes/Node.vue2.js +176 -0
- package/es/src/packages/eventFlow/nodes/NotifyNode.vue.js +73 -0
- package/es/src/packages/eventFlow/nodes/ServiceNode.vue.js +38 -0
- package/es/src/packages/eventFlow/nodes/StartNode.vue.js +4 -0
- package/es/src/packages/eventFlow/nodes/StartNode.vue2.js +39 -0
- package/es/src/packages/eventFlow/nodes/TimerNode.vue.js +45 -0
- package/es/src/packages/eventFlow/nodes/TreeNode.vue.js +47 -0
- package/es/src/packages/form/HiddenFieldDialog.vue.js +258 -0
- package/es/src/packages/form/HiddenFieldDialog.vue2.js +4 -0
- package/es/src/packages/form/PageFooterSetting.vue.js +114 -0
- package/es/src/packages/form/PageFooterSetting.vue2.js +4 -0
- package/es/src/packages/form/PageHeaderSetting.vue.js +142 -0
- package/es/src/packages/form/PageHeaderSetting.vue2.js +4 -0
- package/es/src/packages/form/aside/index.js +123 -0
- package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +140 -0
- package/es/src/packages/form/components/ComponentPreviewWrapper.vue2.js +4 -0
- package/es/src/packages/form/components/DividerWrapper.vue.js +22 -0
- package/es/src/packages/form/components/DividerWrapper.vue2.js +4 -0
- package/es/src/packages/form/components/H2Wrapper.vue.js +24 -0
- package/es/src/packages/form/components/H2Wrapper.vue2.js +4 -0
- package/es/src/packages/form/components/SubForm.vue.js +88 -0
- package/es/src/packages/form/components/SubForm.vue2.js +4 -0
- package/es/src/packages/form/components/SubForm.vue3.js +4 -0
- package/es/src/packages/form/components/SubTable.vue.js +87 -0
- package/es/src/packages/form/components/SubTable.vue2.js +4 -0
- package/es/src/packages/form/default.js +41 -0
- package/es/src/packages/form/fieldRecycleBin.vue.js +194 -0
- package/es/src/packages/form/fieldRecycleBin.vue2.js +4 -0
- package/es/src/packages/form/formSetting.vue.js +137 -0
- package/es/src/packages/form/formSetting.vue2.js +4 -0
- package/es/src/packages/form/headerBtn.vue.js +138 -0
- package/es/src/packages/form/headerBtn.vue2.js +4 -0
- package/es/src/packages/form/index.vue.js +355 -0
- package/es/src/packages/form/index.vue2.js +4 -0
- package/es/src/packages/form/property/dividerH2.vue.js +86 -0
- package/es/src/packages/form/property/index.vue.js +40 -0
- package/es/src/packages/form/property/pageFooterBtn.vue.js +111 -0
- package/es/src/packages/form/property/pageHeaderBtn.vue.js +107 -0
- package/es/src/packages/form/property/subForm.vue.js +188 -0
- package/es/src/packages/form/property/subTable.vue.js +286 -0
- package/es/src/packages/form/property/widgets.vue.js +579 -0
- package/es/src/packages/form/property/widgets.vue2.js +4 -0
- package/es/src/packages/formulaEditor/components/FieldVariable.vue.js +71 -0
- package/es/src/packages/formulaEditor/components/FieldVariable.vue2.js +4 -0
- package/es/src/packages/formulaEditor/components/FormulaList.vue.js +93 -0
- package/es/src/packages/formulaEditor/components/FormulaList.vue2.js +4 -0
- package/es/src/packages/formulaEditor/core/calculate.js +50 -0
- package/es/src/packages/formulaEditor/core/functionCore.js +16 -0
- package/es/src/packages/formulaEditor/core/index.js +136 -0
- package/es/src/packages/formulaEditor/function.js +524 -0
- package/es/src/packages/formulaEditor/index.js +7 -0
- package/es/src/packages/formulaEditor/index.vue.js +186 -0
- package/es/src/packages/formulaEditor/index.vue2.js +4 -0
- package/es/src/packages/formulaEditor/utils/index.js +40 -0
- package/es/src/packages/mode/fieldSelection.vue.js +154 -0
- package/es/src/packages/mode/fieldSelection.vue2.js +4 -0
- package/es/src/packages/mode/index.vue.js +387 -0
- package/es/src/packages/mode/index.vue2.js +4 -0
- package/es/src/packages/mode/useModeDialog.js +15 -0
- package/es/src/packages/table/aside/index.js +53 -0
- package/es/src/packages/table/default.js +87 -0
- package/es/src/packages/table/headerBtn.vue.js +172 -0
- package/es/src/packages/table/headerBtn.vue2.js +4 -0
- package/es/src/packages/table/index.vue.js +373 -0
- package/es/src/packages/table/index.vue2.js +4 -0
- package/es/src/packages/table/property/customBtn.vue.js +142 -0
- package/es/src/packages/table/property/filterWidgets.vue.js +86 -0
- package/es/src/packages/table/property/index.vue.js +40 -0
- package/es/src/packages/table/property/optBtn.vue.js +126 -0
- package/es/src/packages/table/property/widgets.vue.js +430 -0
- package/es/src/packages/table/property/widgets.vue2.js +4 -0
- package/es/src/packages/table/queryModule/FixedModeConfig.vue.js +218 -0
- package/es/src/packages/table/queryModule/FixedModeConfig.vue2.js +4 -0
- package/es/src/packages/table/queryModule/index.vue.js +192 -0
- package/es/src/packages/table/queryModule/index.vue2.js +4 -0
- package/es/src/packages/table/tableBtn.vue.js +145 -0
- package/es/src/packages/table/tableBtn.vue2.js +4 -0
- package/es/src/packages/table/tablePagination.vue.js +196 -0
- package/es/src/packages/table/tablePagination.vue2.js +4 -0
- package/es/src/packages/table/tableSetting.vue.js +423 -0
- package/es/src/packages/table/tableSetting.vue2.js +4 -0
- package/es/src/packages/utils/common.js +65 -0
- package/es/src/packages/utils/datasource.js +226 -0
- package/es/src/packages/utils/eventBus.js +5 -0
- package/es/src/store/index.js +49 -0
- package/es/src/style/index.css.js +4 -0
- package/es/src/utils/env.js +9 -0
- package/es/style.css +1 -0
- package/package.json +52 -0
|
@@ -0,0 +1,2444 @@
|
|
|
1
|
+
import { getDefaultExportFromCjs as Cr, commonjsGlobal as Rr } from "../../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as Xe } from "../../../_virtual/interact.min.js";
|
|
3
|
+
Xe.exports;
|
|
4
|
+
(function(ye, Fr) {
|
|
5
|
+
(function(Ye, re) {
|
|
6
|
+
ye.exports = re();
|
|
7
|
+
})(Rr, function() {
|
|
8
|
+
function Ye(t, e) {
|
|
9
|
+
var n = Object.keys(t);
|
|
10
|
+
if (Object.getOwnPropertySymbols) {
|
|
11
|
+
var r = Object.getOwnPropertySymbols(t);
|
|
12
|
+
e && (r = r.filter(function(i) {
|
|
13
|
+
return Object.getOwnPropertyDescriptor(t, i).enumerable;
|
|
14
|
+
})), n.push.apply(n, r);
|
|
15
|
+
}
|
|
16
|
+
return n;
|
|
17
|
+
}
|
|
18
|
+
function re(t) {
|
|
19
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
20
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
21
|
+
e % 2 ? Ye(Object(n), !0).forEach(function(r) {
|
|
22
|
+
xn(t, r, n[r]);
|
|
23
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ye(Object(n)).forEach(function(r) {
|
|
24
|
+
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
}
|
|
29
|
+
function Z(t) {
|
|
30
|
+
return Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
31
|
+
return typeof e;
|
|
32
|
+
} : function(e) {
|
|
33
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
34
|
+
}, Z(t);
|
|
35
|
+
}
|
|
36
|
+
function k(t, e) {
|
|
37
|
+
if (!(t instanceof e))
|
|
38
|
+
throw new TypeError("Cannot call a class as a function");
|
|
39
|
+
}
|
|
40
|
+
function ht(t, e) {
|
|
41
|
+
for (var n = 0; n < e.length; n++) {
|
|
42
|
+
var r = e[n];
|
|
43
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, gt(r.key), r);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function D(t, e, n) {
|
|
47
|
+
return e && ht(t.prototype, e), n && ht(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
48
|
+
}
|
|
49
|
+
function xn(t, e, n) {
|
|
50
|
+
return (e = gt(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
51
|
+
}
|
|
52
|
+
function ie(t, e) {
|
|
53
|
+
if (typeof e != "function" && e !== null)
|
|
54
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
55
|
+
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && Le(t, e);
|
|
56
|
+
}
|
|
57
|
+
function H(t) {
|
|
58
|
+
return H = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
59
|
+
return e.__proto__ || Object.getPrototypeOf(e);
|
|
60
|
+
}, H(t);
|
|
61
|
+
}
|
|
62
|
+
function Le(t, e) {
|
|
63
|
+
return Le = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
|
|
64
|
+
return n.__proto__ = r, n;
|
|
65
|
+
}, Le(t, e);
|
|
66
|
+
}
|
|
67
|
+
function be(t) {
|
|
68
|
+
if (t === void 0)
|
|
69
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
70
|
+
return t;
|
|
71
|
+
}
|
|
72
|
+
function oe(t) {
|
|
73
|
+
var e = function() {
|
|
74
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
75
|
+
return !1;
|
|
76
|
+
if (typeof Proxy == "function")
|
|
77
|
+
return !0;
|
|
78
|
+
try {
|
|
79
|
+
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
80
|
+
})), !0;
|
|
81
|
+
} catch {
|
|
82
|
+
return !1;
|
|
83
|
+
}
|
|
84
|
+
}();
|
|
85
|
+
return function() {
|
|
86
|
+
var n, r = H(t);
|
|
87
|
+
if (e) {
|
|
88
|
+
var i = H(this).constructor;
|
|
89
|
+
n = Reflect.construct(r, arguments, i);
|
|
90
|
+
} else
|
|
91
|
+
n = r.apply(this, arguments);
|
|
92
|
+
return function(o, a) {
|
|
93
|
+
if (a && (typeof a == "object" || typeof a == "function"))
|
|
94
|
+
return a;
|
|
95
|
+
if (a !== void 0)
|
|
96
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
97
|
+
return be(o);
|
|
98
|
+
}(this, n);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
function xe() {
|
|
102
|
+
return xe = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(t, e, n) {
|
|
103
|
+
var r = function(o, a) {
|
|
104
|
+
for (; !Object.prototype.hasOwnProperty.call(o, a) && (o = H(o)) !== null; )
|
|
105
|
+
;
|
|
106
|
+
return o;
|
|
107
|
+
}(t, e);
|
|
108
|
+
if (r) {
|
|
109
|
+
var i = Object.getOwnPropertyDescriptor(r, e);
|
|
110
|
+
return i.get ? i.get.call(arguments.length < 3 ? t : n) : i.value;
|
|
111
|
+
}
|
|
112
|
+
}, xe.apply(this, arguments);
|
|
113
|
+
}
|
|
114
|
+
function gt(t) {
|
|
115
|
+
var e = function(n, r) {
|
|
116
|
+
if (typeof n != "object" || n === null)
|
|
117
|
+
return n;
|
|
118
|
+
var i = n[Symbol.toPrimitive];
|
|
119
|
+
if (i !== void 0) {
|
|
120
|
+
var o = i.call(n, r || "default");
|
|
121
|
+
if (typeof o != "object")
|
|
122
|
+
return o;
|
|
123
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
124
|
+
}
|
|
125
|
+
return (r === "string" ? String : Number)(n);
|
|
126
|
+
}(t, "string");
|
|
127
|
+
return typeof e == "symbol" ? e : e + "";
|
|
128
|
+
}
|
|
129
|
+
var mt = function(t) {
|
|
130
|
+
return !(!t || !t.Window) && t instanceof t.Window;
|
|
131
|
+
}, yt = void 0, U = void 0;
|
|
132
|
+
function bt(t) {
|
|
133
|
+
yt = t;
|
|
134
|
+
var e = t.document.createTextNode("");
|
|
135
|
+
e.ownerDocument !== t.document && typeof t.wrap == "function" && t.wrap(e) === e && (t = t.wrap(t)), U = t;
|
|
136
|
+
}
|
|
137
|
+
function F(t) {
|
|
138
|
+
return mt(t) ? t : (t.ownerDocument || t).defaultView || U.window;
|
|
139
|
+
}
|
|
140
|
+
typeof window < "u" && window && bt(window);
|
|
141
|
+
var we = function(t) {
|
|
142
|
+
return !!t && Z(t) === "object";
|
|
143
|
+
}, xt = function(t) {
|
|
144
|
+
return typeof t == "function";
|
|
145
|
+
}, d = { window: function(t) {
|
|
146
|
+
return t === U || mt(t);
|
|
147
|
+
}, docFrag: function(t) {
|
|
148
|
+
return we(t) && t.nodeType === 11;
|
|
149
|
+
}, object: we, func: xt, number: function(t) {
|
|
150
|
+
return typeof t == "number";
|
|
151
|
+
}, bool: function(t) {
|
|
152
|
+
return typeof t == "boolean";
|
|
153
|
+
}, string: function(t) {
|
|
154
|
+
return typeof t == "string";
|
|
155
|
+
}, element: function(t) {
|
|
156
|
+
if (!t || Z(t) !== "object")
|
|
157
|
+
return !1;
|
|
158
|
+
var e = F(t) || U;
|
|
159
|
+
return /object|function/.test(typeof Element > "u" ? "undefined" : Z(Element)) ? t instanceof Element || t instanceof e.Element : t.nodeType === 1 && typeof t.nodeName == "string";
|
|
160
|
+
}, plainObject: function(t) {
|
|
161
|
+
return we(t) && !!t.constructor && /function Object\b/.test(t.constructor.toString());
|
|
162
|
+
}, array: function(t) {
|
|
163
|
+
return we(t) && t.length !== void 0 && xt(t.splice);
|
|
164
|
+
} };
|
|
165
|
+
function qe(t) {
|
|
166
|
+
var e = t.interaction;
|
|
167
|
+
if (e.prepared.name === "drag") {
|
|
168
|
+
var n = e.prepared.axis;
|
|
169
|
+
n === "x" ? (e.coords.cur.page.y = e.coords.start.page.y, e.coords.cur.client.y = e.coords.start.client.y, e.coords.velocity.client.y = 0, e.coords.velocity.page.y = 0) : n === "y" && (e.coords.cur.page.x = e.coords.start.page.x, e.coords.cur.client.x = e.coords.start.client.x, e.coords.velocity.client.x = 0, e.coords.velocity.page.x = 0);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
function wt(t) {
|
|
173
|
+
var e = t.iEvent, n = t.interaction;
|
|
174
|
+
if (n.prepared.name === "drag") {
|
|
175
|
+
var r = n.prepared.axis;
|
|
176
|
+
if (r === "x" || r === "y") {
|
|
177
|
+
var i = r === "x" ? "y" : "x";
|
|
178
|
+
e.page[i] = n.coords.start.page[i], e.client[i] = n.coords.start.client[i], e.delta[i] = 0;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
var Ee = { id: "actions/drag", install: function(t) {
|
|
183
|
+
var e = t.actions, n = t.Interactable, r = t.defaults;
|
|
184
|
+
n.prototype.draggable = Ee.draggable, e.map.drag = Ee, e.methodDict.drag = "draggable", r.actions.drag = Ee.defaults;
|
|
185
|
+
}, listeners: { "interactions:before-action-move": qe, "interactions:action-resume": qe, "interactions:action-move": wt, "auto-start:check": function(t) {
|
|
186
|
+
var e = t.interaction, n = t.interactable, r = t.buttons, i = n.options.drag;
|
|
187
|
+
if (i && i.enabled && (!e.pointerIsDown || !/mouse|pointer/.test(e.pointerType) || r & n.options.drag.mouseButtons))
|
|
188
|
+
return t.action = { name: "drag", axis: i.lockAxis === "start" ? i.startAxis : i.lockAxis }, !1;
|
|
189
|
+
} }, draggable: function(t) {
|
|
190
|
+
return d.object(t) ? (this.options.drag.enabled = t.enabled !== !1, 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) : d.bool(t) ? (this.options.drag.enabled = t, this) : this.options.drag;
|
|
191
|
+
}, beforeMove: qe, move: wt, defaults: { startAxis: "xy", lockAxis: "xy" }, getCursor: function() {
|
|
192
|
+
return "move";
|
|
193
|
+
}, filterEventType: function(t) {
|
|
194
|
+
return t.search("drag") === 0;
|
|
195
|
+
} }, Et = Ee, A = { init: function(t) {
|
|
196
|
+
var e = t;
|
|
197
|
+
A.document = e.document, A.DocumentFragment = e.DocumentFragment || ee, A.SVGElement = e.SVGElement || ee, A.SVGSVGElement = e.SVGSVGElement || ee, A.SVGElementInstance = e.SVGElementInstance || ee, A.Element = e.Element || ee, A.HTMLElement = e.HTMLElement || A.Element, A.Event = e.Event, A.Touch = e.Touch || ee, A.PointerEvent = e.PointerEvent || e.MSPointerEvent;
|
|
198
|
+
}, document: null, DocumentFragment: null, SVGElement: null, SVGSVGElement: null, SVGElementInstance: null, Element: null, HTMLElement: null, Event: null, Touch: null, PointerEvent: null };
|
|
199
|
+
function ee() {
|
|
200
|
+
}
|
|
201
|
+
var O = A, C = { init: function(t) {
|
|
202
|
+
var e = O.Element, n = t.navigator || {};
|
|
203
|
+
C.supportsTouch = "ontouchstart" in t || d.func(t.DocumentTouch) && O.document instanceof t.DocumentTouch, C.supportsPointerEvent = n.pointerEnabled !== !1 && !!O.PointerEvent, C.isIOS = /iP(hone|od|ad)/.test(n.platform), C.isIOS7 = /iP(hone|od|ad)/.test(n.platform) && /OS 7[^\d]/.test(n.appVersion), C.isIe9 = /MSIE 9/.test(n.userAgent), C.isOperaMobile = n.appName === "Opera" && C.supportsTouch && /Presto/.test(n.userAgent), C.prefixedMatchesSelector = "matches" in e.prototype ? "matches" : "webkitMatchesSelector" in e.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in e.prototype ? "mozMatchesSelector" : "oMatchesSelector" in e.prototype ? "oMatchesSelector" : "msMatchesSelector", C.pEventTypes = C.supportsPointerEvent ? O.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, C.wheelEvent = O.document && "onmousewheel" in O.document ? "mousewheel" : "wheel";
|
|
204
|
+
}, supportsTouch: null, supportsPointerEvent: null, isIOS7: null, isIOS: null, isIe9: null, isOperaMobile: null, prefixedMatchesSelector: null, pEventTypes: null, wheelEvent: null }, R = C;
|
|
205
|
+
function K(t, e) {
|
|
206
|
+
if (t.contains)
|
|
207
|
+
return t.contains(e);
|
|
208
|
+
for (; e; ) {
|
|
209
|
+
if (e === t)
|
|
210
|
+
return !0;
|
|
211
|
+
e = e.parentNode;
|
|
212
|
+
}
|
|
213
|
+
return !1;
|
|
214
|
+
}
|
|
215
|
+
function Tt(t, e) {
|
|
216
|
+
for (; d.element(t); ) {
|
|
217
|
+
if (B(t, e))
|
|
218
|
+
return t;
|
|
219
|
+
t = X(t);
|
|
220
|
+
}
|
|
221
|
+
return null;
|
|
222
|
+
}
|
|
223
|
+
function X(t) {
|
|
224
|
+
var e = t.parentNode;
|
|
225
|
+
if (d.docFrag(e)) {
|
|
226
|
+
for (; (e = e.host) && d.docFrag(e); )
|
|
227
|
+
;
|
|
228
|
+
return e;
|
|
229
|
+
}
|
|
230
|
+
return e;
|
|
231
|
+
}
|
|
232
|
+
function B(t, e) {
|
|
233
|
+
return U !== yt && (e = e.replace(/\/deep\//g, " ")), t[R.prefixedMatchesSelector](e);
|
|
234
|
+
}
|
|
235
|
+
var Be = function(t) {
|
|
236
|
+
return t.parentNode || t.host;
|
|
237
|
+
};
|
|
238
|
+
function St(t, e) {
|
|
239
|
+
for (var n, r = [], i = t; (n = Be(i)) && i !== e && n !== i.ownerDocument; )
|
|
240
|
+
r.unshift(i), i = n;
|
|
241
|
+
return r;
|
|
242
|
+
}
|
|
243
|
+
function Ve(t, e, n) {
|
|
244
|
+
for (; d.element(t); ) {
|
|
245
|
+
if (B(t, e))
|
|
246
|
+
return !0;
|
|
247
|
+
if ((t = X(t)) === n)
|
|
248
|
+
return B(t, e);
|
|
249
|
+
}
|
|
250
|
+
return !1;
|
|
251
|
+
}
|
|
252
|
+
function _t(t) {
|
|
253
|
+
return t.correspondingUseElement || t;
|
|
254
|
+
}
|
|
255
|
+
function We(t) {
|
|
256
|
+
var e = t instanceof O.SVGElement ? t.getBoundingClientRect() : t.getClientRects()[0];
|
|
257
|
+
return e && { left: e.left, right: e.right, top: e.top, bottom: e.bottom, width: e.width || e.right - e.left, height: e.height || e.bottom - e.top };
|
|
258
|
+
}
|
|
259
|
+
function Ge(t) {
|
|
260
|
+
var e, n = We(t);
|
|
261
|
+
if (!R.isIOS7 && n) {
|
|
262
|
+
var r = { x: (e = (e = F(t)) || U).scrollX || e.document.documentElement.scrollLeft, y: e.scrollY || e.document.documentElement.scrollTop };
|
|
263
|
+
n.left += r.x, n.right += r.x, n.top += r.y, n.bottom += r.y;
|
|
264
|
+
}
|
|
265
|
+
return n;
|
|
266
|
+
}
|
|
267
|
+
function Pt(t) {
|
|
268
|
+
for (var e = []; t; )
|
|
269
|
+
e.push(t), t = X(t);
|
|
270
|
+
return e;
|
|
271
|
+
}
|
|
272
|
+
function Ot(t) {
|
|
273
|
+
return !!d.string(t) && (O.document.querySelector(t), !0);
|
|
274
|
+
}
|
|
275
|
+
function x(t, e) {
|
|
276
|
+
for (var n in e)
|
|
277
|
+
t[n] = e[n];
|
|
278
|
+
return t;
|
|
279
|
+
}
|
|
280
|
+
function kt(t, e, n) {
|
|
281
|
+
return t === "parent" ? X(n) : t === "self" ? e.getRect(n) : Tt(n, t);
|
|
282
|
+
}
|
|
283
|
+
function ae(t, e, n, r) {
|
|
284
|
+
var i = t;
|
|
285
|
+
return d.string(i) ? i = kt(i, e, n) : d.func(i) && (i = i.apply(void 0, r)), d.element(i) && (i = Ge(i)), i;
|
|
286
|
+
}
|
|
287
|
+
function Te(t) {
|
|
288
|
+
return t && { x: "x" in t ? t.x : t.left, y: "y" in t ? t.y : t.top };
|
|
289
|
+
}
|
|
290
|
+
function Ne(t) {
|
|
291
|
+
return !t || "x" in t && "y" in t || ((t = x({}, 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;
|
|
292
|
+
}
|
|
293
|
+
function Se(t, e, n) {
|
|
294
|
+
t.left && (e.left += n.x), t.right && (e.right += n.x), t.top && (e.top += n.y), t.bottom && (e.bottom += n.y), e.width = e.right - e.left, e.height = e.bottom - e.top;
|
|
295
|
+
}
|
|
296
|
+
function se(t, e, n) {
|
|
297
|
+
var r = n && t.options[n];
|
|
298
|
+
return Te(ae(r && r.origin || t.options.origin, t, e, [t && e])) || { x: 0, y: 0 };
|
|
299
|
+
}
|
|
300
|
+
function $(t, e) {
|
|
301
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(c) {
|
|
302
|
+
return !0;
|
|
303
|
+
}, r = arguments.length > 3 ? arguments[3] : void 0;
|
|
304
|
+
if (r = r || {}, d.string(t) && t.search(" ") !== -1 && (t = Dt(t)), d.array(t))
|
|
305
|
+
return t.forEach(function(c) {
|
|
306
|
+
return $(c, e, n, r);
|
|
307
|
+
}), r;
|
|
308
|
+
if (d.object(t) && (e = t, t = ""), d.func(e) && n(t))
|
|
309
|
+
r[t] = r[t] || [], r[t].push(e);
|
|
310
|
+
else if (d.array(e))
|
|
311
|
+
for (var i = 0, o = e; i < o.length; i++) {
|
|
312
|
+
var a = o[i];
|
|
313
|
+
$(t, a, n, r);
|
|
314
|
+
}
|
|
315
|
+
else if (d.object(e))
|
|
316
|
+
for (var s in e)
|
|
317
|
+
$(Dt(s).map(function(c) {
|
|
318
|
+
return "".concat(t).concat(c);
|
|
319
|
+
}), e[s], n, r);
|
|
320
|
+
return r;
|
|
321
|
+
}
|
|
322
|
+
function Dt(t) {
|
|
323
|
+
return t.trim().split(/ +/);
|
|
324
|
+
}
|
|
325
|
+
var ce = function(t, e) {
|
|
326
|
+
return Math.sqrt(t * t + e * e);
|
|
327
|
+
}, wn = ["webkit", "moz"];
|
|
328
|
+
function _e(t, e) {
|
|
329
|
+
t.__set || (t.__set = {});
|
|
330
|
+
var n = function(i) {
|
|
331
|
+
if (wn.some(function(o) {
|
|
332
|
+
return i.indexOf(o) === 0;
|
|
333
|
+
}))
|
|
334
|
+
return 1;
|
|
335
|
+
typeof t[i] != "function" && i !== "__set" && Object.defineProperty(t, i, { get: function() {
|
|
336
|
+
return i in t.__set ? t.__set[i] : t.__set[i] = e[i];
|
|
337
|
+
}, set: function(o) {
|
|
338
|
+
t.__set[i] = o;
|
|
339
|
+
}, configurable: !0 });
|
|
340
|
+
};
|
|
341
|
+
for (var r in e)
|
|
342
|
+
n(r);
|
|
343
|
+
return t;
|
|
344
|
+
}
|
|
345
|
+
function Pe(t, e) {
|
|
346
|
+
t.page = t.page || {}, t.page.x = e.page.x, t.page.y = e.page.y, t.client = t.client || {}, t.client.x = e.client.x, t.client.y = e.client.y, t.timeStamp = e.timeStamp;
|
|
347
|
+
}
|
|
348
|
+
function It(t) {
|
|
349
|
+
t.page.x = 0, t.page.y = 0, t.client.x = 0, t.client.y = 0;
|
|
350
|
+
}
|
|
351
|
+
function Mt(t) {
|
|
352
|
+
return t instanceof O.Event || t instanceof O.Touch;
|
|
353
|
+
}
|
|
354
|
+
function Oe(t, e, n) {
|
|
355
|
+
return t = t || "page", (n = n || {}).x = e[t + "X"], n.y = e[t + "Y"], n;
|
|
356
|
+
}
|
|
357
|
+
function zt(t, e) {
|
|
358
|
+
return e = e || { x: 0, y: 0 }, R.isOperaMobile && Mt(t) ? (Oe("screen", t, e), e.x += window.scrollX, e.y += window.scrollY) : Oe("page", t, e), e;
|
|
359
|
+
}
|
|
360
|
+
function le(t) {
|
|
361
|
+
return d.number(t.pointerId) ? t.pointerId : t.identifier;
|
|
362
|
+
}
|
|
363
|
+
function En(t, e, n) {
|
|
364
|
+
var r = e.length > 1 ? At(e) : e[0];
|
|
365
|
+
zt(r, t.page), function(i, o) {
|
|
366
|
+
o = o || {}, R.isOperaMobile && Mt(i) ? Oe("screen", i, o) : Oe("client", i, o);
|
|
367
|
+
}(r, t.client), t.timeStamp = n;
|
|
368
|
+
}
|
|
369
|
+
function He(t) {
|
|
370
|
+
var e = [];
|
|
371
|
+
return d.array(t) ? (e[0] = t[0], e[1] = t[1]) : t.type === "touchend" ? t.touches.length === 1 ? (e[0] = t.touches[0], e[1] = t.changedTouches[0]) : t.touches.length === 0 && (e[0] = t.changedTouches[0], e[1] = t.changedTouches[1]) : (e[0] = t.touches[0], e[1] = t.touches[1]), e;
|
|
372
|
+
}
|
|
373
|
+
function At(t) {
|
|
374
|
+
for (var e = { pageX: 0, pageY: 0, clientX: 0, clientY: 0, screenX: 0, screenY: 0 }, n = 0; n < t.length; n++) {
|
|
375
|
+
var r = t[n];
|
|
376
|
+
for (var i in e)
|
|
377
|
+
e[i] += r[i];
|
|
378
|
+
}
|
|
379
|
+
for (var o in e)
|
|
380
|
+
e[o] /= t.length;
|
|
381
|
+
return e;
|
|
382
|
+
}
|
|
383
|
+
function Ue(t) {
|
|
384
|
+
if (!t.length)
|
|
385
|
+
return null;
|
|
386
|
+
var e = He(t), n = Math.min(e[0].pageX, e[1].pageX), r = Math.min(e[0].pageY, e[1].pageY), i = Math.max(e[0].pageX, e[1].pageX), o = Math.max(e[0].pageY, e[1].pageY);
|
|
387
|
+
return { x: n, y: r, left: n, top: r, right: i, bottom: o, width: i - n, height: o - r };
|
|
388
|
+
}
|
|
389
|
+
function Ke(t, e) {
|
|
390
|
+
var n = e + "X", r = e + "Y", i = He(t), o = i[0][n] - i[1][n], a = i[0][r] - i[1][r];
|
|
391
|
+
return ce(o, a);
|
|
392
|
+
}
|
|
393
|
+
function $e(t, e) {
|
|
394
|
+
var n = e + "X", r = e + "Y", i = He(t), o = i[1][n] - i[0][n], a = i[1][r] - i[0][r];
|
|
395
|
+
return 180 * Math.atan2(a, o) / Math.PI;
|
|
396
|
+
}
|
|
397
|
+
function Ct(t) {
|
|
398
|
+
return d.string(t.pointerType) ? t.pointerType : d.number(t.pointerType) ? [void 0, void 0, "touch", "pen", "mouse"][t.pointerType] : /touch/.test(t.type || "") || t instanceof O.Touch ? "touch" : "mouse";
|
|
399
|
+
}
|
|
400
|
+
function Rt(t) {
|
|
401
|
+
var e = d.func(t.composedPath) ? t.composedPath() : t.path;
|
|
402
|
+
return [_t(e ? e[0] : t.target), _t(t.currentTarget)];
|
|
403
|
+
}
|
|
404
|
+
var ke = function() {
|
|
405
|
+
function t(e) {
|
|
406
|
+
k(this, t), this.immediatePropagationStopped = !1, this.propagationStopped = !1, this._interaction = e;
|
|
407
|
+
}
|
|
408
|
+
return D(t, [{ key: "preventDefault", value: function() {
|
|
409
|
+
} }, { key: "stopPropagation", value: function() {
|
|
410
|
+
this.propagationStopped = !0;
|
|
411
|
+
} }, { key: "stopImmediatePropagation", value: function() {
|
|
412
|
+
this.immediatePropagationStopped = this.propagationStopped = !0;
|
|
413
|
+
} }]), t;
|
|
414
|
+
}();
|
|
415
|
+
Object.defineProperty(ke.prototype, "interaction", { get: function() {
|
|
416
|
+
return this._interaction._proxy;
|
|
417
|
+
}, set: function() {
|
|
418
|
+
} });
|
|
419
|
+
var jt = function(t, e) {
|
|
420
|
+
for (var n = 0; n < e.length; n++) {
|
|
421
|
+
var r = e[n];
|
|
422
|
+
t.push(r);
|
|
423
|
+
}
|
|
424
|
+
return t;
|
|
425
|
+
}, Ft = function(t) {
|
|
426
|
+
return jt([], t);
|
|
427
|
+
}, ue = function(t, e) {
|
|
428
|
+
for (var n = 0; n < t.length; n++)
|
|
429
|
+
if (e(t[n], n, t))
|
|
430
|
+
return n;
|
|
431
|
+
return -1;
|
|
432
|
+
}, pe = function(t, e) {
|
|
433
|
+
return t[ue(t, e)];
|
|
434
|
+
}, te = function(t) {
|
|
435
|
+
ie(n, t);
|
|
436
|
+
var e = oe(n);
|
|
437
|
+
function n(r, i, o) {
|
|
438
|
+
var a;
|
|
439
|
+
k(this, n), (a = e.call(this, i._interaction)).dropzone = void 0, a.dragEvent = void 0, a.relatedTarget = void 0, a.draggable = void 0, a.propagationStopped = !1, a.immediatePropagationStopped = !1;
|
|
440
|
+
var s = o === "dragleave" ? r.prev : r.cur, c = s.element, u = s.dropzone;
|
|
441
|
+
return a.type = o, a.target = c, a.currentTarget = c, a.dropzone = u, a.dragEvent = i, a.relatedTarget = i.target, a.draggable = i.interactable, a.timeStamp = i.timeStamp, a;
|
|
442
|
+
}
|
|
443
|
+
return D(n, [{ key: "reject", value: function() {
|
|
444
|
+
var r = this, i = this._interaction.dropState;
|
|
445
|
+
if (this.type === "dropactivate" || this.dropzone && i.cur.dropzone === this.dropzone && i.cur.element === this.target)
|
|
446
|
+
if (i.prev.dropzone = this.dropzone, i.prev.element = this.target, i.rejected = !0, i.events.enter = null, this.stopImmediatePropagation(), this.type === "dropactivate") {
|
|
447
|
+
var o = i.activeDrops, a = ue(o, function(c) {
|
|
448
|
+
var u = c.dropzone, l = c.element;
|
|
449
|
+
return u === r.dropzone && l === r.target;
|
|
450
|
+
});
|
|
451
|
+
i.activeDrops.splice(a, 1);
|
|
452
|
+
var s = new n(i, this.dragEvent, "dropdeactivate");
|
|
453
|
+
s.dropzone = this.dropzone, s.target = this.target, this.dropzone.fire(s);
|
|
454
|
+
} else
|
|
455
|
+
this.dropzone.fire(new n(i, this.dragEvent, "dragleave"));
|
|
456
|
+
} }, { key: "preventDefault", value: function() {
|
|
457
|
+
} }, { key: "stopPropagation", value: function() {
|
|
458
|
+
this.propagationStopped = !0;
|
|
459
|
+
} }, { key: "stopImmediatePropagation", value: function() {
|
|
460
|
+
this.immediatePropagationStopped = this.propagationStopped = !0;
|
|
461
|
+
} }]), n;
|
|
462
|
+
}(ke);
|
|
463
|
+
function Xt(t, e) {
|
|
464
|
+
for (var n = 0, r = t.slice(); n < r.length; n++) {
|
|
465
|
+
var i = r[n], o = i.dropzone, a = i.element;
|
|
466
|
+
e.dropzone = o, e.target = a, o.fire(e), e.propagationStopped = e.immediatePropagationStopped = !1;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
function Je(t, e) {
|
|
470
|
+
for (var n = function(o, a) {
|
|
471
|
+
for (var s = [], c = 0, u = o.interactables.list; c < u.length; c++) {
|
|
472
|
+
var l = u[c];
|
|
473
|
+
if (l.options.drop.enabled) {
|
|
474
|
+
var p = l.options.drop.accept;
|
|
475
|
+
if (!(d.element(p) && p !== a || d.string(p) && !B(a, p) || d.func(p) && !p({ dropzone: l, draggableElement: a })))
|
|
476
|
+
for (var f = 0, h = l.getAllElements(); f < h.length; f++) {
|
|
477
|
+
var v = h[f];
|
|
478
|
+
v !== a && s.push({ dropzone: l, element: v, rect: l.getRect(v) });
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
return s;
|
|
483
|
+
}(t, e), r = 0; r < n.length; r++) {
|
|
484
|
+
var i = n[r];
|
|
485
|
+
i.rect = i.dropzone.getRect(i.element);
|
|
486
|
+
}
|
|
487
|
+
return n;
|
|
488
|
+
}
|
|
489
|
+
function Yt(t, e, n) {
|
|
490
|
+
for (var r = t.dropState, i = t.interactable, o = t.element, a = [], s = 0, c = r.activeDrops; s < c.length; s++) {
|
|
491
|
+
var u = c[s], l = u.dropzone, p = u.element, f = u.rect, h = l.dropCheck(e, n, i, o, p, f);
|
|
492
|
+
a.push(h ? p : null);
|
|
493
|
+
}
|
|
494
|
+
var v = function(g) {
|
|
495
|
+
for (var y, m, b, T = [], _ = 0; _ < g.length; _++) {
|
|
496
|
+
var w = g[_], S = g[y];
|
|
497
|
+
if (w && _ !== y)
|
|
498
|
+
if (S) {
|
|
499
|
+
var M = Be(w), P = Be(S);
|
|
500
|
+
if (M !== w.ownerDocument)
|
|
501
|
+
if (P !== w.ownerDocument)
|
|
502
|
+
if (M !== P) {
|
|
503
|
+
T = T.length ? T : St(S);
|
|
504
|
+
var z = void 0;
|
|
505
|
+
if (S instanceof O.HTMLElement && w instanceof O.SVGElement && !(w instanceof O.SVGSVGElement)) {
|
|
506
|
+
if (w === P)
|
|
507
|
+
continue;
|
|
508
|
+
z = w.ownerSVGElement;
|
|
509
|
+
} else
|
|
510
|
+
z = w;
|
|
511
|
+
for (var j = St(z, S.ownerDocument), q = 0; j[q] && j[q] === T[q]; )
|
|
512
|
+
q++;
|
|
513
|
+
var Fe = [j[q - 1], j[q], T[q]];
|
|
514
|
+
if (Fe[0])
|
|
515
|
+
for (var me = Fe[0].lastChild; me; ) {
|
|
516
|
+
if (me === Fe[1]) {
|
|
517
|
+
y = _, T = j;
|
|
518
|
+
break;
|
|
519
|
+
}
|
|
520
|
+
if (me === Fe[2])
|
|
521
|
+
break;
|
|
522
|
+
me = me.previousSibling;
|
|
523
|
+
}
|
|
524
|
+
} else
|
|
525
|
+
b = S, (parseInt(F(m = w).getComputedStyle(m).zIndex, 10) || 0) >= (parseInt(F(b).getComputedStyle(b).zIndex, 10) || 0) && (y = _);
|
|
526
|
+
else
|
|
527
|
+
y = _;
|
|
528
|
+
} else
|
|
529
|
+
y = _;
|
|
530
|
+
}
|
|
531
|
+
return y;
|
|
532
|
+
}(a);
|
|
533
|
+
return r.activeDrops[v] || null;
|
|
534
|
+
}
|
|
535
|
+
function Qe(t, e, n) {
|
|
536
|
+
var r = t.dropState, i = { enter: null, leave: null, activate: null, deactivate: null, move: null, drop: null };
|
|
537
|
+
return n.type === "dragstart" && (i.activate = new te(r, n, "dropactivate"), i.activate.target = null, i.activate.dropzone = null), n.type === "dragend" && (i.deactivate = new te(r, n, "dropdeactivate"), i.deactivate.target = null, i.deactivate.dropzone = null), r.rejected || (r.cur.element !== r.prev.element && (r.prev.dropzone && (i.leave = new te(r, n, "dragleave"), n.dragLeave = i.leave.target = r.prev.element, n.prevDropzone = i.leave.dropzone = r.prev.dropzone), r.cur.dropzone && (i.enter = new te(r, n, "dragenter"), n.dragEnter = r.cur.element, n.dropzone = r.cur.dropzone)), n.type === "dragend" && r.cur.dropzone && (i.drop = new te(r, n, "drop"), n.dropzone = r.cur.dropzone, n.relatedTarget = r.cur.element), n.type === "dragmove" && r.cur.dropzone && (i.move = new te(r, n, "dropmove"), n.dropzone = r.cur.dropzone)), i;
|
|
538
|
+
}
|
|
539
|
+
function Ze(t, e) {
|
|
540
|
+
var n = t.dropState, r = n.activeDrops, i = n.cur, o = n.prev;
|
|
541
|
+
e.leave && o.dropzone.fire(e.leave), e.enter && i.dropzone.fire(e.enter), e.move && i.dropzone.fire(e.move), e.drop && i.dropzone.fire(e.drop), e.deactivate && Xt(r, e.deactivate), n.prev.dropzone = i.dropzone, n.prev.element = i.element;
|
|
542
|
+
}
|
|
543
|
+
function Lt(t, e) {
|
|
544
|
+
var n = t.interaction, r = t.iEvent, i = t.event;
|
|
545
|
+
if (r.type === "dragmove" || r.type === "dragend") {
|
|
546
|
+
var o = n.dropState;
|
|
547
|
+
e.dynamicDrop && (o.activeDrops = Je(e, n.element));
|
|
548
|
+
var a = r, s = Yt(n, a, i);
|
|
549
|
+
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 = Qe(n, 0, a);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
var qt = { id: "actions/drop", install: function(t) {
|
|
553
|
+
var e = t.actions, n = t.interactStatic, r = t.Interactable, i = t.defaults;
|
|
554
|
+
t.usePlugin(Et), r.prototype.dropzone = function(o) {
|
|
555
|
+
return function(a, s) {
|
|
556
|
+
if (d.object(s)) {
|
|
557
|
+
if (a.options.drop.enabled = s.enabled !== !1, s.listeners) {
|
|
558
|
+
var c = $(s.listeners), u = Object.keys(c).reduce(function(p, f) {
|
|
559
|
+
return p[/^(enter|leave)/.test(f) ? "drag".concat(f) : /^(activate|deactivate|move)/.test(f) ? "drop".concat(f) : f] = c[f], p;
|
|
560
|
+
}, {}), l = a.options.drop.listeners;
|
|
561
|
+
l && a.off(l), a.on(u), a.options.drop.listeners = u;
|
|
562
|
+
}
|
|
563
|
+
return d.func(s.ondrop) && a.on("drop", s.ondrop), d.func(s.ondropactivate) && a.on("dropactivate", s.ondropactivate), d.func(s.ondropdeactivate) && a.on("dropdeactivate", s.ondropdeactivate), d.func(s.ondragenter) && a.on("dragenter", s.ondragenter), d.func(s.ondragleave) && a.on("dragleave", s.ondragleave), d.func(s.ondropmove) && a.on("dropmove", s.ondropmove), /^(pointer|center)$/.test(s.overlap) ? a.options.drop.overlap = s.overlap : d.number(s.overlap) && (a.options.drop.overlap = Math.max(Math.min(1, s.overlap), 0)), "accept" in s && (a.options.drop.accept = s.accept), "checker" in s && (a.options.drop.checker = s.checker), a;
|
|
564
|
+
}
|
|
565
|
+
return d.bool(s) ? (a.options.drop.enabled = s, a) : a.options.drop;
|
|
566
|
+
}(this, o);
|
|
567
|
+
}, r.prototype.dropCheck = function(o, a, s, c, u, l) {
|
|
568
|
+
return function(p, f, h, v, g, y, m) {
|
|
569
|
+
var b = !1;
|
|
570
|
+
if (!(m = m || p.getRect(y)))
|
|
571
|
+
return !!p.options.drop.checker && p.options.drop.checker(f, h, b, p, y, v, g);
|
|
572
|
+
var T = p.options.drop.overlap;
|
|
573
|
+
if (T === "pointer") {
|
|
574
|
+
var _ = se(v, g, "drag"), w = zt(f);
|
|
575
|
+
w.x += _.x, w.y += _.y;
|
|
576
|
+
var S = w.x > m.left && w.x < m.right, M = w.y > m.top && w.y < m.bottom;
|
|
577
|
+
b = S && M;
|
|
578
|
+
}
|
|
579
|
+
var P = v.getRect(g);
|
|
580
|
+
if (P && T === "center") {
|
|
581
|
+
var z = P.left + P.width / 2, j = P.top + P.height / 2;
|
|
582
|
+
b = z >= m.left && z <= m.right && j >= m.top && j <= m.bottom;
|
|
583
|
+
}
|
|
584
|
+
return P && d.number(T) && (b = Math.max(0, Math.min(m.right, P.right) - Math.max(m.left, P.left)) * Math.max(0, Math.min(m.bottom, P.bottom) - Math.max(m.top, P.top)) / (P.width * P.height) >= T), p.options.drop.checker && (b = p.options.drop.checker(f, h, b, p, y, v, g)), b;
|
|
585
|
+
}(this, o, a, s, c, u, l);
|
|
586
|
+
}, n.dynamicDrop = function(o) {
|
|
587
|
+
return d.bool(o) ? (t.dynamicDrop = o, n) : t.dynamicDrop;
|
|
588
|
+
}, x(e.phaselessTypes, { dragenter: !0, dragleave: !0, dropactivate: !0, dropdeactivate: !0, dropmove: !0, drop: !0 }), e.methodDict.drop = "dropzone", t.dynamicDrop = !1, i.actions.drop = qt.defaults;
|
|
589
|
+
}, listeners: { "interactions:before-action-start": function(t) {
|
|
590
|
+
var e = t.interaction;
|
|
591
|
+
e.prepared.name === "drag" && (e.dropState = { cur: { dropzone: null, element: null }, prev: { dropzone: null, element: null }, rejected: null, events: null, activeDrops: [] });
|
|
592
|
+
}, "interactions:after-action-start": function(t, e) {
|
|
593
|
+
var n = t.interaction, r = (t.event, t.iEvent);
|
|
594
|
+
if (n.prepared.name === "drag") {
|
|
595
|
+
var i = n.dropState;
|
|
596
|
+
i.activeDrops = [], i.events = {}, i.activeDrops = Je(e, n.element), i.events = Qe(n, 0, r), i.events.activate && (Xt(i.activeDrops, i.events.activate), e.fire("actions/drop:start", { interaction: n, dragEvent: r }));
|
|
597
|
+
}
|
|
598
|
+
}, "interactions:action-move": Lt, "interactions:after-action-move": function(t, e) {
|
|
599
|
+
var n = t.interaction, r = t.iEvent;
|
|
600
|
+
if (n.prepared.name === "drag") {
|
|
601
|
+
var i = n.dropState;
|
|
602
|
+
Ze(n, i.events), e.fire("actions/drop:move", { interaction: n, dragEvent: r }), i.events = {};
|
|
603
|
+
}
|
|
604
|
+
}, "interactions:action-end": function(t, e) {
|
|
605
|
+
if (t.interaction.prepared.name === "drag") {
|
|
606
|
+
var n = t.interaction, r = t.iEvent;
|
|
607
|
+
Lt(t, e), Ze(n, n.dropState.events), e.fire("actions/drop:end", { interaction: n, dragEvent: r });
|
|
608
|
+
}
|
|
609
|
+
}, "interactions:stop": function(t) {
|
|
610
|
+
var e = t.interaction;
|
|
611
|
+
if (e.prepared.name === "drag") {
|
|
612
|
+
var n = e.dropState;
|
|
613
|
+
n && (n.activeDrops = null, n.events = null, n.cur.dropzone = null, n.cur.element = null, n.prev.dropzone = null, n.prev.element = null, n.rejected = !1);
|
|
614
|
+
}
|
|
615
|
+
} }, getActiveDrops: Je, getDrop: Yt, getDropEvents: Qe, fireDropEvents: Ze, filterEventType: function(t) {
|
|
616
|
+
return t.search("drag") === 0 || t.search("drop") === 0;
|
|
617
|
+
}, defaults: { enabled: !1, accept: null, overlap: "pointer" } }, Tn = qt;
|
|
618
|
+
function et(t) {
|
|
619
|
+
var e = t.interaction, n = t.iEvent, r = t.phase;
|
|
620
|
+
if (e.prepared.name === "gesture") {
|
|
621
|
+
var i = e.pointers.map(function(u) {
|
|
622
|
+
return u.pointer;
|
|
623
|
+
}), o = r === "start", a = r === "end", s = e.interactable.options.deltaSource;
|
|
624
|
+
if (n.touches = [i[0], i[1]], o)
|
|
625
|
+
n.distance = Ke(i, s), n.box = Ue(i), n.scale = 1, n.ds = 0, n.angle = $e(i, s), n.da = 0, e.gesture.startDistance = n.distance, e.gesture.startAngle = n.angle;
|
|
626
|
+
else if (a || e.pointers.length < 2) {
|
|
627
|
+
var c = e.prevEvent;
|
|
628
|
+
n.distance = c.distance, n.box = c.box, n.scale = c.scale, n.ds = 0, n.angle = c.angle, n.da = 0;
|
|
629
|
+
} else
|
|
630
|
+
n.distance = Ke(i, s), n.box = Ue(i), n.scale = n.distance / e.gesture.startDistance, n.angle = $e(i, s), n.ds = n.scale - e.gesture.scale, n.da = n.angle - e.gesture.angle;
|
|
631
|
+
e.gesture.distance = n.distance, e.gesture.angle = n.angle, d.number(n.scale) && n.scale !== 1 / 0 && !isNaN(n.scale) && (e.gesture.scale = n.scale);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
var tt = { id: "actions/gesture", before: ["actions/drag", "actions/resize"], install: function(t) {
|
|
635
|
+
var e = t.actions, n = t.Interactable, r = t.defaults;
|
|
636
|
+
n.prototype.gesturable = function(i) {
|
|
637
|
+
return d.object(i) ? (this.options.gesture.enabled = i.enabled !== !1, this.setPerAction("gesture", i), this.setOnEvents("gesture", i), this) : d.bool(i) ? (this.options.gesture.enabled = i, this) : this.options.gesture;
|
|
638
|
+
}, e.map.gesture = tt, e.methodDict.gesture = "gesturable", r.actions.gesture = tt.defaults;
|
|
639
|
+
}, listeners: { "interactions:action-start": et, "interactions:action-move": et, "interactions:action-end": et, "interactions:new": function(t) {
|
|
640
|
+
t.interaction.gesture = { angle: 0, distance: 0, scale: 1, startAngle: 0, startDistance: 0 };
|
|
641
|
+
}, "auto-start:check": function(t) {
|
|
642
|
+
if (!(t.interaction.pointers.length < 2)) {
|
|
643
|
+
var e = t.interactable.options.gesture;
|
|
644
|
+
if (e && e.enabled)
|
|
645
|
+
return t.action = { name: "gesture" }, !1;
|
|
646
|
+
}
|
|
647
|
+
} }, defaults: {}, getCursor: function() {
|
|
648
|
+
return "";
|
|
649
|
+
}, filterEventType: function(t) {
|
|
650
|
+
return t.search("gesture") === 0;
|
|
651
|
+
} }, Sn = tt;
|
|
652
|
+
function _n(t, e, n, r, i, o, a) {
|
|
653
|
+
if (!e)
|
|
654
|
+
return !1;
|
|
655
|
+
if (e === !0) {
|
|
656
|
+
var s = d.number(o.width) ? o.width : o.right - o.left, c = d.number(o.height) ? o.height : o.bottom - o.top;
|
|
657
|
+
if (a = Math.min(a, Math.abs((t === "left" || t === "right" ? s : c) / 2)), s < 0 && (t === "left" ? t = "right" : t === "right" && (t = "left")), c < 0 && (t === "top" ? t = "bottom" : t === "bottom" && (t = "top")), t === "left") {
|
|
658
|
+
var u = s >= 0 ? o.left : o.right;
|
|
659
|
+
return n.x < u + a;
|
|
660
|
+
}
|
|
661
|
+
if (t === "top") {
|
|
662
|
+
var l = c >= 0 ? o.top : o.bottom;
|
|
663
|
+
return n.y < l + a;
|
|
664
|
+
}
|
|
665
|
+
if (t === "right")
|
|
666
|
+
return n.x > (s >= 0 ? o.right : o.left) - a;
|
|
667
|
+
if (t === "bottom")
|
|
668
|
+
return n.y > (c >= 0 ? o.bottom : o.top) - a;
|
|
669
|
+
}
|
|
670
|
+
return !!d.element(r) && (d.element(e) ? e === r : Ve(r, e, i));
|
|
671
|
+
}
|
|
672
|
+
function Bt(t) {
|
|
673
|
+
var e = t.iEvent, n = t.interaction;
|
|
674
|
+
if (n.prepared.name === "resize" && n.resizeAxes) {
|
|
675
|
+
var r = e;
|
|
676
|
+
n.interactable.options.resize.square ? (n.resizeAxes === "y" ? r.delta.x = r.delta.y : r.delta.y = r.delta.x, r.axes = "xy") : (r.axes = n.resizeAxes, n.resizeAxes === "x" ? r.delta.y = 0 : n.resizeAxes === "y" && (r.delta.x = 0));
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
var Y, J, L = { id: "actions/resize", before: ["actions/drag"], install: function(t) {
|
|
680
|
+
var e = t.actions, n = t.browser, r = t.Interactable, i = t.defaults;
|
|
681
|
+
L.cursors = function(o) {
|
|
682
|
+
return o.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" };
|
|
683
|
+
}(n), L.defaultMargin = n.supportsTouch || n.supportsPointerEvent ? 20 : 10, r.prototype.resizable = function(o) {
|
|
684
|
+
return function(a, s, c) {
|
|
685
|
+
return d.object(s) ? (a.options.resize.enabled = s.enabled !== !1, a.setPerAction("resize", s), a.setOnEvents("resize", s), d.string(s.axis) && /^x$|^y$|^xy$/.test(s.axis) ? a.options.resize.axis = s.axis : s.axis === null && (a.options.resize.axis = c.defaults.actions.resize.axis), d.bool(s.preserveAspectRatio) ? a.options.resize.preserveAspectRatio = s.preserveAspectRatio : d.bool(s.square) && (a.options.resize.square = s.square), a) : d.bool(s) ? (a.options.resize.enabled = s, a) : a.options.resize;
|
|
686
|
+
}(this, o, t);
|
|
687
|
+
}, e.map.resize = L, e.methodDict.resize = "resizable", i.actions.resize = L.defaults;
|
|
688
|
+
}, listeners: { "interactions:new": function(t) {
|
|
689
|
+
t.interaction.resizeAxes = "xy";
|
|
690
|
+
}, "interactions:action-start": function(t) {
|
|
691
|
+
(function(e) {
|
|
692
|
+
var n = e.iEvent, r = e.interaction;
|
|
693
|
+
if (r.prepared.name === "resize" && r.prepared.edges) {
|
|
694
|
+
var i = n, o = r.rect;
|
|
695
|
+
r._rects = { start: x({}, o), corrected: x({}, o), previous: x({}, o), delta: { left: 0, right: 0, width: 0, top: 0, bottom: 0, height: 0 } }, i.edges = r.prepared.edges, i.rect = r._rects.corrected, i.deltaRect = r._rects.delta;
|
|
696
|
+
}
|
|
697
|
+
})(t), Bt(t);
|
|
698
|
+
}, "interactions:action-move": function(t) {
|
|
699
|
+
(function(e) {
|
|
700
|
+
var n = e.iEvent, r = e.interaction;
|
|
701
|
+
if (r.prepared.name === "resize" && r.prepared.edges) {
|
|
702
|
+
var i = n, o = r.interactable.options.resize.invert, a = o === "reposition" || o === "negate", s = r.rect, c = r._rects, u = c.start, l = c.corrected, p = c.delta, f = c.previous;
|
|
703
|
+
if (x(f, l), a) {
|
|
704
|
+
if (x(l, s), o === "reposition") {
|
|
705
|
+
if (l.top > l.bottom) {
|
|
706
|
+
var h = l.top;
|
|
707
|
+
l.top = l.bottom, l.bottom = h;
|
|
708
|
+
}
|
|
709
|
+
if (l.left > l.right) {
|
|
710
|
+
var v = l.left;
|
|
711
|
+
l.left = l.right, l.right = v;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
} else
|
|
715
|
+
l.top = Math.min(s.top, u.bottom), l.bottom = Math.max(s.bottom, u.top), l.left = Math.min(s.left, u.right), l.right = Math.max(s.right, u.left);
|
|
716
|
+
for (var g in l.width = l.right - l.left, l.height = l.bottom - l.top, l)
|
|
717
|
+
p[g] = l[g] - f[g];
|
|
718
|
+
i.edges = r.prepared.edges, i.rect = l, i.deltaRect = p;
|
|
719
|
+
}
|
|
720
|
+
})(t), Bt(t);
|
|
721
|
+
}, "interactions:action-end": function(t) {
|
|
722
|
+
var e = t.iEvent, n = t.interaction;
|
|
723
|
+
if (n.prepared.name === "resize" && n.prepared.edges) {
|
|
724
|
+
var r = e;
|
|
725
|
+
r.edges = n.prepared.edges, r.rect = n._rects.corrected, r.deltaRect = n._rects.delta;
|
|
726
|
+
}
|
|
727
|
+
}, "auto-start:check": function(t) {
|
|
728
|
+
var e = t.interaction, n = t.interactable, r = t.element, i = t.rect, o = t.buttons;
|
|
729
|
+
if (i) {
|
|
730
|
+
var a = x({}, e.coords.cur.page), s = n.options.resize;
|
|
731
|
+
if (s && s.enabled && (!e.pointerIsDown || !/mouse|pointer/.test(e.pointerType) || o & s.mouseButtons)) {
|
|
732
|
+
if (d.object(s.edges)) {
|
|
733
|
+
var c = { left: !1, right: !1, top: !1, bottom: !1 };
|
|
734
|
+
for (var u in c)
|
|
735
|
+
c[u] = _n(u, s.edges[u], a, e._latestPointer.eventTarget, r, i, s.margin || L.defaultMargin);
|
|
736
|
+
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 });
|
|
737
|
+
} else {
|
|
738
|
+
var l = s.axis !== "y" && a.x > i.right - L.defaultMargin, p = s.axis !== "x" && a.y > i.bottom - L.defaultMargin;
|
|
739
|
+
(l || p) && (t.action = { name: "resize", axes: (l ? "x" : "") + (p ? "y" : "") });
|
|
740
|
+
}
|
|
741
|
+
return !t.action && void 0;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
} }, defaults: { square: !1, preserveAspectRatio: !1, axis: "xy", margin: NaN, edges: null, invert: "none" }, cursors: null, getCursor: function(t) {
|
|
745
|
+
var e = t.edges, n = t.axis, r = t.name, i = L.cursors, o = null;
|
|
746
|
+
if (n)
|
|
747
|
+
o = i[r + n];
|
|
748
|
+
else if (e) {
|
|
749
|
+
for (var a = "", s = 0, c = ["top", "bottom", "left", "right"]; s < c.length; s++) {
|
|
750
|
+
var u = c[s];
|
|
751
|
+
e[u] && (a += u);
|
|
752
|
+
}
|
|
753
|
+
o = i[a];
|
|
754
|
+
}
|
|
755
|
+
return o;
|
|
756
|
+
}, filterEventType: function(t) {
|
|
757
|
+
return t.search("resize") === 0;
|
|
758
|
+
}, defaultMargin: null }, Pn = L, On = { id: "actions", install: function(t) {
|
|
759
|
+
t.usePlugin(Sn), t.usePlugin(Pn), t.usePlugin(Et), t.usePlugin(Tn);
|
|
760
|
+
} }, Vt = 0, V = { request: function(t) {
|
|
761
|
+
return Y(t);
|
|
762
|
+
}, cancel: function(t) {
|
|
763
|
+
return J(t);
|
|
764
|
+
}, init: function(t) {
|
|
765
|
+
if (Y = t.requestAnimationFrame, J = t.cancelAnimationFrame, !Y)
|
|
766
|
+
for (var e = ["ms", "moz", "webkit", "o"], n = 0; n < e.length; n++) {
|
|
767
|
+
var r = e[n];
|
|
768
|
+
Y = t["".concat(r, "RequestAnimationFrame")], J = t["".concat(r, "CancelAnimationFrame")] || t["".concat(r, "CancelRequestAnimationFrame")];
|
|
769
|
+
}
|
|
770
|
+
Y = Y && Y.bind(t), J = J && J.bind(t), Y || (Y = function(i) {
|
|
771
|
+
var o = Date.now(), a = Math.max(0, 16 - (o - Vt)), s = t.setTimeout(function() {
|
|
772
|
+
i(o + a);
|
|
773
|
+
}, a);
|
|
774
|
+
return Vt = o + a, s;
|
|
775
|
+
}, J = function(i) {
|
|
776
|
+
return clearTimeout(i);
|
|
777
|
+
});
|
|
778
|
+
} }, E = { 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) {
|
|
779
|
+
E.isScrolling = !0, V.cancel(E.i), t.autoScroll = E, E.interaction = t, E.prevTime = E.now(), E.i = V.request(E.scroll);
|
|
780
|
+
}, stop: function() {
|
|
781
|
+
E.isScrolling = !1, E.interaction && (E.interaction.autoScroll = null), V.cancel(E.i);
|
|
782
|
+
}, scroll: function() {
|
|
783
|
+
var t = E.interaction, e = t.interactable, n = t.element, r = t.prepared.name, i = e.options[r].autoScroll, o = Wt(i.container, e, n), a = E.now(), s = (a - E.prevTime) / 1e3, c = i.speed * s;
|
|
784
|
+
if (c >= 1) {
|
|
785
|
+
var u = { x: E.x * c, y: E.y * c };
|
|
786
|
+
if (u.x || u.y) {
|
|
787
|
+
var l = Gt(o);
|
|
788
|
+
d.window(o) ? o.scrollBy(u.x, u.y) : o && (o.scrollLeft += u.x, o.scrollTop += u.y);
|
|
789
|
+
var p = Gt(o), f = { x: p.x - l.x, y: p.y - l.y };
|
|
790
|
+
(f.x || f.y) && e.fire({ type: "autoscroll", target: n, interactable: e, delta: f, interaction: t, container: o });
|
|
791
|
+
}
|
|
792
|
+
E.prevTime = a;
|
|
793
|
+
}
|
|
794
|
+
E.isScrolling && (V.cancel(E.i), E.i = V.request(E.scroll));
|
|
795
|
+
}, check: function(t, e) {
|
|
796
|
+
var n;
|
|
797
|
+
return (n = t.options[e].autoScroll) == null ? void 0 : n.enabled;
|
|
798
|
+
}, onInteractionMove: function(t) {
|
|
799
|
+
var e = t.interaction, n = t.pointer;
|
|
800
|
+
if (e.interacting() && E.check(e.interactable, e.prepared.name))
|
|
801
|
+
if (e.simulation)
|
|
802
|
+
E.x = E.y = 0;
|
|
803
|
+
else {
|
|
804
|
+
var r, i, o, a, s = e.interactable, c = e.element, u = e.prepared.name, l = s.options[u].autoScroll, p = Wt(l.container, s, c);
|
|
805
|
+
if (d.window(p))
|
|
806
|
+
a = n.clientX < E.margin, r = n.clientY < E.margin, i = n.clientX > p.innerWidth - E.margin, o = n.clientY > p.innerHeight - E.margin;
|
|
807
|
+
else {
|
|
808
|
+
var f = We(p);
|
|
809
|
+
a = n.clientX < f.left + E.margin, r = n.clientY < f.top + E.margin, i = n.clientX > f.right - E.margin, o = n.clientY > f.bottom - E.margin;
|
|
810
|
+
}
|
|
811
|
+
E.x = i ? 1 : a ? -1 : 0, E.y = o ? 1 : r ? -1 : 0, E.isScrolling || (E.margin = l.margin, E.speed = l.speed, E.start(e));
|
|
812
|
+
}
|
|
813
|
+
} };
|
|
814
|
+
function Wt(t, e, n) {
|
|
815
|
+
return (d.string(t) ? kt(t, e, n) : t) || F(n);
|
|
816
|
+
}
|
|
817
|
+
function Gt(t) {
|
|
818
|
+
return d.window(t) && (t = window.document.body), { x: t.scrollLeft, y: t.scrollTop };
|
|
819
|
+
}
|
|
820
|
+
var kn = { id: "auto-scroll", install: function(t) {
|
|
821
|
+
var e = t.defaults, n = t.actions;
|
|
822
|
+
t.autoScroll = E, E.now = function() {
|
|
823
|
+
return t.now();
|
|
824
|
+
}, n.phaselessTypes.autoscroll = !0, e.perAction.autoScroll = E.defaults;
|
|
825
|
+
}, listeners: { "interactions:new": function(t) {
|
|
826
|
+
t.interaction.autoScroll = null;
|
|
827
|
+
}, "interactions:destroy": function(t) {
|
|
828
|
+
t.interaction.autoScroll = null, E.stop(), E.interaction && (E.interaction = null);
|
|
829
|
+
}, "interactions:stop": E.stop, "interactions:action-move": function(t) {
|
|
830
|
+
return E.onInteractionMove(t);
|
|
831
|
+
} } }, Dn = kn;
|
|
832
|
+
function fe(t, e) {
|
|
833
|
+
var n = !1;
|
|
834
|
+
return function() {
|
|
835
|
+
return n || (U.console.warn(e), n = !0), t.apply(this, arguments);
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
function nt(t, e) {
|
|
839
|
+
return t.name = e.name, t.axis = e.axis, t.edges = e.edges, t;
|
|
840
|
+
}
|
|
841
|
+
function In(t) {
|
|
842
|
+
return d.bool(t) ? (this.options.styleCursor = t, this) : t === null ? (delete this.options.styleCursor, this) : this.options.styleCursor;
|
|
843
|
+
}
|
|
844
|
+
function Mn(t) {
|
|
845
|
+
return d.func(t) ? (this.options.actionChecker = t, this) : t === null ? (delete this.options.actionChecker, this) : this.options.actionChecker;
|
|
846
|
+
}
|
|
847
|
+
var zn = { id: "auto-start/interactableMethods", install: function(t) {
|
|
848
|
+
var e = t.Interactable;
|
|
849
|
+
e.prototype.getAction = function(n, r, i, o) {
|
|
850
|
+
var a = function(s, c, u, l, p) {
|
|
851
|
+
var f = s.getRect(l), h = c.buttons || { 0: 1, 1: 4, 3: 8, 4: 16 }[c.button], v = { action: null, interactable: s, interaction: u, element: l, rect: f, buttons: h };
|
|
852
|
+
return p.fire("auto-start:check", v), v.action;
|
|
853
|
+
}(this, r, i, o, t);
|
|
854
|
+
return this.options.actionChecker ? this.options.actionChecker(n, r, a, this, o, i) : a;
|
|
855
|
+
}, e.prototype.ignoreFrom = fe(function(n) {
|
|
856
|
+
return this._backCompatOption("ignoreFrom", n);
|
|
857
|
+
}, "Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."), e.prototype.allowFrom = fe(function(n) {
|
|
858
|
+
return this._backCompatOption("allowFrom", n);
|
|
859
|
+
}, "Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."), e.prototype.actionChecker = Mn, e.prototype.styleCursor = In;
|
|
860
|
+
} };
|
|
861
|
+
function Nt(t, e, n, r, i) {
|
|
862
|
+
return e.testIgnoreAllow(e.options[t.name], n, r) && e.options[t.name].enabled && De(e, n, t, i) ? t : null;
|
|
863
|
+
}
|
|
864
|
+
function An(t, e, n, r, i, o, a) {
|
|
865
|
+
for (var s = 0, c = r.length; s < c; s++) {
|
|
866
|
+
var u = r[s], l = i[s], p = u.getAction(e, n, t, l);
|
|
867
|
+
if (p) {
|
|
868
|
+
var f = Nt(p, u, l, o, a);
|
|
869
|
+
if (f)
|
|
870
|
+
return { action: f, interactable: u, element: l };
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
return { action: null, interactable: null, element: null };
|
|
874
|
+
}
|
|
875
|
+
function Ht(t, e, n, r, i) {
|
|
876
|
+
var o = [], a = [], s = r;
|
|
877
|
+
function c(l) {
|
|
878
|
+
o.push(l), a.push(s);
|
|
879
|
+
}
|
|
880
|
+
for (; d.element(s); ) {
|
|
881
|
+
o = [], a = [], i.interactables.forEachMatch(s, c);
|
|
882
|
+
var u = An(t, e, n, o, a, r, i);
|
|
883
|
+
if (u.action && !u.interactable.options[u.action.name].manualStart)
|
|
884
|
+
return u;
|
|
885
|
+
s = X(s);
|
|
886
|
+
}
|
|
887
|
+
return { action: null, interactable: null, element: null };
|
|
888
|
+
}
|
|
889
|
+
function Ut(t, e, n) {
|
|
890
|
+
var r = e.action, i = e.interactable, o = e.element;
|
|
891
|
+
r = r || { name: null }, t.interactable = i, t.element = o, nt(t.prepared, r), t.rect = i && r.name ? i.getRect(o) : null, $t(t, n), n.fire("autoStart:prepared", { interaction: t });
|
|
892
|
+
}
|
|
893
|
+
function De(t, e, n, r) {
|
|
894
|
+
var i = t.options, o = i[n.name].max, a = i[n.name].maxPerElement, s = r.autoStart.maxInteractions, c = 0, u = 0, l = 0;
|
|
895
|
+
if (!(o && a && s))
|
|
896
|
+
return !1;
|
|
897
|
+
for (var p = 0, f = r.interactions.list; p < f.length; p++) {
|
|
898
|
+
var h = f[p], v = h.prepared.name;
|
|
899
|
+
if (h.interacting() && (++c >= s || h.interactable === t && ((u += v === n.name ? 1 : 0) >= o || h.element === e && (l++, v === n.name && l >= a))))
|
|
900
|
+
return !1;
|
|
901
|
+
}
|
|
902
|
+
return s > 0;
|
|
903
|
+
}
|
|
904
|
+
function Kt(t, e) {
|
|
905
|
+
return d.number(t) ? (e.autoStart.maxInteractions = t, this) : e.autoStart.maxInteractions;
|
|
906
|
+
}
|
|
907
|
+
function rt(t, e, n) {
|
|
908
|
+
var r = n.autoStart.cursorElement;
|
|
909
|
+
r && r !== t && (r.style.cursor = ""), t.ownerDocument.documentElement.style.cursor = e, t.style.cursor = e, n.autoStart.cursorElement = e ? t : null;
|
|
910
|
+
}
|
|
911
|
+
function $t(t, e) {
|
|
912
|
+
var n = t.interactable, r = t.element, i = t.prepared;
|
|
913
|
+
if (t.pointerType === "mouse" && n && n.options.styleCursor) {
|
|
914
|
+
var o = "";
|
|
915
|
+
if (i.name) {
|
|
916
|
+
var a = n.options[i.name].cursorChecker;
|
|
917
|
+
o = d.func(a) ? a(i, n, r, t._interacting) : e.actions.map[i.name].getCursor(i);
|
|
918
|
+
}
|
|
919
|
+
rt(t.element, o || "", e);
|
|
920
|
+
} else
|
|
921
|
+
e.autoStart.cursorElement && rt(e.autoStart.cursorElement, "", e);
|
|
922
|
+
}
|
|
923
|
+
var Cn = { id: "auto-start/base", before: ["actions"], install: function(t) {
|
|
924
|
+
var e = t.interactStatic, n = t.defaults;
|
|
925
|
+
t.usePlugin(zn), n.base.actionChecker = null, n.base.styleCursor = !0, x(n.perAction, { manualStart: !1, max: 1 / 0, maxPerElement: 1, allowFrom: null, ignoreFrom: null, mouseButtons: 1 }), e.maxInteractions = function(r) {
|
|
926
|
+
return Kt(r, t);
|
|
927
|
+
}, t.autoStart = { maxInteractions: 1 / 0, withinInteractionLimit: De, cursorElement: null };
|
|
928
|
+
}, listeners: { "interactions:down": function(t, e) {
|
|
929
|
+
var n = t.interaction, r = t.pointer, i = t.event, o = t.eventTarget;
|
|
930
|
+
n.interacting() || Ut(n, Ht(n, r, i, o, e), e);
|
|
931
|
+
}, "interactions:move": function(t, e) {
|
|
932
|
+
(function(n, r) {
|
|
933
|
+
var i = n.interaction, o = n.pointer, a = n.event, s = n.eventTarget;
|
|
934
|
+
i.pointerType !== "mouse" || i.pointerIsDown || i.interacting() || Ut(i, Ht(i, o, a, s, r), r);
|
|
935
|
+
})(t, e), function(n, r) {
|
|
936
|
+
var i = n.interaction;
|
|
937
|
+
if (i.pointerIsDown && !i.interacting() && i.pointerWasMoved && i.prepared.name) {
|
|
938
|
+
r.fire("autoStart:before-start", n);
|
|
939
|
+
var o = i.interactable, a = i.prepared.name;
|
|
940
|
+
a && o && (o.options[a].manualStart || !De(o, i.element, i.prepared, r) ? i.stop() : (i.start(i.prepared, o, i.element), $t(i, r)));
|
|
941
|
+
}
|
|
942
|
+
}(t, e);
|
|
943
|
+
}, "interactions:stop": function(t, e) {
|
|
944
|
+
var n = t.interaction, r = n.interactable;
|
|
945
|
+
r && r.options.styleCursor && rt(n.element, "", e);
|
|
946
|
+
} }, maxInteractions: Kt, withinInteractionLimit: De, validateAction: Nt }, it = Cn, Rn = { id: "auto-start/dragAxis", listeners: { "autoStart:before-start": function(t, e) {
|
|
947
|
+
var n = t.interaction, r = t.eventTarget, i = t.dx, o = t.dy;
|
|
948
|
+
if (n.prepared.name === "drag") {
|
|
949
|
+
var a = Math.abs(i), s = Math.abs(o), c = n.interactable.options.drag, u = c.startAxis, l = a > s ? "x" : a < s ? "y" : "xy";
|
|
950
|
+
if (n.prepared.axis = c.lockAxis === "start" ? l[0] : c.lockAxis, l !== "xy" && u !== "xy" && u !== l) {
|
|
951
|
+
n.prepared.name = null;
|
|
952
|
+
for (var p = r, f = function(v) {
|
|
953
|
+
if (v !== n.interactable) {
|
|
954
|
+
var g = n.interactable.options.drag;
|
|
955
|
+
if (!g.manualStart && v.testIgnoreAllow(g, p, r)) {
|
|
956
|
+
var y = v.getAction(n.downPointer, n.downEvent, n, p);
|
|
957
|
+
if (y && y.name === "drag" && function(m, b) {
|
|
958
|
+
if (!b)
|
|
959
|
+
return !1;
|
|
960
|
+
var T = b.options.drag.startAxis;
|
|
961
|
+
return m === "xy" || T === "xy" || T === m;
|
|
962
|
+
}(l, v) && it.validateAction(y, v, p, r, e))
|
|
963
|
+
return v;
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}; d.element(p); ) {
|
|
967
|
+
var h = e.interactables.forEachMatch(p, f);
|
|
968
|
+
if (h) {
|
|
969
|
+
n.prepared.name = "drag", n.interactable = h, n.element = p;
|
|
970
|
+
break;
|
|
971
|
+
}
|
|
972
|
+
p = X(p);
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
} } };
|
|
977
|
+
function ot(t) {
|
|
978
|
+
var e = t.prepared && t.prepared.name;
|
|
979
|
+
if (!e)
|
|
980
|
+
return null;
|
|
981
|
+
var n = t.interactable.options;
|
|
982
|
+
return n[e].hold || n[e].delay;
|
|
983
|
+
}
|
|
984
|
+
var jn = { id: "auto-start/hold", install: function(t) {
|
|
985
|
+
var e = t.defaults;
|
|
986
|
+
t.usePlugin(it), e.perAction.hold = 0, e.perAction.delay = 0;
|
|
987
|
+
}, listeners: { "interactions:new": function(t) {
|
|
988
|
+
t.interaction.autoStartHoldTimer = null;
|
|
989
|
+
}, "autoStart:prepared": function(t) {
|
|
990
|
+
var e = t.interaction, n = ot(e);
|
|
991
|
+
n > 0 && (e.autoStartHoldTimer = setTimeout(function() {
|
|
992
|
+
e.start(e.prepared, e.interactable, e.element);
|
|
993
|
+
}, n));
|
|
994
|
+
}, "interactions:move": function(t) {
|
|
995
|
+
var e = t.interaction, n = t.duplicate;
|
|
996
|
+
e.autoStartHoldTimer && e.pointerWasMoved && !n && (clearTimeout(e.autoStartHoldTimer), e.autoStartHoldTimer = null);
|
|
997
|
+
}, "autoStart:before-start": function(t) {
|
|
998
|
+
var e = t.interaction;
|
|
999
|
+
ot(e) > 0 && (e.prepared.name = null);
|
|
1000
|
+
} }, getHoldDuration: ot }, Fn = jn, Xn = { id: "auto-start", install: function(t) {
|
|
1001
|
+
t.usePlugin(it), t.usePlugin(Fn), t.usePlugin(Rn);
|
|
1002
|
+
} }, Yn = function(t) {
|
|
1003
|
+
return /^(always|never|auto)$/.test(t) ? (this.options.preventDefault = t, this) : d.bool(t) ? (this.options.preventDefault = t ? "always" : "never", this) : this.options.preventDefault;
|
|
1004
|
+
};
|
|
1005
|
+
function Ln(t) {
|
|
1006
|
+
var e = t.interaction, n = t.event;
|
|
1007
|
+
e.interactable && e.interactable.checkAndPreventDefault(n);
|
|
1008
|
+
}
|
|
1009
|
+
var Jt = { id: "core/interactablePreventDefault", install: function(t) {
|
|
1010
|
+
var e = t.Interactable;
|
|
1011
|
+
e.prototype.preventDefault = Yn, e.prototype.checkAndPreventDefault = function(n) {
|
|
1012
|
+
return function(r, i, o) {
|
|
1013
|
+
var a = r.options.preventDefault;
|
|
1014
|
+
if (a !== "never")
|
|
1015
|
+
if (a !== "always") {
|
|
1016
|
+
if (i.events.supportsPassive && /^touch(start|move)$/.test(o.type)) {
|
|
1017
|
+
var s = F(o.target).document, c = i.getDocOptions(s);
|
|
1018
|
+
if (!c || !c.events || c.events.passive !== !1)
|
|
1019
|
+
return;
|
|
1020
|
+
}
|
|
1021
|
+
/^(mouse|pointer|touch)*(down|start)/i.test(o.type) || d.element(o.target) && B(o.target, "input,select,textarea,[contenteditable=true],[contenteditable=true] *") || o.preventDefault();
|
|
1022
|
+
} else
|
|
1023
|
+
o.preventDefault();
|
|
1024
|
+
}(this, t, n);
|
|
1025
|
+
}, t.interactions.docEvents.push({ type: "dragstart", listener: function(n) {
|
|
1026
|
+
for (var r = 0, i = t.interactions.list; r < i.length; r++) {
|
|
1027
|
+
var o = i[r];
|
|
1028
|
+
if (o.element && (o.element === n.target || K(o.element, n.target)))
|
|
1029
|
+
return void o.interactable.checkAndPreventDefault(n);
|
|
1030
|
+
}
|
|
1031
|
+
} });
|
|
1032
|
+
}, listeners: ["down", "move", "up", "cancel"].reduce(function(t, e) {
|
|
1033
|
+
return t["interactions:".concat(e)] = Ln, t;
|
|
1034
|
+
}, {}) };
|
|
1035
|
+
function Ie(t, e) {
|
|
1036
|
+
if (e.phaselessTypes[t])
|
|
1037
|
+
return !0;
|
|
1038
|
+
for (var n in e.map)
|
|
1039
|
+
if (t.indexOf(n) === 0 && t.substr(n.length) in e.phases)
|
|
1040
|
+
return !0;
|
|
1041
|
+
return !1;
|
|
1042
|
+
}
|
|
1043
|
+
function ne(t) {
|
|
1044
|
+
var e = {};
|
|
1045
|
+
for (var n in t) {
|
|
1046
|
+
var r = t[n];
|
|
1047
|
+
d.plainObject(r) ? e[n] = ne(r) : d.array(r) ? e[n] = Ft(r) : e[n] = r;
|
|
1048
|
+
}
|
|
1049
|
+
return e;
|
|
1050
|
+
}
|
|
1051
|
+
var at = function() {
|
|
1052
|
+
function t(e) {
|
|
1053
|
+
k(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 = e, this.result = Me(), this.edges = { left: !1, right: !1, top: !1, bottom: !1 };
|
|
1054
|
+
}
|
|
1055
|
+
return D(t, [{ key: "start", value: function(e, n) {
|
|
1056
|
+
var r, i, o = e.phase, a = this.interaction, s = function(u) {
|
|
1057
|
+
var l = u.interactable.options[u.prepared.name], p = l.modifiers;
|
|
1058
|
+
return p && p.length ? p : ["snap", "snapSize", "snapEdges", "restrict", "restrictEdges", "restrictSize"].map(function(f) {
|
|
1059
|
+
var h = l[f];
|
|
1060
|
+
return h && h.enabled && { options: h, methods: h._methods };
|
|
1061
|
+
}).filter(function(f) {
|
|
1062
|
+
return !!f;
|
|
1063
|
+
});
|
|
1064
|
+
}(a);
|
|
1065
|
+
this.prepareStates(s), this.startEdges = x({}, a.edges), this.edges = x({}, this.startEdges), this.startOffset = (r = a.rect, i = n, r ? { left: i.x - r.left, top: i.y - r.top, right: r.right - i.x, bottom: r.bottom - i.y } : { left: 0, top: 0, right: 0, bottom: 0 }), this.startDelta = { x: 0, y: 0 };
|
|
1066
|
+
var c = this.fillArg({ phase: o, pageCoords: n, preEnd: !1 });
|
|
1067
|
+
return this.result = Me(), this.startAll(c), this.result = this.setAll(c);
|
|
1068
|
+
} }, { key: "fillArg", value: function(e) {
|
|
1069
|
+
var n = this.interaction;
|
|
1070
|
+
return e.interaction = n, e.interactable = n.interactable, e.element = n.element, e.rect || (e.rect = n.rect), e.edges || (e.edges = this.startEdges), e.startOffset = this.startOffset, e;
|
|
1071
|
+
} }, { key: "startAll", value: function(e) {
|
|
1072
|
+
for (var n = 0, r = this.states; n < r.length; n++) {
|
|
1073
|
+
var i = r[n];
|
|
1074
|
+
i.methods.start && (e.state = i, i.methods.start(e));
|
|
1075
|
+
}
|
|
1076
|
+
} }, { key: "setAll", value: function(e) {
|
|
1077
|
+
var n = e.phase, r = e.preEnd, i = e.skipModifiers, o = e.rect, a = e.edges;
|
|
1078
|
+
e.coords = x({}, e.pageCoords), e.rect = x({}, o), e.edges = x({}, a);
|
|
1079
|
+
for (var s = i ? this.states.slice(i) : this.states, c = Me(e.coords, e.rect), u = 0; u < s.length; u++) {
|
|
1080
|
+
var l, p = s[u], f = p.options, h = x({}, e.coords), v = null;
|
|
1081
|
+
(l = p.methods) != null && l.set && this.shouldDo(f, r, n) && (e.state = p, v = p.methods.set(e), Se(e.edges, e.rect, { x: e.coords.x - h.x, y: e.coords.y - h.y })), c.eventProps.push(v);
|
|
1082
|
+
}
|
|
1083
|
+
x(this.edges, e.edges), c.delta.x = e.coords.x - e.pageCoords.x, c.delta.y = e.coords.y - e.pageCoords.y, c.rectDelta.left = e.rect.left - o.left, c.rectDelta.right = e.rect.right - o.right, c.rectDelta.top = e.rect.top - o.top, c.rectDelta.bottom = e.rect.bottom - o.bottom;
|
|
1084
|
+
var g = this.result.coords, y = this.result.rect;
|
|
1085
|
+
if (g && y) {
|
|
1086
|
+
var m = c.rect.left !== y.left || c.rect.right !== y.right || c.rect.top !== y.top || c.rect.bottom !== y.bottom;
|
|
1087
|
+
c.changed = m || g.x !== c.coords.x || g.y !== c.coords.y;
|
|
1088
|
+
}
|
|
1089
|
+
return c;
|
|
1090
|
+
} }, { key: "applyToInteraction", value: function(e) {
|
|
1091
|
+
var n = this.interaction, r = e.phase, i = n.coords.cur, o = n.coords.start, a = this.result, s = this.startDelta, c = a.delta;
|
|
1092
|
+
r === "start" && x(this.startDelta, a.delta);
|
|
1093
|
+
for (var u = 0, l = [[o, s], [i, c]]; u < l.length; u++) {
|
|
1094
|
+
var p = l[u], f = p[0], h = p[1];
|
|
1095
|
+
f.page.x += h.x, f.page.y += h.y, f.client.x += h.x, f.client.y += h.y;
|
|
1096
|
+
}
|
|
1097
|
+
var v = this.result.rectDelta, g = e.rect || n.rect;
|
|
1098
|
+
g.left += v.left, g.right += v.right, g.top += v.top, g.bottom += v.bottom, g.width = g.right - g.left, g.height = g.bottom - g.top;
|
|
1099
|
+
} }, { key: "setAndApply", value: function(e) {
|
|
1100
|
+
var n = this.interaction, r = e.phase, i = e.preEnd, o = e.skipModifiers, a = this.setAll(this.fillArg({ preEnd: i, phase: r, pageCoords: e.modifiedCoords || n.coords.cur.page }));
|
|
1101
|
+
if (this.result = a, !a.changed && (!o || o < this.states.length) && n.interacting())
|
|
1102
|
+
return !1;
|
|
1103
|
+
if (e.modifiedCoords) {
|
|
1104
|
+
var s = n.coords.cur.page, c = { x: e.modifiedCoords.x - s.x, y: e.modifiedCoords.y - s.y };
|
|
1105
|
+
a.coords.x += c.x, a.coords.y += c.y, a.delta.x += c.x, a.delta.y += c.y;
|
|
1106
|
+
}
|
|
1107
|
+
this.applyToInteraction(e);
|
|
1108
|
+
} }, { key: "beforeEnd", value: function(e) {
|
|
1109
|
+
var n = e.interaction, r = e.event, i = this.states;
|
|
1110
|
+
if (i && i.length) {
|
|
1111
|
+
for (var o = !1, a = 0; a < i.length; a++) {
|
|
1112
|
+
var s = i[a];
|
|
1113
|
+
e.state = s;
|
|
1114
|
+
var c = s.options, u = s.methods, l = u.beforeEnd && u.beforeEnd(e);
|
|
1115
|
+
if (l)
|
|
1116
|
+
return this.endResult = l, !1;
|
|
1117
|
+
o = o || !o && this.shouldDo(c, !0, e.phase, !0);
|
|
1118
|
+
}
|
|
1119
|
+
o && n.move({ event: r, preEnd: !0 });
|
|
1120
|
+
}
|
|
1121
|
+
} }, { key: "stop", value: function(e) {
|
|
1122
|
+
var n = e.interaction;
|
|
1123
|
+
if (this.states && this.states.length) {
|
|
1124
|
+
var r = x({ states: this.states, interactable: n.interactable, element: n.element, rect: null }, e);
|
|
1125
|
+
this.fillArg(r);
|
|
1126
|
+
for (var i = 0, o = this.states; i < o.length; i++) {
|
|
1127
|
+
var a = o[i];
|
|
1128
|
+
r.state = a, a.methods.stop && a.methods.stop(r);
|
|
1129
|
+
}
|
|
1130
|
+
this.states = null, this.endResult = null;
|
|
1131
|
+
}
|
|
1132
|
+
} }, { key: "prepareStates", value: function(e) {
|
|
1133
|
+
this.states = [];
|
|
1134
|
+
for (var n = 0; n < e.length; n++) {
|
|
1135
|
+
var r = e[n], i = r.options, o = r.methods, a = r.name;
|
|
1136
|
+
this.states.push({ options: i, methods: o, index: n, name: a });
|
|
1137
|
+
}
|
|
1138
|
+
return this.states;
|
|
1139
|
+
} }, { key: "restoreInteractionCoords", value: function(e) {
|
|
1140
|
+
var n = e.interaction, r = n.coords, i = n.rect, o = n.modification;
|
|
1141
|
+
if (o.result) {
|
|
1142
|
+
for (var a = o.startDelta, s = o.result, c = s.delta, u = s.rectDelta, l = 0, p = [[r.start, a], [r.cur, c]]; l < p.length; l++) {
|
|
1143
|
+
var f = p[l], h = f[0], v = f[1];
|
|
1144
|
+
h.page.x -= v.x, h.page.y -= v.y, h.client.x -= v.x, h.client.y -= v.y;
|
|
1145
|
+
}
|
|
1146
|
+
i.left -= u.left, i.right -= u.right, i.top -= u.top, i.bottom -= u.bottom;
|
|
1147
|
+
}
|
|
1148
|
+
} }, { key: "shouldDo", value: function(e, n, r, i) {
|
|
1149
|
+
return !(!e || e.enabled === !1 || i && !e.endOnly || e.endOnly && !n || r === "start" && !e.setStart);
|
|
1150
|
+
} }, { key: "copyFrom", value: function(e) {
|
|
1151
|
+
this.startOffset = e.startOffset, this.startDelta = e.startDelta, this.startEdges = e.startEdges, this.edges = e.edges, this.states = e.states.map(function(n) {
|
|
1152
|
+
return ne(n);
|
|
1153
|
+
}), this.result = Me(x({}, e.result.coords), x({}, e.result.rect));
|
|
1154
|
+
} }, { key: "destroy", value: function() {
|
|
1155
|
+
for (var e in this)
|
|
1156
|
+
this[e] = null;
|
|
1157
|
+
} }]), t;
|
|
1158
|
+
}();
|
|
1159
|
+
function Me(t, e) {
|
|
1160
|
+
return { rect: e, coords: t, delta: { x: 0, y: 0 }, rectDelta: { left: 0, right: 0, top: 0, bottom: 0 }, eventProps: [], changed: !0 };
|
|
1161
|
+
}
|
|
1162
|
+
function W(t, e) {
|
|
1163
|
+
var n = t.defaults, r = { start: t.start, set: t.set, beforeEnd: t.beforeEnd, stop: t.stop }, i = function(o) {
|
|
1164
|
+
var a = o || {};
|
|
1165
|
+
for (var s in a.enabled = a.enabled !== !1, n)
|
|
1166
|
+
s in a || (a[s] = n[s]);
|
|
1167
|
+
var c = { options: a, methods: r, name: e, enable: function() {
|
|
1168
|
+
return a.enabled = !0, c;
|
|
1169
|
+
}, disable: function() {
|
|
1170
|
+
return a.enabled = !1, c;
|
|
1171
|
+
} };
|
|
1172
|
+
return c;
|
|
1173
|
+
};
|
|
1174
|
+
return e && typeof e == "string" && (i._defaults = n, i._methods = r), i;
|
|
1175
|
+
}
|
|
1176
|
+
function de(t) {
|
|
1177
|
+
var e = t.iEvent, n = t.interaction.modification.result;
|
|
1178
|
+
n && (e.modifiers = n.eventProps);
|
|
1179
|
+
}
|
|
1180
|
+
var qn = { id: "modifiers/base", before: ["actions"], install: function(t) {
|
|
1181
|
+
t.defaults.perAction.modifiers = [];
|
|
1182
|
+
}, listeners: { "interactions:new": function(t) {
|
|
1183
|
+
var e = t.interaction;
|
|
1184
|
+
e.modification = new at(e);
|
|
1185
|
+
}, "interactions:before-action-start": function(t) {
|
|
1186
|
+
var e = t.interaction, n = t.interaction.modification;
|
|
1187
|
+
n.start(t, e.coords.start.page), e.edges = n.edges, n.applyToInteraction(t);
|
|
1188
|
+
}, "interactions:before-action-move": function(t) {
|
|
1189
|
+
var e = t.interaction, n = e.modification, r = n.setAndApply(t);
|
|
1190
|
+
return e.edges = n.edges, r;
|
|
1191
|
+
}, "interactions:before-action-end": function(t) {
|
|
1192
|
+
var e = t.interaction, n = e.modification, r = n.beforeEnd(t);
|
|
1193
|
+
return e.edges = n.startEdges, r;
|
|
1194
|
+
}, "interactions:action-start": de, "interactions:action-move": de, "interactions:action-end": de, "interactions:after-action-start": function(t) {
|
|
1195
|
+
return t.interaction.modification.restoreInteractionCoords(t);
|
|
1196
|
+
}, "interactions:after-action-move": function(t) {
|
|
1197
|
+
return t.interaction.modification.restoreInteractionCoords(t);
|
|
1198
|
+
}, "interactions:stop": function(t) {
|
|
1199
|
+
return t.interaction.modification.stop(t);
|
|
1200
|
+
} } }, Qt = qn, Zt = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, st = function(t) {
|
|
1201
|
+
ie(n, t);
|
|
1202
|
+
var e = oe(n);
|
|
1203
|
+
function n(r, i, o, a, s, c, u) {
|
|
1204
|
+
var l;
|
|
1205
|
+
k(this, n), (l = e.call(this, r)).relatedTarget = null, l.screenX = void 0, l.screenY = void 0, l.button = void 0, l.buttons = void 0, l.ctrlKey = void 0, l.shiftKey = void 0, l.altKey = void 0, l.metaKey = void 0, l.page = void 0, l.client = void 0, l.delta = void 0, l.rect = void 0, l.x0 = void 0, l.y0 = void 0, l.t0 = void 0, l.dt = void 0, l.duration = void 0, l.clientX0 = void 0, l.clientY0 = void 0, l.velocity = void 0, l.speed = void 0, l.swipe = void 0, l.axes = void 0, l.preEnd = void 0, s = s || r.element;
|
|
1206
|
+
var p = r.interactable, f = (p && p.options || Zt).deltaSource, h = se(p, s, o), v = a === "start", g = a === "end", y = v ? be(l) : r.prevEvent, m = v ? r.coords.start : g ? { page: y.page, client: y.client, timeStamp: r.coords.cur.timeStamp } : r.coords.cur;
|
|
1207
|
+
return l.page = x({}, m.page), l.client = x({}, m.client), l.rect = x({}, r.rect), l.timeStamp = m.timeStamp, g || (l.page.x -= h.x, l.page.y -= h.y, l.client.x -= h.x, l.client.y -= h.y), l.ctrlKey = i.ctrlKey, l.altKey = i.altKey, l.shiftKey = i.shiftKey, l.metaKey = i.metaKey, l.button = i.button, l.buttons = i.buttons, l.target = s, l.currentTarget = s, l.preEnd = c, l.type = u || o + (a || ""), l.interactable = p, l.t0 = v ? r.pointers[r.pointers.length - 1].downTime : y.t0, l.x0 = r.coords.start.page.x - h.x, l.y0 = r.coords.start.page.y - h.y, l.clientX0 = r.coords.start.client.x - h.x, l.clientY0 = r.coords.start.client.y - h.y, l.delta = v || g ? { x: 0, y: 0 } : { x: l[f].x - y[f].x, y: l[f].y - y[f].y }, l.dt = r.coords.delta.timeStamp, l.duration = l.timeStamp - l.t0, l.velocity = x({}, r.coords.velocity[f]), l.speed = ce(l.velocity.x, l.velocity.y), l.swipe = g || a === "inertiastart" ? l.getSwipe() : null, l;
|
|
1208
|
+
}
|
|
1209
|
+
return D(n, [{ key: "getSwipe", value: function() {
|
|
1210
|
+
var r = this._interaction;
|
|
1211
|
+
if (r.prevEvent.speed < 600 || this.timeStamp - r.prevEvent.timeStamp > 150)
|
|
1212
|
+
return null;
|
|
1213
|
+
var i = 180 * Math.atan2(r.prevEvent.velocityY, r.prevEvent.velocityX) / Math.PI;
|
|
1214
|
+
i < 0 && (i += 360);
|
|
1215
|
+
var o = 112.5 <= i && i < 247.5, a = 202.5 <= i && i < 337.5;
|
|
1216
|
+
return { up: a, down: !a && 22.5 <= i && i < 157.5, left: o, right: !o && (292.5 <= i || i < 67.5), angle: i, speed: r.prevEvent.speed, velocity: { x: r.prevEvent.velocityX, y: r.prevEvent.velocityY } };
|
|
1217
|
+
} }, { key: "preventDefault", value: function() {
|
|
1218
|
+
} }, { key: "stopImmediatePropagation", value: function() {
|
|
1219
|
+
this.immediatePropagationStopped = this.propagationStopped = !0;
|
|
1220
|
+
} }, { key: "stopPropagation", value: function() {
|
|
1221
|
+
this.propagationStopped = !0;
|
|
1222
|
+
} }]), n;
|
|
1223
|
+
}(ke);
|
|
1224
|
+
Object.defineProperties(st.prototype, { pageX: { get: function() {
|
|
1225
|
+
return this.page.x;
|
|
1226
|
+
}, set: function(t) {
|
|
1227
|
+
this.page.x = t;
|
|
1228
|
+
} }, pageY: { get: function() {
|
|
1229
|
+
return this.page.y;
|
|
1230
|
+
}, set: function(t) {
|
|
1231
|
+
this.page.y = t;
|
|
1232
|
+
} }, clientX: { get: function() {
|
|
1233
|
+
return this.client.x;
|
|
1234
|
+
}, set: function(t) {
|
|
1235
|
+
this.client.x = t;
|
|
1236
|
+
} }, clientY: { get: function() {
|
|
1237
|
+
return this.client.y;
|
|
1238
|
+
}, set: function(t) {
|
|
1239
|
+
this.client.y = t;
|
|
1240
|
+
} }, dx: { get: function() {
|
|
1241
|
+
return this.delta.x;
|
|
1242
|
+
}, set: function(t) {
|
|
1243
|
+
this.delta.x = t;
|
|
1244
|
+
} }, dy: { get: function() {
|
|
1245
|
+
return this.delta.y;
|
|
1246
|
+
}, set: function(t) {
|
|
1247
|
+
this.delta.y = t;
|
|
1248
|
+
} }, velocityX: { get: function() {
|
|
1249
|
+
return this.velocity.x;
|
|
1250
|
+
}, set: function(t) {
|
|
1251
|
+
this.velocity.x = t;
|
|
1252
|
+
} }, velocityY: { get: function() {
|
|
1253
|
+
return this.velocity.y;
|
|
1254
|
+
}, set: function(t) {
|
|
1255
|
+
this.velocity.y = t;
|
|
1256
|
+
} } });
|
|
1257
|
+
var Bn = D(function t(e, n, r, i, o) {
|
|
1258
|
+
k(this, t), this.id = void 0, this.pointer = void 0, this.event = void 0, this.downTime = void 0, this.downTarget = void 0, this.id = e, this.pointer = n, this.event = r, this.downTime = i, this.downTarget = o;
|
|
1259
|
+
}), Vn = function(t) {
|
|
1260
|
+
return t.interactable = "", t.element = "", t.prepared = "", t.pointerIsDown = "", t.pointerWasMoved = "", t._proxy = "", t;
|
|
1261
|
+
}({}), en = function(t) {
|
|
1262
|
+
return t.start = "", t.move = "", t.end = "", t.stop = "", t.interacting = "", t;
|
|
1263
|
+
}({}), Wn = 0, Gn = function() {
|
|
1264
|
+
function t(e) {
|
|
1265
|
+
var n = this, r = e.pointerType, i = e.scopeFire;
|
|
1266
|
+
k(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 = fe(function(l) {
|
|
1267
|
+
this.move(l);
|
|
1268
|
+
}, "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 = Wn++, this._scopeFire = i, this.pointerType = r;
|
|
1269
|
+
var o = this;
|
|
1270
|
+
this._proxy = {};
|
|
1271
|
+
var a = function(l) {
|
|
1272
|
+
Object.defineProperty(n._proxy, l, { get: function() {
|
|
1273
|
+
return o[l];
|
|
1274
|
+
} });
|
|
1275
|
+
};
|
|
1276
|
+
for (var s in Vn)
|
|
1277
|
+
a(s);
|
|
1278
|
+
var c = function(l) {
|
|
1279
|
+
Object.defineProperty(n._proxy, l, { value: function() {
|
|
1280
|
+
return o[l].apply(o, arguments);
|
|
1281
|
+
} });
|
|
1282
|
+
};
|
|
1283
|
+
for (var u in en)
|
|
1284
|
+
c(u);
|
|
1285
|
+
this._scopeFire("interactions:new", { interaction: this });
|
|
1286
|
+
}
|
|
1287
|
+
return D(t, [{ key: "pointerMoveTolerance", get: function() {
|
|
1288
|
+
return 1;
|
|
1289
|
+
} }, { key: "pointerDown", value: function(e, n, r) {
|
|
1290
|
+
var i = this.updatePointer(e, n, r, !0), o = this.pointers[i];
|
|
1291
|
+
this._scopeFire("interactions:down", { pointer: e, event: n, eventTarget: r, pointerIndex: i, pointerInfo: o, type: "down", interaction: this });
|
|
1292
|
+
} }, { key: "start", value: function(e, n, r) {
|
|
1293
|
+
return !(this.interacting() || !this.pointerIsDown || this.pointers.length < (e.name === "gesture" ? 2 : 1) || !n.options[e.name].enabled) && (nt(this.prepared, e), this.interactable = n, this.element = r, this.rect = n.getRect(r), this.edges = this.prepared.edges ? x({}, 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);
|
|
1294
|
+
} }, { key: "pointerMove", value: function(e, n, r) {
|
|
1295
|
+
this.simulation || this.modification && this.modification.endResult || this.updatePointer(e, n, r, !1);
|
|
1296
|
+
var i, o, a = 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;
|
|
1297
|
+
this.pointerIsDown && !this.pointerWasMoved && (i = this.coords.cur.client.x - this.coords.start.client.x, o = this.coords.cur.client.y - this.coords.start.client.y, this.pointerWasMoved = ce(i, o) > this.pointerMoveTolerance);
|
|
1298
|
+
var s, c, u, l = this.getPointerIndex(e), p = { pointer: e, pointerIndex: l, pointerInfo: this.pointers[l], event: n, type: "move", eventTarget: r, dx: i, dy: o, duplicate: a, interaction: this };
|
|
1299
|
+
a || (s = this.coords.velocity, c = this.coords.delta, u = Math.max(c.timeStamp / 1e3, 1e-3), s.page.x = c.page.x / u, s.page.y = c.page.y / u, s.client.x = c.client.x / u, s.client.y = c.client.y / u, s.timeStamp = u), this._scopeFire("interactions:move", p), a || this.simulation || (this.interacting() && (p.type = null, this.move(p)), this.pointerWasMoved && Pe(this.coords.prev, this.coords.cur));
|
|
1300
|
+
} }, { key: "move", value: function(e) {
|
|
1301
|
+
e && e.event || It(this.coords.delta), (e = x({ pointer: this._latestPointer.pointer, event: this._latestPointer.event, eventTarget: this._latestPointer.eventTarget, interaction: this }, e || {})).phase = "move", this._doPhase(e);
|
|
1302
|
+
} }, { key: "pointerUp", value: function(e, n, r, i) {
|
|
1303
|
+
var o = this.getPointerIndex(e);
|
|
1304
|
+
o === -1 && (o = this.updatePointer(e, n, r, !1));
|
|
1305
|
+
var a = /cancel$/i.test(n.type) ? "cancel" : "up";
|
|
1306
|
+
this._scopeFire("interactions:".concat(a), { pointer: e, pointerIndex: o, pointerInfo: this.pointers[o], event: n, eventTarget: r, type: a, curEventTarget: i, interaction: this }), this.simulation || this.end(n), this.removePointer(e, n);
|
|
1307
|
+
} }, { key: "documentBlur", value: function(e) {
|
|
1308
|
+
this.end(e), this._scopeFire("interactions:blur", { event: e, type: "blur", interaction: this });
|
|
1309
|
+
} }, { key: "end", value: function(e) {
|
|
1310
|
+
var n;
|
|
1311
|
+
this._ending = !0, e = e || this._latestPointer.event, this.interacting() && (n = this._doPhase({ event: e, interaction: this, phase: "end" })), this._ending = !1, n === !0 && this.stop();
|
|
1312
|
+
} }, { key: "currentAction", value: function() {
|
|
1313
|
+
return this._interacting ? this.prepared.name : null;
|
|
1314
|
+
} }, { key: "interacting", value: function() {
|
|
1315
|
+
return this._interacting;
|
|
1316
|
+
} }, { key: "stop", value: function() {
|
|
1317
|
+
this._scopeFire("interactions:stop", { interaction: this }), this.interactable = this.element = null, this._interacting = !1, this._stopped = !0, this.prepared.name = this.prevEvent = null;
|
|
1318
|
+
} }, { key: "getPointerIndex", value: function(e) {
|
|
1319
|
+
var n = le(e);
|
|
1320
|
+
return this.pointerType === "mouse" || this.pointerType === "pen" ? this.pointers.length - 1 : ue(this.pointers, function(r) {
|
|
1321
|
+
return r.id === n;
|
|
1322
|
+
});
|
|
1323
|
+
} }, { key: "getPointerInfo", value: function(e) {
|
|
1324
|
+
return this.pointers[this.getPointerIndex(e)];
|
|
1325
|
+
} }, { key: "updatePointer", value: function(e, n, r, i) {
|
|
1326
|
+
var o, a, s, c = le(e), u = this.getPointerIndex(e), l = this.pointers[u];
|
|
1327
|
+
return i = i !== !1 && (i || /(down|start)$/i.test(n.type)), l ? l.pointer = e : (l = new Bn(c, e, n, null, null), u = this.pointers.length, this.pointers.push(l)), En(this.coords.cur, this.pointers.map(function(p) {
|
|
1328
|
+
return p.pointer;
|
|
1329
|
+
}), this._now()), o = this.coords.delta, a = this.coords.prev, s = this.coords.cur, o.page.x = s.page.x - a.page.x, o.page.y = s.page.y - a.page.y, o.client.x = s.client.x - a.client.x, o.client.y = s.client.y - a.client.y, o.timeStamp = s.timeStamp - a.timeStamp, i && (this.pointerIsDown = !0, l.downTime = this.coords.cur.timeStamp, l.downTarget = r, _e(this.downPointer, e), this.interacting() || (Pe(this.coords.start, this.coords.cur), Pe(this.coords.prev, this.coords.cur), this.downEvent = n, this.pointerWasMoved = !1)), this._updateLatestPointer(e, n, r), this._scopeFire("interactions:update-pointer", { pointer: e, event: n, eventTarget: r, down: i, pointerInfo: l, pointerIndex: u, interaction: this }), u;
|
|
1330
|
+
} }, { key: "removePointer", value: function(e, n) {
|
|
1331
|
+
var r = this.getPointerIndex(e);
|
|
1332
|
+
if (r !== -1) {
|
|
1333
|
+
var i = this.pointers[r];
|
|
1334
|
+
this._scopeFire("interactions:remove-pointer", { pointer: e, event: n, eventTarget: null, pointerIndex: r, pointerInfo: i, interaction: this }), this.pointers.splice(r, 1), this.pointerIsDown = !1;
|
|
1335
|
+
}
|
|
1336
|
+
} }, { key: "_updateLatestPointer", value: function(e, n, r) {
|
|
1337
|
+
this._latestPointer.pointer = e, this._latestPointer.event = n, this._latestPointer.eventTarget = r;
|
|
1338
|
+
} }, { key: "destroy", value: function() {
|
|
1339
|
+
this._latestPointer.pointer = null, this._latestPointer.event = null, this._latestPointer.eventTarget = null;
|
|
1340
|
+
} }, { key: "_createPreparedEvent", value: function(e, n, r, i) {
|
|
1341
|
+
return new st(this, e, this.prepared.name, n, this.element, r, i);
|
|
1342
|
+
} }, { key: "_fireEvent", value: function(e) {
|
|
1343
|
+
var n;
|
|
1344
|
+
(n = this.interactable) == null || n.fire(e), (!this.prevEvent || e.timeStamp >= this.prevEvent.timeStamp) && (this.prevEvent = e);
|
|
1345
|
+
} }, { key: "_doPhase", value: function(e) {
|
|
1346
|
+
var n = e.event, r = e.phase, i = e.preEnd, o = e.type, a = this.rect;
|
|
1347
|
+
if (a && r === "move" && (Se(this.edges, a, this.coords.delta[this.interactable.options.deltaSource]), a.width = a.right - a.left, a.height = a.bottom - a.top), this._scopeFire("interactions:before-action-".concat(r), e) === !1)
|
|
1348
|
+
return !1;
|
|
1349
|
+
var s = e.iEvent = this._createPreparedEvent(n, r, i, o);
|
|
1350
|
+
return this._scopeFire("interactions:action-".concat(r), e), r === "start" && (this.prevEvent = s), this._fireEvent(s), this._scopeFire("interactions:after-action-".concat(r), e), !0;
|
|
1351
|
+
} }, { key: "_now", value: function() {
|
|
1352
|
+
return Date.now();
|
|
1353
|
+
} }]), t;
|
|
1354
|
+
}();
|
|
1355
|
+
function tn(t) {
|
|
1356
|
+
nn(t.interaction);
|
|
1357
|
+
}
|
|
1358
|
+
function nn(t) {
|
|
1359
|
+
if (!function(n) {
|
|
1360
|
+
return !(!n.offset.pending.x && !n.offset.pending.y);
|
|
1361
|
+
}(t))
|
|
1362
|
+
return !1;
|
|
1363
|
+
var e = t.offset.pending;
|
|
1364
|
+
return ct(t.coords.cur, e), ct(t.coords.delta, e), Se(t.edges, t.rect, e), e.x = 0, e.y = 0, !0;
|
|
1365
|
+
}
|
|
1366
|
+
function Nn(t) {
|
|
1367
|
+
var e = t.x, n = t.y;
|
|
1368
|
+
this.offset.pending.x += e, this.offset.pending.y += n, this.offset.total.x += e, this.offset.total.y += n;
|
|
1369
|
+
}
|
|
1370
|
+
function ct(t, e) {
|
|
1371
|
+
var n = t.page, r = t.client, i = e.x, o = e.y;
|
|
1372
|
+
n.x += i, n.y += o, r.x += i, r.y += o;
|
|
1373
|
+
}
|
|
1374
|
+
en.offsetBy = "";
|
|
1375
|
+
var Hn = { id: "offset", before: ["modifiers", "pointer-events", "actions", "inertia"], install: function(t) {
|
|
1376
|
+
t.Interaction.prototype.offsetBy = Nn;
|
|
1377
|
+
}, listeners: { "interactions:new": function(t) {
|
|
1378
|
+
t.interaction.offset = { total: { x: 0, y: 0 }, pending: { x: 0, y: 0 } };
|
|
1379
|
+
}, "interactions:update-pointer": function(t) {
|
|
1380
|
+
return function(e) {
|
|
1381
|
+
e.pointerIsDown && (ct(e.coords.cur, e.offset.total), e.offset.pending.x = 0, e.offset.pending.y = 0);
|
|
1382
|
+
}(t.interaction);
|
|
1383
|
+
}, "interactions:before-action-start": tn, "interactions:before-action-move": tn, "interactions:before-action-end": function(t) {
|
|
1384
|
+
var e = t.interaction;
|
|
1385
|
+
if (nn(e))
|
|
1386
|
+
return e.move({ offset: !0 }), e.end(), !1;
|
|
1387
|
+
}, "interactions:stop": function(t) {
|
|
1388
|
+
var e = t.interaction;
|
|
1389
|
+
e.offset.total.x = 0, e.offset.total.y = 0, e.offset.pending.x = 0, e.offset.pending.y = 0;
|
|
1390
|
+
} } }, rn = Hn, Un = function() {
|
|
1391
|
+
function t(e) {
|
|
1392
|
+
k(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 = e;
|
|
1393
|
+
}
|
|
1394
|
+
return D(t, [{ key: "start", value: function(e) {
|
|
1395
|
+
var n = this.interaction, r = ze(n);
|
|
1396
|
+
if (!r || !r.enabled)
|
|
1397
|
+
return !1;
|
|
1398
|
+
var i = n.coords.velocity.client, o = ce(i.x, i.y), a = this.modification || (this.modification = new at(n));
|
|
1399
|
+
if (a.copyFrom(n.modification), this.t0 = n._now(), this.allowResume = r.allowResume, this.v0 = o, this.currentOffset = { x: 0, y: 0 }, this.startCoords = n.coords.cur.page, this.modifierArg = a.fillArg({ pageCoords: this.startCoords, preEnd: !0, phase: "inertiastart" }), this.t0 - n.coords.cur.timeStamp < 50 && o > r.minSpeed && o > r.endSpeed)
|
|
1400
|
+
this.startInertia();
|
|
1401
|
+
else {
|
|
1402
|
+
if (a.result = a.setAll(this.modifierArg), !a.result.changed)
|
|
1403
|
+
return !1;
|
|
1404
|
+
this.startSmoothEnd();
|
|
1405
|
+
}
|
|
1406
|
+
return n.modification.result.rect = null, n.offsetBy(this.targetOffset), n._doPhase({ interaction: n, event: e, phase: "inertiastart" }), n.offsetBy({ x: -this.targetOffset.x, y: -this.targetOffset.y }), n.modification.result.rect = null, this.active = !0, n.simulation = this, !0;
|
|
1407
|
+
} }, { key: "startInertia", value: function() {
|
|
1408
|
+
var e = this, n = this.interaction.coords.velocity.client, r = ze(this.interaction), i = r.resistance, o = -Math.log(r.endSpeed / this.v0) / i;
|
|
1409
|
+
this.targetOffset = { x: (n.x - o) / i, y: (n.y - o) / i }, this.te = o, this.lambda_v0 = i / this.v0, this.one_ve_v0 = 1 - r.endSpeed / this.v0;
|
|
1410
|
+
var a = this.modification, s = this.modifierArg;
|
|
1411
|
+
s.pageCoords = { x: this.startCoords.x + this.targetOffset.x, y: this.startCoords.y + this.targetOffset.y }, a.result = a.setAll(s), a.result.changed && (this.isModified = !0, this.modifiedOffset = { x: this.targetOffset.x + a.result.delta.x, y: this.targetOffset.y + a.result.delta.y }), this.onNextFrame(function() {
|
|
1412
|
+
return e.inertiaTick();
|
|
1413
|
+
});
|
|
1414
|
+
} }, { key: "startSmoothEnd", value: function() {
|
|
1415
|
+
var e = this;
|
|
1416
|
+
this.smoothEnd = !0, this.isModified = !0, this.targetOffset = { x: this.modification.result.delta.x, y: this.modification.result.delta.y }, this.onNextFrame(function() {
|
|
1417
|
+
return e.smoothEndTick();
|
|
1418
|
+
});
|
|
1419
|
+
} }, { key: "onNextFrame", value: function(e) {
|
|
1420
|
+
var n = this;
|
|
1421
|
+
this.timeout = V.request(function() {
|
|
1422
|
+
n.active && e();
|
|
1423
|
+
});
|
|
1424
|
+
} }, { key: "inertiaTick", value: function() {
|
|
1425
|
+
var e, n, r, i, o, a, s, c = this, u = this.interaction, l = ze(u).resistance, p = (u._now() - this.t0) / 1e3;
|
|
1426
|
+
if (p < this.te) {
|
|
1427
|
+
var f, h = 1 - (Math.exp(-l * p) - this.lambda_v0) / this.one_ve_v0;
|
|
1428
|
+
this.isModified ? (e = 0, n = 0, r = this.targetOffset.x, i = this.targetOffset.y, o = this.modifiedOffset.x, a = this.modifiedOffset.y, f = { x: on(s = h, e, r, o), y: on(s, n, i, a) }) : f = { x: this.targetOffset.x * h, y: this.targetOffset.y * h };
|
|
1429
|
+
var v = { x: f.x - this.currentOffset.x, y: f.y - this.currentOffset.y };
|
|
1430
|
+
this.currentOffset.x += v.x, this.currentOffset.y += v.y, u.offsetBy(v), u.move(), this.onNextFrame(function() {
|
|
1431
|
+
return c.inertiaTick();
|
|
1432
|
+
});
|
|
1433
|
+
} else
|
|
1434
|
+
u.offsetBy({ x: this.modifiedOffset.x - this.currentOffset.x, y: this.modifiedOffset.y - this.currentOffset.y }), this.end();
|
|
1435
|
+
} }, { key: "smoothEndTick", value: function() {
|
|
1436
|
+
var e = this, n = this.interaction, r = n._now() - this.t0, i = ze(n).smoothEndDuration;
|
|
1437
|
+
if (r < i) {
|
|
1438
|
+
var o = { x: an(r, 0, this.targetOffset.x, i), y: an(r, 0, this.targetOffset.y, i) }, a = { x: o.x - this.currentOffset.x, y: o.y - this.currentOffset.y };
|
|
1439
|
+
this.currentOffset.x += a.x, this.currentOffset.y += a.y, n.offsetBy(a), n.move({ skipModifiers: this.modifierCount }), this.onNextFrame(function() {
|
|
1440
|
+
return e.smoothEndTick();
|
|
1441
|
+
});
|
|
1442
|
+
} else
|
|
1443
|
+
n.offsetBy({ x: this.targetOffset.x - this.currentOffset.x, y: this.targetOffset.y - this.currentOffset.y }), this.end();
|
|
1444
|
+
} }, { key: "resume", value: function(e) {
|
|
1445
|
+
var n = e.pointer, r = e.event, i = e.eventTarget, o = this.interaction;
|
|
1446
|
+
o.offsetBy({ x: -this.currentOffset.x, y: -this.currentOffset.y }), o.updatePointer(n, r, i, !0), o._doPhase({ interaction: o, event: r, phase: "resume" }), Pe(o.coords.prev, o.coords.cur), this.stop();
|
|
1447
|
+
} }, { key: "end", value: function() {
|
|
1448
|
+
this.interaction.move(), this.interaction.end(), this.stop();
|
|
1449
|
+
} }, { key: "stop", value: function() {
|
|
1450
|
+
this.active = this.smoothEnd = !1, this.interaction.simulation = null, V.cancel(this.timeout);
|
|
1451
|
+
} }]), t;
|
|
1452
|
+
}();
|
|
1453
|
+
function ze(t) {
|
|
1454
|
+
var e = t.interactable, n = t.prepared;
|
|
1455
|
+
return e && e.options && n.name && e.options[n.name].inertia;
|
|
1456
|
+
}
|
|
1457
|
+
var Kn = { id: "inertia", before: ["modifiers", "actions"], install: function(t) {
|
|
1458
|
+
var e = t.defaults;
|
|
1459
|
+
t.usePlugin(rn), t.usePlugin(Qt), t.actions.phases.inertiastart = !0, t.actions.phases.resume = !0, e.perAction.inertia = { enabled: !1, resistance: 10, minSpeed: 100, endSpeed: 10, allowResume: !0, smoothEndDuration: 300 };
|
|
1460
|
+
}, listeners: { "interactions:new": function(t) {
|
|
1461
|
+
var e = t.interaction;
|
|
1462
|
+
e.inertia = new Un(e);
|
|
1463
|
+
}, "interactions:before-action-end": function(t) {
|
|
1464
|
+
var e = t.interaction, n = t.event;
|
|
1465
|
+
return (!e._interacting || e.simulation || !e.inertia.start(n)) && null;
|
|
1466
|
+
}, "interactions:down": function(t) {
|
|
1467
|
+
var e = t.interaction, n = t.eventTarget, r = e.inertia;
|
|
1468
|
+
if (r.active)
|
|
1469
|
+
for (var i = n; d.element(i); ) {
|
|
1470
|
+
if (i === e.element) {
|
|
1471
|
+
r.resume(t);
|
|
1472
|
+
break;
|
|
1473
|
+
}
|
|
1474
|
+
i = X(i);
|
|
1475
|
+
}
|
|
1476
|
+
}, "interactions:stop": function(t) {
|
|
1477
|
+
var e = t.interaction.inertia;
|
|
1478
|
+
e.active && e.stop();
|
|
1479
|
+
}, "interactions:before-action-resume": function(t) {
|
|
1480
|
+
var e = t.interaction.modification;
|
|
1481
|
+
e.stop(t), e.start(t, t.interaction.coords.cur.page), e.applyToInteraction(t);
|
|
1482
|
+
}, "interactions:before-action-inertiastart": function(t) {
|
|
1483
|
+
return t.interaction.modification.setAndApply(t);
|
|
1484
|
+
}, "interactions:action-resume": de, "interactions:action-inertiastart": de, "interactions:after-action-inertiastart": function(t) {
|
|
1485
|
+
return t.interaction.modification.restoreInteractionCoords(t);
|
|
1486
|
+
}, "interactions:after-action-resume": function(t) {
|
|
1487
|
+
return t.interaction.modification.restoreInteractionCoords(t);
|
|
1488
|
+
} } };
|
|
1489
|
+
function on(t, e, n, r) {
|
|
1490
|
+
var i = 1 - t;
|
|
1491
|
+
return i * i * e + 2 * i * t * n + t * t * r;
|
|
1492
|
+
}
|
|
1493
|
+
function an(t, e, n, r) {
|
|
1494
|
+
return -n * (t /= r) * (t - 2) + e;
|
|
1495
|
+
}
|
|
1496
|
+
var $n = Kn;
|
|
1497
|
+
function sn(t, e) {
|
|
1498
|
+
for (var n = 0; n < e.length; n++) {
|
|
1499
|
+
var r = e[n];
|
|
1500
|
+
if (t.immediatePropagationStopped)
|
|
1501
|
+
break;
|
|
1502
|
+
r(t);
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
var cn = function() {
|
|
1506
|
+
function t(e) {
|
|
1507
|
+
k(this, t), this.options = void 0, this.types = {}, this.propagationStopped = !1, this.immediatePropagationStopped = !1, this.global = void 0, this.options = x({}, e || {});
|
|
1508
|
+
}
|
|
1509
|
+
return D(t, [{ key: "fire", value: function(e) {
|
|
1510
|
+
var n, r = this.global;
|
|
1511
|
+
(n = this.types[e.type]) && sn(e, n), !e.propagationStopped && r && (n = r[e.type]) && sn(e, n);
|
|
1512
|
+
} }, { key: "on", value: function(e, n) {
|
|
1513
|
+
var r = $(e, n);
|
|
1514
|
+
for (e in r)
|
|
1515
|
+
this.types[e] = jt(this.types[e] || [], r[e]);
|
|
1516
|
+
} }, { key: "off", value: function(e, n) {
|
|
1517
|
+
var r = $(e, n);
|
|
1518
|
+
for (e in r) {
|
|
1519
|
+
var i = this.types[e];
|
|
1520
|
+
if (i && i.length)
|
|
1521
|
+
for (var o = 0, a = r[e]; o < a.length; o++) {
|
|
1522
|
+
var s = a[o], c = i.indexOf(s);
|
|
1523
|
+
c !== -1 && i.splice(c, 1);
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
} }, { key: "getRect", value: function(e) {
|
|
1527
|
+
return null;
|
|
1528
|
+
} }]), t;
|
|
1529
|
+
}(), Jn = function() {
|
|
1530
|
+
function t(e) {
|
|
1531
|
+
k(this, t), this.currentTarget = void 0, this.originalEvent = void 0, this.type = void 0, this.originalEvent = e, _e(this, e);
|
|
1532
|
+
}
|
|
1533
|
+
return D(t, [{ key: "preventOriginalDefault", value: function() {
|
|
1534
|
+
this.originalEvent.preventDefault();
|
|
1535
|
+
} }, { key: "stopPropagation", value: function() {
|
|
1536
|
+
this.originalEvent.stopPropagation();
|
|
1537
|
+
} }, { key: "stopImmediatePropagation", value: function() {
|
|
1538
|
+
this.originalEvent.stopImmediatePropagation();
|
|
1539
|
+
} }]), t;
|
|
1540
|
+
}();
|
|
1541
|
+
function ve(t) {
|
|
1542
|
+
return d.object(t) ? { capture: !!t.capture, passive: !!t.passive } : { capture: !!t, passive: !1 };
|
|
1543
|
+
}
|
|
1544
|
+
function Ae(t, e) {
|
|
1545
|
+
return t === e || (typeof t == "boolean" ? !!e.capture === t && !e.passive : !!t.capture == !!e.capture && !!t.passive == !!e.passive);
|
|
1546
|
+
}
|
|
1547
|
+
var Qn = { id: "events", install: function(t) {
|
|
1548
|
+
var e, n = [], r = {}, i = [], o = { add: a, remove: s, addDelegate: function(l, p, f, h, v) {
|
|
1549
|
+
var g = ve(v);
|
|
1550
|
+
if (!r[f]) {
|
|
1551
|
+
r[f] = [];
|
|
1552
|
+
for (var y = 0; y < i.length; y++) {
|
|
1553
|
+
var m = i[y];
|
|
1554
|
+
a(m, f, c), a(m, f, u, !0);
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
var b = r[f], T = pe(b, function(_) {
|
|
1558
|
+
return _.selector === l && _.context === p;
|
|
1559
|
+
});
|
|
1560
|
+
T || (T = { selector: l, context: p, listeners: [] }, b.push(T)), T.listeners.push({ func: h, options: g });
|
|
1561
|
+
}, removeDelegate: function(l, p, f, h, v) {
|
|
1562
|
+
var g, y = ve(v), m = r[f], b = !1;
|
|
1563
|
+
if (m)
|
|
1564
|
+
for (g = m.length - 1; g >= 0; g--) {
|
|
1565
|
+
var T = m[g];
|
|
1566
|
+
if (T.selector === l && T.context === p) {
|
|
1567
|
+
for (var _ = T.listeners, w = _.length - 1; w >= 0; w--) {
|
|
1568
|
+
var S = _[w];
|
|
1569
|
+
if (S.func === h && Ae(S.options, y)) {
|
|
1570
|
+
_.splice(w, 1), _.length || (m.splice(g, 1), s(p, f, c), s(p, f, u, !0)), b = !0;
|
|
1571
|
+
break;
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
if (b)
|
|
1575
|
+
break;
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
}, delegateListener: c, delegateUseCapture: u, delegatedEvents: r, documents: i, targets: n, supportsOptions: !1, supportsPassive: !1 };
|
|
1579
|
+
function a(l, p, f, h) {
|
|
1580
|
+
if (l.addEventListener) {
|
|
1581
|
+
var v = ve(h), g = pe(n, function(y) {
|
|
1582
|
+
return y.eventTarget === l;
|
|
1583
|
+
});
|
|
1584
|
+
g || (g = { eventTarget: l, events: {} }, n.push(g)), g.events[p] || (g.events[p] = []), pe(g.events[p], function(y) {
|
|
1585
|
+
return y.func === f && Ae(y.options, v);
|
|
1586
|
+
}) || (l.addEventListener(p, f, o.supportsOptions ? v : v.capture), g.events[p].push({ func: f, options: v }));
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
function s(l, p, f, h) {
|
|
1590
|
+
if (l.addEventListener && l.removeEventListener) {
|
|
1591
|
+
var v = ue(n, function(M) {
|
|
1592
|
+
return M.eventTarget === l;
|
|
1593
|
+
}), g = n[v];
|
|
1594
|
+
if (g && g.events)
|
|
1595
|
+
if (p !== "all") {
|
|
1596
|
+
var y = !1, m = g.events[p];
|
|
1597
|
+
if (m) {
|
|
1598
|
+
if (f === "all") {
|
|
1599
|
+
for (var b = m.length - 1; b >= 0; b--) {
|
|
1600
|
+
var T = m[b];
|
|
1601
|
+
s(l, p, T.func, T.options);
|
|
1602
|
+
}
|
|
1603
|
+
return;
|
|
1604
|
+
}
|
|
1605
|
+
for (var _ = ve(h), w = 0; w < m.length; w++) {
|
|
1606
|
+
var S = m[w];
|
|
1607
|
+
if (S.func === f && Ae(S.options, _)) {
|
|
1608
|
+
l.removeEventListener(p, f, o.supportsOptions ? _ : _.capture), m.splice(w, 1), m.length === 0 && (delete g.events[p], y = !0);
|
|
1609
|
+
break;
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
y && !Object.keys(g.events).length && n.splice(v, 1);
|
|
1614
|
+
} else
|
|
1615
|
+
for (p in g.events)
|
|
1616
|
+
g.events.hasOwnProperty(p) && s(l, p, "all");
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
function c(l, p) {
|
|
1620
|
+
for (var f = ve(p), h = new Jn(l), v = r[l.type], g = Rt(l)[0], y = g; d.element(y); ) {
|
|
1621
|
+
for (var m = 0; m < v.length; m++) {
|
|
1622
|
+
var b = v[m], T = b.selector, _ = b.context;
|
|
1623
|
+
if (B(y, T) && K(_, g) && K(_, y)) {
|
|
1624
|
+
var w = b.listeners;
|
|
1625
|
+
h.currentTarget = y;
|
|
1626
|
+
for (var S = 0; S < w.length; S++) {
|
|
1627
|
+
var M = w[S];
|
|
1628
|
+
Ae(M.options, f) && M.func(h);
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
y = X(y);
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
function u(l) {
|
|
1636
|
+
return c(l, !0);
|
|
1637
|
+
}
|
|
1638
|
+
return (e = t.document) == null || e.createElement("div").addEventListener("test", null, { get capture() {
|
|
1639
|
+
return o.supportsOptions = !0;
|
|
1640
|
+
}, get passive() {
|
|
1641
|
+
return o.supportsPassive = !0;
|
|
1642
|
+
} }), t.events = o, o;
|
|
1643
|
+
} }, lt = { methodOrder: ["simulationResume", "mouseOrPen", "hasPointer", "idle"], search: function(t) {
|
|
1644
|
+
for (var e = 0, n = lt.methodOrder; e < n.length; e++) {
|
|
1645
|
+
var r = n[e], i = lt[r](t);
|
|
1646
|
+
if (i)
|
|
1647
|
+
return i;
|
|
1648
|
+
}
|
|
1649
|
+
return null;
|
|
1650
|
+
}, simulationResume: function(t) {
|
|
1651
|
+
var e = t.pointerType, n = t.eventType, r = t.eventTarget, i = t.scope;
|
|
1652
|
+
if (!/down|start/i.test(n))
|
|
1653
|
+
return null;
|
|
1654
|
+
for (var o = 0, a = i.interactions.list; o < a.length; o++) {
|
|
1655
|
+
var s = a[o], c = r;
|
|
1656
|
+
if (s.simulation && s.simulation.allowResume && s.pointerType === e)
|
|
1657
|
+
for (; c; ) {
|
|
1658
|
+
if (c === s.element)
|
|
1659
|
+
return s;
|
|
1660
|
+
c = X(c);
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
return null;
|
|
1664
|
+
}, mouseOrPen: function(t) {
|
|
1665
|
+
var e, n = t.pointerId, r = t.pointerType, i = t.eventType, o = t.scope;
|
|
1666
|
+
if (r !== "mouse" && r !== "pen")
|
|
1667
|
+
return null;
|
|
1668
|
+
for (var a = 0, s = o.interactions.list; a < s.length; a++) {
|
|
1669
|
+
var c = s[a];
|
|
1670
|
+
if (c.pointerType === r) {
|
|
1671
|
+
if (c.simulation && !ln(c, n))
|
|
1672
|
+
continue;
|
|
1673
|
+
if (c.interacting())
|
|
1674
|
+
return c;
|
|
1675
|
+
e || (e = c);
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
if (e)
|
|
1679
|
+
return e;
|
|
1680
|
+
for (var u = 0, l = o.interactions.list; u < l.length; u++) {
|
|
1681
|
+
var p = l[u];
|
|
1682
|
+
if (!(p.pointerType !== r || /down/i.test(i) && p.simulation))
|
|
1683
|
+
return p;
|
|
1684
|
+
}
|
|
1685
|
+
return null;
|
|
1686
|
+
}, hasPointer: function(t) {
|
|
1687
|
+
for (var e = t.pointerId, n = 0, r = t.scope.interactions.list; n < r.length; n++) {
|
|
1688
|
+
var i = r[n];
|
|
1689
|
+
if (ln(i, e))
|
|
1690
|
+
return i;
|
|
1691
|
+
}
|
|
1692
|
+
return null;
|
|
1693
|
+
}, idle: function(t) {
|
|
1694
|
+
for (var e = t.pointerType, n = 0, r = t.scope.interactions.list; n < r.length; n++) {
|
|
1695
|
+
var i = r[n];
|
|
1696
|
+
if (i.pointers.length === 1) {
|
|
1697
|
+
var o = i.interactable;
|
|
1698
|
+
if (o && (!o.options.gesture || !o.options.gesture.enabled))
|
|
1699
|
+
continue;
|
|
1700
|
+
} else if (i.pointers.length >= 2)
|
|
1701
|
+
continue;
|
|
1702
|
+
if (!i.interacting() && e === i.pointerType)
|
|
1703
|
+
return i;
|
|
1704
|
+
}
|
|
1705
|
+
return null;
|
|
1706
|
+
} };
|
|
1707
|
+
function ln(t, e) {
|
|
1708
|
+
return t.pointers.some(function(n) {
|
|
1709
|
+
return n.id === e;
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1712
|
+
var Zn = lt, ut = ["pointerDown", "pointerMove", "pointerUp", "updatePointer", "removePointer", "windowBlur"];
|
|
1713
|
+
function un(t, e) {
|
|
1714
|
+
return function(n) {
|
|
1715
|
+
var r = e.interactions.list, i = Ct(n), o = Rt(n), a = o[0], s = o[1], c = [];
|
|
1716
|
+
if (/^touch/.test(n.type)) {
|
|
1717
|
+
e.prevTouchTime = e.now();
|
|
1718
|
+
for (var u = 0, l = n.changedTouches; u < l.length; u++) {
|
|
1719
|
+
var p = l[u], f = { pointer: p, pointerId: le(p), pointerType: i, eventType: n.type, eventTarget: a, curEventTarget: s, scope: e }, h = pn(f);
|
|
1720
|
+
c.push([f.pointer, f.eventTarget, f.curEventTarget, h]);
|
|
1721
|
+
}
|
|
1722
|
+
} else {
|
|
1723
|
+
var v = !1;
|
|
1724
|
+
if (!R.supportsPointerEvent && /mouse/.test(n.type)) {
|
|
1725
|
+
for (var g = 0; g < r.length && !v; g++)
|
|
1726
|
+
v = r[g].pointerType !== "mouse" && r[g].pointerIsDown;
|
|
1727
|
+
v = v || e.now() - e.prevTouchTime < 500 || n.timeStamp === 0;
|
|
1728
|
+
}
|
|
1729
|
+
if (!v) {
|
|
1730
|
+
var y = { pointer: n, pointerId: le(n), pointerType: i, eventType: n.type, curEventTarget: s, eventTarget: a, scope: e }, m = pn(y);
|
|
1731
|
+
c.push([y.pointer, y.eventTarget, y.curEventTarget, m]);
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
for (var b = 0; b < c.length; b++) {
|
|
1735
|
+
var T = c[b], _ = T[0], w = T[1], S = T[2];
|
|
1736
|
+
T[3][t](_, n, w, S);
|
|
1737
|
+
}
|
|
1738
|
+
};
|
|
1739
|
+
}
|
|
1740
|
+
function pn(t) {
|
|
1741
|
+
var e = t.pointerType, n = t.scope, r = { interaction: Zn.search(t), searchDetails: t };
|
|
1742
|
+
return n.fire("interactions:find", r), r.interaction || n.interactions.new({ pointerType: e });
|
|
1743
|
+
}
|
|
1744
|
+
function pt(t, e) {
|
|
1745
|
+
var n = t.doc, r = t.scope, i = t.options, o = r.interactions.docEvents, a = r.events, s = a[e];
|
|
1746
|
+
for (var c in r.browser.isIOS && !i.events && (i.events = { passive: !1 }), a.delegatedEvents)
|
|
1747
|
+
s(n, c, a.delegateListener), s(n, c, a.delegateUseCapture, !0);
|
|
1748
|
+
for (var u = i && i.events, l = 0; l < o.length; l++) {
|
|
1749
|
+
var p = o[l];
|
|
1750
|
+
s(n, p.type, p.listener, u);
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
var er = { id: "core/interactions", install: function(t) {
|
|
1754
|
+
for (var e = {}, n = 0; n < ut.length; n++) {
|
|
1755
|
+
var r = ut[n];
|
|
1756
|
+
e[r] = un(r, t);
|
|
1757
|
+
}
|
|
1758
|
+
var i, o = R.pEventTypes;
|
|
1759
|
+
function a() {
|
|
1760
|
+
for (var s = 0, c = t.interactions.list; s < c.length; s++) {
|
|
1761
|
+
var u = c[s];
|
|
1762
|
+
if (u.pointerIsDown && u.pointerType === "touch" && !u._interacting)
|
|
1763
|
+
for (var l = function() {
|
|
1764
|
+
var h = f[p];
|
|
1765
|
+
t.documents.some(function(v) {
|
|
1766
|
+
return K(v.doc, h.downTarget);
|
|
1767
|
+
}) || u.removePointer(h.pointer, h.event);
|
|
1768
|
+
}, p = 0, f = u.pointers; p < f.length; p++)
|
|
1769
|
+
l();
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
(i = O.PointerEvent ? [{ type: o.down, listener: a }, { type: o.down, listener: e.pointerDown }, { type: o.move, listener: e.pointerMove }, { type: o.up, listener: e.pointerUp }, { type: o.cancel, listener: e.pointerUp }] : [{ type: "mousedown", listener: e.pointerDown }, { type: "mousemove", listener: e.pointerMove }, { type: "mouseup", listener: e.pointerUp }, { type: "touchstart", listener: a }, { type: "touchstart", listener: e.pointerDown }, { type: "touchmove", listener: e.pointerMove }, { type: "touchend", listener: e.pointerUp }, { type: "touchcancel", listener: e.pointerUp }]).push({ type: "blur", listener: function(s) {
|
|
1773
|
+
for (var c = 0, u = t.interactions.list; c < u.length; c++)
|
|
1774
|
+
u[c].documentBlur(s);
|
|
1775
|
+
} }), t.prevTouchTime = 0, t.Interaction = function(s) {
|
|
1776
|
+
ie(u, s);
|
|
1777
|
+
var c = oe(u);
|
|
1778
|
+
function u() {
|
|
1779
|
+
return k(this, u), c.apply(this, arguments);
|
|
1780
|
+
}
|
|
1781
|
+
return D(u, [{ key: "pointerMoveTolerance", get: function() {
|
|
1782
|
+
return t.interactions.pointerMoveTolerance;
|
|
1783
|
+
}, set: function(l) {
|
|
1784
|
+
t.interactions.pointerMoveTolerance = l;
|
|
1785
|
+
} }, { key: "_now", value: function() {
|
|
1786
|
+
return t.now();
|
|
1787
|
+
} }]), u;
|
|
1788
|
+
}(Gn), t.interactions = { list: [], new: function(s) {
|
|
1789
|
+
s.scopeFire = function(u, l) {
|
|
1790
|
+
return t.fire(u, l);
|
|
1791
|
+
};
|
|
1792
|
+
var c = new t.Interaction(s);
|
|
1793
|
+
return t.interactions.list.push(c), c;
|
|
1794
|
+
}, listeners: e, docEvents: i, pointerMoveTolerance: 1 }, t.usePlugin(Jt);
|
|
1795
|
+
}, listeners: { "scope:add-document": function(t) {
|
|
1796
|
+
return pt(t, "add");
|
|
1797
|
+
}, "scope:remove-document": function(t) {
|
|
1798
|
+
return pt(t, "remove");
|
|
1799
|
+
}, "interactable:unset": function(t, e) {
|
|
1800
|
+
for (var n = t.interactable, r = e.interactions.list.length - 1; r >= 0; r--) {
|
|
1801
|
+
var i = e.interactions.list[r];
|
|
1802
|
+
i.interactable === n && (i.stop(), e.fire("interactions:destroy", { interaction: i }), i.destroy(), e.interactions.list.length > 2 && e.interactions.list.splice(r, 1));
|
|
1803
|
+
}
|
|
1804
|
+
} }, onDocSignal: pt, doOnInteractions: un, methodNames: ut }, tr = er, G = function(t) {
|
|
1805
|
+
return t[t.On = 0] = "On", t[t.Off = 1] = "Off", t;
|
|
1806
|
+
}(G || {}), nr = function() {
|
|
1807
|
+
function t(e, n, r, i) {
|
|
1808
|
+
k(this, t), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new cn(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = n.actions, this.target = e, this._context = n.context || r, this._win = F(Ot(e) ? this._context : e), this._doc = this._win.document, this._scopeEvents = i, this.set(n);
|
|
1809
|
+
}
|
|
1810
|
+
return D(t, [{ key: "_defaults", get: function() {
|
|
1811
|
+
return { base: {}, perAction: {}, actions: {} };
|
|
1812
|
+
} }, { key: "setOnEvents", value: function(e, n) {
|
|
1813
|
+
return d.func(n.onstart) && this.on("".concat(e, "start"), n.onstart), d.func(n.onmove) && this.on("".concat(e, "move"), n.onmove), d.func(n.onend) && this.on("".concat(e, "end"), n.onend), d.func(n.oninertiastart) && this.on("".concat(e, "inertiastart"), n.oninertiastart), this;
|
|
1814
|
+
} }, { key: "updatePerActionListeners", value: function(e, n, r) {
|
|
1815
|
+
var i, o = this, a = (i = this._actions.map[e]) == null ? void 0 : i.filterEventType, s = function(c) {
|
|
1816
|
+
return (a == null || a(c)) && Ie(c, o._actions);
|
|
1817
|
+
};
|
|
1818
|
+
(d.array(n) || d.object(n)) && this._onOff(G.Off, e, n, void 0, s), (d.array(r) || d.object(r)) && this._onOff(G.On, e, r, void 0, s);
|
|
1819
|
+
} }, { key: "setPerAction", value: function(e, n) {
|
|
1820
|
+
var r = this._defaults;
|
|
1821
|
+
for (var i in n) {
|
|
1822
|
+
var o = i, a = this.options[e], s = n[o];
|
|
1823
|
+
o === "listeners" && this.updatePerActionListeners(e, a.listeners, s), d.array(s) ? a[o] = Ft(s) : d.plainObject(s) ? (a[o] = x(a[o] || {}, ne(s)), d.object(r.perAction[o]) && "enabled" in r.perAction[o] && (a[o].enabled = s.enabled !== !1)) : d.bool(s) && d.object(r.perAction[o]) ? a[o].enabled = s : a[o] = s;
|
|
1824
|
+
}
|
|
1825
|
+
} }, { key: "getRect", value: function(e) {
|
|
1826
|
+
return e = e || (d.element(this.target) ? this.target : null), d.string(this.target) && (e = e || this._context.querySelector(this.target)), Ge(e);
|
|
1827
|
+
} }, { key: "rectChecker", value: function(e) {
|
|
1828
|
+
var n = this;
|
|
1829
|
+
return d.func(e) ? (this.getRect = function(r) {
|
|
1830
|
+
var i = x({}, e.apply(n, r));
|
|
1831
|
+
return "width" in i || (i.width = i.right - i.left, i.height = i.bottom - i.top), i;
|
|
1832
|
+
}, this) : e === null ? (delete this.getRect, this) : this.getRect;
|
|
1833
|
+
} }, { key: "_backCompatOption", value: function(e, n) {
|
|
1834
|
+
if (Ot(n) || d.object(n)) {
|
|
1835
|
+
for (var r in this.options[e] = n, this._actions.map)
|
|
1836
|
+
this.options[r][e] = n;
|
|
1837
|
+
return this;
|
|
1838
|
+
}
|
|
1839
|
+
return this.options[e];
|
|
1840
|
+
} }, { key: "origin", value: function(e) {
|
|
1841
|
+
return this._backCompatOption("origin", e);
|
|
1842
|
+
} }, { key: "deltaSource", value: function(e) {
|
|
1843
|
+
return e === "page" || e === "client" ? (this.options.deltaSource = e, this) : this.options.deltaSource;
|
|
1844
|
+
} }, { key: "getAllElements", value: function() {
|
|
1845
|
+
var e = this.target;
|
|
1846
|
+
return d.string(e) ? Array.from(this._context.querySelectorAll(e)) : d.func(e) && e.getAllElements ? e.getAllElements() : d.element(e) ? [e] : [];
|
|
1847
|
+
} }, { key: "context", value: function() {
|
|
1848
|
+
return this._context;
|
|
1849
|
+
} }, { key: "inContext", value: function(e) {
|
|
1850
|
+
return this._context === e.ownerDocument || K(this._context, e);
|
|
1851
|
+
} }, { key: "testIgnoreAllow", value: function(e, n, r) {
|
|
1852
|
+
return !this.testIgnore(e.ignoreFrom, n, r) && this.testAllow(e.allowFrom, n, r);
|
|
1853
|
+
} }, { key: "testAllow", value: function(e, n, r) {
|
|
1854
|
+
return !e || !!d.element(r) && (d.string(e) ? Ve(r, e, n) : !!d.element(e) && K(e, r));
|
|
1855
|
+
} }, { key: "testIgnore", value: function(e, n, r) {
|
|
1856
|
+
return !(!e || !d.element(r)) && (d.string(e) ? Ve(r, e, n) : !!d.element(e) && K(e, r));
|
|
1857
|
+
} }, { key: "fire", value: function(e) {
|
|
1858
|
+
return this.events.fire(e), this;
|
|
1859
|
+
} }, { key: "_onOff", value: function(e, n, r, i, o) {
|
|
1860
|
+
d.object(n) && !d.array(n) && (i = r, r = null);
|
|
1861
|
+
var a = $(n, r, o);
|
|
1862
|
+
for (var s in a) {
|
|
1863
|
+
s === "wheel" && (s = R.wheelEvent);
|
|
1864
|
+
for (var c = 0, u = a[s]; c < u.length; c++) {
|
|
1865
|
+
var l = u[c];
|
|
1866
|
+
Ie(s, this._actions) ? this.events[e === G.On ? "on" : "off"](s, l) : d.string(this.target) ? this._scopeEvents[e === G.On ? "addDelegate" : "removeDelegate"](this.target, this._context, s, l, i) : this._scopeEvents[e === G.On ? "add" : "remove"](this.target, s, l, i);
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
return this;
|
|
1870
|
+
} }, { key: "on", value: function(e, n, r) {
|
|
1871
|
+
return this._onOff(G.On, e, n, r);
|
|
1872
|
+
} }, { key: "off", value: function(e, n, r) {
|
|
1873
|
+
return this._onOff(G.Off, e, n, r);
|
|
1874
|
+
} }, { key: "set", value: function(e) {
|
|
1875
|
+
var n = this._defaults;
|
|
1876
|
+
for (var r in d.object(e) || (e = {}), this.options = ne(n.base), this._actions.methodDict) {
|
|
1877
|
+
var i = r, o = this._actions.methodDict[i];
|
|
1878
|
+
this.options[i] = {}, this.setPerAction(i, x(x({}, n.perAction), n.actions[i])), this[o](e[i]);
|
|
1879
|
+
}
|
|
1880
|
+
for (var a in e)
|
|
1881
|
+
a !== "getRect" ? d.func(this[a]) && this[a](e[a]) : this.rectChecker(e.getRect);
|
|
1882
|
+
return this;
|
|
1883
|
+
} }, { key: "unset", value: function() {
|
|
1884
|
+
if (d.string(this.target))
|
|
1885
|
+
for (var e in this._scopeEvents.delegatedEvents)
|
|
1886
|
+
for (var n = this._scopeEvents.delegatedEvents[e], r = n.length - 1; r >= 0; r--) {
|
|
1887
|
+
var i = n[r], o = i.selector, a = i.context, s = i.listeners;
|
|
1888
|
+
o === this.target && a === this._context && n.splice(r, 1);
|
|
1889
|
+
for (var c = s.length - 1; c >= 0; c--)
|
|
1890
|
+
this._scopeEvents.removeDelegate(this.target, this._context, e, s[c][0], s[c][1]);
|
|
1891
|
+
}
|
|
1892
|
+
else
|
|
1893
|
+
this._scopeEvents.remove(this.target, "all");
|
|
1894
|
+
} }]), t;
|
|
1895
|
+
}(), rr = function() {
|
|
1896
|
+
function t(e) {
|
|
1897
|
+
var n = this;
|
|
1898
|
+
k(this, t), this.list = [], this.selectorMap = {}, this.scope = void 0, this.scope = e, e.addListeners({ "interactable:unset": function(r) {
|
|
1899
|
+
var i = r.interactable, o = i.target, a = d.string(o) ? n.selectorMap[o] : o[n.scope.id], s = ue(a, function(c) {
|
|
1900
|
+
return c === i;
|
|
1901
|
+
});
|
|
1902
|
+
a.splice(s, 1);
|
|
1903
|
+
} });
|
|
1904
|
+
}
|
|
1905
|
+
return D(t, [{ key: "new", value: function(e, n) {
|
|
1906
|
+
n = x(n || {}, { actions: this.scope.actions });
|
|
1907
|
+
var r = new this.scope.Interactable(e, n, this.scope.document, this.scope.events);
|
|
1908
|
+
return this.scope.addDocument(r._doc), this.list.push(r), d.string(e) ? (this.selectorMap[e] || (this.selectorMap[e] = []), this.selectorMap[e].push(r)) : (r.target[this.scope.id] || Object.defineProperty(e, this.scope.id, { value: [], configurable: !0 }), e[this.scope.id].push(r)), this.scope.fire("interactable:new", { target: e, options: n, interactable: r, win: this.scope._win }), r;
|
|
1909
|
+
} }, { key: "getExisting", value: function(e, n) {
|
|
1910
|
+
var r = n && n.context || this.scope.document, i = d.string(e), o = i ? this.selectorMap[e] : e[this.scope.id];
|
|
1911
|
+
if (o)
|
|
1912
|
+
return pe(o, function(a) {
|
|
1913
|
+
return a._context === r && (i || a.inContext(e));
|
|
1914
|
+
});
|
|
1915
|
+
} }, { key: "forEachMatch", value: function(e, n) {
|
|
1916
|
+
for (var r = 0, i = this.list; r < i.length; r++) {
|
|
1917
|
+
var o = i[r], a = void 0;
|
|
1918
|
+
if ((d.string(o.target) ? d.element(e) && B(e, o.target) : e === o.target) && o.inContext(e) && (a = n(o)), a !== void 0)
|
|
1919
|
+
return a;
|
|
1920
|
+
}
|
|
1921
|
+
} }]), t;
|
|
1922
|
+
}(), ir = function() {
|
|
1923
|
+
function t() {
|
|
1924
|
+
var e = this;
|
|
1925
|
+
k(this, t), this.id = "__interact_scope_".concat(Math.floor(100 * Math.random())), this.isInitialized = !1, this.listenerMaps = [], this.browser = R, this.defaults = ne(Zt), this.Eventable = cn, this.actions = { map: {}, phases: { start: !0, move: !0, end: !0 }, methodDict: {}, phaselessTypes: {} }, this.interactStatic = function(r) {
|
|
1926
|
+
var i = function o(a, s) {
|
|
1927
|
+
var c = r.interactables.getExisting(a, s);
|
|
1928
|
+
return c || ((c = r.interactables.new(a, s)).events.global = o.globalEvents), c;
|
|
1929
|
+
};
|
|
1930
|
+
return i.getPointerAverage = At, i.getTouchBBox = Ue, i.getTouchDistance = Ke, i.getTouchAngle = $e, i.getElementRect = Ge, i.getElementClientRect = We, i.matchesSelector = B, i.closest = Tt, i.globalEvents = {}, i.version = "1.10.27", i.scope = r, i.use = function(o, a) {
|
|
1931
|
+
return this.scope.usePlugin(o, a), this;
|
|
1932
|
+
}, i.isSet = function(o, a) {
|
|
1933
|
+
return !!this.scope.interactables.get(o, a && a.context);
|
|
1934
|
+
}, i.on = fe(function(o, a, s) {
|
|
1935
|
+
if (d.string(o) && o.search(" ") !== -1 && (o = o.trim().split(/ +/)), d.array(o)) {
|
|
1936
|
+
for (var c = 0, u = o; c < u.length; c++) {
|
|
1937
|
+
var l = u[c];
|
|
1938
|
+
this.on(l, a, s);
|
|
1939
|
+
}
|
|
1940
|
+
return this;
|
|
1941
|
+
}
|
|
1942
|
+
if (d.object(o)) {
|
|
1943
|
+
for (var p in o)
|
|
1944
|
+
this.on(p, o[p], a);
|
|
1945
|
+
return this;
|
|
1946
|
+
}
|
|
1947
|
+
return Ie(o, this.scope.actions) ? this.globalEvents[o] ? this.globalEvents[o].push(a) : this.globalEvents[o] = [a] : this.scope.events.add(this.scope.document, o, a, { options: s }), this;
|
|
1948
|
+
}, "The interact.on() method is being deprecated"), i.off = fe(function(o, a, s) {
|
|
1949
|
+
if (d.string(o) && o.search(" ") !== -1 && (o = o.trim().split(/ +/)), d.array(o)) {
|
|
1950
|
+
for (var c = 0, u = o; c < u.length; c++) {
|
|
1951
|
+
var l = u[c];
|
|
1952
|
+
this.off(l, a, s);
|
|
1953
|
+
}
|
|
1954
|
+
return this;
|
|
1955
|
+
}
|
|
1956
|
+
if (d.object(o)) {
|
|
1957
|
+
for (var p in o)
|
|
1958
|
+
this.off(p, o[p], a);
|
|
1959
|
+
return this;
|
|
1960
|
+
}
|
|
1961
|
+
var f;
|
|
1962
|
+
return Ie(o, this.scope.actions) ? o in this.globalEvents && (f = this.globalEvents[o].indexOf(a)) !== -1 && this.globalEvents[o].splice(f, 1) : this.scope.events.remove(this.scope.document, o, a, s), this;
|
|
1963
|
+
}, "The interact.off() method is being deprecated"), i.debug = function() {
|
|
1964
|
+
return this.scope;
|
|
1965
|
+
}, i.supportsTouch = function() {
|
|
1966
|
+
return R.supportsTouch;
|
|
1967
|
+
}, i.supportsPointerEvent = function() {
|
|
1968
|
+
return R.supportsPointerEvent;
|
|
1969
|
+
}, i.stop = function() {
|
|
1970
|
+
for (var o = 0, a = this.scope.interactions.list; o < a.length; o++)
|
|
1971
|
+
a[o].stop();
|
|
1972
|
+
return this;
|
|
1973
|
+
}, i.pointerMoveTolerance = function(o) {
|
|
1974
|
+
return d.number(o) ? (this.scope.interactions.pointerMoveTolerance = o, this) : this.scope.interactions.pointerMoveTolerance;
|
|
1975
|
+
}, i.addDocument = function(o, a) {
|
|
1976
|
+
this.scope.addDocument(o, a);
|
|
1977
|
+
}, i.removeDocument = function(o) {
|
|
1978
|
+
this.scope.removeDocument(o);
|
|
1979
|
+
}, i;
|
|
1980
|
+
}(this), this.InteractEvent = st, this.Interactable = void 0, this.interactables = new rr(this), this._win = void 0, this.document = void 0, this.window = void 0, this.documents = [], this._plugins = { list: [], map: {} }, this.onWindowUnload = function(r) {
|
|
1981
|
+
return e.removeDocument(r.target);
|
|
1982
|
+
};
|
|
1983
|
+
var n = this;
|
|
1984
|
+
this.Interactable = function(r) {
|
|
1985
|
+
ie(o, r);
|
|
1986
|
+
var i = oe(o);
|
|
1987
|
+
function o() {
|
|
1988
|
+
return k(this, o), i.apply(this, arguments);
|
|
1989
|
+
}
|
|
1990
|
+
return D(o, [{ key: "_defaults", get: function() {
|
|
1991
|
+
return n.defaults;
|
|
1992
|
+
} }, { key: "set", value: function(a) {
|
|
1993
|
+
return xe(H(o.prototype), "set", this).call(this, a), n.fire("interactable:set", { options: a, interactable: this }), this;
|
|
1994
|
+
} }, { key: "unset", value: function() {
|
|
1995
|
+
xe(H(o.prototype), "unset", this).call(this);
|
|
1996
|
+
var a = n.interactables.list.indexOf(this);
|
|
1997
|
+
a < 0 || (n.interactables.list.splice(a, 1), n.fire("interactable:unset", { interactable: this }));
|
|
1998
|
+
} }]), o;
|
|
1999
|
+
}(nr);
|
|
2000
|
+
}
|
|
2001
|
+
return D(t, [{ key: "addListeners", value: function(e, n) {
|
|
2002
|
+
this.listenerMaps.push({ id: n, map: e });
|
|
2003
|
+
} }, { key: "fire", value: function(e, n) {
|
|
2004
|
+
for (var r = 0, i = this.listenerMaps; r < i.length; r++) {
|
|
2005
|
+
var o = i[r].map[e];
|
|
2006
|
+
if (o && o(n, this, e) === !1)
|
|
2007
|
+
return !1;
|
|
2008
|
+
}
|
|
2009
|
+
} }, { key: "init", value: function(e) {
|
|
2010
|
+
return this.isInitialized ? this : function(n, r) {
|
|
2011
|
+
return n.isInitialized = !0, d.window(r) && bt(r), O.init(r), R.init(r), V.init(r), n.window = r, n.document = r.document, n.usePlugin(tr), n.usePlugin(Qn), n;
|
|
2012
|
+
}(this, e);
|
|
2013
|
+
} }, { key: "pluginIsInstalled", value: function(e) {
|
|
2014
|
+
var n = e.id;
|
|
2015
|
+
return n ? !!this._plugins.map[n] : this._plugins.list.indexOf(e) !== -1;
|
|
2016
|
+
} }, { key: "usePlugin", value: function(e, n) {
|
|
2017
|
+
if (!this.isInitialized)
|
|
2018
|
+
return this;
|
|
2019
|
+
if (this.pluginIsInstalled(e))
|
|
2020
|
+
return this;
|
|
2021
|
+
if (e.id && (this._plugins.map[e.id] = e), this._plugins.list.push(e), e.install && e.install(this, n), e.listeners && e.before) {
|
|
2022
|
+
for (var r = 0, i = this.listenerMaps.length, o = e.before.reduce(function(s, c) {
|
|
2023
|
+
return s[c] = !0, s[fn(c)] = !0, s;
|
|
2024
|
+
}, {}); r < i; r++) {
|
|
2025
|
+
var a = this.listenerMaps[r].id;
|
|
2026
|
+
if (a && (o[a] || o[fn(a)]))
|
|
2027
|
+
break;
|
|
2028
|
+
}
|
|
2029
|
+
this.listenerMaps.splice(r, 0, { id: e.id, map: e.listeners });
|
|
2030
|
+
} else
|
|
2031
|
+
e.listeners && this.listenerMaps.push({ id: e.id, map: e.listeners });
|
|
2032
|
+
return this;
|
|
2033
|
+
} }, { key: "addDocument", value: function(e, n) {
|
|
2034
|
+
if (this.getDocIndex(e) !== -1)
|
|
2035
|
+
return !1;
|
|
2036
|
+
var r = F(e);
|
|
2037
|
+
n = n ? x({}, n) : {}, this.documents.push({ doc: e, options: n }), this.events.documents.push(e), e !== this.document && this.events.add(r, "unload", this.onWindowUnload), this.fire("scope:add-document", { doc: e, window: r, scope: this, options: n });
|
|
2038
|
+
} }, { key: "removeDocument", value: function(e) {
|
|
2039
|
+
var n = this.getDocIndex(e), r = F(e), i = this.documents[n].options;
|
|
2040
|
+
this.events.remove(r, "unload", this.onWindowUnload), this.documents.splice(n, 1), this.events.documents.splice(n, 1), this.fire("scope:remove-document", { doc: e, window: r, scope: this, options: i });
|
|
2041
|
+
} }, { key: "getDocIndex", value: function(e) {
|
|
2042
|
+
for (var n = 0; n < this.documents.length; n++)
|
|
2043
|
+
if (this.documents[n].doc === e)
|
|
2044
|
+
return n;
|
|
2045
|
+
return -1;
|
|
2046
|
+
} }, { key: "getDocOptions", value: function(e) {
|
|
2047
|
+
var n = this.getDocIndex(e);
|
|
2048
|
+
return n === -1 ? null : this.documents[n].options;
|
|
2049
|
+
} }, { key: "now", value: function() {
|
|
2050
|
+
return (this.window.Date || Date).now();
|
|
2051
|
+
} }]), t;
|
|
2052
|
+
}();
|
|
2053
|
+
function fn(t) {
|
|
2054
|
+
return t && t.replace(/\/.*$/, "");
|
|
2055
|
+
}
|
|
2056
|
+
var dn = new ir(), I = dn.interactStatic, or = typeof globalThis < "u" ? globalThis : window;
|
|
2057
|
+
dn.init(or);
|
|
2058
|
+
var ar = Object.freeze({ __proto__: null, edgeTarget: function() {
|
|
2059
|
+
}, elements: function() {
|
|
2060
|
+
}, grid: function(t) {
|
|
2061
|
+
var e = [["x", "y"], ["left", "top"], ["right", "bottom"], ["width", "height"]].filter(function(r) {
|
|
2062
|
+
var i = r[0], o = r[1];
|
|
2063
|
+
return i in t || o in t;
|
|
2064
|
+
}), n = function(r, i) {
|
|
2065
|
+
for (var o = t.range, a = t.limits, s = a === void 0 ? { left: -1 / 0, right: 1 / 0, top: -1 / 0, bottom: 1 / 0 } : a, c = t.offset, u = c === void 0 ? { x: 0, y: 0 } : c, l = { range: o, grid: t, x: null, y: null }, p = 0; p < e.length; p++) {
|
|
2066
|
+
var f = e[p], h = f[0], v = f[1], g = Math.round((r - u.x) / t[h]), y = Math.round((i - u.y) / t[v]);
|
|
2067
|
+
l[h] = Math.max(s.left, Math.min(s.right, g * t[h] + u.x)), l[v] = Math.max(s.top, Math.min(s.bottom, y * t[v] + u.y));
|
|
2068
|
+
}
|
|
2069
|
+
return l;
|
|
2070
|
+
};
|
|
2071
|
+
return n.grid = t, n.coordFields = e, n;
|
|
2072
|
+
} }), sr = { id: "snappers", install: function(t) {
|
|
2073
|
+
var e = t.interactStatic;
|
|
2074
|
+
e.snappers = x(e.snappers || {}, ar), e.createSnapGrid = e.snappers.grid;
|
|
2075
|
+
} }, cr = sr, lr = { start: function(t) {
|
|
2076
|
+
var e = t.state, n = t.rect, r = t.edges, i = t.pageCoords, o = e.options, a = o.ratio, s = o.enabled, c = e.options, u = c.equalDelta, l = c.modifiers;
|
|
2077
|
+
a === "preserve" && (a = n.width / n.height), e.startCoords = x({}, i), e.startRect = x({}, n), e.ratio = a, e.equalDelta = u;
|
|
2078
|
+
var p = 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 };
|
|
2079
|
+
if (e.xIsPrimaryAxis = !(!r.left && !r.right), e.equalDelta) {
|
|
2080
|
+
var f = (p.left ? 1 : -1) * (p.top ? 1 : -1);
|
|
2081
|
+
e.edgeSign = { x: f, y: f };
|
|
2082
|
+
} else
|
|
2083
|
+
e.edgeSign = { x: p.left ? -1 : 1, y: p.top ? -1 : 1 };
|
|
2084
|
+
if (s !== !1 && x(r, p), l != null && l.length) {
|
|
2085
|
+
var h = new at(t.interaction);
|
|
2086
|
+
h.copyFrom(t.interaction.modification), h.prepareStates(l), e.subModification = h, h.startAll(re({}, t));
|
|
2087
|
+
}
|
|
2088
|
+
}, set: function(t) {
|
|
2089
|
+
var e = t.state, n = t.rect, r = t.coords, i = e.linkedEdges, o = x({}, r), a = e.equalDelta ? ur : pr;
|
|
2090
|
+
if (x(t.edges, i), a(e, e.xIsPrimaryAxis, r, n), !e.subModification)
|
|
2091
|
+
return null;
|
|
2092
|
+
var s = x({}, n);
|
|
2093
|
+
Se(i, s, { x: r.x - o.x, y: r.y - o.y });
|
|
2094
|
+
var c = e.subModification.setAll(re(re({}, t), {}, { rect: s, edges: i, pageCoords: r, prevCoords: r, prevRect: s })), u = c.delta;
|
|
2095
|
+
return c.changed && (a(e, Math.abs(u.x) > Math.abs(u.y), c.coords, c.rect), x(r, c.coords)), c.eventProps;
|
|
2096
|
+
}, defaults: { ratio: "preserve", equalDelta: !1, modifiers: [], enabled: !1 } };
|
|
2097
|
+
function ur(t, e, n) {
|
|
2098
|
+
var r = t.startCoords, i = t.edgeSign;
|
|
2099
|
+
e ? n.y = r.y + (n.x - r.x) * i.y : n.x = r.x + (n.y - r.y) * i.x;
|
|
2100
|
+
}
|
|
2101
|
+
function pr(t, e, n, r) {
|
|
2102
|
+
var i = t.startRect, o = t.startCoords, a = t.ratio, s = t.edgeSign;
|
|
2103
|
+
if (e) {
|
|
2104
|
+
var c = r.width / a;
|
|
2105
|
+
n.y = o.y + (c - i.height) * s.y;
|
|
2106
|
+
} else {
|
|
2107
|
+
var u = r.height * a;
|
|
2108
|
+
n.x = o.x + (u - i.width) * s.x;
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
var fr = W(lr, "aspectRatio"), vn = function() {
|
|
2112
|
+
};
|
|
2113
|
+
vn._defaults = {};
|
|
2114
|
+
var Ce = vn;
|
|
2115
|
+
function Q(t, e, n) {
|
|
2116
|
+
return d.func(t) ? ae(t, e.interactable, e.element, [n.x, n.y, e]) : ae(t, e.interactable, e.element);
|
|
2117
|
+
}
|
|
2118
|
+
var Re = { start: function(t) {
|
|
2119
|
+
var e = t.rect, n = t.startOffset, r = t.state, i = t.interaction, o = t.pageCoords, a = r.options, s = a.elementRect, c = x({ left: 0, top: 0, right: 0, bottom: 0 }, a.offset || {});
|
|
2120
|
+
if (e && s) {
|
|
2121
|
+
var u = Q(a.restriction, i, o);
|
|
2122
|
+
if (u) {
|
|
2123
|
+
var l = u.right - u.left - e.width, p = u.bottom - u.top - e.height;
|
|
2124
|
+
l < 0 && (c.left += l, c.right += l), p < 0 && (c.top += p, c.bottom += p);
|
|
2125
|
+
}
|
|
2126
|
+
c.left += n.left - e.width * s.left, c.top += n.top - e.height * s.top, c.right += n.right - e.width * (1 - s.right), c.bottom += n.bottom - e.height * (1 - s.bottom);
|
|
2127
|
+
}
|
|
2128
|
+
r.offset = c;
|
|
2129
|
+
}, set: function(t) {
|
|
2130
|
+
var e = t.coords, n = t.interaction, r = t.state, i = r.options, o = r.offset, a = Q(i.restriction, n, e);
|
|
2131
|
+
if (a) {
|
|
2132
|
+
var s = function(c) {
|
|
2133
|
+
return !c || "left" in c && "top" in c || ((c = x({}, c)).left = c.x || 0, c.top = c.y || 0, c.right = c.right || c.left + c.width, c.bottom = c.bottom || c.top + c.height), c;
|
|
2134
|
+
}(a);
|
|
2135
|
+
e.x = Math.max(Math.min(s.right - o.right, e.x), s.left + o.left), e.y = Math.max(Math.min(s.bottom - o.bottom, e.y), s.top + o.top);
|
|
2136
|
+
}
|
|
2137
|
+
}, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } }, dr = W(Re, "restrict"), hn = { top: 1 / 0, left: 1 / 0, bottom: -1 / 0, right: -1 / 0 }, gn = { top: -1 / 0, left: -1 / 0, bottom: 1 / 0, right: 1 / 0 };
|
|
2138
|
+
function mn(t, e) {
|
|
2139
|
+
for (var n = 0, r = ["top", "left", "bottom", "right"]; n < r.length; n++) {
|
|
2140
|
+
var i = r[n];
|
|
2141
|
+
i in t || (t[i] = e[i]);
|
|
2142
|
+
}
|
|
2143
|
+
return t;
|
|
2144
|
+
}
|
|
2145
|
+
var he = { noInner: hn, noOuter: gn, start: function(t) {
|
|
2146
|
+
var e, n = t.interaction, r = t.startOffset, i = t.state, o = i.options;
|
|
2147
|
+
o && (e = Te(Q(o.offset, n, n.coords.start.page))), e = e || { x: 0, y: 0 }, i.offset = { top: e.y + r.top, left: e.x + r.left, bottom: e.y - r.bottom, right: e.x - r.right };
|
|
2148
|
+
}, set: function(t) {
|
|
2149
|
+
var e = t.coords, n = t.edges, r = t.interaction, i = t.state, o = i.offset, a = i.options;
|
|
2150
|
+
if (n) {
|
|
2151
|
+
var s = x({}, e), c = Q(a.inner, r, s) || {}, u = Q(a.outer, r, s) || {};
|
|
2152
|
+
mn(c, hn), mn(u, gn), n.top ? e.y = Math.min(Math.max(u.top + o.top, s.y), c.top + o.top) : n.bottom && (e.y = Math.max(Math.min(u.bottom + o.bottom, s.y), c.bottom + o.bottom)), n.left ? e.x = Math.min(Math.max(u.left + o.left, s.x), c.left + o.left) : n.right && (e.x = Math.max(Math.min(u.right + o.right, s.x), c.right + o.right));
|
|
2153
|
+
}
|
|
2154
|
+
}, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } }, vr = W(he, "restrictEdges"), hr = x({ get elementRect() {
|
|
2155
|
+
return { top: 0, left: 0, bottom: 1, right: 1 };
|
|
2156
|
+
}, set elementRect(t) {
|
|
2157
|
+
} }, Re.defaults), gr = W({ start: Re.start, set: Re.set, defaults: hr }, "restrictRect"), mr = { width: -1 / 0, height: -1 / 0 }, yr = { width: 1 / 0, height: 1 / 0 }, br = W({ start: function(t) {
|
|
2158
|
+
return he.start(t);
|
|
2159
|
+
}, set: function(t) {
|
|
2160
|
+
var e = t.interaction, n = t.state, r = t.rect, i = t.edges, o = n.options;
|
|
2161
|
+
if (i) {
|
|
2162
|
+
var a = Ne(Q(o.min, e, t.coords)) || mr, s = Ne(Q(o.max, e, t.coords)) || yr;
|
|
2163
|
+
n.options = { endOnly: o.endOnly, inner: x({}, he.noInner), outer: x({}, he.noOuter) }, i.top ? (n.options.inner.top = r.bottom - a.height, n.options.outer.top = r.bottom - s.height) : i.bottom && (n.options.inner.bottom = r.top + a.height, n.options.outer.bottom = r.top + s.height), i.left ? (n.options.inner.left = r.right - a.width, n.options.outer.left = r.right - s.width) : i.right && (n.options.inner.right = r.left + a.width, n.options.outer.right = r.left + s.width), he.set(t), n.options = o;
|
|
2164
|
+
}
|
|
2165
|
+
}, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"), ft = { start: function(t) {
|
|
2166
|
+
var e, n = t.interaction, r = t.interactable, i = t.element, o = t.rect, a = t.state, s = t.startOffset, c = a.options, u = c.offsetWithOrigin ? function(f) {
|
|
2167
|
+
var h = f.interaction.element, v = Te(ae(f.state.options.origin, null, null, [h])), g = v || se(f.interactable, h, f.interaction.prepared.name);
|
|
2168
|
+
return g;
|
|
2169
|
+
}(t) : { x: 0, y: 0 };
|
|
2170
|
+
if (c.offset === "startCoords")
|
|
2171
|
+
e = { x: n.coords.start.page.x, y: n.coords.start.page.y };
|
|
2172
|
+
else {
|
|
2173
|
+
var l = ae(c.offset, r, i, [n]);
|
|
2174
|
+
(e = Te(l) || { x: 0, y: 0 }).x += u.x, e.y += u.y;
|
|
2175
|
+
}
|
|
2176
|
+
var p = c.relativePoints;
|
|
2177
|
+
a.offsets = o && p && p.length ? p.map(function(f, h) {
|
|
2178
|
+
return { index: h, relativePoint: f, x: s.left - o.width * f.x + e.x, y: s.top - o.height * f.y + e.y };
|
|
2179
|
+
}) : [{ index: 0, relativePoint: null, x: e.x, y: e.y }];
|
|
2180
|
+
}, set: function(t) {
|
|
2181
|
+
var e = t.interaction, n = t.coords, r = t.state, i = r.options, o = r.offsets, a = se(e.interactable, e.element, e.prepared.name), s = x({}, n), c = [];
|
|
2182
|
+
i.offsetWithOrigin || (s.x -= a.x, s.y -= a.y);
|
|
2183
|
+
for (var u = 0, l = o; u < l.length; u++)
|
|
2184
|
+
for (var p = l[u], f = s.x - p.x, h = s.y - p.y, v = 0, g = i.targets.length; v < g; v++) {
|
|
2185
|
+
var y = i.targets[v], m = void 0;
|
|
2186
|
+
(m = d.func(y) ? y(f, h, e._proxy, p, v) : y) && c.push({ x: (d.number(m.x) ? m.x : f) + p.x, y: (d.number(m.y) ? m.y : h) + p.y, range: d.number(m.range) ? m.range : i.range, source: y, index: v, offset: p });
|
|
2187
|
+
}
|
|
2188
|
+
for (var b = { target: null, inRange: !1, distance: 0, range: 0, delta: { x: 0, y: 0 } }, T = 0; T < c.length; T++) {
|
|
2189
|
+
var _ = c[T], w = _.range, S = _.x - s.x, M = _.y - s.y, P = ce(S, M), z = P <= w;
|
|
2190
|
+
w === 1 / 0 && b.inRange && b.range !== 1 / 0 && (z = !1), b.target && !(z ? b.inRange && w !== 1 / 0 ? P / w < b.distance / b.range : w === 1 / 0 && b.range !== 1 / 0 || P < b.distance : !b.inRange && P < b.distance) || (b.target = _, b.distance = P, b.range = w, b.inRange = z, b.delta.x = S, b.delta.y = M);
|
|
2191
|
+
}
|
|
2192
|
+
return b.inRange && (n.x = b.target.x, n.y = b.target.y), r.closest = b, b;
|
|
2193
|
+
}, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, xr = W(ft, "snap"), je = { start: function(t) {
|
|
2194
|
+
var e = t.state, n = t.edges, r = e.options;
|
|
2195
|
+
if (!n)
|
|
2196
|
+
return null;
|
|
2197
|
+
t.state = { options: { targets: null, relativePoints: [{ x: n.left ? 0 : 1, y: n.top ? 0 : 1 }], offset: r.offset || "self", origin: { x: 0, y: 0 }, range: r.range } }, e.targetFields = e.targetFields || [["width", "height"], ["x", "y"]], ft.start(t), e.offsets = t.state.offsets, t.state = e;
|
|
2198
|
+
}, set: function(t) {
|
|
2199
|
+
var e = t.interaction, n = t.state, r = t.coords, i = n.options, o = n.offsets, a = { x: r.x - o[0].x, y: r.y - o[0].y };
|
|
2200
|
+
n.options = x({}, i), n.options.targets = [];
|
|
2201
|
+
for (var s = 0, c = i.targets || []; s < c.length; s++) {
|
|
2202
|
+
var u = c[s], l = void 0;
|
|
2203
|
+
if (l = d.func(u) ? u(a.x, a.y, e) : u) {
|
|
2204
|
+
for (var p = 0, f = n.targetFields; p < f.length; p++) {
|
|
2205
|
+
var h = f[p], v = h[0], g = h[1];
|
|
2206
|
+
if (v in l || g in l) {
|
|
2207
|
+
l.x = l[v], l.y = l[g];
|
|
2208
|
+
break;
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
n.options.targets.push(l);
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
var y = ft.set(t);
|
|
2215
|
+
return n.options = i, y;
|
|
2216
|
+
}, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } }, wr = W(je, "snapSize"), dt = { aspectRatio: fr, restrictEdges: vr, restrict: dr, restrictRect: gr, restrictSize: br, snapEdges: W({ start: function(t) {
|
|
2217
|
+
var e = t.edges;
|
|
2218
|
+
return e ? (t.state.targetFields = t.state.targetFields || [[e.left ? "left" : "right", e.top ? "top" : "bottom"]], je.start(t)) : null;
|
|
2219
|
+
}, set: je.set, defaults: x(ne(je.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap: xr, snapSize: wr, spring: Ce, avoid: Ce, transform: Ce, rubberband: Ce }, Er = { id: "modifiers", install: function(t) {
|
|
2220
|
+
var e = t.interactStatic;
|
|
2221
|
+
for (var n in t.usePlugin(Qt), t.usePlugin(cr), e.modifiers = dt, dt) {
|
|
2222
|
+
var r = dt[n], i = r._defaults, o = r._methods;
|
|
2223
|
+
i._methods = o, t.defaults.perAction[n] = i;
|
|
2224
|
+
}
|
|
2225
|
+
} }, Tr = Er, yn = function(t) {
|
|
2226
|
+
ie(n, t);
|
|
2227
|
+
var e = oe(n);
|
|
2228
|
+
function n(r, i, o, a, s, c) {
|
|
2229
|
+
var u;
|
|
2230
|
+
if (k(this, n), _e(be(u = e.call(this, s)), o), o !== i && _e(be(u), i), u.timeStamp = c, u.originalEvent = o, u.type = r, u.pointerId = le(i), u.pointerType = Ct(i), u.target = a, u.currentTarget = null, r === "tap") {
|
|
2231
|
+
var l = s.getPointerIndex(i);
|
|
2232
|
+
u.dt = u.timeStamp - s.pointers[l].downTime;
|
|
2233
|
+
var p = u.timeStamp - s.tapTime;
|
|
2234
|
+
u.double = !!s.prevTap && s.prevTap.type !== "doubletap" && s.prevTap.target === u.target && p < 500;
|
|
2235
|
+
} else
|
|
2236
|
+
r === "doubletap" && (u.dt = i.timeStamp - s.tapTime, u.double = !0);
|
|
2237
|
+
return u;
|
|
2238
|
+
}
|
|
2239
|
+
return D(n, [{ key: "_subtractOrigin", value: function(r) {
|
|
2240
|
+
var i = r.x, o = r.y;
|
|
2241
|
+
return this.pageX -= i, this.pageY -= o, this.clientX -= i, this.clientY -= o, this;
|
|
2242
|
+
} }, { key: "_addOrigin", value: function(r) {
|
|
2243
|
+
var i = r.x, o = r.y;
|
|
2244
|
+
return this.pageX += i, this.pageY += o, this.clientX += i, this.clientY += o, this;
|
|
2245
|
+
} }, { key: "preventDefault", value: function() {
|
|
2246
|
+
this.originalEvent.preventDefault();
|
|
2247
|
+
} }]), n;
|
|
2248
|
+
}(ke), ge = { id: "pointer-events/base", before: ["inertia", "modifiers", "auto-start", "actions"], install: function(t) {
|
|
2249
|
+
t.pointerEvents = ge, t.defaults.actions.pointerEvents = ge.defaults, x(t.actions.phaselessTypes, ge.types);
|
|
2250
|
+
}, listeners: { "interactions:new": function(t) {
|
|
2251
|
+
var e = t.interaction;
|
|
2252
|
+
e.prevTap = null, e.tapTime = 0;
|
|
2253
|
+
}, "interactions:update-pointer": function(t) {
|
|
2254
|
+
var e = t.down, n = t.pointerInfo;
|
|
2255
|
+
!e && n.hold || (n.hold = { duration: 1 / 0, timeout: null });
|
|
2256
|
+
}, "interactions:move": function(t, e) {
|
|
2257
|
+
var n = t.interaction, r = t.pointer, i = t.event, o = t.eventTarget;
|
|
2258
|
+
t.duplicate || n.pointerIsDown && !n.pointerWasMoved || (n.pointerIsDown && vt(t), N({ interaction: n, pointer: r, event: i, eventTarget: o, type: "move" }, e));
|
|
2259
|
+
}, "interactions:down": function(t, e) {
|
|
2260
|
+
(function(n, r) {
|
|
2261
|
+
for (var i = n.interaction, o = n.pointer, a = n.event, s = n.eventTarget, c = n.pointerIndex, u = i.pointers[c].hold, l = Pt(s), p = { interaction: i, pointer: o, event: a, eventTarget: s, type: "hold", targets: [], path: l, node: null }, f = 0; f < l.length; f++) {
|
|
2262
|
+
var h = l[f];
|
|
2263
|
+
p.node = h, r.fire("pointerEvents:collect-targets", p);
|
|
2264
|
+
}
|
|
2265
|
+
if (p.targets.length) {
|
|
2266
|
+
for (var v = 1 / 0, g = 0, y = p.targets; g < y.length; g++) {
|
|
2267
|
+
var m = y[g].eventable.options.holdDuration;
|
|
2268
|
+
m < v && (v = m);
|
|
2269
|
+
}
|
|
2270
|
+
u.duration = v, u.timeout = setTimeout(function() {
|
|
2271
|
+
N({ interaction: i, eventTarget: s, pointer: o, event: a, type: "hold" }, r);
|
|
2272
|
+
}, v);
|
|
2273
|
+
}
|
|
2274
|
+
})(t, e), N(t, e);
|
|
2275
|
+
}, "interactions:up": function(t, e) {
|
|
2276
|
+
vt(t), N(t, e), function(n, r) {
|
|
2277
|
+
var i = n.interaction, o = n.pointer, a = n.event, s = n.eventTarget;
|
|
2278
|
+
i.pointerWasMoved || N({ interaction: i, eventTarget: s, pointer: o, event: a, type: "tap" }, r);
|
|
2279
|
+
}(t, e);
|
|
2280
|
+
}, "interactions:cancel": function(t, e) {
|
|
2281
|
+
vt(t), N(t, e);
|
|
2282
|
+
} }, PointerEvent: yn, fire: N, collectEventTargets: bn, 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 } };
|
|
2283
|
+
function N(t, e) {
|
|
2284
|
+
var n = t.interaction, r = t.pointer, i = t.event, o = t.eventTarget, a = t.type, s = t.targets, c = s === void 0 ? bn(t, e) : s, u = new yn(a, r, i, o, n, e.now());
|
|
2285
|
+
e.fire("pointerEvents:new", { pointerEvent: u });
|
|
2286
|
+
for (var l = { interaction: n, pointer: r, event: i, eventTarget: o, targets: c, type: a, pointerEvent: u }, p = 0; p < c.length; p++) {
|
|
2287
|
+
var f = c[p];
|
|
2288
|
+
for (var h in f.props || {})
|
|
2289
|
+
u[h] = f.props[h];
|
|
2290
|
+
var v = se(f.eventable, f.node);
|
|
2291
|
+
if (u._subtractOrigin(v), u.eventable = f.eventable, u.currentTarget = f.node, f.eventable.fire(u), u._addOrigin(v), u.immediatePropagationStopped || u.propagationStopped && p + 1 < c.length && c[p + 1].node !== u.currentTarget)
|
|
2292
|
+
break;
|
|
2293
|
+
}
|
|
2294
|
+
if (e.fire("pointerEvents:fired", l), a === "tap") {
|
|
2295
|
+
var g = u.double ? N({ interaction: n, pointer: r, event: i, eventTarget: o, type: "doubletap" }, e) : u;
|
|
2296
|
+
n.prevTap = g, n.tapTime = g.timeStamp;
|
|
2297
|
+
}
|
|
2298
|
+
return u;
|
|
2299
|
+
}
|
|
2300
|
+
function bn(t, e) {
|
|
2301
|
+
var n = t.interaction, r = t.pointer, i = t.event, o = t.eventTarget, a = t.type, s = n.getPointerIndex(r), c = n.pointers[s];
|
|
2302
|
+
if (a === "tap" && (n.pointerWasMoved || !c || c.downTarget !== o))
|
|
2303
|
+
return [];
|
|
2304
|
+
for (var u = Pt(o), l = { interaction: n, pointer: r, event: i, eventTarget: o, type: a, path: u, targets: [], node: null }, p = 0; p < u.length; p++) {
|
|
2305
|
+
var f = u[p];
|
|
2306
|
+
l.node = f, e.fire("pointerEvents:collect-targets", l);
|
|
2307
|
+
}
|
|
2308
|
+
return a === "hold" && (l.targets = l.targets.filter(function(h) {
|
|
2309
|
+
var v, g;
|
|
2310
|
+
return h.eventable.options.holdDuration === ((v = n.pointers[s]) == null || (g = v.hold) == null ? void 0 : g.duration);
|
|
2311
|
+
})), l.targets;
|
|
2312
|
+
}
|
|
2313
|
+
function vt(t) {
|
|
2314
|
+
var e = t.interaction, n = t.pointerIndex, r = e.pointers[n].hold;
|
|
2315
|
+
r && r.timeout && (clearTimeout(r.timeout), r.timeout = null);
|
|
2316
|
+
}
|
|
2317
|
+
var Sr = Object.freeze({ __proto__: null, default: ge });
|
|
2318
|
+
function _r(t) {
|
|
2319
|
+
var e = t.interaction;
|
|
2320
|
+
e.holdIntervalHandle && (clearInterval(e.holdIntervalHandle), e.holdIntervalHandle = null);
|
|
2321
|
+
}
|
|
2322
|
+
var Pr = { id: "pointer-events/holdRepeat", install: function(t) {
|
|
2323
|
+
t.usePlugin(ge);
|
|
2324
|
+
var e = t.pointerEvents;
|
|
2325
|
+
e.defaults.holdRepeatInterval = 0, e.types.holdrepeat = t.actions.phaselessTypes.holdrepeat = !0;
|
|
2326
|
+
}, listeners: ["move", "up", "cancel", "endall"].reduce(function(t, e) {
|
|
2327
|
+
return t["pointerEvents:".concat(e)] = _r, t;
|
|
2328
|
+
}, { "pointerEvents:new": function(t) {
|
|
2329
|
+
var e = t.pointerEvent;
|
|
2330
|
+
e.type === "hold" && (e.count = (e.count || 0) + 1);
|
|
2331
|
+
}, "pointerEvents:fired": function(t, e) {
|
|
2332
|
+
var n = t.interaction, r = t.pointerEvent, i = t.eventTarget, o = t.targets;
|
|
2333
|
+
if (r.type === "hold" && o.length) {
|
|
2334
|
+
var a = o[0].eventable.options.holdRepeatInterval;
|
|
2335
|
+
a <= 0 || (n.holdIntervalHandle = setTimeout(function() {
|
|
2336
|
+
e.pointerEvents.fire({ interaction: n, eventTarget: i, type: "hold", pointer: r, event: r }, e);
|
|
2337
|
+
}, a));
|
|
2338
|
+
}
|
|
2339
|
+
} }) }, Or = Pr, kr = { id: "pointer-events/interactableTargets", install: function(t) {
|
|
2340
|
+
var e = t.Interactable;
|
|
2341
|
+
e.prototype.pointerEvents = function(r) {
|
|
2342
|
+
return x(this.events.options, r), this;
|
|
2343
|
+
};
|
|
2344
|
+
var n = e.prototype._backCompatOption;
|
|
2345
|
+
e.prototype._backCompatOption = function(r, i) {
|
|
2346
|
+
var o = n.call(this, r, i);
|
|
2347
|
+
return o === this && (this.events.options[r] = i), o;
|
|
2348
|
+
};
|
|
2349
|
+
}, listeners: { "pointerEvents:collect-targets": function(t, e) {
|
|
2350
|
+
var n = t.targets, r = t.node, i = t.type, o = t.eventTarget;
|
|
2351
|
+
e.interactables.forEachMatch(r, function(a) {
|
|
2352
|
+
var s = a.events, c = s.options;
|
|
2353
|
+
s.types[i] && s.types[i].length && a.testIgnoreAllow(c, r, o) && n.push({ node: r, eventable: s, props: { interactable: a } });
|
|
2354
|
+
});
|
|
2355
|
+
}, "interactable:new": function(t) {
|
|
2356
|
+
var e = t.interactable;
|
|
2357
|
+
e.events.getRect = function(n) {
|
|
2358
|
+
return e.getRect(n);
|
|
2359
|
+
};
|
|
2360
|
+
}, "interactable:set": function(t, e) {
|
|
2361
|
+
var n = t.interactable, r = t.options;
|
|
2362
|
+
x(n.events.options, e.pointerEvents.defaults), x(n.events.options, r.pointerEvents || {});
|
|
2363
|
+
} } }, Dr = kr, Ir = { id: "pointer-events", install: function(t) {
|
|
2364
|
+
t.usePlugin(Sr), t.usePlugin(Or), t.usePlugin(Dr);
|
|
2365
|
+
} }, Mr = Ir, zr = { id: "reflow", install: function(t) {
|
|
2366
|
+
var e = t.Interactable;
|
|
2367
|
+
t.actions.phases.reflow = !0, e.prototype.reflow = function(n) {
|
|
2368
|
+
return function(r, i, o) {
|
|
2369
|
+
for (var a = r.getAllElements(), s = o.window.Promise, c = s ? [] : null, u = function() {
|
|
2370
|
+
var p = a[l], f = r.getRect(p);
|
|
2371
|
+
if (!f)
|
|
2372
|
+
return 1;
|
|
2373
|
+
var h, v = pe(o.interactions.list, function(m) {
|
|
2374
|
+
return m.interacting() && m.interactable === r && m.element === p && m.prepared.name === i.name;
|
|
2375
|
+
});
|
|
2376
|
+
if (v)
|
|
2377
|
+
v.move(), c && (h = v._reflowPromise || new s(function(m) {
|
|
2378
|
+
v._reflowResolve = m;
|
|
2379
|
+
}));
|
|
2380
|
+
else {
|
|
2381
|
+
var g = Ne(f), y = function(m) {
|
|
2382
|
+
return { coords: m, get page() {
|
|
2383
|
+
return this.coords.page;
|
|
2384
|
+
}, get client() {
|
|
2385
|
+
return this.coords.client;
|
|
2386
|
+
}, get timeStamp() {
|
|
2387
|
+
return this.coords.timeStamp;
|
|
2388
|
+
}, get pageX() {
|
|
2389
|
+
return this.coords.page.x;
|
|
2390
|
+
}, get pageY() {
|
|
2391
|
+
return this.coords.page.y;
|
|
2392
|
+
}, get clientX() {
|
|
2393
|
+
return this.coords.client.x;
|
|
2394
|
+
}, get clientY() {
|
|
2395
|
+
return this.coords.client.y;
|
|
2396
|
+
}, get pointerId() {
|
|
2397
|
+
return this.coords.pointerId;
|
|
2398
|
+
}, get target() {
|
|
2399
|
+
return this.coords.target;
|
|
2400
|
+
}, get type() {
|
|
2401
|
+
return this.coords.type;
|
|
2402
|
+
}, get pointerType() {
|
|
2403
|
+
return this.coords.pointerType;
|
|
2404
|
+
}, get buttons() {
|
|
2405
|
+
return this.coords.buttons;
|
|
2406
|
+
}, preventDefault: function() {
|
|
2407
|
+
} };
|
|
2408
|
+
}({ page: { x: g.x, y: g.y }, client: { x: g.x, y: g.y }, timeStamp: o.now() });
|
|
2409
|
+
h = function(m, b, T, _, w) {
|
|
2410
|
+
var S = m.interactions.new({ pointerType: "reflow" }), M = { interaction: S, event: w, pointer: w, eventTarget: T, phase: "reflow" };
|
|
2411
|
+
S.interactable = b, S.element = T, S.prevEvent = w, S.updatePointer(w, w, T, !0), It(S.coords.delta), nt(S.prepared, _), S._doPhase(M);
|
|
2412
|
+
var P = m.window, z = P.Promise, j = z ? new z(function(q) {
|
|
2413
|
+
S._reflowResolve = q;
|
|
2414
|
+
}) : void 0;
|
|
2415
|
+
return S._reflowPromise = j, S.start(_, b, T), S._interacting ? (S.move(M), S.end(w)) : (S.stop(), S._reflowResolve()), S.removePointer(w, w), j;
|
|
2416
|
+
}(o, r, p, i, y);
|
|
2417
|
+
}
|
|
2418
|
+
c && c.push(h);
|
|
2419
|
+
}, l = 0; l < a.length && !u(); l++)
|
|
2420
|
+
;
|
|
2421
|
+
return c && s.all(c).then(function() {
|
|
2422
|
+
return r;
|
|
2423
|
+
});
|
|
2424
|
+
}(this, n, t);
|
|
2425
|
+
};
|
|
2426
|
+
}, listeners: { "interactions:stop": function(t, e) {
|
|
2427
|
+
var n = t.interaction;
|
|
2428
|
+
n.pointerType === "reflow" && (n._reflowResolve && n._reflowResolve(), function(r, i) {
|
|
2429
|
+
r.splice(r.indexOf(i), 1);
|
|
2430
|
+
}(e.interactions.list, n));
|
|
2431
|
+
} } }, Ar = zr;
|
|
2432
|
+
if (I.use(Jt), I.use(rn), I.use(Mr), I.use($n), I.use(Tr), I.use(Xn), I.use(On), I.use(Dn), I.use(Ar), I.default = I, Z(ye) === "object" && ye)
|
|
2433
|
+
try {
|
|
2434
|
+
ye.exports = I;
|
|
2435
|
+
} catch {
|
|
2436
|
+
}
|
|
2437
|
+
return I.default = I, I;
|
|
2438
|
+
});
|
|
2439
|
+
})(Xe, Xe.exports);
|
|
2440
|
+
var jr = Xe.exports;
|
|
2441
|
+
const Lr = /* @__PURE__ */ Cr(jr);
|
|
2442
|
+
export {
|
|
2443
|
+
Lr as default
|
|
2444
|
+
};
|