@gct-paas/core-web 0.0.1-dev.16 → 0.0.1-dev.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core-web.css +1 -1
- package/dist/index.min.cjs +12 -3
- package/dist/index.system.min.js +12 -3
- package/es/_virtual/_commonjsHelpers.mjs +40 -0
- package/es/_virtual/node.mjs +7 -0
- package/es/_virtual/node2.mjs +3 -0
- package/es/components/code-editor/code-editor.d.ts +9 -0
- package/es/components/code-editor/code-editor.mjs +9 -2
- package/es/editor/gct-form-color/gct-form-color.d.ts +1 -33
- package/es/editor/gct-form-color/gct-form-color.mjs +11 -9
- package/es/editor/gct-form-color/index.d.ts +3 -0
- package/es/editor/gct-form-color/index.mjs +7 -2
- package/es/editor/gct-form-modal-select/gct-form-modal-select.d.ts +45 -0
- package/es/editor/gct-form-modal-select/gct-form-modal-select.mjs +99 -0
- package/es/editor/gct-form-modal-select/gct-form-modal-select.provider.d.ts +13 -0
- package/es/editor/gct-form-modal-select/gct-form-modal-select.provider.mjs +6 -0
- package/es/editor/gct-form-modal-select/gct-form-modal-select.scss +7 -0
- package/es/editor/gct-form-modal-select/index.d.ts +4 -0
- package/es/editor/gct-form-modal-select/index.mjs +12 -0
- package/es/editor/gct-form-number/gct-form-number.d.ts +1 -2
- package/es/editor/gct-form-number/gct-form-number.mjs +5 -7
- package/es/editor/gct-form-number/gct-form-number.scss +3 -0
- package/es/editor/gct-form-number/index.d.ts +3 -0
- package/es/editor/gct-form-number/index.mjs +7 -2
- package/es/editor/gct-form-text/gct-form-text.mjs +1 -1
- package/es/editor/index.mjs +9 -2
- package/es/index.d.ts +2 -1
- package/es/index.mjs +1 -1
- package/es/node_modules/.pnpm/@aesoper_normal-utils@0.1.5/node_modules/@aesoper/normal-utils/NormalUtils.es.mjs +3 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/createPopper.mjs +200 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/contains.mjs +26 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.mjs +44 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.mjs +72 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.mjs +60 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.mjs +7 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.mjs +9 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.mjs +32 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.mjs +8 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.mjs +28 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeName.mjs +5 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.mjs +14 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.mjs +71 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getParentNode.mjs +22 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.mjs +19 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.mjs +34 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindow.mjs +14 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.mjs +13 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.mjs +16 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/instanceOf.mjs +23 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.mjs +7 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.mjs +13 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isTableElement.mjs +7 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.mjs +29 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/enums.mjs +33 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/index.mjs +5 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/applyStyles.mjs +87 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/arrow.mjs +92 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/computeStyles.mjs +171 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/eventListeners.mjs +51 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/flip.mjs +149 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/hide.mjs +63 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/index.mjs +9 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/offset.mjs +56 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/popperOffsets.mjs +27 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/preventOverflow.mjs +144 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper-lite.mjs +12 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper.mjs +19 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.mjs +46 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeOffsets.mjs +73 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/debounce.mjs +17 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/detectOverflow.mjs +67 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/expandToHashMap.mjs +8 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getAltAxis.mjs +5 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getBasePlacement.mjs +7 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getFreshSideObject.mjs +10 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.mjs +5 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositePlacement.mjs +13 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.mjs +11 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getVariation.mjs +5 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/math.mjs +5 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergeByName.mjs +16 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergePaddingObject.mjs +7 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/orderModifiers.mjs +46 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/rectToClientRect.mjs +10 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/userAgent.mjs +13 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/within.mjs +11 -0
- package/es/node_modules/.pnpm/@vueuse_core@10.11.1_vue@3.5.13_typescript@5.8.2_/node_modules/@vueuse/core/index.mjs +7487 -0
- package/es/node_modules/.pnpm/@vueuse_shared@10.11.1_vue@3.5.13_typescript@5.8.2_/node_modules/@vueuse/shared/index.mjs +1576 -0
- package/es/node_modules/.pnpm/gradient-parser@1.0.2/node_modules/gradient-parser/build/node.mjs +528 -0
- package/es/node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.mjs +1180 -0
- package/es/node_modules/.pnpm/vue-demi@0.14.10_vue@3.5.13_typescript@5.8.2_/node_modules/vue-demi/lib/index.mjs +29 -0
- package/es/node_modules/.pnpm/vue-types@3.0.2_vue@3.5.13_typescript@5.8.2_/node_modules/vue-types/dist/vue-types.m.mjs +3 -0
- package/es/node_modules/.pnpm/vue3-colorpicker@2.3.0_@aesoper_normal-utils@0.1.5_@popperjs_core@2.11.8_@vueuse_core@10.11.1_67dx55qyw5ulzyggoxgyarn5m4/node_modules/vue3-colorpicker/index.es.mjs +1815 -0
- package/es/widgets/gct-form/gct-form.mjs +1 -0
- package/package.json +8 -7
package/dist/index.system.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var
|
|
1
|
+
var Hb=Object.defineProperty;var Vb=(Xe,Je,$)=>Je in Xe?Hb(Xe,Je,{enumerable:!0,configurable:!0,writable:!0,value:$}):Xe[Je]=$;var X=(Xe,Je,$)=>Vb(Xe,typeof Je!="symbol"?Je+"":Je,$);System.register(["vue","@gct-paas/core","ant-design-vue","lodash-es"],function(Xe,Je){"use strict";var $,S,G,q,Wt,Fa,Me,T,re,pe,qa,zt,_r,hn,Na,Ba,Da,La,Ce,vn,pn,Ga,H,P,se,A,ie,Ze,Ot,z,Kt,Ha,gn,Yt,kr,ne,Er,lt,st,mn,yn,Va,bn,V,Ua,Wa,we,Z,ce,Qe,Cn,za,Ka,Ya,Xa,Ja,Za,Qa,Ge,ei,ti,ri,ni,wn,oi,ai,ii,li,Sn,si,ui,xn,On,Xt;return{setters:[O=>{$=O.defineComponent,S=O.createVNode,G=O.computed,q=O.ref,Wt=O.onMounted,Fa=O.onUnmounted,Me=O.isVNode,T=O.resolveComponent,re=O.mergeProps,pe=O.watch,qa=O.toRefs,zt=O.nextTick,_r=O.getCurrentInstance,hn=O.readonly,Na=O.unref,Ba=O.getCurrentScope,Da=O.onScopeDispose,La=O.shallowRef,Ce=O.reactive,vn=O.inject,pn=O.provide,Ga=O.useSlots,H=O.createElementBlock,P=O.openBlock,se=O.normalizeClass,A=O.createElementVNode,ie=O.normalizeStyle,Ze=O.Fragment,Ot=O.renderList,z=O.createCommentVNode,Kt=O.withDirectives,Ha=O.vModelText,gn=O.createTextVNode,Yt=O.toDisplayString,kr=O.renderSlot,ne=O.createBlock,Er=O.vShow,lt=O.pushScopeId,st=O.popScopeId,mn=O.withCtx,yn=O.resolveDynamicComponent,Va=O.Teleport,bn=O.h},O=>{V=O.useNamespace,Ua=O.deepMerge,Wa=O.LengthUnitEditorController,we=O.useGctFormValue,Z=O.widthEditorInstall,ce=O.EditorType,Qe=O.EditorTypeOld,Cn=O.EditorController,za=O.useForm,Ka=O.useCopyToClipboard,Ya=O.useGctFormValueByText,Xa=O.useEditFormController,Ja=O.EditFormController,Za=O.useModal,Qa=O.EditorRegisterConst,Ge=O.useFormItemController,ei=O.FormItemController,ti=O.FormHiddenItemController,ri=O.FormCollapsePaneController,ni=O.FormCollapseController,wn=O.FormGroupController,oi=O.FormTabController,ai=O.FormTabPaneController,ii=O.FormContainerType},O=>{li=O.message,Sn=O.RadioGroup,si=O.RadioButton,ui=O.CheckboxGroup,xn=O.Collapse},O=>{On=O.cloneDeep,Xt=O.merge}],execute:function(){function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ci(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 fi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ci(Object(r),!0).forEach(function(n){O(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ci(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Pc(e,t){if(e==null)return{};var r=jc(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $c(e,t){return Ic(e)||Mc(e,t)||Fc(e,t)||qc()}function Ic(e){if(Array.isArray(e))return e}function Mc(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var s=e[Symbol.iterator](),i;!(n=(i=s.next()).done)&&(r.push(i.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&s.return!=null&&s.return()}finally{if(o)throw a}}return r}}function Fc(e,t){if(e){if(typeof e=="string")return di(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return di(e,t)}}function di(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Nc=require("../internals/export"),Bc=require("../internals/array-includes").includes,Dc=require("../internals/fails"),Lc=require("../internals/add-to-unscopables"),Gc=Dc(function(){return!Array(1).includes()});Nc({target:"Array",proto:!0,forced:Gc},{includes:function(t){return Bc(this,t,arguments.length>1?arguments[1]:void 0)}}),Lc("includes");function Hc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hi(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 vi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hi(Object(r),!0).forEach(function(n){Hc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vc(){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,a){return a(o)},n)}}function Jt(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return t.apply(r,[].concat(o,i))}}}function Ar(e){return{}.toString.call(e).includes("Object")}function Uc(e){return!Object.keys(e).length}function Zt(e){return typeof e=="function"}function Wc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function zc(e,t){return Ar(t)||et("changeType"),Object.keys(t).some(function(r){return!Wc(e,r)})&&et("changeField"),t}function Kc(e){Zt(e)||et("selectorType")}function Yc(e){Zt(e)||Ar(e)||et("handlerType"),Ar(e)&&Object.values(e).some(function(t){return!Zt(t)})&&et("handlersType")}function Xc(e){e||et("initialIsRequired"),Ar(e)||et("initialType"),Uc(e)&&et("initialContent")}function Jc(e,t){throw new Error(e[t]||e.default)}var Zc={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"},et=Jt(Jc)(Zc),Tr={changes:zc,selector:Kc,handler:Yc,initial:Xc};function Qc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Tr.initial(e),Tr.handler(t);var r={current:e},n=Jt(rf)(r,t),o=Jt(tf)(r),a=Jt(Tr.changes)(e),s=Jt(ef)(r);function i(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return Tr.selector(c),c(r.current)}function l(c){Vc(n,o,a,s)(c)}return[i,l]}function ef(e,t){return Zt(t)?t(e.current):t}function tf(e,t){return e.current=vi(vi({},e.current),t),t}function rf(e,t,r){return Zt(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 nf={create:Qc},of={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function af(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return t.apply(r,[].concat(o,i))}}}function lf(e){return{}.toString.call(e).includes("Object")}function sf(e){return e||gi("configIsRequired"),lf(e)||gi("configType"),e.urls?(uf(),{paths:{vs:e.urls.monacoBase}}):e}function uf(){console.warn(pi.deprecation)}function cf(e,t){throw new Error(e[t]||e.default)}var pi={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
3
|
You are using deprecated way of configuration.
|
|
4
4
|
|
|
5
5
|
Instead of using
|
|
@@ -8,4 +8,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8
8
|
monaco.config({ paths: { vs: '...' } })
|
|
9
9
|
|
|
10
10
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
11
|
-
`},Se=It(qt)(Ge),kt={config:$t},Nt=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(o){return n.reduceRight(function(i,c){return c(i)},o)}};function xe(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],xe(e[n],t[n]))}),Ce(Ce({},e),t)}var Rt={type:"cancelation",msg:"operation is manually canceled"};function B(e){var t=!1,n=new Promise(function(r,o){e.then(function(i){return t?o(Rt):r(i)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var At=xt.create({config:Pt,isInitialized:!1,resolve:null,reject:null,monaco:null}),Pe=rt(At,2),q=Pe[0],A=Pe[1];function Ut(e){var t=kt.config(e),n=t.monaco,r=nt(t,["monaco"]);A(function(o){return{config:xe(o.config,r),monaco:n}})}function _t(){var e=q(function(t){var n=t.monaco,r=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!e.isInitialized){if(A({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),B(H);if(window.monaco&&window.monaco.editor)return Ie(window.monaco),e.resolve(window.monaco),B(H);Nt(Vt,Lt)(Dt)}return B(H)}function Vt(e){return document.body.appendChild(e)}function Mt(e){var t=document.createElement("script");return e&&(t.src=e),t}function Lt(e){var t=q(function(r){var o=r.config,i=r.reject;return{config:o,reject:i}}),n=Mt("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function Dt(){var e=q(function(n){var r=n.config,o=n.resolve,i=n.reject;return{config:r,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){Ie(n),e.resolve(n)},function(n){e.reject(n)})}function Ie(e){q().monaco||A({monaco:e})}function Bt(){return q(function(e){var t=e.monaco;return t})}var H=new Promise(function(e,t){return A({resolve:e,reject:t})}),Ht={config:Ut,init:_t,__getMonacoInstance:Bt};const Te=w("CodeEditor",d({name:"CodeEditor",props:{value:{type:String,default:""},config:{type:Object,default:()=>({})}},emits:["update:value"],setup(e,{emit:t}){const n=h("code-editor"),r=C({get(){return e.value},set(c){t("update:value",c)}}),o=O(null);let i=null;return X(()=>{Ht.init().then(c=>{o.value&&(i=c.editor.create(o.value,ee({value:r.value,language:"typescript",automaticLayout:!0,minimap:{enabled:!1}},e.config)))})}),Y(()=>{i==null||i.dispose()}),{ns:n,el:o}},render(){return l("div",{ref:"el",class:this.ns.b()},null)}})),K=w("FlexItem",d({name:"FlexItem",props:{layout:Object},setup(e){return{ns:h("flex-item"),getStyle:()=>{const r={};if(e.layout){const{order:o,alignSelf:i,flexBasis:c,flexGrow:s,flexShrink:u}=e.layout;o!=null&&(r.order=o),i!=null&&(r["align-self"]=i),c!=null&&(r["flex-basis"]=c),s!=null&&(r["flex-grow"]=s),u!=null&&(r["flex-shrink"]=u)}return r}}},render(){var e,t;return l("div",{class:this.ns.b(),style:this.getStyle()},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}}));function Kt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!F(e)}const $e=w("FlexContainer",d({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:h("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:i,alignItems:c,flexDirection:s,flexWrap:u,justifyContent:f}=e.layout;i!=null&&(o.alignContent=i),c!=null&&(o.alignItems=c),s!=null&&(o.flexDirection=s),u!=null&&(o.flexWrap=u),f!=null&&(o.justifyContent=f)}return o},getItemStyle:o=>{const i={};if(o){const{width:c,height:s}=o;c!=null&&(i.width=c),s!=null&&(i.height=s)}return i}}},render(){var t,n;let e=((n=(t=this.$slots).default)==null?void 0:n.call(t))||[];return e.length>0&&(e=e[0].children||[]),l("div",{class:this.ns.b(),style:this.getStyle()},[e.map(r=>{if(!r)return null;const o=r.props.model.flexItem;return l(K,{layout:o,style:this.getItemStyle(r.props.model)},Kt(r)?r:{default:()=>[r]})})])}}));function Ee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!F(e)}const qe=w("GridContainer",d({name:"GridContainer",props:{layout:Object},setup(){return{ns:h("grid-container")}},render(){var r,o;let e;const t=this.layout||{};let n=((o=(r=this.$slots).default)==null?void 0:o.call(r))||[];return n.length>0&&(n=n[0].children||[]),l(m("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},Ee(e=n.map(i=>{if(!i)return null;const c=i.props.model.gridItem;return l(m("a-col"),{span:c?c.span??24:24,offset:c?c.offset??0:0},Ee(i)?i:{default:()=>[i]})}))?e:{default:()=>[e]})}})),ke=w("ViewContainer",d({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:h("view-container")}},render(){var e,t;return l("div",{class:this.ns.b()},[this.$slots.header?l("div",{class:this.ns.b("header")},[this.$slots.header()]):null,l("div",{class:this.ns.b("content")},[(t=(e=this.$slots).default)==null?void 0:t.call(e)]),this.$slots.footer?l("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}})),zt=d({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=h("form-length-unit"),n=new te(e.model),r=j();return{ns:t,c:n,val:r}},render(){return l(m("length-unit-editor"),g({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 Wt{constructor(){p(this,"component","gct-form-length-unit")}}const Xt=v(b.LENGTH_UNIT,()=>new Wt,zt),Yt=d({name:"GctFormColor",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String}},emits:["update:value"],setup(e){const t=h("form-color"),n=new ne(e.model),r=j();return{ns:t,c:n,val:r}},render(){return l(m("color-editor"),g({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 Jt{constructor(){p(this,"component","gct-form-color")}}const Qt=v(b.COLOR,()=>new Jt,Yt);class Zt{constructor(){p(this,"component","gct-form-check-switch")}}const en=d({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=h("gct-form-check-switch"),n=new k(e.model),r=j();return{ns:t,c:n,val:r}},render(){return this.model.isSwitch?l("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[l(m("a-switch"),g({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):l(m("a-checkbox"),g({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]})}}),tn=v(b.CHECK_SWITCH,()=>new Zt,en);class nn{constructor(){p(this,"component","gct-form-i18n")}}const rn=d({name:"GctFormI18n",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=h("gct-form-i18n"),n=re().item.i18nConfig,r=j(),o=C({get:()=>n?n.value:"",set:i=>{n&&(n.value=i)}});return{ns:e,val:r,i18nConfigValue:o}},render(){return l(m("i18n-select-input"),g(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)}}),on=v(b.I18N,()=>new nn,rn),ln=d({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){var u,f,y;const n=h("gct-form-icon-select"),r=O(e.value),o=O(((u=r.value)==null?void 0:u.icon)||e.model.defaultIcon),i=O(((f=r.value)==null?void 0:f.color)||e.model.defaultColor),c=O(((y=r.value)==null?void 0:y.background)||e.model.defaultBackground);I(()=>e.value,P=>{r.value=P,P&&(o.value=P.icon,i.value=P.color)}),I([o,i,c],()=>{r.value={icon:o.value,color:i.value},t("update:value",r.value)});const s=C(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:n,icon:o,color:i,background:c,nextPickerStyle:s}},render(){return l("div",{class:this.ns.b()},[l(m("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?l("span",{class:this.ns.e("title")},[this.model.label]):null])}});let sn=class{constructor(){p(this,"component","gct-form-icon-select")}};const an=v(b.ICON_SELECT,()=>new sn,ln);class cn{constructor(){p(this,"component","gct-form-number")}}const un=d({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=h("gct-form-number"),n=new k(e.model),r=j();return{ns:t,c:n,val:r}},render(){return l(m("a-input-number"),g({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,max:this.model.max,min:this.model.min,precision:this.model.precision}),null)}}),dn=v(b.NUMBER,()=>new cn,un);class mn{constructor(){p(this,"component","gct-form-picker")}}const fn=d({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 n=h("gct-form-picker"),r=C({get(){return e.model.nameField?e.c.data[e.model.nameField]:""},set(s){e.model.nameField&&(e.c.data[e.model.nameField]=s)}}),o=C({get:()=>!e.c.state.options.find(u=>u.value===e.value)&&r.value?r.value:e.value,set:s=>{typeof s=="string"&&(s=s.trim()),!(typeof s!="object"&&e.value==s)&&t("update:value",s)}}),i=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:n,val:o,nameVal:r,loadOptions:i,onChange:(s,u)=>{r.value=u.label}}},render(){return l(m("a-select"),g({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)}}),hn=v(b.PICKER,()=>new mn,fn);class pn{constructor(){p(this,"component","gct-form-select")}}const vn=d({name:"GctFormSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=h("gct-form-select"),n=j(),r=C(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:n,options:r}},render(){return l(m("a-select"),g({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)}}),gn=v(b.SELECT,()=>new pn,vn);class bn{constructor(){p(this,"component","gct-form-span")}}const yn=d({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=h("form-span"),{model:n,itemModel:r,c:o}=J(e);function i(){const{isSuccessRef:s}=oe(e.value);s.value&&ge.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const c=C(()=>{if(n.value.format&&typeof n.value.format=="function")return n.value.format(o.value.data,r.value,o.value);if(e.value==null||e.value==="")return e.value;if(r.value.dictionary){const u=(r.value.dictionary.items||[]).find(f=>f.value==e.value);if(u)return u.label}if(o.value.state.options.length>0){const s=o.value.state.options.find(u=>u.value==e.value);if(s)return s.label}return e.value});return{ns:t,val:c,handleClipboardKey:i}},render(){return l("div",{class:this.ns.b()},[l("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&l("span",{class:this.ns.e("copy")},[l("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),wn=v(b.SPAN,()=>new bn,yn);class Ne{constructor(){p(this,"component","gct-form-switch")}}const Re=d({name:"GctFormSwitch",props:{model:{type:Object,required:!0},value:{type:String,default:""}},setup(){const e=h("gct-form-switch"),t=j();return{ns:e,val:t}},render(){return l("div",{class:this.ns.b()},[l(m("a-switch"),g({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),Cn=v(b.SWITCH,()=>new Ne,Re),On=v(T.SWITCH,()=>new Ne,Re);class Ae{constructor(){p(this,"component","gct-form-text")}}const Ue=d({name:"GctFormText",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=h("gct-form-text"),n=new k(e.model),r=ie(e.model.prefix||e.model.addonBefore,e.model.suffix||e.model.addonAfter);return{ns:t,c:n,val:r}},render(){return l(m("a-input"),g({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)}}),jn=v(b.TEXT,()=>new Ae,Ue),Fn=v(T.TEXT,()=>new Ae,Ue);class Gn{constructor(){p(this,"component","gct-form-textarea")}}const Sn=d({name:"GctFormTextarea",props:{model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(){const e=h("gct-form-textarea"),t=j();return{ns:e,val:t}},render(){return l(m("a-textarea"),g({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)}}),xn=v(b.TEXTAREA,()=>new Gn,Sn);function Pn(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!F(e)}const _e=d({name:"GctFormRadio",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=h("gct-form-radio"),t=j();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")),l(M,g({value:this.val,"onUpdate:value":n=>this.val=n,size:"small","button-style":"solid"},e),Pn(t=this.c.state.options.map(n=>l(be,{key:n.value,value:n.value},{default:()=>[n.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),l(M,g({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let Ve=class{constructor(){p(this,"component","gct-form-radio")}};const In=v(b.RADIO,()=>new Ve,_e),Tn=v(T.RADIO,()=>new Ve,_e),$n=d({name:"GctFormInfo",props:{value:{type:String,default:""},model:{type:Object,required:!0}},emits:["update:value"],setup(){const e=h("gct-form-info"),t=j();return{ns:e,val:t}},render(){return l("div",{class:this.ns.b()},[this.model.icon?l("span",{class:this.ns.e("icon")},[l("i",{class:`iconfont ${this.model.icon}`},null)]):null,l("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let En=class{constructor(){p(this,"component","gct-form-info")}};const qn=v(b.INFO,()=>new En,$n),Me=d({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 n=h("gct-form-checkbox"),r=j(),o=C(()=>r.value),i=C(()=>D(e.c.state.options));return{ns:n,checked:o,onChange:s=>{i.value.forEach(u=>{e.model.minLength&&s.length<=e.model.minLength&&s.includes(u.value)?u.disabled=!0:u.disabled=!1,u.checked=s.includes(u.value)}),t("update:value",s)},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 l(ye,g({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Le{constructor(){p(this,"component","gct-form-checkbox")}}const kn=v(b.CHECKBOX,()=>new Le,Me),Nn=v(T.CHECKBOX,()=>new Le,Me),Rn={install(e){e.use(Xt),e.use(Qt),e.use(tn),e.use(on),e.use(an),e.use(dn),e.use(hn),e.use(gn),e.use(wn),e.use(Cn),e.use(jn),e.use(xn),e.use(In),e.use(qn),e.use(kn),e.use(Nn),e.use(Tn),e.use(On),e.use(Fn)}},De=d({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 n=h("gct-edit-form");if(!e.model)throw new Error("未传递表单模型配置");const r=e.controller||le(()=>new se(e.model)),o=O(null),i=async()=>{try{await o.value.formRef.validate()}catch(s){return console.error(s),!1}return!0},c=async s=>{try{await o.value.formRef.validateFields(s)}catch(u){return console.error(u),!1}return!0};return r.validate=i,r.validateItem=c,I(e.context,()=>{Object.assign(r.context,e.context),r.state.isNew=!r.context.id},{immediate:!0}),I(e.params,()=>{Object.assign(r.params,e.params)}),ae(async()=>{try{await o.value.formRef.validate();const s=await r.save();if(s)return{ok:!0,data:[D(s)]}}catch(s){console.error(s)}return{ok:!1}}),e.data?(Object.assign(r.state.data,e.data),r.loaded()):r.state.isNew!==!0?r.load().then(()=>{r.loaded()}):r.loaded(),e.embed&&r.evt.on("change",()=>{t("update:data",r.getData())}),{ns:n,c:r,formRef:o}},render(){let e=null;return(this.c.state.isNew||this.c.state.isNew==!1&&this.c.state.loaded)&&(e=l(m("gct-form"),{class:"h-full",ref:"formRef",model:this.model,c:this.c},null)),l("div",{class:this.ns.b()},[e])}}),An={install(e){e.component(De.name,De)}};function Un(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!F(e)}const Be=d({name:"GctFormItem",props:{c:{type:Object,required:!0},formModel:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=h("gct-form-item"),n={};e.formModel.labelWidth&&(n[t.cssVarName("form-item-label-width")]=e.formModel.labelWidth),e.model.labelWidth&&(n[t.cssVarName("form-item-label-width")]=e.model.labelWidth),e.model.labelAlign&&(n[t.cssVarName("form-item-label-align")]=e.model.labelAlign),e.model.editorAlign&&(n[t.cssVarName("form-item-editor-align")]=e.model.editorAlign),e.model.width&&(n[t.cssVarName("form-item-width")]=e.model.width),e.model.margin&&(n.margin=e.model.margin),e.model.padding&&(n.padding=e.model.padding);const r=C(()=>{var i;return!!((i=e.model.rules)!=null&&i.find(c=>c.required))});return{ns:t,style:n,required:r,renderLabelTooltip:()=>e.model.labelTooltip?l(m("a-tooltip"),{class:t.e("label-tooltip"),placement:"topLeft",title:e.model.labelTooltip},{default:()=>[l("span",{class:"iconfont icon-assist ml5px text-[#bfbfbf]"},null)]}):null}},render(){const e=_gct.register.editor.get(ce.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 n=null;e?e.render?n=e.render(this.c.editorValue,this.c.data,this.model):e.component?n=_(typeof e.component=="string"?m(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"&&(n=[l("div",{class:[this.ns.e("label"),this.ns.em("label",t)]},[this.model.label,this.renderLabelTooltip()]),n]);const r={default:()=>n};return t==="left"&&this.model.label&&(r.label=()=>[l("span",null,[this.model.label]),this.renderLabelTooltip()]),l(m("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"},Un(r)?r:{default:()=>[r]})}});function _n(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!F(e)}const He=d({name:"GctForm",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=h("gct-form");Q("formController",e.c);const n=O(null),r=e.c;Object.keys(r.item).forEach(f=>{const y=r.item[f];y.state=Z(y.state)});const i=f=>l(m("gct-form-item"),{class:f.class,style:f.style,c:r.item[f.name],formModel:e.model,model:f},null),c=f=>{const y=r.provider[f.name];if(!y)return console.error(`未找到表单项适配器实例:${f.name}`,f),null;if(y)return _(typeof y.component=="string"?m(y.component):y.component,{key:f.name,model:f,c:r.item[f.name],data:r.state.data,class:f.class,style:f.style},s(f.children||[]));console.error(`未找到表单容器适配器:${f.name} - ${f.type}`)},s=f=>{if(!f)return[];const y=[];return f.forEach(P=>{if(P.type==="hidden")return null;let U=null;const W=P;W.type==="container"||W.container?U=c(W):U=i(P),U&&y.push(U)}),y},u={};return e.model.labelWidth&&(u[t.cssVarName("form-item-label-width")]=e.model.labelWidth),{ns:t,formRef:n,staticStyle:u,renderItem:i,renderContainer:c,renderChildren:s}},render(){let e;return l(m("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},_n(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class Vn{constructor(){p(this,"component","gct-form-item")}createController(t,n){return G(()=>new ue(t,n))}}class Mn{constructor(){p(this,"component","gct-form-hidden-item")}createController(t,n){return G(()=>new de(t,n))}}class Ln{constructor(){p(this,"component","gct-form-collapse-pane")}createController(t,n){return G(()=>new me(t,n))}}function Ke(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!F(e)}const ze=d({name:"GctFormCollapsePane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=h("form-collapse-pane"),n={};function r(o){if(e.model.layout==="flex")return l(m("flex-container"),{layout:e.model.flex},Ke(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return l(m("grid-container"),{layout:e.model.grid},Ke(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(n[t.cssVarName("form-collapse-pane-width")]=e.model.width),e.model.height&&(n[t.cssVarName("form-collapse-pane-height")]=e.model.height),{ns:t,style:n,renderContainer:r}},render(){var n,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(n=this.$slots).default)==null?void 0:r.call(n))||[],t=e[e.length-1];return t&&(t.props=g(t.props||{},{class:this.ns.e("last-child")})),l("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),Dn={install(e){_gct.register.formItem.register("collapse-pane",()=>new Ln),e.component(ze.name,ze)}};class Bn{constructor(){p(this,"component","gct-form-collapse")}createController(t,n){return G(()=>new fe(t,n))}}const We=d({name:"GctFormCollapse",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){var c;const t=h("form-collapse"),n=O([0]),r={};e.model.width&&(r[t.cssVarName("form-collapse-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-collapse-height")]=e.model.height);const o=O([]);o.value=((c=e.model.children)==null?void 0:c.map(s=>s.name))||[];const i=C(()=>e.model.expandIconPosition==="left"?"left":"right");return{ns:t,keys:n,style:r,activeKeys:o,expandIconPosition:i}},render(){var t,n;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((n=(t=this.$slots).default)==null?void 0:n.call(t))||[];return l(L,{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":r=>this.activeKeys=r},{default:()=>{var r;return[(r=this.model.children)==null?void 0:r.map((o,i)=>{if(e[i].props.c.state.visible===!1)return;const s=o.collapsible!==!1?void 0:"disabled";return l(L.Panel,{key:o.name,header:o.title,collapsible:s},{default:()=>[e[i]]})})]}})}}),Hn={install(e){_gct.register.formItem.register("collapse",()=>new Bn),e.component(We.name,We)}};class Kn{constructor(){p(this,"component","gct-form-group")}createController(t,n){return G(()=>new V(t,n))}}function z(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!F(e)}const Xe=d({name:"GctFormGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=h("gct-form-group"),n=O([0]);function r(i){if(e.model.layout==="flex")return l(m("flex-container"),{layout:e.model.flex},z(i)?i:{default:()=>[i]});if(e.model.layout==="grid")return l(m("grid-container"),{layout:e.model.grid},z(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:n,style:o,renderContainer:r}},render(){var t,n;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((n=(t=this.$slots).default)==null?void 0:n.call(t))||[];if(this.model.isCollapse){let r;return l(m("a-collapse"),{activeKey:this.keys,"onUpdate:activeKey":o=>this.keys=o,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:()=>[l(m("a-collapse-panel"),{key:"0",header:this.model.title},z(r=this.renderContainer(e))?r:{default:()=>[r]})]})}return l("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?l("div",{class:this.ns.e("title")},[this.model.title]):null,l("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),zn={install(e){_gct.register.formItem.register("container",()=>new Kn),e.component(Xe.name,Xe)}};class Wn{constructor(){p(this,"component","gct-form-tab")}createController(t,n){return G(()=>new he(t,n))}}const Ye=d({name:"GctFormTab",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=h("form-tab"),n={};return e.model.width&&(n[t.cssVarName("form-tab-width")]=e.model.width),e.model.height&&(n[t.cssVarName("form-tab-height")]=e.model.height),{ns:t,style:n}},render(){var t,n;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((n=(t=this.$slots).default)==null?void 0:n.call(t))||[];return l(m("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:()=>{var r;return[(r=this.model.children)==null?void 0:r.map((o,i)=>l(m("a-tab-pane"),{key:o.name,tab:o.title},{default:()=>[e[i]]}))]}})}}),Xn={install(e){_gct.register.formItem.register("tab",()=>new Wn),e.component(Ye.name,Ye)}};class Yn{constructor(){p(this,"component","gct-form-tab-pane")}createController(t,n){return G(()=>new pe(t,n))}}function Je(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!F(e)}const Qe=d({name:"GctFormTabPane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=h("form-tab-pane"),n={};function r(o){if(e.model.layout==="flex")return l(m("flex-container"),{layout:e.model.flex},Je(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return l(m("grid-container"),{layout:e.model.grid},Je(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(n[t.cssVarName("form-tab-pane-width")]=e.model.width),e.model.height&&(n[t.cssVarName("form-tab-pane-height")]=e.model.height),{ns:t,style:n,renderContainer:r}},render(){var t,n;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((n=(t=this.$slots).default)==null?void 0:n.call(t))||[];return l("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),Jn={install(e){_gct.register.formItem.register("tab-pane",()=>new Yn),e.component(Qe.name,Qe)}};class Qn{constructor(){p(this,"component","gct-form-title-group")}createController(t,n){return G(()=>new V(t,n))}}function Ze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!F(e)}const et=d({name:"GctFormTitleGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=h("gct-form-title-group"),n=O([0]);function r(i){if(e.model.layout==="flex")return l(m("flex-container"),{layout:e.model.flex},Ze(i)?i:{default:()=>[i]});if(e.model.layout==="grid")return l(m("grid-container"),{layout:e.model.grid},Ze(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:n,style:o,renderContainer:r}},render(){var t,n;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((n=(t=this.$slots).default)==null?void 0:n.call(t))||[];return l("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[l("div",{class:this.ns.e("title")},[this.model.title]),l("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Zn={install(e){_gct.register.formItem.register(ve.FORM_TITLE_GROUP,()=>new Qn),e.component(et.name,et)}},er={install(e){_gct.register.formItem.register("item",()=>new Vn),_gct.register.formItem.register("hidden",()=>new Mn),e.use(Dn),e.use(Hn),e.use(zn),e.use(Xn),e.use(Jn),e.use(Zn),e.component(He.name,He),e.component(Be.name,Be)}},rr=w("default",{install(e){e.use(Rn),e.use(An),e.use(er),e.component(Te.name,Te),e.component($e.name,$e),e.component(K.name,K),e.component(qe.name,qe),e.component(ke.name,ke)}})}}});
|
|
11
|
+
`},gi=af(cf)(pi),ff={config:sf},df=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(a,s){return s(a)},o)}};function mi(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],mi(e[r],t[r]))}),fi(fi({},e),t)}var hf={type:"cancelation",msg:"operation is manually canceled"};function _n(e){var t=!1,r=new Promise(function(n,o){e.then(function(a){return t?o(hf):n(a)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var vf=nf.create({config:of,isInitialized:!1,resolve:null,reject:null,monaco:null}),yi=$c(vf,2),Qt=yi[0],Rr=yi[1];function pf(e){var t=ff.config(e),r=t.monaco,n=Pc(t,["monaco"]);Rr(function(o){return{config:mi(o.config,n),monaco:r}})}function gf(){var e=Qt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Rr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),_n(kn);if(window.monaco&&window.monaco.editor)return bi(window.monaco),e.resolve(window.monaco),_n(kn);df(mf,bf)(Cf)}return _n(kn)}function mf(e){return document.body.appendChild(e)}function yf(e){var t=document.createElement("script");return e&&(t.src=e),t}function bf(e){var t=Qt(function(n){var o=n.config,a=n.reject;return{config:o,reject:a}}),r=yf("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Cf(){var e=Qt(function(r){var n=r.config,o=r.resolve,a=r.reject;return{config:n,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){bi(r),e.resolve(r)},function(r){e.reject(r)})}function bi(e){Qt().monaco||Rr({monaco:e})}function wf(){return Qt(function(e){var t=e.monaco;return t})}var kn=new Promise(function(e,t){return Rr({resolve:e,reject:t})}),Sf={config:pf,init:gf,__getMonacoInstance:wf};const Ci=Xe("CodeEditor",$({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=V("code-editor"),n=G({get(){return e.value||""},set(s){t("update:value",s)}}),o=q(null);let a=null;return Wt(()=>{Sf.init().then(s=>{o.value&&(a=s.editor.create(o.value,Ua({value:n.value,language:e.language,automaticLayout:!0,minimap:{enabled:!1}},e.config)),a.onDidBlurEditorText(()=>{n.value=a.getValue()}))})}),Fa(()=>{a==null||a.dispose()}),{ns:r,el:o}},render(){return S("div",{ref:"el",class:this.ns.b()},null)}})),En=$({name:"FlexItem",props:{layout:Object},setup(e){return{ns:V("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:a,flexBasis:s,flexGrow:i,flexShrink:l}=e.layout;o!=null&&(n.order=o),a!=null&&(n["align-self"]=a),s!=null&&(n["flex-basis"]=s),i!=null&&(n["flex-grow"]=i),l!=null&&(n["flex-shrink"]=l)}return n}}},render(){var e,t;return S("div",{class:this.ns.b(),style:this.getStyle()},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}});function xf(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const wi=$({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:V("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:a,alignItems:s,flexDirection:i,flexWrap:l,justifyContent:c}=e.layout;a!=null&&(o.alignContent=a),s!=null&&(o.alignItems=s),i!=null&&(o.flexDirection=i),l!=null&&(o.flexWrap=l),c!=null&&(o.justifyContent=c)}return o},getItemStyle:o=>{const a={};if(o){const{width:s,height:i}=o;s!=null&&(a.width=s),i!=null&&(a.height=i)}return a}}},render(){var t,r;let e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return e.length>0&&(e=e[0].children||[]),S("div",{class:this.ns.b(),style:this.getStyle()},[e.map(n=>{if(!n)return null;const o=n.props.model.flexItem;return S(En,{layout:o,style:this.getItemStyle(n.props.model)},xf(n)?n:{default:()=>[n]})})])}});function Si(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const xi=$({name:"GridContainer",props:{layout:Object},setup(){return{ns:V("grid-container")}},render(){var n,o;let e;const t=this.layout||{};let r=((o=(n=this.$slots).default)==null?void 0:o.call(n))||[];return r.length>0&&(r=r[0].children||[]),S(T("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},Si(e=r.map(a=>{if(!a)return null;const s=a.props.model.gridItem;return S(T("a-col"),{span:s?s.span??24:24,offset:s?s.offset??0:0},Si(a)?a:{default:()=>[a]})}))?e:{default:()=>[e]})}}),Oi=$({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:V("view-container")}},render(){var e,t;return S("div",{class:this.ns.b()},[this.$slots.header?S("div",{class:this.ns.b("header")},[this.$slots.header()]):null,S("div",{class:this.ns.b("content")},[(t=(e=this.$slots).default)==null?void 0:t.call(e)]),this.$slots.footer?S("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),Of=$({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=V("form-length-unit"),r=new Wa(e.model),n=we();return{ns:t,c:r,val:n}},render(){return S(T("length-unit-editor"),re({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 _f{constructor(){X(this,"component","gct-form-length-unit")}}const kf=Z(ce.LENGTH_UNIT,()=>new _f,Of),_i=$({name:"GctFormColor",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String}},emits:["update:value"],setup(){const e=V("form-color"),t=we();return{ns:e,val:t}},render(){return S(T("color-picker"),re({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 ki{constructor(){X(this,"component","gct-form-color")}}const Ef=Z(ce.COLOR,()=>new ki,_i),Af=Z(Qe.COLOR,()=>new ki,_i);class Tf{constructor(){X(this,"component","gct-form-check-switch")}}const Rf=$({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=V("gct-form-check-switch"),r=new Cn(e.model),n=we();return{ns:t,c:r,val:n}},render(){return this.model.isSwitch?S("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[S(T("a-switch"),re({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):S(T("a-checkbox"),re({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]})}}),jf=Z(ce.CHECK_SWITCH,()=>new Tf,Rf);class Pf{constructor(){X(this,"component","gct-form-i18n")}}const $f=$({name:"GctFormI18n",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=V("gct-form-i18n"),r=za().item.i18nConfig,n=we(),o=G({get:()=>r?r.value:"",set:a=>{r&&(r.value=a)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return S(T("i18n-select-input"),re(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)}}),If=Z(ce.I18N,()=>new Pf,$f),Mf=$({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){var l,c,u;const r=V("gct-form-icon-select"),n=q(e.value),o=q(((l=n.value)==null?void 0:l.icon)||e.model.defaultIcon),a=q(((c=n.value)==null?void 0:c.color)||e.model.defaultColor),s=q(((u=n.value)==null?void 0:u.background)||e.model.defaultBackground);pe(()=>e.value,f=>{n.value=f,f&&(o.value=f.icon,a.value=f.color)}),pe([o,a,s],()=>{n.value={icon:o.value,color:a.value},t("update:value",n.value)});const i=G(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:a,background:s,nextPickerStyle:i}},render(){return S("div",{class:this.ns.b()},[S(T("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?S("span",{class:this.ns.e("title")},[this.model.label]):null])}});let Ff=class{constructor(){X(this,"component","gct-form-icon-select")}};const qf=Z(ce.ICON_SELECT,()=>new Ff,Mf);class Ei{constructor(){X(this,"component","gct-form-number")}}const Ai=$({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=V("gct-form-number"),t=we();return{ns:e,val:t}},render(){return S(T("a-input-number"),re({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)}}),Nf=Z(ce.NUMBER,()=>new Ei,Ai),Bf=Z(Qe.NUMBER,()=>new Ei,Ai);class Df{constructor(){X(this,"component","gct-form-picker")}}const Lf=$({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=V("gct-form-picker"),n=G({get(){return e.model.nameField?e.c.data[e.model.nameField]:""},set(i){e.model.nameField&&(e.c.data[e.model.nameField]=i)}}),o=G({get:()=>!e.c.state.options.find(l=>l.value===e.value)&&n.value?n.value:e.value,set:i=>{typeof i=="string"&&(i=i.trim()),!(typeof i!="object"&&e.value==i)&&t("update:value",i)}}),a=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:a,onChange:(i,l)=>{n.value=l.label}}},render(){return S(T("a-select"),re({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)}}),Gf=Z(ce.PICKER,()=>new Df,Lf);class Hf{constructor(){X(this,"component","gct-form-select")}}const Vf=$({name:"GctFormSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=V("gct-form-select"),r=we(),n=G(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return S(T("a-select"),re({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)}}),Uf=Z(ce.SELECT,()=>new Hf,Vf);class Wf{constructor(){X(this,"component","gct-form-Modal-select")}}const zf=$({name:"GctFormModalSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=V("gct-form-modal-select"),t=q("1"),r=we(),n=G({get(){return r.value||void 0},set(a){r.value=a}}),o=G(()=>[{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 S(T("a-input-group"),{class:this.ns.b()},{default:()=>[S(T("a-form-item-rest"),null,{default:()=>[S(T("a-select"),re({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)]}),S(T("a-select"),re({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)]})}}),Kf=Z(Qe.MODEL_SELECT,()=>new Wf,zf);class Yf{constructor(){X(this,"component","gct-form-span")}}const Xf=$({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=V("form-span"),{model:r,itemModel:n,c:o}=qa(e);function a(){const{isSuccessRef:i}=Ka(e.value);i.value&&li.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const s=G(()=>{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 l=(n.value.dictionary.items||[]).find(c=>c.value==e.value);if(l)return l.label}if(o.value.state.options.length>0){const i=o.value.state.options.find(l=>l.value==e.value);if(i)return i.label}return e.value});return{ns:t,val:s,handleClipboardKey:a}},render(){return S("div",{class:this.ns.b()},[S("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&S("span",{class:this.ns.e("copy")},[S("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),Jf=Z(ce.SPAN,()=>new Yf,Xf);class Ti{constructor(){X(this,"component","gct-form-switch")}}const Ri=$({name:"GctFormSwitch",props:{model:{type:Object,required:!0},value:{type:String,default:""}},setup(){const e=V("gct-form-switch"),t=we();return{ns:e,val:t}},render(){return S("div",{class:this.ns.b()},[S(T("a-switch"),re({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),Zf=Z(ce.SWITCH,()=>new Ti,Ri),Qf=Z(Qe.SWITCH,()=>new Ti,Ri);class ji{constructor(){X(this,"component","gct-form-text")}}const Pi=$({name:"GctFormText",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=V("gct-form-text"),r=new Cn(e.model),n=Ya(e.model.prefix||e.model.addonBefore,e.model.suffix||e.model.addonAfter);return{ns:t,c:r,val:n}},render(){return S(T("a-select"),re({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)}}),ed=Z(ce.TEXT,()=>new ji,Pi),td=Z(Qe.TEXT,()=>new ji,Pi);class rd{constructor(){X(this,"component","gct-form-textarea")}}const nd=$({name:"GctFormTextarea",props:{model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(){const e=V("gct-form-textarea"),t=we();return{ns:e,val:t}},render(){return S(T("a-textarea"),re({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)}}),od=Z(ce.TEXTAREA,()=>new rd,nd);function ad(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const $i=$({name:"GctFormRadio",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=V("gct-form-radio"),t=we();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")),S(Sn,re({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),ad(t=this.c.state.options.map(r=>S(si,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),S(Sn,re({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let Ii=class{constructor(){X(this,"component","gct-form-radio")}};const id=Z(ce.RADIO,()=>new Ii,$i),ld=Z(Qe.RADIO,()=>new Ii,$i),sd=$({name:"GctFormInfo",props:{value:{type:String,default:""},model:{type:Object,required:!0}},emits:["update:value"],setup(){const e=V("gct-form-info"),t=we();return{ns:e,val:t}},render(){return S("div",{class:this.ns.b()},[this.model.icon?S("span",{class:this.ns.e("icon")},[S("i",{class:`iconfont ${this.model.icon}`},null)]):null,S("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let ud=class{constructor(){X(this,"component","gct-form-info")}};const cd=Z(ce.INFO,()=>new ud,sd),Mi=$({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=V("gct-form-checkbox"),n=we(),o=G(()=>n.value),a=G(()=>On(e.c.state.options));return{ns:r,checked:o,onChange:i=>{a.value.forEach(l=>{e.model.minLength&&i.length<=e.model.minLength&&i.includes(l.value)?l.disabled=!0:l.disabled=!1,l.checked=i.includes(l.value)}),t("update:value",i)},options:a}},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 S(ui,re({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Fi{constructor(){X(this,"component","gct-form-checkbox")}}const fd=Z(ce.CHECKBOX,()=>new Fi,Mi),dd=Z(Qe.CHECKBOX,()=>new Fi,Mi);var qi=require("../internals/global-this"),Ni=require("../internals/function-call"),An=require("../internals/array-buffer-view-core"),hd=require("../internals/length-of-array-like"),vd=require("../internals/to-offset"),pd=require("../internals/to-object"),Bi=require("../internals/fails"),gd=qi.RangeError,Tn=qi.Int8Array,Di=Tn&&Tn.prototype,Li=Di&&Di.set,md=An.aTypedArray,yd=An.exportTypedArrayMethod,Rn=!Bi(function(){var e=new Uint8ClampedArray(2);return Ni(Li,e,{length:1,0:3},1),e[1]!==3}),bd=Rn&&An.NATIVE_ARRAY_BUFFER_VIEWS&&Bi(function(){var e=new Tn(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});yd("set",function(t){md(this);var r=vd(arguments.length>1?arguments[1]:void 0,1),n=pd(t);if(Rn)return Ni(Li,this,n,r);var o=this.length,a=hd(n),s=0;if(a+r>o)throw new gd("Wrong length");for(;s<a;)this[r+s]=n[s++]},!Rn||bd);function Gi(e){return Ba()?(Da(e),!0):!1}function ut(e){return typeof e=="function"?e():Na(e)}const jr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Cd=Object.prototype.toString,wd=e=>Cd.call(e)==="[object Object]",_t=()=>{},Sd=xd();function xd(){var e,t;return jr&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Hi(e,t){function r(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(a)})}return r}const Vi=e=>e();function Od(e,t={}){let r,n,o=_t;const a=i=>{clearTimeout(i),o(),o=_t};return i=>{const l=ut(e),c=ut(t.maxWait);return r&&a(r),l<=0||c!==void 0&&c<=0?(n&&(a(n),n=null),Promise.resolve(i())):new Promise((u,f)=>{o=t.rejectOnCancel?f:u,c&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,u(i())},c)),r=setTimeout(()=>{n&&a(n),n=null,u(i())},l)})}}function _d(e=Vi){const t=q(!0);function r(){t.value=!1}function n(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:hn(t),pause:r,resume:n,eventFilter:o}}function kd(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 Ed(e){return _r()}function He(e,t=200,r={}){return Hi(Od(t,r),e)}function Ad(e,t,r={}){const{eventFilter:n=Vi,...o}=r;return pe(e,Hi(n,t),o)}function Td(e,t,r={}){const{eventFilter:n,...o}=r,{eventFilter:a,pause:s,resume:i,isActive:l}=_d(n);return{stop:Ad(e,t,{...o,eventFilter:a}),pause:s,resume:i,isActive:l}}function ct(e,t=!0,r){Ed()?Wt(e,r):t?e():zt(e)}function Rd(e,t,r={}){const{immediate:n=!0}=r,o=q(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function i(){o.value=!1,s()}function l(...c){s(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...c)},ut(t))}return n&&(o.value=!0,jr&&l()),Gi(i),{isPending:hn(o),start:l,stop:i}}function fe(e,t,r){const n=pe(e,(o,a,s)=>{o&&(r!=null&&r.once&&zt(()=>n()),t(o,a,s))},{...r,once:!1});return n}function er(e){var t;const r=ut(e);return(t=r==null?void 0:r.$el)!=null?t:r}const tr=jr?window:void 0,Ui=jr?window.navigator:void 0;function ft(...e){let t,r,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,o]=e,t=tr):[t,r,n,o]=e,!t)return _t;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],s=()=>{a.forEach(u=>u()),a.length=0},i=(u,f,d,h)=>(u.addEventListener(f,d,h),()=>u.removeEventListener(f,d,h)),l=pe(()=>[er(t),ut(o)],([u,f])=>{if(s(),!u)return;const d=wd(f)?{...f}:f;a.push(...r.flatMap(h=>n.map(v=>i(u,h,v,d))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return Gi(c),c}let Wi=!1;function jd(e,t,r={}){const{window:n=tr,ignore:o=[],capture:a=!0,detectIframe:s=!1}=r;if(!n)return _t;Sd&&!Wi&&(Wi=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",_t)),n.document.documentElement.addEventListener("click",_t));let i=!0;const l=d=>o.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(v=>v===d.target||d.composedPath().includes(v));{const v=er(h);return v&&(d.target===v||d.composedPath().includes(v))}}),u=[ft(n,"click",d=>{const h=er(e);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(i=!l(d)),!i){i=!0;return}t(d)}},{passive:!0,capture:a}),ft(n,"pointerdown",d=>{const h=er(e);i=!l(d)&&!!(h&&!d.composedPath().includes(h))},{passive:!0}),s&&ft(n,"blur",d=>{setTimeout(()=>{var h;const v=er(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(n.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>u.forEach(d=>d())}function Pd(){const e=q(!1),t=_r();return t&&Wt(()=>{e.value=!0},t),e}function zi(e){const t=Pd();return G(()=>(t.value,!!e()))}function Ki(e,t={}){const{controls:r=!1,navigator:n=Ui}=t,o=zi(()=>n&&"permissions"in n);let a;const s=typeof e=="string"?{name:e}:e,i=q(),l=()=>{a&&(i.value=a.state)},c=kd(async()=>{if(o.value){if(!a)try{a=await n.permissions.query(s),ft(a,"change",l),l()}catch{i.value="prompt"}return a}});return c(),r?{state:i,isSupported:o,query:c}:i}function $d(e={}){const{navigator:t=Ui,read:r=!1,source:n,copiedDuring:o=1500,legacy:a=!1}=e,s=zi(()=>t&&"clipboard"in t),i=Ki("clipboard-read"),l=Ki("clipboard-write"),c=G(()=>s.value||a),u=q(""),f=q(!1),d=Rd(()=>f.value=!1,o);function h(){s.value&&y(i.value)?t.clipboard.readText().then(p=>{u.value=p}):u.value=g()}c.value&&r&&ft(["copy","cut"],h);async function v(p=ut(n)){c.value&&p!=null&&(s.value&&y(l.value)?await t.clipboard.writeText(p):m(p),u.value=p,f.value=!0,d.start())}function m(p){const C=document.createElement("textarea");C.value=p??"",C.style.position="absolute",C.style.opacity="0",document.body.appendChild(C),C.select(),document.execCommand("copy"),C.remove()}function g(){var p,C,w;return(w=(C=(p=document==null?void 0:document.getSelection)==null?void 0:p.call(document))==null?void 0:C.toString())!=null?w:""}function y(p){return p==="granted"||p==="prompt"}return{isSupported:c,text:u,copied:f,copy:v}}const Pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$r="__vueuse_ssr_handlers__",Id=Md();function Md(){return $r in Pr||(Pr[$r]=Pr[$r]||{}),Pr[$r]}function Fd(e,t){return Id[e]||t}function qd(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 Nd={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()}},Yi="vueuse-storage";function Bd(e,t,r,n={}){var o;const{flush:a="pre",deep:s=!0,listenToStorageChanges:i=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=tr,eventFilter:d,onError:h=R=>{console.error(R)},initOnMounted:v}=n,m=(u?La:q)(typeof t=="function"?t():t);if(!r)try{r=Fd("getDefaultStorage",()=>{var R;return(R=tr)==null?void 0:R.localStorage})()}catch(R){h(R)}if(!r)return m;const g=ut(t),y=qd(g),p=(o=n.serializer)!=null?o:Nd[y],{pause:C,resume:w}=Td(m,()=>k(m.value),{flush:a,deep:s,eventFilter:d});f&&i&&ct(()=>{ft(f,"storage",D),ft(f,Yi,N),v&&D()}),v||D();function _(R,b){f&&f.dispatchEvent(new CustomEvent(Yi,{detail:{key:e,oldValue:R,newValue:b,storageArea:r}}))}function k(R){try{const b=r.getItem(e);if(R==null)_(b,null),r.removeItem(e);else{const E=p.write(R);b!==E&&(r.setItem(e,E),_(b,E))}}catch(b){h(b)}}function M(R){const b=R?R.newValue:r.getItem(e);if(b==null)return l&&g!=null&&r.setItem(e,p.write(g)),g;if(!R&&c){const E=p.read(b);return typeof c=="function"?c(E,g):y==="object"&&!Array.isArray(E)?{...g,...E}:E}else return typeof b!="string"?b:p.read(b)}function D(R){if(!(R&&R.storageArea!==r)){if(R&&R.key==null){m.value=g;return}if(!(R&&R.key!==e)){C();try{(R==null?void 0:R.newValue)!==p.write(m.value)&&(m.value=M(R))}catch(b){h(b)}finally{R?zt(w):w()}}}}function N(R){D(R.detail)}return m}function jn(e,t,r={}){const{window:n=tr}=r;return Bd(e,t,n==null?void 0:n.localStorage,r)}function Ir(e){"@babel/helpers - typeof";return Ir=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},Ir(e)}var Dd=/^\s+/,Ld=/\s+$/;function x(e,t){if(e=e||"",t=t||{},e instanceof x)return e;if(!(this instanceof x))return new x(e,t);var r=Gd(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}x.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,a,s,i;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),n<=.03928?s=n/12.92:s=Math.pow((n+.055)/1.055,2.4),o<=.03928?i=o/12.92:i=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*s+.0722*i},setAlpha:function(t){return this._a=tl(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Ji(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Ji(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=Xi(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Xi(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 Zi(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Wd(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(J(this._r,255)*100)+"%",g:Math.round(J(this._g,255)*100)+"%",b:Math.round(J(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(J(this._r,255)*100)+"%, "+Math.round(J(this._g,255)*100)+"%, "+Math.round(J(this._b,255)*100)+"%)":"rgba("+Math.round(J(this._r,255)*100)+"%, "+Math.round(J(this._g,255)*100)+"%, "+Math.round(J(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:oh[Zi(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+Qi(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var a=x(t);n="#"+Qi(a._r,a._g,a._b,a._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,a=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?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 x(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(Xd,arguments)},brighten:function(){return this._applyModification(Jd,arguments)},darken:function(){return this._applyModification(Zd,arguments)},desaturate:function(){return this._applyModification(zd,arguments)},saturate:function(){return this._applyModification(Kd,arguments)},greyscale:function(){return this._applyModification(Yd,arguments)},spin:function(){return this._applyModification(Qd,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(rh,arguments)},complement:function(){return this._applyCombination(eh,arguments)},monochromatic:function(){return this._applyCombination(nh,arguments)},splitcomplement:function(){return this._applyCombination(th,arguments)},triad:function(){return this._applyCombination(el,[3])},tetrad:function(){return this._applyCombination(el,[4])}},x.fromRatio=function(e,t){if(Ir(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=rr(e[n]));e=r}return x(e,t)};function Gd(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,s=!1,i=!1;return typeof e=="string"&&(e=sh(e)),Ir(e)=="object"&&(Ve(e.r)&&Ve(e.g)&&Ve(e.b)?(t=Hd(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ve(e.h)&&Ve(e.s)&&Ve(e.v)?(n=rr(e.s),o=rr(e.v),t=Ud(e.h,n,o),s=!0,i="hsv"):Ve(e.h)&&Ve(e.s)&&Ve(e.l)&&(n=rr(e.s),a=rr(e.l),t=Vd(e.h,n,a),s=!0,i="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=tl(r),{ok:s,format:e.format||i,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 Hd(e,t,r){return{r:J(e,255)*255,g:J(t,255)*255,b:J(r,255)*255}}function Xi(e,t,r){e=J(e,255),t=J(t,255),r=J(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,s,i=(n+o)/2;if(n==o)a=s=0;else{var l=n-o;switch(s=i>.5?l/(2-n-o):l/(n+o),n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s,l:i}}function Vd(e,t,r){var n,o,a;e=J(e,360),t=J(t,100),r=J(r,100);function s(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)n=o=a=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=s(l,i,e+1/3),o=s(l,i,e),a=s(l,i,e-1/3)}return{r:n*255,g:o*255,b:a*255}}function Ji(e,t,r){e=J(e,255),t=J(t,255),r=J(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,s,i=n,l=n-o;if(s=n===0?0:l/n,n==o)a=0;else{switch(n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s,v:i}}function Ud(e,t,r){e=J(e,360)*6,t=J(t,100),r=J(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),s=r*(1-o*t),i=r*(1-(1-o)*t),l=n%6,c=[r,s,a,a,i,r][l],u=[i,r,r,s,a,a][l],f=[a,a,i,r,r,s][l];return{r:c*255,g:u*255,b:f*255}}function Zi(e,t,r,n){var o=[Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(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 Wd(e,t,r,n,o){var a=[Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(r).toString(16)),Pe(rl(n))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Qi(e,t,r,n){var o=[Pe(rl(n)),Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(r).toString(16))];return o.join("")}x.equals=function(e,t){return!e||!t?!1:x(e).toRgbString()==x(t).toRgbString()},x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function zd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s-=t/100,r.s=Mr(r.s),x(r)}function Kd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s+=t/100,r.s=Mr(r.s),x(r)}function Yd(e){return x(e).desaturate(100)}function Xd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l+=t/100,r.l=Mr(r.l),x(r)}function Jd(e,t){t=t===0?0:t||10;var r=x(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)))),x(r)}function Zd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l-=t/100,r.l=Mr(r.l),x(r)}function Qd(e,t){var r=x(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,x(r)}function eh(e){var t=x(e).toHsl();return t.h=(t.h+180)%360,x(t)}function el(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=x(e).toHsl(),n=[x(e)],o=360/t,a=1;a<t;a++)n.push(x({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function th(e){var t=x(e).toHsl(),r=t.h;return[x(e),x({h:(r+72)%360,s:t.s,l:t.l}),x({h:(r+216)%360,s:t.s,l:t.l})]}function rh(e,t,r){t=t||6,r=r||30;var n=x(e).toHsl(),o=360/r,a=[x(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(x(n));return a}function nh(e,t){t=t||6;for(var r=x(e).toHsv(),n=r.h,o=r.s,a=r.v,s=[],i=1/t;t--;)s.push(x({h:n,s:o,v:a})),a=(a+i)%1;return s}x.mix=function(e,t,r){r=r===0?0:r||50;var n=x(e).toRgb(),o=x(t).toRgb(),a=r/100,s={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return x(s)},x.readability=function(e,t){var r=x(e),n=x(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},x.isReadable=function(e,t,r){var n=x.readability(e,t),o,a;switch(a=!1,o=uh(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a},x.mostReadable=function(e,t,r){var n=null,o=0,a,s,i,l;r=r||{},s=r.includeFallbackColors,i=r.level,l=r.size;for(var c=0;c<t.length;c++)a=x.readability(e,t[c]),a>o&&(o=a,n=x(t[c]));return x.isReadable(e,n,{level:i,size:l})||!s?n:(r.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],r))};var Pn=x.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"},oh=x.hexNames=ah(Pn);function ah(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function tl(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function J(e,t){ih(e)&&(e="100%");var r=lh(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 Mr(e){return Math.min(1,Math.max(0,e))}function Se(e){return parseInt(e,16)}function ih(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function lh(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Pe(e){return e.length==1?"0"+e:""+e}function rr(e){return e<=1&&(e=e*100+"%"),e}function rl(e){return Math.round(parseFloat(e)*255).toString(16)}function nl(e){return Se(e)/255}var $e=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 Ve(e){return!!$e.CSS_UNIT.exec(e)}function sh(e){e=e.replace(Dd,"").replace(Ld,"").toLowerCase();var t=!1;if(Pn[e])e=Pn[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=$e.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=$e.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=$e.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=$e.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=$e.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=$e.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=$e.hex8.exec(e))?{r:Se(r[1]),g:Se(r[2]),b:Se(r[3]),a:nl(r[4]),format:t?"name":"hex8"}:(r=$e.hex6.exec(e))?{r:Se(r[1]),g:Se(r[2]),b:Se(r[3]),format:t?"name":"hex"}:(r=$e.hex4.exec(e))?{r:Se(r[1]+""+r[1]),g:Se(r[2]+""+r[2]),b:Se(r[3]+""+r[3]),a:nl(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=$e.hex3.exec(e))?{r:Se(r[1]+""+r[1]),g:Se(r[2]+""+r[2]),b:Se(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function uh(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 ol=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fr={},al;function ch(){if(al)return Fr;al=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),a=t.visit(r.style);return a&&(n+=" "+a),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_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_color:function(r,n){var o=r,a=t.visit(n.length);return a&&(o+=" "+a),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(a,s){n+=t.visit(a),s<o-1&&(n+=", ")}),n},visit:function(r){if(!r)return"";var n="";if(r instanceof Array)return t.visit_array(r,n);if(r.type){var o=t["visit_"+r.type];if(o)return o(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)|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/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},r="";function n(j){var B=new Error(r+": "+j);throw B.source=r,B}function o(){var j=a();return r.length>0&&n("Invalid input not EOF"),j}function a(){return w(s)}function s(){return i("linear-gradient",t.linearGradient,c)||i("repeating-linear-gradient",t.repeatingLinearGradient,c)||i("radial-gradient",t.radialGradient,d)||i("repeating-radial-gradient",t.repeatingRadialGradient,d)}function i(j,B,W){return l(B,function(be){var De=W();return De&&(Y(t.comma)||n("Missing comma before color stops")),{type:j,orientation:De,colorStops:w(_)}})}function l(j,B){var W=Y(j);if(W){Y(t.startCall)||n("Missing (");var be=B(W);return Y(t.endCall)||n("Missing )"),be}}function c(){return u()||f()}function u(){return L("directional",t.sideOrCorner,1)}function f(){return L("angular",t.angleValue,1)}function d(){var j,B=h(),W;return B&&(j=[],j.push(B),W=r,Y(t.comma)&&(B=h(),B?j.push(B):r=W)),j}function h(){var j=v()||m();if(j)j.at=y();else{var B=g();if(B){j=B;var W=y();W&&(j.at=W)}else{var be=p();be&&(j={type:"default-radial",at:be})}}return j}function v(){var j=L("shape",/^(circle)/i,0);return j&&(j.style=U()||g()),j}function m(){var j=L("shape",/^(ellipse)/i,0);return j&&(j.style=E()||g()),j}function g(){return L("extent-keyword",t.extentKeywords,1)}function y(){if(L("position",/^at/,0)){var j=p();return j||n("Missing positioning value"),j}}function p(){var j=C();if(j.x||j.y)return{type:"position",value:j}}function C(){return{x:E(),y:E()}}function w(j){var B=j(),W=[];if(B)for(W.push(B);Y(t.comma);)B=j(),B?W.push(B):n("One extra comma");return W}function _(){var j=k();return j||n("Expected color definition"),j.length=E(),j}function k(){return D()||R()||N()||M()}function M(){return L("literal",t.literalColor,0)}function D(){return L("hex",t.hexColor,1)}function N(){return l(t.rgbColor,function(){return{type:"rgb",value:w(b)}})}function R(){return l(t.rgbaColor,function(){return{type:"rgba",value:w(b)}})}function b(){return Y(t.number)[1]}function E(){return L("%",t.percentageValue,1)||F()||U()}function F(){return L("position-keyword",t.positionKeywords,1)}function U(){return L("px",t.pixelValue,1)||L("em",t.emValue,1)}function L(j,B,W){var be=Y(B);if(be)return{type:j,value:be[W]}}function Y(j){var B,W;return W=/^[\n\r\t\s]+/.exec(r),W&&ue(W[0].length),B=j.exec(r),B&&ue(B[0].length),B}function ue(j){r=r.substr(j)}return function(j){return r=j.toString(),o()}}(),Fr.parse=e.parse,Fr.stringify=e.stringify,Fr}var il=ch(),ge="top",ke="bottom",Ee="right",me="left",$n="auto",nr=[ge,ke,Ee,me],kt="start",or="end",fh="clippingParents",ll="viewport",ar="popper",dh="reference",sl=nr.reduce(function(e,t){return e.concat([t+"-"+kt,t+"-"+or])},[]),ul=[].concat(nr,[$n]).reduce(function(e,t){return e.concat([t,t+"-"+kt,t+"-"+or])},[]),hh="beforeRead",vh="read",ph="afterRead",gh="beforeMain",mh="main",yh="afterMain",bh="beforeWrite",Ch="write",wh="afterWrite",Sh=[hh,vh,ph,gh,mh,yh,bh,Ch,wh];function Fe(e){return e?(e.nodeName||"").toLowerCase():null}function xe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dt(e){var t=xe(e).Element;return e instanceof t||e instanceof Element}function Ae(e){var t=xe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function In(e){if(typeof ShadowRoot>"u")return!1;var t=xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function xh(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!Ae(a)||!Fe(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(s){var i=o[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function Oh(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],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),i=s.reduce(function(l,c){return l[c]="",l},{});!Ae(o)||!Fe(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const _h={name:"applyStyles",enabled:!0,phase:"write",fn:xh,effect:Oh,requires:["computeStyles"]};function qe(e){return e.split("-")[0]}var ht=Math.max,qr=Math.min,Et=Math.round;function Mn(){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 cl(){return!/^((?!chrome|android).)*safari/i.test(Mn())}function At(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Ae(e)&&(o=e.offsetWidth>0&&Et(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Et(n.height)/e.offsetHeight||1);var s=dt(e)?xe(e):window,i=s.visualViewport,l=!cl()&&r,c=(n.left+(l&&i?i.offsetLeft:0))/o,u=(n.top+(l&&i?i.offsetTop:0))/a,f=n.width/o,d=n.height/a;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function Fn(e){var t=At(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 fl(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&In(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ue(e){return xe(e).getComputedStyle(e)}function kh(e){return["table","td","th"].indexOf(Fe(e))>=0}function tt(e){return((dt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nr(e){return Fe(e)==="html"?e:e.assignedSlot||e.parentNode||(In(e)?e.host:null)||tt(e)}function dl(e){return!Ae(e)||Ue(e).position==="fixed"?null:e.offsetParent}function Eh(e){var t=/firefox/i.test(Mn()),r=/Trident/i.test(Mn());if(r&&Ae(e)){var n=Ue(e);if(n.position==="fixed")return null}var o=Nr(e);for(In(o)&&(o=o.host);Ae(o)&&["html","body"].indexOf(Fe(o))<0;){var a=Ue(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function ir(e){for(var t=xe(e),r=dl(e);r&&kh(r)&&Ue(r).position==="static";)r=dl(r);return r&&(Fe(r)==="html"||Fe(r)==="body"&&Ue(r).position==="static")?t:r||Eh(e)||t}function qn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lr(e,t,r){return ht(e,qr(t,r))}function Ah(e,t,r){var n=lr(e,t,r);return n>r?r:n}function hl(){return{top:0,right:0,bottom:0,left:0}}function vl(e){return Object.assign({},hl(),e)}function pl(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Th=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,vl(typeof t!="number"?t:pl(t,nr))};function Rh(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,i=qe(r.placement),l=qn(i),c=[me,Ee].indexOf(i)>=0,u=c?"height":"width";if(!(!a||!s)){var f=Th(o.padding,r),d=Fn(a),h=l==="y"?ge:me,v=l==="y"?ke:Ee,m=r.rects.reference[u]+r.rects.reference[l]-s[l]-r.rects.popper[u],g=s[l]-r.rects.reference[l],y=ir(a),p=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,C=m/2-g/2,w=f[h],_=p-d[u]-f[v],k=p/2-d[u]/2+C,M=lr(w,k,_),D=l;r.modifiersData[n]=(t={},t[D]=M,t.centerOffset=M-k,t)}}function jh(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)||fl(t.elements.popper,o)&&(t.elements.arrow=o))}const Ph={name:"arrow",enabled:!0,phase:"main",fn:Rh,effect:jh,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Tt(e){return e.split("-")[1]}var $h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ih(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Et(r*o)/o||0,y:Et(n*o)/o||0}}function gl(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=s.x,h=d===void 0?0:d,v=s.y,m=v===void 0?0:v,g=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var y=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),C=me,w=ge,_=window;if(c){var k=ir(r),M="clientHeight",D="clientWidth";if(k===xe(r)&&(k=tt(r),Ue(k).position!=="static"&&i==="absolute"&&(M="scrollHeight",D="scrollWidth")),k=k,o===ge||(o===me||o===Ee)&&a===or){w=ke;var N=f&&k===_&&_.visualViewport?_.visualViewport.height:k[M];m-=N-n.height,m*=l?1:-1}if(o===me||(o===ge||o===ke)&&a===or){C=Ee;var R=f&&k===_&&_.visualViewport?_.visualViewport.width:k[D];h-=R-n.width,h*=l?1:-1}}var b=Object.assign({position:i},c&&$h),E=u===!0?Ih({x:h,y:m},xe(r)):{x:h,y:m};if(h=E.x,m=E.y,l){var F;return Object.assign({},b,(F={},F[w]=p?"0":"",F[C]=y?"0":"",F.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",F))}return Object.assign({},b,(t={},t[w]=p?m+"px":"",t[C]=y?h+"px":"",t.transform="",t))}function Mh(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,s=a===void 0?!0:a,i=r.roundOffsets,l=i===void 0?!0:i,c={placement:qe(t.placement),variation:Tt(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,gl(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,gl(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Fh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Mh,data:{}};var Br={passive:!0};function qh(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,s=n.resize,i=s===void 0?!0:s,l=xe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",r.update,Br)}),i&&l.addEventListener("resize",r.update,Br),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",r.update,Br)}),i&&l.removeEventListener("resize",r.update,Br)}}const Nh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qh,data:{}};var Bh={left:"right",right:"left",bottom:"top",top:"bottom"};function Dr(e){return e.replace(/left|right|bottom|top/g,function(t){return Bh[t]})}var Dh={start:"end",end:"start"};function ml(e){return e.replace(/start|end/g,function(t){return Dh[t]})}function Nn(e){var t=xe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Bn(e){return At(tt(e)).left+Nn(e).scrollLeft}function Lh(e,t){var r=xe(e),n=tt(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;var c=cl();(c||!c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i+Bn(e),y:l}}function Gh(e){var t,r=tt(e),n=Nn(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=ht(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ht(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-n.scrollLeft+Bn(e),l=-n.scrollTop;return Ue(o||r).direction==="rtl"&&(i+=ht(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function Dn(e){var t=Ue(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function yl(e){return["html","body","#document"].indexOf(Fe(e))>=0?e.ownerDocument.body:Ae(e)&&Dn(e)?e:yl(Nr(e))}function sr(e,t){var r;t===void 0&&(t=[]);var n=yl(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=xe(n),s=o?[a].concat(a.visualViewport||[],Dn(n)?n:[]):n,i=t.concat(s);return o?i:i.concat(sr(Nr(s)))}function Ln(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Hh(e,t){var r=At(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 bl(e,t,r){return t===ll?Ln(Lh(e,r)):dt(t)?Hh(t,r):Ln(Gh(tt(e)))}function Vh(e){var t=sr(Nr(e)),r=["absolute","fixed"].indexOf(Ue(e).position)>=0,n=r&&Ae(e)?ir(e):e;return dt(n)?t.filter(function(o){return dt(o)&&fl(o,n)&&Fe(o)!=="body"}):[]}function Uh(e,t,r,n){var o=t==="clippingParents"?Vh(e):[].concat(t),a=[].concat(o,[r]),s=a[0],i=a.reduce(function(l,c){var u=bl(e,c,n);return l.top=ht(u.top,l.top),l.right=qr(u.right,l.right),l.bottom=qr(u.bottom,l.bottom),l.left=ht(u.left,l.left),l},bl(e,s,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Cl(e){var t=e.reference,r=e.element,n=e.placement,o=n?qe(n):null,a=n?Tt(n):null,s=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2,l;switch(o){case ge:l={x:s,y:t.y-r.height};break;case ke:l={x:s,y:t.y+t.height};break;case Ee:l={x:t.x+t.width,y:i};break;case me:l={x:t.x-r.width,y:i};break;default:l={x:t.x,y:t.y}}var c=o?qn(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case kt:l[c]=l[c]-(t[u]/2-r[u]/2);break;case or:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function ur(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,i=r.boundary,l=i===void 0?fh:i,c=r.rootBoundary,u=c===void 0?ll:c,f=r.elementContext,d=f===void 0?ar:f,h=r.altBoundary,v=h===void 0?!1:h,m=r.padding,g=m===void 0?0:m,y=vl(typeof g!="number"?g:pl(g,nr)),p=d===ar?dh:ar,C=e.rects.popper,w=e.elements[v?p:d],_=Uh(dt(w)?w:w.contextElement||tt(e.elements.popper),l,u,s),k=At(e.elements.reference),M=Cl({reference:k,element:C,placement:o}),D=Ln(Object.assign({},C,M)),N=d===ar?D:k,R={top:_.top-N.top+y.top,bottom:N.bottom-_.bottom+y.bottom,left:_.left-N.left+y.left,right:N.right-_.right+y.right},b=e.modifiersData.offset;if(d===ar&&b){var E=b[o];Object.keys(R).forEach(function(F){var U=[Ee,ke].indexOf(F)>=0?1:-1,L=[ge,ke].indexOf(F)>=0?"y":"x";R[F]+=E[L]*U})}return R}function Wh(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,i=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?ul:l,u=Tt(n),f=u?i?sl:sl.filter(function(v){return Tt(v)===u}):nr,d=f.filter(function(v){return c.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,m){return v[m]=ur(e,{placement:m,boundary:o,rootBoundary:a,padding:s})[qe(m)],v},{});return Object.keys(h).sort(function(v,m){return h[v]-h[m]})}function zh(e){if(qe(e)===$n)return[];var t=Dr(e);return[ml(e),t,ml(t)]}function Kh(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,i=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,m=r.allowedAutoPlacements,g=t.options.placement,y=qe(g),p=y===g,C=l||(p||!v?[Dr(g)]:zh(g)),w=[g].concat(C).reduce(function(it,Le){return it.concat(qe(Le)===$n?Wh(t,{placement:Le,boundary:u,rootBoundary:f,padding:c,flipVariations:v,allowedAutoPlacements:m}):Le)},[]),_=t.rects.reference,k=t.rects.popper,M=new Map,D=!0,N=w[0],R=0;R<w.length;R++){var b=w[R],E=qe(b),F=Tt(b)===kt,U=[ge,ke].indexOf(E)>=0,L=U?"width":"height",Y=ur(t,{placement:b,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),ue=U?F?Ee:me:F?ke:ge;_[L]>k[L]&&(ue=Dr(ue));var j=Dr(ue),B=[];if(a&&B.push(Y[E]<=0),i&&B.push(Y[ue]<=0,Y[j]<=0),B.every(function(it){return it})){N=b,D=!1;break}M.set(b,B)}if(D)for(var W=v?3:1,be=function(Le){var Or=w.find(function(fn){var St=M.get(fn);if(St)return St.slice(0,Le).every(function($a){return $a})});if(Or)return N=Or,"break"},De=W;De>0;De--){var Ut=be(De);if(Ut==="break")break}t.placement!==N&&(t.modifiersData[n]._skip=!0,t.placement=N,t.reset=!0)}}const Yh={name:"flip",enabled:!0,phase:"main",fn:Kh,requiresIfExists:["offset"],data:{_skip:!1}};function wl(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 Sl(e){return[ge,Ee,ke,me].some(function(t){return e[t]>=0})}function Xh(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=ur(t,{elementContext:"reference"}),i=ur(t,{altBoundary:!0}),l=wl(s,n),c=wl(i,o,a),u=Sl(l),f=Sl(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Jh={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Xh};function Zh(e,t,r){var n=qe(e),o=[me,ge].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],i=a[1];return s=s||0,i=(i||0)*o,[me,Ee].indexOf(n)>=0?{x:i,y:s}:{x:s,y:i}}function Qh(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,s=ul.reduce(function(u,f){return u[f]=Zh(f,t.rects,a),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}const ev={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qh};function tv(e){var t=e.state,r=e.name;t.modifiersData[r]=Cl({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const rv={name:"popperOffsets",enabled:!0,phase:"read",fn:tv,data:{}};function nv(e){return e==="x"?"y":"x"}function ov(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,i=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,v=r.tetherOffset,m=v===void 0?0:v,g=ur(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),y=qe(t.placement),p=Tt(t.placement),C=!p,w=qn(y),_=nv(w),k=t.modifiersData.popperOffsets,M=t.rects.reference,D=t.rects.popper,N=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,R=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(k){if(a){var F,U=w==="y"?ge:me,L=w==="y"?ke:Ee,Y=w==="y"?"height":"width",ue=k[w],j=ue+g[U],B=ue-g[L],W=h?-D[Y]/2:0,be=p===kt?M[Y]:D[Y],De=p===kt?-D[Y]:-M[Y],Ut=t.elements.arrow,it=h&&Ut?Fn(Ut):{width:0,height:0},Le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:hl(),Or=Le[U],fn=Le[L],St=lr(0,M[Y],it[Y]),$a=C?M[Y]/2-W-St-Or-R.mainAxis:be-St-Or-R.mainAxis,qb=C?-M[Y]/2+W+St+fn+R.mainAxis:De+St+fn+R.mainAxis,Ia=t.elements.arrow&&ir(t.elements.arrow),Nb=Ia?w==="y"?Ia.clientTop||0:Ia.clientLeft||0:0,Sc=(F=b==null?void 0:b[w])!=null?F:0,Bb=ue+$a-Sc-Nb,Db=ue+qb-Sc,xc=lr(h?qr(j,Bb):j,ue,h?ht(B,Db):B);k[w]=xc,E[w]=xc-ue}if(i){var Oc,Lb=w==="x"?ge:me,Gb=w==="x"?ke:Ee,xt=k[_],dn=_==="y"?"height":"width",_c=xt+g[Lb],kc=xt-g[Gb],Ma=[ge,me].indexOf(y)!==-1,Ec=(Oc=b==null?void 0:b[_])!=null?Oc:0,Ac=Ma?_c:xt-M[dn]-D[dn]-Ec+R.altAxis,Tc=Ma?xt+M[dn]+D[dn]-Ec-R.altAxis:kc,Rc=h&&Ma?Ah(Ac,xt,Tc):lr(h?Ac:_c,xt,h?Tc:kc);k[_]=Rc,E[_]=Rc-xt}t.modifiersData[n]=E}}const av={name:"preventOverflow",enabled:!0,phase:"main",fn:ov,requiresIfExists:["offset"]};function iv(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lv(e){return e===xe(e)||!Ae(e)?Nn(e):iv(e)}function sv(e){var t=e.getBoundingClientRect(),r=Et(t.width)/e.offsetWidth||1,n=Et(t.height)/e.offsetHeight||1;return r!==1||n!==1}function uv(e,t,r){r===void 0&&(r=!1);var n=Ae(t),o=Ae(t)&&sv(t),a=tt(t),s=At(e,o,r),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Fe(t)!=="body"||Dn(a))&&(i=lv(t)),Ae(t)?(l=At(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Bn(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function cv(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!r.has(i)){var l=t.get(i);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function fv(e){var t=cv(e);return Sh.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function dv(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function hv(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 xl={placement:"bottom",modifiers:[],strategy:"absolute"};function Ol(){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 vv(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?xl:o;return function(i,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},xl,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:u,setOptions:function(y){var p=typeof y=="function"?y(u.options):y;m(),u.options=Object.assign({},a,u.options,p),u.scrollParents={reference:dt(i)?sr(i):i.contextElement?sr(i.contextElement):[],popper:sr(l)};var C=fv(hv([].concat(n,u.options.modifiers)));return u.orderedModifiers=C.filter(function(w){return w.enabled}),v(),h.update()},forceUpdate:function(){if(!d){var y=u.elements,p=y.reference,C=y.popper;if(Ol(p,C)){u.rects={reference:uv(p,ir(C),u.options.strategy==="fixed"),popper:Fn(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var _=u.orderedModifiers[w],k=_.fn,M=_.options,D=M===void 0?{}:M,N=_.name;typeof k=="function"&&(u=k({state:u,options:D,name:N,instance:h})||u)}}}},update:dv(function(){return new Promise(function(g){h.forceUpdate(),g(u)})}),destroy:function(){m(),d=!0}};if(!Ol(i,l))return h;h.setOptions(c).then(function(g){!d&&c.onFirstUpdate&&c.onFirstUpdate(g)});function v(){u.orderedModifiers.forEach(function(g){var y=g.name,p=g.options,C=p===void 0?{}:p,w=g.effect;if(typeof w=="function"){var _=w({state:u,name:y,instance:h,options:C}),k=function(){};f.push(_||k)}})}function m(){f.forEach(function(g){return g()}),f=[]}return h}}var pv=[Nh,rv,Fh,_h,ev,Yh,av,Ph,Jh],gv=vv({defaultModifiers:pv});function mv(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 _l(e,t,r){return r&&mv(e,r),e}function Lr(){return(Lr=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 kl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function El(e,t){if(e==null)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function Al(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var Tl=Object.prototype,Rl=Tl.toString,yv=Tl.hasOwnProperty,jl=/^\s*function (\w+)/;function Pl(e){var t,r=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(jl);return n?n[1]:""}return""}var vt=function(e){var t,r;return Al(e)!==!1&&typeof(t=e.constructor)=="function"&&Al(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},$l=function(e){return e},ye=$l;if(process.env.NODE_ENV!=="production"){var bv=typeof console<"u";ye=bv?function(e){console.warn("[VueTypes warn]: "+e)}:$l}var cr=function(e,t){return yv.call(e,t)},Cv=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Rt=Array.isArray||function(e){return Rl.call(e)==="[object Array]"},jt=function(e){return Rl.call(e)==="[object Function]"},Gr=function(e){return vt(e)&&cr(e,"_vueTypes_name")},Il=function(e){return vt(e)&&(cr(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return cr(e,t)}))};function Gn(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function pt(e,t,r){var n,o=!0,a="";n=vt(e)?e:{type:e};var s=Gr(n)?n._vueTypes_name+" - ":"";if(Il(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;Rt(n.type)?(o=n.type.some(function(f){return pt(f,t)===!0}),a=n.type.map(function(f){return Pl(f)}).join(" or ")):o=(a=Pl(n))==="Array"?Rt(t):a==="Object"?vt(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(f){if(f==null)return"";var d=f.constructor.toString().match(jl);return d?d[1]:""}(t)===a:t instanceof n.type}if(!o){var i=s+'value "'+t+'" should be of type "'+a+'"';return i}if(cr(n,"validator")&&jt(n.validator)){var l=ye,c=[];if(ye=function(f){c.push(f)},o=n.validator(t),ye=l,!o){var u=(c.length>1?"* ":"")+c.join(`
|
|
12
|
+
* `);return c.length=0,u}}return o}function Oe(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?jt(o)||pt(this,o)===!0?(this.default=Rt(o)?function(){return[].concat(o)}:vt(o)?function(){return Object.assign({},o)}:o,this):(ye(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),n=r.validator;return jt(n)&&(r.validator=Gn(n,r)),r}function Ne(e,t){var r=Oe(e,t);return Object.defineProperty(r,"validate",{value:function(n){return jt(this.validator)&&ye(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
|
|
13
|
+
`+JSON.stringify(this)),this.validator=Gn(n,this),this}})}function Ml(e,t,r){var n,o,a=(n=t,o={},Object.getOwnPropertyNames(n).forEach(function(f){o[f]=Object.getOwnPropertyDescriptor(n,f)}),Object.defineProperties({},o));if(a._vueTypes_name=e,!vt(r))return a;var s,i,l=r.validator,c=El(r,["validator"]);if(jt(l)){var u=a.validator;u&&(u=(i=(s=u).__original)!==null&&i!==void 0?i:s),a.validator=Gn(u?function(f){return u.call(this,f)&&l.call(this,f)}:l,a)}return Object.assign(a,c)}function Hr(e){return e.replace(/^(?!\s*$)/gm," ")}var wv=function(){return Ne("any",{})},Sv=function(){return Ne("function",{type:Function})},xv=function(){return Ne("boolean",{type:Boolean})},Ov=function(){return Ne("string",{type:String})},_v=function(){return Ne("number",{type:Number})},kv=function(){return Ne("array",{type:Array})},Ev=function(){return Ne("object",{type:Object})},Av=function(){return Oe("integer",{type:Number,validator:function(e){return Cv(e)}})},Tv=function(){return Oe("symbol",{validator:function(e){return typeof e=="symbol"}})};function Rv(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 Oe(e.name||"<<anonymous function>>",{validator:function(r){var n=e(r);return n||ye(this._vueTypes_name+" - "+t),n}})}function jv(e){if(!Rt(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 a=o.constructor;n.indexOf(a)===-1&&n.push(a)}return n},[]);return Oe("oneOf",{type:r.length>0?r:void 0,validator:function(n){var o=e.indexOf(n)!==-1;return o||ye(t),o}})}function Pv(e){if(!Rt(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(Il(o)){if(Gr(o)&&o._vueTypes_name==="oneOf"){r=r.concat(o.type);continue}if(jt(o.validator)&&(t=!0),o.type!==!0&&o.type){r=r.concat(o.type);continue}}r.push(o)}return r=r.filter(function(a,s){return r.indexOf(a)===s}),Oe("oneOfType",t?{type:r,validator:function(a){var s=[],i=e.some(function(l){var c=pt(Gr(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,a);return typeof c=="string"&&s.push(c),c===!0});return i||ye("oneOfType - provided value does not match any of the "+s.length+` passed-in validators:
|
|
14
|
+
`+Hr(s.join(`
|
|
15
|
+
`))),i}}:{type:r})}function $v(e){return Oe("arrayOf",{type:Array,validator:function(t){var r,n=t.every(function(o){return(r=pt(e,o))===!0});return n||ye(`arrayOf - value validation error:
|
|
16
|
+
`+Hr(r)),n}})}function Iv(e){return Oe("instanceOf",{type:e})}function Mv(e){return Oe("objectOf",{type:Object,validator:function(t){var r,n=Object.keys(t).every(function(o){return(r=pt(e,t[o]))===!0});return n||ye(`objectOf - value validation error:
|
|
17
|
+
`+Hr(r)),n}})}function Fv(e){var t=Object.keys(e),r=t.filter(function(o){var a;return!!(!((a=e[o])===null||a===void 0)&&a.required)}),n=Oe("shape",{type:Object,validator:function(o){var a=this;if(!vt(o))return!1;var s=Object.keys(o);if(r.length>0&&r.some(function(l){return s.indexOf(l)===-1})){var i=r.filter(function(l){return s.indexOf(l)===-1});return ye(i.length===1?'shape - required property "'+i[0]+'" is not defined.':'shape - required properties "'+i.join('", "')+'" are not defined.'),!1}return s.every(function(l){if(t.indexOf(l)===-1)return a._vueTypes_isLoose===!0||(ye('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var c=pt(e[l],o[l]);return typeof c=="string"&&ye('shape - "'+l+`" property validation error:
|
|
18
|
+
`+Hr(c)),c===!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 Be=function(){function e(){}return e.extend=function(t){var r=this;if(Rt(t))return t.forEach(function(f){return r.extend(f)}),this;var n=t.name,o=t.validate,a=o!==void 0&&o,s=t.getter,i=s!==void 0&&s,l=El(t,["name","validate","getter"]);if(cr(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var c,u=l.type;return Gr(u)?(delete l.type,Object.defineProperty(this,n,i?{get:function(){return Ml(n,u,l)}}:{value:function(){var f,d=Ml(n,u,l);return d.validator&&(d.validator=(f=d.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d}})):(c=i?{get:function(){var f=Object.assign({},l);return a?Ne(n,f):Oe(n,f)},enumerable:!0}:{value:function(){var f,d,h=Object.assign({},l);return f=a?Ne(n,h):Oe(n,h),h.validator&&(f.validator=(d=h.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,n,c))},_l(e,null,[{key:"any",get:function(){return wv()}},{key:"func",get:function(){return Sv().def(this.defaults.func)}},{key:"bool",get:function(){return xv().def(this.defaults.bool)}},{key:"string",get:function(){return Ov().def(this.defaults.string)}},{key:"number",get:function(){return _v().def(this.defaults.number)}},{key:"array",get:function(){return kv().def(this.defaults.array)}},{key:"object",get:function(){return Ev().def(this.defaults.object)}},{key:"integer",get:function(){return Av().def(this.defaults.integer)}},{key:"symbol",get:function(){return Tv()}}]),e}();function qv(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 kl(n,r),_l(n,null,[{key:"sensibleDefaults",get:function(){return Lr({},this.defaults)},set:function(o){this.defaults=o!==!1?Lr({},o!==!0?o:e):{}}}]),n}(Be)).defaults=Lr({},e),t}Be.defaults={},Be.custom=Rv,Be.oneOf=jv,Be.instanceOf=Iv,Be.oneOfType=Pv,Be.arrayOf=$v,Be.objectOf=Mv,Be.shape=Fv,Be.utils={validate:function(e,t){return pt(t,e)===!0},toType:function(e,t,r){return r===void 0&&(r=!1),r?Ne(e,t):Oe(e,t)}};var I=function(e){function t(){return e.apply(this,arguments)||this}return kl(t,e),t}(qv()),Fl={},fr,ql;function Ie(){if(ql)return fr;ql=1;var e=function(t){return t&&t.Math===Math&&t};return fr=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof ol=="object"&&ol)||e(typeof fr=="object"&&fr)||function(){return this}()||Function("return this")(),fr}var Hn,Nl;function gt(){return Nl||(Nl=1,Hn=function(e){try{return!!e()}catch{return!0}}),Hn}var Vn,Bl;function mt(){if(Bl)return Vn;Bl=1;var e=gt();return Vn=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Vn}var Un={exports:{}},Wn,Dl;function Ll(){if(Dl)return Wn;Dl=1;var e=gt();return Wn=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Wn}var zn,Gl;function dr(){if(Gl)return zn;Gl=1;var e=Ll(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return zn=e?n:function(o){return function(){return r.apply(o,arguments)}},zn}var Kn,Hl;function rt(){if(Hl)return Kn;Hl=1;var e=typeof document=="object"&&document.all;return Kn=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},Kn}var Yn,Vl;function Ul(){return Vl||(Vl=1,Yn=function(e){return e==null}),Yn}var Xn,Wl;function Nv(){if(Wl)return Xn;Wl=1;var e=Ul(),t=TypeError;return Xn=function(r){if(e(r))throw new t("Can't call method on "+r);return r},Xn}var Jn,zl;function Bv(){if(zl)return Jn;zl=1;var e=Nv(),t=Object;return Jn=function(r){return t(e(r))},Jn}var Zn,Kl;function Vr(){if(Kl)return Zn;Kl=1;var e=dr(),t=Bv(),r=e({}.hasOwnProperty);return Zn=Object.hasOwn||function(o,a){return r(t(o),a)},Zn}var Qn,Yl;function Dv(){if(Yl)return Qn;Yl=1;var e=mt(),t=Vr(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),a=o&&(function(){}).name==="something",s=o&&(!e||e&&n(r,"name").configurable);return Qn={EXISTS:o,PROPER:a,CONFIGURABLE:s},Qn}var eo={exports:{}},to,Xl;function Lv(){return Xl||(Xl=1,to=!1),to}var ro,Jl;function Gv(){if(Jl)return ro;Jl=1;var e=Ie(),t=Object.defineProperty;return ro=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},ro}var Zl;function no(){if(Zl)return eo.exports;Zl=1;var e=Lv(),t=Ie(),r=Gv(),n="__core-js_shared__",o=eo.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.41.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),eo.exports}var oo,Ql;function Hv(){if(Ql)return oo;Ql=1;var e=dr(),t=rt(),r=no(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(o){return n(o)}),oo=r.inspectSource,oo}var ao,es;function Vv(){if(es)return ao;es=1;var e=Ie(),t=rt(),r=e.WeakMap;return ao=t(r)&&/native code/.test(String(r)),ao}var io,ts;function hr(){if(ts)return io;ts=1;var e=rt();return io=function(t){return typeof t=="object"?t!==null:e(t)},io}var lo={},so,rs;function Uv(){if(rs)return so;rs=1;var e=Ie(),t=hr(),r=e.document,n=t(r)&&t(r.createElement);return so=function(o){return n?r.createElement(o):{}},so}var uo,ns;function Wv(){if(ns)return uo;ns=1;var e=mt(),t=gt(),r=Uv();return uo=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),uo}var co,os;function zv(){if(os)return co;os=1;var e=mt(),t=gt();return co=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),co}var fo,as;function is(){if(as)return fo;as=1;var e=hr(),t=String,r=TypeError;return fo=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},fo}var ho,ls;function ss(){if(ls)return ho;ls=1;var e=Ll(),t=Function.prototype.call;return ho=e?t.bind(t):function(){return t.apply(t,arguments)},ho}var vo,us;function Kv(){if(us)return vo;us=1;var e=Ie(),t=rt(),r=function(n){return t(n)?n:void 0};return vo=function(n,o){return arguments.length<2?r(e[n]):e[n]&&e[n][o]},vo}var po,cs;function Yv(){if(cs)return po;cs=1;var e=dr();return po=e({}.isPrototypeOf),po}var go,fs;function Xv(){if(fs)return go;fs=1;var e=Ie(),t=e.navigator,r=t&&t.userAgent;return go=r?String(r):"",go}var mo,ds;function Jv(){if(ds)return mo;ds=1;var e=Ie(),t=Xv(),r=e.process,n=e.Deno,o=r&&r.versions||n&&n.version,a=o&&o.v8,s,i;return a&&(s=a.split("."),i=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!i&&t&&(s=t.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=t.match(/Chrome\/(\d+)/),s&&(i=+s[1]))),mo=i,mo}var yo,hs;function vs(){if(hs)return yo;hs=1;var e=Jv(),t=gt(),r=Ie(),n=r.String;return yo=!!Object.getOwnPropertySymbols&&!t(function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41}),yo}var bo,ps;function gs(){if(ps)return bo;ps=1;var e=vs();return bo=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",bo}var Co,ms;function ys(){if(ms)return Co;ms=1;var e=Kv(),t=rt(),r=Yv(),n=gs(),o=Object;return Co=n?function(a){return typeof a=="symbol"}:function(a){var s=e("Symbol");return t(s)&&r(s.prototype,o(a))},Co}var wo,bs;function Zv(){if(bs)return wo;bs=1;var e=String;return wo=function(t){try{return e(t)}catch{return"Object"}},wo}var So,Cs;function Qv(){if(Cs)return So;Cs=1;var e=rt(),t=Zv(),r=TypeError;return So=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},So}var xo,ws;function ep(){if(ws)return xo;ws=1;var e=Qv(),t=Ul();return xo=function(r,n){var o=r[n];return t(o)?void 0:e(o)},xo}var Oo,Ss;function tp(){if(Ss)return Oo;Ss=1;var e=ss(),t=rt(),r=hr(),n=TypeError;return Oo=function(o,a){var s,i;if(a==="string"&&t(s=o.toString)&&!r(i=e(s,o))||t(s=o.valueOf)&&!r(i=e(s,o))||a!=="string"&&t(s=o.toString)&&!r(i=e(s,o)))return i;throw new n("Can't convert object to primitive value")},Oo}var _o,xs;function Os(){if(xs)return _o;xs=1;var e=no();return _o=function(t,r){return e[t]||(e[t]=r||{})},_o}var ko,_s;function ks(){if(_s)return ko;_s=1;var e=dr(),t=0,r=Math.random(),n=e(1 .toString);return ko=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++t+r,36)},ko}var Eo,Es;function rp(){if(Es)return Eo;Es=1;var e=Ie(),t=Os(),r=Vr(),n=ks(),o=vs(),a=gs(),s=e.Symbol,i=t("wks"),l=a?s.for||s:s&&s.withoutSetter||n;return Eo=function(c){return r(i,c)||(i[c]=o&&r(s,c)?s[c]:l("Symbol."+c)),i[c]},Eo}var Ao,As;function np(){if(As)return Ao;As=1;var e=ss(),t=hr(),r=ys(),n=ep(),o=tp(),a=rp(),s=TypeError,i=a("toPrimitive");return Ao=function(l,c){if(!t(l)||r(l))return l;var u=n(l,i),f;if(u){if(c===void 0&&(c="default"),f=e(u,l,c),!t(f)||r(f))return f;throw new s("Can't convert object to primitive value")}return c===void 0&&(c="number"),o(l,c)},Ao}var To,Ts;function op(){if(Ts)return To;Ts=1;var e=np(),t=ys();return To=function(r){var n=e(r,"string");return t(n)?n:n+""},To}var Rs;function js(){if(Rs)return lo;Rs=1;var e=mt(),t=Wv(),r=zv(),n=is(),o=op(),a=TypeError,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",u="writable";return lo.f=e?r?function(d,h,v){if(n(d),h=o(h),n(v),typeof d=="function"&&h==="prototype"&&"value"in v&&u in v&&!v[u]){var m=i(d,h);m&&m[u]&&(d[h]=v.value,v={configurable:c in v?v[c]:m[c],enumerable:l in v?v[l]:m[l],writable:!1})}return s(d,h,v)}:s:function(d,h,v){if(n(d),h=o(h),n(v),t)try{return s(d,h,v)}catch{}if("get"in v||"set"in v)throw new a("Accessors not supported");return"value"in v&&(d[h]=v.value),d},lo}var Ro,Ps;function ap(){return Ps||(Ps=1,Ro=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),Ro}var jo,$s;function ip(){if($s)return jo;$s=1;var e=mt(),t=js(),r=ap();return jo=e?function(n,o,a){return t.f(n,o,r(1,a))}:function(n,o,a){return n[o]=a,n},jo}var Po,Is;function lp(){if(Is)return Po;Is=1;var e=Os(),t=ks(),r=e("keys");return Po=function(n){return r[n]||(r[n]=t(n))},Po}var $o,Ms;function sp(){return Ms||(Ms=1,$o={}),$o}var Io,Fs;function up(){if(Fs)return Io;Fs=1;var e=Vv(),t=Ie(),r=hr(),n=ip(),o=Vr(),a=no(),s=lp(),i=sp(),l="Object already initialized",c=t.TypeError,u=t.WeakMap,f,d,h,v=function(p){return h(p)?d(p):f(p,{})},m=function(p){return function(C){var w;if(!r(C)||(w=d(C)).type!==p)throw new c("Incompatible receiver, "+p+" required");return w}};if(e||a.state){var g=a.state||(a.state=new u);g.get=g.get,g.has=g.has,g.set=g.set,f=function(p,C){if(g.has(p))throw new c(l);return C.facade=p,g.set(p,C),C},d=function(p){return g.get(p)||{}},h=function(p){return g.has(p)}}else{var y=s("state");i[y]=!0,f=function(p,C){if(o(p,y))throw new c(l);return C.facade=p,n(p,y,C),C},d=function(p){return o(p,y)?p[y]:{}},h=function(p){return o(p,y)}}return Io={set:f,get:d,has:h,enforce:v,getterFor:m},Io}var qs;function cp(){if(qs)return Un.exports;qs=1;var e=dr(),t=gt(),r=rt(),n=Vr(),o=mt(),a=Dv().CONFIGURABLE,s=Hv(),i=up(),l=i.enforce,c=i.get,u=String,f=Object.defineProperty,d=e("".slice),h=e("".replace),v=e([].join),m=o&&!t(function(){return f(function(){},"length",{value:8}).length!==8}),g=String(String).split("String"),y=Un.exports=function(p,C,w){d(u(C),0,7)==="Symbol("&&(C="["+h(u(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),w&&w.getter&&(C="get "+C),w&&w.setter&&(C="set "+C),(!n(p,"name")||a&&p.name!==C)&&(o?f(p,"name",{value:C,configurable:!0}):p.name=C),m&&w&&n(w,"arity")&&p.length!==w.arity&&f(p,"length",{value:w.arity});try{w&&n(w,"constructor")&&w.constructor?o&&f(p,"prototype",{writable:!1}):p.prototype&&(p.prototype=void 0)}catch{}var _=l(p);return n(_,"source")||(_.source=v(g,typeof C=="string"?C:"")),p};return Function.prototype.toString=y(function(){return r(this)&&c(this).source||s(this)},"toString"),Un.exports}var Mo,Ns;function fp(){if(Ns)return Mo;Ns=1;var e=cp(),t=js();return Mo=function(r,n,o){return o.get&&e(o.get,n,{getter:!0}),o.set&&e(o.set,n,{setter:!0}),t.f(r,n,o)},Mo}var Fo,Bs;function dp(){if(Bs)return Fo;Bs=1;var e=is();return Fo=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Fo}var Ds;function hp(){if(Ds)return Fl;Ds=1;var e=Ie(),t=mt(),r=fp(),n=dp(),o=gt(),a=e.RegExp,s=a.prototype,i=t&&o(function(){var l=!0;try{a(".","d")}catch{l=!1}var c={},u="",f=l?"dgimsy":"gimsy",d=function(g,y){Object.defineProperty(c,g,{get:function(){return u+=y,!0}})},h={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};l&&(h.hasIndices="d");for(var v in h)d(v,h[v]);var m=Object.getOwnPropertyDescriptor(s,"flags").get.call(c);return m!==f||u!==f});return i&&r(s,"flags",{configurable:!0,get:n}),Fl}hp();var Ls=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qo(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ur=function(e){return e&&e.Math==Math&&e},ae=Ur(typeof globalThis=="object"&&globalThis)||Ur(typeof window=="object"&&window)||Ur(typeof self=="object"&&self)||Ur(typeof Ls=="object"&&Ls)||function(){return this}()||Function("return this")(),K=function(e){try{return!!e()}catch{return!0}},Te=!K(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Gs={}.propertyIsEnumerable,Hs=Object.getOwnPropertyDescriptor,vp={f:Hs&&!Gs.call({1:2},1)?function(e){var t=Hs(this,e);return!!t&&t.enumerable}:Gs},Wr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},pp={}.toString,We=function(e){return pp.call(e).slice(8,-1)},gp="".split,zr=K(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return We(e)=="String"?gp.call(e,""):Object(e)}:Object,nt=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},Pt=function(e){return zr(nt(e))},le=function(e){return typeof e=="object"?e!==null:typeof e=="function"},No=function(e,t){if(!le(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!le(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!le(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!le(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},mp={}.hasOwnProperty,oe=function(e,t){return mp.call(e,t)},Bo=ae.document,yp=le(Bo)&&le(Bo.createElement),Vs=function(e){return yp?Bo.createElement(e):{}},Us=!Te&&!K(function(){return Object.defineProperty(Vs("div"),"a",{get:function(){return 7}}).a!=7}),Ws=Object.getOwnPropertyDescriptor,Do={f:Te?Ws:function(e,t){if(e=Pt(e),t=No(t,!0),Us)try{return Ws(e,t)}catch{}if(oe(e,t))return Wr(!vp.f.call(e,t),e[t])}},ve=function(e){if(!le(e))throw TypeError(String(e)+" is not an object");return e},zs=Object.defineProperty,ze={f:Te?zs:function(e,t,r){if(ve(e),t=No(t,!0),ve(r),Us)try{return zs(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}},Re=Te?function(e,t,r){return ze.f(e,t,Wr(1,r))}:function(e,t,r){return e[t]=r,e},Lo=function(e,t){try{Re(ae,e,t)}catch{ae[e]=t}return t},yt=ae["__core-js_shared__"]||Lo("__core-js_shared__",{}),bp=Function.toString;typeof yt.inspectSource!="function"&&(yt.inspectSource=function(e){return bp.call(e)});var Kr,vr,Yr,Ks=yt.inspectSource,Ys=ae.WeakMap,Cp=typeof Ys=="function"&&/native code/.test(Ks(Ys)),Xs=qo(function(e){(e.exports=function(t,r){return yt[t]||(yt[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),wp=0,Sp=Math.random(),Go=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++wp+Sp).toString(36)},Js=Xs("keys"),Ho=function(e){return Js[e]||(Js[e]=Go(e))},Xr={},xp=ae.WeakMap;if(Cp){var $t=yt.state||(yt.state=new xp),Op=$t.get,_p=$t.has,kp=$t.set;Kr=function(e,t){return t.facade=e,kp.call($t,e,t),t},vr=function(e){return Op.call($t,e)||{}},Yr=function(e){return _p.call($t,e)}}else{var pr=Ho("state");Xr[pr]=!0,Kr=function(e,t){return t.facade=e,Re(e,pr,t),t},vr=function(e){return oe(e,pr)?e[pr]:{}},Yr=function(e){return oe(e,pr)}}var ot={set:Kr,get:vr,has:Yr,enforce:function(e){return Yr(e)?vr(e):Kr(e,{})},getterFor:function(e){return function(t){var r;if(!le(t)||(r=vr(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},at=qo(function(e){var t=ot.get,r=ot.enforce,n=String(String).split("String");(e.exports=function(o,a,s,i){var l,c=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,f=!!i&&!!i.noTargetGet;typeof s=="function"&&(typeof a!="string"||oe(s,"name")||Re(s,"name",a),(l=r(s)).source||(l.source=n.join(typeof a=="string"?a:""))),o!==ae?(c?!f&&o[a]&&(u=!0):delete o[a],u?o[a]=s:Re(o,a,s)):u?o[a]=s:Lo(a,s)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||Ks(this)})}),Vo=ae,Zs=function(e){return typeof e=="function"?e:void 0},Jr=function(e,t){return arguments.length<2?Zs(Vo[e])||Zs(ae[e]):Vo[e]&&Vo[e][t]||ae[e]&&ae[e][t]},Ep=Math.ceil,Ap=Math.floor,It=function(e){return isNaN(e=+e)?0:(e>0?Ap:Ep)(e)},Tp=Math.min,_e=function(e){return e>0?Tp(It(e),9007199254740991):0},Rp=Math.max,jp=Math.min,Zr=function(e,t){var r=It(e);return r<0?Rp(r+t,0):jp(r,t)},Pp=function(e){return function(t,r,n){var o,a=Pt(t),s=_e(a.length),i=Zr(n,s);if(e&&r!=r){for(;s>i;)if((o=a[i++])!=o)return!0}else for(;s>i;i++)if((e||i in a)&&a[i]===r)return e||i||0;return!e&&-1}},Qs={indexOf:Pp(!1)},$p=Qs.indexOf,eu=function(e,t){var r,n=Pt(e),o=0,a=[];for(r in n)!oe(Xr,r)&&oe(n,r)&&a.push(r);for(;t.length>o;)oe(n,r=t[o++])&&(~$p(a,r)||a.push(r));return a},Qr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ip=Qr.concat("length","prototype"),Mp={f:Object.getOwnPropertyNames||function(e){return eu(e,Ip)}},Fp={f:Object.getOwnPropertySymbols},qp=Jr("Reflect","ownKeys")||function(e){var t=Mp.f(ve(e)),r=Fp.f;return r?t.concat(r(e)):t},Np=function(e,t){for(var r=qp(t),n=ze.f,o=Do.f,a=0;a<r.length;a++){var s=r[a];oe(e,s)||n(e,s,o(t,s))}},Bp=/#|\.prototype\./,gr=function(e,t){var r=Lp[Dp(e)];return r==Hp||r!=Gp&&(typeof t=="function"?K(t):!!t)},Dp=gr.normalize=function(e){return String(e).replace(Bp,".").toLowerCase()},Lp=gr.data={},Gp=gr.NATIVE="N",Hp=gr.POLYFILL="P",Uo=gr,Vp=Do.f,de=function(e,t){var r,n,o,a,s,i=e.target,l=e.global,c=e.stat;if(r=l?ae:c?ae[i]||Lo(i,{}):(ae[i]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(s=Vp(r,n))&&s.value:r[n],!Uo(l?n:i+(c?".":"#")+n,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;Np(a,o)}(e.sham||o&&o.sham)&&Re(a,"sham",!0),at(r,n,a,e)}},Wo=function(e,t){var r=[][e];return!!r&&K(function(){r.call(null,t||function(){throw 1},1)})},Up=Object.defineProperty,zo={},tu=function(e){throw e},Mt=function(e,t){if(oe(zo,e))return zo[e];t||(t={});var r=[][e],n=!!oe(t,"ACCESSORS")&&t.ACCESSORS,o=oe(t,0)?t[0]:tu,a=oe(t,1)?t[1]:void 0;return zo[e]=!!r&&!K(function(){if(n&&!Te)return!0;var s={length:-1};n?Up(s,1,{enumerable:!0,get:tu}):s[1]=1,r.call(s,o,a)})},Wp=Qs.indexOf,ru=[].indexOf,nu=!!ru&&1/[1].indexOf(1,-0)<0,zp=Wo("indexOf"),Kp=Mt("indexOf",{ACCESSORS:!0,1:0});function bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yp(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 Ct(e,t,r){return r&&Yp(e,r),e}de({target:"Array",proto:!0,forced:nu||!zp||!Kp},{indexOf:function(e){return nu?ru.apply(this,arguments)||0:Wp(this,e,arguments.length>1?arguments[1]:void 0)}}),function(){function e(){bt(this,e)}return Ct(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 Xp=[].join,Jp=zr!=Object,Zp=Wo("join",",");de({target:"Array",proto:!0,forced:Jp||!Zp},{join:function(e){return Xp.call(Pt(this),e===void 0?",":e)}});var Ft,en,Ke=function(e){return Object(nt(e))},qt=Array.isArray||function(e){return We(e)=="Array"},ou=!!Object.getOwnPropertySymbols&&!K(function(){return!String(Symbol())}),Qp=ou&&!Symbol.sham&&typeof Symbol.iterator=="symbol",tn=Xs("wks"),mr=ae.Symbol,eg=Qp?mr:mr&&mr.withoutSetter||Go,Q=function(e){return oe(tn,e)||(ou&&oe(mr,e)?tn[e]=mr[e]:tn[e]=eg("Symbol."+e)),tn[e]},tg=Q("species"),rn=function(e,t){var r;return qt(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!qt(r.prototype)?le(r)&&(r=r[tg])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},Nt=function(e,t,r){var n=No(t);n in e?ze.f(e,n,Wr(0,r)):e[n]=r},Ko=Jr("navigator","userAgent")||"",au=ae.process,iu=au&&au.versions,lu=iu&&iu.v8;lu?en=(Ft=lu.split("."))[0]+Ft[1]:Ko&&(!(Ft=Ko.match(/Edge\/(\d+)/))||Ft[1]>=74)&&(Ft=Ko.match(/Chrome\/(\d+)/))&&(en=Ft[1]);var nn=en&&+en,rg=Q("species"),Yo=function(e){return nn>=51||!K(function(){var t=[];return(t.constructor={})[rg]=function(){return{foo:1}},t[e](Boolean).foo!==1})},ng=Yo("splice"),og=Mt("splice",{ACCESSORS:!0,0:0,1:2}),ag=Math.max,ig=Math.min;de({target:"Array",proto:!0,forced:!ng||!og},{splice:function(e,t){var r,n,o,a,s,i,l=Ke(this),c=_e(l.length),u=Zr(e,c),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=c-u):(r=f-2,n=ig(ag(It(t),0),c-u)),c+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=rn(l,n),a=0;a<n;a++)(s=u+a)in l&&Nt(o,a,l[s]);if(o.length=n,r<n){for(a=u;a<c-n;a++)i=a+r,(s=a+n)in l?l[i]=l[s]:delete l[i];for(a=c;a>c-n+r;a--)delete l[a-1]}else if(r>n)for(a=c-n;a>u;a--)i=a+r-1,(s=a+n-1)in l?l[i]=l[s]:delete l[i];for(a=0;a<r;a++)l[a+u]=arguments[a+2];return l.length=c-n+r,o}});var su={};su[Q("toStringTag")]="z";var Xo=String(su)==="[object z]",lg=Q("toStringTag"),sg=We(function(){return arguments}())=="Arguments",uu=Xo?We:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,a){try{return o[a]}catch{}}(t=Object(e),lg))=="string"?r:sg?We(t):(n=We(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},ug=Xo?{}.toString:function(){return"[object "+uu(this)+"]"};Xo||at(Object.prototype,"toString",ug,{unsafe:!0});var cu=function(){var e=ve(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 fu(e,t){return RegExp(e,t)}var Jo,Zo,du={UNSUPPORTED_Y:K(function(){var e=fu("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),BROKEN_CARET:K(function(){var e=fu("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},on=RegExp.prototype.exec,cg=String.prototype.replace,hu=on,Qo=(Jo=/a/,Zo=/b*/g,on.call(Jo,"a"),on.call(Zo,"a"),Jo.lastIndex!==0||Zo.lastIndex!==0),vu=du.UNSUPPORTED_Y||du.BROKEN_CARET,ea=/()??/.exec("")[1]!==void 0;(Qo||ea||vu)&&(hu=function(e){var t,r,n,o,a=this,s=vu&&a.sticky,i=cu.call(a),l=a.source,c=0,u=e;return s&&((i=i.replace("y","")).indexOf("g")===-1&&(i+="g"),u=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&e[a.lastIndex-1]!==`
|
|
19
|
+
`)&&(l="(?: "+l+")",u=" "+u,c++),r=new RegExp("^(?:"+l+")",i)),ea&&(r=new RegExp("^"+l+"$(?!\\s)",i)),Qo&&(t=a.lastIndex),n=on.call(s?r:a,u),s?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:Qo&&n&&(a.lastIndex=a.global?n.index+n[0].length:t),ea&&n&&n.length>1&&cg.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(n[o]=void 0)}),n});var yr=hu;de({target:"RegExp",proto:!0,forced:/./.exec!==yr},{exec:yr});var pu=RegExp.prototype,gu=pu.toString,fg=K(function(){return gu.call({source:"a",flags:"b"})!="/a/b"}),dg=gu.name!="toString";(fg||dg)&&at(RegExp.prototype,"toString",function(){var e=ve(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(r===void 0&&e instanceof RegExp&&!("flags"in pu)?cu.call(e):r)},{unsafe:!0});var hg=Q("species"),vg=!K(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}),mu="a".replace(/./,"$0")==="$0",yu=Q("replace"),bu=!!/./[yu]&&/./[yu]("a","$0")==="",pg=!K(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"}),Cu=function(e,t,r,n){var o=Q(e),a=!K(function(){var f={};return f[o]=function(){return 7},""[e](f)!=7}),s=a&&!K(function(){var f=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[hg]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return f=!0,null},d[o](""),!f});if(!a||!s||e==="replace"&&(!vg||!mu||bu)||e==="split"&&!pg){var i=/./[o],l=r(o,""[e],function(f,d,h,v,m){return d.exec===yr?a&&!m?{done:!0,value:i.call(d,h,v)}:{done:!0,value:f.call(h,d,v)}:{done:!1}},{REPLACE_KEEPS_$0:mu,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:bu}),c=l[0],u=l[1];at(String.prototype,e,c),at(RegExp.prototype,o,function(f,d){return u.call(f,this,d)})}n&&Re(RegExp.prototype[o],"sham",!0)},gg=Q("match"),wu=function(e){var t;return le(e)&&((t=e[gg])!==void 0?!!t:We(e)=="RegExp")},ta=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},mg=Q("species"),yg=function(e){return function(t,r){var n,o,a=String(nt(t)),s=It(r),i=a.length;return s<0||s>=i?e?"":void 0:(n=a.charCodeAt(s))<55296||n>56319||s+1===i||(o=a.charCodeAt(s+1))<56320||o>57343?e?a.charAt(s):n:e?a.slice(s,s+2):o-56320+(n-55296<<10)+65536}},Su={charAt:yg(!0)},bg=Su.charAt,xu=function(e,t,r){return t+(r?bg(e,t).length:1)},ra=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(We(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return yr.call(e,t)},Cg=[].push,wg=Math.min,Bt=!K(function(){return!RegExp(4294967295,"y")});Cu("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,a){var s=String(nt(this)),i=a===void 0?4294967295:a>>>0;if(i===0)return[];if(o===void 0)return[s];if(!wu(o))return t.call(s,o,i);for(var l,c,u,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,v=new RegExp(o.source,d+"g");(l=yr.call(v,s))&&!((c=v.lastIndex)>h&&(f.push(s.slice(h,l.index)),l.length>1&&l.index<s.length&&Cg.apply(f,l.slice(1)),u=l[0].length,h=c,f.length>=i));)v.lastIndex===l.index&&v.lastIndex++;return h===s.length?!u&&v.test("")||f.push(""):f.push(s.slice(h)),f.length>i?f.slice(0,i):f}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:t.call(this,o,a)}:t,[function(o,a){var s=nt(this),i=o==null?void 0:o[e];return i!==void 0?i.call(o,s,a):n.call(String(s),o,a)},function(o,a){var s=r(n,o,this,a,n!==t);if(s.done)return s.value;var i=ve(o),l=String(this),c=function(w,_){var k,M=ve(w).constructor;return M===void 0||(k=ve(M)[mg])==null?_:ta(k)}(i,RegExp),u=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Bt?"y":"g"),d=new c(Bt?i:"^(?:"+i.source+")",f),h=a===void 0?4294967295:a>>>0;if(h===0)return[];if(l.length===0)return ra(d,l)===null?[l]:[];for(var v=0,m=0,g=[];m<l.length;){d.lastIndex=Bt?m:0;var y,p=ra(d,Bt?l:l.slice(m));if(p===null||(y=wg(_e(d.lastIndex+(Bt?0:m)),l.length))===v)m=xu(l,m,u);else{if(g.push(l.slice(v,m)),g.length===h)return g;for(var C=1;C<=p.length-1;C++)if(g.push(p[C]),g.length===h)return g;m=v=y}}return g.push(l.slice(v)),g}]},!Bt);var na=`
|
|
20
|
+
\v\f\r \u2028\u2029\uFEFF`,an="["+na+"]",Sg=RegExp("^"+an+an+"*"),xg=RegExp(an+an+"*$"),Og=function(e){return function(t){var r=String(nt(t));return 1&e&&(r=r.replace(Sg,"")),2&e&&(r=r.replace(xg,"")),r}},_g={trim:Og(3)},kg=_g.trim;de({target:"String",proto:!0,forced:function(e){return K(function(){return!!na[e]()||"
"[e]()!="
"||na[e].name!==e})}("trim")},{trim:function(){return kg(this)}});var Eg=Yo("slice"),Ag=Mt("slice",{ACCESSORS:!0,0:0,1:2}),Tg=Q("species"),Rg=[].slice,jg=Math.max;de({target:"Array",proto:!0,forced:!Eg||!Ag},{slice:function(e,t){var r,n,o,a=Pt(this),s=_e(a.length),i=Zr(e,s),l=Zr(t===void 0?s:t,s);if(qt(a)&&(typeof(r=a.constructor)!="function"||r!==Array&&!qt(r.prototype)?le(r)&&(r=r[Tg])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return Rg.call(a,i,l);for(n=new(r===void 0?Array:r)(jg(l-i,0)),o=0;i<l;i++,o++)i in a&&Nt(n,o,a[i]);return n.length=o,n}});var oa=Object.keys||function(e){return eu(e,Qr)},Pg=K(function(){oa(1)});de({target:"Object",stat:!0,forced:Pg},{keys:function(e){return oa(Ke(e))}});var aa,$g=function(e){if(wu(e))throw TypeError("The method doesn't accept regular expressions");return e},Ig=Q("match"),Mg=Do.f,Ou="".startsWith,Fg=Math.min,_u=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Ig]=!1,"/./"[e](t)}catch{}}return!1}("startsWith"),qg=!(_u||(aa=Mg(String.prototype,"startsWith"),!aa||aa.writable));function ku(e){return(ku=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)}de({target:"String",proto:!0,forced:!qg&&!_u},{startsWith:function(e){var t=String(nt(this));$g(e);var r=_e(Fg(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Ou?Ou.call(t,n,r):t.slice(r,r+n.length)===n}});var Dt=function(e){return typeof e=="string"},Lt=function(e){return e!==null&&ku(e)==="object"},br=function(){function e(){bt(this,e)}return Ct(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(s){var i;(i=r.drag)===null||i===void 0||i.call(r,s)},a=function s(i){var l;e.removeEventListener(document,"mousemove",o),e.removeEventListener(document,"mouseup",s),document.onselectstart=null,document.ondragstart=null,n=!1,(l=r.end)===null||l===void 0||l.call(r,i)};e.addEventListener(t,"mousedown",function(s){var i;n||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",o),e.addEventListener(document,"mouseup",a),n=!0,(i=r.start)===null||i===void 0||i.call(r,s))})}},{key:"getBoundingClientRect",value:function(t){return t&&Lt(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,r){return!!(t&&Lt(t)&&Dt(r)&&t.nodeType===1)&&t.classList.contains(r.trim())}},{key:"addClass",value:function(t,r){if(t&&Lt(t)&&Dt(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&&Lt(t)&&Dt(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&&Lt(t)&&Dt(r)&&t.nodeType===1&&t.classList.toggle(r,n)}},{key:"replaceClass",value:function(t,r,n){t&&Lt(t)&&Dt(r)&&Dt(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,a=n.top+n.height/2,s=Math.abs(o-r.clientX),i=Math.abs(a-r.clientY),l=i/Math.sqrt(Math.pow(s,2)+Math.pow(i,2)),c=Math.acos(l),u=Math.floor(180/(Math.PI/c));return r.clientX>o&&r.clientY>a&&(u=180-u),r.clientX==o&&r.clientY>a&&(u=180),r.clientX>o&&r.clientY==a&&(u=90),r.clientX<o&&r.clientY>a&&(u=180+u),r.clientX<o&&r.clientY==a&&(u=270),r.clientX<o&&r.clientY<a&&(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),a=1;a<n;a++)o[a-1]=arguments[a];for(var s=0;s<o.length;s++)o[s]&&r.classList.add(o[s]);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}(),Ng=Math.floor,Bg="".replace,Dg=/\$([$&'`]|\d\d?|<[^>]*>)/g,Lg=/\$([$&'`]|\d\d?)/g,Gg=function(e,t,r,n,o,a){var s=r+e.length,i=n.length,l=Lg;return o!==void 0&&(o=Ke(o),l=Dg),Bg.call(a,l,function(c,u){var f;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(s);case"<":f=o[u.slice(1,-1)];break;default:var d=+u;if(d===0)return c;if(d>i){var h=Ng(d/10);return h===0?c:h<=i?n[h-1]===void 0?u.charAt(1):n[h-1]+u.charAt(1):c}f=n[d-1]}return f===void 0?"":f})},Hg=Math.max,Vg=Math.min;Cu("replace",2,function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=n.REPLACE_KEEPS_$0,s=o?"$":"$0";return[function(i,l){var c=nt(this),u=i==null?void 0:i[e];return u!==void 0?u.call(i,c,l):t.call(String(c),i,l)},function(i,l){if(!o&&a||typeof l=="string"&&l.indexOf(s)===-1){var c=r(t,i,this,l);if(c.done)return c.value}var u=ve(i),f=String(this),d=typeof l=="function";d||(l=String(l));var h=u.global;if(h){var v=u.unicode;u.lastIndex=0}for(var m=[];;){var g=ra(u,f);if(g===null||(m.push(g),!h))break;String(g[0])===""&&(u.lastIndex=xu(f,_e(u.lastIndex),v))}for(var y,p="",C=0,w=0;w<m.length;w++){g=m[w];for(var _=String(g[0]),k=Hg(Vg(It(g.index),f.length),0),M=[],D=1;D<g.length;D++)M.push((y=g[D])===void 0?y:String(y));var N=g.groups;if(d){var R=[_].concat(M,k,f);N!==void 0&&R.push(N);var b=String(l.apply(void 0,R))}else b=Gg(_,f,k,M,N,l);k>=C&&(p+=f.slice(C,k)+b,C=k+_.length)}return p+f.slice(C)}]}),function(){function e(){bt(this,e)}return Ct(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(){bt(this,e)}return Ct(e,null,[{key:"_clone",value:function(){}}]),e}();var Eu=Q("isConcatSpreadable"),Ug=nn>=51||!K(function(){var e=[];return e[Eu]=!1,e.concat()[0]!==e}),Wg=Yo("concat"),zg=function(e){if(!le(e))return!1;var t=e[Eu];return t!==void 0?!!t:qt(e)};de({target:"Array",proto:!0,forced:!Ug||!Wg},{concat:function(e){var t,r,n,o,a,s=Ke(this),i=rn(s,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(zg(a=t===-1?s:arguments[t])){if(l+(o=_e(a.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,l++)r in a&&Nt(i,l,a[r])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Nt(i,l++,a)}return i.length=l,i}});var ia,Cr=function(e,t,r){if(ta(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,a){return e.call(t,n,o,a)}}return function(){return e.apply(t,arguments)}},Au=[].push,Tu=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,a=e==6,s=e==7,i=e==5||a;return function(l,c,u,f){for(var d,h,v=Ke(l),m=zr(v),g=Cr(c,u,3),y=_e(m.length),p=0,C=f||rn,w=t?C(l,y):r||s?C(l,0):void 0;y>p;p++)if((i||p in m)&&(h=g(d=m[p],p,v),e))if(t)w[p]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return p;case 2:Au.call(w,d)}else switch(e){case 4:return!1;case 7:Au.call(w,d)}return a?-1:n||o?o:w}},Ru={find:Tu(5),findIndex:Tu(6)},Kg=Te?Object.defineProperties:function(e,t){ve(e);for(var r,n=oa(t),o=n.length,a=0;o>a;)ze.f(e,r=n[a++],t[r]);return e},Yg=Jr("document","documentElement"),ju=Ho("IE_PROTO"),la=function(){},Pu=function(e){return"<script>"+e+"<\/script>"},ln=function(){try{ia=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;ln=ia?function(n){n.write(Pu("")),n.close();var o=n.parentWindow.Object;return n=null,o}(ia):((t=Vs("iframe")).style.display="none",Yg.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Pu("document.F=Object")),e.close(),e.F);for(var r=Qr.length;r--;)delete ln.prototype[Qr[r]];return ln()};Xr[ju]=!0;var sa=Object.create||function(e,t){var r;return e!==null?(la.prototype=ve(e),r=new la,la.prototype=null,r[ju]=e):r=ln(),t===void 0?r:Kg(r,t)},ua=Q("unscopables"),ca=Array.prototype;ca[ua]==null&&ze.f(ca,ua,{configurable:!0,value:sa(null)});var Gt=function(e){ca[ua][e]=!0},Xg=Ru.find,$u=!0,Jg=Mt("find");"find"in[]&&Array(1).find(function(){$u=!1}),de({target:"Array",proto:!0,forced:$u||!Jg},{find:function(e){return Xg(this,e,arguments.length>1?arguments[1]:void 0)}}),Gt("find");var Zg=Ru.findIndex,Iu=!0,Qg=Mt("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){Iu=!1}),de({target:"Array",proto:!0,forced:Iu||!Qg},{findIndex:function(e){return Zg(this,e,arguments.length>1?arguments[1]:void 0)}}),Gt("findIndex");var Mu=function(e,t,r,n,o,a,s,i){for(var l,c=o,u=0,f=!!s&&Cr(s,i,3);u<n;){if(u in r){if(l=f?f(r[u],u,t):r[u],a>0&&qt(l))c=Mu(e,t,l,_e(l.length),c,a-1)-1;else{if(c>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[c]=l}c++}u++}return c},em=Mu;de({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Ke(this),r=_e(t.length),n=rn(t,0);return n.length=em(n,t,t,r,0,e===void 0?1:It(e)),n}});var fa=function(e){var t=e.return;if(t!==void 0)return ve(t.call(e)).value},tm=function(e,t,r,n){try{return n?t(ve(r)[0],r[1]):t(r)}catch(o){throw fa(e),o}},Ht={},rm=Q("iterator"),nm=Array.prototype,Fu=function(e){return e!==void 0&&(Ht.Array===e||nm[rm]===e)},om=Q("iterator"),qu=function(e){if(e!=null)return e[om]||e["@@iterator"]||Ht[uu(e)]},Nu=Q("iterator"),Bu=!1;try{var am=0,Du={next:function(){return{done:!!am++}},return:function(){Bu=!0}};Du[Nu]=function(){return this},Array.from(Du,function(){throw 2})}catch{}var Lu=function(e,t){if(!Bu)return!1;var r=!1;try{var n={};n[Nu]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},im=!Lu(function(e){Array.from(e)});de({target:"Array",stat:!0,forced:im},{from:function(e){var t,r,n,o,a,s,i=Ke(e),l=typeof this=="function"?this:Array,c=arguments.length,u=c>1?arguments[1]:void 0,f=u!==void 0,d=qu(i),h=0;if(f&&(u=Cr(u,c>2?arguments[2]:void 0,2)),d==null||l==Array&&Fu(d))for(r=new l(t=_e(i.length));t>h;h++)s=f?u(i[h],h):i[h],Nt(r,h,s);else for(a=(o=d.call(i)).next,r=new l;!(n=a.call(o)).done;h++)s=f?tm(o,u,[n.value,h],!0):n.value,Nt(r,h,s);return r.length=h,r}});var lm=function(e){return function(t,r,n,o){ta(r);var a=Ke(t),s=zr(a),i=_e(a.length),l=e?i-1:0,c=e?-1:1;if(n<2)for(;;){if(l in s){o=s[l],l+=c;break}if(l+=c,e?l<0:i<=l)throw TypeError("Reduce of empty array with no initial value")}for(;e?l>=0:i>l;l+=c)l in s&&(o=r(o,s[l],l,a));return o}},sm={left:lm(!1)},um=We(ae.process)=="process",cm=sm.left,fm=Wo("reduce"),dm=Mt("reduce",{1:0});de({target:"Array",proto:!0,forced:!fm||!dm||!um&&nn>79&&nn<83},{reduce:function(e){return cm(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),Gt("flat");var wt,Gu,Hu,hm=!K(function(){return Object.isExtensible(Object.preventExtensions({}))}),Vu=qo(function(e){var t=ze.f,r=Go("meta"),n=0,o=Object.isExtensible||function(){return!0},a=function(i){t(i,r,{value:{objectID:"O"+ ++n,weakData:{}}})},s=e.exports={REQUIRED:!1,fastKey:function(i,l){if(!le(i))return typeof i=="symbol"?i:(typeof i=="string"?"S":"P")+i;if(!oe(i,r)){if(!o(i))return"F";if(!l)return"E";a(i)}return i[r].objectID},getWeakData:function(i,l){if(!oe(i,r)){if(!o(i))return!0;if(!l)return!1;a(i)}return i[r].weakData},onFreeze:function(i){return hm&&s.REQUIRED&&o(i)&&!oe(i,r)&&a(i),i}};Xr[r]=!0}),wr=function(e,t){this.stopped=e,this.result=t},Uu=function(e,t,r){var n,o,a,s,i,l,c,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),v=Cr(t,u,1+f+h),m=function(y){return n&&fa(n),new wr(!0,y)},g=function(y){return f?(ve(y),h?v(y[0],y[1],m):v(y[0],y[1])):h?v(y,m):v(y)};if(d)n=e;else{if(typeof(o=qu(e))!="function")throw TypeError("Target is not iterable");if(Fu(o)){for(a=0,s=_e(e.length);s>a;a++)if((i=g(e[a]))&&i instanceof wr)return i;return new wr(!1)}n=o.call(e)}for(l=n.next;!(c=l.call(n)).done;){try{i=g(c.value)}catch(y){throw fa(n),y}if(typeof i=="object"&&i&&i instanceof wr)return i}return new wr(!1)},Wu=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},vm=ze.f,zu=Q("toStringTag"),da=function(e,t,r){e&&!oe(e=r?e:e.prototype,zu)&&vm(e,zu,{configurable:!0,value:t})},sn=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 ve(n),function(a){if(!le(a)&&a!==null)throw TypeError("Can't set "+String(a)+" as a prototype")}(o),t?e.call(n,o):n.__proto__=o,n}}():void 0),Ku=function(e,t,r){for(var n in t)at(e,n,t[n],r);return e},pm=!K(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Yu=Ho("IE_PROTO"),gm=Object.prototype,un=pm?Object.getPrototypeOf:function(e){return e=Ke(e),oe(e,Yu)?e[Yu]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?gm:null},ha=Q("iterator"),Xu=!1;[].keys&&("next"in(Hu=[].keys())?(Gu=un(un(Hu)))!==Object.prototype&&(wt=Gu):Xu=!0),(wt==null||K(function(){var e={};return wt[ha].call(e)!==e}))&&(wt={}),oe(wt,ha)||Re(wt,ha,function(){return this});var va={IteratorPrototype:wt,BUGGY_SAFARI_ITERATORS:Xu},mm=va.IteratorPrototype,ym=function(){return this},pa=va.IteratorPrototype,cn=va.BUGGY_SAFARI_ITERATORS,Sr=Q("iterator"),bm=function(){return this},ga=function(e,t,r,n,o,a,s){(function(y,p,C){var w=p+" Iterator";y.prototype=sa(mm,{next:Wr(1,C)}),da(y,w,!1),Ht[w]=ym})(r,t,n);var i,l,c,u=function(y){if(y===o&&m)return m;if(!cn&&y in h)return h[y];switch(y){case"keys":case"values":case"entries":return function(){return new r(this,y)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,h=e.prototype,v=h[Sr]||h["@@iterator"]||o&&h[o],m=!cn&&v||u(o),g=t=="Array"&&h.entries||v;if(g&&(i=un(g.call(new e)),pa!==Object.prototype&&i.next&&(un(i)!==pa&&(sn?sn(i,pa):typeof i[Sr]!="function"&&Re(i,Sr,bm)),da(i,f,!0))),o=="values"&&v&&v.name!=="values"&&(d=!0,m=function(){return v.call(this)}),h[Sr]!==m&&Re(h,Sr,m),Ht[t]=m,o)if(l={values:u("values"),keys:a?m:u("keys"),entries:u("entries")},s)for(c in l)(cn||d||!(c in h))&&at(h,c,l[c]);else de({target:t,proto:!0,forced:cn||d},l);return l},Ju=Q("species"),Cm=ze.f,Zu=Vu.fastKey,Qu=ot.set,ma=ot.getterFor;(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=n?"set":"add",s=ae[e],i=s&&s.prototype,l=s,c={},u=function(g){var y=i[g];at(i,g,g=="add"?function(p){return y.call(this,p===0?0:p),this}:g=="delete"?function(p){return!(o&&!le(p))&&y.call(this,p===0?0:p)}:g=="get"?function(p){return o&&!le(p)?void 0:y.call(this,p===0?0:p)}:g=="has"?function(p){return!(o&&!le(p))&&y.call(this,p===0?0:p)}:function(p,C){return y.call(this,p===0?0:p,C),this})};if(Uo(e,typeof s!="function"||!(o||i.forEach&&!K(function(){new s().entries().next()}))))l=r.getConstructor(t,e,n,a),Vu.REQUIRED=!0;else if(Uo(e,!0)){var f=new l,d=f[a](o?{}:-0,1)!=f,h=K(function(){f.has(1)}),v=Lu(function(g){new s(g)}),m=!o&&K(function(){for(var g=new s,y=5;y--;)g[a](y,y);return!g.has(-0)});v||((l=t(function(g,y){Wu(g,l,e);var p=function(C,w,_){var k,M;return sn&&typeof(k=w.constructor)=="function"&&k!==_&&le(M=k.prototype)&&M!==_.prototype&&sn(C,M),C}(new s,g,l);return y!=null&&Uu(y,p[a],{that:p,AS_ENTRIES:n}),p})).prototype=i,i.constructor=l),(h||m)&&(u("delete"),u("has"),n&&u("get")),(m||d)&&u(a),o&&i.clear&&delete i.clear}c[e]=l,de({global:!0,forced:l!=s},c),da(l,e),o||r.setStrong(l,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(l,c){Wu(l,o,t),Qu(l,{type:t,index:sa(null),first:void 0,last:void 0,size:0}),Te||(l.size=0),c!=null&&Uu(c,l[n],{that:l,AS_ENTRIES:r})}),a=ma(t),s=function(l,c,u){var f,d,h=a(l),v=i(l,c);return v?v.value=u:(h.last=v={index:d=Zu(c,!0),key:c,value:u,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=v),f&&(f.next=v),Te?h.size++:l.size++,d!=="F"&&(h.index[d]=v)),l},i=function(l,c){var u,f=a(l),d=Zu(c);if(d!=="F")return f.index[d];for(u=f.first;u;u=u.next)if(u.key==c)return u};return Ku(o.prototype,{clear:function(){for(var l=a(this),c=l.index,u=l.first;u;)u.removed=!0,u.previous&&(u.previous=u.previous.next=void 0),delete c[u.index],u=u.next;l.first=l.last=void 0,Te?l.size=0:this.size=0},delete:function(l){var c=this,u=a(c),f=i(c,l);if(f){var d=f.next,h=f.previous;delete u.index[f.index],f.removed=!0,h&&(h.next=d),d&&(d.previous=h),u.first==f&&(u.first=d),u.last==f&&(u.last=h),Te?u.size--:c.size--}return!!f},forEach:function(l){for(var c,u=a(this),f=Cr(l,arguments.length>1?arguments[1]:void 0,3);c=c?c.next:u.first;)for(f(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!i(this,l)}}),Ku(o.prototype,r?{get:function(l){var c=i(this,l);return c&&c.value},set:function(l,c){return s(this,l===0?0:l,c)}}:{add:function(l){return s(this,l=l===0?0:l,l)}}),Te&&Cm(o.prototype,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=ma(t),a=ma(n);ga(e,t,function(s,i){Qu(this,{type:n,target:s,state:o(s),kind:i,last:void 0})},function(){for(var s=a(this),i=s.kind,l=s.last;l&&l.removed;)l=l.previous;return s.target&&(s.last=l=l?l.next:s.state.first)?i=="keys"?{value:l.key,done:!1}:i=="values"?{value:l.value,done:!1}:{value:[l.key,l.value],done:!1}:(s.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),function(s){var i=Jr(s),l=ze.f;Te&&i&&!i[Ju]&&l(i,Ju,{configurable:!0,get:function(){return this}})}(t)}});var wm=Su.charAt,Sm=ot.set,xm=ot.getterFor("String Iterator");ga(String,"String",function(e){Sm(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=xm(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=wm(r,n),t.index+=e.length,{value:e,done:!1})});var ec={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},Om=ot.set,_m=ot.getterFor("Array Iterator"),xr=ga(Array,"Array",function(e,t){Om(this,{type:"Array Iterator",target:Pt(e),index:0,kind:t})},function(){var e=_m(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");Ht.Arguments=Ht.Array,Gt("keys"),Gt("values"),Gt("entries");var ya=Q("iterator"),tc=Q("toStringTag"),ba=xr.values;for(var Ca in ec){var rc=ae[Ca],Ye=rc&&rc.prototype;if(Ye){if(Ye[ya]!==ba)try{Re(Ye,ya,ba)}catch{Ye[ya]=ba}if(Ye[tc]||Re(Ye,tc,Ca),ec[Ca]){for(var Vt in xr)if(Ye[Vt]!==xr[Vt])try{Re(Ye,Vt,xr[Vt])}catch{Ye[Vt]=xr[Vt]}}}}(function(){function e(){bt(this,e)}return Ct(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(){bt(this,e)}return Ct(e,null,[{key:"today",value:function(){return new Date}}]),e}(),function(){function e(){bt(this,e)}return Ct(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 km=Object.defineProperty,Em=(e,t,r)=>t in e?km(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,he=(e,t,r)=>(Em(e,typeof t!="symbol"?t+"":t,r),r);const te=e=>Math.round(e*100)/100;class ee{constructor(t){he(this,"instance"),he(this,"alphaValue",0),he(this,"redValue",0),he(this,"greenValue",0),he(this,"blueValue",0),he(this,"hueValue",0),he(this,"saturationValue",0),he(this,"brightnessValue",0),he(this,"hslSaturationValue",0),he(this,"lightnessValue",0),he(this,"initAlpha",()=>{const r=this.instance.getAlpha();this.alphaValue=Math.min(1,r)*100}),he(this,"initLightness",()=>{const{s:r,l:n}=this.instance.toHsl();this.hslSaturationValue=te(r),this.lightnessValue=te(n)}),he(this,"initRgb",()=>{const{r,g:n,b:o}=this.instance.toRgb();this.redValue=te(r),this.greenValue=te(n),this.blueValue=te(o)}),he(this,"initHsb",()=>{const{h:r,s:n,v:o}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil(r)),this.saturationValue=te(n),this.brightnessValue=te(o)}),he(this,"toHexString",()=>this.instance.toHexString()),he(this,"toRgbString",()=>this.instance.toRgbString()),this.instance=x(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=x(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=x({h:te(t),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=te(t)}get hue(){return this.hueValue}set saturation(t){this.instance=x({h:this.hue,s:te(t),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=te(t)}get saturation(){return this.saturationValue}set brightness(t){this.instance=x({h:this.hue,s:this.saturation,v:te(t),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=te(t)}get brightness(){return this.brightnessValue}set lightness(t){this.instance=x({h:this.hue,s:this.hslSaturationValue,l:te(t),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=te(t)}get lightness(){return this.lightnessValue}set red(t){const r=this.instance.toRgb();this.instance=x({...r,r:te(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.redValue=te(t)}get red(){return this.redValue}set green(t){const r=this.instance.toRgb();this.instance=x({...r,g:te(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.greenValue=te(t)}get green(){return this.greenValue}set blue(t){const r=this.instance.toRgb();this.instance=x({...r,b:te(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.blueValue=te(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 nc(e,t,r,n){return`rgba(${[e,t,r,n/100].join(",")})`}const wa=(e,t,r)=>t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e,Sa="color-history",xa=8,je=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Am=$({name:"Alpha",props:{color:I.instanceOf(ee),size:I.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=q(null),n=q(null);let o=e.color||new ee;const a=Ce({red:o.red,green:o.green,blue:o.blue,alpha:o.alpha});pe(()=>e.color,f=>{f&&(o=f,Xt(a,{red:f.red,green:f.green,blue:f.blue,alpha:f.alpha}))},{deep:!0});const s=G(()=>{const f=nc(a.red,a.green,a.blue,0),d=nc(a.red,a.green,a.blue,100);return{background:`linear-gradient(to right, ${f} , ${d})`}}),i=()=>{if(r.value&&n.value){const f=a.alpha/100,d=r.value.getBoundingClientRect(),h=n.value.offsetWidth;return Math.round(f*(d.width-h)+h/2)}return 0},l=G(()=>({left:i()+"px",top:0})),c=f=>{f.target!==r.value&&u(f)},u=f=>{if(f.stopPropagation(),r.value&&n.value){const d=r.value.getBoundingClientRect(),h=n.value.offsetWidth;let v=f.clientX-d.left;v=Math.max(h/2,v),v=Math.min(v,d.width-h/2);const m=Math.round((v-h/2)/(d.width-h)*100);o.alpha=m,a.alpha=m,t("change",m)}};return ct(()=>{const f={drag:d=>{u(d)},end:d=>{u(d)}};r.value&&n.value&&br.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:l,getBackgroundStyle:s,onClickSider:c}}}),Tm=e=>(lt("data-v-18925ba6"),e=e(),st(),e),Rm=Tm(()=>A("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),jm=[Rm];function Pm(e,t,r,n,o,a){return P(),H("div",{class:se(["vc-alpha-slider","transparent",{"small-slider":e.size==="small"}])},[A("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:ie(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[A("div",{class:se(["vc-alpha-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:ie(e.getCursorStyle)},jm,6)],4)],2)}const Oa=je(Am,[["render",Pm],["__scopeId","data-v-18925ba6"]]),$m=[["#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"]],Im=$({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:$m,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:x(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),Mm={class:"vc-compact"},Fm=["onClick"];function qm(e,t,r,n,o,a){return P(),H("div",Mm,[(P(!0),H(Ze,null,Ot(e.palettes,(s,i)=>(P(),H("div",{key:i,class:"vc-compact__row"},[(P(!0),H(Ze,null,Ot(s,(l,c)=>(P(),H("div",{key:c,class:"vc-compact__color-cube--wrap",onClick:u=>e.onColorChange(l)},[A("div",{class:se(["vc-compact__color_cube",{advance:l==="advance",transparent:l==="transparent"}]),style:ie(e.computedBgStyle(l))},null,6)],8,Fm))),128))]))),128))])}const oc=je(Im,[["render",qm],["__scopeId","data-v-b969fd48"]]),Nm=$({name:"Board",props:{color:I.instanceOf(ee),round:I.bool.def(!1),hide:I.bool.def(!0)},emits:["change"],setup(e,{emit:t}){var r,n,o;const a=_r(),s={h:((r=e.color)==null?void 0:r.hue)||0,s:1,v:1},i=new ee(s).toHexString(),l=Ce({hueColor:i,saturation:((n=e.color)==null?void 0:n.saturation)||0,brightness:((o=e.color)==null?void 0:o.brightness)||0}),c=q(0),u=q(0),f=q(),d=G(()=>({top:c.value+"px",left:u.value+"px"})),h=()=>{if(a){const C=a.vnode.el;u.value=l.saturation*(C==null?void 0:C.clientWidth),c.value=(1-l.brightness)*(C==null?void 0:C.clientHeight)}};let v=!1;const m=C=>{v=!0,p(C)},g=C=>{v&&p(C)},y=()=>{v=!1},p=C=>{if(a){const w=a.vnode.el,_=w==null?void 0:w.getBoundingClientRect();let k=C.clientX-_.left,M=C.clientY-_.top;k=wa(k,0,_.width),M=wa(M,0,_.height);const D=k/_.width,N=wa(-(M/_.height)+1,0,1);u.value=k,c.value=M,l.saturation=D,l.brightness=N,t("change",D,N)}};return ct(()=>{a&&a.vnode.el&&f.value&&zt(()=>{h()})}),fe(()=>e.color,C=>{Xt(l,{hueColor:new ee({h:C.hue,s:1,v:1}).toHexString(),saturation:C.saturation,brightness:C.brightness}),h()},{deep:!0}),{state:l,cursorElement:f,getCursorStyle:d,onClickBoard:m,onDrag:g,onDragEnd:y}}}),_a=e=>(lt("data-v-7f0cdcdf"),e=e(),st(),e),Bm=_a(()=>A("div",{class:"vc-saturation__white"},null,-1)),Dm=_a(()=>A("div",{class:"vc-saturation__black"},null,-1)),Lm=_a(()=>A("div",null,null,-1)),Gm=[Lm];function Hm(e,t,r,n,o,a){return P(),H("div",{ref:"boardElement",class:se(["vc-saturation",{"vc-saturation__chrome":e.round,"vc-saturation__hidden":e.hide}]),style:ie({backgroundColor:e.state.hueColor}),onMousedown:t[0]||(t[0]=(...s)=>e.onClickBoard&&e.onClickBoard(...s)),onMousemove:t[1]||(t[1]=(...s)=>e.onDrag&&e.onDrag(...s)),onMouseup:t[2]||(t[2]=(...s)=>e.onDragEnd&&e.onDragEnd(...s))},[Bm,Dm,A("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:ie(e.getCursorStyle)},Gm,4)],38)}const ka=je(Nm,[["render",Hm],["__scopeId","data-v-7f0cdcdf"]]),Vm=$({name:"Hue",props:{color:I.instanceOf(ee),size:I.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=q(null),n=q(null);let o=e.color||new ee;const a=Ce({hue:o.hue||0});pe(()=>e.color,u=>{u&&(o=u,Xt(a,{hue:o.hue}))},{deep:!0});const s=()=>{if(r.value&&n.value){const u=r.value.getBoundingClientRect(),f=n.value.offsetWidth;return a.hue===360?u.width-f/2:a.hue%360*(u.width-f)/360+f/2}return 0},i=G(()=>({left:s()+"px",top:0})),l=u=>{u.target!==r.value&&c(u)},c=u=>{if(u.stopPropagation(),r.value&&n.value){const f=r.value.getBoundingClientRect(),d=n.value.offsetWidth;let h=u.clientX-f.left;h=Math.min(h,f.width-d/2),h=Math.max(d/2,h);const v=Math.round((h-d/2)/(f.width-d)*360);o.hue=v,a.hue=v,t("change",v)}};return ct(()=>{const u={drag:f=>{c(f)},end:f=>{c(f)}};r.value&&n.value&&br.triggerDragEvent(r.value,u)}),{barElement:r,cursorElement:n,getCursorStyle:i,onClickSider:l}}}),Um=e=>(lt("data-v-e1a08576"),e=e(),st(),e),Wm=Um(()=>A("div",{class:"vc-hue-slider__bar-handle"},null,-1)),zm=[Wm];function Km(e,t,r,n,o,a){return P(),H("div",{class:se(["vc-hue-slider",{"small-slider":e.size==="small"}])},[A("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[A("div",{class:se(["vc-hue-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:ie(e.getCursorStyle)},zm,6)],512)],2)}const Ea=je(Vm,[["render",Km],["__scopeId","data-v-e1a08576"]]),Ym=$({name:"Lightness",props:{color:I.instanceOf(ee),size:I.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=q(null),n=q(null);let o=e.color||new ee;const[a,s,i]=o.HSL,l=Ce({hue:a,saturation:s,lightness:i});pe(()=>e.color,v=>{if(v){o=v;const[m,g,y]=o.HSL;Xt(l,{hue:m,saturation:g,lightness:y})}},{deep:!0});const c=G(()=>{const v=x({h:l.hue,s:l.saturation,l:.8}).toPercentageRgbString(),m=x({h:l.hue,s:l.saturation,l:.6}).toPercentageRgbString(),g=x({h:l.hue,s:l.saturation,l:.4}).toPercentageRgbString(),y=x({h:l.hue,s:l.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${v}, ${m}, ${g}, ${y}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${v}, ${m}, ${g}, ${y}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${v}, ${m}, ${g}, ${y}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${v}, ${m}, ${g}, ${y}, rgb(0, 0, 0))`]}}),u=()=>{if(r.value&&n.value){const v=l.lightness,m=r.value.getBoundingClientRect(),g=n.value.offsetWidth;return(1-v)*(m.width-g)+g/2}return 0},f=G(()=>({left:u()+"px",top:0})),d=v=>{v.target!==r.value&&h(v)},h=v=>{if(v.stopPropagation(),r.value&&n.value){const m=r.value.getBoundingClientRect(),g=n.value.offsetWidth;let y=v.clientX-m.left;y=Math.max(g/2,y),y=Math.min(y,m.width-g/2);const p=1-(y-g/2)/(m.width-g);o.lightness=p,t("change",p)}};return ct(()=>{const v={drag:m=>{h(m)},end:m=>{h(m)}};r.value&&n.value&&br.triggerDragEvent(r.value,v)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:c,onClickSider:d}}}),Xm=e=>(lt("data-v-94a50a9e"),e=e(),st(),e),Jm=Xm(()=>A("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),Zm=[Jm];function Qm(e,t,r,n,o,a){return P(),H("div",{class:se(["vc-lightness-slider",{"small-slider":e.size==="small"}])},[A("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:ie(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[A("div",{class:se(["vc-lightness-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:ie(e.getCursorStyle)},Zm,6)],4)],2)}const ac=je(Ym,[["render",Qm],["__scopeId","data-v-94a50a9e"]]),ey=$({name:"History",props:{colors:I.arrayOf(String).def(()=>[]),round:I.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),ty={key:0,class:"vc-colorPicker__record"},ry={class:"color-list"},ny=["onClick"];function oy(e,t,r,n,o,a){return e.colors&&e.colors.length>0?(P(),H("div",ty,[A("div",ry,[(P(!0),H(Ze,null,Ot(e.colors,(s,i)=>(P(),H("div",{key:i,class:se(["color-item","transparent",{"color-item__round":e.round}]),onClick:l=>e.onColorSelect(s)},[A("div",{class:"color-item__display",style:ie({backgroundColor:s})},null,4)],10,ny))),128))])])):z("",!0)}const Aa=je(ey,[["render",oy],["__scopeId","data-v-0f657238"]]),ay=$({name:"Display",props:{color:I.instanceOf(ee),disableAlpha:I.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,o,a;const{copy:s,copied:i,isSupported:l}=$d(),c=q("hex"),u=Ce({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:(a=e.color)==null?void 0:a.toRgbString()}),f=G(()=>({background:u.previewBgColor})),d=()=>{c.value=c.value==="rgba"?"hex":"rgba"},h=He(y=>{if(!y.target.value)return;let p=parseInt(y.target.value.replace("%",""));p>100&&(y.target.value="100",p=100),p<0&&(y.target.value="0",p=0),isNaN(p)&&(y.target.value="100",p=100),!isNaN(p)&&u.color&&(u.color.alpha=p),t("change",u.color)},300),v=He((y,p)=>{if(u.color){if(c.value==="hex"){const C=y.target.value.replace("#","");x(C).isValid()?[3,4].includes(C.length)&&(u.color.hex=C):u.color.hex="000000",t("change",u.color)}else if(c.value==="rgba"&&p===3&&y.target.value.toString()==="0."&&u.rgba){u.rgba[p]=y.target.value;const[C,w,_,k]=u.rgba;u.color.hex=x({r:C,g:w,b:_}).toHex(),u.color.alpha=Math.round(k*100),t("change",u.color)}}},100),m=He((y,p)=>{if(y.target.value){if(c.value==="hex"){const C=y.target.value.replace("#","");x(C).isValid()&&u.color&&[6,8].includes(C.length)&&(u.color.hex=C)}else if(p!==void 0&&u.rgba&&u.color){if(y.target.value<0&&(y.target.value=0),p===3&&((y.target.value>1||isNaN(y.target.value))&&(y.target.value=1),y.target.value.toString()==="0."))return;p<3&&y.target.value>255&&(y.target.value=255),u.rgba[p]=y.target.value;const[C,w,_,k]=u.rgba;u.color.hex=x({r:C,g:w,b:_}).toHex(),u.color.alpha=Math.round(k*100)}t("change",u.color)}},300),g=()=>{if(l&&u.color){const y=c.value==="hex"?u.color.toString(u.color.alpha===100?"hex6":"hex8"):u.color.toRgbString();s(y||"")}};return fe(()=>e.color,y=>{y&&(u.color=y,u.alpha=Math.round(u.color.alpha),u.hex=u.color.hex,u.rgba=u.color.RGB)},{deep:!0}),fe(()=>u.color,()=>{u.color&&(u.previewBgColor=u.color.toRgbString())},{deep:!0}),{state:u,getBgColorStyle:f,inputType:c,copied:i,onInputTypeChange:d,onAlphaBlur:h,onInputChange:m,onBlurChange:v,onCopyColorStr:g}}}),iy={class:"vc-display"},ly={class:"vc-current-color vc-transparent"},sy={key:0,class:"copy-text"},uy={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},cy={class:"vc-color-input"},fy={key:0,class:"vc-alpha-input"},dy=["value"],hy={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},vy=["value","onInput","onBlur"];function py(e,t,r,n,o,a){return P(),H("div",iy,[A("div",ly,[A("div",{class:"color-cube",style:ie(e.getBgColorStyle),onClick:t[0]||(t[0]=(...s)=>e.onCopyColorStr&&e.onCopyColorStr(...s))},[e.copied?(P(),H("span",sy,"Copied!")):z("",!0)],4)]),e.inputType==="hex"?(P(),H("div",uy,[A("div",cy,[Kt(A("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>e.state.hex=s),maxlength:"8",onInput:t[2]||(t[2]=(...s)=>e.onInputChange&&e.onInputChange(...s)),onBlur:t[3]||(t[3]=(...s)=>e.onBlurChange&&e.onBlurChange(...s))},null,544),[[Ha,e.state.hex]])]),e.disableAlpha?z("",!0):(P(),H("div",fy,[A("input",{class:"vc-alpha-input__inner",value:e.state.alpha,onInput:t[4]||(t[4]=(...s)=>e.onAlphaBlur&&e.onAlphaBlur(...s))},null,40,dy),gn("% ")]))])):e.state.rgba?(P(),H("div",hy,[(P(!0),H(Ze,null,Ot(e.state.rgba,(s,i)=>(P(),H("div",{class:"vc-color-input",key:i},[A("input",{value:s,onInput:l=>e.onInputChange(l,i),onBlur:l=>e.onBlurChange(l,i)},null,40,vy)]))),128))])):z("",!0),A("div",{class:"vc-input-toggle",onClick:t[5]||(t[5]=(...s)=>e.onInputTypeChange&&e.onInputTypeChange(...s))},Yt(e.inputType),1)])}const Ta=je(ay,[["render",py],["__scopeId","data-v-7334ac20"]]),gy=$({name:"FkColorPicker",components:{Display:Ta,Alpha:Oa,Palette:oc,Board:ka,Hue:Ea,Lightness:ac,History:Aa},props:{color:I.instanceOf(ee),disableHistory:I.bool.def(!1),roundHistory:I.bool.def(!1),disableAlpha:I.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(e,{emit:t}){const r=e.color||new ee,n=Ce({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=q(!1),a=G(()=>({background:n.rgb})),s=()=>{o.value=!1,t("advanceChange",!1)},i=jn(Sa,[],{}),l=He(()=>{if(e.disableHistory)return;const m=n.color.toRgbString();if(i.value=i.value.filter(g=>!x.equals(g,m)),!i.value.includes(m)){for(;i.value.length>xa;)i.value.pop();i.value.unshift(m)}},500),c=m=>{m==="advance"?(o.value=!0,t("advanceChange",!0)):(n.color.hex=m,t("advanceChange",!1))},u=m=>{n.color.alpha=m},f=m=>{n.color.hue=m},d=(m,g)=>{n.color.saturation=m,n.color.brightness=g},h=m=>{n.color.lightness=m},v=m=>{const g=m.target.value.replace("#","");x(g).isValid()&&(n.color.hex=g)};return fe(()=>e.color,m=>{m&&(n.color=m)},{deep:!0}),fe(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),l(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,advancePanelShow:o,onBack:s,onCompactChange:c,onAlphaChange:u,onHueChange:f,onBoardChange:d,onLightChange:h,onInputChange:v,previewStyle:a,historyColors:i}}}),my=e=>(lt("data-v-48e3c224"),e=e(),st(),e),yy={class:"vc-fk-colorPicker"},by={class:"vc-fk-colorPicker__inner"},Cy={class:"vc-fk-colorPicker__header"},wy=my(()=>A("div",{class:"back"},null,-1)),Sy=[wy];function xy(e,t,r,n,o,a){const s=T("Palette"),i=T("Board"),l=T("Hue"),c=T("Lightness"),u=T("Alpha"),f=T("Display"),d=T("History");return P(),H("div",yy,[A("div",by,[A("div",Cy,[e.advancePanelShow?(P(),H("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...h)=>e.onBack&&e.onBack(...h))},Sy)):z("",!0)]),e.advancePanelShow?z("",!0):(P(),ne(s,{key:0,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?(P(),ne(i,{key:1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?(P(),ne(l,{key:2,color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?z("",!0):(P(),ne(c,{key:3,color:e.state.color,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?z("",!0):(P(),ne(u,{key:4,color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"])),S(f,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?z("",!0):(P(),ne(d,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const ic=je(gy,[["render",xy],["__scopeId","data-v-48e3c224"]]),Oy=$({name:"ChromeColorPicker",components:{Display:Ta,Alpha:Oa,Board:ka,Hue:Ea,History:Aa},props:{color:I.instanceOf(ee),disableHistory:I.bool.def(!1),roundHistory:I.bool.def(!1),disableAlpha:I.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){const r=e.color||new ee,n=Ce({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=G(()=>({background:n.rgb})),a=jn(Sa,[],{}),s=He(()=>{if(e.disableHistory)return;const d=n.color.toRgbString();if(a.value=a.value.filter(h=>!x.equals(h,d)),!a.value.includes(d)){for(;a.value.length>xa;)a.value.pop();a.value.unshift(d)}},500),i=d=>{n.color.alpha=d},l=d=>{n.color.hue=d},c=d=>{d.hex!==void 0&&(n.color.hex=d.hex),d.alpha!==void 0&&(n.color.alpha=d.alpha)},u=(d,h)=>{n.color.saturation=d,n.color.brightness=h},f=d=>{d!=="advance"&&(n.color.hex=d)};return fe(()=>e.color,d=>{d&&(n.color=d)},{deep:!0}),fe(()=>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,previewStyle:o,historyColors:a,onAlphaChange:i,onHueChange:l,onBoardChange:u,onInputChange:c,onCompactChange:f}}}),_y={class:"vc-chrome-colorPicker"},ky={class:"vc-chrome-colorPicker-body"},Ey={class:"chrome-controls"},Ay={class:"chrome-sliders"};function Ty(e,t,r,n,o,a){const s=T("Board"),i=T("Hue"),l=T("Alpha"),c=T("Display"),u=T("History");return P(),H("div",_y,[S(s,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),A("div",ky,[A("div",Ey,[A("div",Ay,[S(i,{size:"small",color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"]),e.disableAlpha?z("",!0):(P(),ne(l,{key:0,size:"small",color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"]))])]),S(c,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?z("",!0):(P(),ne(u,{key:0,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const lc=je(Oy,[["render",Ty],["__scopeId","data-v-2611d66c"]]),Ra="Vue3ColorPickerProvider",Ry=(e,t)=>{const r=e.getBoundingClientRect(),n=r.left+r.width/2,o=r.top+r.height/2,a=Math.abs(n-t.clientX),s=Math.abs(o-t.clientY),i=Math.sqrt(Math.pow(a,2)+Math.pow(s,2)),l=s/i,c=Math.acos(l);let u=Math.floor(180/(Math.PI/c));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 ja=!1;const jy=(e,t)=>{const r=function(o){var a;(a=t.drag)==null||a.call(t,o)},n=function(o){var a;document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",n,!1),document.onselectstart=null,document.ondragstart=null,ja=!1,(a=t.end)==null||a.call(t,o)};e&&e.addEventListener("mousedown",o=>{var a;ja||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),ja=!0,(a=t.start)==null||a.call(t,o))})},Py={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"}},$y=$({name:"Angle",props:Py,emits:["update:angle","change"],setup(e,{emit:t}){const r=q(null),n=q(0);pe(()=>e.angle,i=>{n.value=i});const o=()=>{let i=Number(n.value);isNaN(i)||(i=i>360||i<0?e.angle:i,n.value=i===360?0:i,t("update:angle",n.value),t("change",n.value))},a=G(()=>({width:e.size+"px",height:e.size+"px",borderWidth:e.borderWidth+"px",borderColor:e.borderColor,transform:`rotate(${n.value}deg)`})),s=i=>{r.value&&(n.value=Ry(r.value,i)%360,o())};return Wt(()=>{const i={drag:l=>{s(l)},end:l=>{s(l)}};r.value&&jy(r.value,i)}),()=>S("div",{class:"bee-angle"},[S("div",{class:"bee-angle__round",ref:r,style:a.value},null)])}}),Iy=$({name:"GradientColorPicker",components:{Angle:$y,Display:Ta,Alpha:Oa,Palette:oc,Board:ka,Hue:Ea,Lightness:ac,History:Aa},props:{startColor:I.instanceOf(ee).isRequired,endColor:I.instanceOf(ee).isRequired,startColorStop:I.number.def(0),endColorStop:I.number.def(100),angle:I.number.def(0),type:I.oneOf(["linear","radial"]).def("linear"),disableHistory:I.bool.def(!1),roundHistory:I.bool.def(!1),disableAlpha:I.bool.def(!1),pickerType:I.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=Ce({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=vn(Ra),o=q(e.pickerType==="chrome"),a=q(),s=q(),i=q();pe(()=>[e.startColor,e.endColor,e.angle],b=>{r.startColor=b[0],r.endColor=b[1],r.angle=b[2]}),pe(()=>e.type,b=>{r.type=b});const l=G({get:()=>r.startActive?r.startColor:r.endColor,set:b=>{if(r.startActive){r.startColor=b;return}r.endColor=b}}),c=G(()=>{if(i.value&&a.value){const b=r.startColorStop/100,E=i.value.getBoundingClientRect(),F=a.value.offsetWidth;return Math.round(b*(E.width-F)+F/2)}return 0}),u=G(()=>{if(i.value&&s.value){const b=r.endColorStop/100,E=i.value.getBoundingClientRect(),F=s.value.offsetWidth;return Math.round(b*(E.width-F)+F/2)}return 0}),f=G(()=>{let b=`background: linear-gradient(${r.angle}deg, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`;return r.type==="radial"&&(b=`background: radial-gradient(circle, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`),b}),d=b=>{var E;if(r.startActive=!0,i.value&&a.value){const F=(E=i.value)==null?void 0:E.getBoundingClientRect();let U=b.clientX-F.left;U=Math.max(a.value.offsetWidth/2,U),U=Math.min(U,F.width-a.value.offsetWidth/2),r.startColorStop=Math.round((U-a.value.offsetWidth/2)/(F.width-a.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},h=b=>{var E;if(r.startActive=!1,i.value&&s.value){const F=(E=i.value)==null?void 0:E.getBoundingClientRect();let U=b.clientX-F.left;U=Math.max(s.value.offsetWidth/2,U),U=Math.min(U,F.width-s.value.offsetWidth/2),r.endColorStop=Math.round((U-s.value.offsetWidth/2)/(F.width-s.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},v=b=>{const E=b.target,F=parseInt(E.value.replace("°",""));isNaN(F)||(r.angle=F%360),t("update:angle",r.angle),t("angleChange",r.angle)},m=b=>{r.angle=b,t("update:angle",r.angle),t("angleChange",r.angle)},g=b=>{b==="advance"?(o.value=!0,t("advanceChange",!0)):(l.value.hex=b,t("advanceChange",!1)),k()},y=b=>{l.value.alpha=b,k()},p=b=>{l.value.hue=b,k()},C=(b,E)=>{l.value.saturation=b,l.value.brightness=E,k()},w=b=>{l.value.lightness=b,k()},_=()=>{k()},k=()=>{r.startActive?(t("update:startColor",r.startColor),t("startColorChange",r.startColor)):(t("update:endColor",r.endColor),t("endColorChange",r.endColor))},M=()=>{o.value=!1,t("advanceChange",!1)},D=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},N=jn(Sa,[],{}),R=He(()=>{if(e.disableHistory)return;const b=l.value.toRgbString();if(N.value=N.value.filter(E=>!x.equals(E,b)),!N.value.includes(b)){for(;N.value.length>xa;)N.value.pop();N.value.unshift(b)}},500);return ct(()=>{s.value&&a.value&&(br.triggerDragEvent(s.value,{drag:b=>{h(b)},end:b=>{h(b)}}),br.triggerDragEvent(a.value,{drag:b=>{d(b)},end:b=>{d(b)}}))}),fe(()=>r.startColor,b=>{r.startColorRgba=b.toRgbString()},{deep:!0}),fe(()=>r.endColor,b=>{r.endColorRgba=b.toRgbString()},{deep:!0}),fe(()=>l.value,()=>{R()},{deep:!0}),{startGradientRef:a,stopGradientRef:s,colorRangeRef:i,state:r,currentColor:l,getStartColorLeft:c,getEndColorLeft:u,gradientBg:f,advancePanelShow:o,onDegreeBlur:v,onCompactChange:g,onAlphaChange:y,onHueChange:p,onBoardChange:C,onLightChange:w,historyColors:N,onBack:M,onDegreeChange:m,onDisplayChange:_,onTypeChange:D,lang:n==null?void 0:n.lang}}}),sc=e=>(lt("data-v-c4d6d6ea"),e=e(),st(),e),My={class:"vc-gradient-picker"},Fy={class:"vc-gradient-picker__header"},qy={class:"vc-gradient__types"},Ny={class:"vc-gradient-wrap__types"},By={class:"vc-picker-degree-input vc-degree-input"},Dy={class:"vc-degree-input__control"},Ly=["value"],Gy={class:"vc-degree-input__panel"},Hy={class:"vc-degree-input__disk"},Vy={class:"vc-gradient-picker__body"},Uy={class:"vc-color-range",ref:"colorRangeRef"},Wy={class:"vc-color-range__container"},zy={class:"vc-gradient__stop__container"},Ky=["title"],Yy=sc(()=>A("span",{class:"vc-gradient__stop--inner"},null,-1)),Xy=[Yy],Jy=["title"],Zy=sc(()=>A("span",{class:"vc-gradient__stop--inner"},null,-1)),Qy=[Zy];function eb(e,t,r,n,o,a){var s,i;const l=T("Angle"),c=T("Board"),u=T("Hue"),f=T("Palette"),d=T("Lightness"),h=T("Alpha"),v=T("Display"),m=T("History");return P(),H("div",My,[A("div",Fy,[A("div",null,[Kt(A("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...g)=>e.onBack&&e.onBack(...g))},null,512),[[Er,e.pickerType==="fk"&&e.advancePanelShow]])]),A("div",qy,[A("div",Ny,[(P(),H(Ze,null,Ot(["linear","radial"],g=>A("div",{class:se(["vc-gradient__type",{active:e.state.type===g}]),key:g,onClick:t[1]||(t[1]=(...y)=>e.onTypeChange&&e.onTypeChange(...y))},Yt(e.lang?e.lang[g]:g),3)),64))]),Kt(A("div",By,[A("div",Dy,[A("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...g)=>e.onDegreeBlur&&e.onDegreeBlur(...g))},null,40,Ly),gn("deg ")]),A("div",Gy,[A("div",Hy,[S(l,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=g=>e.state.angle=g),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])],512),[[Er,e.state.type==="linear"]])])]),A("div",Vy,[A("div",Uy,[A("div",Wy,[A("div",{class:"vc-background",style:ie(e.gradientBg)},null,4),A("div",zy,[A("div",{class:se(["vc-gradient__stop",{"vc-gradient__stop--current":e.state.startActive}]),ref:"startGradientRef",title:(s=e.lang)==null?void 0:s.start,style:ie({left:e.getStartColorLeft+"px",backgroundColor:e.state.startColorRgba})},Xy,14,Ky),A("div",{class:se(["vc-gradient__stop",{"vc-gradient__stop--current":!e.state.startActive}]),ref:"stopGradientRef",title:(i=e.lang)==null?void 0:i.end,style:ie({left:e.getEndColorLeft+"px",backgroundColor:e.state.endColorRgba})},Qy,14,Jy)])])],512)]),e.advancePanelShow?(P(),ne(c,{key:0,color:e.currentColor,onChange:e.onBoardChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?(P(),ne(u,{key:1,color:e.currentColor,onChange:e.onHueChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?z("",!0):(P(),ne(f,{key:2,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?z("",!0):(P(),ne(d,{key:3,color:e.currentColor,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?z("",!0):(P(),ne(h,{key:4,color:e.currentColor,onChange:e.onAlphaChange},null,8,["color","onChange"])),S(v,{color:e.currentColor,"disable-alpha":e.disableAlpha,onChange:e.onDisplayChange},null,8,["color","disable-alpha","onChange"]),e.disableHistory?z("",!0):(P(),ne(m,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const uc=je(Iy,[["render",eb],["__scopeId","data-v-c4d6d6ea"]]),tb=$({name:"WrapContainer",props:{theme:I.oneOf(["white","black"]).def("white"),showTab:I.bool.def(!1),activeKey:I.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const r=Ce({activeKey:e.activeKey}),n=vn(Ra),o=a=>{r.activeKey=a,t("update:activeKey",a),t("change",a)};return fe(()=>e.activeKey,a=>{r.activeKey=a}),{state:r,onActiveKeyChange:o,lang:n==null?void 0:n.lang}}}),rb={class:"vc-colorpicker--container"},nb={key:0,class:"vc-colorpicker--tabs"},ob={class:"vc-colorpicker--tabs__inner"},ab={class:"vc-btn__content"},ib={class:"vc-btn__content"};function lb(e,t,r,n,o,a){var s,i;return P(),H("div",{class:se(["vc-colorpicker",e.theme])},[A("div",rb,[e.showTab?(P(),H("div",nb,[A("div",ob,[A("div",{class:se(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="pure"}]),onClick:t[0]||(t[0]=l=>e.onActiveKeyChange("pure"))},[A("button",null,[A("div",ab,Yt((s=e.lang)==null?void 0:s.pure),1)])],2),A("div",{class:se(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="gradient"}]),onClick:t[1]||(t[1]=l=>e.onActiveKeyChange("gradient"))},[A("button",null,[A("div",ib,Yt((i=e.lang)==null?void 0:i.gradient),1)])],2),A("div",{class:"vc-colorpicker--tabs__bg",style:ie({width:"50%",left:`calc(${e.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):z("",!0),kr(e.$slots,"default",{},void 0,!0)])],2)}const sb=je(tb,[["render",lb],["__scopeId","data-v-0492277d"]]),ub={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},cb={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},fb={En:ub,"ZH-cn":cb},db={isWidget:I.bool.def(!1),pickerType:I.oneOf(["fk","chrome"]).def("fk"),shape:I.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:I.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:I.bool.def(!1),disableHistory:I.bool.def(!1),roundHistory:I.bool.def(!1),useType:I.oneOf(["pure","gradient","both"]).def("pure"),activeKey:I.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:I.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:I.number.def(100),theme:I.oneOf(["white","black"]).def("white"),blurClose:I.bool.def(!1),defaultPopup:I.bool.def(!1)},hb=$({name:"ColorPicker",components:{FkColorPicker:ic,ChromeColorPicker:lc,GradientColorPicker:uc,WrapContainer:sb},inheritAttrs:!1,props:db,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){pn(Ra,{lang:G(()=>fb[e.lang||"ZH-cn"])});const r=!!Ga().extra,n=Ce({pureColor:e.pureColor||"",activeKey:e.useType==="gradient"?"gradient":e.activeKey,isAdvanceMode:!1}),o=new ee("#000"),a=new ee("#000"),s=new ee(n.pureColor),i=Ce({startColor:o,endColor:a,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:e.gradientColor}),l=q(s),c=q(e.defaultPopup),u=q(null),f=q(null);let d=null;const h=G(()=>({background:n.activeKey!=="gradient"?x(n.pureColor).toRgbString():i.gradientColor})),v=G(()=>n.activeKey==="gradient"?uc.name:e.pickerType==="fk"?ic.name:lc.name),m=b=>{n.isAdvanceMode=b},g=G(()=>{const b={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...b,startColor:i.startColor,endColor:i.endColor,angle:i.angle,type:i.type,startColorStop:i.startColorStop,endColorStop:i.endColorStop,onStartColorChange:E=>{i.startColor=E,_()},onEndColorChange:E=>{i.endColor=E,_()},onStartColorStopChange:E=>{i.startColorStop=E,_()},onEndColorStopChange:E=>{i.endColorStop=E,_()},onAngleChange:E=>{i.angle=E,_()},onTypeChange:E=>{i.type=E,_()},onAdvanceChange:m}:{...b,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:l.value,onChange:D,onAdvanceChange:m}}),y=()=>{c.value=!0,d?d.update():M()},p=()=>{c.value=!1},C=He(()=>{!e.isWidget&&e.blurClose&&p()},100);jd(f,()=>{p()});const w=()=>{var b,E,F,U;try{const[L]=il.parse(i.gradientColor);if(L&&L.type.includes("gradient")&&L.colorStops.length>=2){const Y=L.colorStops[0],ue=L.colorStops[1];i.startColorStop=Number((b=Y.length)==null?void 0:b.value)||0,i.endColorStop=Number((E=ue.length)==null?void 0:E.value)||0,L.type==="linear-gradient"&&((F=L.orientation)==null?void 0:F.type)==="angular"&&(i.angle=Number((U=L.orientation)==null?void 0:U.value)||0),i.type=L.type.split("-")[0];const[j,B,W,be]=Y.value,[De,Ut,it,Le]=ue.value;i.startColor=new ee({r:Number(j),g:Number(B),b:Number(W),a:Number(be)}),i.endColor=new ee({r:Number(De),g:Number(Ut),b:Number(it),a:Number(Le)})}}catch(L){console.log(`[Parse Color]: ${L}`)}},_=He(()=>{const b=k();try{i.gradientColor=il.stringify(b),t("update:gradientColor",i.gradientColor),t("gradientColorChange",i.gradientColor)}catch(E){console.log(E)}},e.debounce),k=()=>{const b=[],E=i.startColor.RGB.map(L=>L.toString()),F=i.endColor.RGB.map(L=>L.toString()),U=[{type:"rgba",value:[E[0],E[1],E[2],E[3]],length:{value:i.startColorStop+"",type:"%"}},{type:"rgba",value:[F[0],F[1],F[2],F[3]],length:{value:i.endColorStop+"",type:"%"}}];return i.type==="linear"?b.push({type:"linear-gradient",orientation:{type:"angular",value:i.angle+""},colorStops:U}):i.type==="radial"&&b.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:U}),b},M=()=>{u.value&&f.value&&(d=gv(u.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},D=b=>{l.value=b,n.pureColor=b.toString(e.format),N()},N=He(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),R=b=>{n.activeKey=b,t("update:activeKey",b),t("activeKeyChange",b)};return ct(()=>{w(),d||M()}),fe(()=>e.gradientColor,b=>{b!=i.gradientColor&&(i.gradientColor=b)}),fe(()=>i.gradientColor,()=>{w()}),fe(()=>e.activeKey,b=>{n.activeKey=b}),fe(()=>e.useType,b=>{n.activeKey!=="gradient"&&b==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),fe(()=>e.pureColor,b=>{x.equals(b,n.pureColor)||(n.pureColor=b,l.value=new ee(b))},{deep:!0}),{colorCubeRef:u,pickerRef:f,showPicker:c,colorInstance:l,getBgColorStyle:h,getComponentName:v,getBindArgs:g,state:n,hasExtra:r,onColorChange:D,onShowPicker:y,onActiveKeyChange:R,onAutoClose:C}}}),vb={key:0,class:"vc-color-extra"},pb={key:0,class:"vc-color-extra"};function gb(e,t,r,n,o,a){const s=T("WrapContainer");return P(),H(Ze,null,[e.isWidget?(P(),ne(s,{key:0,"active-key":e.state.activeKey,"onUpdate:activeKey":t[0]||(t[0]=i=>e.state.activeKey=i),"show-tab":e.useType==="both",style:ie({zIndex:e.zIndex}),theme:e.theme,onChange:e.onActiveKeyChange},{default:mn(()=>[(P(),ne(yn(e.getComponentName),re({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(P(),H("div",vb,[kr(e.$slots,"extra",{},void 0,!0)])):z("",!0)]),_:3},8,["active-key","show-tab","style","theme","onChange"])):z("",!0),e.isWidget?z("",!0):(P(),H(Ze,{key:1},[A("div",{class:se(["vc-color-wrap transparent",{round:e.shape==="circle"}]),ref:"colorCubeRef"},[A("div",{class:"current-color",style:ie(e.getBgColorStyle),onClick:t[1]||(t[1]=(...i)=>e.onShowPicker&&e.onShowPicker(...i))},null,4)],2),(P(),ne(Va,{to:e.pickerContainer},[Kt(A("div",{ref:"pickerRef",style:ie({zIndex:e.zIndex}),onMouseleave:t[3]||(t[3]=(...i)=>e.onAutoClose&&e.onAutoClose(...i))},[e.showPicker?(P(),ne(s,{key:0,"show-tab":e.useType==="both"&&!e.state.isAdvanceMode,theme:e.theme,"active-key":e.state.activeKey,"onUpdate:activeKey":t[2]||(t[2]=i=>e.state.activeKey=i),onChange:e.onActiveKeyChange},{default:mn(()=>[(P(),ne(yn(e.getComponentName),re({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(P(),H("div",pb,[kr(e.$slots,"extra",{},void 0,!0)])):z("",!0)]),_:3},8,["show-tab","theme","active-key","onChange"])):z("",!0)],36),[[Er,e.showPicker]])],8,["to"]))],64))],64)}const mb=je(hb,[["render",gb],["__scopeId","data-v-354ca836"]]),yb={install(e){e.use(kf),e.use(Ef),e.use(jf),e.use(If),e.use(qf),e.use(Nf),e.use(Gf),e.use(Uf),e.use(Kf),e.use(Jf),e.use(Zf),e.use(ed),e.use(od),e.use(id),e.use(cd),e.use(fd),e.use(dd),e.use(Af),e.use(ld),e.use(Qf),e.use(td),e.use(Bf),e.component("ColorPicker",mb)}},cc=$({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=V("gct-edit-form");if(!e.model)throw new Error("未传递表单模型配置");const n=e.controller||Xa(()=>new Ja(e.model)),o=q(null),a=async()=>{try{await o.value.formRef.validate()}catch(i){return console.error(i),!1}return!0},s=async i=>{try{await o.value.formRef.validateFields(i)}catch(l){return console.error(l),!1}return!0};return n.validate=a,n.validateItem=s,pe(e.context,()=>{Object.assign(n.context,e.context),n.state.isNew=!n.context.id},{immediate:!0}),pe(e.params,()=>{Object.assign(n.params,e.params)}),Za(async()=>{try{await o.value.formRef.validate();const i=await n.save();if(i)return{ok:!0,data:[On(i)]}}catch(i){console.error(i)}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=S(T("gct-form"),{class:"h-full",ref:"formRef",model:this.model,c:this.c},null)),S("div",{class:this.ns.b()},[e])}}),bb={install(e){e.component(cc.name,cc)}};function Cb(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const fc=$({name:"GctFormItem",props:{c:{type:Object,required:!0},formModel:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("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=G(()=>{var a;return!!((a=e.model.rules)!=null&&a.find(s=>s.required))});return{ns:t,style:r,required:n,renderLabelTooltip:()=>e.model.labelTooltip?S(T("a-tooltip"),{class:t.e("label-tooltip"),placement:"topLeft",title:e.model.labelTooltip},{default:()=>[S("span",{class:"iconfont icon-assist ml5px text-[#bfbfbf]"},null)]}):null}},render(){const e=_gct.register.editor.get(Qa.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=bn(typeof e.component=="string"?T(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=[S("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=()=>[S("span",null,[this.model.label]),this.renderLabelTooltip()]),S(T("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"},Cb(n)?n:{default:()=>[n]})}});function wb(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const dc=$({name:"GctForm",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("gct-form");pn("formController",e.c);const r=q(null),n=e.c;Object.keys(n.item).forEach(c=>{const u=n.item[c];u.state=Ce(u.state)});const a=c=>S(T("gct-form-item"),{class:c.class,style:c.style,c:n.item[c.name],formModel:e.model,model:c},null),s=c=>{const u=n.provider[c.name];if(!u)return console.error(`未找到表单项适配器实例:${c.name}`,c),null;if(u)return bn(typeof u.component=="string"?T(u.component):u.component,{key:c.name,model:c,formModel:e.model,c:n.item[c.name],data:n.state.data,class:c.class,style:c.style},i(c.children||[]));console.error(`未找到表单容器适配器:${c.name} - ${c.type}`)},i=c=>{if(!c)return[];const u=[];return c.forEach(f=>{if(f.type==="hidden")return null;let d=null;const h=f;h.type==="container"||h.container?d=s(h):d=a(f),d&&u.push(d)}),u},l={};return e.model.labelWidth&&(l[t.cssVarName("form-item-label-width")]=e.model.labelWidth),{ns:t,formRef:r,staticStyle:l,renderItem:a,renderContainer:s,renderChildren:i}},render(){let e;return S(T("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},wb(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class Sb{constructor(){X(this,"component","gct-form-item")}createController(t,r){return Ge(()=>new ei(t,r))}}class xb{constructor(){X(this,"component","gct-form-hidden-item")}createController(t,r){return Ge(()=>new ti(t,r))}}class Ob{constructor(){X(this,"component","gct-form-collapse-pane")}createController(t,r){return Ge(()=>new ri(t,r))}}function hc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const vc=$({name:"GctFormCollapsePane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("form-collapse-pane"),r={};function n(o){if(e.model.layout==="flex")return S(T("flex-container"),{layout:e.model.flex},hc(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return S(T("grid-container"),{layout:e.model.grid},hc(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(){var r,n;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((n=(r=this.$slots).default)==null?void 0:n.call(r))||[],t=e[e.length-1];return t&&(t.props=re(t.props||{},{class:this.ns.e("last-child")})),S("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),_b={install(e){_gct.register.formItem.register("collapse-pane",()=>new Ob),e.component(vc.name,vc)}};class kb{constructor(){X(this,"component","gct-form-collapse")}createController(t,r){return Ge(()=>new ni(t,r))}}const pc=$({name:"GctFormCollapse",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){var s;const t=V("form-collapse"),r=q([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=q([]);o.value=((s=e.model.children)==null?void 0:s.map(i=>i.name))||[];const a=G(()=>e.model.expandIconPosition==="left"?"left":"right");return{ns:t,keys:r,style:n,activeKeys:o,expandIconPosition:a}},render(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return S(xn,{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":n=>this.activeKeys=n},{default:()=>{var n;return[(n=this.model.children)==null?void 0:n.map((o,a)=>{if(e[a].props.c.state.visible===!1)return;const i=o.collapsible!==!1?void 0:"disabled";return S(xn.Panel,{key:o.name,header:o.title,collapsible:i},{default:()=>[e[a]]})})]}})}}),Eb={install(e){_gct.register.formItem.register("collapse",()=>new kb),e.component(pc.name,pc)}};class Ab{constructor(){X(this,"component","gct-form-group")}createController(t,r){return Ge(()=>new wn(t,r))}}function Pa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const gc=$({name:"GctFormGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("gct-form-group"),r=q([0]);function n(a){if(e.model.layout==="flex")return S(T("flex-container"),{layout:e.model.flex},Pa(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return S(T("grid-container"),{layout:e.model.grid},Pa(a)?a:{default:()=>[a]});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(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];if(this.model.isCollapse){let n;return S(T("a-collapse"),{activeKey:this.keys,"onUpdate:activeKey":o=>this.keys=o,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:()=>[S(T("a-collapse-panel"),{key:"0",header:this.model.title},Pa(n=this.renderContainer(e))?n:{default:()=>[n]})]})}return S("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?S("div",{class:this.ns.e("title")},[this.model.title]):null,S("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Tb={install(e){_gct.register.formItem.register("container",()=>new Ab),e.component(gc.name,gc)}};class Rb{constructor(){X(this,"component","gct-form-tab")}createController(t,r){return Ge(()=>new oi(t,r))}}const mc=$({name:"GctFormTab",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("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(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return S(T("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:()=>{var n;return[(n=this.model.children)==null?void 0:n.map((o,a)=>S(T("a-tab-pane"),{key:o.name,tab:o.title},{default:()=>[e[a]]}))]}})}}),jb={install(e){_gct.register.formItem.register("tab",()=>new Rb),e.component(mc.name,mc)}};class Pb{constructor(){X(this,"component","gct-form-tab-pane")}createController(t,r){return Ge(()=>new ai(t,r))}}function yc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const bc=$({name:"GctFormTabPane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("form-tab-pane"),r={};function n(o){if(e.model.layout==="flex")return S(T("flex-container"),{layout:e.model.flex},yc(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return S(T("grid-container"),{layout:e.model.grid},yc(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(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return S("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),$b={install(e){_gct.register.formItem.register("tab-pane",()=>new Pb),e.component(bc.name,bc)}};class Ib{constructor(){X(this,"component","gct-form-title-group")}createController(t,r){return Ge(()=>new wn(t,r))}}function Cc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const wc=$({name:"GctFormTitleGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("gct-form-title-group"),r=q([0]);function n(a){if(e.model.layout==="flex")return S(T("flex-container"),{layout:e.model.flex},Cc(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return S(T("grid-container"),{layout:e.model.grid},Cc(a)?a:{default:()=>[a]});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(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return S("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[S("div",{class:this.ns.e("title")},[this.model.title]),S("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Mb={install(e){_gct.register.formItem.register(ii.FORM_TITLE_GROUP,()=>new Ib),e.component(wc.name,wc)}},Fb={install(e){_gct.register.formItem.register("item",()=>new Sb),_gct.register.formItem.register("hidden",()=>new xb),e.use(_b),e.use(Eb),e.use(Tb),e.use(jb),e.use($b),e.use(Mb),e.component(dc.name,dc),e.component(fc.name,fc)}},Ub=Xe("default",{install(e){e.use(yb),e.use(bb),e.use(Fb),e.component(Ci.name,Ci),e.component(wi.name,wi),e.component(En.name,En),e.component(xi.name,xi),e.component(Oi.name,Oi)}})}}});
|