@gct-paas/core-web 0.1.4-dev.7 → 0.1.4-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-BghCpvxN.js +76 -0
- package/dist/index-PLrMc0gl.cjs +76 -0
- package/dist/index-oVPMi6Ep.js +29160 -0
- package/dist/index.esm.min.mjs +34 -7924
- package/dist/index.min.cjs +1 -20
- package/dist/index.min.css +1 -0
- package/dist/index.system.min.js +1 -20
- package/dist/monaco-editor-B8X-ou0h.js +20245 -0
- package/dist/monaco-editor-Bdgpd_KL.cjs +19 -0
- package/dist/monaco-editor-NIWDtQNB.js +19 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/components/app-modal/app-modal-component.css +149 -0
- package/es/components/app-modal/app-modal-component.d.ts +26 -0
- package/es/components/app-modal/app-modal-component.mjs +140 -0
- package/es/components/assets-svg-icon/assets-svg-icon.css +188 -0
- package/es/components/assets-svg-icon/assets-svg-icon.d.ts +134 -0
- package/es/components/assets-svg-icon/assets-svg-icon.mjs +238 -0
- package/es/components/assets-svg-icon/request.d.ts +2 -0
- package/es/components/assets-svg-icon/request.mjs +51 -0
- package/es/components/assets-svg-icon/utils.d.ts +9 -0
- package/es/components/assets-svg-icon/utils.mjs +21 -0
- package/es/components/assets-svg-icon/validate.d.ts +4 -0
- package/es/components/assets-svg-icon/validate.mjs +43 -0
- package/es/components/base-button/base-button.css +74 -0
- package/es/components/base-button/base-button.vue.d.ts +173 -0
- package/es/components/base-button/base-button.vue.mjs +7 -0
- package/es/components/base-button/base-button.vue3.mjs +179 -0
- package/es/components/basic-button/basic-button.css +25 -0
- package/es/components/basic-button/basic-button.vue.d.ts +100 -0
- package/es/components/basic-button/basic-button.vue.mjs +7 -0
- package/es/components/basic-button/basic-button.vue3.mjs +130 -0
- package/es/components/code-editor/code-editor.css +67 -0
- package/es/components/code-editor/code-editor.d.ts +1 -1
- package/es/components/code-editor/code-editor.mjs +9 -10
- package/es/components/index.d.ts +10 -0
- package/es/components/index.mjs +21 -6
- package/es/components/layout/flex-container/flex-container.css +67 -0
- package/es/components/layout/flex-container/flex-container.mjs +13 -9
- package/es/components/layout/flex-item/flex-item.mjs +11 -9
- package/es/components/layout/grid-container/grid-container.mjs +11 -7
- package/es/components/layout/view-container/view-container.css +83 -0
- package/es/components/layout/view-container/view-container.mjs +6 -7
- package/es/components/svg-icon/svg-icon.css +73 -0
- package/es/components/svg-icon/svg-icon.vue.d.ts +40 -0
- package/es/components/svg-icon/svg-icon.vue.mjs +50 -0
- package/es/components/svg-icon/svg-icon.vue3.mjs +6 -0
- package/es/create-app-vue.d.ts +9 -0
- package/es/create-app-vue.mjs +17 -0
- package/es/directives/drag-resize.d.ts +4 -0
- package/es/directives/drag-resize.mjs +42 -0
- package/es/directives/index.d.ts +8 -0
- package/es/directives/index.mjs +9 -0
- package/es/directives/target-loading.d.ts +4 -0
- package/es/directives/target-loading.mjs +40 -0
- package/es/editor/gct-form-check-switch/gct-form-check-switch.d.ts +1 -1
- package/es/editor/gct-form-i18n/gct-form-i18n.d.ts +1 -1
- package/es/editor/gct-form-info/gct-form-info.d.ts +1 -1
- package/es/editor/gct-form-length-unit/gct-form-length-unit.d.ts +1 -1
- package/es/editor/gct-form-number/gct-form-number.d.ts +1 -1
- package/es/editor/gct-form-radio/gct-form-radio.d.ts +1 -1
- package/es/editor/gct-form-select/gct-form-select.d.ts +1 -1
- package/es/editor/gct-form-switch/gct-form-switch.d.ts +1 -1
- package/es/editor/gct-form-textarea/gct-form-textarea.d.ts +1 -1
- package/es/hooks/index.d.ts +3 -0
- package/es/hooks/useDragLine.d.ts +6 -0
- package/es/hooks/useDragLine.mjs +79 -0
- package/es/hooks/useLocale.d.ts +4 -0
- package/es/hooks/useLocale.mjs +32 -0
- package/es/hooks/useTheme.d.ts +8 -0
- package/es/hooks/useTheme.mjs +20 -0
- package/es/index.d.ts +7 -7
- package/es/index.mjs +35 -24
- package/es/modules/code-editor/index.d.ts +163 -0
- package/es/modules/code-editor/index.mjs +8 -0
- package/es/modules/code-editor/monaco-editor.css +49 -0
- package/es/modules/code-editor/monaco-editor.vue.d.ts +143 -0
- package/es/modules/code-editor/monaco-editor.vue.mjs +7 -0
- package/es/modules/code-editor/monaco-editor.vue2.mjs +440 -0
- package/es/modules/code-editor/useEditorConsole.d.ts +54 -0
- package/es/modules/code-editor/useEditorConsole.mjs +194 -0
- package/es/modules/code-editor/useMonacoEditor.d.ts +26 -0
- package/es/modules/code-editor/useMonacoEditor.mjs +26 -0
- package/es/modules/color-picker/index.d.ts +2 -0
- package/es/modules/color-picker/src/ColorPicker.css +16 -0
- package/es/modules/color-picker/src/ColorPicker.vue.d.ts +49 -0
- package/es/modules/color-picker/src/ColorPicker.vue.mjs +8 -0
- package/es/modules/color-picker/src/ColorPicker.vue2.mjs +545 -0
- package/es/modules/color-picker/src/ColorPicker2.css +156 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.css +72 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.d.ts +37 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs +195 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.css +79 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.d.ts +29 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs +98 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.css +70 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.d.ts +50 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs +239 -0
- package/es/modules/gct-dnd/constants/index.d.ts +22 -0
- package/es/modules/gct-dnd/constants/index.mjs +20 -0
- package/es/modules/gct-dnd/index.d.ts +5 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-config.d.ts +101 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-data.d.ts +14 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-render-item-options.d.ts +28 -0
- package/es/modules/gct-dnd/interface/i-gct-drag-collect.d.ts +24 -0
- package/es/modules/gct-dnd/interface/i-gct-drag-dnd-data.d.ts +51 -0
- package/es/modules/gct-dnd/interface/i-gct-drop-collect.d.ts +32 -0
- package/es/modules/gct-dnd/interface/i-gct-drop-result.d.ts +47 -0
- package/es/modules/gct-dnd/interface/index.d.ts +7 -0
- package/es/modules/global-modal/index.d.ts +5 -0
- package/es/modules/global-modal/index.mjs +16 -0
- package/es/modules/global-modal/src/BasicModal.vue.d.ts +518 -0
- package/es/modules/global-modal/src/BasicModal.vue.mjs +221 -0
- package/es/modules/global-modal/src/BasicModal.vue2.mjs +5 -0
- package/es/modules/global-modal/src/components/GlboalModal.d.ts +251 -0
- package/es/modules/global-modal/src/components/GlboalModal.mjs +40 -0
- package/es/modules/global-modal/src/components/ModalClose.css +95 -0
- package/es/modules/global-modal/src/components/ModalClose.vue.d.ts +27 -0
- package/es/modules/global-modal/src/components/ModalClose.vue.mjs +79 -0
- package/es/modules/global-modal/src/components/ModalClose.vue3.mjs +6 -0
- package/es/modules/global-modal/src/components/ModalFooter.vue.d.ts +270 -0
- package/es/modules/global-modal/src/components/ModalFooter.vue.mjs +44 -0
- package/es/modules/global-modal/src/components/ModalFooter.vue2.mjs +5 -0
- package/es/modules/global-modal/src/components/ModalHeader.vue.d.ts +17 -0
- package/es/modules/global-modal/src/components/ModalHeader.vue.mjs +11 -0
- package/es/modules/global-modal/src/components/ModalHeader.vue2.mjs +13 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +95 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +26 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue2.mjs +136 -0
- package/es/modules/global-modal/src/hooks/useModal.d.ts +6 -0
- package/es/modules/global-modal/src/hooks/useModal.mjs +120 -0
- package/es/modules/global-modal/src/hooks/useModalContext.d.ts +5 -0
- package/es/modules/global-modal/src/hooks/useModalContext.mjs +11 -0
- package/es/modules/global-modal/src/hooks/useModalDrag.d.ts +7 -0
- package/es/modules/global-modal/src/hooks/useModalDrag.mjs +82 -0
- package/es/modules/global-modal/src/hooks/useModalFullScreen.d.ts +11 -0
- package/es/modules/global-modal/src/hooks/useModalFullScreen.mjs +16 -0
- package/es/modules/global-modal/src/index.css +153 -0
- package/es/modules/global-modal/src/props.d.ts +156 -0
- package/es/modules/global-modal/src/props.mjs +57 -0
- package/es/modules/global-modal/src/typing.d.ts +174 -0
- package/es/modules/target-loading/index.d.ts +4 -0
- package/es/modules/target-loading/src/createLoading.d.ts +13 -0
- package/es/modules/target-loading/src/createLoading.mjs +57 -0
- package/es/modules/target-loading/src/target-loading.css +18 -0
- package/es/modules/target-loading/src/target-loading.vue.d.ts +57 -0
- package/es/modules/target-loading/src/target-loading.vue.mjs +52 -0
- package/es/modules/target-loading/src/target-loading.vue3.mjs +7 -0
- package/es/modules/target-loading/src/typing.d.ts +9 -0
- package/es/modules/target-loading/src/useLoading.d.ts +9 -0
- package/es/setup-app.d.ts +1 -0
- package/es/setup-app.mjs +4 -0
- package/es/types/index.d.ts +190 -0
- package/es/utils/index.d.ts +4 -1
- package/es/utils/message-util/message-util.d.ts +7 -0
- package/es/utils/message-util/message-util.mjs +26 -0
- package/es/utils/monaco-loader/monaco-loader.d.ts +59 -0
- package/es/utils/monaco-loader/monaco-loader.mjs +88 -0
- package/es/utils/overlay-controller/overlay-controller.d.ts +18 -0
- package/es/utils/overlay-controller/overlay-controller.mjs +23 -0
- package/es/utils/with-install.mjs +0 -1
- package/es/widgets/gct-edit-form/gct-edit-form.d.ts +1 -1
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.d.ts +1 -1
- package/package.json +19 -8
- package/dist/index.min.css.css +0 -1
- package/es/components/code-editor/code-editor.scss +0 -3
- package/es/components/layout/flex-container/flex-container.scss +0 -3
- package/es/components/layout/flex-item/flex-item.scss +0 -17
- package/es/components/layout/view-container/view-container.scss +0 -19
- package/es/editor/gct-form-check-switch/gct-form-check-switch.mjs +0 -53
- package/es/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +0 -6
- package/es/editor/gct-form-check-switch/gct-form-check-switch.scss +0 -10
- package/es/editor/gct-form-check-switch/index.mjs +0 -12
- package/es/editor/gct-form-checkbox/gct-form-checkbox.mjs +0 -70
- package/es/editor/gct-form-checkbox/gct-form-checkbox.scss +0 -56
- package/es/editor/gct-form-checkbox/index.mjs +0 -19
- package/es/editor/gct-form-color/gct-form-color.mjs +0 -45
- package/es/editor/gct-form-color/gct-form-color.provider.mjs +0 -6
- package/es/editor/gct-form-color/gct-form-color.scss +0 -3
- package/es/editor/gct-form-color/index.mjs +0 -17
- package/es/editor/gct-form-field-select/gct-form-field-select.mjs +0 -48
- package/es/editor/gct-form-field-select/gct-form-field-select.provider.mjs +0 -6
- package/es/editor/gct-form-field-select/gct-form-field-select.scss +0 -7
- package/es/editor/gct-form-field-select/gct-model-select.vue +0 -70
- package/es/editor/gct-form-field-select/index.mjs +0 -12
- package/es/editor/gct-form-i18n/gct-form-i18n.mjs +0 -62
- package/es/editor/gct-form-i18n/gct-form-i18n.provider.mjs +0 -6
- package/es/editor/gct-form-i18n/index.mjs +0 -12
- package/es/editor/gct-form-icon-select/gct-form-icon-select.mjs +0 -74
- package/es/editor/gct-form-icon-select/gct-form-icon-select.scss +0 -14
- package/es/editor/gct-form-icon-select/index.mjs +0 -14
- package/es/editor/gct-form-info/gct-form-info.mjs +0 -40
- package/es/editor/gct-form-info/gct-form-info.scss +0 -8
- package/es/editor/gct-form-info/index.mjs +0 -14
- package/es/editor/gct-form-length-unit/gct-form-length-unit.mjs +0 -43
- package/es/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +0 -6
- package/es/editor/gct-form-length-unit/index.mjs +0 -12
- package/es/editor/gct-form-modal-select/gct-form-modal-select.mjs +0 -99
- package/es/editor/gct-form-modal-select/gct-form-modal-select.provider.mjs +0 -6
- package/es/editor/gct-form-modal-select/gct-form-modal-select.scss +0 -7
- package/es/editor/gct-form-modal-select/index.mjs +0 -12
- package/es/editor/gct-form-number/gct-form-number.mjs +0 -44
- package/es/editor/gct-form-number/gct-form-number.provider.mjs +0 -6
- package/es/editor/gct-form-number/gct-form-number.scss +0 -3
- package/es/editor/gct-form-number/index.mjs +0 -17
- package/es/editor/gct-form-picker/gct-form-picker.mjs +0 -92
- package/es/editor/gct-form-picker/gct-form-picker.provider.mjs +0 -6
- package/es/editor/gct-form-picker/index.mjs +0 -12
- package/es/editor/gct-form-radio/gct-form-radio.mjs +0 -70
- package/es/editor/gct-form-radio/gct-form-radio.scss +0 -68
- package/es/editor/gct-form-radio/index.mjs +0 -19
- package/es/editor/gct-form-select/gct-form-select.mjs +0 -50
- package/es/editor/gct-form-select/gct-form-select.provider.mjs +0 -6
- package/es/editor/gct-form-select/index.mjs +0 -12
- package/es/editor/gct-form-span/gct-form-span.mjs +0 -89
- package/es/editor/gct-form-span/gct-form-span.provider.mjs +0 -6
- package/es/editor/gct-form-span/gct-form-span.scss +0 -10
- package/es/editor/gct-form-span/index.mjs +0 -12
- package/es/editor/gct-form-switch/gct-form-switch.mjs +0 -35
- package/es/editor/gct-form-switch/gct-form-switch.provider.mjs +0 -6
- package/es/editor/gct-form-switch/index.mjs +0 -17
- package/es/editor/gct-form-text/gct-form-text.mjs +0 -45
- package/es/editor/gct-form-text/gct-form-text.provider.mjs +0 -6
- package/es/editor/gct-form-text/index.mjs +0 -17
- package/es/editor/gct-form-textarea/gct-form-textarea.mjs +0 -40
- package/es/editor/gct-form-textarea/gct-form-textarea.provider.mjs +0 -6
- package/es/editor/gct-form-textarea/index.mjs +0 -12
- package/es/editor/index.mjs +0 -51
- package/es/utils/index.mjs +0 -3
- package/es/vite-env.d.ts +0 -1
- package/es/widgets/gct-edit-form/gct-edit-form.mjs +0 -126
- package/es/widgets/gct-edit-form/index.mjs +0 -10
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +0 -73
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.scss +0 -62
- package/es/widgets/gct-form/gct-form-collapse/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +0 -71
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +0 -13
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.scss +0 -23
- package/es/widgets/gct-form/gct-form-collapse-pane/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-group/gct-form-group.mjs +0 -88
- package/es/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-group/gct-form-group.scss +0 -28
- package/es/widgets/gct-form/gct-form-group/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +0 -13
- package/es/widgets/gct-form/gct-form-item/gct-form-item.mjs +0 -141
- package/es/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-item/gct-form-item.scss +0 -115
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +0 -53
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.scss +0 -63
- package/es/widgets/gct-form/gct-form-tab/index.mjs +0 -12
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +0 -65
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.scss +0 -16
- package/es/widgets/gct-form/gct-form-tab-pane/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +0 -71
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.scss +0 -25
- package/es/widgets/gct-form/gct-form-title-group/index.mjs +0 -16
- package/es/widgets/gct-form/gct-form.mjs +0 -112
- package/es/widgets/gct-form/gct-form.scss +0 -11
- package/es/widgets/gct-form/index.mjs +0 -31
package/dist/index.min.cjs
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yn(Object(r),!0).forEach(function(n){rl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function al(e,t){if(e==null)return{};var r,n,o=il(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function il(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ll(e,t){return tl(e)||nl(e,t)||ul(e,t)||ol()}function sl(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cl(e){var t=sl(e,"string");return typeof t=="symbol"?t:t+""}function ul(e,t){if(e){if(typeof e=="string")return Xn(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xn(e,t):void 0}}function dl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zn(Object(r),!0).forEach(function(n){dl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function St(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,l=new Array(c),s=0;s<c;s++)l[s]=arguments[s];return t.apply(r,[].concat(o,l))}}}function Qt(e){return{}.toString.call(e).includes("Object")}function pl(e){return!Object.keys(e).length}function Vt(e){return typeof e=="function"}function hl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function vl(e,t){return Qt(t)||je("changeType"),Object.keys(t).some(function(r){return!hl(e,r)})&&je("changeField"),t}function ml(e){Vt(e)||je("selectorType")}function gl(e){Vt(e)||Qt(e)||je("handlerType"),Qt(e)&&Object.values(e).some(function(t){return!Vt(t)})&&je("handlersType")}function yl(e){e||je("initialIsRequired"),Qt(e)||je("initialType"),pl(e)&&je("initialContent")}function bl(e,t){throw new Error(e[t]||e.default)}var Cl={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},je=St(bl)(Cl),Ht={changes:vl,selector:ml,handler:gl,initial:yl};function wl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ht.initial(e),Ht.handler(t);var r={current:e},n=St(kl)(r,t),o=St(xl)(r),i=St(Ht.changes)(e),c=St(Sl)(r);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return Ht.selector(d),d(r.current)}function s(d){fl(n,o,i,c)(d)}return[l,s]}function Sl(e,t){return Vt(t)?t(e.current):t}function xl(e,t){return e.current=Qn(Qn({},e.current),t),t}function kl(e,t,r){return Vt(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var Ol={create:wl},El={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function _l(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,l=new Array(c),s=0;s<c;s++)l[s]=arguments[s];return t.apply(r,[].concat(o,l))}}}function Nl(e){return{}.toString.call(e).includes("Object")}function Al(e){return e||eo("configIsRequired"),Nl(e)||eo("configType"),e.urls?(Vl(),{paths:{vs:e.urls.monacoBase}}):e}function Vl(){console.warn(Va.deprecation)}function Tl(e,t){throw new Error(e[t]||e.default)}var Va={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
3
|
-
You are using deprecated way of configuration.
|
|
4
|
-
|
|
5
|
-
Instead of using
|
|
6
|
-
monaco.config({ urls: { monacoBase: '...' } })
|
|
7
|
-
use
|
|
8
|
-
monaco.config({ paths: { vs: '...' } })
|
|
9
|
-
|
|
10
|
-
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
11
|
-
`},eo=_l(Tl)(Va),jl={config:Al},Pl=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,c){return c(i)},o)}};function Ta(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],Ta(e[r],t[r]))}),Jn(Jn({},e),t)}var $l={type:"cancelation",msg:"operation is manually canceled"};function Or(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o($l):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var Rl=["monaco"],Il=Ol.create({config:El,isInitialized:!1,resolve:null,reject:null,monaco:null}),ja=ll(Il,2),It=ja[0],pr=ja[1];function Ml(e){var t=jl.config(e),r=t.monaco,n=al(t,Rl);pr(function(o){return{config:Ta(o.config,n),monaco:r}})}function Fl(){var e=It(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(pr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Or(Er);if(window.monaco&&window.monaco.editor)return Pa(window.monaco),e.resolve(window.monaco),Or(Er);Pl(Bl,Gl)(Hl)}return Or(Er)}function Bl(e){return document.body.appendChild(e)}function Ll(e){var t=document.createElement("script");return e&&(t.src=e),t}function Gl(e){var t=It(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=Ll("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Hl(){var e=It(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var n=r.m||r;Pa(n),e.resolve(n)},function(r){e.reject(r)})}function Pa(e){It().monaco||pr({monaco:e})}function Dl(){return It(function(e){var t=e.monaco;return t})}var Er=new Promise(function(e,t){return pr({resolve:e,reject:t})}),zl={config:Ml,init:Fl,__getMonacoInstance:Dl};const Ur=a.defineComponent({name:"CodeEditor",props:{value:{type:String,default:""},config:{type:Object,default:()=>({})},language:{type:String,default:"typescript"}},emits:["update:value"],setup(e,{emit:t}){const r=b.useNamespace("code-editor"),n=a.computed({get(){return e.value||""},set(c){t("update:value",c)}}),o=a.ref(null);let i=null;return a.onMounted(()=>{zl.init().then(c=>{o.value&&(i=c.editor.create(o.value,b.deepMerge({value:n.value,language:e.language,automaticLayout:!0,minimap:{enabled:!1}},e.config)),i.onDidBlurEditorText(()=>{n.value=i.getValue()}))})}),a.onUnmounted(()=>{i?.dispose()}),()=>a.createVNode("div",{ref:o,class:r.b()},null)}}),Kr=a.defineComponent({name:"FlexItem",props:{layout:Object},setup(e){return{ns:b.useNamespace("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:i,flexBasis:c,flexGrow:l,flexShrink:s}=e.layout;o!=null&&(n.order=o),i!=null&&(n["align-self"]=i),c!=null&&(n["flex-basis"]=c),l!=null&&(n["flex-grow"]=l),s!=null&&(n["flex-shrink"]=s)}return n}}},render(){return a.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[this.$slots.default?.()])}});function ql(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const to=a.defineComponent({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:b.useNamespace("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:i,alignItems:c,flexDirection:l,flexWrap:s,justifyContent:d}=e.layout;i!=null&&(o.alignContent=i),c!=null&&(o.alignItems=c),l!=null&&(o.flexDirection=l),s!=null&&(o.flexWrap=s),d!=null&&(o.justifyContent=d)}return o},getItemStyle:o=>{const i={};if(o){const{width:c,height:l}=o;c!=null&&(i.width=c),l!=null&&(i.height=l)}return i}}},render(){let e=this.$slots.default?.()||[];return e.length>0&&(e=e[0].children||[]),a.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[e.map(t=>{if(!t)return null;const r=t.props.model.flexItem;return a.createVNode(Kr,{layout:r,style:this.getItemStyle(t.props.model)},ql(t)?t:{default:()=>[t]})})])}});function ro(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const no=a.defineComponent({name:"GridContainer",props:{layout:Object},setup(){return{ns:b.useNamespace("grid-container")}},render(){let e;const t=this.layout||{};let r=this.$slots.default?.()||[];return r.length>0&&(r=r[0].children||[]),a.createVNode(a.resolveComponent("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},ro(e=r.map(n=>{if(!n)return null;const o=n.props.model.gridItem;return a.createVNode(a.resolveComponent("a-col"),{span:o?o.span??24:24,offset:o?o.offset??0:0},ro(n)?n:{default:()=>[n]})}))?e:{default:()=>[e]})}}),oo=a.defineComponent({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:b.useNamespace("view-container")}},render(){return a.createVNode("div",{class:this.ns.b()},[this.$slots.header?a.createVNode("div",{class:this.ns.b("header")},[this.$slots.header()]):null,a.createVNode("div",{class:this.ns.b("content")},[this.$slots.default?.()]),this.$slots.footer?a.createVNode("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),Wl=a.defineComponent({name:"GctFormLengthUnit",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,required:!0}},emits:["update:value"],setup(e){const t=b.useNamespace("form-length-unit"),r=new b.LengthUnitEditorController(e.model),n=b.useGctFormValue();return{ns:t,c:r,val:n}},render(){return a.createVNode(a.resolveComponent("length-unit-editor"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]}),null)}});class Ul{component="gct-form-length-unit"}const Kl=b.widthEditorInstall(b.EditorTypeOld.LENGTH_UNIT,()=>new Ul,Wl),$a=a.defineComponent({name:"GctFormColor",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String}},emits:["update:value"],setup(){const e=b.useNamespace("form-color"),t=b.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode(a.resolveComponent("color-picker"),a.mergeProps({pureColor:this.val,"onUpdate:pureColor":e=>this.val=e,format:"rgba",shape:"circle","use-type":"pure","picker-type":"chrome",class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]},this.model.props||{}),null)}});class Ra{component="gct-form-color"}const Xl=b.widthEditorInstall(b.EditorType.COLOR,()=>new Ra,$a),Yl=b.widthEditorInstall(b.EditorTypeOld.COLOR,()=>new Ra,$a);class Jl{component="gct-form-check-switch"}const Zl=a.defineComponent({name:"GctFormCheckSwitch",props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:Boolean,default:!1}},emits:["update:value"],setup(e){const t=b.useNamespace("gct-form-check-switch"),r=new b.EditorController(e.model),n=b.useGctFormValue();return{ns:t,c:r,val:n}},render(){return this.model.isSwitch?a.createVNode("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[a.createVNode(a.resolveComponent("a-switch"),a.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):a.createVNode(a.resolveComponent("a-checkbox"),a.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.m("checkbox"),this.ns.is("readonly",this.model.readonly)]}),{default:()=>[this.model.label]})}}),Ql=b.widthEditorInstall(b.EditorTypeOld.CHECK_SWITCH,()=>new Jl,Zl);class es{component="gct-form-i18n"}const ts=a.defineComponent({name:"GctFormI18n",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=b.useNamespace("gct-form-i18n"),r=b.useForm().item.i18nConfig,n=b.useGctFormValue(),o=a.computed({get:()=>r?r.value:"",set:i=>{r&&(r.value=i)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return a.createVNode(a.resolveComponent("i18n-select-input"),a.mergeProps(this.model.props||{},{i18nText:this.val,"onUpdate:i18nText":e=>this.val=e,i18nConfig:this.i18nConfigValue,"onUpdate:i18nConfig":e=>this.i18nConfigValue=e,inputExtraProps:{showCount:!0,maxlength:32,disabled:this.c.state.disabled}}),null)}}),rs=b.widthEditorInstall(b.EditorTypeOld.I18N,()=>new es,ts),ns=a.defineComponent({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){const r=b.useNamespace("gct-form-icon-select"),n=a.ref(e.value),o=a.ref(n.value?.icon||e.model.defaultIcon),i=a.ref(n.value?.color||e.model.defaultColor),c=a.ref(n.value?.background||e.model.defaultBackground);a.watch(()=>e.value,s=>{n.value=s,s&&(o.value=s.icon,i.value=s.color)}),a.watch([o,i,c],()=>{n.value={icon:o.value,color:i.value},t("update:value",n.value)});const l=a.computed(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:i,background:c,nextPickerStyle:l}},render(){return a.createVNode("div",{class:this.ns.b()},[a.createVNode(a.resolveComponent("icon-next-picker"),{value:this.icon,"onUpdate:value":e=>this.icon=e,color:this.color,"onUpdate:color":e=>this.color=e,background:"#f5f5f5",disabled:this.model.disabled,showColor:this.model.showColor!==!1,style:this.nextPickerStyle},null),this.model.label?a.createVNode("span",{class:this.ns.e("title")},[this.model.label]):null])}});let os=class{component="gct-form-icon-select"};const as=b.widthEditorInstall(b.EditorTypeOld.ICON_SELECT,()=>new os,ns);class Ia{component="gct-form-number"}const Ma=a.defineComponent({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=b.useNamespace("gct-form-number"),t=b.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode(a.resolveComponent("a-input-number"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e,class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,max:this.model.max,min:this.model.min,precision:this.model.precision},this.model.props||{}),null)}}),is=b.widthEditorInstall(b.EditorType.NUMBER,()=>new Ia,Ma),ls=b.widthEditorInstall(b.EditorTypeOld.NUMBER,()=>new Ia,Ma);class ss{component="gct-form-picker"}const cs=a.defineComponent({name:"GctFormPicker",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(e,{emit:t}){const r=b.useNamespace("gct-form-picker"),n=a.computed({get(){return e.model.nameField?e.c.data[e.model.nameField]:""},set(l){e.model.nameField&&(e.c.data[e.model.nameField]=l)}}),o=a.computed({get:()=>!e.c.state.options.find(s=>s.value===e.value)&&n.value?n.value:e.value,set:l=>{typeof l=="string"&&(l=l.trim()),!(typeof l!="object"&&e.value==l)&&t("update:value",l)}}),i=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:i,onChange:(l,s)=>{n.value=s.label}}},render(){return a.createVNode(a.resolveComponent("a-select"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),disabled:this.c.state.disabled,loading:this.c.state.loading,options:this.c.state.options,placeholder:this.model.placeholder,onDropdownVisibleChange:this.loadOptions,onChange:this.onChange}),null)}}),us=b.widthEditorInstall(b.EditorTypeOld.PICKER,()=>new ss,cs);class ds{component="gct-form-select"}const fs=a.defineComponent({name:"GctFormSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=b.useNamespace("gct-form-select"),r=b.useGctFormValue(),n=a.computed(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return a.createVNode(a.resolveComponent("a-select"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)}}),ps=b.widthEditorInstall(b.EditorTypeOld.SELECT,()=>new ds,fs);class hs{component="gct-form-Modal-select"}const vs=a.defineComponent({name:"GctFormModalSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=b.useNamespace("gct-form-modal-select"),t=a.ref("1"),r=b.useGctFormValue(),n=a.computed({get(){return r.value||void 0},set(i){r.value=i}}),o=a.computed(()=>[{label:"默认",options:[{value:"1",label:"模型一"},{value:"2",label:"模型二"}]},{label:"产品建模",options:[{value:"3",label:"产品信息"},{value:"4",label:"产品类型"}]}]);return{ns:e,val:n,options:o,modelCategory:t}},render(){return a.createVNode(a.resolveComponent("a-input-group"),{class:this.ns.b()},{default:()=>[a.createVNode(a.resolveComponent("a-form-item-rest"),null,{default:()=>[a.createVNode(a.resolveComponent("a-select"),a.mergeProps({value:this.modelCategory,"onUpdate:value":e=>this.modelCategory=e},this.model.props||{},{placeholder:"请选择",options:[{value:"1",label:"实体"},{value:"2",label:"视图"},{value:"3",label:"数据"}],disabled:this.c.state.disabled}),null)]}),a.createVNode(a.resolveComponent("a-select"),a.mergeProps({class:this.ns.e("select"),value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{placeholder:"请选择",options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)]})}}),ms=b.widthEditorInstall(b.EditorTypeOld.MODEL_SELECT,()=>new hs,vs);class gs{component="gct-form-field-select"}const ys={class:"gct-box"},bs=a.defineComponent({__name:"gct-model-select",props:{value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,n=t,o=a.computed({get(){return r.value},set(d){n("update:value",d)}}),i=a.ref([{key:0,title:"公司名称"},{key:1,title:"ID"},{key:2,title:"创建人"},{key:3,title:"创建部门"},{key:4,title:"修改时间"},{key:5,title:"修改人"},{key:6,title:"修改部门"}]),c=a.ref([]),l=(d,u)=>{console.log()};function s(){o.value=!1}return(d,u)=>{const f=a.resolveComponent("a-transfer"),p=a.resolveComponent("a-modal");return a.openBlock(),a.createBlock(p,{visible:o.value,"onUpdate:visible":u[1]||(u[1]=h=>o.value=h),width:"600px",title:"关联模型字段","ok-text":"确认","cancel-text":"取消",onOk:s},{default:a.withCtx(()=>[u[2]||(u[2]=a.createElementVNode("div",null,"所属模型:公司",-1)),a.createElementVNode("div",ys,[a.createVNode(f,{"target-keys":c.value,"onUpdate:targetKeys":u[0]||(u[0]=h=>c.value=h),locale:{itemUnit:"项已选",itemsUnit:"项未选",searchPlaceholder:"请输入搜索内容"},"data-source":i.value,"show-search":"","filter-option":l,render:h=>h.title},null,8,["target-keys","data-source","render"])])]),_:1},8,["visible"])}}}),Cs=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},ao=Cs(bs,[["__scopeId","data-v-8b0215cc"]]),ws=a.defineComponent({name:"GctFormFieldSelect",components:{modal:ao},props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=b.useNamespace("gct-form-field-select"),t=a.ref(!1);return{ns:e,visible:t}},render(){return a.createVNode("div",null,[a.createVNode(a.resolveComponent("a-button"),{onClick:()=>this.visible=!0,block:!0},{default:()=>[a.createTextVNode("选择模型字段")]}),a.createVNode(ao,{value:this.visible,"onUpdate:value":e=>this.visible=e},null)])}}),Ss=b.widthEditorInstall(b.EditorTypeOld.Field_SELECT,()=>new gs,ws);class xs{component="gct-form-span"}const ks=a.defineComponent({name:"GctFormSpan",props:{c:{type:Object,required:!0},itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},setup(e){const t=b.useNamespace("form-span"),{model:r,itemModel:n,c:o}=a.toRefs(e);function i(){const{isSuccessRef:l}=b.useCopyToClipboard(e.value);l.value&&He.message.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const c=a.computed(()=>{if(r.value.format&&typeof r.value.format=="function")return r.value.format(o.value.data,n.value,o.value);if(e.value==null||e.value==="")return e.value;if(n.value.dictionary){const s=(n.value.dictionary.items||[]).find(d=>d.value==e.value);if(s)return s.label}if(o.value.state.options.length>0){const l=o.value.state.options.find(s=>s.value==e.value);if(l)return l.label}return e.value});return{ns:t,val:c,handleClipboardKey:i}},render(){return a.createVNode("div",{class:this.ns.b()},[a.createVNode("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&a.createVNode("span",{class:this.ns.e("copy")},[a.createVNode("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),Os=b.widthEditorInstall(b.EditorTypeOld.SPAN,()=>new xs,ks);class Fa{component="gct-form-switch"}const Ba=a.defineComponent({name:"GctFormSwitch",props:{model:{type:Object,required:!0},value:{type:String,default:""}},setup(){const e=b.useNamespace("gct-form-switch"),t=b.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode("div",{class:this.ns.b()},[a.createVNode(a.resolveComponent("a-switch"),a.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),Es=b.widthEditorInstall(b.EditorType.SWITCH,()=>new Fa,Ba),_s=b.widthEditorInstall(b.EditorTypeOld.SWITCH,()=>new Fa,Ba);class La{component="gct-form-text"}const Ga=a.defineComponent({name:"GctFormText",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=b.useNamespace("gct-form-text"),r=new b.EditorController(e.model),n=b.useGctFormValueByText(e.model.prefix||e.model.addonBefore,e.model.suffix||e.model.addonAfter);return{ns:t,c:r,val:n}},render(){return a.createVNode(a.resolveComponent("a-input"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,"show-count":this.model.max!=null,maxlength:this.model.max}),null)}}),Ns=b.widthEditorInstall(b.EditorType.TEXT,()=>new La,Ga),As=b.widthEditorInstall(b.EditorTypeOld.TEXT,()=>new La,Ga);class Vs{component="gct-form-textarea"}const Ts=a.defineComponent({name:"GctFormTextarea",props:{model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(){const e=b.useNamespace("gct-form-textarea"),t=b.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode(a.resolveComponent("a-textarea"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),"auto-size":this.model.autoSize,"show-count":this.model.max!=null,maxlength:this.model.max,placeholder:this.model.placeholder}),null)}}),js=b.widthEditorInstall(b.EditorTypeOld.TEXTAREA,()=>new Vs,Ts);function Ps(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Ha=a.defineComponent({name:"GctFormRadio",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=b.useNamespace("gct-form-radio"),t=b.useGctFormValue();return{ns:e,val:t}},render(){const e={...this.model.props||{},class:[this.ns.b()],allowClear:!0,disabled:this.c.state.disabled};if(this.model.buttonMode){let t;return e.class.push(this.ns.m("button")),a.createVNode(He.RadioGroup,a.mergeProps({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),Ps(t=this.c.state.options.map(r=>a.createVNode(He.RadioButton,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),a.createVNode(He.RadioGroup,a.mergeProps({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let Da=class{component="gct-form-radio"};const $s=b.widthEditorInstall(b.EditorType.RADIO,()=>new Da,Ha),Rs=b.widthEditorInstall(b.EditorTypeOld.RADIO,()=>new Da,Ha),Is=a.defineComponent({name:"GctFormInfo",props:{value:{type:String,default:""},model:{type:Object,required:!0}},emits:["update:value"],setup(){const e=b.useNamespace("gct-form-info"),t=b.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode("div",{class:this.ns.b()},[this.model.icon?a.createVNode("span",{class:this.ns.e("icon")},[a.createVNode("i",{class:`iconfont ${this.model.icon}`},null)]):null,a.createVNode("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let Ms=class{component="gct-form-info"};const Fs=b.widthEditorInstall(b.EditorTypeOld.INFO,()=>new Ms,Is),za=a.defineComponent({name:"GctFormCheckbox",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:t}){const r=b.useNamespace("gct-form-checkbox"),n=b.useGctFormValue(),o=a.computed(()=>n.value),i=a.computed(()=>ht.cloneDeep(e.c.state.options));return{ns:r,checked:o,onChange:l=>{i.value.forEach(s=>{e.model.minLength&&l.length<=e.model.minLength&&l.includes(s.value)?s.disabled=!0:s.disabled=!1,s.checked=l.includes(s.value)}),t("update:value",l)},options:i}},render(){const e={...this.model.props||{},class:[this.ns.b(),this.ns.m("checkbox"),this.model.layout==="column"&&"isColumn"],disabled:this.c.state.disabled};return a.createVNode(He.CheckboxGroup,a.mergeProps({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class qa{component="gct-form-checkbox"}const Bs=b.widthEditorInstall(b.EditorType.CHECKBOX,()=>new qa,za),Ls=b.widthEditorInstall(b.EditorTypeOld.CHECKBOX,()=>new qa,za);function Gs(e,t){return a.getCurrentScope()?(a.onScopeDispose(e,t),!0):!1}const ln=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Hs=Object.prototype.toString,Ds=e=>Hs.call(e)==="[object Object]",Le=()=>{};function zs(...e){if(e.length!==1)return a.toRef(...e);const t=e[0];return typeof t=="function"?a.readonly(a.customRef(()=>({get:t,set:Le}))):a.ref(t)}function Wa(e,t){function r(...n){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(i)})}return r}const Ua=e=>e();function qs(e,t={}){let r,n,o=Le;const i=s=>{clearTimeout(s),o(),o=Le};let c;return s=>{const d=a.toValue(e),u=a.toValue(t.maxWait);return r&&i(r),d<=0||u!==void 0&&u<=0?(n&&(i(n),n=void 0),Promise.resolve(s())):new Promise((f,p)=>{o=t.rejectOnCancel?p:f,c=s,u&&!n&&(n=setTimeout(()=>{r&&i(r),n=void 0,f(c())},u)),r=setTimeout(()=>{n&&i(n),n=void 0,f(s())},d)})}}function Ws(e=Ua,t={}){const{initialState:r="active"}=t,n=zs(r==="active");function o(){n.value=!1}function i(){n.value=!0}const c=(...l)=>{n.value&&e(...l)};return{isActive:a.readonly(n),pause:o,resume:i,eventFilter:c}}function Us(e){let t;function r(){return t||(t=e()),t}return r.reset=async()=>{const n=t;t=void 0,n&&await n},r}function _r(e){return Array.isArray(e)?e:[e]}function Ks(e){return a.getCurrentInstance()}function Ee(e,t=200,r={}){return Wa(qs(t,r),e)}function Xs(e,t,r={}){const{eventFilter:n=Ua,...o}=r;return a.watch(e,Wa(n,t),o)}function Ys(e,t,r={}){const{eventFilter:n,initialState:o="active",...i}=r,{eventFilter:c,pause:l,resume:s,isActive:d}=Ws(n,{initialState:o});return{stop:Xs(e,t,{...i,eventFilter:c}),pause:l,resume:s,isActive:d}}const Js=Ys;function Ke(e,t=!0,r){Ks()?a.onMounted(e,r):t?e():a.nextTick(e)}function Zs(e,t,r={}){const{immediate:n=!0,immediateCallback:o=!1}=r,i=a.shallowRef(!1);let c;function l(){c&&(clearTimeout(c),c=void 0)}function s(){i.value=!1,l()}function d(...u){o&&e(),l(),i.value=!0,c=setTimeout(()=>{i.value=!1,c=void 0,e(...u)},a.toValue(t))}return n&&(i.value=!0,ln&&d()),Gs(s),{isPending:a.shallowReadonly(i),start:d,stop:s}}function Qs(e,t,r){return a.watch(e,t,{...r,immediate:!0})}function Q(e,t,r){const n=a.watch(e,(o,i,c)=>{o&&(r?.once&&a.nextTick(()=>n()),t(o,i,c))},{...r,once:!1});return n}const Ge=ln?window:void 0,Ka=ln?window.navigator:void 0;function xt(e){var t;const r=a.toValue(e);return(t=r?.$el)!==null&&t!==void 0?t:r}function De(...e){const t=(n,o,i,c)=>(n.addEventListener(o,i,c),()=>n.removeEventListener(o,i,c)),r=a.computed(()=>{const n=_r(a.toValue(e[0])).filter(o=>o!=null);return n.every(o=>typeof o!="string")?n:void 0});return Qs(()=>{var n,o;return[(n=(o=r.value)===null||o===void 0?void 0:o.map(i=>xt(i)))!==null&&n!==void 0?n:[Ge].filter(i=>i!=null),_r(a.toValue(r.value?e[1]:e[0])),_r(a.unref(r.value?e[2]:e[1])),a.toValue(r.value?e[3]:e[2])]},([n,o,i,c],l,s)=>{if(!n?.length||!o?.length||!i?.length)return;const d=Ds(c)?{...c}:c,u=n.flatMap(f=>o.flatMap(p=>i.map(h=>t(f,p,h,d))));s(()=>{u.forEach(f=>f())})},{flush:"post"})}function ec(e,t,r={}){const{window:n=Ge,ignore:o=[],capture:i=!0,detectIframe:c=!1,controls:l=!1}=r;if(!n)return l?{stop:Le,cancel:Le,trigger:Le}:Le;let s=!0;const d=v=>a.toValue(o).some(m=>{if(typeof m=="string")return Array.from(n.document.querySelectorAll(m)).some(y=>y===v.target||v.composedPath().includes(y));{const y=xt(m);return y&&(v.target===y||v.composedPath().includes(y))}});function u(v){const m=a.toValue(v);return m&&m.$.subTree.shapeFlag===16}function f(v,m){const y=a.toValue(v),S=y.$.subTree&&y.$.subTree.children;return S==null||!Array.isArray(S)?!1:S.some(x=>x.el===m.target||m.composedPath().includes(x.el))}const p=v=>{const m=xt(e);if(v.target!=null&&!(!(m instanceof Element)&&u(e)&&f(e,v))&&!(!m||m===v.target||v.composedPath().includes(m))){if("detail"in v&&v.detail===0&&(s=!d(v)),!s){s=!0;return}t(v)}};let h=!1;const C=[De(n,"click",v=>{h||(h=!0,setTimeout(()=>{h=!1},0),p(v))},{passive:!0,capture:i}),De(n,"pointerdown",v=>{const m=xt(e);s=!d(v)&&!!(m&&!v.composedPath().includes(m))},{passive:!0}),c&&De(n,"blur",v=>{setTimeout(()=>{var m;const y=xt(e);((m=n.document.activeElement)===null||m===void 0?void 0:m.tagName)==="IFRAME"&&!y?.contains(n.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),g=()=>C.forEach(v=>v());return l?{stop:g,cancel:()=>{s=!1},trigger:v=>{s=!0,p(v),s=!1}}:g}function tc(){const e=a.shallowRef(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function Xa(e){const t=tc();return a.computed(()=>(t.value,!!e()))}function io(e,t={}){const{controls:r=!1,navigator:n=Ka}=t,o=Xa(()=>n&&"permissions"in n),i=a.shallowRef(),c=typeof e=="string"?{name:e}:e,l=a.shallowRef(),s=()=>{var u,f;l.value=(u=(f=i.value)===null||f===void 0?void 0:f.state)!==null&&u!==void 0?u:"prompt"};De(i,"change",s,{passive:!0});const d=Us(async()=>{if(o.value){if(!i.value)try{i.value=await n.permissions.query(c)}catch{i.value=void 0}finally{s()}if(r)return a.toRaw(i.value)}});return d(),r?{state:l,isSupported:o,query:d}:l}function rc(e={}){const{navigator:t=Ka,read:r=!1,source:n,copiedDuring:o=1500,legacy:i=!1}=e,c=Xa(()=>t&&"clipboard"in t),l=io("clipboard-read"),s=io("clipboard-write"),d=a.computed(()=>c.value||i),u=a.shallowRef(""),f=a.shallowRef(!1),p=Zs(()=>f.value=!1,o,{immediate:!1});async function h(){let y=!(c.value&&m(l.value));if(!y)try{u.value=await t.clipboard.readText()}catch{y=!0}y&&(u.value=v())}d.value&&r&&De(["copy","cut"],h,{passive:!0});async function C(y=a.toValue(n)){if(d.value&&y!=null){let S=!(c.value&&m(s.value));if(!S)try{await t.clipboard.writeText(y)}catch{S=!0}S&&g(y),u.value=y,f.value=!0,p.start()}}function g(y){const S=document.createElement("textarea");S.value=y,S.style.position="absolute",S.style.opacity="0",S.setAttribute("readonly",""),document.body.appendChild(S),S.select(),document.execCommand("copy"),S.remove()}function v(){var y,S,x;return(y=(S=document)===null||S===void 0||(x=S.getSelection)===null||x===void 0||(x=x.call(S))===null||x===void 0?void 0:x.toString())!==null&&y!==void 0?y:""}function m(y){return y==="granted"||y==="prompt"}return{isSupported:d,text:a.readonly(u),copied:a.readonly(f),copy:C}}const Dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zt="__vueuse_ssr_handlers__",nc=oc();function oc(){return zt in Dt||(Dt[zt]=Dt[zt]||{}),Dt[zt]}function ac(e,t){return nc[e]||t}function ic(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const lc={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},lo="vueuse-storage";function sc(e,t,r,n={}){var o;const{flush:i="pre",deep:c=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:d=!1,shallow:u,window:f=Ge,eventFilter:p,onError:h=N=>{console.error(N)},initOnMounted:C}=n,g=(u?a.shallowRef:a.ref)(typeof t=="function"?t():t),v=a.computed(()=>a.toValue(e));if(!r)try{r=ac("getDefaultStorage",()=>Ge?.localStorage)()}catch(N){h(N)}if(!r)return g;const m=a.toValue(t),y=ic(m),S=(o=n.serializer)!==null&&o!==void 0?o:lc[y],{pause:x,resume:_}=Js(g,N=>B(N),{flush:i,deep:c,eventFilter:p});a.watch(v,()=>A(),{flush:i});let E=!1;const j=N=>{C&&!E||A(N)},M=N=>{C&&!E||$(N)};f&&l&&(r instanceof Storage?De(f,"storage",j,{passive:!0}):De(f,lo,M)),C?Ke(()=>{E=!0,A()}):A();function I(N,P){if(f){const F={key:v.value,oldValue:N,newValue:P,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",F):new CustomEvent(lo,{detail:F}))}}function B(N){try{const P=r.getItem(v.value);if(N==null)I(P,null),r.removeItem(v.value);else{const F=S.write(N);P!==F&&(r.setItem(v.value,F),I(P,F))}}catch(P){h(P)}}function w(N){const P=N?N.newValue:r.getItem(v.value);if(P==null)return s&&m!=null&&r.setItem(v.value,S.write(m)),m;if(!N&&d){const F=S.read(P);return typeof d=="function"?d(F,m):y==="object"&&!Array.isArray(F)?{...m,...F}:F}else return typeof P!="string"?P:S.read(P)}function A(N){if(!(N&&N.storageArea!==r)){if(N&&N.key==null){g.value=m;return}if(!(N&&N.key!==v.value)){x();try{const P=S.write(g.value);(N===void 0||N?.newValue!==P)&&(g.value=w(N))}catch(P){h(P)}finally{N?a.nextTick(_):_()}}}}function $(N){A(N.detail)}return g}function sn(e,t,r={}){const{window:n=Ge}=r;return sc(e,t,n?.localStorage,r)}function er(e){"@babel/helpers - typeof";return er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},er(e)}var cc=/^\s+/,uc=/\s+$/;function k(e,t){if(e=e||"",t=t||{},e instanceof k)return e;if(!(this instanceof k))return new k(e,t);var r=dc(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}k.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,o,i,c,l;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?c=n/12.92:c=Math.pow((n+.055)/1.055,2.4),o<=.03928?l=o/12.92:l=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*c+.0722*l},setAlpha:function(t){return this._a=Ya(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=co(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=co(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=so(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=so(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return uo(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return vc(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(H(this._r,255)*100)+"%",g:Math.round(H(this._g,255)*100)+"%",b:Math.round(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(H(this._r,255)*100)+"%, "+Math.round(H(this._g,255)*100)+"%, "+Math.round(H(this._b,255)*100)+"%)":"rgba("+Math.round(H(this._r,255)*100)+"%, "+Math.round(H(this._g,255)*100)+"%, "+Math.round(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:_c[uo(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+fo(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=k(t);n="#"+fo(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,o=this._a<1&&this._a>=0,i=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return k(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(bc,arguments)},brighten:function(){return this._applyModification(Cc,arguments)},darken:function(){return this._applyModification(wc,arguments)},desaturate:function(){return this._applyModification(mc,arguments)},saturate:function(){return this._applyModification(gc,arguments)},greyscale:function(){return this._applyModification(yc,arguments)},spin:function(){return this._applyModification(Sc,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Oc,arguments)},complement:function(){return this._applyCombination(xc,arguments)},monochromatic:function(){return this._applyCombination(Ec,arguments)},splitcomplement:function(){return this._applyCombination(kc,arguments)},triad:function(){return this._applyCombination(po,[3])},tetrad:function(){return this._applyCombination(po,[4])}};k.fromRatio=function(e,t){if(er(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=kt(e[n]));e=r}return k(e,t)};function dc(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,i=null,c=!1,l=!1;return typeof e=="string"&&(e=Tc(e)),er(e)=="object"&&(ke(e.r)&&ke(e.g)&&ke(e.b)?(t=fc(e.r,e.g,e.b),c=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ke(e.h)&&ke(e.s)&&ke(e.v)?(n=kt(e.s),o=kt(e.v),t=hc(e.h,n,o),c=!0,l="hsv"):ke(e.h)&&ke(e.s)&&ke(e.l)&&(n=kt(e.s),i=kt(e.l),t=pc(e.h,n,i),c=!0,l="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Ya(r),{ok:c,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function fc(e,t,r){return{r:H(e,255)*255,g:H(t,255)*255,b:H(r,255)*255}}function so(e,t,r){e=H(e,255),t=H(t,255),r=H(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i,c,l=(n+o)/2;if(n==o)i=c=0;else{var s=n-o;switch(c=l>.5?s/(2-n-o):s/(n+o),n){case e:i=(t-r)/s+(t<r?6:0);break;case t:i=(r-e)/s+2;break;case r:i=(e-t)/s+4;break}i/=6}return{h:i,s:c,l}}function pc(e,t,r){var n,o,i;e=H(e,360),t=H(t,100),r=H(r,100);function c(d,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?d+(u-d)*6*f:f<1/2?u:f<2/3?d+(u-d)*(2/3-f)*6:d}if(t===0)n=o=i=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=c(s,l,e+1/3),o=c(s,l,e),i=c(s,l,e-1/3)}return{r:n*255,g:o*255,b:i*255}}function co(e,t,r){e=H(e,255),t=H(t,255),r=H(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i,c,l=n,s=n-o;if(c=n===0?0:s/n,n==o)i=0;else{switch(n){case e:i=(t-r)/s+(t<r?6:0);break;case t:i=(r-e)/s+2;break;case r:i=(e-t)/s+4;break}i/=6}return{h:i,s:c,v:l}}function hc(e,t,r){e=H(e,360)*6,t=H(t,100),r=H(r,100);var n=Math.floor(e),o=e-n,i=r*(1-t),c=r*(1-o*t),l=r*(1-(1-o)*t),s=n%6,d=[r,c,i,i,l,r][s],u=[l,r,r,c,i,i][s],f=[i,i,l,r,r,c][s];return{r:d*255,g:u*255,b:f*255}}function uo(e,t,r,n){var o=[be(Math.round(e).toString(16)),be(Math.round(t).toString(16)),be(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function vc(e,t,r,n,o){var i=[be(Math.round(e).toString(16)),be(Math.round(t).toString(16)),be(Math.round(r).toString(16)),be(Ja(n))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function fo(e,t,r,n){var o=[be(Ja(n)),be(Math.round(e).toString(16)),be(Math.round(t).toString(16)),be(Math.round(r).toString(16))];return o.join("")}k.equals=function(e,t){return!e||!t?!1:k(e).toRgbString()==k(t).toRgbString()};k.random=function(){return k.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function mc(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.s-=t/100,r.s=hr(r.s),k(r)}function gc(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.s+=t/100,r.s=hr(r.s),k(r)}function yc(e){return k(e).desaturate(100)}function bc(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.l+=t/100,r.l=hr(r.l),k(r)}function Cc(e,t){t=t===0?0:t||10;var r=k(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),k(r)}function wc(e,t){t=t===0?0:t||10;var r=k(e).toHsl();return r.l-=t/100,r.l=hr(r.l),k(r)}function Sc(e,t){var r=k(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,k(r)}function xc(e){var t=k(e).toHsl();return t.h=(t.h+180)%360,k(t)}function po(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=k(e).toHsl(),n=[k(e)],o=360/t,i=1;i<t;i++)n.push(k({h:(r.h+i*o)%360,s:r.s,l:r.l}));return n}function kc(e){var t=k(e).toHsl(),r=t.h;return[k(e),k({h:(r+72)%360,s:t.s,l:t.l}),k({h:(r+216)%360,s:t.s,l:t.l})]}function Oc(e,t,r){t=t||6,r=r||30;var n=k(e).toHsl(),o=360/r,i=[k(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(k(n));return i}function Ec(e,t){t=t||6;for(var r=k(e).toHsv(),n=r.h,o=r.s,i=r.v,c=[],l=1/t;t--;)c.push(k({h:n,s:o,v:i})),i=(i+l)%1;return c}k.mix=function(e,t,r){r=r===0?0:r||50;var n=k(e).toRgb(),o=k(t).toRgb(),i=r/100,c={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return k(c)};k.readability=function(e,t){var r=k(e),n=k(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};k.isReadable=function(e,t,r){var n=k.readability(e,t),o,i;switch(i=!1,o=jc(r),o.level+o.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};k.mostReadable=function(e,t,r){var n=null,o=0,i,c,l,s;r=r||{},c=r.includeFallbackColors,l=r.level,s=r.size;for(var d=0;d<t.length;d++)i=k.readability(e,t[d]),i>o&&(o=i,n=k(t[d]));return k.isReadable(e,n,{level:l,size:s})||!c?n:(r.includeFallbackColors=!1,k.mostReadable(e,["#fff","#000"],r))};var Xr=k.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},_c=k.hexNames=Nc(Xr);function Nc(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Ya(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function H(e,t){Ac(e)&&(e="100%");var r=Vc(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function hr(e){return Math.min(1,Math.max(0,e))}function ie(e){return parseInt(e,16)}function Ac(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Vc(e){return typeof e=="string"&&e.indexOf("%")!=-1}function be(e){return e.length==1?"0"+e:""+e}function kt(e){return e<=1&&(e=e*100+"%"),e}function Ja(e){return Math.round(parseFloat(e)*255).toString(16)}function ho(e){return ie(e)/255}var ye=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function ke(e){return!!ye.CSS_UNIT.exec(e)}function Tc(e){e=e.replace(cc,"").replace(uc,"").toLowerCase();var t=!1;if(Xr[e])e=Xr[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ye.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=ye.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ye.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=ye.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ye.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=ye.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ye.hex8.exec(e))?{r:ie(r[1]),g:ie(r[2]),b:ie(r[3]),a:ho(r[4]),format:t?"name":"hex8"}:(r=ye.hex6.exec(e))?{r:ie(r[1]),g:ie(r[2]),b:ie(r[3]),format:t?"name":"hex"}:(r=ye.hex4.exec(e))?{r:ie(r[1]+""+r[1]),g:ie(r[2]+""+r[2]),b:ie(r[3]+""+r[3]),a:ho(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=ye.hex3.exec(e))?{r:ie(r[1]+""+r[1]),g:ie(r[2]+""+r[2]),b:ie(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function jc(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var qt={},vo;function Pc(){if(vo)return qt;vo=1;var e=e||{};e.stringify=(function(){var t={"visit_linear-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return t.visit_gradient(r)},"visit_radial-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return t.visit_gradient(r)},visit_gradient:function(r){var n=t.visit(r.orientation);return n&&(n+=", "),r.type+"("+n+t.visit(r.colorStops)+")"},visit_shape:function(r){var n=r.value,o=t.visit(r.at),i=t.visit(r.style);return i&&(n+=" "+i),o&&(n+=" at "+o),n},"visit_default-radial":function(r){var n="",o=t.visit(r.at);return o&&(n+=o),n},"visit_extent-keyword":function(r){var n=r.value,o=t.visit(r.at);return o&&(n+=" at "+o),n},"visit_position-keyword":function(r){return r.value},visit_position:function(r){return t.visit(r.value.x)+" "+t.visit(r.value.y)},"visit_%":function(r){return r.value+"%"},visit_em:function(r){return r.value+"em"},visit_px:function(r){return r.value+"px"},visit_calc:function(r){return"calc("+r.value+")"},visit_literal:function(r){return t.visit_color(r.value,r)},visit_hex:function(r){return t.visit_color("#"+r.value,r)},visit_rgb:function(r){return t.visit_color("rgb("+r.value.join(", ")+")",r)},visit_rgba:function(r){return t.visit_color("rgba("+r.value.join(", ")+")",r)},visit_hsl:function(r){return t.visit_color("hsl("+r.value[0]+", "+r.value[1]+"%, "+r.value[2]+"%)",r)},visit_hsla:function(r){return t.visit_color("hsla("+r.value[0]+", "+r.value[1]+"%, "+r.value[2]+"%, "+r.value[3]+")",r)},visit_var:function(r){return t.visit_color("var("+r.value+")",r)},visit_color:function(r,n){var o=r,i=t.visit(n.length);return i&&(o+=" "+i),o},visit_angular:function(r){return r.value+"deg"},visit_directional:function(r){return"to "+r.value},visit_array:function(r){var n="",o=r.length;return r.forEach(function(i,c){n+=t.visit(i),c<o-1&&(n+=", ")}),n},visit_object:function(r){return r.width&&r.height?t.visit(r.width)+" "+t.visit(r.height):""},visit:function(r){if(!r)return"";if(r instanceof Array)return t.visit_array(r);if(typeof r=="object"&&!r.type)return t.visit_object(r);if(r.type){var n=t["visit_"+r.type];if(n)return n(r);throw Error("Missing visitor visit_"+r.type)}else throw Error("Invalid node.")}};return function(r){return t.visit(r)}})();var e=e||{};return e.parse=(function(){var t={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,radianValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))rad/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,varColor:/^var/i,calcValue:/^calc/i,variableName:/^(--[a-zA-Z0-9-,\s\#]+)/,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,hslColor:/^hsl/i,hslaColor:/^hsla/i},r="";function n(O){var V=new Error(r+": "+O);throw V.source=r,V}function o(){var O=i();return r.length>0&&n("Invalid input not EOF"),O}function i(){return x(c)}function c(){return l("linear-gradient",t.linearGradient,d)||l("repeating-linear-gradient",t.repeatingLinearGradient,d)||l("radial-gradient",t.radialGradient,p)||l("repeating-radial-gradient",t.repeatingRadialGradient,p)}function l(O,V,R){return s(V,function(D){var te=R();return te&&(L(t.comma)||n("Missing comma before color stops")),{type:O,orientation:te,colorStops:x(_)}})}function s(O,V){var R=L(O);if(R){L(t.startCall)||n("Missing (");var D=V(R);return L(t.endCall)||n("Missing )"),D}}function d(){var O=u();if(O)return O;var V=W("position-keyword",t.positionKeywords,1);return V?{type:"directional",value:V.value}:f()}function u(){return W("directional",t.sideOrCorner,1)}function f(){return W("angular",t.angleValue,1)||W("angular",t.radianValue,1)}function p(){var O,V=h(),R;return V&&(O=[],O.push(V),R=r,L(t.comma)&&(V=h(),V?O.push(V):r=R)),O}function h(){var O=C()||g();if(O)O.at=m();else{var V=v();if(V){O=V;var R=m();R&&(O.at=R)}else{var D=m();if(D)O={type:"default-radial",at:D};else{var te=y();te&&(O={type:"default-radial",at:te})}}}return O}function C(){var O=W("shape",/^(circle)/i,0);return O&&(O.style=ue()||v()),O}function g(){var O=W("shape",/^(ellipse)/i,0);return O&&(O.style=y()||F()||v()),O}function v(){return W("extent-keyword",t.extentKeywords,1)}function m(){if(W("position",/^at/,0)){var O=y();return O||n("Missing positioning value"),O}}function y(){var O=S();if(O.x||O.y)return{type:"position",value:O}}function S(){return{x:F(),y:F()}}function x(O){var V=O(),R=[];if(V)for(R.push(V);L(t.comma);)V=O(),V?R.push(V):n("One extra comma");return R}function _(){var O=E();return O||n("Expected color definition"),O.length=F(),O}function E(){return M()||$()||A()||B()||I()||w()||j()}function j(){return W("literal",t.literalColor,0)}function M(){return W("hex",t.hexColor,1)}function I(){return s(t.rgbColor,function(){return{type:"rgb",value:x(P)}})}function B(){return s(t.rgbaColor,function(){return{type:"rgba",value:x(P)}})}function w(){return s(t.varColor,function(){return{type:"var",value:N()}})}function A(){return s(t.hslColor,function(){var O=L(t.percentageValue);O&&n("HSL hue value must be a number in degrees (0-360) or normalized (-360 to 360), not a percentage");var V=P();L(t.comma);var R=L(t.percentageValue),D=R?R[1]:null;L(t.comma),R=L(t.percentageValue);var te=R?R[1]:null;return(!D||!te)&&n("Expected percentage value for saturation and lightness in HSL"),{type:"hsl",value:[V,D,te]}})}function $(){return s(t.hslaColor,function(){var O=P();L(t.comma);var V=L(t.percentageValue),R=V?V[1]:null;L(t.comma),V=L(t.percentageValue);var D=V?V[1]:null;L(t.comma);var te=P();return(!R||!D)&&n("Expected percentage value for saturation and lightness in HSLA"),{type:"hsla",value:[O,R,D,te]}})}function N(){return L(t.variableName)[1]}function P(){return L(t.number)[1]}function F(){return W("%",t.percentageValue,1)||J()||Te()||ue()}function J(){return W("position-keyword",t.positionKeywords,1)}function Te(){return s(t.calcValue,function(){for(var O=1,V=0;O>0&&V<r.length;){var R=r.charAt(V);R==="("?O++:R===")"&&O--,V++}O>0&&n("Missing closing parenthesis in calc() expression");var D=r.substring(0,V-1);return ge(V-1),{type:"calc",value:D}})}function ue(){return W("px",t.pixelValue,1)||W("em",t.emValue,1)}function W(O,V,R){var D=L(V);if(D)return{type:O,value:D[R]}}function L(O){var V,R;return R=/^[\n\r\t\s]+/.exec(r),R&&ge(R[0].length),V=O.exec(r),V&&ge(V[0].length),V}function ge(O){r=r.substr(O)}return function(O){return r=O.toString().trim(),r.endsWith(";")&&(r=r.slice(0,-1)),o()}})(),qt.parse=e.parse,qt.stringify=e.stringify,qt}var mo=Pc(),ne="top",he="bottom",ve="right",oe="left",cn="auto",Mt=[ne,he,ve,oe],at="start",Tt="end",$c="clippingParents",Za="viewport",yt="popper",Rc="reference",go=Mt.reduce(function(e,t){return e.concat([t+"-"+at,t+"-"+Tt])},[]),Qa=[].concat(Mt,[cn]).reduce(function(e,t){return e.concat([t,t+"-"+at,t+"-"+Tt])},[]),Ic="beforeRead",Mc="read",Fc="afterRead",Bc="beforeMain",Lc="main",Gc="afterMain",Hc="beforeWrite",Dc="write",zc="afterWrite",qc=[Ic,Mc,Fc,Bc,Lc,Gc,Hc,Dc,zc];function Se(e){return e?(e.nodeName||"").toLowerCase():null}function le(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qe(e){var t=le(e).Element;return e instanceof t||e instanceof Element}function fe(e){var t=le(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function un(e){if(typeof ShadowRoot>"u")return!1;var t=le(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Wc(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!fe(i)||!Se(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(c){var l=o[c];l===!1?i.removeAttribute(c):i.setAttribute(c,l===!0?"":l)}))})}function Uc(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},c=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=c.reduce(function(s,d){return s[d]="",s},{});!fe(o)||!Se(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(s){o.removeAttribute(s)}))})}}const Kc={name:"applyStyles",enabled:!0,phase:"write",fn:Wc,effect:Uc,requires:["computeStyles"]};function we(e){return e.split("-")[0]}var ze=Math.max,tr=Math.min,it=Math.round;function Yr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ei(){return!/^((?!chrome|android).)*safari/i.test(Yr())}function lt(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&fe(e)&&(o=e.offsetWidth>0&&it(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&it(n.height)/e.offsetHeight||1);var c=qe(e)?le(e):window,l=c.visualViewport,s=!ei()&&r,d=(n.left+(s&&l?l.offsetLeft:0))/o,u=(n.top+(s&&l?l.offsetTop:0))/i,f=n.width/o,p=n.height/i;return{width:f,height:p,top:u,right:d+f,bottom:u+p,left:d,x:d,y:u}}function dn(e){var t=lt(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ti(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&un(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ne(e){return le(e).getComputedStyle(e)}function Xc(e){return["table","td","th"].indexOf(Se(e))>=0}function Ie(e){return((qe(e)?e.ownerDocument:e.document)||window.document).documentElement}function vr(e){return Se(e)==="html"?e:e.assignedSlot||e.parentNode||(un(e)?e.host:null)||Ie(e)}function yo(e){return!fe(e)||Ne(e).position==="fixed"?null:e.offsetParent}function Yc(e){var t=/firefox/i.test(Yr()),r=/Trident/i.test(Yr());if(r&&fe(e)){var n=Ne(e);if(n.position==="fixed")return null}var o=vr(e);for(un(o)&&(o=o.host);fe(o)&&["html","body"].indexOf(Se(o))<0;){var i=Ne(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ft(e){for(var t=le(e),r=yo(e);r&&Xc(r)&&Ne(r).position==="static";)r=yo(r);return r&&(Se(r)==="html"||Se(r)==="body"&&Ne(r).position==="static")?t:r||Yc(e)||t}function fn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Et(e,t,r){return ze(e,tr(t,r))}function Jc(e,t,r){var n=Et(e,t,r);return n>r?r:n}function ri(){return{top:0,right:0,bottom:0,left:0}}function ni(e){return Object.assign({},ri(),e)}function oi(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Zc=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ni(typeof t!="number"?t:oi(t,Mt))};function Qc(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,c=r.modifiersData.popperOffsets,l=we(r.placement),s=fn(l),d=[oe,ve].indexOf(l)>=0,u=d?"height":"width";if(!(!i||!c)){var f=Zc(o.padding,r),p=dn(i),h=s==="y"?ne:oe,C=s==="y"?he:ve,g=r.rects.reference[u]+r.rects.reference[s]-c[s]-r.rects.popper[u],v=c[s]-r.rects.reference[s],m=Ft(i),y=m?s==="y"?m.clientHeight||0:m.clientWidth||0:0,S=g/2-v/2,x=f[h],_=y-p[u]-f[C],E=y/2-p[u]/2+S,j=Et(x,E,_),M=s;r.modifiersData[n]=(t={},t[M]=j,t.centerOffset=j-E,t)}}function eu(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ti(t.elements.popper,o)&&(t.elements.arrow=o))}const tu={name:"arrow",enabled:!0,phase:"main",fn:Qc,effect:eu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function st(e){return e.split("-")[1]}var ru={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nu(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:it(r*o)/o||0,y:it(n*o)/o||0}}function bo(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,c=e.offsets,l=e.position,s=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=c.x,h=p===void 0?0:p,C=c.y,g=C===void 0?0:C,v=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=v.x,g=v.y;var m=c.hasOwnProperty("x"),y=c.hasOwnProperty("y"),S=oe,x=ne,_=window;if(d){var E=Ft(r),j="clientHeight",M="clientWidth";if(E===le(r)&&(E=Ie(r),Ne(E).position!=="static"&&l==="absolute"&&(j="scrollHeight",M="scrollWidth")),E=E,o===ne||(o===oe||o===ve)&&i===Tt){x=he;var I=f&&E===_&&_.visualViewport?_.visualViewport.height:E[j];g-=I-n.height,g*=s?1:-1}if(o===oe||(o===ne||o===he)&&i===Tt){S=ve;var B=f&&E===_&&_.visualViewport?_.visualViewport.width:E[M];h-=B-n.width,h*=s?1:-1}}var w=Object.assign({position:l},d&&ru),A=u===!0?nu({x:h,y:g},le(r)):{x:h,y:g};if(h=A.x,g=A.y,s){var $;return Object.assign({},w,($={},$[x]=y?"0":"",$[S]=m?"0":"",$.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",$))}return Object.assign({},w,(t={},t[x]=y?g+"px":"",t[S]=m?h+"px":"",t.transform="",t))}function ou(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,c=i===void 0?!0:i,l=r.roundOffsets,s=l===void 0?!0:l,d={placement:we(t.placement),variation:st(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,bo(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,bo(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const au={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ou,data:{}};var Wt={passive:!0};function iu(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,c=n.resize,l=c===void 0?!0:c,s=le(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",r.update,Wt)}),l&&s.addEventListener("resize",r.update,Wt),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",r.update,Wt)}),l&&s.removeEventListener("resize",r.update,Wt)}}const lu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iu,data:{}};var su={left:"right",right:"left",bottom:"top",top:"bottom"};function Yt(e){return e.replace(/left|right|bottom|top/g,function(t){return su[t]})}var cu={start:"end",end:"start"};function Co(e){return e.replace(/start|end/g,function(t){return cu[t]})}function pn(e){var t=le(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function hn(e){return lt(Ie(e)).left+pn(e).scrollLeft}function uu(e,t){var r=le(e),n=Ie(e),o=r.visualViewport,i=n.clientWidth,c=n.clientHeight,l=0,s=0;if(o){i=o.width,c=o.height;var d=ei();(d||!d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:c,x:l+hn(e),y:s}}function du(e){var t,r=Ie(e),n=pn(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ze(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=ze(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+hn(e),s=-n.scrollTop;return Ne(o||r).direction==="rtl"&&(l+=ze(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:c,x:l,y:s}}function vn(e){var t=Ne(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function ai(e){return["html","body","#document"].indexOf(Se(e))>=0?e.ownerDocument.body:fe(e)&&vn(e)?e:ai(vr(e))}function _t(e,t){var r;t===void 0&&(t=[]);var n=ai(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=le(n),c=o?[i].concat(i.visualViewport||[],vn(n)?n:[]):n,l=t.concat(c);return o?l:l.concat(_t(vr(c)))}function Jr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fu(e,t){var r=lt(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function wo(e,t,r){return t===Za?Jr(uu(e,r)):qe(t)?fu(t,r):Jr(du(Ie(e)))}function pu(e){var t=_t(vr(e)),r=["absolute","fixed"].indexOf(Ne(e).position)>=0,n=r&&fe(e)?Ft(e):e;return qe(n)?t.filter(function(o){return qe(o)&&ti(o,n)&&Se(o)!=="body"}):[]}function hu(e,t,r,n){var o=t==="clippingParents"?pu(e):[].concat(t),i=[].concat(o,[r]),c=i[0],l=i.reduce(function(s,d){var u=wo(e,d,n);return s.top=ze(u.top,s.top),s.right=tr(u.right,s.right),s.bottom=tr(u.bottom,s.bottom),s.left=ze(u.left,s.left),s},wo(e,c,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ii(e){var t=e.reference,r=e.element,n=e.placement,o=n?we(n):null,i=n?st(n):null,c=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case ne:s={x:c,y:t.y-r.height};break;case he:s={x:c,y:t.y+t.height};break;case ve:s={x:t.x+t.width,y:l};break;case oe:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var d=o?fn(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case at:s[d]=s[d]-(t[u]/2-r[u]/2);break;case Tt:s[d]=s[d]+(t[u]/2-r[u]/2);break}}return s}function jt(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,c=i===void 0?e.strategy:i,l=r.boundary,s=l===void 0?$c:l,d=r.rootBoundary,u=d===void 0?Za:d,f=r.elementContext,p=f===void 0?yt:f,h=r.altBoundary,C=h===void 0?!1:h,g=r.padding,v=g===void 0?0:g,m=ni(typeof v!="number"?v:oi(v,Mt)),y=p===yt?Rc:yt,S=e.rects.popper,x=e.elements[C?y:p],_=hu(qe(x)?x:x.contextElement||Ie(e.elements.popper),s,u,c),E=lt(e.elements.reference),j=ii({reference:E,element:S,placement:o}),M=Jr(Object.assign({},S,j)),I=p===yt?M:E,B={top:_.top-I.top+m.top,bottom:I.bottom-_.bottom+m.bottom,left:_.left-I.left+m.left,right:I.right-_.right+m.right},w=e.modifiersData.offset;if(p===yt&&w){var A=w[o];Object.keys(B).forEach(function($){var N=[ve,he].indexOf($)>=0?1:-1,P=[ne,he].indexOf($)>=0?"y":"x";B[$]+=A[P]*N})}return B}function vu(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,c=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,d=s===void 0?Qa:s,u=st(n),f=u?l?go:go.filter(function(C){return st(C)===u}):Mt,p=f.filter(function(C){return d.indexOf(C)>=0});p.length===0&&(p=f);var h=p.reduce(function(C,g){return C[g]=jt(e,{placement:g,boundary:o,rootBoundary:i,padding:c})[we(g)],C},{});return Object.keys(h).sort(function(C,g){return h[C]-h[g]})}function mu(e){if(we(e)===cn)return[];var t=Yt(e);return[Co(e),t,Co(t)]}function gu(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,c=r.altAxis,l=c===void 0?!0:c,s=r.fallbackPlacements,d=r.padding,u=r.boundary,f=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,C=h===void 0?!0:h,g=r.allowedAutoPlacements,v=t.options.placement,m=we(v),y=m===v,S=s||(y||!C?[Yt(v)]:mu(v)),x=[v].concat(S).reduce(function(V,R){return V.concat(we(R)===cn?vu(t,{placement:R,boundary:u,rootBoundary:f,padding:d,flipVariations:C,allowedAutoPlacements:g}):R)},[]),_=t.rects.reference,E=t.rects.popper,j=new Map,M=!0,I=x[0],B=0;B<x.length;B++){var w=x[B],A=we(w),$=st(w)===at,N=[ne,he].indexOf(A)>=0,P=N?"width":"height",F=jt(t,{placement:w,boundary:u,rootBoundary:f,altBoundary:p,padding:d}),J=N?$?ve:oe:$?he:ne;_[P]>E[P]&&(J=Yt(J));var Te=Yt(J),ue=[];if(i&&ue.push(F[A]<=0),l&&ue.push(F[J]<=0,F[Te]<=0),ue.every(function(V){return V})){I=w,M=!1;break}j.set(w,ue)}if(M)for(var W=C?3:1,L=function(R){var D=x.find(function(te){var Me=j.get(te);if(Me)return Me.slice(0,R).every(function(Sr){return Sr})});if(D)return I=D,"break"},ge=W;ge>0;ge--){var O=L(ge);if(O==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}const yu={name:"flip",enabled:!0,phase:"main",fn:gu,requiresIfExists:["offset"],data:{_skip:!1}};function So(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function xo(e){return[ne,ve,he,oe].some(function(t){return e[t]>=0})}function bu(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,c=jt(t,{elementContext:"reference"}),l=jt(t,{altBoundary:!0}),s=So(c,n),d=So(l,o,i),u=xo(s),f=xo(d);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Cu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bu};function wu(e,t,r){var n=we(e),o=[oe,ne].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=i[0],l=i[1];return c=c||0,l=(l||0)*o,[oe,ve].indexOf(n)>=0?{x:l,y:c}:{x:c,y:l}}function Su(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,c=Qa.reduce(function(u,f){return u[f]=wu(f,t.rects,i),u},{}),l=c[t.placement],s=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=c}const xu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Su};function ku(e){var t=e.state,r=e.name;t.modifiersData[r]=ii({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Ou={name:"popperOffsets",enabled:!0,phase:"read",fn:ku,data:{}};function Eu(e){return e==="x"?"y":"x"}function _u(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,c=r.altAxis,l=c===void 0?!1:c,s=r.boundary,d=r.rootBoundary,u=r.altBoundary,f=r.padding,p=r.tether,h=p===void 0?!0:p,C=r.tetherOffset,g=C===void 0?0:C,v=jt(t,{boundary:s,rootBoundary:d,padding:f,altBoundary:u}),m=we(t.placement),y=st(t.placement),S=!y,x=fn(m),_=Eu(x),E=t.modifiersData.popperOffsets,j=t.rects.reference,M=t.rects.popper,I=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,B=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(E){if(i){var $,N=x==="y"?ne:oe,P=x==="y"?he:ve,F=x==="y"?"height":"width",J=E[x],Te=J+v[N],ue=J-v[P],W=h?-M[F]/2:0,L=y===at?j[F]:M[F],ge=y===at?-M[F]:-j[F],O=t.elements.arrow,V=h&&O?dn(O):{width:0,height:0},R=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ri(),D=R[N],te=R[P],Me=Et(0,j[F],V[F]),Sr=S?j[F]/2-W-Me-D-B.mainAxis:L-Me-D-B.mainAxis,Xi=S?-j[F]/2+W+Me+te+B.mainAxis:ge+Me+te+B.mainAxis,xr=t.elements.arrow&&Ft(t.elements.arrow),Yi=xr?x==="y"?xr.clientTop||0:xr.clientLeft||0:0,Ln=($=w?.[x])!=null?$:0,Ji=J+Sr-Ln-Yi,Zi=J+Xi-Ln,Gn=Et(h?tr(Te,Ji):Te,J,h?ze(ue,Zi):ue);E[x]=Gn,A[x]=Gn-J}if(l){var Hn,Qi=x==="x"?ne:oe,el=x==="x"?he:ve,Fe=E[_],Gt=_==="y"?"height":"width",Dn=Fe+v[Qi],zn=Fe-v[el],kr=[ne,oe].indexOf(m)!==-1,qn=(Hn=w?.[_])!=null?Hn:0,Wn=kr?Dn:Fe-j[Gt]-M[Gt]-qn+B.altAxis,Un=kr?Fe+j[Gt]+M[Gt]-qn-B.altAxis:zn,Kn=h&&kr?Jc(Wn,Fe,Un):Et(h?Wn:Dn,Fe,h?Un:zn);E[_]=Kn,A[_]=Kn-Fe}t.modifiersData[n]=A}}const Nu={name:"preventOverflow",enabled:!0,phase:"main",fn:_u,requiresIfExists:["offset"]};function Au(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vu(e){return e===le(e)||!fe(e)?pn(e):Au(e)}function Tu(e){var t=e.getBoundingClientRect(),r=it(t.width)/e.offsetWidth||1,n=it(t.height)/e.offsetHeight||1;return r!==1||n!==1}function ju(e,t,r){r===void 0&&(r=!1);var n=fe(t),o=fe(t)&&Tu(t),i=Ie(t),c=lt(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((Se(t)!=="body"||vn(i))&&(l=Vu(t)),fe(t)?(s=lt(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=hn(i))),{x:c.left+l.scrollLeft-s.x,y:c.top+l.scrollTop-s.y,width:c.width,height:c.height}}function Pu(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var c=[].concat(i.requires||[],i.requiresIfExists||[]);c.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&o(s)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function $u(e){var t=Pu(e);return qc.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Ru(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Iu(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var ko={placement:"bottom",modifiers:[],strategy:"absolute"};function Oo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Mu(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?ko:o;return function(l,s,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ko,i),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},f=[],p=!1,h={state:u,setOptions:function(m){var y=typeof m=="function"?m(u.options):m;g(),u.options=Object.assign({},i,u.options,y),u.scrollParents={reference:qe(l)?_t(l):l.contextElement?_t(l.contextElement):[],popper:_t(s)};var S=$u(Iu([].concat(n,u.options.modifiers)));return u.orderedModifiers=S.filter(function(x){return x.enabled}),C(),h.update()},forceUpdate:function(){if(!p){var m=u.elements,y=m.reference,S=m.popper;if(Oo(y,S)){u.rects={reference:ju(y,Ft(S),u.options.strategy==="fixed"),popper:dn(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(B){return u.modifiersData[B.name]=Object.assign({},B.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var _=u.orderedModifiers[x],E=_.fn,j=_.options,M=j===void 0?{}:j,I=_.name;typeof E=="function"&&(u=E({state:u,options:M,name:I,instance:h})||u)}}}},update:Ru(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){g(),p=!0}};if(!Oo(l,s))return h;h.setOptions(d).then(function(v){!p&&d.onFirstUpdate&&d.onFirstUpdate(v)});function C(){u.orderedModifiers.forEach(function(v){var m=v.name,y=v.options,S=y===void 0?{}:y,x=v.effect;if(typeof x=="function"){var _=x({state:u,name:m,instance:h,options:S}),E=function(){};f.push(_||E)}})}function g(){f.forEach(function(v){return v()}),f=[]}return h}}var Fu=[lu,Ou,au,Kc,xu,yu,Nu,tu,Cu],Bu=Mu({defaultModifiers:Fu});function Lu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function li(e,t,r){return r&&Lu(e,r),e}function Jt(){return(Jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function si(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ci(e,t){if(e==null)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}function Eo(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var ui=Object.prototype,di=ui.toString,Gu=ui.hasOwnProperty,fi=/^\s*function (\w+)/;function _o(e){var t,r=(t=e?.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(fi);return n?n[1]:""}return""}var We=function(e){var t,r;return Eo(e)!==!1&&typeof(t=e.constructor)=="function"&&Eo(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},pi=function(e){return e},ae=pi;if(process.env.NODE_ENV!=="production"){var Hu=typeof console<"u";ae=Hu?function(e){console.warn("[VueTypes warn]: "+e)}:pi}var Pt=function(e,t){return Gu.call(e,t)},Du=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ct=Array.isArray||function(e){return di.call(e)==="[object Array]"},ut=function(e){return di.call(e)==="[object Function]"},rr=function(e){return We(e)&&Pt(e,"_vueTypes_name")},hi=function(e){return We(e)&&(Pt(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return Pt(e,t)}))};function mn(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Xe(e,t,r){var n,o=!0,i="";n=We(e)?e:{type:e};var c=rr(n)?n._vueTypes_name+" - ":"";if(hi(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;ct(n.type)?(o=n.type.some(function(f){return Xe(f,t)===!0}),i=n.type.map(function(f){return _o(f)}).join(" or ")):o=(i=_o(n))==="Array"?ct(t):i==="Object"?We(t):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?(function(f){if(f==null)return"";var p=f.constructor.toString().match(fi);return p?p[1]:""})(t)===i:t instanceof n.type}if(!o){var l=c+'value "'+t+'" should be of type "'+i+'"';return l}if(Pt(n,"validator")&&ut(n.validator)){var s=ae,d=[];if(ae=function(f){d.push(f)},o=n.validator(t),ae=s,!o){var u=(d.length>1?"* ":"")+d.join(`
|
|
12
|
-
* `);return d.length=0,u}}return o}function se(e,t){var r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?ut(o)||Xe(this,o)===!0?(this.default=ct(o)?function(){return[].concat(o)}:We(o)?function(){return Object.assign({},o)}:o,this):(ae(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),n=r.validator;return ut(n)&&(r.validator=mn(n,r)),r}function xe(e,t){var r=se(e,t);return Object.defineProperty(r,"validate",{value:function(n){return ut(this.validator)&&ae(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
|
|
13
|
-
`+JSON.stringify(this)),this.validator=mn(n,this),this}})}function No(e,t,r){var n,o,i=(n=t,o={},Object.getOwnPropertyNames(n).forEach(function(f){o[f]=Object.getOwnPropertyDescriptor(n,f)}),Object.defineProperties({},o));if(i._vueTypes_name=e,!We(r))return i;var c,l,s=r.validator,d=ci(r,["validator"]);if(ut(s)){var u=i.validator;u&&(u=(l=(c=u).__original)!==null&&l!==void 0?l:c),i.validator=mn(u?function(f){return u.call(this,f)&&s.call(this,f)}:s,i)}return Object.assign(i,d)}function mr(e){return e.replace(/^(?!\s*$)/gm," ")}var zu=function(){return xe("any",{})},qu=function(){return xe("function",{type:Function})},Wu=function(){return xe("boolean",{type:Boolean})},Uu=function(){return xe("string",{type:String})},Ku=function(){return xe("number",{type:Number})},Xu=function(){return xe("array",{type:Array})},Yu=function(){return xe("object",{type:Object})},Ju=function(){return se("integer",{type:Number,validator:function(e){return Du(e)}})},Zu=function(){return se("symbol",{validator:function(e){return typeof e=="symbol"}})};function Qu(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return se(e.name||"<<anonymous function>>",{validator:function(r){var n=e(r);return n||ae(this._vueTypes_name+" - "+t),n}})}function ed(e){if(!ct(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',r=e.reduce(function(n,o){if(o!=null){var i=o.constructor;n.indexOf(i)===-1&&n.push(i)}return n},[]);return se("oneOf",{type:r.length>0?r:void 0,validator:function(n){var o=e.indexOf(n)!==-1;return o||ae(t),o}})}function td(e){if(!ct(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,r=[],n=0;n<e.length;n+=1){var o=e[n];if(hi(o)){if(rr(o)&&o._vueTypes_name==="oneOf"){r=r.concat(o.type);continue}if(ut(o.validator)&&(t=!0),o.type!==!0&&o.type){r=r.concat(o.type);continue}}r.push(o)}return r=r.filter(function(i,c){return r.indexOf(i)===c}),se("oneOfType",t?{type:r,validator:function(i){var c=[],l=e.some(function(s){var d=Xe(rr(s)&&s._vueTypes_name==="oneOf"?s.type||null:s,i);return typeof d=="string"&&c.push(d),d===!0});return l||ae("oneOfType - provided value does not match any of the "+c.length+` passed-in validators:
|
|
14
|
-
`+mr(c.join(`
|
|
15
|
-
`))),l}}:{type:r})}function rd(e){return se("arrayOf",{type:Array,validator:function(t){var r,n=t.every(function(o){return(r=Xe(e,o))===!0});return n||ae(`arrayOf - value validation error:
|
|
16
|
-
`+mr(r)),n}})}function nd(e){return se("instanceOf",{type:e})}function od(e){return se("objectOf",{type:Object,validator:function(t){var r,n=Object.keys(t).every(function(o){return(r=Xe(e,t[o]))===!0});return n||ae(`objectOf - value validation error:
|
|
17
|
-
`+mr(r)),n}})}function ad(e){var t=Object.keys(e),r=t.filter(function(o){var i;return!!(!((i=e[o])===null||i===void 0)&&i.required)}),n=se("shape",{type:Object,validator:function(o){var i=this;if(!We(o))return!1;var c=Object.keys(o);if(r.length>0&&r.some(function(s){return c.indexOf(s)===-1})){var l=r.filter(function(s){return c.indexOf(s)===-1});return ae(l.length===1?'shape - required property "'+l[0]+'" is not defined.':'shape - required properties "'+l.join('", "')+'" are not defined.'),!1}return c.every(function(s){if(t.indexOf(s)===-1)return i._vueTypes_isLoose===!0||(ae('shape - shape definition does not include a "'+s+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var d=Xe(e[s],o[s]);return typeof d=="string"&&ae('shape - "'+s+`" property validation error:
|
|
18
|
-
`+mr(d)),d===!0})}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),n}var Ce=(function(){function e(){}return e.extend=function(t){var r=this;if(ct(t))return t.forEach(function(f){return r.extend(f)}),this;var n=t.name,o=t.validate,i=o!==void 0&&o,c=t.getter,l=c!==void 0&&c,s=ci(t,["name","validate","getter"]);if(Pt(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var d,u=s.type;return rr(u)?(delete s.type,Object.defineProperty(this,n,l?{get:function(){return No(n,u,s)}}:{value:function(){var f,p=No(n,u,s);return p.validator&&(p.validator=(f=p.validator).bind.apply(f,[p].concat([].slice.call(arguments)))),p}})):(d=l?{get:function(){var f=Object.assign({},s);return i?xe(n,f):se(n,f)},enumerable:!0}:{value:function(){var f,p,h=Object.assign({},s);return f=i?xe(n,h):se(n,h),h.validator&&(f.validator=(p=h.validator).bind.apply(p,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,n,d))},li(e,null,[{key:"any",get:function(){return zu()}},{key:"func",get:function(){return qu().def(this.defaults.func)}},{key:"bool",get:function(){return Wu().def(this.defaults.bool)}},{key:"string",get:function(){return Uu().def(this.defaults.string)}},{key:"number",get:function(){return Ku().def(this.defaults.number)}},{key:"array",get:function(){return Xu().def(this.defaults.array)}},{key:"object",get:function(){return Yu().def(this.defaults.object)}},{key:"integer",get:function(){return Ju().def(this.defaults.integer)}},{key:"symbol",get:function(){return Zu()}}]),e})();function id(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=(function(r){function n(){return r.apply(this,arguments)||this}return si(n,r),li(n,null,[{key:"sensibleDefaults",get:function(){return Jt({},this.defaults)},set:function(o){this.defaults=o!==!1?Jt({},o!==!0?o:e):{}}}]),n})(Ce)).defaults=Jt({},e),t}Ce.defaults={},Ce.custom=Qu,Ce.oneOf=ed,Ce.instanceOf=nd,Ce.oneOfType=td,Ce.arrayOf=rd,Ce.objectOf=od,Ce.shape=ad,Ce.utils={validate:function(e,t){return Xe(t,e)===!0},toType:function(e,t,r){return r===void 0&&(r=!1),r?xe(e,t):se(e,t)}};var T=(function(e){function t(){return e.apply(this,arguments)||this}return si(t,e),t})(id()),Ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gn(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ut=function(e){return e&&e.Math==Math&&e},X=Ut(typeof globalThis=="object"&&globalThis)||Ut(typeof window=="object"&&window)||Ut(typeof self=="object"&&self)||Ut(typeof Ao=="object"&&Ao)||(function(){return this})()||Function("return this")(),G=function(e){try{return!!e()}catch{return!0}},de=!G((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Vo={}.propertyIsEnumerable,To=Object.getOwnPropertyDescriptor,ld={f:To&&!Vo.call({1:2},1)?function(e){var t=To(this,e);return!!t&&t.enumerable}:Vo},gr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},sd={}.toString,_e=function(e){return sd.call(e).slice(8,-1)},cd="".split,yr=G((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return _e(e)=="String"?cd.call(e,""):Object(e)}:Object,Pe=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},vt=function(e){return yr(Pe(e))},Y=function(e){return typeof e=="object"?e!==null:typeof e=="function"},yn=function(e,t){if(!Y(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!Y(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!Y(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!Y(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},ud={}.hasOwnProperty,K=function(e,t){return ud.call(e,t)},Zr=X.document,dd=Y(Zr)&&Y(Zr.createElement),vi=function(e){return dd?Zr.createElement(e):{}},mi=!de&&!G((function(){return Object.defineProperty(vi("div"),"a",{get:function(){return 7}}).a!=7})),jo=Object.getOwnPropertyDescriptor,bn={f:de?jo:function(e,t){if(e=vt(e),t=yn(t,!0),mi)try{return jo(e,t)}catch{}if(K(e,t))return gr(!ld.f.call(e,t),e[t])}},re=function(e){if(!Y(e))throw TypeError(String(e)+" is not an object");return e},Po=Object.defineProperty,Ae={f:de?Po:function(e,t,r){if(re(e),t=yn(t,!0),re(r),mi)try{return Po(e,t,r)}catch{}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},pe=de?function(e,t,r){return Ae.f(e,t,gr(1,r))}:function(e,t,r){return e[t]=r,e},Cn=function(e,t){try{pe(X,e,t)}catch{X[e]=t}return t},Ue=X["__core-js_shared__"]||Cn("__core-js_shared__",{}),fd=Function.toString;typeof Ue.inspectSource!="function"&&(Ue.inspectSource=function(e){return fd.call(e)});var nr,Nt,or,gi=Ue.inspectSource,$o=X.WeakMap,pd=typeof $o=="function"&&/native code/.test(gi($o)),yi=gn((function(e){(e.exports=function(t,r){return Ue[t]||(Ue[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),hd=0,vd=Math.random(),wn=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++hd+vd).toString(36)},Ro=yi("keys"),Sn=function(e){return Ro[e]||(Ro[e]=wn(e))},br={},md=X.WeakMap;if(pd){var Ze=Ue.state||(Ue.state=new md),gd=Ze.get,yd=Ze.has,bd=Ze.set;nr=function(e,t){return t.facade=e,bd.call(Ze,e,t),t},Nt=function(e){return gd.call(Ze,e)||{}},or=function(e){return yd.call(Ze,e)}}else{var bt=Sn("state");br[bt]=!0,nr=function(e,t){return t.facade=e,pe(e,bt,t),t},Nt=function(e){return K(e,bt)?e[bt]:{}},or=function(e){return K(e,bt)}}var $e={set:nr,get:Nt,has:or,enforce:function(e){return or(e)?Nt(e):nr(e,{})},getterFor:function(e){return function(t){var r;if(!Y(t)||(r=Nt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Re=gn((function(e){var t=$e.get,r=$e.enforce,n=String(String).split("String");(e.exports=function(o,i,c,l){var s,d=!!l&&!!l.unsafe,u=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet;typeof c=="function"&&(typeof i!="string"||K(c,"name")||pe(c,"name",i),(s=r(c)).source||(s.source=n.join(typeof i=="string"?i:""))),o!==X?(d?!f&&o[i]&&(u=!0):delete o[i],u?o[i]=c:pe(o,i,c)):u?o[i]=c:Cn(i,c)})(Function.prototype,"toString",(function(){return typeof this=="function"&&t(this).source||gi(this)}))})),Nr=X,Io=function(e){return typeof e=="function"?e:void 0},Cr=function(e,t){return arguments.length<2?Io(Nr[e])||Io(X[e]):Nr[e]&&Nr[e][t]||X[e]&&X[e][t]},Cd=Math.ceil,wd=Math.floor,mt=function(e){return isNaN(e=+e)?0:(e>0?wd:Cd)(e)},Sd=Math.min,ce=function(e){return e>0?Sd(mt(e),9007199254740991):0},xd=Math.max,kd=Math.min,ar=function(e,t){var r=mt(e);return r<0?xd(r+t,0):kd(r,t)},Od=function(e){return function(t,r,n){var o,i=vt(t),c=ce(i.length),l=ar(n,c);if(e&&r!=r){for(;c>l;)if((o=i[l++])!=o)return!0}else for(;c>l;l++)if((e||l in i)&&i[l]===r)return e||l||0;return!e&&-1}},bi={indexOf:Od(!1)},Ed=bi.indexOf,Ci=function(e,t){var r,n=vt(e),o=0,i=[];for(r in n)!K(br,r)&&K(n,r)&&i.push(r);for(;t.length>o;)K(n,r=t[o++])&&(~Ed(i,r)||i.push(r));return i},ir=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_d=ir.concat("length","prototype"),Nd={f:Object.getOwnPropertyNames||function(e){return Ci(e,_d)}},Ad={f:Object.getOwnPropertySymbols},Vd=Cr("Reflect","ownKeys")||function(e){var t=Nd.f(re(e)),r=Ad.f;return r?t.concat(r(e)):t},Td=function(e,t){for(var r=Vd(t),n=Ae.f,o=bn.f,i=0;i<r.length;i++){var c=r[i];K(e,c)||n(e,c,o(t,c))}},jd=/#|\.prototype\./,Bt=function(e,t){var r=$d[Pd(e)];return r==Id||r!=Rd&&(typeof t=="function"?G(t):!!t)},Pd=Bt.normalize=function(e){return String(e).replace(jd,".").toLowerCase()},$d=Bt.data={},Rd=Bt.NATIVE="N",Id=Bt.POLYFILL="P",Qr=Bt,Md=bn.f,ee=function(e,t){var r,n,o,i,c,l=e.target,s=e.global,d=e.stat;if(r=s?X:d?X[l]||Cn(l,{}):(X[l]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(c=Md(r,n))&&c.value:r[n],!Qr(s?n:l+(d?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Td(i,o)}(e.sham||o&&o.sham)&&pe(i,"sham",!0),Re(r,n,i,e)}},xn=function(e,t){var r=[][e];return!!r&&G((function(){r.call(null,t||function(){throw 1},1)}))},Fd=Object.defineProperty,Ar={},Mo=function(e){throw e},gt=function(e,t){if(K(Ar,e))return Ar[e];t||(t={});var r=[][e],n=!!K(t,"ACCESSORS")&&t.ACCESSORS,o=K(t,0)?t[0]:Mo,i=K(t,1)?t[1]:void 0;return Ar[e]=!!r&&!G((function(){if(n&&!de)return!0;var c={length:-1};n?Fd(c,1,{enumerable:!0,get:Mo}):c[1]=1,r.call(c,o,i)}))},Bd=bi.indexOf,wi=[].indexOf,Fo=!!wi&&1/[1].indexOf(1,-0)<0,Ld=xn("indexOf"),Gd=gt("indexOf",{ACCESSORS:!0,1:0});function Ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Je(e,t,r){return r&&Hd(e,r),e}ee({target:"Array",proto:!0,forced:Fo||!Ld||!Gd},{indexOf:function(e){return Fo?wi.apply(this,arguments)||0:Bd(this,e,arguments.length>1?arguments[1]:void 0)}});(function(){function e(){Ye(this,e)}return Je(e,null,[{key:"isInBrowser",value:function(){return typeof window<"u"}},{key:"isServer",value:function(){return typeof window>"u"}},{key:"getUA",value:function(){return e.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 navigator.userAgent.indexOf("Opera")!==-1}},{key:"isIE",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie")>0}},{key:"isIE9",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var t=e.getUA();return t!==""&&t.indexOf("edge/")>0}},{key:"isChrome",value:function(){var t=e.getUA();return t!==""&&/chrome\/\d+/.test(t)&&!e.isEdge()}},{key:"isPhantomJS",value:function(){var t=e.getUA();return t!==""&&/phantomjs/.test(t)}},{key:"isFirefox",value:function(){var t=e.getUA();return t!==""&&/firefox/.test(t)}}]),e})();var Dd=[].join,zd=yr!=Object,qd=xn("join",",");ee({target:"Array",proto:!0,forced:zd||!qd},{join:function(e){return Dd.call(vt(this),e===void 0?",":e)}});var Qe,lr,Ve=function(e){return Object(Pe(e))},dt=Array.isArray||function(e){return _e(e)=="Array"},Si=!!Object.getOwnPropertySymbols&&!G((function(){return!String(Symbol())})),Wd=Si&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Kt=yi("wks"),At=X.Symbol,Ud=Wd?At:At&&At.withoutSetter||wn,q=function(e){return K(Kt,e)||(Si&&K(At,e)?Kt[e]=At[e]:Kt[e]=Ud("Symbol."+e)),Kt[e]},Kd=q("species"),wr=function(e,t){var r;return dt(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!dt(r.prototype)?Y(r)&&(r=r[Kd])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},ft=function(e,t,r){var n=yn(t);n in e?Ae.f(e,n,gr(0,r)):e[n]=r},Vr=Cr("navigator","userAgent")||"",Bo=X.process,Lo=Bo&&Bo.versions,Go=Lo&&Lo.v8;Go?lr=(Qe=Go.split("."))[0]+Qe[1]:Vr&&(!(Qe=Vr.match(/Edge\/(\d+)/))||Qe[1]>=74)&&(Qe=Vr.match(/Chrome\/(\d+)/))&&(lr=Qe[1]);var sr=lr&&+lr,Xd=q("species"),kn=function(e){return sr>=51||!G((function(){var t=[];return(t.constructor={})[Xd]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Yd=kn("splice"),Jd=gt("splice",{ACCESSORS:!0,0:0,1:2}),Zd=Math.max,Qd=Math.min;ee({target:"Array",proto:!0,forced:!Yd||!Jd},{splice:function(e,t){var r,n,o,i,c,l,s=Ve(this),d=ce(s.length),u=ar(e,d),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=d-u):(r=f-2,n=Qd(Zd(mt(t),0),d-u)),d+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=wr(s,n),i=0;i<n;i++)(c=u+i)in s&&ft(o,i,s[c]);if(o.length=n,r<n){for(i=u;i<d-n;i++)l=i+r,(c=i+n)in s?s[l]=s[c]:delete s[l];for(i=d;i>d-n+r;i--)delete s[i-1]}else if(r>n)for(i=d-n;i>u;i--)l=i+r-1,(c=i+n-1)in s?s[l]=s[c]:delete s[l];for(i=0;i<r;i++)s[i+u]=arguments[i+2];return s.length=d-n+r,o}});var xi={};xi[q("toStringTag")]="z";var On=String(xi)==="[object z]",ef=q("toStringTag"),tf=_e((function(){return arguments})())=="Arguments",ki=On?_e:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=Object(e),ef))=="string"?r:tf?_e(t):(n=_e(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},rf=On?{}.toString:function(){return"[object "+ki(this)+"]"};On||Re(Object.prototype,"toString",rf,{unsafe:!0});var Oi=function(){var e=re(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Ho(e,t){return RegExp(e,t)}var Tr,jr,Do={UNSUPPORTED_Y:G((function(){var e=Ho("a","y");return e.lastIndex=2,e.exec("abcd")!=null})),BROKEN_CARET:G((function(){var e=Ho("^r","gy");return e.lastIndex=2,e.exec("str")!=null}))},cr=RegExp.prototype.exec,nf=String.prototype.replace,Ei=cr,Pr=(Tr=/a/,jr=/b*/g,cr.call(Tr,"a"),cr.call(jr,"a"),Tr.lastIndex!==0||jr.lastIndex!==0),zo=Do.UNSUPPORTED_Y||Do.BROKEN_CARET,$r=/()??/.exec("")[1]!==void 0;(Pr||$r||zo)&&(Ei=function(e){var t,r,n,o,i=this,c=zo&&i.sticky,l=Oi.call(i),s=i.source,d=0,u=e;return c&&((l=l.replace("y","")).indexOf("g")===-1&&(l+="g"),u=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&e[i.lastIndex-1]!==`
|
|
19
|
-
`)&&(s="(?: "+s+")",u=" "+u,d++),r=new RegExp("^(?:"+s+")",l)),$r&&(r=new RegExp("^"+s+"$(?!\\s)",l)),Pr&&(t=i.lastIndex),n=cr.call(c?r:i,u),c?n?(n.input=n.input.slice(d),n[0]=n[0].slice(d),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:Pr&&n&&(i.lastIndex=i.global?n.index+n[0].length:t),$r&&n&&n.length>1&&nf.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(n[o]=void 0)})),n});var $t=Ei;ee({target:"RegExp",proto:!0,forced:/./.exec!==$t},{exec:$t});var _i=RegExp.prototype,Ni=_i.toString,of=G((function(){return Ni.call({source:"a",flags:"b"})!="/a/b"})),af=Ni.name!="toString";(of||af)&&Re(RegExp.prototype,"toString",(function(){var e=re(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(r===void 0&&e instanceof RegExp&&!("flags"in _i)?Oi.call(e):r)}),{unsafe:!0});var lf=q("species"),sf=!G((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})),qo="a".replace(/./,"$0")==="$0",Wo=q("replace"),Uo=!!/./[Wo]&&/./[Wo]("a","$0")==="",cf=!G((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"})),Ai=function(e,t,r,n){var o=q(e),i=!G((function(){var f={};return f[o]=function(){return 7},""[e](f)!=7})),c=i&&!G((function(){var f=!1,p=/a/;return e==="split"&&((p={}).constructor={},p.constructor[lf]=function(){return p},p.flags="",p[o]=/./[o]),p.exec=function(){return f=!0,null},p[o](""),!f}));if(!i||!c||e==="replace"&&(!sf||!qo||Uo)||e==="split"&&!cf){var l=/./[o],s=r(o,""[e],(function(f,p,h,C,g){return p.exec===$t?i&&!g?{done:!0,value:l.call(p,h,C)}:{done:!0,value:f.call(h,p,C)}:{done:!1}}),{REPLACE_KEEPS_$0:qo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Uo}),d=s[0],u=s[1];Re(String.prototype,e,d),Re(RegExp.prototype,o,function(f,p){return u.call(f,this,p)})}n&&pe(RegExp.prototype[o],"sham",!0)},uf=q("match"),Vi=function(e){var t;return Y(e)&&((t=e[uf])!==void 0?!!t:_e(e)=="RegExp")},En=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},df=q("species"),ff=function(e){return function(t,r){var n,o,i=String(Pe(t)),c=mt(r),l=i.length;return c<0||c>=l?e?"":void 0:(n=i.charCodeAt(c))<55296||n>56319||c+1===l||(o=i.charCodeAt(c+1))<56320||o>57343?e?i.charAt(c):n:e?i.slice(c,c+2):o-56320+(n-55296<<10)+65536}},Ti={charAt:ff(!0)},pf=Ti.charAt,ji=function(e,t,r){return t+(r?pf(e,t).length:1)},en=function(e,t){var r=e.exec;if(typeof r=="function"){var n=r.call(e,t);if(typeof n!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return n}if(_e(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return $t.call(e,t)},hf=[].push,vf=Math.min,et=!G((function(){return!RegExp(4294967295,"y")}));Ai("split",2,(function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var c=String(Pe(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[c];if(!Vi(o))return t.call(c,o,l);for(var s,d,u,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,C=new RegExp(o.source,p+"g");(s=$t.call(C,c))&&!((d=C.lastIndex)>h&&(f.push(c.slice(h,s.index)),s.length>1&&s.index<c.length&&hf.apply(f,s.slice(1)),u=s[0].length,h=d,f.length>=l));)C.lastIndex===s.index&&C.lastIndex++;return h===c.length?!u&&C.test("")||f.push(""):f.push(c.slice(h)),f.length>l?f.slice(0,l):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:t.call(this,o,i)}:t,[function(o,i){var c=Pe(this),l=o?.[e];return l!==void 0?l.call(o,c,i):n.call(String(c),o,i)},function(o,i){var c=r(n,o,this,i,n!==t);if(c.done)return c.value;var l=re(o),s=String(this),d=(function(x,_){var E,j=re(x).constructor;return j===void 0||(E=re(j)[df])==null?_:En(E)})(l,RegExp),u=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(et?"y":"g"),p=new d(et?l:"^(?:"+l.source+")",f),h=i===void 0?4294967295:i>>>0;if(h===0)return[];if(s.length===0)return en(p,s)===null?[s]:[];for(var C=0,g=0,v=[];g<s.length;){p.lastIndex=et?g:0;var m,y=en(p,et?s:s.slice(g));if(y===null||(m=vf(ce(p.lastIndex+(et?0:g)),s.length))===C)g=ji(s,g,u);else{if(v.push(s.slice(C,g)),v.length===h)return v;for(var S=1;S<=y.length-1;S++)if(v.push(y[S]),v.length===h)return v;g=C=m}}return v.push(s.slice(C)),v}]}),!et);var tn=`
|
|
20
|
-
\v\f\r \u2028\u2029\uFEFF`,ur="["+tn+"]",mf=RegExp("^"+ur+ur+"*"),gf=RegExp(ur+ur+"*$"),yf=function(e){return function(t){var r=String(Pe(t));return 1&e&&(r=r.replace(mf,"")),2&e&&(r=r.replace(gf,"")),r}},bf={trim:yf(3)},Cf=bf.trim;ee({target:"String",proto:!0,forced:(function(e){return G((function(){return!!tn[e]()||"
"[e]()!="
"||tn[e].name!==e}))})("trim")},{trim:function(){return Cf(this)}});var wf=kn("slice"),Sf=gt("slice",{ACCESSORS:!0,0:0,1:2}),xf=q("species"),kf=[].slice,Of=Math.max;ee({target:"Array",proto:!0,forced:!wf||!Sf},{slice:function(e,t){var r,n,o,i=vt(this),c=ce(i.length),l=ar(e,c),s=ar(t===void 0?c:t,c);if(dt(i)&&(typeof(r=i.constructor)!="function"||r!==Array&&!dt(r.prototype)?Y(r)&&(r=r[xf])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return kf.call(i,l,s);for(n=new(r===void 0?Array:r)(Of(s-l,0)),o=0;l<s;l++,o++)l in i&&ft(n,o,i[l]);return n.length=o,n}});var _n=Object.keys||function(e){return Ci(e,ir)},Ef=G((function(){_n(1)}));ee({target:"Object",stat:!0,forced:Ef},{keys:function(e){return _n(Ve(e))}});var Rr,_f=function(e){if(Vi(e))throw TypeError("The method doesn't accept regular expressions");return e},Nf=q("match"),Af=bn.f,Ko="".startsWith,Vf=Math.min,Pi=(function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Nf]=!1,"/./"[e](t)}catch{}}return!1})("startsWith"),Tf=!(Pi||(Rr=Af(String.prototype,"startsWith"),!Rr||Rr.writable));function $i(e){return($i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}ee({target:"String",proto:!0,forced:!Tf&&!Pi},{startsWith:function(e){var t=String(Pe(this));_f(e);var r=ce(Vf(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Ko?Ko.call(t,n,r):t.slice(r,r+n.length)===n}});var tt=function(e){return typeof e=="string"},rt=function(e){return e!==null&&$i(e)==="object"},Rt=(function(){function e(){Ye(this,e)}return Je(e,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,r,n){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.addEventListener(r,n,o)}},{key:"removeEventListener",value:function(t,r,n){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.removeEventListener(r,n,o)}},{key:"triggerDragEvent",value:function(t,r){var n=!1,o=function(c){var l;(l=r.drag)===null||l===void 0||l.call(r,c)},i=function c(l){var s;e.removeEventListener(document,"mousemove",o),e.removeEventListener(document,"mouseup",c),document.onselectstart=null,document.ondragstart=null,n=!1,(s=r.end)===null||s===void 0||s.call(r,l)};e.addEventListener(t,"mousedown",(function(c){var l;n||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",o),e.addEventListener(document,"mouseup",i),n=!0,(l=r.start)===null||l===void 0||l.call(r,c))}))}},{key:"getBoundingClientRect",value:function(t){return t&&rt(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,r){return!!(t&&rt(t)&&tt(r)&&t.nodeType===1)&&t.classList.contains(r.trim())}},{key:"addClass",value:function(t,r){if(t&&rt(t)&&tt(r)&&t.nodeType===1&&(r=r.trim(),!e.hasClass(t,r))){var n=t.className;t.className=n?n+" "+r:r}}},{key:"removeClass",value:function(t,r){if(t&&rt(t)&&tt(r)&&t.nodeType===1&&typeof t.className=="string"){r=r.trim();for(var n=t.className.trim().split(" "),o=n.length-1;o>=0;o--)n[o]=n[o].trim(),n[o]&&n[o]!==r||n.splice(o,1);t.className=n.join(" ")}}},{key:"toggleClass",value:function(t,r,n){t&&rt(t)&&tt(r)&&t.nodeType===1&&t.classList.toggle(r,n)}},{key:"replaceClass",value:function(t,r,n){t&&rt(t)&&tt(r)&&tt(n)&&t.nodeType===1&&(r=r.trim(),n=n.trim(),e.removeClass(t,r),e.addClass(t,n))}},{key:"getScrollTop",value:function(t){var r="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(r,0)}},{key:"setScrollTop",value:function(t,r){"scrollTop"in t?t.scrollTop=r:t.scrollTo(t.scrollX,r)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(t){e.setScrollTop(window,t),e.setScrollTop(document.body,t)}},{key:"getElementTop",value:function(t,r){if(e.isWindow(t))return 0;var n=r?e.getScrollTop(r):e.getRootScrollTop();return t.getBoundingClientRect().top+n}},{key:"getVisibleHeight",value:function(t){return e.isWindow(t)?t.innerHeight:t.getBoundingClientRect().height}},{key:"isHidden",value:function(t){if(!t)return!1;var r=window.getComputedStyle(t),n=r.display==="none",o=t.offsetParent===null&&r.position!=="fixed";return n||o}},{key:"triggerEvent",value:function(t,r){if("createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent(r,!1,!0),t.dispatchEvent(n)}}},{key:"calcAngle",value:function(t,r){var n=t.getBoundingClientRect(),o=n.left+n.width/2,i=n.top+n.height/2,c=Math.abs(o-r.clientX),l=Math.abs(i-r.clientY),s=l/Math.sqrt(Math.pow(c,2)+Math.pow(l,2)),d=Math.acos(s),u=Math.floor(180/(Math.PI/d));return r.clientX>o&&r.clientY>i&&(u=180-u),r.clientX==o&&r.clientY>i&&(u=180),r.clientX>o&&r.clientY==i&&(u=90),r.clientX<o&&r.clientY>i&&(u=180+u),r.clientX<o&&r.clientY==i&&(u=270),r.clientX<o&&r.clientY<i&&(u=360-u),u}},{key:"querySelector",value:function(t,r){return r?r.querySelector(t):document.querySelector(t)}},{key:"createElement",value:function(t){for(var r=document.createElement(t),n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];for(var c=0;c<o.length;c++)o[c]&&r.classList.add(o[c]);return r}},{key:"appendChild",value:function(t){for(var r=0;r<(arguments.length<=1?0:arguments.length-1);r++)t.appendChild(r+1<1||arguments.length<=r+1?void 0:arguments[r+1])}},{key:"getWindow",value:function(t){if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.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 typeof ShadowRoot<"u"&&(t instanceof this.getWindow(t).ShadowRoot||t instanceof ShadowRoot)}},{key:"getWindowScroll",value:function(t){var r=this.getWindow(t);return{scrollLeft:r.pageXOffset||0,scrollTop:r.pageYOffset||0}}}]),e})(),jf=Math.floor,Pf="".replace,$f=/\$([$&'`]|\d\d?|<[^>]*>)/g,Rf=/\$([$&'`]|\d\d?)/g,If=function(e,t,r,n,o,i){var c=r+e.length,l=n.length,s=Rf;return o!==void 0&&(o=Ve(o),s=$f),Pf.call(i,s,(function(d,u){var f;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":f=o[u.slice(1,-1)];break;default:var p=+u;if(p===0)return d;if(p>l){var h=jf(p/10);return h===0?d:h<=l?n[h-1]===void 0?u.charAt(1):n[h-1]+u.charAt(1):d}f=n[p-1]}return f===void 0?"":f}))},Mf=Math.max,Ff=Math.min;Ai("replace",2,(function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,c=o?"$":"$0";return[function(l,s){var d=Pe(this),u=l?.[e];return u!==void 0?u.call(l,d,s):t.call(String(d),l,s)},function(l,s){if(!o&&i||typeof s=="string"&&s.indexOf(c)===-1){var d=r(t,l,this,s);if(d.done)return d.value}var u=re(l),f=String(this),p=typeof s=="function";p||(s=String(s));var h=u.global;if(h){var C=u.unicode;u.lastIndex=0}for(var g=[];;){var v=en(u,f);if(v===null||(g.push(v),!h))break;String(v[0])===""&&(u.lastIndex=ji(f,ce(u.lastIndex),C))}for(var m,y="",S=0,x=0;x<g.length;x++){v=g[x];for(var _=String(v[0]),E=Mf(Ff(mt(v.index),f.length),0),j=[],M=1;M<v.length;M++)j.push((m=v[M])===void 0?m:String(m));var I=v.groups;if(p){var B=[_].concat(j,E,f);I!==void 0&&B.push(I);var w=String(s.apply(void 0,B))}else w=If(_,f,E,j,I,s);E>=S&&(y+=f.slice(S,E)+w,S=E+_.length)}return y+f.slice(S)}]}));(function(){function e(){Ye(this,e)}return Je(e,null,[{key:"camelize",value:function(t){return t.replace(/-(\w)/g,(function(r,n){return n?n.toUpperCase():""}))}},{key:"capitalize",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),e})();(function(){function e(){Ye(this,e)}return Je(e,null,[{key:"_clone",value:function(){}}]),e})();var Ri=q("isConcatSpreadable"),Bf=sr>=51||!G((function(){var e=[];return e[Ri]=!1,e.concat()[0]!==e})),Lf=kn("concat"),Gf=function(e){if(!Y(e))return!1;var t=e[Ri];return t!==void 0?!!t:dt(e)};ee({target:"Array",proto:!0,forced:!Bf||!Lf},{concat:function(e){var t,r,n,o,i,c=Ve(this),l=wr(c,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Gf(i=t===-1?c:arguments[t])){if(s+(o=ce(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&ft(l,s,i[r])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ft(l,s++,i)}return l.length=s,l}});var Ir,Lt=function(e,t,r){if(En(e),t===void 0)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,i){return e.call(t,n,o,i)}}return function(){return e.apply(t,arguments)}},Xo=[].push,Yo=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,c=e==7,l=e==5||i;return function(s,d,u,f){for(var p,h,C=Ve(s),g=yr(C),v=Lt(d,u,3),m=ce(g.length),y=0,S=f||wr,x=t?S(s,m):r||c?S(s,0):void 0;m>y;y++)if((l||y in g)&&(h=v(p=g[y],y,C),e))if(t)x[y]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return y;case 2:Xo.call(x,p)}else switch(e){case 4:return!1;case 7:Xo.call(x,p)}return i?-1:n||o?o:x}},Ii={find:Yo(5),findIndex:Yo(6)},Hf=de?Object.defineProperties:function(e,t){re(e);for(var r,n=_n(t),o=n.length,i=0;o>i;)Ae.f(e,r=n[i++],t[r]);return e},Df=Cr("document","documentElement"),Mi=Sn("IE_PROTO"),Mr=function(){},Jo=function(e){return"<script>"+e+"<\/script>"},Zt=function(){try{Ir=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;Zt=Ir?(function(n){n.write(Jo("")),n.close();var o=n.parentWindow.Object;return n=null,o})(Ir):((t=vi("iframe")).style.display="none",Df.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Jo("document.F=Object")),e.close(),e.F);for(var r=ir.length;r--;)delete Zt.prototype[ir[r]];return Zt()};br[Mi]=!0;var Nn=Object.create||function(e,t){var r;return e!==null?(Mr.prototype=re(e),r=new Mr,Mr.prototype=null,r[Mi]=e):r=Zt(),t===void 0?r:Hf(r,t)},rn=q("unscopables"),nn=Array.prototype;nn[rn]==null&&Ae.f(nn,rn,{configurable:!0,value:Nn(null)});var ot=function(e){nn[rn][e]=!0},zf=Ii.find,Zo=!0,qf=gt("find");"find"in[]&&Array(1).find((function(){Zo=!1})),ee({target:"Array",proto:!0,forced:Zo||!qf},{find:function(e){return zf(this,e,arguments.length>1?arguments[1]:void 0)}}),ot("find");var Wf=Ii.findIndex,Qo=!0,Uf=gt("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){Qo=!1})),ee({target:"Array",proto:!0,forced:Qo||!Uf},{findIndex:function(e){return Wf(this,e,arguments.length>1?arguments[1]:void 0)}}),ot("findIndex");var Fi=function(e,t,r,n,o,i,c,l){for(var s,d=o,u=0,f=!!c&&Lt(c,l,3);u<n;){if(u in r){if(s=f?f(r[u],u,t):r[u],i>0&&dt(s))d=Fi(e,t,s,ce(s.length),d,i-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[d]=s}d++}u++}return d},Kf=Fi;ee({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Ve(this),r=ce(t.length),n=wr(t,0);return n.length=Kf(n,t,t,r,0,e===void 0?1:mt(e)),n}});var on=function(e){var t=e.return;if(t!==void 0)return re(t.call(e)).value},Xf=function(e,t,r,n){try{return n?t(re(r)[0],r[1]):t(r)}catch(o){throw on(e),o}},pt={},Yf=q("iterator"),Jf=Array.prototype,Bi=function(e){return e!==void 0&&(pt.Array===e||Jf[Yf]===e)},Zf=q("iterator"),Li=function(e){if(e!=null)return e[Zf]||e["@@iterator"]||pt[ki(e)]},Gi=q("iterator"),Hi=!1;try{var Qf=0,ea={next:function(){return{done:!!Qf++}},return:function(){Hi=!0}};ea[Gi]=function(){return this},Array.from(ea,(function(){throw 2}))}catch{}var Di=function(e,t){if(!Hi)return!1;var r=!1;try{var n={};n[Gi]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},ep=!Di((function(e){Array.from(e)}));ee({target:"Array",stat:!0,forced:ep},{from:function(e){var t,r,n,o,i,c,l=Ve(e),s=typeof this=="function"?this:Array,d=arguments.length,u=d>1?arguments[1]:void 0,f=u!==void 0,p=Li(l),h=0;if(f&&(u=Lt(u,d>2?arguments[2]:void 0,2)),p==null||s==Array&&Bi(p))for(r=new s(t=ce(l.length));t>h;h++)c=f?u(l[h],h):l[h],ft(r,h,c);else for(i=(o=p.call(l)).next,r=new s;!(n=i.call(o)).done;h++)c=f?Xf(o,u,[n.value,h],!0):n.value,ft(r,h,c);return r.length=h,r}});var tp=function(e){return function(t,r,n,o){En(r);var i=Ve(t),c=yr(i),l=ce(i.length),s=e?l-1:0,d=e?-1:1;if(n<2)for(;;){if(s in c){o=c[s],s+=d;break}if(s+=d,e?s<0:l<=s)throw TypeError("Reduce of empty array with no initial value")}for(;e?s>=0:l>s;s+=d)s in c&&(o=r(o,c[s],s,i));return o}},rp={left:tp(!1)},np=_e(X.process)=="process",op=rp.left,ap=xn("reduce"),ip=gt("reduce",{1:0});ee({target:"Array",proto:!0,forced:!ap||!ip||!np&&sr>79&&sr<83},{reduce:function(e){return op(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),ot("flat");var Be,ta,ra,lp=!G((function(){return Object.isExtensible(Object.preventExtensions({}))})),zi=gn((function(e){var t=Ae.f,r=wn("meta"),n=0,o=Object.isExtensible||function(){return!0},i=function(l){t(l,r,{value:{objectID:"O"+ ++n,weakData:{}}})},c=e.exports={REQUIRED:!1,fastKey:function(l,s){if(!Y(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!K(l,r)){if(!o(l))return"F";if(!s)return"E";i(l)}return l[r].objectID},getWeakData:function(l,s){if(!K(l,r)){if(!o(l))return!0;if(!s)return!1;i(l)}return l[r].weakData},onFreeze:function(l){return lp&&c.REQUIRED&&o(l)&&!K(l,r)&&i(l),l}};br[r]=!0})),Ct=function(e,t){this.stopped=e,this.result=t},na=function(e,t,r){var n,o,i,c,l,s,d,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),C=Lt(t,u,1+f+h),g=function(m){return n&&on(n),new Ct(!0,m)},v=function(m){return f?(re(m),h?C(m[0],m[1],g):C(m[0],m[1])):h?C(m,g):C(m)};if(p)n=e;else{if(typeof(o=Li(e))!="function")throw TypeError("Target is not iterable");if(Bi(o)){for(i=0,c=ce(e.length);c>i;i++)if((l=v(e[i]))&&l instanceof Ct)return l;return new Ct(!1)}n=o.call(e)}for(s=n.next;!(d=s.call(n)).done;){try{l=v(d.value)}catch(m){throw on(n),m}if(typeof l=="object"&&l&&l instanceof Ct)return l}return new Ct(!1)},oa=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},sp=Ae.f,aa=q("toStringTag"),an=function(e,t,r){e&&!K(e=r?e:e.prototype,aa)&&sp(e,aa,{configurable:!0,value:t})},dr=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch{}return function(n,o){return re(n),(function(i){if(!Y(i)&&i!==null)throw TypeError("Can't set "+String(i)+" as a prototype")})(o),t?e.call(n,o):n.__proto__=o,n}})():void 0),ia=function(e,t,r){for(var n in t)Re(e,n,t[n],r);return e},cp=!G((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),la=Sn("IE_PROTO"),up=Object.prototype,fr=cp?Object.getPrototypeOf:function(e){return e=Ve(e),K(e,la)?e[la]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?up:null},Fr=q("iterator"),qi=!1;[].keys&&("next"in(ra=[].keys())?(ta=fr(fr(ra)))!==Object.prototype&&(Be=ta):qi=!0),(Be==null||G((function(){var e={};return Be[Fr].call(e)!==e})))&&(Be={}),K(Be,Fr)||pe(Be,Fr,(function(){return this}));var An={IteratorPrototype:Be,BUGGY_SAFARI_ITERATORS:qi},dp=An.IteratorPrototype,fp=function(){return this},Br=An.IteratorPrototype,Xt=An.BUGGY_SAFARI_ITERATORS,wt=q("iterator"),pp=function(){return this},Vn=function(e,t,r,n,o,i,c){(function(m,y,S){var x=y+" Iterator";m.prototype=Nn(dp,{next:gr(1,S)}),an(m,x,!1),pt[x]=fp})(r,t,n);var l,s,d,u=function(m){if(m===o&&g)return g;if(!Xt&&m in h)return h[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,C=h[wt]||h["@@iterator"]||o&&h[o],g=!Xt&&C||u(o),v=t=="Array"&&h.entries||C;if(v&&(l=fr(v.call(new e)),Br!==Object.prototype&&l.next&&(fr(l)!==Br&&(dr?dr(l,Br):typeof l[wt]!="function"&&pe(l,wt,pp)),an(l,f,!0))),o=="values"&&C&&C.name!=="values"&&(p=!0,g=function(){return C.call(this)}),h[wt]!==g&&pe(h,wt,g),pt[t]=g,o)if(s={values:u("values"),keys:i?g:u("keys"),entries:u("entries")},c)for(d in s)(Xt||p||!(d in h))&&Re(h,d,s[d]);else ee({target:t,proto:!0,forced:Xt||p},s);return s},sa=q("species"),hp=Ae.f,ca=zi.fastKey,ua=$e.set,Lr=$e.getterFor;(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",c=X[e],l=c&&c.prototype,s=c,d={},u=function(v){var m=l[v];Re(l,v,v=="add"?function(y){return m.call(this,y===0?0:y),this}:v=="delete"?function(y){return!(o&&!Y(y))&&m.call(this,y===0?0:y)}:v=="get"?function(y){return o&&!Y(y)?void 0:m.call(this,y===0?0:y)}:v=="has"?function(y){return!(o&&!Y(y))&&m.call(this,y===0?0:y)}:function(y,S){return m.call(this,y===0?0:y,S),this})};if(Qr(e,typeof c!="function"||!(o||l.forEach&&!G((function(){new c().entries().next()})))))s=r.getConstructor(t,e,n,i),zi.REQUIRED=!0;else if(Qr(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,h=G((function(){f.has(1)})),C=Di((function(v){new c(v)})),g=!o&&G((function(){for(var v=new c,m=5;m--;)v[i](m,m);return!v.has(-0)}));C||((s=t((function(v,m){oa(v,s,e);var y=(function(S,x,_){var E,j;return dr&&typeof(E=x.constructor)=="function"&&E!==_&&Y(j=E.prototype)&&j!==_.prototype&&dr(S,j),S})(new c,v,s);return m!=null&&na(m,y[i],{that:y,AS_ENTRIES:n}),y}))).prototype=l,l.constructor=s),(h||g)&&(u("delete"),u("has"),n&&u("get")),(g||p)&&u(i),o&&l.clear&&delete l.clear}d[e]=s,ee({global:!0,forced:s!=c},d),an(s,e),o||r.setStrong(s,e,n)})("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,r,n){var o=e((function(s,d){oa(s,o,t),ua(s,{type:t,index:Nn(null),first:void 0,last:void 0,size:0}),de||(s.size=0),d!=null&&na(d,s[n],{that:s,AS_ENTRIES:r})})),i=Lr(t),c=function(s,d,u){var f,p,h=i(s),C=l(s,d);return C?C.value=u:(h.last=C={index:p=ca(d,!0),key:d,value:u,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=C),f&&(f.next=C),de?h.size++:s.size++,p!=="F"&&(h.index[p]=C)),s},l=function(s,d){var u,f=i(s),p=ca(d);if(p!=="F")return f.index[p];for(u=f.first;u;u=u.next)if(u.key==d)return u};return ia(o.prototype,{clear:function(){for(var s=i(this),d=s.index,u=s.first;u;)u.removed=!0,u.previous&&(u.previous=u.previous.next=void 0),delete d[u.index],u=u.next;s.first=s.last=void 0,de?s.size=0:this.size=0},delete:function(s){var d=this,u=i(d),f=l(d,s);if(f){var p=f.next,h=f.previous;delete u.index[f.index],f.removed=!0,h&&(h.next=p),p&&(p.previous=h),u.first==f&&(u.first=p),u.last==f&&(u.last=h),de?u.size--:d.size--}return!!f},forEach:function(s){for(var d,u=i(this),f=Lt(s,arguments.length>1?arguments[1]:void 0,3);d=d?d.next:u.first;)for(f(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(s){return!!l(this,s)}}),ia(o.prototype,r?{get:function(s){var d=l(this,s);return d&&d.value},set:function(s,d){return c(this,s===0?0:s,d)}}:{add:function(s){return c(this,s=s===0?0:s,s)}}),de&&hp(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=Lr(t),i=Lr(n);Vn(e,t,(function(c,l){ua(this,{type:n,target:c,state:o(c),kind:l,last:void 0})}),(function(){for(var c=i(this),l=c.kind,s=c.last;s&&s.removed;)s=s.previous;return c.target&&(c.last=s=s?s.next:c.state.first)?l=="keys"?{value:s.key,done:!1}:l=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(c.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),(function(c){var l=Cr(c),s=Ae.f;de&&l&&!l[sa]&&s(l,sa,{configurable:!0,get:function(){return this}})})(t)}});var vp=Ti.charAt,mp=$e.set,gp=$e.getterFor("String Iterator");Vn(String,"String",(function(e){mp(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=gp(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=vp(r,n),t.index+=e.length,{value:e,done:!1})}));var da={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},yp=$e.set,bp=$e.getterFor("Array Iterator"),Ot=Vn(Array,"Array",(function(e,t){yp(this,{type:"Array Iterator",target:vt(e),index:0,kind:t})}),(function(){var e=bp(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");pt.Arguments=pt.Array,ot("keys"),ot("values"),ot("entries");var Gr=q("iterator"),fa=q("toStringTag"),Hr=Ot.values;for(var Dr in da){var pa=X[Dr],Oe=pa&&pa.prototype;if(Oe){if(Oe[Gr]!==Hr)try{pe(Oe,Gr,Hr)}catch{Oe[Gr]=Hr}if(Oe[fa]||pe(Oe,fa,Dr),da[Dr]){for(var nt in Ot)if(Oe[nt]!==Ot[nt])try{pe(Oe,nt,Ot[nt])}catch{Oe[nt]=Ot[nt]}}}}(function(){function e(){Ye(this,e)}return Je(e,null,[{key:"deduplicate",value:function(t){return Array.from(new Set(t))}},{key:"flat",value:function(t){return t.reduce((function(r,n){var o=Array.isArray(n)?e.flat(n):n;return r.concat(o)}),[])}},{key:"find",value:function(t,r){return t.find(r)}},{key:"findIndex",value:function(t,r){return t.findIndex(r)}}]),e})();(function(){function e(){Ye(this,e)}return Je(e,null,[{key:"today",value:function(){return new Date}}]),e})();(function(){function e(){Ye(this,e)}return Je(e,null,[{key:"range",value:function(t,r,n){return Math.min(Math.max(t,r),n)}},{key:"clamp",value:function(t,r,n){return r<n?t<r?r:t>n?n:t:t<n?n:t>r?r:t}}]),e})();var Cp=Object.defineProperty,wp=(e,t,r)=>t in e?Cp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Z=(e,t,r)=>(wp(e,typeof t!="symbol"?t+"":t,r),r);const U=e=>Math.round(e*100)/100;class z{constructor(t){Z(this,"instance"),Z(this,"alphaValue",0),Z(this,"redValue",0),Z(this,"greenValue",0),Z(this,"blueValue",0),Z(this,"hueValue",0),Z(this,"saturationValue",0),Z(this,"brightnessValue",0),Z(this,"hslSaturationValue",0),Z(this,"lightnessValue",0),Z(this,"initAlpha",()=>{const r=this.instance.getAlpha();this.alphaValue=Math.min(1,r)*100}),Z(this,"initLightness",()=>{const{s:r,l:n}=this.instance.toHsl();this.hslSaturationValue=U(r),this.lightnessValue=U(n)}),Z(this,"initRgb",()=>{const{r,g:n,b:o}=this.instance.toRgb();this.redValue=U(r),this.greenValue=U(n),this.blueValue=U(o)}),Z(this,"initHsb",()=>{const{h:r,s:n,v:o}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil(r)),this.saturationValue=U(n),this.brightnessValue=U(o)}),Z(this,"toHexString",()=>this.instance.toHexString()),Z(this,"toRgbString",()=>this.instance.toRgbString()),this.instance=k(t),this.initRgb(),this.initHsb(),this.initLightness(),this.initAlpha()}toString(t){return this.instance.toString(t)}get hex(){return this.instance.toHex()}set hex(t){this.instance=k(t),this.initHsb(),this.initRgb(),this.initAlpha(),this.initLightness()}set hue(t){this.saturation===0&&this.brightness===0&&(this.saturationValue=1,this.brightnessValue=1),this.instance=k({h:U(t),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=U(t)}get hue(){return this.hueValue}set saturation(t){this.instance=k({h:this.hue,s:U(t),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=U(t)}get saturation(){return this.saturationValue}set brightness(t){this.instance=k({h:this.hue,s:this.saturation,v:U(t),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=U(t)}get brightness(){return this.brightnessValue}set lightness(t){this.instance=k({h:this.hue,s:this.hslSaturationValue,l:U(t),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=U(t)}get lightness(){return this.lightnessValue}set red(t){const r=this.instance.toRgb();this.instance=k({...r,r:U(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.redValue=U(t)}get red(){return this.redValue}set green(t){const r=this.instance.toRgb();this.instance=k({...r,g:U(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.greenValue=U(t)}get green(){return this.greenValue}set blue(t){const r=this.instance.toRgb();this.instance=k({...r,b:U(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.blueValue=U(t)}get blue(){return this.blueValue}set alpha(t){this.instance.setAlpha(t/100),this.alphaValue=t}get alpha(){return this.alphaValue}get RGB(){return[this.red,this.green,this.blue,parseFloat((this.alpha/100).toFixed(2))]}get HSB(){return[this.hue,this.saturation,this.brightness,parseFloat((this.alpha/100).toFixed(2))]}get HSL(){return[this.hue,this.hslSaturationValue,this.lightness,parseFloat((this.alpha/100).toFixed(2))]}}function ha(e,t,r,n){return`rgba(${[e,t,r,n/100].join(",")})`}const zr=(e,t,r)=>t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e,Tn="color-history",jn=8,me=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Sp=a.defineComponent({name:"Alpha",props:{color:T.instanceOf(z),size:T.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(null);let o=e.color||new z;const i=a.reactive({red:o.red,green:o.green,blue:o.blue,alpha:o.alpha});a.watch(()=>e.color,f=>{f&&(o=f,ht.merge(i,{red:f.red,green:f.green,blue:f.blue,alpha:f.alpha}))},{deep:!0});const c=a.computed(()=>{const f=ha(i.red,i.green,i.blue,0),p=ha(i.red,i.green,i.blue,100);return{background:`linear-gradient(to right, ${f} , ${p})`}}),l=()=>{if(r.value&&n.value){const f=i.alpha/100,p=r.value.getBoundingClientRect(),h=n.value.offsetWidth;return Math.round(f*(p.width-h)+h/2)}return 0},s=a.computed(()=>({left:l()+"px",top:0})),d=f=>{f.target!==r.value&&u(f)},u=f=>{if(f.stopPropagation(),r.value&&n.value){const p=r.value.getBoundingClientRect(),h=n.value.offsetWidth;let C=f.clientX-p.left;C=Math.max(h/2,C),C=Math.min(C,p.width-h/2);const g=Math.round((C-h/2)/(p.width-h)*100);o.alpha=g,i.alpha=g,t("change",g)}};return Ke(()=>{const f={drag:p=>{u(p)},end:p=>{u(p)}};r.value&&n.value&&Rt.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:s,getBackgroundStyle:c,onClickSider:d}}}),xp=e=>(a.pushScopeId("data-v-18925ba6"),e=e(),a.popScopeId(),e),kp=xp(()=>a.createElementVNode("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),Op=[kp];function Ep(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-alpha-slider","transparent",{"small-slider":e.size==="small"}])},[a.createElementVNode("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:a.normalizeStyle(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...c)=>e.onClickSider&&e.onClickSider(...c))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-alpha-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Op,6)],4)],2)}const Pn=me(Sp,[["render",Ep],["__scopeId","data-v-18925ba6"]]),_p=[["#fcc02e","#f67c01","#e64a19","#d81b43","#8e24aa","#512da7","#1f87e8","#008781","#05a045"],["#fed835","#fb8c00","#f5511e","#eb1d4e","#9c28b1","#5d35b0","#2097f3","#029688","#4cb050"],["#ffeb3c","#ffa727","#fe5722","#eb4165","#aa47bc","#673bb7","#42a5f6","#26a59a","#83c683"],["#fff176","#ffb74e","#ff8a66","#f1627e","#b968c7","#7986cc","#64b5f6","#80cbc4","#a5d6a7"],["#fff59c","#ffcc80","#ffab91","#fb879e","#cf93d9","#9ea8db","#90caf8","#b2dfdc","#c8e6ca"],["transparent","#ffffff","#dedede","#a9a9a9","#4b4b4b","#353535","#212121","#000000","advance"]],Np=a.defineComponent({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:_p,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:k(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),Ap={class:"vc-compact"},Vp=["onClick"];function Tp(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",Ap,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.palettes,(c,l)=>(a.openBlock(),a.createElementBlock("div",{key:l,class:"vc-compact__row"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c,(s,d)=>(a.openBlock(),a.createElementBlock("div",{key:d,class:"vc-compact__color-cube--wrap",onClick:u=>e.onColorChange(s)},[a.createElementVNode("div",{class:a.normalizeClass(["vc-compact__color_cube",{advance:s==="advance",transparent:s==="transparent"}]),style:a.normalizeStyle(e.computedBgStyle(s))},null,6)],8,Vp))),128))]))),128))])}const Wi=me(Np,[["render",Tp],["__scopeId","data-v-b969fd48"]]),jp=a.defineComponent({name:"Board",props:{color:T.instanceOf(z),round:T.bool.def(!1),hide:T.bool.def(!0)},emits:["change"],setup(e,{emit:t}){var r,n,o;const i=a.getCurrentInstance(),c={h:((r=e.color)==null?void 0:r.hue)||0,s:1,v:1},l=new z(c).toHexString(),s=a.reactive({hueColor:l,saturation:((n=e.color)==null?void 0:n.saturation)||0,brightness:((o=e.color)==null?void 0:o.brightness)||0}),d=a.ref(0),u=a.ref(0),f=a.ref(),p=a.computed(()=>({top:d.value+"px",left:u.value+"px"})),h=()=>{if(i){const S=i.vnode.el;u.value=s.saturation*S?.clientWidth,d.value=(1-s.brightness)*S?.clientHeight}};let C=!1;const g=S=>{C=!0,y(S)},v=S=>{C&&y(S)},m=()=>{C=!1},y=S=>{if(i){const x=i.vnode.el,_=x?.getBoundingClientRect();let E=S.clientX-_.left,j=S.clientY-_.top;E=zr(E,0,_.width),j=zr(j,0,_.height);const M=E/_.width,I=zr(-(j/_.height)+1,0,1);u.value=E,d.value=j,s.saturation=M,s.brightness=I,t("change",M,I)}};return Ke(()=>{i&&i.vnode.el&&f.value&&a.nextTick(()=>{h()})}),Q(()=>e.color,S=>{ht.merge(s,{hueColor:new z({h:S.hue,s:1,v:1}).toHexString(),saturation:S.saturation,brightness:S.brightness}),h()},{deep:!0}),{state:s,cursorElement:f,getCursorStyle:p,onClickBoard:g,onDrag:v,onDragEnd:m}}}),$n=e=>(a.pushScopeId("data-v-7f0cdcdf"),e=e(),a.popScopeId(),e),Pp=$n(()=>a.createElementVNode("div",{class:"vc-saturation__white"},null,-1)),$p=$n(()=>a.createElementVNode("div",{class:"vc-saturation__black"},null,-1)),Rp=$n(()=>a.createElementVNode("div",null,null,-1)),Ip=[Rp];function Mp(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{ref:"boardElement",class:a.normalizeClass(["vc-saturation",{"vc-saturation__chrome":e.round,"vc-saturation__hidden":e.hide}]),style:a.normalizeStyle({backgroundColor:e.state.hueColor}),onMousedown:t[0]||(t[0]=(...c)=>e.onClickBoard&&e.onClickBoard(...c)),onMousemove:t[1]||(t[1]=(...c)=>e.onDrag&&e.onDrag(...c)),onMouseup:t[2]||(t[2]=(...c)=>e.onDragEnd&&e.onDragEnd(...c))},[Pp,$p,a.createElementVNode("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Ip,4)],38)}const Rn=me(jp,[["render",Mp],["__scopeId","data-v-7f0cdcdf"]]),Fp=a.defineComponent({name:"Hue",props:{color:T.instanceOf(z),size:T.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(null);let o=e.color||new z;const i=a.reactive({hue:o.hue||0});a.watch(()=>e.color,u=>{u&&(o=u,ht.merge(i,{hue:o.hue}))},{deep:!0});const c=()=>{if(r.value&&n.value){const u=r.value.getBoundingClientRect(),f=n.value.offsetWidth;return i.hue===360?u.width-f/2:i.hue%360*(u.width-f)/360+f/2}return 0},l=a.computed(()=>({left:c()+"px",top:0})),s=u=>{u.target!==r.value&&d(u)},d=u=>{if(u.stopPropagation(),r.value&&n.value){const f=r.value.getBoundingClientRect(),p=n.value.offsetWidth;let h=u.clientX-f.left;h=Math.min(h,f.width-p/2),h=Math.max(p/2,h);const C=Math.round((h-p/2)/(f.width-p)*360);o.hue=C,i.hue=C,t("change",C)}};return Ke(()=>{const u={drag:f=>{d(f)},end:f=>{d(f)}};r.value&&n.value&&Rt.triggerDragEvent(r.value,u)}),{barElement:r,cursorElement:n,getCursorStyle:l,onClickSider:s}}}),Bp=e=>(a.pushScopeId("data-v-e1a08576"),e=e(),a.popScopeId(),e),Lp=Bp(()=>a.createElementVNode("div",{class:"vc-hue-slider__bar-handle"},null,-1)),Gp=[Lp];function Hp(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-hue-slider",{"small-slider":e.size==="small"}])},[a.createElementVNode("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:t[0]||(t[0]=(...c)=>e.onClickSider&&e.onClickSider(...c))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-hue-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Gp,6)],512)],2)}const In=me(Fp,[["render",Hp],["__scopeId","data-v-e1a08576"]]),Dp=a.defineComponent({name:"Lightness",props:{color:T.instanceOf(z),size:T.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(null);let o=e.color||new z;const[i,c,l]=o.HSL,s=a.reactive({hue:i,saturation:c,lightness:l});a.watch(()=>e.color,C=>{if(C){o=C;const[g,v,m]=o.HSL;ht.merge(s,{hue:g,saturation:v,lightness:m})}},{deep:!0});const d=a.computed(()=>{const C=k({h:s.hue,s:s.saturation,l:.8}).toPercentageRgbString(),g=k({h:s.hue,s:s.saturation,l:.6}).toPercentageRgbString(),v=k({h:s.hue,s:s.saturation,l:.4}).toPercentageRgbString(),m=k({h:s.hue,s:s.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${C}, ${g}, ${v}, ${m}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${C}, ${g}, ${v}, ${m}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${C}, ${g}, ${v}, ${m}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${C}, ${g}, ${v}, ${m}, rgb(0, 0, 0))`]}}),u=()=>{if(r.value&&n.value){const C=s.lightness,g=r.value.getBoundingClientRect(),v=n.value.offsetWidth;return(1-C)*(g.width-v)+v/2}return 0},f=a.computed(()=>({left:u()+"px",top:0})),p=C=>{C.target!==r.value&&h(C)},h=C=>{if(C.stopPropagation(),r.value&&n.value){const g=r.value.getBoundingClientRect(),v=n.value.offsetWidth;let m=C.clientX-g.left;m=Math.max(v/2,m),m=Math.min(m,g.width-v/2);const y=1-(m-v/2)/(g.width-v);o.lightness=y,t("change",y)}};return Ke(()=>{const C={drag:g=>{h(g)},end:g=>{h(g)}};r.value&&n.value&&Rt.triggerDragEvent(r.value,C)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:d,onClickSider:p}}}),zp=e=>(a.pushScopeId("data-v-94a50a9e"),e=e(),a.popScopeId(),e),qp=zp(()=>a.createElementVNode("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),Wp=[qp];function Up(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-lightness-slider",{"small-slider":e.size==="small"}])},[a.createElementVNode("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:a.normalizeStyle(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...c)=>e.onClickSider&&e.onClickSider(...c))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-lightness-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Wp,6)],4)],2)}const Ui=me(Dp,[["render",Up],["__scopeId","data-v-94a50a9e"]]),Kp=a.defineComponent({name:"History",props:{colors:T.arrayOf(String).def(()=>[]),round:T.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),Xp={key:0,class:"vc-colorPicker__record"},Yp={class:"color-list"},Jp=["onClick"];function Zp(e,t,r,n,o,i){return e.colors&&e.colors.length>0?(a.openBlock(),a.createElementBlock("div",Xp,[a.createElementVNode("div",Yp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.colors,(c,l)=>(a.openBlock(),a.createElementBlock("div",{key:l,class:a.normalizeClass(["color-item","transparent",{"color-item__round":e.round}]),onClick:s=>e.onColorSelect(c)},[a.createElementVNode("div",{class:"color-item__display",style:a.normalizeStyle({backgroundColor:c})},null,4)],10,Jp))),128))])])):a.createCommentVNode("",!0)}const Mn=me(Kp,[["render",Zp],["__scopeId","data-v-0f657238"]]),Qp=a.defineComponent({name:"Display",props:{color:T.instanceOf(z),disableAlpha:T.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,o,i;const{copy:c,copied:l,isSupported:s}=rc(),d=a.ref("hex"),u=a.reactive({color:e.color,hex:(r=e.color)==null?void 0:r.hex,alpha:Math.round(((n=e.color)==null?void 0:n.alpha)||100),rgba:(o=e.color)==null?void 0:o.RGB,previewBgColor:(i=e.color)==null?void 0:i.toRgbString()}),f=a.computed(()=>({background:u.previewBgColor})),p=()=>{d.value=d.value==="rgba"?"hex":"rgba"},h=Ee(m=>{if(!m.target.value)return;let y=parseInt(m.target.value.replace("%",""));y>100&&(m.target.value="100",y=100),y<0&&(m.target.value="0",y=0),isNaN(y)&&(m.target.value="100",y=100),!isNaN(y)&&u.color&&(u.color.alpha=y),t("change",u.color)},300),C=Ee((m,y)=>{if(u.color){if(d.value==="hex"){const S=m.target.value.replace("#","");k(S).isValid()?[3,4].includes(S.length)&&(u.color.hex=S):u.color.hex="000000",t("change",u.color)}else if(d.value==="rgba"&&y===3&&m.target.value.toString()==="0."&&u.rgba){u.rgba[y]=m.target.value;const[S,x,_,E]=u.rgba;u.color.hex=k({r:S,g:x,b:_}).toHex(),u.color.alpha=Math.round(E*100),t("change",u.color)}}},100),g=Ee((m,y)=>{if(m.target.value){if(d.value==="hex"){const S=m.target.value.replace("#","");k(S).isValid()&&u.color&&[6,8].includes(S.length)&&(u.color.hex=S)}else if(y!==void 0&&u.rgba&&u.color){if(m.target.value<0&&(m.target.value=0),y===3&&((m.target.value>1||isNaN(m.target.value))&&(m.target.value=1),m.target.value.toString()==="0."))return;y<3&&m.target.value>255&&(m.target.value=255),u.rgba[y]=m.target.value;const[S,x,_,E]=u.rgba;u.color.hex=k({r:S,g:x,b:_}).toHex(),u.color.alpha=Math.round(E*100)}t("change",u.color)}},300),v=()=>{if(s&&u.color){const m=d.value==="hex"?u.color.toString(u.color.alpha===100?"hex6":"hex8"):u.color.toRgbString();c(m||"")}};return Q(()=>e.color,m=>{m&&(u.color=m,u.alpha=Math.round(u.color.alpha),u.hex=u.color.hex,u.rgba=u.color.RGB)},{deep:!0}),Q(()=>u.color,()=>{u.color&&(u.previewBgColor=u.color.toRgbString())},{deep:!0}),{state:u,getBgColorStyle:f,inputType:d,copied:l,onInputTypeChange:p,onAlphaBlur:h,onInputChange:g,onBlurChange:C,onCopyColorStr:v}}}),eh={class:"vc-display"},th={class:"vc-current-color vc-transparent"},rh={key:0,class:"copy-text"},nh={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},oh={class:"vc-color-input"},ah={key:0,class:"vc-alpha-input"},ih=["value"],lh={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},sh=["value","onInput","onBlur"];function ch(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",eh,[a.createElementVNode("div",th,[a.createElementVNode("div",{class:"color-cube",style:a.normalizeStyle(e.getBgColorStyle),onClick:t[0]||(t[0]=(...c)=>e.onCopyColorStr&&e.onCopyColorStr(...c))},[e.copied?(a.openBlock(),a.createElementBlock("span",rh,"Copied!")):a.createCommentVNode("",!0)],4)]),e.inputType==="hex"?(a.openBlock(),a.createElementBlock("div",nh,[a.createElementVNode("div",oh,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=c=>e.state.hex=c),maxlength:"8",onInput:t[2]||(t[2]=(...c)=>e.onInputChange&&e.onInputChange(...c)),onBlur:t[3]||(t[3]=(...c)=>e.onBlurChange&&e.onBlurChange(...c))},null,544),[[a.vModelText,e.state.hex]])]),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",ah,[a.createElementVNode("input",{class:"vc-alpha-input__inner",value:e.state.alpha,onInput:t[4]||(t[4]=(...c)=>e.onAlphaBlur&&e.onAlphaBlur(...c))},null,40,ih),a.createTextVNode("% ")]))])):e.state.rgba?(a.openBlock(),a.createElementBlock("div",lh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.state.rgba,(c,l)=>(a.openBlock(),a.createElementBlock("div",{class:"vc-color-input",key:l},[a.createElementVNode("input",{value:c,onInput:s=>e.onInputChange(s,l),onBlur:s=>e.onBlurChange(s,l)},null,40,sh)]))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"vc-input-toggle",onClick:t[5]||(t[5]=(...c)=>e.onInputTypeChange&&e.onInputTypeChange(...c))},a.toDisplayString(e.inputType),1)])}const Fn=me(Qp,[["render",ch],["__scopeId","data-v-7334ac20"]]),uh=a.defineComponent({name:"FkColorPicker",components:{Display:Fn,Alpha:Pn,Palette:Wi,Board:Rn,Hue:In,Lightness:Ui,History:Mn},props:{color:T.instanceOf(z),disableHistory:T.bool.def(!1),roundHistory:T.bool.def(!1),disableAlpha:T.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(e,{emit:t}){const r=e.color||new z,n=a.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=a.ref(!1),i=a.computed(()=>({background:n.rgb})),c=()=>{o.value=!1,t("advanceChange",!1)},l=sn(Tn,[],{}),s=Ee(()=>{if(e.disableHistory)return;const g=n.color.toRgbString();if(l.value=l.value.filter(v=>!k.equals(v,g)),!l.value.includes(g)){for(;l.value.length>jn;)l.value.pop();l.value.unshift(g)}},500),d=g=>{g==="advance"?(o.value=!0,t("advanceChange",!0)):(n.color.hex=g,t("advanceChange",!1))},u=g=>{n.color.alpha=g},f=g=>{n.color.hue=g},p=(g,v)=>{n.color.saturation=g,n.color.brightness=v},h=g=>{n.color.lightness=g},C=g=>{const v=g.target.value.replace("#","");k(v).isValid()&&(n.color.hex=v)};return Q(()=>e.color,g=>{g&&(n.color=g)},{deep:!0}),Q(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),s(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,advancePanelShow:o,onBack:c,onCompactChange:d,onAlphaChange:u,onHueChange:f,onBoardChange:p,onLightChange:h,onInputChange:C,previewStyle:i,historyColors:l}}}),dh=e=>(a.pushScopeId("data-v-48e3c224"),e=e(),a.popScopeId(),e),fh={class:"vc-fk-colorPicker"},ph={class:"vc-fk-colorPicker__inner"},hh={class:"vc-fk-colorPicker__header"},vh=dh(()=>a.createElementVNode("div",{class:"back"},null,-1)),mh=[vh];function gh(e,t,r,n,o,i){const c=a.resolveComponent("Palette"),l=a.resolveComponent("Board"),s=a.resolveComponent("Hue"),d=a.resolveComponent("Lightness"),u=a.resolveComponent("Alpha"),f=a.resolveComponent("Display"),p=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",fh,[a.createElementVNode("div",ph,[a.createElementVNode("div",hh,[e.advancePanelShow?(a.openBlock(),a.createElementBlock("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...h)=>e.onBack&&e.onBack(...h))},mh)):a.createCommentVNode("",!0)]),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:0,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?(a.openBlock(),a.createBlock(l,{key:1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?(a.openBlock(),a.createBlock(s,{key:2,color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(d,{key:3,color:e.state.color,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(u,{key:4,color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"])),a.createVNode(f,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(p,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const va=me(uh,[["render",gh],["__scopeId","data-v-48e3c224"]]),yh=a.defineComponent({name:"ChromeColorPicker",components:{Display:Fn,Alpha:Pn,Board:Rn,Hue:In,History:Mn},props:{color:T.instanceOf(z),disableHistory:T.bool.def(!1),roundHistory:T.bool.def(!1),disableAlpha:T.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){const r=e.color||new z,n=a.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=a.computed(()=>({background:n.rgb})),i=sn(Tn,[],{}),c=Ee(()=>{if(e.disableHistory)return;const p=n.color.toRgbString();if(i.value=i.value.filter(h=>!k.equals(h,p)),!i.value.includes(p)){for(;i.value.length>jn;)i.value.pop();i.value.unshift(p)}},500),l=p=>{n.color.alpha=p},s=p=>{n.color.hue=p},d=p=>{p.hex!==void 0&&(n.color.hex=p.hex),p.alpha!==void 0&&(n.color.alpha=p.alpha)},u=(p,h)=>{n.color.saturation=p,n.color.brightness=h},f=p=>{p!=="advance"&&(n.color.hex=p)};return Q(()=>e.color,p=>{p&&(n.color=p)},{deep:!0}),Q(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),c(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,previewStyle:o,historyColors:i,onAlphaChange:l,onHueChange:s,onBoardChange:u,onInputChange:d,onCompactChange:f}}}),bh={class:"vc-chrome-colorPicker"},Ch={class:"vc-chrome-colorPicker-body"},wh={class:"chrome-controls"},Sh={class:"chrome-sliders"};function xh(e,t,r,n,o,i){const c=a.resolveComponent("Board"),l=a.resolveComponent("Hue"),s=a.resolveComponent("Alpha"),d=a.resolveComponent("Display"),u=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",bh,[a.createVNode(c,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),a.createElementVNode("div",Ch,[a.createElementVNode("div",wh,[a.createElementVNode("div",Sh,[a.createVNode(l,{size:"small",color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"]),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(s,{key:0,size:"small",color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"]))])]),a.createVNode(d,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(u,{key:0,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const ma=me(yh,[["render",xh],["__scopeId","data-v-2611d66c"]]),Bn="Vue3ColorPickerProvider",kh=(e,t)=>{const r=e.getBoundingClientRect(),n=r.left+r.width/2,o=r.top+r.height/2,i=Math.abs(n-t.clientX),c=Math.abs(o-t.clientY),l=Math.sqrt(Math.pow(i,2)+Math.pow(c,2)),s=c/l,d=Math.acos(s);let u=Math.floor(180/(Math.PI/d));return t.clientX>n&&t.clientY>o&&(u=180-u),t.clientX==n&&t.clientY>o&&(u=180),t.clientX>n&&t.clientY==o&&(u=90),t.clientX<n&&t.clientY>o&&(u=180+u),t.clientX<n&&t.clientY==o&&(u=270),t.clientX<n&&t.clientY<o&&(u=360-u),u};let qr=!1;const Oh=(e,t)=>{const r=function(o){var i;(i=t.drag)==null||i.call(t,o)},n=function(o){var i;document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",n,!1),document.onselectstart=null,document.ondragstart=null,qr=!1,(i=t.end)==null||i.call(t,o)};e&&e.addEventListener("mousedown",o=>{var i;qr||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),qr=!0,(i=t.start)==null||i.call(t,o))})},Eh={angle:{type:Number,default:0},size:{type:Number,default:16,validator:e=>e>=16},borderWidth:{type:Number,default:1,validator:e=>e>=1},borderColor:{type:String,default:"#666"}},_h=a.defineComponent({name:"Angle",props:Eh,emits:["update:angle","change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(0);a.watch(()=>e.angle,l=>{n.value=l});const o=()=>{let l=Number(n.value);isNaN(l)||(l=l>360||l<0?e.angle:l,n.value=l===360?0:l,t("update:angle",n.value),t("change",n.value))},i=a.computed(()=>({width:e.size+"px",height:e.size+"px",borderWidth:e.borderWidth+"px",borderColor:e.borderColor,transform:`rotate(${n.value}deg)`})),c=l=>{r.value&&(n.value=kh(r.value,l)%360,o())};return a.onMounted(()=>{const l={drag:s=>{c(s)},end:s=>{c(s)}};r.value&&Oh(r.value,l)}),()=>a.createVNode("div",{class:"bee-angle"},[a.createVNode("div",{class:"bee-angle__round",ref:r,style:i.value},null)])}}),Nh=a.defineComponent({name:"GradientColorPicker",components:{Angle:_h,Display:Fn,Alpha:Pn,Palette:Wi,Board:Rn,Hue:In,Lightness:Ui,History:Mn},props:{startColor:T.instanceOf(z).isRequired,endColor:T.instanceOf(z).isRequired,startColorStop:T.number.def(0),endColorStop:T.number.def(100),angle:T.number.def(0),type:T.oneOf(["linear","radial"]).def("linear"),disableHistory:T.bool.def(!1),roundHistory:T.bool.def(!1),disableAlpha:T.bool.def(!1),pickerType:T.oneOf(["fk","chrome"]).def("fk")},emits:["update:startColor","update:endColor","update:angle","update:startColorStop","update:endColorStop","startColorChange","endColorChange","advanceChange","angleChange","startColorStopChange","endColorStopChange","typeChange"],setup(e,{emit:t}){const r=a.reactive({startActive:!0,startColor:e.startColor,endColor:e.endColor,startColorStop:e.startColorStop,endColorStop:e.endColorStop,angle:e.angle,type:e.type,startColorRgba:e.startColor.toRgbString(),endColorRgba:e.endColor.toRgbString()}),n=a.inject(Bn),o=a.ref(e.pickerType==="chrome"),i=a.ref(),c=a.ref(),l=a.ref();a.watch(()=>[e.startColor,e.endColor,e.angle],w=>{r.startColor=w[0],r.endColor=w[1],r.angle=w[2]}),a.watch(()=>e.type,w=>{r.type=w});const s=a.computed({get:()=>r.startActive?r.startColor:r.endColor,set:w=>{if(r.startActive){r.startColor=w;return}r.endColor=w}}),d=a.computed(()=>{if(l.value&&i.value){const w=r.startColorStop/100,A=l.value.getBoundingClientRect(),$=i.value.offsetWidth;return Math.round(w*(A.width-$)+$/2)}return 0}),u=a.computed(()=>{if(l.value&&c.value){const w=r.endColorStop/100,A=l.value.getBoundingClientRect(),$=c.value.offsetWidth;return Math.round(w*(A.width-$)+$/2)}return 0}),f=a.computed(()=>{let w=`background: linear-gradient(${r.angle}deg, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`;return r.type==="radial"&&(w=`background: radial-gradient(circle, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`),w}),p=w=>{var A;if(r.startActive=!0,l.value&&i.value){const $=(A=l.value)==null?void 0:A.getBoundingClientRect();let N=w.clientX-$.left;N=Math.max(i.value.offsetWidth/2,N),N=Math.min(N,$.width-i.value.offsetWidth/2),r.startColorStop=Math.round((N-i.value.offsetWidth/2)/($.width-i.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},h=w=>{var A;if(r.startActive=!1,l.value&&c.value){const $=(A=l.value)==null?void 0:A.getBoundingClientRect();let N=w.clientX-$.left;N=Math.max(c.value.offsetWidth/2,N),N=Math.min(N,$.width-c.value.offsetWidth/2),r.endColorStop=Math.round((N-c.value.offsetWidth/2)/($.width-c.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},C=w=>{const A=w.target,$=parseInt(A.value.replace("°",""));isNaN($)||(r.angle=$%360),t("update:angle",r.angle),t("angleChange",r.angle)},g=w=>{r.angle=w,t("update:angle",r.angle),t("angleChange",r.angle)},v=w=>{w==="advance"?(o.value=!0,t("advanceChange",!0)):(s.value.hex=w,t("advanceChange",!1)),E()},m=w=>{s.value.alpha=w,E()},y=w=>{s.value.hue=w,E()},S=(w,A)=>{s.value.saturation=w,s.value.brightness=A,E()},x=w=>{s.value.lightness=w,E()},_=()=>{E()},E=()=>{r.startActive?(t("update:startColor",r.startColor),t("startColorChange",r.startColor)):(t("update:endColor",r.endColor),t("endColorChange",r.endColor))},j=()=>{o.value=!1,t("advanceChange",!1)},M=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},I=sn(Tn,[],{}),B=Ee(()=>{if(e.disableHistory)return;const w=s.value.toRgbString();if(I.value=I.value.filter(A=>!k.equals(A,w)),!I.value.includes(w)){for(;I.value.length>jn;)I.value.pop();I.value.unshift(w)}},500);return Ke(()=>{c.value&&i.value&&(Rt.triggerDragEvent(c.value,{drag:w=>{h(w)},end:w=>{h(w)}}),Rt.triggerDragEvent(i.value,{drag:w=>{p(w)},end:w=>{p(w)}}))}),Q(()=>r.startColor,w=>{r.startColorRgba=w.toRgbString()},{deep:!0}),Q(()=>r.endColor,w=>{r.endColorRgba=w.toRgbString()},{deep:!0}),Q(()=>s.value,()=>{B()},{deep:!0}),{startGradientRef:i,stopGradientRef:c,colorRangeRef:l,state:r,currentColor:s,getStartColorLeft:d,getEndColorLeft:u,gradientBg:f,advancePanelShow:o,onDegreeBlur:C,onCompactChange:v,onAlphaChange:m,onHueChange:y,onBoardChange:S,onLightChange:x,historyColors:I,onBack:j,onDegreeChange:g,onDisplayChange:_,onTypeChange:M,lang:n?.lang}}}),Ki=e=>(a.pushScopeId("data-v-c4d6d6ea"),e=e(),a.popScopeId(),e),Ah={class:"vc-gradient-picker"},Vh={class:"vc-gradient-picker__header"},Th={class:"vc-gradient__types"},jh={class:"vc-gradient-wrap__types"},Ph={class:"vc-picker-degree-input vc-degree-input"},$h={class:"vc-degree-input__control"},Rh=["value"],Ih={class:"vc-degree-input__panel"},Mh={class:"vc-degree-input__disk"},Fh={class:"vc-gradient-picker__body"},Bh={class:"vc-color-range",ref:"colorRangeRef"},Lh={class:"vc-color-range__container"},Gh={class:"vc-gradient__stop__container"},Hh=["title"],Dh=Ki(()=>a.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),zh=[Dh],qh=["title"],Wh=Ki(()=>a.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),Uh=[Wh];function Kh(e,t,r,n,o,i){var c,l;const s=a.resolveComponent("Angle"),d=a.resolveComponent("Board"),u=a.resolveComponent("Hue"),f=a.resolveComponent("Palette"),p=a.resolveComponent("Lightness"),h=a.resolveComponent("Alpha"),C=a.resolveComponent("Display"),g=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",Ah,[a.createElementVNode("div",Vh,[a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...v)=>e.onBack&&e.onBack(...v))},null,512),[[a.vShow,e.pickerType==="fk"&&e.advancePanelShow]])]),a.createElementVNode("div",Th,[a.createElementVNode("div",jh,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(["linear","radial"],v=>a.createElementVNode("div",{class:a.normalizeClass(["vc-gradient__type",{active:e.state.type===v}]),key:v,onClick:t[1]||(t[1]=(...m)=>e.onTypeChange&&e.onTypeChange(...m))},a.toDisplayString(e.lang?e.lang[v]:v),3)),64))]),a.withDirectives(a.createElementVNode("div",Ph,[a.createElementVNode("div",$h,[a.createElementVNode("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...v)=>e.onDegreeBlur&&e.onDegreeBlur(...v))},null,40,Rh),a.createTextVNode("deg ")]),a.createElementVNode("div",Ih,[a.createElementVNode("div",Mh,[a.createVNode(s,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=v=>e.state.angle=v),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])],512),[[a.vShow,e.state.type==="linear"]])])]),a.createElementVNode("div",Fh,[a.createElementVNode("div",Bh,[a.createElementVNode("div",Lh,[a.createElementVNode("div",{class:"vc-background",style:a.normalizeStyle(e.gradientBg)},null,4),a.createElementVNode("div",Gh,[a.createElementVNode("div",{class:a.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":e.state.startActive}]),ref:"startGradientRef",title:(c=e.lang)==null?void 0:c.start,style:a.normalizeStyle({left:e.getStartColorLeft+"px",backgroundColor:e.state.startColorRgba})},zh,14,Hh),a.createElementVNode("div",{class:a.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":!e.state.startActive}]),ref:"stopGradientRef",title:(l=e.lang)==null?void 0:l.end,style:a.normalizeStyle({left:e.getEndColorLeft+"px",backgroundColor:e.state.endColorRgba})},Uh,14,qh)])])],512)]),e.advancePanelShow?(a.openBlock(),a.createBlock(d,{key:0,color:e.currentColor,onChange:e.onBoardChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?(a.openBlock(),a.createBlock(u,{key:1,color:e.currentColor,onChange:e.onHueChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(f,{key:2,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(p,{key:3,color:e.currentColor,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(h,{key:4,color:e.currentColor,onChange:e.onAlphaChange},null,8,["color","onChange"])),a.createVNode(C,{color:e.currentColor,"disable-alpha":e.disableAlpha,onChange:e.onDisplayChange},null,8,["color","disable-alpha","onChange"]),e.disableHistory?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(g,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const ga=me(Nh,[["render",Kh],["__scopeId","data-v-c4d6d6ea"]]),Xh=a.defineComponent({name:"WrapContainer",props:{theme:T.oneOf(["white","black"]).def("white"),showTab:T.bool.def(!1),activeKey:T.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const r=a.reactive({activeKey:e.activeKey}),n=a.inject(Bn),o=i=>{r.activeKey=i,t("update:activeKey",i),t("change",i)};return Q(()=>e.activeKey,i=>{r.activeKey=i}),{state:r,onActiveKeyChange:o,lang:n?.lang}}}),Yh={class:"vc-colorpicker--container"},Jh={key:0,class:"vc-colorpicker--tabs"},Zh={class:"vc-colorpicker--tabs__inner"},Qh={class:"vc-btn__content"},ev={class:"vc-btn__content"};function tv(e,t,r,n,o,i){var c,l;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-colorpicker",e.theme])},[a.createElementVNode("div",Yh,[e.showTab?(a.openBlock(),a.createElementBlock("div",Jh,[a.createElementVNode("div",Zh,[a.createElementVNode("div",{class:a.normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="pure"}]),onClick:t[0]||(t[0]=s=>e.onActiveKeyChange("pure"))},[a.createElementVNode("button",null,[a.createElementVNode("div",Qh,a.toDisplayString((c=e.lang)==null?void 0:c.pure),1)])],2),a.createElementVNode("div",{class:a.normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="gradient"}]),onClick:t[1]||(t[1]=s=>e.onActiveKeyChange("gradient"))},[a.createElementVNode("button",null,[a.createElementVNode("div",ev,a.toDisplayString((l=e.lang)==null?void 0:l.gradient),1)])],2),a.createElementVNode("div",{class:"vc-colorpicker--tabs__bg",style:a.normalizeStyle({width:"50%",left:`calc(${e.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):a.createCommentVNode("",!0),a.renderSlot(e.$slots,"default",{},void 0,!0)])],2)}const rv=me(Xh,[["render",tv],["__scopeId","data-v-0492277d"]]),nv={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},ov={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},av={En:nv,"ZH-cn":ov},iv={isWidget:T.bool.def(!1),pickerType:T.oneOf(["fk","chrome"]).def("fk"),shape:T.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:T.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:T.bool.def(!1),disableHistory:T.bool.def(!1),roundHistory:T.bool.def(!1),useType:T.oneOf(["pure","gradient","both"]).def("pure"),activeKey:T.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:T.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:T.number.def(100),theme:T.oneOf(["white","black"]).def("white"),blurClose:T.bool.def(!1),defaultPopup:T.bool.def(!1)},lv=a.defineComponent({name:"ColorPicker",components:{FkColorPicker:va,ChromeColorPicker:ma,GradientColorPicker:ga,WrapContainer:rv},inheritAttrs:!1,props:iv,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){a.provide(Bn,{lang:a.computed(()=>av[e.lang||"ZH-cn"])});const r=!!a.useSlots().extra,n=a.reactive({pureColor:e.pureColor||"",activeKey:e.useType==="gradient"?"gradient":e.activeKey,isAdvanceMode:!1}),o=new z("#000"),i=new z("#000"),c=new z(n.pureColor),l=a.reactive({startColor:o,endColor:i,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:e.gradientColor}),s=a.ref(c),d=a.ref(e.defaultPopup),u=a.ref(null),f=a.ref(null);let p=null;const h=a.computed(()=>({background:n.activeKey!=="gradient"?k(n.pureColor).toRgbString():l.gradientColor})),C=a.computed(()=>n.activeKey==="gradient"?ga.name:e.pickerType==="fk"?va.name:ma.name),g=w=>{n.isAdvanceMode=w},v=a.computed(()=>{const w={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...w,startColor:l.startColor,endColor:l.endColor,angle:l.angle,type:l.type,startColorStop:l.startColorStop,endColorStop:l.endColorStop,onStartColorChange:A=>{l.startColor=A,_()},onEndColorChange:A=>{l.endColor=A,_()},onStartColorStopChange:A=>{l.startColorStop=A,_()},onEndColorStopChange:A=>{l.endColorStop=A,_()},onAngleChange:A=>{l.angle=A,_()},onTypeChange:A=>{l.type=A,_()},onAdvanceChange:g}:{...w,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:s.value,onChange:M,onAdvanceChange:g}}),m=()=>{d.value=!0,p?p.update():j()},y=()=>{d.value=!1},S=Ee(()=>{!e.isWidget&&e.blurClose&&y()},100);ec(f,()=>{y()});const x=()=>{var w,A,$,N;try{const[P]=mo.parse(l.gradientColor);if(P&&P.type.includes("gradient")&&P.colorStops.length>=2){const F=P.colorStops[0],J=P.colorStops[1];l.startColorStop=Number((w=F.length)==null?void 0:w.value)||0,l.endColorStop=Number((A=J.length)==null?void 0:A.value)||0,P.type==="linear-gradient"&&(($=P.orientation)==null?void 0:$.type)==="angular"&&(l.angle=Number((N=P.orientation)==null?void 0:N.value)||0),l.type=P.type.split("-")[0];const[Te,ue,W,L]=F.value,[ge,O,V,R]=J.value;l.startColor=new z({r:Number(Te),g:Number(ue),b:Number(W),a:Number(L)}),l.endColor=new z({r:Number(ge),g:Number(O),b:Number(V),a:Number(R)})}}catch(P){console.log(`[Parse Color]: ${P}`)}},_=Ee(()=>{const w=E();try{l.gradientColor=mo.stringify(w),t("update:gradientColor",l.gradientColor),t("gradientColorChange",l.gradientColor)}catch(A){console.log(A)}},e.debounce),E=()=>{const w=[],A=l.startColor.RGB.map(P=>P.toString()),$=l.endColor.RGB.map(P=>P.toString()),N=[{type:"rgba",value:[A[0],A[1],A[2],A[3]],length:{value:l.startColorStop+"",type:"%"}},{type:"rgba",value:[$[0],$[1],$[2],$[3]],length:{value:l.endColorStop+"",type:"%"}}];return l.type==="linear"?w.push({type:"linear-gradient",orientation:{type:"angular",value:l.angle+""},colorStops:N}):l.type==="radial"&&w.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:N}),w},j=()=>{u.value&&f.value&&(p=Bu(u.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},M=w=>{s.value=w,n.pureColor=w.toString(e.format),I()},I=Ee(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),B=w=>{n.activeKey=w,t("update:activeKey",w),t("activeKeyChange",w)};return Ke(()=>{x(),p||j()}),Q(()=>e.gradientColor,w=>{w!=l.gradientColor&&(l.gradientColor=w)}),Q(()=>l.gradientColor,()=>{x()}),Q(()=>e.activeKey,w=>{n.activeKey=w}),Q(()=>e.useType,w=>{n.activeKey!=="gradient"&&w==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),Q(()=>e.pureColor,w=>{k.equals(w,n.pureColor)||(n.pureColor=w,s.value=new z(w))},{deep:!0}),{colorCubeRef:u,pickerRef:f,showPicker:d,colorInstance:s,getBgColorStyle:h,getComponentName:C,getBindArgs:v,state:n,hasExtra:r,onColorChange:M,onShowPicker:m,onActiveKeyChange:B,onAutoClose:S}}}),sv={key:0,class:"vc-color-extra"},cv={key:0,class:"vc-color-extra"};function uv(e,t,r,n,o,i){const c=a.resolveComponent("WrapContainer");return a.openBlock(),a.createElementBlock(a.Fragment,null,[e.isWidget?(a.openBlock(),a.createBlock(c,{key:0,"active-key":e.state.activeKey,"onUpdate:activeKey":t[0]||(t[0]=l=>e.state.activeKey=l),"show-tab":e.useType==="both",style:a.normalizeStyle({zIndex:e.zIndex}),theme:e.theme,onChange:e.onActiveKeyChange},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.getComponentName),a.mergeProps({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(a.openBlock(),a.createElementBlock("div",sv,[a.renderSlot(e.$slots,"extra",{},void 0,!0)])):a.createCommentVNode("",!0)]),_:3},8,["active-key","show-tab","style","theme","onChange"])):a.createCommentVNode("",!0),e.isWidget?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:a.normalizeClass(["vc-color-wrap transparent",{round:e.shape==="circle"}]),ref:"colorCubeRef"},[a.createElementVNode("div",{class:"current-color",style:a.normalizeStyle(e.getBgColorStyle),onClick:t[1]||(t[1]=(...l)=>e.onShowPicker&&e.onShowPicker(...l))},null,4)],2),(a.openBlock(),a.createBlock(a.Teleport,{to:e.pickerContainer},[a.withDirectives(a.createElementVNode("div",{ref:"pickerRef",style:a.normalizeStyle({zIndex:e.zIndex}),onMouseleave:t[3]||(t[3]=(...l)=>e.onAutoClose&&e.onAutoClose(...l))},[e.showPicker?(a.openBlock(),a.createBlock(c,{key:0,"show-tab":e.useType==="both"&&!e.state.isAdvanceMode,theme:e.theme,"active-key":e.state.activeKey,"onUpdate:activeKey":t[2]||(t[2]=l=>e.state.activeKey=l),onChange:e.onActiveKeyChange},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.getComponentName),a.mergeProps({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(a.openBlock(),a.createElementBlock("div",cv,[a.renderSlot(e.$slots,"extra",{},void 0,!0)])):a.createCommentVNode("",!0)]),_:3},8,["show-tab","theme","active-key","onChange"])):a.createCommentVNode("",!0)],36),[[a.vShow,e.showPicker]])],8,["to"]))],64))],64)}const dv=me(lv,[["render",uv],["__scopeId","data-v-354ca836"]]),fv={install(e){e.use(Kl),e.use(Xl),e.use(Ql),e.use(rs),e.use(as),e.use(is),e.use(us),e.use(ps),e.use(ms),e.use(Ss),e.use(Os),e.use(Es),e.use(Ns),e.use(js),e.use($s),e.use(Fs),e.use(Bs),e.use(Ls),e.use(Yl),e.use(Rs),e.use(_s),e.use(As),e.use(ls),e.component("ColorPicker",dv)}},ya=a.defineComponent({name:"GctEditForm",props:{embed:{type:Boolean,default:!1},context:{type:Object,default:()=>({})},params:{type:Object,default:()=>({})},controller:{type:Object},model:{type:Object,required:!0},data:{type:Object}},emits:["update:data"],setup(e,{emit:t}){const r=b.useNamespace("gct-edit-form");if(!e.model)throw new Error("未传递表单模型配置");const n=e.controller||b.useEditFormController(()=>new b.EditFormController(e.model)),o=a.ref(null),i=async()=>{try{await o.value.formRef.validate()}catch(l){return console.error(l),!1}return!0},c=async l=>{try{await o.value.formRef.validateFields(l)}catch(s){return console.error(s),!1}return!0};return n.validate=i,n.validateItem=c,a.watch(e.context,()=>{Object.assign(n.context,e.context),n.state.isNew=!n.context.id},{immediate:!0}),a.watch(e.params,()=>{Object.assign(n.params,e.params)}),b.useModal(async()=>{try{await o.value.formRef.validate();const l=await n.save();if(l)return{ok:!0,data:[ht.cloneDeep(l)]}}catch(l){console.error(l)}return{ok:!1}}),e.data?(Object.assign(n.state.data,e.data),n.loaded()):n.state.isNew!==!0?n.load().then(()=>{n.loaded()}):n.loaded(),e.embed&&n.evt.on("change",()=>{t("update:data",n.getData())}),{ns:r,c:n,formRef:o}},render(){let e=null;return(this.c.state.isNew||this.c.state.isNew==!1&&this.c.state.loaded)&&(e=a.createVNode(a.resolveComponent("gct-form"),{class:"h-full",ref:"formRef",model:this.model,c:this.c},null)),a.createVNode("div",{class:this.ns.b()},[e])}}),pv={install(e){e.component(ya.name,ya)}};function hv(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const ba=a.defineComponent({name:"GctFormItem",props:{c:{type:Object,required:!0},formModel:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=b.useNamespace("gct-form-item"),r={};e.formModel.labelWidth&&(r[t.cssVarName("form-item-label-width")]=e.formModel.labelWidth),e.model.labelWidth&&(r[t.cssVarName("form-item-label-width")]=e.model.labelWidth),e.model.labelAlign&&(r[t.cssVarName("form-item-label-align")]=e.model.labelAlign),e.model.editorAlign&&(r[t.cssVarName("form-item-editor-align")]=e.model.editorAlign),e.model.width&&(r[t.cssVarName("form-item-width")]=e.model.width),e.model.margin&&(r.margin=e.model.margin),e.model.padding&&(r.padding=e.model.padding);const n=a.computed(()=>!!e.model.rules?.find(i=>i.required));return{ns:t,style:r,required:n,renderLabelTooltip:()=>e.model.labelTooltip?a.createVNode(a.resolveComponent("a-tooltip"),{class:t.e("label-tooltip"),placement:"topLeft",title:e.model.labelTooltip},{default:()=>[a.createVNode("span",{class:"iconfont icon-assist ml5px text-[#bfbfbf]"},null)]}):null}},render(){const e=_gct.register.editor.get(b.EditorRegisterConst.PREFIX+this.model.editor.type);if(!e)return console.error(`未找到表单项${this.model.name}的编辑器${this.model.editor.type}的适配器实例:`,this.model),null;const t=this.model.labelPosition||"left";let r=null;e?e.render?r=e.render(this.c.editorValue,this.c.data,this.model):e.component?r=a.h(typeof e.component=="string"?a.resolveComponent(e.component):e.component,{key:this.model.name,c:this.c,value:this.c.editorValue,itemModel:this.model,model:this.model.editor,data:this.c.data,disabled:this.c.state.disabled,readonly:this.c.state.readonly,keepalive:this.c.state.keepalive,visible:this.c.state.visible,class:[this.ns.e("editor"),this.ns.e(t),this.model.editor.class],style:this.model.editor.style,"onUpdate:value":o=>{this.c.editorValue=o}}):console.error(`未找到编辑器绘制组件:${this.model.name} - ${this.model.editor.type},请实现 component 或 render 方法`):console.error(`未找到编辑器适配器:${this.model.name} - ${this.model.editor.type}`),this.model.label&&t==="top"&&(r=[a.createVNode("div",{class:[this.ns.e("label"),this.ns.em("label",t)]},[this.model.label,this.renderLabelTooltip()]),r]);const n={default:()=>r};return t==="left"&&this.model.label&&(n.label=()=>[a.createVNode("span",null,[this.model.label]),this.renderLabelTooltip()]),a.createVNode(a.resolveComponent("a-form-item"),{key:this.c.model.name,colon:this.formModel.noColon===!0?!1:this.model.noColon!==!0,name:this.model.name,label:void 0,class:[this.ns.b(),this.ns.is("readonly",this.model.editor.readonly===!0),this.ns.is("required",this.required),this.ns.is("hidden",this.c.state.visible===!1),this.ns.is("hidden-label",!this.model.label),this.ns.m("label-"+t)],style:this.style,rules:this.c.state.visible===!0?this.model.rules:[],layout:"horizontal"},hv(n)?n:{default:()=>[n]})}});function vv(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Ca=a.defineComponent({name:"GctForm",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=b.useNamespace("gct-form");a.provide("formController",e.c);const r=a.ref(null),n=e.c;Object.keys(n.item).forEach(d=>{const u=n.item[d];u&&(u.state=a.reactive(u.state))});const i=d=>a.createVNode(a.resolveComponent("gct-form-item"),{class:d.class,style:d.style,c:n.item[d.name],formModel:e.model,model:d},null),c=d=>{const u=n.provider[d.name];if(!u)return console.error(`未找到表单项适配器实例:${d.name}`,d),null;if(u)return a.h(typeof u.component=="string"?a.resolveComponent(u.component):u.component,{key:d.name,model:d,formModel:e.model,c:n.item[d.name],data:n.state.data,class:d.class,style:d.style},l(d.children||[]));console.error(`未找到表单容器适配器:${d.name} - ${d.type}`)},l=d=>{if(!d)return[];const u=[];return d.forEach(f=>{if(f.type==="hidden")return null;let p=null;const h=f;h.type==="container"||h.container?p=c(h):p=i(f),p&&u.push(p)}),u},s={};return e.model.labelWidth&&(s[t.cssVarName("form-item-label-width")]=e.model.labelWidth),{ns:t,formRef:r,staticStyle:s,renderItem:i,renderContainer:c,renderChildren:l}},render(){let e;return a.createVNode(a.resolveComponent("a-form"),{ref:"formRef",layout:this.model.layout,model:this.c.state.data,class:[this.ns.b(),this.ns.is("info",this.model.info===!0)],autocomplete:"off",style:this.staticStyle},vv(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class mv{component="gct-form-item";createController(t,r){return b.useFormItemController(()=>new b.FormItemController(t,r))}}class gv{component="gct-form-hidden-item";createController(t,r){return b.useFormItemController(()=>new b.FormHiddenItemController(t,r))}}class yv{component="gct-form-collapse-pane";createController(t,r){return b.useFormItemController(()=>new b.FormCollapsePaneController(t,r))}}function wa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Sa=a.defineComponent({name:"GctFormCollapsePane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=b.useNamespace("form-collapse-pane"),r={};function n(o){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},wa(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},wa(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-collapse-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-collapse-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[],t=e[e.length-1];return t&&(t.props=a.mergeProps(t.props||{},{class:this.ns.e("last-child")})),a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),bv={install(e){_gct.register.formItem.register("collapse-pane",()=>new yv),e.component(Sa.name,Sa)}};class Cv{component="gct-form-collapse";createController(t,r){return b.useFormItemController(()=>new b.FormCollapseController(t,r))}}const xa=a.defineComponent({name:"GctFormCollapse",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=b.useNamespace("form-collapse"),r=a.ref([0]),n={};e.model.width&&(n[t.cssVarName("form-collapse-width")]=e.model.width),e.model.height&&(n[t.cssVarName("form-collapse-height")]=e.model.height);const o=a.ref([]);o.value=e.model.children?.map(c=>c.name)||[];const i=a.computed(()=>e.model.expandIconPosition==="left"?"left":"right");return{ns:t,keys:r,style:n,activeKeys:o,expandIconPosition:i}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode(He.Collapse,{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m("icon-"+(this.model.expandIconStyle||"up-down"))],style:this.style,accordion:this.model.accordion,expandIconPosition:this.expandIconPosition,activeKey:this.activeKeys,"onUpdate:activeKey":t=>this.activeKeys=t},{default:()=>[this.model.children?.map((t,r)=>{if(e[r].props.c.state.visible===!1)return;const o=t.collapsible!==!1?void 0:"disabled";return a.createVNode(He.Collapse.Panel,{key:t.name,header:t.title,collapsible:o},{default:()=>[e[r]]})})]})}}),wv={install(e){_gct.register.formItem.register("collapse",()=>new Cv),e.component(xa.name,xa)}};class Sv{component="gct-form-group";createController(t,r){return b.useFormItemController(()=>new b.FormGroupController(t,r))}}function Wr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const ka=a.defineComponent({name:"GctFormGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=b.useNamespace("gct-form-group"),r=a.ref([0]);function n(i){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Wr(i)?i:{default:()=>[i]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Wr(i)?i:{default:()=>[i]});console.error("不支持的layout类型"+e.model.layout)}const o={};return e.model.width&&(o[t.cssVarName("form-group-width")]=e.model.width),e.model.height&&(o[t.cssVarName("form-group-height")]=e.model.height),{ns:t,keys:r,style:o,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];if(this.model.isCollapse){let t;return a.createVNode(a.resolveComponent("a-collapse"),{activeKey:this.keys,"onUpdate:activeKey":r=>this.keys=r,class:[this.ns.b(),this.ns.is("hidden-header",this.model.showHeader===!1),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style,ghost:!0},{default:()=>[a.createVNode(a.resolveComponent("a-collapse-panel"),{key:"0",header:this.model.title},Wr(t=this.renderContainer(e))?t:{default:()=>[t]})]})}return a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden-header",this.model.showHeader===!1),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.model.showHeader===!1?a.createVNode("div",{class:this.ns.e("title")},[this.model.title]):null,a.createVNode("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),xv={install(e){_gct.register.formItem.register("container",()=>new Sv),e.component(ka.name,ka)}};class kv{component="gct-form-tab";createController(t,r){return b.useFormItemController(()=>new b.FormTabController(t,r))}}const Oa=a.defineComponent({name:"GctFormTab",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=b.useNamespace("form-tab"),r={};return e.model.width&&(r[t.cssVarName("form-tab-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-height")]=e.model.height),{ns:t,style:r}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode(a.resolveComponent("a-tabs"),{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m(this.model.navPosition||"left")],style:this.style},{default:()=>[this.model.children?.map((t,r)=>a.createVNode(a.resolveComponent("a-tab-pane"),{key:t.name,tab:t.title},{default:()=>[e[r]]}))]})}}),Ov={install(e){_gct.register.formItem.register("tab",()=>new kv),e.component(Oa.name,Oa)}};class Ev{component="gct-form-tab-pane";createController(t,r){return b.useFormItemController(()=>new b.FormTabPaneController(t,r))}}function Ea(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const _a=a.defineComponent({name:"GctFormTabPane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=b.useNamespace("form-tab-pane"),r={};function n(o){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Ea(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Ea(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-tab-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),_v={install(e){_gct.register.formItem.register("tab-pane",()=>new Ev),e.component(_a.name,_a)}};class Nv{component="gct-form-title-group";createController(t,r){return b.useFormItemController(()=>new b.FormGroupController(t,r))}}function Na(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Aa=a.defineComponent({name:"GctFormTitleGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=b.useNamespace("gct-form-title-group"),r=a.ref([0]);function n(i){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Na(i)?i:{default:()=>[i]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Na(i)?i:{default:()=>[i]});console.error("不支持的layout类型"+e.model.layout)}const o={};return e.model.width&&(o[t.cssVarName("form-title-group-width")]=e.model.width),e.model.height&&(o[t.cssVarName("form-title-group-height")]=e.model.height),{ns:t,keys:r,style:o,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[a.createVNode("div",{class:this.ns.e("title")},[this.model.title]),a.createVNode("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Av={install(e){_gct.register.formItem.register(b.FormContainerType.FORM_TITLE_GROUP,()=>new Nv),e.component(Aa.name,Aa)}},Vv={install(e){_gct.register.formItem.register("item",()=>new mv),_gct.register.formItem.register("hidden",()=>new gv),e.use(bv),e.use(wv),e.use(xv),e.use(Ov),e.use(_v),e.use(Av),e.component(Ca.name,Ca),e.component(ba.name,ba)}},Tv=(e,t)=>(e.install=r=>{const n=e.name||e.displayName;n&&(r.component(n,e),t&&(r.config.globalProperties[t]=e))},e),jv={install(e){e.use(fv),e.use(pv),e.use(Vv),e.component(Ur.name,Ur),e.component(to.name,to),e.component(Kr.name,Kr),e.component(no.name,no),e.component(oo.name,oo)}};exports.CodeEditor=Ur;exports.default=jv;exports.withInstall=Tv;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-PLrMc0gl.cjs");exports.AssetsSvgIcon=e.AssetsSvgIcon;exports.BaseButton=e.baseButton;exports.BasicButton=e.basicButton;exports.BasicModal=e.BasicModal;exports.CodeEditor=e.CodeEditor;exports.FlexContainer=e.FlexContainer;exports.FlexItem=e.FlexItem;exports.GCT_DND_INSERT_POS=e.GCT_DND_INSERT_POS;exports.GctDndContainer=e.GctDndContainer;exports.GctDndDropLine=e.GctDndDropLine;exports.GctDndItem=e.GctDndItem;exports.GridContainer=e.GridContainer;exports.Lang=e.Lang;exports.MessageUtil=e.MessageUtil;exports.MonacoEditor=e.MonacoEditor;exports.OverlayController=e.OverlayController;exports.Prop=e.Prop;exports.SvgIcon=e._sfc_main;exports.Theme=e.Theme;exports.UseDragByLine=e.UseDragByLine;exports.ViewContainer=e.ViewContainer;exports.coreWebCreateAppVue=e.coreWebCreateAppVue;exports.coreWebSetupApp=e.coreWebSetupApp;exports.monacoLoader=e.monacoLoader;exports.overlay=e.overlay;exports.useEditorConsole=e.useEditorConsole;exports.useEditorConsoleInner=e.useEditorConsoleInner;exports.useLocale=e.useLocale;exports.useModal=e.useModal;exports.useModalContext=e.useModalContext;exports.useModalInner=e.useModalInner;exports.useTheme=e.useTheme;exports.withInstall=e.withInstall;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";.gct-modal{--gct-modal-z-index: var(--gct-z-index-modal);--gct-modal-background-color: var(--gct-color-bg-1)}.gct-modal__full-screen{position:absolute;top:0;right:48px;padding:16px 8px;color:#212528;font-size:16px;line-height:1;line-height:22px;cursor:pointer}.gct-modal.is-hidden-footer>.ant-modal-content>.ant-modal-footer{display:none;padding:16px}.gct-modal.is-hidden-close-btn>.ant-modal-content>.ant-modal-close{display:none}.gct-modal.is-hidden-cancel-btn>.ant-modal-content>.ant-modal-footer>button:first-child{display:none}.gct-modal.is-full-screen{top:0;width:100vw!important;height:100vh!important;max-width:100%;max-height:fit-content;margin:0;padding-bottom:0}.gct-modal.is-full-screen .ant-modal-content{display:flex;flex-direction:column;width:100vw;max-width:100vw;height:100vh;max-height:100vh}.gct-modal>.ant-modal-content{display:flex;flex-direction:column;width:100%;height:100%;max-height:85vh}.gct-modal>.ant-modal-content>.ant-modal-close>.ant-modal-close-x{width:auto;height:auto;padding:16px;color:#212528;line-height:1;line-height:22px}.gct-modal>.ant-modal-content>.ant-modal-header{border-bottom:1px solid #e0e3ea}.gct-modal>.ant-modal-content>.ant-modal-footer{border-top:1px solid #e0e3ea}.gct-modal>.ant-modal-content>.ant-modal-header,.gct-modal>.ant-modal-content>.ant-modal-footer{flex-shrink:0;padding:16px}.gct-modal>.ant-modal-content>.ant-modal-header .ant-modal-title{color:#000;font-weight:600;min-height:22px}.gct-modal>.ant-modal-content>.ant-modal-body{flex-grow:1;padding:0;overflow:hidden auto}.gct-dnd-item{background-color:rgb(var(--gct-gray-2))}.gct-dnd-item.is-dragging{background-color:var(--gct-color-bg-3)!important}.gct-dnd-drop-line{background-color:transparent;padding:var(--gct-padding-1) 0}.gct-dnd-drop-line__line{border-top:1px solid transparent}.gct-dnd-drop-line.is-shallow-over .gct-dnd-drop-line__line,.gct-dnd-drop-line.is-active .gct-dnd-drop-line__line{border-color:var(--gct-color-primary)}.gct-dnd-container{border:1px dashed transparent;border-radius:var(--gct-border-radius-s)}.gct-dnd-container.is-over{border-color:var(--gct-color-border-hover);background-color:var(--gct-color-primary-light)}.vben.fullscreen-modal{overflow:hidden}.vben.fullscreen-modal .ant-modal{inset:0!important;width:100%!important;max-width:100vw!important;height:100%}.vben.fullscreen-modal .ant-modal-content{height:100%}.vben .ant-modal{width:520px;padding-bottom:0}.vben .ant-modal .ant-modal-body>.scrollbar{height:100%;padding:14px}.vben .ant-modal .ant-modal-body>.scrollbar .scrollbar__wrap{max-height:calc(88vh - 152px)}.vben .ant-modal-title{font-size:16px;font-weight:700}.vben .ant-modal-title .base-title{cursor:move!important}.vben .ant-modal .ant-modal-body{height:calc(100% - 120px);max-height:calc(88vh - 120px);padding:0}.vben .ant-modal .ant-modal-body>.scrollbar>.scrollbar__bar.is-horizontal{display:none}.vben .ant-modal-large{top:60px}.vben .ant-modal-large--mini{top:16px}.vben .ant-modal-header{padding:16px}.vben .ant-modal-content{box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.vben .ant-modal-footer{padding:16px}.vben .ant-modal-footer button+button{margin-left:16px}.vben .ant-modal-close{outline:none;font-weight:400}.vben .ant-modal-close-x{display:inline-block;width:96px;height:56px;line-height:56px}.vben .ant-modal-confirm-body .ant-modal-confirm-content>*{color:#909399}.vben .ant-modal-confirm-confirm.error .ant-modal-confirm-body>.anticon{color:var(--gct-color-error)}.vben .ant-modal-confirm-btns .ant-btn:last-child{margin-right:0}.vben .ant-modal-confirm-info .ant-modal-confirm-body>.anticon{color:var(--gct-color-warning)}.vben .ant-modal-confirm-confirm.success .ant-modal-confirm-body>.anticon{color:var(--gct-color-success)}.vben .ant-modal-confirm .ant-modal-body{padding:24px!important}@media screen and (max-height:600px){.ant-modal{top:60px}}@media screen and (max-height:540px){.ant-modal{top:30px}}@media screen and (max-height:480px){.ant-modal{top:10px}}.options-field-modal.ant-modal .ant-modal-content .ant-modal-body{padding-bottom:0}.ant-modal-footer .ant-btn+.ant-btn:not(.ant-dropdown-trigger){margin-left:16px}.ant-modal{max-height:88vh}.ant-modal .ant-modal-content{border-radius:4px}.ant-modal.ant-modal-confirm .ant-modal-body{padding:16px}.ant-modal .ant-modal-confirm-body>.anticon{margin-right:8px}.ant-modal .ant-modal-confirm-body>.anticon .iconfont{top:4px!important;font-size:14px}.ant-modal .ant-modal-confirm-body>.anticon>svg{width:14px;height:14px;margin-top:3px}.ant-modal .ant-modal-confirm-body>.ant-modal-confirm-title{color:#1a1d23;font-size:14px;line-height:unset}.ant-modal .ant-modal-confirm-body>.ant-modal-confirm-content{color:#5a5f6b;font-size:12px}.ant-modal .ant-modal-confirm-body .anticon+.ant-modal-confirm-title+.ant-modal-confirm-content{margin-left:22px}.ant-modal .ant-modal-confirm-btns{margin-top:12px}.ant-modal .ant-modal-confirm-btns>.ant-btn{height:24px;padding:2px 10px;color:#384356;line-height:16px}.ant-modal .ant-modal-confirm-btns>.ant-btn.ant-btn-primary{color:#fff}.vben .ant-modal-close{right:16px}.vben .ant-modal-close-x .anticon.anticon-close{margin-left:27px}.gct-basic-modal-close{display:flex;align-items:center;height:95%}.gct-basic-modal-close>span{margin-left:48px;font-size:16px}.gct-basic-modal-close--can-full>span{margin-left:12px}.gct-basic-modal-close:not(.gct-basic-modal-close--can-full)>span:nth-child(1):hover{font-weight:700}.gct-basic-modal-close span:nth-child(1){display:inline-block;padding:10px}.gct-basic-modal-close span:nth-child(1):hover{color:var(--ant-primary-color)}.gct-basic-modal-close span:last-child:hover{color:var(--ant-error-color)}.gct-svg-icon{display:inline-block;overflow:hidden;fill:currentcolor;vertical-align:-.15em}.gct-svg-icon--spin{animation:loadingCircle 1s infinite linear}.gct-assets-svg-icon{display:inline-block;width:1em;height:1em;contain:strict;fill:currentcolor;box-sizing:content-box!important}.gct-assets-svg-icon .ionicon{stroke:currentcolor}.gct-assets-svg-icon .ionicon-fill-none{fill:none}.gct-assets-svg-icon .ionicon-stroke-width{stroke-width:var(--ionicon-stroke-width, 32px)}.gct-assets-svg-icon .icon-inner,.gct-assets-svg-icon .ionicon,.gct-assets-svg-icon svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){.gct-assets-svg-icon.icon-rtl .icon-inner{transform:scaleX(-1)}}.gct-assets-svg-icon.icon-rtl .icon-inner,.gct-assets-svg-icon.flip-rtl[dir=rtl] .icon-inner{transform:scaleX(-1)}@supports selector(:dir(rtl)){.gct-assets-svg-icon.flip-rtl:dir(rtl) .icon-inner{transform:scaleX(-1)}.gct-assets-svg-icon.flip-rtl:dir(ltr) .icon-inner{transform:scaleX(1)}}.gct-assets-svg-icon.icon-small{font-size:1.125rem!important}.gct-assets-svg-icon.icon-large{font-size:2rem!important}.gct-assets-svg-icon.ion-color{color:var(--ion-color-base)!important}.gct-assets-svg-icon.ion-color-primary{--ion-color-base: var(--ion-color-primary, #3880ff) !important}.gct-assets-svg-icon.ion-color-secondary{--ion-color-base: var(--ion-color-secondary, #3dc2ff) !important}.gct-assets-svg-icon.ion-color-tertiary{--ion-color-base: var(--ion-color-tertiary, #5260ff) !important}.gct-assets-svg-icon.ion-color-success{--ion-color-base: var(--ion-color-success, #2dd36f) !important}.gct-assets-svg-icon.ion-color-warning{--ion-color-base: var(--ion-color-warning, #ffc409) !important}.gct-assets-svg-icon.ion-color-danger{--ion-color-base: var(--ion-color-danger, #eb445a) !important}.gct-assets-svg-icon.ion-color-light{--ion-color-base: var(--ion-color-light, #f4f5f8) !important}.gct-assets-svg-icon.ion-color-medium{--ion-color-base: var(--ion-color-medium, #92949c) !important}.gct-assets-svg-icon.ion-color-dark{--ion-color-base: var(--ion-color-dark, #222428) !important}.ant-btn[data-v-5375ec2b]{display:flex;align-items:center;justify-content:center}.ant-btn.btn-font-color[data-v-5375ec2b]{color:var(--v8d035854)!important}.ant-btn.btn-bg-style[data-v-5375ec2b]{border-color:var(--e376d652)!important;background:var(--v4ee5fd6d)!important}.square[data-v-5375ec2b]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:72px;height:72px;padding:0;border-radius:4px}.square .icon-next[data-v-5375ec2b]{margin:0!important}.square .btn-title[data-v-5375ec2b]{width:inherit;padding:0 8px}.square.ant-btn-sm[data-v-5375ec2b]{width:72px;height:64px;font-size:14px}.square.ant-btn-sm .btn-title[data-v-5375ec2b]{padding:0 4px}.square.ant-btn-lg[data-v-5375ec2b]{width:80px;height:88px}.squaref[data-v-5375ec2b]{min-width:72px;height:56px;padding:0}.line[data-v-5375ec2b]{display:flex;align-items:center;justify-content:center}[data-v-5375ec2b] .group .ant-btn{height:100%}[data-v-5375ec2b] .ant-btn-loading-icon{width:0;height:0;line-height:0}[data-v-5375ec2b] .ant-btn-icon-only{vertical-align:-2px}.gct-text-overflow-2[data-v-5375ec2b]{display:-webkit-inline-box;display:-moz-inline-box;display:inline-flexbox;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;-moz-box-orient:vertical;box-orient:2}.square[data-v-1dbcb2fa]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:72px;height:72px;padding:0}.squaref[data-v-1dbcb2fa]{min-width:72px;height:72px;padding:0}.line[data-v-1dbcb2fa]{display:flex;align-items:center;justify-content:center}[data-v-1dbcb2fa] .group .ant-btn{height:100%}[data-v-1dbcb2fa] .ant-btn-loading-icon{height:0}.gct-code-editor{height:100%}.gct-flex-container{display:flex}.gct-view-container{background-color:#fff;height:100%;display:flex;flex-direction:column}.gct-view-container-header{flex-shrink:0}.gct-view-container-content{flex-grow:1;overflow:hidden auto}.gct-view-container-footer{flex-shrink:0}.full-loading[data-v-d448466c]{display:flex;position:fixed;z-index:200;top:0;left:0;align-items:center;justify-content:center;width:100%;height:100%;background-color:#f0f2f566}.full-loading.absolute[data-v-d448466c]{position:absolute;z-index:300;top:0;left:0}.component[data-v-7bfd9ca3]{display:inline-block;position:relative;outline:none;font-size:14px;text-align:left;cursor:pointer}.component .box[data-v-7bfd9ca3]{display:flex;align-items:center;border:1px solid var(--gct-color-text-1);border-radius:4px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAWElEQVRIiWM8fubkfwYygKWJOSM5+mCAhRLNoxaPWjxq8ajFoxbTyeL/DAfJ0Xjs3Cl7Siwmu4Yht1aDgZEYx6MWj1o8avGoxaMWD3qLya5X//4nqx6HAQC7RBGFzolqTAAAAABJRU5ErkJggg==);background-size:10px 10px}.color-picker__popover .ant-popover-inner-content{padding:0}.color-picker__popover .color-picker{z-index:9;width:var(--w);padding:10px;background:#fff;box-shadow:0 0 1px 1px #0000001a;-webkit-user-select:none;user-select:none}.color-picker__popover .color-picker-saturation{position:relative;width:100%;height:200px;margin-bottom:10px;box-shadow:1px 1px 1px #0000001a;cursor:pointer}.color-picker__popover .color-picker-saturation div{position:absolute;top:0;left:0;width:100%;height:100%}.color-picker__popover .color-picker-saturation .point{position:absolute;z-index:9;box-sizing:border-box;width:6px;height:6px;transform:translate(-50%,-50%);border:2px solid #ccc;border-radius:50%;background-color:transparent}.color-picker__popover .color-picker-saturation-t{background:linear-gradient(to right,#fff,#fff0)}.color-picker__popover .color-picker-saturation-h{background:linear-gradient(to top,#000,#fff0)}.color-picker__popover .color-picker-middle{display:flex;width:100%;margin-bottom:10px}.color-picker__popover .color-picker-middle .hue-slider{position:relative;height:10px;margin-bottom:6px;background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red);box-shadow:1px 1px 1px #0000001a}.color-picker__popover .color-picker-middle .alpha-slider{position:relative;height:10px;background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAWElEQVRIiWM8fubkfwYygKWJOSM5+mCAhRLNoxaPWjxq8ajFoxbTyeL/DAfJ0Xjs3Cl7Siwmu4Yht1aDgZEYx6MWj1o8avGoxaMWD3qLya5X//4nqx6HAQC7RBGFzolqTAAAAABJRU5ErkJggg==);background-size:10px 10px;box-shadow:1px 1px 1px #0000001a}.color-picker__popover .color-picker-middle .slider{position:absolute;box-sizing:border-box;width:6px;height:100%;background-color:#fff;box-shadow:0 0 2px #0009;cursor:pointer}.color-picker__popover .color-picker-diamond{position:relative;width:26px;height:26px;margin-left:5px;overflow:hidden;border-radius:3px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAWElEQVRIiWM8fubkfwYygKWJOSM5+mCAhRLNoxaPWjxq8ajFoxbTyeL/DAfJ0Xjs3Cl7Siwmu4Yht1aDgZEYx6MWj1o8avGoxaMWD3qLya5X//4nqx6HAQC7RBGFzolqTAAAAABJRU5ErkJggg==);background-size:10px 10px}.color-picker__popover .color-picker-value{display:flex;justify-content:space-between;width:100%}.color-picker__popover .color-picker-value div{padding:0 3px;text-align:center}.color-picker__popover .color-picker-value input{box-sizing:border-box;width:34px;height:24px;margin:0;padding:0;border:1px solid #ccc;border-radius:3px;outline:none;font-size:12px;text-align:center}.color-picker__popover .color-picker-value p{margin:3px 0 0;font-size:12px}.color-picker__popover .color-picker-value .rgba-a{padding-right:0}.color-picker__popover .color-picker-value .hex{flex:1;padding-left:0}.color-picker__popover .color-picker-value .hex input{width:100%;height:24px}.color-picker__popover .color-picker .presetColor .title{margin-bottom:10px;padding-top:8px;border-top:1px solid #eaeaea;font-size:12px}.color-picker__popover .color-picker .presetColor .preset{display:flex;flex-wrap:wrap;justify-content:flex-start;width:100%;margin:10px 0 0;padding:0;list-style:none}.color-picker__popover .color-picker .presetColor .preset li{width:20px;height:20px;margin-right:6px;margin-bottom:6px;border:1px solid #ccc;border-radius:6px;cursor:pointer}.color-picker__popover .color-value .color-value .color-value .hex input{width:100%;height:24px}.m-e[data-v-254c9227]{width:100%;height:100%}.m-e .m-e-main[data-v-254c9227]{display:flex;flex-direction:column;width:calc(100% - 2px);height:calc(100% - 2px)}.m-e .m-e-main .m-e-main_toolbar[data-v-254c9227]{position:relative;z-index:10;height:40px;box-shadow:0 2px 5px #000}.m-e .m-e-main .m-e-main_toolbar .m-e-main_toolbar_left span[data-v-254c9227]{padding-left:10px;font-size:15px;line-height:40px;-webkit-user-select:none;user-select:none}.m-e .m-e-main .m-e-main_toolbar .m-e-main_toolbar_right[data-v-254c9227]{display:flex;align-items:center}.m-e .m-e-main .m-e-main_toolbar .m-e-main_toolbar_right .icon[data-v-254c9227]{display:inline-block;margin-left:10px;transition:ease all .3s;border-radius:2px;text-align:center;cursor:pointer}.m-e .m-e-main .m-e-main_toolbar .m-e-main_toolbar_right .icon[data-v-254c9227]:hover{background-color:#ffffff1a}.m-e .m-e-main .m-e-main_toolbar .m-e-main_toolbar_right .icon.icon-active[data-v-254c9227]{color:#1890ff;background-color:#1890ff1a;box-shadow:0 0 4px #1890ff80;transform:scale(1.1)}.m-e .m-e-main .m-e-main_container[data-v-254c9227]{flex:1;width:100%;height:100%;min-height:400px}
|