@gct-paas/core-web 0.0.1-dev.16 → 0.0.1-dev.17

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.
Files changed (81) hide show
  1. package/dist/core-web.css +1 -1
  2. package/dist/index.min.cjs +12 -3
  3. package/dist/index.system.min.js +12 -3
  4. package/es/_virtual/_commonjsHelpers.mjs +40 -0
  5. package/es/_virtual/node.mjs +7 -0
  6. package/es/_virtual/node2.mjs +3 -0
  7. package/es/editor/gct-form-color/gct-form-color.d.ts +1 -33
  8. package/es/editor/gct-form-color/gct-form-color.mjs +14 -5
  9. package/es/editor/gct-form-color/index.d.ts +3 -0
  10. package/es/editor/gct-form-color/index.mjs +7 -2
  11. package/es/editor/gct-form-number/index.d.ts +3 -0
  12. package/es/editor/gct-form-number/index.mjs +7 -2
  13. package/es/editor/index.mjs +4 -2
  14. package/es/index.d.ts +0 -1
  15. package/es/index.mjs +1 -1
  16. package/es/node_modules/.pnpm/@aesoper_normal-utils@0.1.5/node_modules/@aesoper/normal-utils/NormalUtils.es.mjs +3 -0
  17. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/createPopper.mjs +200 -0
  18. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/contains.mjs +26 -0
  19. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.mjs +44 -0
  20. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.mjs +72 -0
  21. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.mjs +60 -0
  22. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.mjs +7 -0
  23. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.mjs +9 -0
  24. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.mjs +32 -0
  25. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.mjs +8 -0
  26. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.mjs +28 -0
  27. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeName.mjs +5 -0
  28. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.mjs +14 -0
  29. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.mjs +71 -0
  30. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getParentNode.mjs +22 -0
  31. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.mjs +19 -0
  32. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.mjs +34 -0
  33. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindow.mjs +14 -0
  34. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.mjs +13 -0
  35. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.mjs +16 -0
  36. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/instanceOf.mjs +23 -0
  37. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.mjs +7 -0
  38. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.mjs +13 -0
  39. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isTableElement.mjs +7 -0
  40. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.mjs +29 -0
  41. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/enums.mjs +33 -0
  42. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/index.mjs +5 -0
  43. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/applyStyles.mjs +87 -0
  44. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/arrow.mjs +92 -0
  45. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/computeStyles.mjs +171 -0
  46. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/eventListeners.mjs +51 -0
  47. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/flip.mjs +149 -0
  48. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/hide.mjs +63 -0
  49. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/index.mjs +9 -0
  50. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/offset.mjs +56 -0
  51. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/popperOffsets.mjs +27 -0
  52. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/preventOverflow.mjs +144 -0
  53. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper-lite.mjs +12 -0
  54. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper.mjs +19 -0
  55. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.mjs +46 -0
  56. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeOffsets.mjs +73 -0
  57. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/debounce.mjs +17 -0
  58. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/detectOverflow.mjs +67 -0
  59. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/expandToHashMap.mjs +8 -0
  60. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getAltAxis.mjs +5 -0
  61. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getBasePlacement.mjs +7 -0
  62. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getFreshSideObject.mjs +10 -0
  63. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.mjs +5 -0
  64. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositePlacement.mjs +13 -0
  65. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.mjs +11 -0
  66. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getVariation.mjs +5 -0
  67. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/math.mjs +5 -0
  68. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergeByName.mjs +16 -0
  69. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergePaddingObject.mjs +7 -0
  70. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/orderModifiers.mjs +46 -0
  71. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/rectToClientRect.mjs +10 -0
  72. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/userAgent.mjs +13 -0
  73. package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/within.mjs +11 -0
  74. package/es/node_modules/.pnpm/@vueuse_core@10.11.1_vue@3.5.13_typescript@5.8.2_/node_modules/@vueuse/core/index.mjs +7487 -0
  75. package/es/node_modules/.pnpm/@vueuse_shared@10.11.1_vue@3.5.13_typescript@5.8.2_/node_modules/@vueuse/shared/index.mjs +1576 -0
  76. package/es/node_modules/.pnpm/gradient-parser@1.0.2/node_modules/gradient-parser/build/node.mjs +528 -0
  77. package/es/node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.mjs +1180 -0
  78. package/es/node_modules/.pnpm/vue-demi@0.14.10_vue@3.5.13_typescript@5.8.2_/node_modules/vue-demi/lib/index.mjs +29 -0
  79. package/es/node_modules/.pnpm/vue-types@3.0.2_vue@3.5.13_typescript@5.8.2_/node_modules/vue-types/dist/vue-types.m.mjs +3 -0
  80. package/es/node_modules/.pnpm/vue3-colorpicker@2.3.0_@aesoper_normal-utils@0.1.5_@popperjs_core@2.11.8_@vueuse_core@10.11.1_67dx55qyw5ulzyggoxgyarn5m4/node_modules/vue3-colorpicker/index.es.mjs +1815 -0
  81. package/package.json +7 -6
@@ -0,0 +1,40 @@
1
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
+
3
+ function getDefaultExportFromCjs (x) {
4
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
+ }
6
+
7
+ function getDefaultExportFromNamespaceIfPresent (n) {
8
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
9
+ }
10
+
11
+ function getDefaultExportFromNamespaceIfNotNamed (n) {
12
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
13
+ }
14
+
15
+ function getAugmentedNamespace(n) {
16
+ if (n.__esModule) return n;
17
+ var f = n.default;
18
+ if (typeof f == "function") {
19
+ var a = function a () {
20
+ if (this instanceof a) {
21
+ return Reflect.construct(f, arguments, this.constructor);
22
+ }
23
+ return f.apply(this, arguments);
24
+ };
25
+ a.prototype = f.prototype;
26
+ } else a = {};
27
+ Object.defineProperty(a, '__esModule', {value: true});
28
+ Object.keys(n).forEach(function (k) {
29
+ var d = Object.getOwnPropertyDescriptor(n, k);
30
+ Object.defineProperty(a, k, d.get ? d : {
31
+ enumerable: true,
32
+ get: function () {
33
+ return n[k];
34
+ }
35
+ });
36
+ });
37
+ return a;
38
+ }
39
+
40
+ export { commonjsGlobal, getAugmentedNamespace, getDefaultExportFromCjs, getDefaultExportFromNamespaceIfNotNamed, getDefaultExportFromNamespaceIfPresent };
@@ -0,0 +1,7 @@
1
+ import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
+ import { __require as requireNode } from '../node_modules/.pnpm/gradient-parser@1.0.2/node_modules/gradient-parser/build/node.mjs';
3
+
4
+ var nodeExports = requireNode();
5
+ var node = /*@__PURE__*/getDefaultExportFromCjs(nodeExports);
6
+
7
+ export { node as default, nodeExports as n };
@@ -0,0 +1,3 @@
1
+ var node = {};
2
+
3
+ export { node as __exports };
@@ -1,37 +1,5 @@
1
- import { PropType } from 'vue';
2
- import { ColorEditorController, IColorEditor, IFormItem } from '@gct-paas/core';
3
1
  /**
4
2
  * 颜色选择编辑器
5
3
  */
6
- export declare const GctFormColor: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
- itemModel: {
8
- type: PropType<IFormItem>;
9
- required: true;
10
- };
11
- model: {
12
- type: PropType<IColorEditor>;
13
- required: true;
14
- };
15
- value: {
16
- type: StringConstructor;
17
- };
18
- }>, {
19
- ns: import('@gct-paas/core').Namespace;
20
- c: ColorEditorController;
21
- val: import('vue').WritableComputedRef<any, any>;
22
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
- itemModel: {
24
- type: PropType<IFormItem>;
25
- required: true;
26
- };
27
- model: {
28
- type: PropType<IColorEditor>;
29
- required: true;
30
- };
31
- value: {
32
- type: StringConstructor;
33
- };
34
- }>> & Readonly<{
35
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
36
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
+ export declare const GctFormColor: any;
37
5
  export default GctFormColor;
@@ -1,10 +1,15 @@
1
1
  import { defineComponent, createVNode, resolveComponent, mergeProps } from 'vue';
2
2
  import { useNamespace, ColorEditorController, useGctFormValue } from '@gct-paas/core';
3
+ import { ColorPicker as re } from '../../node_modules/.pnpm/vue3-colorpicker@2.3.0_@aesoper_normal-utils@0.1.5_@popperjs_core@2.11.8_@vueuse_core@10.11.1_67dx55qyw5ulzyggoxgyarn5m4/node_modules/vue3-colorpicker/index.es.mjs';
4
+ import 'vue3-colorpicker/style.css';
3
5
  import './gct-form-color.scss';
4
6
 
5
7
  "use strict";
6
8
  const GctFormColor = /* @__PURE__ */ defineComponent({
7
9
  name: "GctFormColor",
10
+ components: {
11
+ ColorPicker: re
12
+ },
8
13
  inheritAttrs: false,
9
14
  props: {
10
15
  itemModel: {
@@ -31,13 +36,17 @@ const GctFormColor = /* @__PURE__ */ defineComponent({
31
36
  };
32
37
  },
33
38
  render() {
34
- return createVNode(resolveComponent("color-editor"), mergeProps({
35
- "value": this.val,
36
- "onUpdate:value": ($event) => this.val = $event
37
- }, this.model.props || {}, {
39
+ return createVNode(resolveComponent("color-picker"), mergeProps({
40
+ "pureColor": this.val,
41
+ "onUpdate:pureColor": ($event) => this.val = $event,
42
+ "format": "rgba",
43
+ "shape": "circle",
44
+ "use-type": "pure",
45
+ "picker-type": "chrome",
38
46
  "class": [this.ns.b(), this.ns.is("readonly", this.model.readonly)]
39
- }), null);
47
+ }, this.model.props || {}), null);
40
48
  }
49
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
41
50
  });
42
51
 
43
52
  export { GctFormColor, GctFormColor as default };
@@ -2,3 +2,6 @@ declare const _default: {
2
2
  install(app: import('vue').App): void;
3
3
  };
4
4
  export default _default;
5
+ export declare const oldColorCom: {
6
+ install(app: import('vue').App): void;
7
+ };
@@ -1,4 +1,4 @@
1
- import { widthEditorInstall, EditorType } from '@gct-paas/core';
1
+ import { widthEditorInstall, EditorType, EditorTypeOld } from '@gct-paas/core';
2
2
  import { GctFormColor as GctFormColor$1 } from './gct-form-color.mjs';
3
3
  import { GctFormColorProvider } from './gct-form-color.provider.mjs';
4
4
 
@@ -8,5 +8,10 @@ var GctFormColor = widthEditorInstall(
8
8
  () => new GctFormColorProvider(),
9
9
  GctFormColor$1
10
10
  );
11
+ const oldColorCom = widthEditorInstall(
12
+ EditorTypeOld.COLOR,
13
+ () => new GctFormColorProvider(),
14
+ GctFormColor$1
15
+ );
11
16
 
12
- export { GctFormColor as default };
17
+ export { GctFormColor as default, oldColorCom };
@@ -2,3 +2,6 @@ declare const _default: {
2
2
  install(app: import('vue').App): void;
3
3
  };
4
4
  export default _default;
5
+ export declare const oldNumberCom: {
6
+ install(app: import('vue').App): void;
7
+ };
@@ -1,4 +1,4 @@
1
- import { widthEditorInstall, EditorType } from '@gct-paas/core';
1
+ import { widthEditorInstall, EditorType, EditorTypeOld } from '@gct-paas/core';
2
2
  import { GctFormNumberProvider } from './gct-form-number.provider.mjs';
3
3
  import { GctFormNumber as GctFormNumber$1 } from './gct-form-number.mjs';
4
4
 
@@ -8,5 +8,10 @@ var GctFormNumber = widthEditorInstall(
8
8
  () => new GctFormNumberProvider(),
9
9
  GctFormNumber$1
10
10
  );
11
+ const oldNumberCom = widthEditorInstall(
12
+ EditorTypeOld.NUMBER,
13
+ () => new GctFormNumberProvider(),
14
+ GctFormNumber$1
15
+ );
11
16
 
12
- export { GctFormNumber as default };
17
+ export { GctFormNumber as default, oldNumberCom };
@@ -1,9 +1,9 @@
1
1
  import GctFormLengthUnit from './gct-form-length-unit/index.mjs';
2
- import GctFormColor from './gct-form-color/index.mjs';
2
+ import GctFormColor, { oldColorCom } from './gct-form-color/index.mjs';
3
3
  import GctFormCheckSwitch from './gct-form-check-switch/index.mjs';
4
4
  import GctFormI18n from './gct-form-i18n/index.mjs';
5
5
  import GctFormIconSelect from './gct-form-icon-select/index.mjs';
6
- import GctFormNumber from './gct-form-number/index.mjs';
6
+ import GctFormNumber, { oldNumberCom } from './gct-form-number/index.mjs';
7
7
  import GctFormPicker from './gct-form-picker/index.mjs';
8
8
  import GctFormSelect from './gct-form-select/index.mjs';
9
9
  import GctFormSpan from './gct-form-span/index.mjs';
@@ -33,9 +33,11 @@ var Editor = {
33
33
  app.use(GctFormInfo);
34
34
  app.use(GctFormCheckbox);
35
35
  app.use(oldCheckboxCom);
36
+ app.use(oldColorCom);
36
37
  app.use(oldRadioCom);
37
38
  app.use(oldSwitchCom);
38
39
  app.use(oldTextCom);
40
+ app.use(oldNumberCom);
39
41
  }
40
42
  };
41
43
 
package/es/index.d.ts CHANGED
@@ -3,4 +3,3 @@ declare const _default: {
3
3
  install(app: App): void;
4
4
  };
5
5
  export default _default;
6
- export * from './components';
package/es/index.mjs CHANGED
@@ -22,4 +22,4 @@ var index = {
22
22
  }
23
23
  };
24
24
 
25
- export { CodeEditor, FlexContainer, FlexItem, GridContainer, ViewContainer, index as default };
25
+ export { index as default };
@@ -0,0 +1,3 @@
1
+ var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var n=function(t){return t&&t.Math==Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")(),o=function(t){try{return !!t()}catch(t){return !0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,c={f:a&&!u.call({1:2},1)?function(t){var e=a(this,t);return !!e&&e.enumerable}:u},l=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},f={}.toString,s=function(t){return f.call(t).slice(8,-1)},d="".split,v=o((function(){return !Object("z").propertyIsEnumerable(0)}))?function(t){return "String"==s(t)?d.call(t,""):Object(t)}:Object,p=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return v(p(t))},h=function(t){return "object"==typeof t?null!==t:"function"==typeof t},y=function(t,e){if(!h(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!h(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,S=function(t,e){return m.call(t,e)},x=r.document,b=h(x)&&h(x.createElement),E=function(t){return b?x.createElement(t):{}},w=!i&&!o((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,T={f:i?O:function(t,e){if(t=g(t),e=y(e,!0),w)try{return O(t,e)}catch(t){}if(S(t,e))return l(!c.f.call(t,e),t[e])}},A=function(t){if(!h(t))throw TypeError(String(t)+" is not an object");return t},k=Object.defineProperty,R={f:i?k:function(t,e,n){if(A(t),e=y(e,!0),A(n),w)try{return k(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return "value"in n&&(t[e]=n.value),t}},I=i?function(t,e,n){return R.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},j=function(t,e){try{I(r,t,e);}catch(n){r[t]=e;}return e},C=r["__core-js_shared__"]||j("__core-js_shared__",{}),L=Function.toString;"function"!=typeof C.inspectSource&&(C.inspectSource=function(t){return L.call(t)});var P,M,_,D=C.inspectSource,U=r.WeakMap,N="function"==typeof U&&/native code/.test(D(U)),F=e((function(t){(t.exports=function(t,e){return C[t]||(C[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});})),W=0,z=Math.random(),$=function(t){return "Symbol("+String(void 0===t?"":t)+")_"+(++W+z).toString(36)},B=F("keys"),Y=function(t){return B[t]||(B[t]=$(t))},G={},H=r.WeakMap;if(N){var X=C.state||(C.state=new H),V=X.get,K=X.has,q=X.set;P=function(t,e){return e.facade=t,q.call(X,t,e),e},M=function(t){return V.call(X,t)||{}},_=function(t){return K.call(X,t)};}else {var Q=Y("state");G[Q]=!0,P=function(t,e){return e.facade=t,I(t,Q,e),e},M=function(t){return S(t,Q)?t[Q]:{}},_=function(t){return S(t,Q)};}var J={set:P,get:M,has:_,enforce:function(t){return _(t)?M(t):P(t,{})},getterFor:function(t){return function(e){var n;if(!h(e)||(n=M(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},Z=e((function(t){var e=J.get,n=J.enforce,o=String(String).split("String");(t.exports=function(t,e,i,u){var a,c=!!u&&!!u.unsafe,l=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet;"function"==typeof i&&("string"!=typeof e||S(i,"name")||I(i,"name",e),(a=n(i)).source||(a.source=o.join("string"==typeof e?e:""))),t!==r?(c?!f&&t[e]&&(l=!0):delete t[e],l?t[e]=i:I(t,e,i)):l?t[e]=i:j(e,i);})(Function.prototype,"toString",(function(){return "function"==typeof this&&e(this).source||D(this)}));})),tt=r,et=function(t){return "function"==typeof t?t:void 0},nt=function(t,e){return arguments.length<2?et(tt[t])||et(r[t]):tt[t]&&tt[t][e]||r[t]&&r[t][e]},rt=Math.ceil,ot=Math.floor,it=function(t){return isNaN(t=+t)?0:(t>0?ot:rt)(t)},ut=Math.min,at=function(t){return t>0?ut(it(t),9007199254740991):0},ct=Math.max,lt=Math.min,ft=function(t,e){var n=it(t);return n<0?ct(n+e,0):lt(n,e)},st=function(t){return function(e,n,r){var o,i=g(e),u=at(i.length),a=ft(r,u);if(t&&n!=n){for(;u>a;)if((o=i[a++])!=o)return !0}else for(;u>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return !t&&-1}},dt={includes:st(!0),indexOf:st(!1)},vt=dt.indexOf,pt=function(t,e){var n,r=g(t),o=0,i=[];for(n in r)!S(G,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~vt(i,n)||i.push(n));return i},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ht=gt.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return pt(t,ht)}},mt={f:Object.getOwnPropertySymbols},St=nt("Reflect","ownKeys")||function(t){var e=yt.f(A(t)),n=mt.f;return n?e.concat(n(t)):e},xt=function(t,e){for(var n=St(e),r=R.f,o=T.f,i=0;i<n.length;i++){var u=n[i];S(t,u)||r(t,u,o(e,u));}},bt=/#|\.prototype\./,Et=function(t,e){var n=Ot[wt(t)];return n==At||n!=Tt&&("function"==typeof e?o(e):!!e)},wt=Et.normalize=function(t){return String(t).replace(bt,".").toLowerCase()},Ot=Et.data={},Tt=Et.NATIVE="N",At=Et.POLYFILL="P",kt=Et,Rt=T.f,It=function(t,e){var n,o,i,u,a,c=t.target,l=t.global,f=t.stat;if(n=l?r:f?r[c]||j(c,{}):(r[c]||{}).prototype)for(o in e){if(u=e[o],i=t.noTargetGet?(a=Rt(n,o))&&a.value:n[o],!kt(l?o:c+(f?".":"#")+o,t.forced)&&void 0!==i){if(typeof u==typeof i)continue;xt(u,i);}(t.sham||i&&i.sham)&&I(u,"sham",!0),Z(n,o,u,t);}},jt=function(t,e){var n=[][t];return !!n&&o((function(){n.call(null,e||function(){throw 1},1);}))},Ct=Object.defineProperty,Lt={},Pt=function(t){throw t},Mt=function(t,e){if(S(Lt,t))return Lt[t];e||(e={});var n=[][t],r=!!S(e,"ACCESSORS")&&e.ACCESSORS,u=S(e,0)?e[0]:Pt,a=S(e,1)?e[1]:void 0;return Lt[t]=!!n&&!o((function(){if(r&&!i)return !0;var t={length:-1};r?Ct(t,1,{enumerable:!0,get:Pt}):t[1]=1,n.call(t,u,a);}))},_t=dt.indexOf,Dt=[].indexOf,Ut=!!Dt&&1/[1].indexOf(1,-0)<0,Nt=jt("indexOf"),Ft=Mt("indexOf",{ACCESSORS:!0,1:0});function Wt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r);}}function $t(t,e,n){return e&&zt(t.prototype,e),n&&zt(t,n),t}It({target:"Array",proto:!0,forced:Ut||!Nt||!Ft},{indexOf:function(t){return Ut?Dt.apply(this,arguments)||0:_t(this,t,arguments.length>1?arguments[1]:void 0)}});var Bt=function(){function t(){Wt(this,t);}return $t(t,null,[{key:"isInBrowser",value:function(){return "undefined"!=typeof window}},{key:"isServer",value:function(){return "undefined"==typeof window}},{key:"getUA",value:function(){return t.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return /Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return -1!==navigator.userAgent.indexOf("Opera")}},{key:"isIE",value:function(){var e=t.getUA();return ""!==e&&e.indexOf("msie")>0}},{key:"isIE9",value:function(){var e=t.getUA();return ""!==e&&e.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var e=t.getUA();return ""!==e&&e.indexOf("edge/")>0}},{key:"isChrome",value:function(){var e=t.getUA();return ""!==e&&/chrome\/\d+/.test(e)&&!t.isEdge()}},{key:"isPhantomJS",value:function(){var e=t.getUA();return ""!==e&&/phantomjs/.test(e)}},{key:"isFirefox",value:function(){var e=t.getUA();return ""!==e&&/firefox/.test(e)}}]),t}(),Yt=[].join,Gt=v!=Object,Ht=jt("join",",");It({target:"Array",proto:!0,forced:Gt||!Ht},{join:function(t){return Yt.call(g(this),void 0===t?",":t)}});var Xt,Vt,Kt=function(t){return Object(p(t))},qt=Array.isArray||function(t){return "Array"==s(t)},Qt=!!Object.getOwnPropertySymbols&&!o((function(){return !String(Symbol())})),Jt=Qt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Zt=F("wks"),te=r.Symbol,ee=Jt?te:te&&te.withoutSetter||$,ne=function(t){return S(Zt,t)||(Qt&&S(te,t)?Zt[t]=te[t]:Zt[t]=ee("Symbol."+t)),Zt[t]},re=ne("species"),oe=function(t,e){var n;return qt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!qt(n.prototype)?h(n)&&null===(n=n[re])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},ie=function(t,e,n){var r=y(e);r in t?R.f(t,r,l(0,n)):t[r]=n;},ue=nt("navigator","userAgent")||"",ae=r.process,ce=ae&&ae.versions,le=ce&&ce.v8;le?Vt=(Xt=le.split("."))[0]+Xt[1]:ue&&(!(Xt=ue.match(/Edge\/(\d+)/))||Xt[1]>=74)&&(Xt=ue.match(/Chrome\/(\d+)/))&&(Vt=Xt[1]);var fe=Vt&&+Vt,se=ne("species"),de=function(t){return fe>=51||!o((function(){var e=[];return (e.constructor={})[se]=function(){return {foo:1}},1!==e[t](Boolean).foo}))},ve=de("splice"),pe=Mt("splice",{ACCESSORS:!0,0:0,1:2}),ge=Math.max,he=Math.min;It({target:"Array",proto:!0,forced:!ve||!pe},{splice:function(t,e){var n,r,o,i,u,a,c=Kt(this),l=at(c.length),f=ft(t,l),s=arguments.length;if(0===s?n=r=0:1===s?(n=0,r=l-f):(n=s-2,r=he(ge(it(e),0),l-f)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=oe(c,r),i=0;i<r;i++)(u=f+i)in c&&ie(o,i,c[u]);if(o.length=r,n<r){for(i=f;i<l-r;i++)a=i+n,(u=i+r)in c?c[a]=c[u]:delete c[a];for(i=l;i>l-r+n;i--)delete c[i-1];}else if(n>r)for(i=l-r;i>f;i--)a=i+n-1,(u=i+r-1)in c?c[a]=c[u]:delete c[a];for(i=0;i<n;i++)c[i+f]=arguments[i+2];return c.length=l-r+n,o}});var ye={};ye[ne("toStringTag")]="z";var me="[object z]"===String(ye),Se=ne("toStringTag"),xe="Arguments"==s(function(){return arguments}()),be=me?s:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Se))?n:xe?s(e):"Object"==(r=s(e))&&"function"==typeof e.callee?"Arguments":r},Ee=me?{}.toString:function(){return "[object "+be(this)+"]"};me||Z(Object.prototype,"toString",Ee,{unsafe:!0});var we=function(){var t=A(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Oe(t,e){return RegExp(t,e)}var Te,Ae,ke={UNSUPPORTED_Y:o((function(){var t=Oe("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:o((function(){var t=Oe("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Re=RegExp.prototype.exec,Ie=String.prototype.replace,je=Re,Ce=(Te=/a/,Ae=/b*/g,Re.call(Te,"a"),Re.call(Ae,"a"),0!==Te.lastIndex||0!==Ae.lastIndex),Le=ke.UNSUPPORTED_Y||ke.BROKEN_CARET,Pe=void 0!==/()??/.exec("")[1];(Ce||Pe||Le)&&(je=function(t){var e,n,r,o,i=this,u=Le&&i.sticky,a=we.call(i),c=i.source,l=0,f=t;return u&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),f=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(c="(?: "+c+")",f=" "+f,l++),n=new RegExp("^(?:"+c+")",a)),Pe&&(n=new RegExp("^"+c+"$(?!\\s)",a)),Ce&&(e=i.lastIndex),r=Re.call(u?n:i,f),u?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Ce&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Pe&&r&&r.length>1&&Ie.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0);})),r});var Me=je;It({target:"RegExp",proto:!0,forced:/./.exec!==Me},{exec:Me});var _e=RegExp.prototype,De=_e.toString,Ue=o((function(){return "/a/b"!=De.call({source:"a",flags:"b"})})),Ne="toString"!=De.name;(Ue||Ne)&&Z(RegExp.prototype,"toString",(function(){var t=A(this),e=String(t.source),n=t.flags;return "/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in _e)?we.call(t):n)}),{unsafe:!0});var Fe=ne("species"),We=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),ze="$0"==="a".replace(/./,"$0"),$e=ne("replace"),Be=!!/./[$e]&&""===/./[$e]("a","$0"),Ye=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Ge=function(t,e,n,r){var i=ne(t),u=!o((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=u&&!o((function(){var e=!1,n=/a/;return "split"===t&&((n={}).constructor={},n.constructor[Fe]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!u||!a||"replace"===t&&(!We||!ze||Be)||"split"===t&&!Ye){var c=/./[i],l=n(i,""[t],(function(t,e,n,r,o){return e.exec===Me?u&&!o?{done:!0,value:c.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:ze,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Be}),f=l[0],s=l[1];Z(String.prototype,t,f),Z(RegExp.prototype,i,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)});}r&&I(RegExp.prototype[i],"sham",!0);},He=ne("match"),Xe=function(t){var e;return h(t)&&(void 0!==(e=t[He])?!!e:"RegExp"==s(t))},Ve=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Ke=ne("species"),qe=function(t){return function(e,n){var r,o,i=String(p(e)),u=it(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=i.charCodeAt(u))<55296||r>56319||u+1===a||(o=i.charCodeAt(u+1))<56320||o>57343?t?i.charAt(u):r:t?i.slice(u,u+2):o-56320+(r-55296<<10)+65536}},Qe={codeAt:qe(!1),charAt:qe(!0)},Je=Qe.charAt,Ze=function(t,e,n){return e+(n?Je(t,e).length:1)},tn=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==s(t))throw TypeError("RegExp#exec called on incompatible receiver");return Me.call(t,e)},en=[].push,nn=Math.min,rn=!o((function(){return !RegExp(4294967295,"y")}));Ge("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(p(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return [];if(void 0===t)return [r];if(!Xe(t))return e.call(r,t,o);for(var i,u,a,c=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,s=new RegExp(t.source,l+"g");(i=Me.call(s,r))&&!((u=s.lastIndex)>f&&(c.push(r.slice(f,i.index)),i.length>1&&i.index<r.length&&en.apply(c,i.slice(1)),a=i[0].length,f=u,c.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return f===r.length?!a&&s.test("")||c.push(""):c.push(r.slice(f)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=p(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var i=n(r,t,this,o,r!==e);if(i.done)return i.value;var u=A(t),a=String(this),c=function(t,e){var n,r=A(t).constructor;return void 0===r||null==(n=A(r)[Ke])?e:Ve(n)}(u,RegExp),l=u.unicode,f=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(rn?"y":"g"),s=new c(rn?u:"^(?:"+u.source+")",f),d=void 0===o?4294967295:o>>>0;if(0===d)return [];if(0===a.length)return null===tn(s,a)?[a]:[];for(var v=0,p=0,g=[];p<a.length;){s.lastIndex=rn?p:0;var h,y=tn(s,rn?a:a.slice(p));if(null===y||(h=nn(at(s.lastIndex+(rn?0:p)),a.length))===v)p=Ze(a,p,l);else {if(g.push(a.slice(v,p)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(g.push(y[m]),g.length===d)return g;p=v=h;}}return g.push(a.slice(v)),g}]}),!rn);var on="\t\n\v\f\r                 \u2028\u2029\ufeff",un="["+on+"]",an=RegExp("^"+un+un+"*"),cn=RegExp(un+un+"*$"),ln=function(t){return function(e){var n=String(p(e));return 1&t&&(n=n.replace(an,"")),2&t&&(n=n.replace(cn,"")),n}},fn={start:ln(1),end:ln(2),trim:ln(3)},sn=fn.trim;It({target:"String",proto:!0,forced:function(t){return o((function(){return !!on[t]()||"​…᠎"!="​…᠎"[t]()||on[t].name!==t}))}("trim")},{trim:function(){return sn(this)}});var dn=de("slice"),vn=Mt("slice",{ACCESSORS:!0,0:0,1:2}),pn=ne("species"),gn=[].slice,hn=Math.max;It({target:"Array",proto:!0,forced:!dn||!vn},{slice:function(t,e){var n,r,o,i=g(this),u=at(i.length),a=ft(t,u),c=ft(void 0===e?u:e,u);if(qt(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!qt(n.prototype)?h(n)&&null===(n=n[pn])&&(n=void 0):n=void 0,n===Array||void 0===n))return gn.call(i,a,c);for(r=new(void 0===n?Array:n)(hn(c-a,0)),o=0;a<c;a++,o++)a in i&&ie(r,o,i[a]);return r.length=o,r}});var yn=Object.keys||function(t){return pt(t,gt)},mn=o((function(){yn(1);}));It({target:"Object",stat:!0,forced:mn},{keys:function(t){return yn(Kt(t))}});var Sn,xn=function(t){if(Xe(t))throw TypeError("The method doesn't accept regular expressions");return t},bn=ne("match"),En=T.f,wn="".startsWith,On=Math.min,Tn=function(t){var e=/./;try{"/./"[t](e);}catch(n){try{return e[bn]=!1,"/./"[t](e)}catch(t){}}return !1}("startsWith"),An=!(Tn||(Sn=En(String.prototype,"startsWith"),!Sn||Sn.writable));function kn(t){return (kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}It({target:"String",proto:!0,forced:!An&&!Tn},{startsWith:function(t){var e=String(p(this));xn(t);var n=at(On(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return wn?wn.call(e,r,n):e.slice(n,n+r.length)===r}});var Rn=function(t){return t instanceof Date},In=function(t){return "function"==typeof t},jn=function(t){return "string"==typeof t},Cn=function(t){return "symbol"===kn(t)},Ln=function(t){return "boolean"==typeof t},Pn=function(t){return "number"==typeof t},Mn=function(t){return null!==t&&"object"===kn(t)},_n=Object.prototype.toString,Dn=function(t){return _n.call(t)},Un=Object.prototype.hasOwnProperty,Nn=function(t,e){return Un.call(t,e)},Fn=Array.isArray,Wn=function(t){return "[object Map]"===Dn(t)},zn=function(t){return "[object Set]"===Dn(t)},$n=function(t){return Dn(t).slice(8,-1)},Bn=function(t){return $n(t).startsWith("HTML")},Yn=function(t){return Mn(t)&&In(t.then)&&In(t.catch)},Gn=function(t){return null===t},Hn=function(t){return void 0===t},Xn=function(t){return !t&&0!==t&&""!==t||Fn(t)&&!t.length||Mn(t)&&!Object.keys(t).length},Vn=function(){function t(){Wt(this,t);}return $t(t,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t&&e&&n&&t.addEventListener(e,n,r);}},{key:"removeEventListener",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t&&e&&n&&t.removeEventListener(e,n,r);}},{key:"triggerDragEvent",value:function(e,n){var r=!1,o=function(t){var e;null===(e=n.drag)||void 0===e||e.call(n,t);},i=function e(i){var u;t.removeEventListener(document,"mousemove",o),t.removeEventListener(document,"mouseup",e),document.onselectstart=null,document.ondragstart=null,r=!1,null===(u=n.end)||void 0===u||u.call(n,i);};t.addEventListener(e,"mousedown",(function(e){var u;r||(document.onselectstart=function(){return !1},document.ondragstart=function(){return !1},t.addEventListener(document,"mousemove",o),t.addEventListener(document,"mouseup",i),r=!0,null===(u=n.start)||void 0===u||u.call(n,e));}));}},{key:"getBoundingClientRect",value:function(t){return t&&Mn(t)&&1===t.nodeType?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,e){return !!(t&&Mn(t)&&jn(e)&&1===t.nodeType)&&t.classList.contains(e.trim())}},{key:"addClass",value:function(e,n){if(e&&Mn(e)&&jn(n)&&1===e.nodeType&&(n=n.trim(),!t.hasClass(e,n))){var r=e.className;e.className=r?r+" "+n:n;}}},{key:"removeClass",value:function(t,e){if(t&&Mn(t)&&jn(e)&&1===t.nodeType&&"string"==typeof t.className){e=e.trim();for(var n=t.className.trim().split(" "),r=n.length-1;r>=0;r--)n[r]=n[r].trim(),n[r]&&n[r]!==e||n.splice(r,1);t.className=n.join(" ");}}},{key:"toggleClass",value:function(t,e,n){t&&Mn(t)&&jn(e)&&1===t.nodeType&&t.classList.toggle(e,n);}},{key:"replaceClass",value:function(e,n,r){e&&Mn(e)&&jn(n)&&jn(r)&&1===e.nodeType&&(n=n.trim(),r=r.trim(),t.removeClass(e,n),t.addClass(e,r));}},{key:"getScrollTop",value:function(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}},{key:"setScrollTop",value:function(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e);}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(e){t.setScrollTop(window,e),t.setScrollTop(document.body,e);}},{key:"getElementTop",value:function(e,n){if(t.isWindow(e))return 0;var r=n?t.getScrollTop(n):t.getRootScrollTop();return e.getBoundingClientRect().top+r}},{key:"getVisibleHeight",value:function(e){return t.isWindow(e)?e.innerHeight:e.getBoundingClientRect().height}},{key:"isHidden",value:function(t){if(!t)return !1;var e=window.getComputedStyle(t),n="none"===e.display,r=null===t.offsetParent&&"fixed"!==e.position;return n||r}},{key:"triggerEvent",value:function(t,e){if("createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent(e,!1,!0),t.dispatchEvent(n);}}},{key:"calcAngle",value:function(t,e){var n=t.getBoundingClientRect(),r=n.left+n.width/2,o=n.top+n.height/2,i=Math.abs(r-e.clientX),u=Math.abs(o-e.clientY),a=u/Math.sqrt(Math.pow(i,2)+Math.pow(u,2)),c=Math.acos(a),l=Math.floor(180/(Math.PI/c));return e.clientX>r&&e.clientY>o&&(l=180-l),e.clientX==r&&e.clientY>o&&(l=180),e.clientX>r&&e.clientY==o&&(l=90),e.clientX<r&&e.clientY>o&&(l=180+l),e.clientX<r&&e.clientY==o&&(l=270),e.clientX<r&&e.clientY<o&&(l=360-l),l}},{key:"querySelector",value:function(t,e){return e?e.querySelector(t):document.querySelector(t)}},{key:"createElement",value:function(t){for(var e=document.createElement(t),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(var i=0;i<r.length;i++)r[i]&&e.classList.add(r[i]);return e}},{key:"appendChild",value:function(t){for(var e=0;e<(arguments.length<=1?0:arguments.length-1);e++)t.appendChild(e+1<1||arguments.length<=e+1?void 0:arguments[e+1]);}},{key:"getWindow",value:function(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}},{key:"isElement",value:function(t){return t instanceof this.getWindow(t).Element||t instanceof Element}},{key:"isHTMLElement",value:function(t){return t instanceof this.getWindow(t).HTMLElement||t instanceof HTMLElement}},{key:"isShadowRoot",value:function(t){return "undefined"!=typeof ShadowRoot&&(t instanceof this.getWindow(t).ShadowRoot||t instanceof ShadowRoot)}},{key:"getWindowScroll",value:function(t){var e=this.getWindow(t);return {scrollLeft:e.pageXOffset||0,scrollTop:e.pageYOffset||0}}}]),t}(),Kn=Math.floor,qn="".replace,Qn=/\$([$&'`]|\d\d?|<[^>]*>)/g,Jn=/\$([$&'`]|\d\d?)/g,Zn=function(t,e,n,r,o,i){var u=n+t.length,a=r.length,c=Jn;return void 0!==o&&(o=Kt(o),c=Qn),qn.call(i,c,(function(i,c){var l;switch(c.charAt(0)){case "$":return "$";case "&":return t;case "`":return e.slice(0,n);case "'":return e.slice(u);case "<":l=o[c.slice(1,-1)];break;default:var f=+c;if(0===f)return i;if(f>a){var s=Kn(f/10);return 0===s?i:s<=a?void 0===r[s-1]?c.charAt(1):r[s-1]+c.charAt(1):i}l=r[f-1];}return void 0===l?"":l}))},tr=Math.max,er=Math.min;Ge("replace",2,(function(t,e,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,u=o?"$":"$0";return [function(n,r){var o=p(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(u)){var a=n(e,t,this,r);if(a.done)return a.value}var c=A(t),l=String(this),f="function"==typeof r;f||(r=String(r));var s=c.global;if(s){var d=c.unicode;c.lastIndex=0;}for(var v=[];;){var p=tn(c,l);if(null===p)break;if(v.push(p),!s)break;""===String(p[0])&&(c.lastIndex=Ze(l,at(c.lastIndex),d));}for(var g,h="",y=0,m=0;m<v.length;m++){p=v[m];for(var S=String(p[0]),x=tr(er(it(p.index),l.length),0),b=[],E=1;E<p.length;E++)b.push(void 0===(g=p[E])?g:String(g));var w=p.groups;if(f){var O=[S].concat(b,x,l);void 0!==w&&O.push(w);var T=String(r.apply(void 0,O));}else T=Zn(S,l,x,b,w,r);x>=y&&(h+=l.slice(y,x)+T,y=x+S.length);}return h+l.slice(y)}]}));var nr=function(){function t(){Wt(this,t);}return $t(t,null,[{key:"camelize",value:function(t){return t.replace(/-(\w)/g,(function(t,e){return e?e.toUpperCase():""}))}},{key:"capitalize",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),t}(),rr=function(){function t(){Wt(this,t);}return $t(t,null,[{key:"_clone",value:function(){}}]),t}(),or=ne("isConcatSpreadable"),ir=fe>=51||!o((function(){var t=[];return t[or]=!1,t.concat()[0]!==t})),ur=de("concat"),ar=function(t){if(!h(t))return !1;var e=t[or];return void 0!==e?!!e:qt(t)};It({target:"Array",proto:!0,forced:!ir||!ur},{concat:function(t){var e,n,r,o,i,u=Kt(this),a=oe(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(ar(i=-1===e?u:arguments[e])){if(c+(o=at(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&ie(a,c,i[n]);}else {if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ie(a,c++,i);}return a.length=c,a}});var cr,lr=function(t,e,n){if(Ve(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},fr=[].push,sr=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,u=7==t,a=5==t||i;return function(c,l,f,s){for(var d,p,g=Kt(c),h=v(g),y=lr(l,f,3),m=at(h.length),S=0,x=s||oe,b=e?x(c,m):n||u?x(c,0):void 0;m>S;S++)if((a||S in h)&&(p=y(d=h[S],S,g),t))if(e)b[S]=p;else if(p)switch(t){case 3:return !0;case 5:return d;case 6:return S;case 2:fr.call(b,d);}else switch(t){case 4:return !1;case 7:fr.call(b,d);}return i?-1:r||o?o:b}},dr={forEach:sr(0),map:sr(1),filter:sr(2),some:sr(3),every:sr(4),find:sr(5),findIndex:sr(6),filterOut:sr(7)},vr=i?Object.defineProperties:function(t,e){A(t);for(var n,r=yn(e),o=r.length,i=0;o>i;)R.f(t,n=r[i++],e[n]);return t},pr=nt("document","documentElement"),gr=Y("IE_PROTO"),hr=function(){},yr=function(t){return "<script>"+t+"<\/script>"},mr=function(){try{cr=document.domain&&new ActiveXObject("htmlfile");}catch(t){}var t,e;mr=cr?function(t){t.write(yr("")),t.close();var e=t.parentWindow.Object;return t=null,e}(cr):((e=E("iframe")).style.display="none",pr.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(yr("document.F=Object")),t.close(),t.F);for(var n=gt.length;n--;)delete mr.prototype[gt[n]];return mr()};G[gr]=!0;var Sr=Object.create||function(t,e){var n;return null!==t?(hr.prototype=A(t),n=new hr,hr.prototype=null,n[gr]=t):n=mr(),void 0===e?n:vr(n,e)},xr=ne("unscopables"),br=Array.prototype;null==br[xr]&&R.f(br,xr,{configurable:!0,value:Sr(null)});var Er=function(t){br[xr][t]=!0;},wr=dr.find,Or=!0,Tr=Mt("find");"find"in[]&&Array(1).find((function(){Or=!1;})),It({target:"Array",proto:!0,forced:Or||!Tr},{find:function(t){return wr(this,t,arguments.length>1?arguments[1]:void 0)}}),Er("find");var Ar=dr.findIndex,kr=!0,Rr=Mt("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){kr=!1;})),It({target:"Array",proto:!0,forced:kr||!Rr},{findIndex:function(t){return Ar(this,t,arguments.length>1?arguments[1]:void 0)}}),Er("findIndex");var Ir=function(t,e,n,r,o,i,u,a){for(var c,l=o,f=0,s=!!u&&lr(u,a,3);f<r;){if(f in n){if(c=s?s(n[f],f,e):n[f],i>0&&qt(c))l=Ir(t,e,c,at(c.length),l,i-1)-1;else {if(l>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[l]=c;}l++;}f++;}return l},jr=Ir;It({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Kt(this),n=at(e.length),r=oe(e,0);return r.length=jr(r,e,e,n,0,void 0===t?1:it(t)),r}});var Cr=function(t){var e=t.return;if(void 0!==e)return A(e.call(t)).value},Lr=function(t,e,n,r){try{return r?e(A(n)[0],n[1]):e(n)}catch(e){throw Cr(t),e}},Pr={},Mr=ne("iterator"),_r=Array.prototype,Dr=function(t){return void 0!==t&&(Pr.Array===t||_r[Mr]===t)},Ur=ne("iterator"),Nr=function(t){if(null!=t)return t[Ur]||t["@@iterator"]||Pr[be(t)]},Fr=ne("iterator"),Wr=!1;try{var zr=0,$r={next:function(){return {done:!!zr++}},return:function(){Wr=!0;}};$r[Fr]=function(){return this},Array.from($r,(function(){throw 2}));}catch(t){}var Br=function(t,e){if(!e&&!Wr)return !1;var n=!1;try{var r={};r[Fr]=function(){return {next:function(){return {done:n=!0}}}},t(r);}catch(t){}return n},Yr=!Br((function(t){Array.from(t);}));It({target:"Array",stat:!0,forced:Yr},{from:function(t){var e,n,r,o,i,u,a=Kt(t),c="function"==typeof this?this:Array,l=arguments.length,f=l>1?arguments[1]:void 0,s=void 0!==f,d=Nr(a),v=0;if(s&&(f=lr(f,l>2?arguments[2]:void 0,2)),null==d||c==Array&&Dr(d))for(n=new c(e=at(a.length));e>v;v++)u=s?f(a[v],v):a[v],ie(n,v,u);else for(i=(o=d.call(a)).next,n=new c;!(r=i.call(o)).done;v++)u=s?Lr(o,f,[r.value,v],!0):r.value,ie(n,v,u);return n.length=v,n}});var Gr=function(t){return function(e,n,r,o){Ve(n);var i=Kt(e),u=v(i),a=at(i.length),c=t?a-1:0,l=t?-1:1;if(r<2)for(;;){if(c in u){o=u[c],c+=l;break}if(c+=l,t?c<0:a<=c)throw TypeError("Reduce of empty array with no initial value")}for(;t?c>=0:a>c;c+=l)c in u&&(o=n(o,u[c],c,i));return o}},Hr={left:Gr(!1),right:Gr(!0)},Xr="process"==s(r.process),Vr=Hr.left,Kr=jt("reduce"),qr=Mt("reduce",{1:0});It({target:"Array",proto:!0,forced:!Kr||!qr||!Xr&&fe>79&&fe<83},{reduce:function(t){return Vr(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}}),Er("flat");var Qr,Jr,Zr,to=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),eo=e((function(t){var e=R.f,n=$("meta"),r=0,o=Object.isExtensible||function(){return !0},i=function(t){e(t,n,{value:{objectID:"O"+ ++r,weakData:{}}});},u=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!h(t))return "symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!S(t,n)){if(!o(t))return "F";if(!e)return "E";i(t);}return t[n].objectID},getWeakData:function(t,e){if(!S(t,n)){if(!o(t))return !0;if(!e)return !1;i(t);}return t[n].weakData},onFreeze:function(t){return to&&u.REQUIRED&&o(t)&&!S(t,n)&&i(t),t}};G[n]=!0;})),no=function(t,e){this.stopped=t,this.result=e;},ro=function(t,e,n){var r,o,i,u,a,c,l,f=n&&n.that,s=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),p=lr(e,f,1+s+v),g=function(t){return r&&Cr(r),new no(!0,t)},h=function(t){return s?(A(t),v?p(t[0],t[1],g):p(t[0],t[1])):v?p(t,g):p(t)};if(d)r=t;else {if("function"!=typeof(o=Nr(t)))throw TypeError("Target is not iterable");if(Dr(o)){for(i=0,u=at(t.length);u>i;i++)if((a=h(t[i]))&&a instanceof no)return a;return new no(!1)}r=o.call(t);}for(c=r.next;!(l=c.call(r)).done;){try{a=h(l.value);}catch(t){throw Cr(r),t}if("object"==typeof a&&a&&a instanceof no)return a}return new no(!1)},oo=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},io=R.f,uo=ne("toStringTag"),ao=function(t,e,n){t&&!S(t=n?t:t.prototype,uo)&&io(t,uo,{configurable:!0,value:e});},co=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array;}catch(t){}return function(n,r){return A(n),function(t){if(!h(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),lo=function(t,e,n){for(var r in e)Z(t,r,e[r],n);return t},fo=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),so=Y("IE_PROTO"),vo=Object.prototype,po=fo?Object.getPrototypeOf:function(t){return t=Kt(t),S(t,so)?t[so]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?vo:null},go=ne("iterator"),ho=!1;[].keys&&("next"in(Zr=[].keys())?(Jr=po(po(Zr)))!==Object.prototype&&(Qr=Jr):ho=!0),(null==Qr||o((function(){var t={};return Qr[go].call(t)!==t})))&&(Qr={}),S(Qr,go)||I(Qr,go,(function(){return this}));var yo={IteratorPrototype:Qr,BUGGY_SAFARI_ITERATORS:ho},mo=yo.IteratorPrototype,So=function(){return this},xo=yo.IteratorPrototype,bo=yo.BUGGY_SAFARI_ITERATORS,Eo=ne("iterator"),wo=function(){return this},Oo=function(t,e,n,r,o,i,u){!function(t,e,n){var r=e+" Iterator";t.prototype=Sr(mo,{next:l(1,n)}),ao(t,r,!1),Pr[r]=So;}(n,e,r);var a,c,f,s=function(t){if(t===o&&h)return h;if(!bo&&t in p)return p[t];switch(t){case "keys":case "values":case "entries":return function(){return new n(this,t)}}return function(){return new n(this)}},d=e+" Iterator",v=!1,p=t.prototype,g=p[Eo]||p["@@iterator"]||o&&p[o],h=!bo&&g||s(o),y="Array"==e&&p.entries||g;if(y&&(a=po(y.call(new t)),xo!==Object.prototype&&a.next&&(po(a)!==xo&&(co?co(a,xo):"function"!=typeof a[Eo]&&I(a,Eo,wo)),ao(a,d,!0))),"values"==o&&g&&"values"!==g.name&&(v=!0,h=function(){return g.call(this)}),p[Eo]!==h&&I(p,Eo,h),Pr[e]=h,o)if(c={values:s("values"),keys:i?h:s("keys"),entries:s("entries")},u)for(f in c)(bo||v||!(f in p))&&Z(p,f,c[f]);else It({target:e,proto:!0,forced:bo||v},c);return c},To=ne("species"),Ao=R.f,ko=eo.fastKey,Ro=J.set,Io=J.getterFor;!function(t,e,n){var i=-1!==t.indexOf("Map"),u=-1!==t.indexOf("Weak"),a=i?"set":"add",c=r[t],l=c&&c.prototype,f=c,s={},d=function(t){var e=l[t];Z(l,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return !(u&&!h(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return u&&!h(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return !(u&&!h(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this});};if(kt(t,"function"!=typeof c||!(u||l.forEach&&!o((function(){(new c).entries().next();})))))f=n.getConstructor(e,t,i,a),eo.REQUIRED=!0;else if(kt(t,!0)){var v=new f,p=v[a](u?{}:-0,1)!=v,g=o((function(){v.has(1);})),y=Br((function(t){new c(t);})),m=!u&&o((function(){for(var t=new c,e=5;e--;)t[a](e,e);return !t.has(-0)}));y||((f=e((function(e,n){oo(e,f,t);var r=function(t,e,n){var r,o;return co&&"function"==typeof(r=e.constructor)&&r!==n&&h(o=r.prototype)&&o!==n.prototype&&co(t,o),t}(new c,e,f);return null!=n&&ro(n,r[a],{that:r,AS_ENTRIES:i}),r}))).prototype=l,l.constructor=f),(g||m)&&(d("delete"),d("has"),i&&d("get")),(m||p)&&d(a),u&&l.clear&&delete l.clear;}s[t]=f,It({global:!0,forced:f!=c},s),ao(f,t),u||n.setStrong(f,t,i);}("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(t,e,n,r){var o=t((function(t,u){oo(t,o,e),Ro(t,{type:e,index:Sr(null),first:void 0,last:void 0,size:0}),i||(t.size=0),null!=u&&ro(u,t[r],{that:t,AS_ENTRIES:n});})),u=Io(e),a=function(t,e,n){var r,o,a=u(t),l=c(t,e);return l?l.value=n:(a.last=l={index:o=ko(e,!0),key:e,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=l),r&&(r.next=l),i?a.size++:t.size++,"F"!==o&&(a.index[o]=l)),t},c=function(t,e){var n,r=u(t),o=ko(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return lo(o.prototype,{clear:function(){for(var t=u(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,i?t.size=0:this.size=0;},delete:function(t){var e=this,n=u(e),r=c(e,t);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first==r&&(n.first=o),n.last==r&&(n.last=a),i?n.size--:e.size--;}return !!r},forEach:function(t){for(var e,n=u(this),r=lr(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous;},has:function(t){return !!c(this,t)}}),lo(o.prototype,n?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),i&&Ao(o.prototype,"size",{get:function(){return u(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Io(e),u=Io(r);Oo(t,e,(function(t,e){Ro(this,{type:r,target:t,state:o(t),kind:e,last:void 0});}),(function(){for(var t=u(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),function(t){var e=nt(t),n=R.f;i&&e&&!e[To]&&n(e,To,{configurable:!0,get:function(){return this}});}(e);}});var jo=Qe.charAt,Co=J.set,Lo=J.getterFor("String Iterator");Oo(String,"String",(function(t){Co(this,{type:"String Iterator",string:String(t),index:0});}),(function(){var t,e=Lo(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=jo(n,r),e.index+=t.length,{value:t,done:!1})}));var Po={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Mo=J.set,_o=J.getterFor("Array Iterator"),Do=Oo(Array,"Array",(function(t,e){Mo(this,{type:"Array Iterator",target:g(t),index:0,kind:e});}),(function(){var t=_o(this),e=t.target,n=t.kind,r=t.index++;return !e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");Pr.Arguments=Pr.Array,Er("keys"),Er("values"),Er("entries");var Uo=ne("iterator"),No=ne("toStringTag"),Fo=Do.values;for(var Wo in Po){var zo=r[Wo],$o=zo&&zo.prototype;if($o){if($o[Uo]!==Fo)try{I($o,Uo,Fo);}catch(t){$o[Uo]=Fo;}if($o[No]||I($o,No,Wo),Po[Wo])for(var Bo in Do)if($o[Bo]!==Do[Bo])try{I($o,Bo,Do[Bo]);}catch(t){$o[Bo]=Do[Bo];}}}var Yo=function(){function t(){Wt(this,t);}return $t(t,null,[{key:"deduplicate",value:function(t){return Array.from(new Set(t))}},{key:"flat",value:function(e){return e.reduce((function(e,n){var r=Array.isArray(n)?t.flat(n):n;return e.concat(r)}),[])}},{key:"find",value:function(t,e){return t.find(e)}},{key:"findIndex",value:function(t,e){return t.findIndex(e)}}]),t}(),Go=function(){function t(){Wt(this,t);}return $t(t,null,[{key:"today",value:function(){return new Date}}]),t}(),Ho=function(){},Xo=function(t){return t},Vo=function(){function t(){Wt(this,t);}return $t(t,null,[{key:"range",value:function(t,e,n){return Math.min(Math.max(t,e),n)}},{key:"clamp",value:function(t,e,n){return e<n?t<e?e:t>n?n:t:t<n?n:t>e?e:t}}]),t}();
2
+
3
+ export { Yo as ArrayUtils, Bt as BrowserUtils, Vn as DOMUtils, Go as DateUtils, Vo as NumberUtils, rr as ObjectUtils, nr as StringUtils, Nn as hasOwn, Xo as identity, Fn as isArray, Ln as isBool, Rn as isDate, Hn as isDef, Xn as isEmpty, In as isFunction, Bn as isHTMLElement, Wn as isMap, Gn as isNull, Pn as isNumber, Mn as isObject, Yn as isPromise, zn as isSet, jn as isString, Cn as isSymbol, Ho as noop, _n as objectToString, $n as toRawType, Dn as toTypeString };
@@ -0,0 +1,200 @@
1
+ import getCompositeRect from './dom-utils/getCompositeRect.mjs';
2
+ import getLayoutRect from './dom-utils/getLayoutRect.mjs';
3
+ import listScrollParents from './dom-utils/listScrollParents.mjs';
4
+ import getOffsetParent from './dom-utils/getOffsetParent.mjs';
5
+ import orderModifiers from './utils/orderModifiers.mjs';
6
+ import debounce from './utils/debounce.mjs';
7
+ import mergeByName from './utils/mergeByName.mjs';
8
+ export { default as detectOverflow } from './utils/detectOverflow.mjs';
9
+ import { isElement } from './dom-utils/instanceOf.mjs';
10
+
11
+ var DEFAULT_OPTIONS = {
12
+ placement: 'bottom',
13
+ modifiers: [],
14
+ strategy: 'absolute'
15
+ };
16
+
17
+ function areValidElements() {
18
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
19
+ args[_key] = arguments[_key];
20
+ }
21
+
22
+ return !args.some(function (element) {
23
+ return !(element && typeof element.getBoundingClientRect === 'function');
24
+ });
25
+ }
26
+
27
+ function popperGenerator(generatorOptions) {
28
+ if (generatorOptions === void 0) {
29
+ generatorOptions = {};
30
+ }
31
+
32
+ var _generatorOptions = generatorOptions,
33
+ _generatorOptions$def = _generatorOptions.defaultModifiers,
34
+ defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
35
+ _generatorOptions$def2 = _generatorOptions.defaultOptions,
36
+ defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
37
+ return function createPopper(reference, popper, options) {
38
+ if (options === void 0) {
39
+ options = defaultOptions;
40
+ }
41
+
42
+ var state = {
43
+ placement: 'bottom',
44
+ orderedModifiers: [],
45
+ options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
46
+ modifiersData: {},
47
+ elements: {
48
+ reference: reference,
49
+ popper: popper
50
+ },
51
+ attributes: {},
52
+ styles: {}
53
+ };
54
+ var effectCleanupFns = [];
55
+ var isDestroyed = false;
56
+ var instance = {
57
+ state: state,
58
+ setOptions: function setOptions(setOptionsAction) {
59
+ var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
60
+ cleanupModifierEffects();
61
+ state.options = Object.assign({}, defaultOptions, state.options, options);
62
+ state.scrollParents = {
63
+ reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
64
+ popper: listScrollParents(popper)
65
+ }; // Orders the modifiers based on their dependencies and `phase`
66
+ // properties
67
+
68
+ var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
69
+
70
+ state.orderedModifiers = orderedModifiers.filter(function (m) {
71
+ return m.enabled;
72
+ });
73
+ runModifierEffects();
74
+ return instance.update();
75
+ },
76
+ // Sync update – it will always be executed, even if not necessary. This
77
+ // is useful for low frequency updates where sync behavior simplifies the
78
+ // logic.
79
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
80
+ // prefer the async Popper#update method
81
+ forceUpdate: function forceUpdate() {
82
+ if (isDestroyed) {
83
+ return;
84
+ }
85
+
86
+ var _state$elements = state.elements,
87
+ reference = _state$elements.reference,
88
+ popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
89
+ // anymore
90
+
91
+ if (!areValidElements(reference, popper)) {
92
+ return;
93
+ } // Store the reference and popper rects to be read by modifiers
94
+
95
+
96
+ state.rects = {
97
+ reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
98
+ popper: getLayoutRect(popper)
99
+ }; // Modifiers have the ability to reset the current update cycle. The
100
+ // most common use case for this is the `flip` modifier changing the
101
+ // placement, which then needs to re-run all the modifiers, because the
102
+ // logic was previously ran for the previous placement and is therefore
103
+ // stale/incorrect
104
+
105
+ state.reset = false;
106
+ state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
107
+ // is filled with the initial data specified by the modifier. This means
108
+ // it doesn't persist and is fresh on each update.
109
+ // To ensure persistent data, use `${name}#persistent`
110
+
111
+ state.orderedModifiers.forEach(function (modifier) {
112
+ return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
113
+ });
114
+
115
+ for (var index = 0; index < state.orderedModifiers.length; index++) {
116
+ if (state.reset === true) {
117
+ state.reset = false;
118
+ index = -1;
119
+ continue;
120
+ }
121
+
122
+ var _state$orderedModifie = state.orderedModifiers[index],
123
+ fn = _state$orderedModifie.fn,
124
+ _state$orderedModifie2 = _state$orderedModifie.options,
125
+ _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
126
+ name = _state$orderedModifie.name;
127
+
128
+ if (typeof fn === 'function') {
129
+ state = fn({
130
+ state: state,
131
+ options: _options,
132
+ name: name,
133
+ instance: instance
134
+ }) || state;
135
+ }
136
+ }
137
+ },
138
+ // Async and optimistically optimized update – it will not be executed if
139
+ // not necessary (debounced to run at most once-per-tick)
140
+ update: debounce(function () {
141
+ return new Promise(function (resolve) {
142
+ instance.forceUpdate();
143
+ resolve(state);
144
+ });
145
+ }),
146
+ destroy: function destroy() {
147
+ cleanupModifierEffects();
148
+ isDestroyed = true;
149
+ }
150
+ };
151
+
152
+ if (!areValidElements(reference, popper)) {
153
+ return instance;
154
+ }
155
+
156
+ instance.setOptions(options).then(function (state) {
157
+ if (!isDestroyed && options.onFirstUpdate) {
158
+ options.onFirstUpdate(state);
159
+ }
160
+ }); // Modifiers have the ability to execute arbitrary code before the first
161
+ // update cycle runs. They will be executed in the same order as the update
162
+ // cycle. This is useful when a modifier adds some persistent data that
163
+ // other modifiers need to use, but the modifier is run after the dependent
164
+ // one.
165
+
166
+ function runModifierEffects() {
167
+ state.orderedModifiers.forEach(function (_ref) {
168
+ var name = _ref.name,
169
+ _ref$options = _ref.options,
170
+ options = _ref$options === void 0 ? {} : _ref$options,
171
+ effect = _ref.effect;
172
+
173
+ if (typeof effect === 'function') {
174
+ var cleanupFn = effect({
175
+ state: state,
176
+ name: name,
177
+ instance: instance,
178
+ options: options
179
+ });
180
+
181
+ var noopFn = function noopFn() {};
182
+
183
+ effectCleanupFns.push(cleanupFn || noopFn);
184
+ }
185
+ });
186
+ }
187
+
188
+ function cleanupModifierEffects() {
189
+ effectCleanupFns.forEach(function (fn) {
190
+ return fn();
191
+ });
192
+ effectCleanupFns = [];
193
+ }
194
+
195
+ return instance;
196
+ };
197
+ }
198
+ var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules
199
+
200
+ export { createPopper, popperGenerator };
@@ -0,0 +1,26 @@
1
+ import { isShadowRoot } from './instanceOf.mjs';
2
+
3
+ function contains(parent, child) {
4
+ var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
5
+
6
+ if (parent.contains(child)) {
7
+ return true;
8
+ } // then fallback to custom implementation with Shadow DOM support
9
+ else if (rootNode && isShadowRoot(rootNode)) {
10
+ var next = child;
11
+
12
+ do {
13
+ if (next && parent.isSameNode(next)) {
14
+ return true;
15
+ } // $FlowFixMe[prop-missing]: need a better way to handle this...
16
+
17
+
18
+ next = next.parentNode || next.host;
19
+ } while (next);
20
+ } // Give up, the result is false
21
+
22
+
23
+ return false;
24
+ }
25
+
26
+ export { contains as default };
@@ -0,0 +1,44 @@
1
+ import { isHTMLElement, isElement } from './instanceOf.mjs';
2
+ import { round } from '../utils/math.mjs';
3
+ import getWindow from './getWindow.mjs';
4
+ import isLayoutViewport from './isLayoutViewport.mjs';
5
+
6
+ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
7
+ if (includeScale === void 0) {
8
+ includeScale = false;
9
+ }
10
+
11
+ if (isFixedStrategy === void 0) {
12
+ isFixedStrategy = false;
13
+ }
14
+
15
+ var clientRect = element.getBoundingClientRect();
16
+ var scaleX = 1;
17
+ var scaleY = 1;
18
+
19
+ if (includeScale && isHTMLElement(element)) {
20
+ scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
21
+ scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
22
+ }
23
+
24
+ var _ref = isElement(element) ? getWindow(element) : window,
25
+ visualViewport = _ref.visualViewport;
26
+
27
+ var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
28
+ var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
29
+ var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
30
+ var width = clientRect.width / scaleX;
31
+ var height = clientRect.height / scaleY;
32
+ return {
33
+ width: width,
34
+ height: height,
35
+ top: y,
36
+ right: x + width,
37
+ bottom: y + height,
38
+ left: x,
39
+ x: x,
40
+ y: y
41
+ };
42
+ }
43
+
44
+ export { getBoundingClientRect as default };