sun-form-v3 1.0.119 → 1.0.120
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{index-DVWUSt1J.js → index-BDfi_Ccr.js} +1 -1
- package/dist/{index-CwosZ_y0.js → index-BGwr07rO.js} +1 -1
- package/dist/{index-Ckj8sypD.js → index-BjwE1aQQ.js} +2 -2
- package/dist/{index-BwRxierB.js → index-CDkXcvXV.js} +1 -1
- package/dist/{index-DA2Ihhl8.js → index-Cot8YloM.js} +1 -1
- package/dist/{index-Bl6kIsg1.js → index-iEzHMtJ6.js} +1 -1
- package/dist/{index-D_2YbeG6.js → index-seZY97YB.js} +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +1 -1
- package/package.json +1 -1
- package/dist/loader.min.js +0 -4
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as g, resolveComponent as u, openBlock as b, createElementBlock as V, Fragment as w, createVNode as e, withCtx as n, unref as a } from "vue";
|
2
|
-
import { c } from "./index-
|
2
|
+
import { c } from "./index-BjwE1aQQ.js";
|
3
3
|
const k = /* @__PURE__ */ Object.assign({ name: "config-text" }, {
|
4
4
|
__name: "index",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as z, ref as x, resolveComponent as p, openBlock as k, createElementBlock as U, Fragment as O, createVNode as e, withCtx as l, createTextVNode as V, unref as u, isRef as J, createElementVNode as m } from "vue";
|
2
|
-
import { _ as E, c as H } from "./index-
|
2
|
+
import { _ as E, c as H } from "./index-BjwE1aQQ.js";
|
3
3
|
const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -2369,7 +2369,7 @@ const c1e = {
|
|
2369
2369
|
}), require(["vs/editor/editor.main"], function() {
|
2370
2370
|
window.MonacoEnvironment = {
|
2371
2371
|
getWorkerUrl: function(p, h) {
|
2372
|
-
return h === "json" ? "http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/json/jsonWorker.
|
2372
|
+
return h === "json" ? "http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/json/jsonWorker.js" : h === "css" || h === "scss" || h === "less" ? "http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/css/cssWorker.js" : h === "html" || h === "handlebars" || h === "razor" ? "http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/html/htmlWorker.js" : h === "typescript" || h === "javascript" ? "http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/typescript/tsWorker.js" : "http://cdn.sunform.tech/libs/monaco-editor/min/vs/base/worker/workerMain.js";
|
2373
2373
|
}
|
2374
2374
|
}, o.value ? (s = monaco.editor.create(o.value, {
|
2375
2375
|
value: r.modelValue || "",
|
@@ -93057,7 +93057,7 @@ const LH = /* @__PURE__ */ Object.assign({ name: "sunForm" }, {
|
|
93057
93057
|
},
|
93058
93058
|
setup(e) {
|
93059
93059
|
const n = Object.fromEntries(
|
93060
|
-
Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-cascader/index.vue": () => import("./index-vN8Pef9j.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-DM5DPltp.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-
|
93060
|
+
Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-cascader/index.vue": () => import("./index-vN8Pef9j.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-DM5DPltp.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-Cot8YloM.js"), "../widgetConfigComps/config-date/index.vue": () => import("./index-C0NmmaE2.js"), "../widgetConfigComps/config-div/index.vue": () => import("./index-BAEL_Fhr.js"), "../widgetConfigComps/config-echarts/index.vue": () => import("./index-iEzHMtJ6.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-CXNYHPLK.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-BU3xx_sm.js"), "../widgetConfigComps/config-form/index.vue": () => import("./index-CIaeKFCl.js"), "../widgetConfigComps/config-homepage/index.vue": () => import("./index-CifChfEv.js"), "../widgetConfigComps/config-image/index.vue": () => import("./index-dGJDj4ro.js"), "../widgetConfigComps/config-input/index.vue": () => import("./index-j-KEXzR8.js"), "../widgetConfigComps/config-modal/index.vue": () => import("./index-DIwhu60e.js"), "../widgetConfigComps/config-modal2/index.vue": () => import("./index-D7zr1ztZ.js"), "../widgetConfigComps/config-progress/index.vue": () => import("./index-c0zw96Jm.js"), "../widgetConfigComps/config-radio/index.vue": () => import("./index-DVgKDMax.js"), "../widgetConfigComps/config-rate/index.vue": () => import("./index-B0fldwhm.js"), "../widgetConfigComps/config-select/index.vue": () => import("./index-B1b5cejN.js"), "../widgetConfigComps/config-selects/index.vue": () => import("./index-CZZfzYn7.js"), "../widgetConfigComps/config-statistic/index.vue": () => import("./index-BGwr07rO.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-seZY97YB.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-BDfi_Ccr.js"), "../widgetConfigComps/config-text/index.vue": () => import("./index-BYbxnzUx.js"), "../widgetConfigComps/config-time/index.vue": () => import("./index-zkXVDNsL.js"), "../widgetConfigComps/config-timeline/index.vue": () => import("./index-CDkXcvXV.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([p, h]) => {
|
93061
93061
|
const y = p.match(/\/([^/]+)\/index\.vue$/);
|
93062
93062
|
return [y ? y[1] : null, d_e(h)];
|
93063
93063
|
})
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as S, ref as C, resolveComponent as p, openBlock as U, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as g, unref as i, isRef as J, createElementVNode as f } from "vue";
|
2
|
-
import { _ as T } from "./index-
|
2
|
+
import { _ as T } from "./index-BjwE1aQQ.js";
|
3
3
|
const E = { class: "h-full flex flex-col" }, H = { class: "flex-1 overflow-hidden" }, B = {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as C, resolveComponent as m, openBlock as H, createElementBlock as T, Fragment as A, createVNode as e, unref as l, withCtx as a, createTextVNode as b, isRef as L, createElementVNode as f, toDisplayString as k, createCommentVNode as R } from "vue";
|
2
|
-
import { _ as $ } from "./index-
|
2
|
+
import { _ as $ } from "./index-BjwE1aQQ.js";
|
3
3
|
const J = {
|
4
4
|
key: 0,
|
5
5
|
class: "flex h-full flex-col"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as j, ref as g, onMounted as $, resolveComponent as f, openBlock as v, createElementBlock as h, Fragment as x, createVNode as u, withCtx as o, createTextVNode as C, createElementVNode as a, renderList as B, unref as V, toDisplayString as N, nextTick as U, createBlock as D } from "vue";
|
2
|
-
import { e as E, i as M } from "./index-
|
2
|
+
import { e as E, i as M } from "./index-BjwE1aQQ.js";
|
3
3
|
const R = { class: "flex-wrap flex" }, S = ["onClick"], T = { class: "inner cursor-pointer hover:shadow-md hover:shadow-blue-200 border w-full h-full p-1 flex flex-col overflow-hidden items-center rounded-md shadow-sm" }, z = { class: "lab border-t w-full text-center mt-1 font-bold" }, F = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
|
4
4
|
__name: "chartChoose",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as S, ref as C, resolveComponent as u, openBlock as k, createElementBlock as O, Fragment as U, createVNode as e, withCtx as l, createTextVNode as f, unref as i, isRef as J, createElementVNode as c } from "vue";
|
2
|
-
import { _ as E } from "./index-
|
2
|
+
import { _ as E } from "./index-BjwE1aQQ.js";
|
3
3
|
const H = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
package/dist/sun-form-v3.es.js
CHANGED
package/dist/sun-form-v3.umd.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* @author RubaXa <trash@rubaxa.org>
|
4
4
|
* @author owenm <owen23355@gmail.com>
|
5
5
|
* @license MIT
|
6
|
-
*/function dH(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Af(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dH(Object(n),!0).forEach(function(r){Tve(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dH(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function HE(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?HE=function(e){return typeof e}:HE=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HE(t)}function Tve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ud(){return Ud=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ud.apply(this,arguments)}function Dve(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Ave(t,e){if(t==null)return{};var n=Dve(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var Nve="1.14.0";function Gd(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Yd=Gd(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Mw=Gd(/Edge/i),pH=Gd(/firefox/i),Iw=Gd(/safari/i)&&!Gd(/chrome/i)&&!Gd(/android/i),hH=Gd(/iP(ad|od|hone)/i),Mve=Gd(/chrome/i)&&Gd(/android/i),gH={capture:!1,passive:!1};function Ho(t,e,n){t.addEventListener(e,n,!Yd&&gH)}function Mo(t,e,n){t.removeEventListener(e,n,!Yd&&gH)}function WE(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function Ive(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Nf(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&WE(t,e):WE(t,e))||r&&t===n)return t;if(t===n)break}while(t=Ive(t))}return null}var vH=/\s+/g;function eu(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(vH," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(vH," ")}}function Cr(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function Xy(t,e){var n="";if(typeof t=="string")n=t;else do{var r=Cr(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function mH(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function Mf(){var t=document.scrollingElement;return t||document.documentElement}function ka(t,e,n,r,o){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,l,u,c,f,d;if(t!==window&&t.parentNode&&t!==Mf()?(i=t.getBoundingClientRect(),a=i.top,l=i.left,u=i.bottom,c=i.right,f=i.height,d=i.width):(a=0,l=0,u=window.innerHeight,c=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!Yd))do if(o&&o.getBoundingClientRect&&(Cr(o,"transform")!=="none"||n&&Cr(o,"position")!=="static")){var p=o.getBoundingClientRect();a-=p.top+parseInt(Cr(o,"border-top-width")),l-=p.left+parseInt(Cr(o,"border-left-width")),u=a+i.height,c=l+i.width;break}while(o=o.parentNode);if(r&&t!==window){var h=Xy(o||t),g=h&&h.a,b=h&&h.d;h&&(a/=b,l/=g,d/=g,f/=b,u=a+f,c=l+d)}return{top:a,left:l,bottom:u,right:c,width:d,height:f}}}function yH(t,e,n){for(var r=sh(t,!0),o=ka(t)[e];r;){var i=ka(r)[n],a=void 0;if(a=o>=i,!a)return r;if(r===Mf())break;r=sh(r,!1)}return!1}function Ky(t,e,n,r){for(var o=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==Er.ghost&&(r||a[i]!==Er.dragged)&&Nf(a[i],n.draggable,t,!1)){if(o===e)return a[i];o++}i++}return null}function GI(t,e){for(var n=t.lastElementChild;n&&(n===Er.ghost||Cr(n,"display")==="none"||e&&!WE(n,e));)n=n.previousElementSibling;return n||null}function Bu(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Er.clone&&(!e||WE(t,e))&&n++;return n}function bH(t){var e=0,n=0,r=Mf();if(t)do{var o=Xy(t),i=o.a,a=o.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function Pve(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function sh(t,e){if(!t||!t.getBoundingClientRect)return Mf();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Cr(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Mf();if(r||e)return n;r=!0}}while(n=n.parentNode);return Mf()}function kve(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function YI(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Pw;function _H(t,e){return function(){if(!Pw){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),Pw=setTimeout(function(){Pw=void 0},e)}}}function Vve(){clearTimeout(Pw),Pw=void 0}function wH(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function xH(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var tu="Sortable"+new Date().getTime();function Rve(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(Cr(o,"display")==="none"||o===Er.ghost)){t.push({target:o,rect:ka(o)});var i=Af({},t[t.length-1].rect);if(o.thisAnimationDuration){var a=Xy(o,!0);a&&(i.top-=a.f,i.left-=a.e)}o.fromRect=i}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(Pve(t,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var i=!1,a=0;t.forEach(function(l){var u=0,c=l.target,f=c.fromRect,d=ka(c),p=c.prevFromRect,h=c.prevToRect,g=l.rect,b=Xy(c,!0);b&&(d.top-=b.f,d.left-=b.e),c.toRect=d,c.thisAnimationDuration&&YI(p,d)&&!YI(f,d)&&(g.top-d.top)/(g.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(u=Bve(g,p,h,o.options)),YI(d,f)||(c.prevFromRect=f,c.prevToRect=d,u||(u=o.options.animation),o.animate(c,g,d,u)),u&&(i=!0,a=Math.max(a,u),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},u),c.thisAnimationDuration=u)}),clearTimeout(e),i?e=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),t=[]},animate:function(r,o,i,a){if(a){Cr(r,"transition",""),Cr(r,"transform","");var l=Xy(this.el),u=l&&l.a,c=l&&l.d,f=(o.left-i.left)/(u||1),d=(o.top-i.top)/(c||1);r.animatingX=!!f,r.animatingY=!!d,Cr(r,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=Lve(r),Cr(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),Cr(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Cr(r,"transition",""),Cr(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function Lve(t){return t.offsetWidth}function Bve(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var Zy=[],qI={initializeByDefault:!0},kw={mount:function(e){for(var n in qI)qI.hasOwnProperty(n)&&!(n in e)&&(e[n]=qI[n]);Zy.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Zy.push(e)},pluginEvent:function(e,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var i=e+"Global";Zy.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][i]&&n[a.pluginName][i](Af({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][e]&&n[a.pluginName][e](Af({sortable:n},r)))})},initializePlugins:function(e,n,r,o){Zy.forEach(function(l){var u=l.pluginName;if(!(!e.options[u]&&!l.initializeByDefault)){var c=new l(e,n,e.options);c.sortable=e,c.options=e.options,e[u]=c,Ud(r,c.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);typeof a<"u"&&(e.options[i]=a)}},getEventProperties:function(e,n){var r={};return Zy.forEach(function(o){typeof o.eventProperties=="function"&&Ud(r,o.eventProperties.call(n[o.pluginName],e))}),r},modifyOption:function(e,n,r){var o;return Zy.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(e[i.pluginName],r))}),o}};function Fve(t){var e=t.sortable,n=t.rootEl,r=t.name,o=t.targetEl,i=t.cloneEl,a=t.toEl,l=t.fromEl,u=t.oldIndex,c=t.newIndex,f=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,h=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[tu],!!e){var b,w=e.options,x="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Yd&&!Mw?b=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(r,!0,!0)),b.to=a||n,b.from=l||n,b.item=o||n,b.clone=i,b.oldIndex=u,b.newIndex=c,b.oldDraggableIndex=f,b.newDraggableIndex=d,b.originalEvent=p,b.pullMode=h?h.lastPutMode:void 0;var C=Af(Af({},g),kw.getEventProperties(r,e));for(var O in C)b[O]=C[O];n&&n.dispatchEvent(b),w[x]&&w[x].call(e,b)}}var jve=["evt"],Ds=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,i=Ave(r,jve);kw.pluginEvent.bind(Er)(e,n,Af({dragEl:wn,parentEl:Yi,ghostEl:Gr,rootEl:Ni,nextEl:lv,lastDownEl:UE,cloneEl:qi,cloneHidden:uh,dragStarted:Rw,putSortable:fl,activeSortable:Er.active,originalEvent:o,oldIndex:Jy,oldDraggableIndex:Vw,newIndex:nu,newDraggableIndex:ch,hideGhostForTarget:AH,unhideGhostForTarget:NH,cloneNowHidden:function(){uh=!0},cloneNowShown:function(){uh=!1},dispatchSortableEvent:function(l){Jl({sortable:n,name:l,originalEvent:o})}},i))};function Jl(t){Fve(Af({putSortable:fl,cloneEl:qi,targetEl:wn,rootEl:Ni,oldIndex:Jy,oldDraggableIndex:Vw,newIndex:nu,newDraggableIndex:ch},t))}var wn,Yi,Gr,Ni,lv,UE,qi,uh,Jy,nu,Vw,ch,GE,fl,Qy=!1,YE=!1,qE=[],sv,Ic,XI,KI,SH,CH,Rw,eb,Lw,Bw=!1,XE=!1,KE,Ml,ZI=[],JI=!1,ZE=[],JE=typeof document<"u",QE=hH,EH=Mw||Yd?"cssFloat":"float",$ve=JE&&!Mve&&!hH&&"draggable"in document.createElement("div"),OH=function(){if(JE){if(Yd)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),TH=function(e,n){var r=Cr(e),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=Ky(e,0,n),a=Ky(e,1,n),l=i&&Cr(i),u=a&&Cr(a),c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ka(i).width,f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+ka(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return a&&(u.clear==="both"||u.clear===d)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||c>=o&&r[EH]==="none"||a&&r[EH]==="none"&&c+f>o)?"vertical":"horizontal"},zve=function(e,n,r){var o=r?e.left:e.top,i=r?e.right:e.bottom,a=r?e.width:e.height,l=r?n.left:n.top,u=r?n.right:n.bottom,c=r?n.width:n.height;return o===l||i===u||o+a/2===l+c/2},Hve=function(e,n){var r;return qE.some(function(o){var i=o[tu].options.emptyInsertThreshold;if(!(!i||GI(o))){var a=ka(o),l=e>=a.left-i&&e<=a.right+i,u=n>=a.top-i&&n<=a.bottom+i;if(l&&u)return r=o}}),r},DH=function(e){function n(i,a){return function(l,u,c,f){var d=l.options.group.name&&u.options.group.name&&l.options.group.name===u.options.group.name;if(i==null&&(a||d))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return n(i(l,u,c,f),a)(l,u,c,f);var p=(a?l:u).options.group.name;return i===!0||typeof i=="string"&&i===p||i.join&&i.indexOf(p)>-1}}var r={},o=e.group;(!o||HE(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,e.group=r},AH=function(){!OH&&Gr&&Cr(Gr,"display","none")},NH=function(){!OH&&Gr&&Cr(Gr,"display","")};JE&&document.addEventListener("click",function(t){if(YE)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),YE=!1,!1},!0);var uv=function(e){if(wn){e=e.touches?e.touches[0]:e;var n=Hve(e.clientX,e.clientY);if(n){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[tu]._onDragOver(r)}}},Wve=function(e){wn&&wn.parentNode[tu]._isOutsideThisEl(e.target)};function Er(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Ud({},e),t[tu]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return TH(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Er.supportPointer!==!1&&"PointerEvent"in window&&!Iw,emptyInsertThreshold:5};kw.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);DH(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:$ve,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?Ho(t,"pointerdown",this._onTapStart):(Ho(t,"mousedown",this._onTapStart),Ho(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ho(t,"dragover",this),Ho(t,"dragenter",this)),qE.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Ud(this,Rve())}Er.prototype={constructor:Er,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(eb=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,wn):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,o=this.options,i=o.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(l||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,f=o.filter;if(Jve(r),!wn&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||o.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Iw&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=Nf(u,o.draggable,r,!1),!(u&&u.animated)&&UE!==u)){if(Jy=Bu(u),Vw=Bu(u,o.draggable),typeof f=="function"){if(f.call(this,e,u,this)){Jl({sortable:n,rootEl:c,name:"filter",targetEl:u,toEl:r,fromEl:r}),Ds("filter",n,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=Nf(c,d.trim(),r,!1),d)return Jl({sortable:n,rootEl:d,name:"filter",targetEl:u,fromEl:r,toEl:r}),Ds("filter",n,{evt:e}),!0}),f)){i&&e.cancelable&&e.preventDefault();return}o.handle&&!Nf(c,o.handle,r,!1)||this._prepareDragStart(e,l,u)}}},_prepareDragStart:function(e,n,r){var o=this,i=o.el,a=o.options,l=i.ownerDocument,u;if(r&&!wn&&r.parentNode===i){var c=ka(r);if(Ni=i,wn=r,Yi=wn.parentNode,lv=wn.nextSibling,UE=r,GE=a.group,Er.dragged=wn,sv={target:wn,clientX:(n||e).clientX,clientY:(n||e).clientY},SH=sv.clientX-c.left,CH=sv.clientY-c.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,wn.style["will-change"]="all",u=function(){if(Ds("delayEnded",o,{evt:e}),Er.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!pH&&o.nativeDraggable&&(wn.draggable=!0),o._triggerDragStart(e,n),Jl({sortable:o,name:"choose",originalEvent:e}),eu(wn,a.chosenClass,!0)},a.ignore.split(",").forEach(function(f){mH(wn,f.trim(),QI)}),Ho(l,"dragover",uv),Ho(l,"mousemove",uv),Ho(l,"touchmove",uv),Ho(l,"mouseup",o._onDrop),Ho(l,"touchend",o._onDrop),Ho(l,"touchcancel",o._onDrop),pH&&this.nativeDraggable&&(this.options.touchStartThreshold=4,wn.draggable=!0),Ds("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Mw||Yd))){if(Er.eventCanceled){this._onDrop();return}Ho(l,"mouseup",o._disableDelayedDrag),Ho(l,"touchend",o._disableDelayedDrag),Ho(l,"touchcancel",o._disableDelayedDrag),Ho(l,"mousemove",o._delayedDragTouchMoveHandler),Ho(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&Ho(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(u,a.delay)}else u()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){wn&&QI(wn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Mo(e,"mouseup",this._disableDelayedDrag),Mo(e,"touchend",this._disableDelayedDrag),Mo(e,"touchcancel",this._disableDelayedDrag),Mo(e,"mousemove",this._delayedDragTouchMoveHandler),Mo(e,"touchmove",this._delayedDragTouchMoveHandler),Mo(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?Ho(document,"pointermove",this._onTouchMove):n?Ho(document,"touchmove",this._onTouchMove):Ho(document,"mousemove",this._onTouchMove):(Ho(wn,"dragend",this),Ho(Ni,"dragstart",this._onDragStart));try{document.selection?tO(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Qy=!1,Ni&&wn){Ds("dragStarted",this,{evt:n}),this.nativeDraggable&&Ho(document,"dragover",Wve);var r=this.options;!e&&eu(wn,r.dragClass,!1),eu(wn,r.ghostClass,!0),Er.active=this,e&&this._appendGhost(),Jl({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ic){this._lastX=Ic.clientX,this._lastY=Ic.clientY,AH();for(var e=document.elementFromPoint(Ic.clientX,Ic.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ic.clientX,Ic.clientY),e!==n);)n=e;if(wn.parentNode[tu]._isOutsideThisEl(e),n)do{if(n[tu]){var r=void 0;if(r=n[tu]._onDragOver({clientX:Ic.clientX,clientY:Ic.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);NH()}},_onTouchMove:function(e){if(sv){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,i=e.touches?e.touches[0]:e,a=Gr&&Xy(Gr,!0),l=Gr&&a&&a.a,u=Gr&&a&&a.d,c=QE&&Ml&&bH(Ml),f=(i.clientX-sv.clientX+o.x)/(l||1)+(c?c[0]-ZI[0]:0)/(l||1),d=(i.clientY-sv.clientY+o.y)/(u||1)+(c?c[1]-ZI[1]:0)/(u||1);if(!Er.active&&!Qy){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(Gr){a?(a.e+=f-(XI||0),a.f+=d-(KI||0)):a={a:1,b:0,c:0,d:1,e:f,f:d};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");Cr(Gr,"webkitTransform",p),Cr(Gr,"mozTransform",p),Cr(Gr,"msTransform",p),Cr(Gr,"transform",p),XI=f,KI=d,Ic=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Gr){var e=this.options.fallbackOnBody?document.body:Ni,n=ka(wn,!0,QE,!0,e),r=this.options;if(QE){for(Ml=e;Cr(Ml,"position")==="static"&&Cr(Ml,"transform")==="none"&&Ml!==document;)Ml=Ml.parentNode;Ml!==document.body&&Ml!==document.documentElement?(Ml===document&&(Ml=Mf()),n.top+=Ml.scrollTop,n.left+=Ml.scrollLeft):Ml=Mf(),ZI=bH(Ml)}Gr=wn.cloneNode(!0),eu(Gr,r.ghostClass,!1),eu(Gr,r.fallbackClass,!0),eu(Gr,r.dragClass,!0),Cr(Gr,"transition",""),Cr(Gr,"transform",""),Cr(Gr,"box-sizing","border-box"),Cr(Gr,"margin",0),Cr(Gr,"top",n.top),Cr(Gr,"left",n.left),Cr(Gr,"width",n.width),Cr(Gr,"height",n.height),Cr(Gr,"opacity","0.8"),Cr(Gr,"position",QE?"absolute":"fixed"),Cr(Gr,"zIndex","100000"),Cr(Gr,"pointerEvents","none"),Er.ghost=Gr,e.appendChild(Gr),Cr(Gr,"transform-origin",SH/parseInt(Gr.style.width)*100+"% "+CH/parseInt(Gr.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,o=e.dataTransfer,i=r.options;if(Ds("dragStart",this,{evt:e}),Er.eventCanceled){this._onDrop();return}Ds("setupClone",this),Er.eventCanceled||(qi=xH(wn),qi.draggable=!1,qi.style["will-change"]="",this._hideClone(),eu(qi,this.options.chosenClass,!1),Er.clone=qi),r.cloneId=tO(function(){Ds("clone",r),!Er.eventCanceled&&(r.options.removeCloneOnHide||Ni.insertBefore(qi,wn),r._hideClone(),Jl({sortable:r,name:"clone"}))}),!n&&eu(wn,i.dragClass,!0),n?(YE=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Mo(document,"mouseup",r._onDrop),Mo(document,"touchend",r._onDrop),Mo(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(r,o,wn)),Ho(document,"drop",r),Cr(wn,"transform","translateZ(0)")),Qy=!0,r._dragStartId=tO(r._dragStarted.bind(r,n,e)),Ho(document,"selectstart",r),Rw=!0,Iw&&Cr(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,o,i,a,l=this.options,u=l.group,c=Er.active,f=GE===u,d=l.sort,p=fl||c,h,g=this,b=!1;if(JI)return;function w(Z,ee){Ds(Z,g,Af({evt:e,isOwner:f,axis:h?"vertical":"horizontal",revert:a,dragRect:o,targetRect:i,canSort:d,fromSortable:p,target:r,completed:C,onMove:function(ce,Ae){return eO(Ni,n,wn,o,ce,ka(ce),e,Ae)},changed:O},ee))}function x(){w("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function C(Z){return w("dragOverCompleted",{insertion:Z}),Z&&(f?c._hideClone():c._showClone(g),g!==p&&(eu(wn,fl?fl.options.ghostClass:c.options.ghostClass,!1),eu(wn,l.ghostClass,!0)),fl!==g&&g!==Er.active?fl=g:g===Er.active&&fl&&(fl=null),p===g&&(g._ignoreWhileAnimating=r),g.animateAll(function(){w("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(r===wn&&!wn.animated||r===n&&!r.animated)&&(eb=null),!l.dragoverBubble&&!e.rootEl&&r!==document&&(wn.parentNode[tu]._isOutsideThisEl(e.target),!Z&&uv(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),b=!0}function O(){nu=Bu(wn),ch=Bu(wn,l.draggable),Jl({sortable:g,name:"change",toEl:n,newIndex:nu,newDraggableIndex:ch,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=Nf(r,l.draggable,n,!0),w("dragOver"),Er.eventCanceled)return b;if(wn.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r)return C(!1);if(YE=!1,c&&!l.disabled&&(f?d||(a=Yi!==Ni):fl===this||(this.lastPutMode=GE.checkPull(this,c,wn,e))&&u.checkPut(this,c,wn,e))){if(h=this._getDirection(e,r)==="vertical",o=ka(wn),w("dragOverValid"),Er.eventCanceled)return b;if(a)return Yi=Ni,x(),this._hideClone(),w("revert"),Er.eventCanceled||(lv?Ni.insertBefore(wn,lv):Ni.appendChild(wn)),C(!0);var A=GI(n,l.draggable);if(!A||qve(e,h,this)&&!A.animated){if(A===wn)return C(!1);if(A&&n===e.target&&(r=A),r&&(i=ka(r)),eO(Ni,n,wn,o,r,i,e,!!r)!==!1)return x(),n.appendChild(wn),Yi=n,O(),C(!0)}else if(A&&Yve(e,h,this)){var N=Ky(n,0,l,!0);if(N===wn)return C(!1);if(r=N,i=ka(r),eO(Ni,n,wn,o,r,i,e,!1)!==!1)return x(),n.insertBefore(wn,N),Yi=n,O(),C(!0)}else if(r.parentNode===n){i=ka(r);var I=0,P,V=wn.parentNode!==n,k=!zve(wn.animated&&wn.toRect||o,r.animated&&r.toRect||i,h),F=h?"top":"left",j=yH(r,"top","top")||yH(wn,"top","top"),L=j?j.scrollTop:void 0;eb!==r&&(P=i[F],Bw=!1,XE=!k&&l.invertSwap||V),I=Xve(e,r,i,h,k?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,XE,eb===r);var B;if(I!==0){var H=Bu(wn);do H-=I,B=Yi.children[H];while(B&&(Cr(B,"display")==="none"||B===Gr))}if(I===0||B===r)return C(!1);eb=r,Lw=I;var W=r.nextElementSibling,J=!1;J=I===1;var oe=eO(Ni,n,wn,o,r,i,e,J);if(oe!==!1)return(oe===1||oe===-1)&&(J=oe===1),JI=!0,setTimeout(Gve,30),x(),J&&!W?n.appendChild(wn):r.parentNode.insertBefore(wn,J?W:r),j&&wH(j,0,L-j.scrollTop),Yi=wn.parentNode,P!==void 0&&!XE&&(KE=Math.abs(P-ka(r)[F])),O(),C(!0)}if(n.contains(wn))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Mo(document,"mousemove",this._onTouchMove),Mo(document,"touchmove",this._onTouchMove),Mo(document,"pointermove",this._onTouchMove),Mo(document,"dragover",uv),Mo(document,"mousemove",uv),Mo(document,"touchmove",uv)},_offUpEvents:function(){var e=this.el.ownerDocument;Mo(e,"mouseup",this._onDrop),Mo(e,"touchend",this._onDrop),Mo(e,"pointerup",this._onDrop),Mo(e,"touchcancel",this._onDrop),Mo(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(nu=Bu(wn),ch=Bu(wn,r.draggable),Ds("drop",this,{evt:e}),Yi=wn&&wn.parentNode,nu=Bu(wn),ch=Bu(wn,r.draggable),Er.eventCanceled){this._nulling();return}Qy=!1,XE=!1,Bw=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),eP(this.cloneId),eP(this._dragStartId),this.nativeDraggable&&(Mo(document,"drop",this),Mo(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Iw&&Cr(document.body,"user-select",""),Cr(wn,"transform",""),e&&(Rw&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),Gr&&Gr.parentNode&&Gr.parentNode.removeChild(Gr),(Ni===Yi||fl&&fl.lastPutMode!=="clone")&&qi&&qi.parentNode&&qi.parentNode.removeChild(qi),wn&&(this.nativeDraggable&&Mo(wn,"dragend",this),QI(wn),wn.style["will-change"]="",Rw&&!Qy&&eu(wn,fl?fl.options.ghostClass:this.options.ghostClass,!1),eu(wn,this.options.chosenClass,!1),Jl({sortable:this,name:"unchoose",toEl:Yi,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ni!==Yi?(nu>=0&&(Jl({rootEl:Yi,name:"add",toEl:Yi,fromEl:Ni,originalEvent:e}),Jl({sortable:this,name:"remove",toEl:Yi,originalEvent:e}),Jl({rootEl:Yi,name:"sort",toEl:Yi,fromEl:Ni,originalEvent:e}),Jl({sortable:this,name:"sort",toEl:Yi,originalEvent:e})),fl&&fl.save()):nu!==Jy&&nu>=0&&(Jl({sortable:this,name:"update",toEl:Yi,originalEvent:e}),Jl({sortable:this,name:"sort",toEl:Yi,originalEvent:e})),Er.active&&((nu==null||nu===-1)&&(nu=Jy,ch=Vw),Jl({sortable:this,name:"end",toEl:Yi,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ds("nulling",this),Ni=wn=Yi=Gr=lv=qi=UE=uh=sv=Ic=Rw=nu=ch=Jy=Vw=eb=Lw=fl=GE=Er.dragged=Er.ghost=Er.clone=Er.active=null,ZE.forEach(function(e){e.checked=!0}),ZE.length=XI=KI=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":wn&&(this._onDragOver(e),Uve(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,o=0,i=r.length,a=this.options;o<i;o++)n=r[o],Nf(n,a.draggable,this.el,!1)&&e.push(n.getAttribute(a.dataIdAttr)||Zve(n));return e},sort:function(e,n){var r={},o=this.el;this.toArray().forEach(function(i,a){var l=o.children[a];Nf(l,this.options.draggable,o,!1)&&(r[i]=l)},this),n&&this.captureAnimationState(),e.forEach(function(i){r[i]&&(o.removeChild(r[i]),o.appendChild(r[i]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return Nf(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var o=kw.modifyOption(this,e,n);typeof o<"u"?r[e]=o:r[e]=n,e==="group"&&DH(r)},destroy:function(){Ds("destroy",this);var e=this.el;e[tu]=null,Mo(e,"mousedown",this._onTapStart),Mo(e,"touchstart",this._onTapStart),Mo(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Mo(e,"dragover",this),Mo(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),qE.splice(qE.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!uh){if(Ds("hideClone",this),Er.eventCanceled)return;Cr(qi,"display","none"),this.options.removeCloneOnHide&&qi.parentNode&&qi.parentNode.removeChild(qi),uh=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(uh){if(Ds("showClone",this),Er.eventCanceled)return;wn.parentNode==Ni&&!this.options.group.revertClone?Ni.insertBefore(qi,wn):lv?Ni.insertBefore(qi,lv):Ni.appendChild(qi),this.options.group.revertClone&&this.animate(wn,qi),Cr(qi,"display",""),uh=!1}}};function Uve(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function eO(t,e,n,r,o,i,a,l){var u,c=t[tu],f=c.options.onMove,d;return window.CustomEvent&&!Yd&&!Mw?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=e,u.from=t,u.dragged=n,u.draggedRect=r,u.related=o||e,u.relatedRect=i||ka(e),u.willInsertAfter=l,u.originalEvent=a,t.dispatchEvent(u),f&&(d=f.call(c,u,a)),d}function QI(t){t.draggable=!1}function Gve(){JI=!1}function Yve(t,e,n){var r=ka(Ky(n.el,0,n.options,!0)),o=10;return e?t.clientX<r.left-o||t.clientY<r.top&&t.clientX<r.right:t.clientY<r.top-o||t.clientY<r.bottom&&t.clientX<r.left}function qve(t,e,n){var r=ka(GI(n.el,n.options.draggable)),o=10;return e?t.clientX>r.right+o||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+o}function Xve(t,e,n,r,o,i,a,l){var u=r?t.clientY:t.clientX,c=r?n.height:n.width,f=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!a){if(l&&KE<c*o){if(!Bw&&(Lw===1?u>f+c*i/2:u<d-c*i/2)&&(Bw=!0),Bw)p=!0;else if(Lw===1?u<f+KE:u>d-KE)return-Lw}else if(u>f+c*(1-o)/2&&u<d-c*(1-o)/2)return Kve(e)}return p=p||a,p&&(u<f+c*i/2||u>d-c*i/2)?u>f+c/2?1:-1:0}function Kve(t){return Bu(wn)<Bu(t)?1:-1}function Zve(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function Jve(t){ZE.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&ZE.push(r)}}function tO(t){return setTimeout(t,0)}function eP(t){return clearTimeout(t)}JE&&Ho(document,"touchmove",function(t){(Er.active||Qy)&&t.cancelable&&t.preventDefault()}),Er.utils={on:Ho,off:Mo,css:Cr,find:mH,is:function(e,n){return!!Nf(e,n,e,!1)},extend:kve,throttle:_H,closest:Nf,toggleClass:eu,clone:xH,index:Bu,nextTick:tO,cancelNextTick:eP,detectDirection:TH,getChild:Ky},Er.get=function(t){return t[tu]},Er.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Er.utils=Af(Af({},Er.utils),r.utils)),kw.mount(r)})},Er.create=function(t,e){return new Er(t,e)},Er.version=Nve;var wa=[],Fw,tP,nP=!1,rP,oP,nO,jw;function Qve(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?Ho(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ho(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Ho(document,"touchmove",this._handleFallbackAutoScroll):Ho(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Mo(document,"dragover",this._handleAutoScroll):(Mo(document,"pointermove",this._handleFallbackAutoScroll),Mo(document,"touchmove",this._handleFallbackAutoScroll),Mo(document,"mousemove",this._handleFallbackAutoScroll)),MH(),rO(),Vve()},nulling:function(){nO=tP=Fw=nP=jw=rP=oP=null,wa.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,i=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(i,a);if(nO=n,r||this.options.forceAutoScrollFallback||Mw||Yd||Iw){iP(n,this.options,l,r);var u=sh(l,!0);nP&&(!jw||i!==rP||a!==oP)&&(jw&&MH(),jw=setInterval(function(){var c=sh(document.elementFromPoint(i,a),!0);c!==u&&(u=c,rO()),iP(n,o.options,c,r)},10),rP=i,oP=a)}else{if(!this.options.bubbleScroll||sh(l,!0)===Mf()){rO();return}iP(n,this.options,sh(l,!1),!1)}}},Ud(t,{pluginName:"scroll",initializeByDefault:!0})}function rO(){wa.forEach(function(t){clearInterval(t.pid)}),wa=[]}function MH(){clearInterval(jw)}var iP=_H(function(t,e,n,r){if(e.scroll){var o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,u=Mf(),c=!1,f;tP!==n&&(tP=n,rO(),Fw=e.scroll,f=e.scrollFn,Fw===!0&&(Fw=sh(n,!0)));var d=0,p=Fw;do{var h=p,g=ka(h),b=g.top,w=g.bottom,x=g.left,C=g.right,O=g.width,A=g.height,N=void 0,I=void 0,P=h.scrollWidth,V=h.scrollHeight,k=Cr(h),F=h.scrollLeft,j=h.scrollTop;h===u?(N=O<P&&(k.overflowX==="auto"||k.overflowX==="scroll"||k.overflowX==="visible"),I=A<V&&(k.overflowY==="auto"||k.overflowY==="scroll"||k.overflowY==="visible")):(N=O<P&&(k.overflowX==="auto"||k.overflowX==="scroll"),I=A<V&&(k.overflowY==="auto"||k.overflowY==="scroll"));var L=N&&(Math.abs(C-o)<=a&&F+O<P)-(Math.abs(x-o)<=a&&!!F),B=I&&(Math.abs(w-i)<=a&&j+A<V)-(Math.abs(b-i)<=a&&!!j);if(!wa[d])for(var H=0;H<=d;H++)wa[H]||(wa[H]={});(wa[d].vx!=L||wa[d].vy!=B||wa[d].el!==h)&&(wa[d].el=h,wa[d].vx=L,wa[d].vy=B,clearInterval(wa[d].pid),(L!=0||B!=0)&&(c=!0,wa[d].pid=setInterval((function(){r&&this.layer===0&&Er.active._onTouchMove(nO);var W=wa[this.layer].vy?wa[this.layer].vy*l:0,J=wa[this.layer].vx?wa[this.layer].vx*l:0;typeof f=="function"&&f.call(Er.dragged.parentNode[tu],J,W,t,nO,wa[this.layer].el)!=="continue"||wH(wa[this.layer].el,J,W)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==u&&(p=sh(p,!1)));nP=c}},30),IH=function(e){var n=e.originalEvent,r=e.putSortable,o=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(n){var c=r||i;l();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(f.clientX,f.clientY);u(),c&&!c.el.contains(d)&&(a("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function aP(){}aP.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=Ky(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:IH},Ud(aP,{pluginName:"revertOnSpill"});function lP(){}lP.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:IH},Ud(lP,{pluginName:"removeOnSpill"}),Er.mount(new Qve),Er.mount(lP,aP);function sP(t){t.parentElement!==null&&t.parentElement.removeChild(t)}function PH(t,e,n){const r=n===0?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,r)}function eme(){return typeof window<"u"?window.console:global.console}const tme=eme();function nme(t){const e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}const rme=/-(\w)/g,ome=nme(t=>t.replace(rme,(e,n)=>n.toUpperCase())),kH=["Start","Add","Remove","Update","End"],VH=["Choose","Unchoose","Sort","Filter","Clone"],RH=["Move"],ime=[RH,kH,VH].flatMap(t=>t).map(t=>`on${t}`),uP={manage:RH,manageAndEmit:kH,emit:VH};function ame(t){return ime.indexOf(t)!==-1}const lme=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function sme(t){return lme.includes(t)}function ume(t){return["transition-group","TransitionGroup"].includes(t)}function LH(t){return["id","class","role","style"].includes(t)||t.startsWith("data-")||t.startsWith("aria-")||t.startsWith("on")}function BH(t){return t.reduce((e,[n,r])=>(e[n]=r,e),{})}function cme({$attrs:t,componentData:e={}}){return{...BH(Object.entries(t).filter(([r,o])=>LH(r))),...e}}function fme({$attrs:t,callBackBuilder:e}){const n=BH(FH(t));Object.entries(e).forEach(([o,i])=>{uP[o].forEach(a=>{n[`on${a}`]=i(a)})});const r=`[data-draggable]${n.draggable||""}`;return{...n,draggable:r}}function FH(t){return Object.entries(t).filter(([e,n])=>!LH(e)).map(([e,n])=>[ome(e),n]).filter(([e,n])=>!ame(e))}const jH=({el:t})=>t,dme=(t,e)=>t.__draggable_context=e,$H=t=>t.__draggable_context;class pme{constructor({nodes:{header:e,default:n,footer:r},root:o,realList:i}){this.defaultNodes=n,this.children=[...e,...n,...r],this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=i}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,n){const{tag:r,children:o,_isRootComponent:i}=this;return e(r,n,i?{default:()=>o}:o)}updated(){const{defaultNodes:e,realList:n}=this;e.forEach((r,o)=>{dme(jH(r),{element:n[o],index:o})})}getUnderlyingVm(e){return $H(e)}getVmIndexFromDomIndex(e,n){const{defaultNodes:r}=this,{length:o}=r,i=n.children,a=i.item(e);if(a===null)return o;const l=$H(a);if(l)return l.index;if(o===0)return 0;const u=jH(r[0]),c=[...i].findIndex(f=>f===u);return e<c?0:o}}function hme(t,e){const n=t[e];return n?n():[]}function gme({$slots:t,realList:e,getKey:n}){const r=e||[],[o,i]=["header","footer"].map(u=>hme(t,u)),{item:a}=t;if(!a)throw new Error("draggable element must have an item slot");const l=r.flatMap((u,c)=>a({element:u,index:c}).map(f=>(f.key=n(u),f.props={...f.props||{},"data-draggable":!0},f)));if(l.length!==r.length)throw new Error("Item slot must have only one child");return{header:o,footer:i,default:l}}function vme(t){const e=ume(t),n=!sme(t)&&!e;return{transition:e,externalComponent:n,tag:n?s.resolveComponent(t):e?s.TransitionGroup:t}}function mme({$slots:t,tag:e,realList:n,getKey:r}){const o=gme({$slots:t,realList:n,getKey:r}),i=vme(e);return new pme({nodes:o,root:i,realList:n})}function zH(t,e){s.nextTick(()=>this.$emit(t.toLowerCase(),e))}function HH(t){return(e,n)=>{if(this.realList!==null)return this[`onDrag${t}`](e,n)}}function yme(t){const e=HH.call(this,t);return(n,r)=>{e.call(this,n,r),zH.call(this,t,n)}}let cP=null;const bme={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},_me=["update:modelValue","change",...[...uP.manageAndEmit,...uP.emit].map(t=>t.toLowerCase())],fh=s.defineComponent({name:"draggable",inheritAttrs:!1,props:bme,emits:_me,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:t,$attrs:e,tag:n,componentData:r,realList:o,getKey:i}=this,a=mme({$slots:t,tag:n,realList:o,getKey:i});this.componentStructure=a;const l=cme({$attrs:e,componentData:r});return a.render(s.h,l)}catch(t){return this.error=!0,s.h("pre",{style:{color:"red"}},t.stack)}},created(){this.list!==null&&this.modelValue!==null&&tme.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:t,$el:e,componentStructure:n}=this;n.updated();const r=fme({$attrs:t,callBackBuilder:{manageAndEmit:i=>yme.call(this,i),emit:i=>zH.bind(this,i),manage:i=>HH.call(this,i)}}),o=e.nodeType===1?e:e.parentElement;this._sortable=new Er(o,r),this.targetDomElement=o,o.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:t}=this;return t||this.modelValue},getKey(){const{itemKey:t}=this;return typeof t=="function"?t:e=>e[t]}},watch:{$attrs:{handler(t){const{_sortable:e}=this;e&&FH(t).forEach(([n,r])=>{e.option(n,r)})},deep:!0}},methods:{getUnderlyingVm(t){return this.componentStructure.getUnderlyingVm(t)||null},getUnderlyingPotencialDraggableComponent(t){return t.__draggable_component__},emitChanges(t){s.nextTick(()=>this.$emit("change",t))},alterList(t){if(this.list){t(this.list);return}const e=[...this.modelValue];t(e),this.$emit("update:modelValue",e)},spliceList(){const t=e=>e.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=r=>r.splice(e,0,r.splice(t,1)[0]);this.alterList(n)},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getUnderlyingPotencialDraggableComponent(t);if(!n)return{component:n};const r=n.realList,o={list:r,component:n};return t!==e&&r?{...n.getUnderlyingVm(e)||{},...o}:o},getVmIndexFromDomIndex(t){return this.componentStructure.getVmIndexFromDomIndex(t,this.targetDomElement)},onDragStart(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),cP=t.item},onDragAdd(t){const e=t.item._underlying_vm_;if(e===void 0)return;sP(t.item);const n=this.getVmIndexFromDomIndex(t.newIndex);this.spliceList(n,0,e);const r={element:e,newIndex:n};this.emitChanges({added:r})},onDragRemove(t){if(PH(this.$el,t.item,t.oldIndex),t.pullMode==="clone"){sP(t.clone);return}const{index:e,element:n}=this.context;this.spliceList(e,1);const r={element:n,oldIndex:e};this.emitChanges({removed:r})},onDragUpdate(t){sP(t.item),PH(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndexFromDomIndex(t.newIndex);this.updatePosition(e,n);const r={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex(t,e){if(!t.element)return 0;const n=[...e.to.children].filter(a=>a.style.display!=="none"),r=n.indexOf(e.related),o=t.component.getVmIndexFromDomIndex(r);return n.indexOf(cP)!==-1||!e.willInsertAfter?o:o+1},onDragMove(t,e){const{move:n,realList:r}=this;if(!n||!r)return!0;const o=this.getRelatedContextFromMoveEvent(t),i=this.computeFutureIndex(o,t),a={...this.context,futureIndex:i},l={...t,relatedContext:o,draggedContext:a};return n(l,e)},onDragEnd(){cP=null}}}),sa=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},wme={class:"rounded-sm bg-white flex flex-col h-full p-2 sy_shadow dark:border-slate-800 dark:bg-black"},xme={class:"flex items-center justify-between"},Sme={class:"font-bold text-lg"},Cme={class:"flex"},Eme={key:0,class:"h-[1px] bg-gray-100 w-full my-1 dark:bg-gray-400"},Ome=Object.freeze(Object.defineProperty({__proto__:null,default:sa(Object.assign({name:"widget-card"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},setup(t){let e=t;e.designer.setVueIncetance(e.widget.id,s.getCurrentInstance());let n=s.computed(()=>e.widget.props);e.designer.eventHandle({eventType:"onCreated",widget:e.widget});const r=o=>{e.designer.eventHandle({eventType:"onButtonClick",value:o,widget:e.widget})};return s.onMounted(()=>{e.designer.eventHandle({eventType:"onMounted",widget:e.widget})}),(o,i)=>{const a=s.resolveComponent("el-button"),l=s.resolveComponent("commonContainer");return s.openBlock(),s.createElementBlock("div",wme,[s.createElementVNode("div",xme,[s.createElementVNode("div",Sme,s.toDisplayString(s.unref(n).title),1),s.createElementVNode("div",Cme,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(n).list,(u,c)=>(s.openBlock(),s.createBlock(a,{link:"",onClick:f=>r(u.value),key:c,size:"small"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(u.label),1)]),_:2},1032,["onClick"]))),128))])]),s.unref(n).hasSplitLine?(s.openBlock(),s.createElementBlock("div",Eme)):s.createCommentVNode("",!0),s.createVNode(s.unref(fh),{ghostClass:"ghost",handle:".handle",list:s.unref(e).widget.widgetList,class:"min-h-20 content-start flex-wrap h-full flex-1",style:s.normalizeStyle({flexWrap:s.unref(n).flexWrap?"wrap":"nowrap",display:s.unref(n).flex?"flex":"block",flexDirection:s.unref(n).flexDirection,alignItems:s.unref(n).alignItems,justifyContent:s.unref(n).justifyContent}),group:{name:"dragGroup",put:!0},"item-key":"id"},{item:s.withCtx(({element:u})=>[s.createVNode(l,{designer:s.unref(e).designer,widget:u,parentWidget:s.unref(e).widget,style:s.normalizeStyle({...s.unref(e).designer.formatStyle(u)})},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+u.type),{ref:u.id,widget:u,designer:s.unref(e).designer},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.$slots,(c,f)=>s.renderSlot(o.$slots,f,{},void 0,!0)),256))]),_:2},1032,["widget","designer"]))]),_:2},1032,["designer","widget","parentWidget","style"])]),_:3},8,["list","style"])])}}}),[["__scopeId","data-v-502506a2"]])},Symbol.toStringTag,{value:"Module"})),Tme=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-cascader"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null},tableItemData:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());let i=s.computed(()=>r.widget.props);const a=s.computed({set:f=>{let d=null;f&&f.length>0&&(i.value.postLastLevel?d=f[f.length-1]:d=f.join(",")),i.value.isTableItem?o("update:modelValue",d):i.value.value=d},get:()=>{let f;if(i.value.isTableItem?f=r.modelValue||i.value.value:f=i.value.value,f&&typeof f=="string")if(i.value.postLastLevel){if(i.value.options)return u(i.value.options,f)}else return f.split(",");return null}}),l=f=>{r.designer.eventHandle({eventType:"onChange",value:f,tableItemData:r.tableItemData,widget:r.widget})},u=(f,d)=>{for(let p of f)if(p[i.value.propsChildren]&&p[i.value.propsChildren].length){const h=u(p[i.value.propsChildren],d);if(h)return[p[i.value.propsKey],...h]}else if(p[i.value.propsKey]===d)return[p[i.value.propsKey]];return null},c=f=>{i.value.options=f};return r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:f,httpRes:d})=>{f&&(i.value.options=f)}}),r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:l,setOption:c}),(f,d)=>{const p=s.resolveComponent("el-cascader"),h=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(h,{props:s.unref(i)},{default:s.withCtx(()=>[s.createVNode(p,{class:"w-full",modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=g=>a.value=g),options:s.unref(i).options,size:s.unref(i).size,disabled:s.unref(i).isDetail||s.unref(i).disabled,clearable:s.unref(i).clearable,filterable:"","show-all-levels":s.unref(i).showAllLevels,props:{label:s.unref(i).propsLabel,value:s.unref(i).propsKey,children:s.unref(i).propsChildren},onChange:l},null,8,["modelValue","options","size","disabled","clearable","show-all-levels","props"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Dme=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-checkCode"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());let i=s.computed(()=>r.widget.props);const a=s.ref(!1),l=s.ref(i.value.timeSec),u=s.computed({set:g=>{i.value.isTableItem?o("update:modelValue",g):i.value.value=g},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),c=()=>{r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:g,httpRes:b})=>{if(g===!0){a.value=!0;let w=setInterval(()=>{l.value--,l.value<=0&&(clearInterval(w),l.value=i.value.timeSec,a.value=!1)},1e3)}}})},f=g=>{i.value.isTrim&&(i.value.value=r.designer.$utils.trim(g)),r.designer.eventHandle({eventType:"onChange",value:i.value.value,widget:r.widget})},d=g=>{r.designer.eventHandle({eventType:"onInput",value:g,widget:r.widget})},p=()=>{r.designer.eventHandle({eventType:"onFocus",value:r.widget.props.value,widget:r.widget})},h=g=>{r.designer.eventHandle({eventType:"onBlur",value:r.widget.props.value,widget:r.widget})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({sendCode:c,changeHandle:f}),(g,b)=>{const w=s.resolveComponent("el-button"),x=s.resolveComponent("el-input"),C=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(C,{props:s.unref(i)},{default:s.withCtx(()=>[s.createVNode(x,{onChange:f,onInput:d,onFocus:p,modelValue:u.value,"onUpdate:modelValue":b[0]||(b[0]=O=>u.value=O),type:s.unref(i).type,size:s.unref(i).size,onBlur:h,placeholder:s.unref(i).placeholder,disabled:s.unref(i).disabled,readonly:s.unref(i).readonly,rows:s.unref(i).rows,maxlength:s.unref(i).maxlength,"show-word-limit":s.unref(i).showLimit},{append:s.withCtx(()=>[s.createVNode(w,{onClick:c,disabled:a.value,loading:a.value,class:"flex items-center"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(a.value?`重新发送(${l.value}s)`:"发送验证码"),1)]),_:1},8,["disabled","loading"])]),_:1},8,["modelValue","type","size","placeholder","disabled","readonly","rows","maxlength","show-word-limit"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Ame=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-checkbox"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})},modelValue:{type:null},tableItemData:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());const o=n;let i=s.computed(()=>r.widget.props);const a=s.computed({set:u=>{i.value.isTableItem?o("update:modelValue",u):i.value.value=u},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),l=u=>{r.designer.eventHandle({eventType:"onChange",value:u,widget:r.widget,tableItemData:r.tableItemData})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:u,httpRes:c})=>{u&&(i.value.list=u)}}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:l}),(u,c)=>{const f=s.resolveComponent("el-checkbox"),d=s.resolveComponent("el-checkbox-button"),p=s.resolveComponent("el-checkbox-group"),h=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(h,{props:s.unref(i)},{default:s.withCtx(()=>[s.createVNode(p,{disabled:s.unref(i).isDetail||s.unref(i).disabled,size:s.unref(i).size,onChange:l,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=g=>a.value=g)},{default:s.withCtx(()=>[s.unref(i).isButton?s.createCommentVNode("",!0):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(s.unref(i).list,(g,b)=>(s.openBlock(),s.createBlock(f,{class:"w-full",key:g.value,style:s.normalizeStyle({width:s.unref(i).isBlock?"":"auto"}),value:g.value},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(g.label),1)]),_:2},1032,["style","value"]))),128)),s.unref(i).isButton?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(s.unref(i).list,(g,b)=>(s.openBlock(),s.createBlock(d,{key:g.value,value:g.value,label:g.label},null,8,["value","label"]))),128)):s.createCommentVNode("",!0)]),_:1},8,["disabled","size","modelValue"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Nme={class:"flex w-full h-full bg-[#171717]","element-loading-text":"编辑器加载中","element-loading-background":"rgba(0, 0, 0, 1)"},Mme={key:0,class:"tree_wrap flex-none w-[320px] border"},Ime={class:"h-full w-full flex flex-col flex-1"},Pme={key:0,class:"head py-2 px-2 box-border bg-[#191c20]"},kme={key:0,class:"text-[#d25462] italic"},Vme={class:"text-[#d4d4d4]"},Rme={key:1,class:"footer text-[#ffd700] bg-[#2f3129] py-2 px-2"},fP={__name:"editor",props:{modelValue:[String,null],designer:{type:Object,default:{}},width:{type:[String],default:"100%"},height:{type:[String],default:"100%"},language:{type:[String],default:"javascript"},theme:{type:[String],default:"vs-dark"},params:{type:[Array],default:[]},minimap:{type:[Boolean],default:!0},pure:{type:[Boolean],default:!1},tabSize:{type:[Number],default:4},isAsync:{type:[Boolean],default:!0},fontSize:{type:[Number],default:12}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=s.ref(null),a=s.ref(!0);let l=null;s.onMounted(()=>{require.config({paths:{vs:"http://cdn.sunform.tech/libs/monaco-editor/min/vs","vs/language/zh-hans":"http://cdn.sunform.tech/libs/monaco-editor/min/vs/base/common/worker/simpleWorker.nls.zh-cn.min.js"}}),require(["vs/editor/editor.main"],function(){window.MonacoEnvironment={getWorkerUrl:function(h,g){return g==="json"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/json/jsonWorker.min.js":g==="css"||g==="scss"||g==="less"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/css/cssWorker.min.js":g==="html"||g==="handlebars"||g==="razor"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/html/htmlWorker.min.js":g==="typescript"||g==="javascript"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/typescript/tsWorker.min.js":"http://cdn.sunform.tech/libs/monaco-editor/min/vs/base/worker/workerMain.min.js"}},i.value?(l=monaco.editor.create(i.value,{value:r.modelValue||"",language:r.language,theme:r.theme,automaticLayout:!0,minimap:{enabled:r.minimap},folding:!0,foldingStrategy:"auto",renderLineHighlight:"all",scrollBeyondLastLine:!1,quickSuggestions:!0,suggestOnTriggerCharacters:!0,parameterHints:{enabled:!0},autoClosingBrackets:"always",autoClosingQuotes:"always",guides:{indentation:!0},autoIndent:"full",formatOnType:!0,formatOnPaste:!0,wordWrap:"off",tabSize:r.tabSize,locale:"zh-cn",fontSize:r.fontSize,suggest:{preview:!0}}),l.addAction({id:"show-component-info",label:"显示组件方法",keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.I],contextMenuGroupId:"operation",contextMenuOrder:1.5,run:function(h){const g=h.getModel(),b=h.getSelection(),w=g.getWordAtPosition(b.getStartPosition());w&&w.word.startsWith("datatable_")&&(console.log("组件名称:",w.word),showComponentInfo(w.word))}}),l.onDidChangeModelContent(h=>{o("update:modelValue",l.getValue())}),setTimeout(()=>{f(),a.value=!1},20),s.watch(()=>r.modelValue,h=>{},{deep:!0,immediate:!0}),monaco.languages.registerCompletionItemProvider("javascript",{provideCompletionItems:function(h,g){return{suggestions:[{label:"clog",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"console.log( $1 );",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"打印语句"},{label:"jp",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"console.log(JSON.parse(JSON.stringify( $1 )))",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"打印原始对象"},{label:"each",kind:monaco.languages.CompletionItemKind.Snippet,insertText:`$1.forEach((e,i)=>{
|
6
|
+
*/function dH(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Af(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dH(Object(n),!0).forEach(function(r){Tve(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dH(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function HE(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?HE=function(e){return typeof e}:HE=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HE(t)}function Tve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ud(){return Ud=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ud.apply(this,arguments)}function Dve(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Ave(t,e){if(t==null)return{};var n=Dve(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var Nve="1.14.0";function Gd(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Yd=Gd(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Mw=Gd(/Edge/i),pH=Gd(/firefox/i),Iw=Gd(/safari/i)&&!Gd(/chrome/i)&&!Gd(/android/i),hH=Gd(/iP(ad|od|hone)/i),Mve=Gd(/chrome/i)&&Gd(/android/i),gH={capture:!1,passive:!1};function Ho(t,e,n){t.addEventListener(e,n,!Yd&&gH)}function Mo(t,e,n){t.removeEventListener(e,n,!Yd&&gH)}function WE(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function Ive(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Nf(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&WE(t,e):WE(t,e))||r&&t===n)return t;if(t===n)break}while(t=Ive(t))}return null}var vH=/\s+/g;function eu(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(vH," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(vH," ")}}function Cr(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function Xy(t,e){var n="";if(typeof t=="string")n=t;else do{var r=Cr(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function mH(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function Mf(){var t=document.scrollingElement;return t||document.documentElement}function ka(t,e,n,r,o){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,l,u,c,f,d;if(t!==window&&t.parentNode&&t!==Mf()?(i=t.getBoundingClientRect(),a=i.top,l=i.left,u=i.bottom,c=i.right,f=i.height,d=i.width):(a=0,l=0,u=window.innerHeight,c=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!Yd))do if(o&&o.getBoundingClientRect&&(Cr(o,"transform")!=="none"||n&&Cr(o,"position")!=="static")){var p=o.getBoundingClientRect();a-=p.top+parseInt(Cr(o,"border-top-width")),l-=p.left+parseInt(Cr(o,"border-left-width")),u=a+i.height,c=l+i.width;break}while(o=o.parentNode);if(r&&t!==window){var h=Xy(o||t),g=h&&h.a,b=h&&h.d;h&&(a/=b,l/=g,d/=g,f/=b,u=a+f,c=l+d)}return{top:a,left:l,bottom:u,right:c,width:d,height:f}}}function yH(t,e,n){for(var r=sh(t,!0),o=ka(t)[e];r;){var i=ka(r)[n],a=void 0;if(a=o>=i,!a)return r;if(r===Mf())break;r=sh(r,!1)}return!1}function Ky(t,e,n,r){for(var o=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==Er.ghost&&(r||a[i]!==Er.dragged)&&Nf(a[i],n.draggable,t,!1)){if(o===e)return a[i];o++}i++}return null}function GI(t,e){for(var n=t.lastElementChild;n&&(n===Er.ghost||Cr(n,"display")==="none"||e&&!WE(n,e));)n=n.previousElementSibling;return n||null}function Bu(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Er.clone&&(!e||WE(t,e))&&n++;return n}function bH(t){var e=0,n=0,r=Mf();if(t)do{var o=Xy(t),i=o.a,a=o.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function Pve(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function sh(t,e){if(!t||!t.getBoundingClientRect)return Mf();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Cr(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Mf();if(r||e)return n;r=!0}}while(n=n.parentNode);return Mf()}function kve(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function YI(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Pw;function _H(t,e){return function(){if(!Pw){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),Pw=setTimeout(function(){Pw=void 0},e)}}}function Vve(){clearTimeout(Pw),Pw=void 0}function wH(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function xH(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var tu="Sortable"+new Date().getTime();function Rve(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(Cr(o,"display")==="none"||o===Er.ghost)){t.push({target:o,rect:ka(o)});var i=Af({},t[t.length-1].rect);if(o.thisAnimationDuration){var a=Xy(o,!0);a&&(i.top-=a.f,i.left-=a.e)}o.fromRect=i}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(Pve(t,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var i=!1,a=0;t.forEach(function(l){var u=0,c=l.target,f=c.fromRect,d=ka(c),p=c.prevFromRect,h=c.prevToRect,g=l.rect,b=Xy(c,!0);b&&(d.top-=b.f,d.left-=b.e),c.toRect=d,c.thisAnimationDuration&&YI(p,d)&&!YI(f,d)&&(g.top-d.top)/(g.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(u=Bve(g,p,h,o.options)),YI(d,f)||(c.prevFromRect=f,c.prevToRect=d,u||(u=o.options.animation),o.animate(c,g,d,u)),u&&(i=!0,a=Math.max(a,u),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},u),c.thisAnimationDuration=u)}),clearTimeout(e),i?e=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),t=[]},animate:function(r,o,i,a){if(a){Cr(r,"transition",""),Cr(r,"transform","");var l=Xy(this.el),u=l&&l.a,c=l&&l.d,f=(o.left-i.left)/(u||1),d=(o.top-i.top)/(c||1);r.animatingX=!!f,r.animatingY=!!d,Cr(r,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=Lve(r),Cr(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),Cr(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Cr(r,"transition",""),Cr(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function Lve(t){return t.offsetWidth}function Bve(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var Zy=[],qI={initializeByDefault:!0},kw={mount:function(e){for(var n in qI)qI.hasOwnProperty(n)&&!(n in e)&&(e[n]=qI[n]);Zy.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Zy.push(e)},pluginEvent:function(e,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var i=e+"Global";Zy.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][i]&&n[a.pluginName][i](Af({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][e]&&n[a.pluginName][e](Af({sortable:n},r)))})},initializePlugins:function(e,n,r,o){Zy.forEach(function(l){var u=l.pluginName;if(!(!e.options[u]&&!l.initializeByDefault)){var c=new l(e,n,e.options);c.sortable=e,c.options=e.options,e[u]=c,Ud(r,c.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);typeof a<"u"&&(e.options[i]=a)}},getEventProperties:function(e,n){var r={};return Zy.forEach(function(o){typeof o.eventProperties=="function"&&Ud(r,o.eventProperties.call(n[o.pluginName],e))}),r},modifyOption:function(e,n,r){var o;return Zy.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(e[i.pluginName],r))}),o}};function Fve(t){var e=t.sortable,n=t.rootEl,r=t.name,o=t.targetEl,i=t.cloneEl,a=t.toEl,l=t.fromEl,u=t.oldIndex,c=t.newIndex,f=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,h=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[tu],!!e){var b,w=e.options,x="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Yd&&!Mw?b=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(r,!0,!0)),b.to=a||n,b.from=l||n,b.item=o||n,b.clone=i,b.oldIndex=u,b.newIndex=c,b.oldDraggableIndex=f,b.newDraggableIndex=d,b.originalEvent=p,b.pullMode=h?h.lastPutMode:void 0;var C=Af(Af({},g),kw.getEventProperties(r,e));for(var O in C)b[O]=C[O];n&&n.dispatchEvent(b),w[x]&&w[x].call(e,b)}}var jve=["evt"],Ds=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,i=Ave(r,jve);kw.pluginEvent.bind(Er)(e,n,Af({dragEl:wn,parentEl:Yi,ghostEl:Gr,rootEl:Ni,nextEl:lv,lastDownEl:UE,cloneEl:qi,cloneHidden:uh,dragStarted:Rw,putSortable:fl,activeSortable:Er.active,originalEvent:o,oldIndex:Jy,oldDraggableIndex:Vw,newIndex:nu,newDraggableIndex:ch,hideGhostForTarget:AH,unhideGhostForTarget:NH,cloneNowHidden:function(){uh=!0},cloneNowShown:function(){uh=!1},dispatchSortableEvent:function(l){Jl({sortable:n,name:l,originalEvent:o})}},i))};function Jl(t){Fve(Af({putSortable:fl,cloneEl:qi,targetEl:wn,rootEl:Ni,oldIndex:Jy,oldDraggableIndex:Vw,newIndex:nu,newDraggableIndex:ch},t))}var wn,Yi,Gr,Ni,lv,UE,qi,uh,Jy,nu,Vw,ch,GE,fl,Qy=!1,YE=!1,qE=[],sv,Ic,XI,KI,SH,CH,Rw,eb,Lw,Bw=!1,XE=!1,KE,Ml,ZI=[],JI=!1,ZE=[],JE=typeof document<"u",QE=hH,EH=Mw||Yd?"cssFloat":"float",$ve=JE&&!Mve&&!hH&&"draggable"in document.createElement("div"),OH=function(){if(JE){if(Yd)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),TH=function(e,n){var r=Cr(e),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=Ky(e,0,n),a=Ky(e,1,n),l=i&&Cr(i),u=a&&Cr(a),c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ka(i).width,f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+ka(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return a&&(u.clear==="both"||u.clear===d)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||c>=o&&r[EH]==="none"||a&&r[EH]==="none"&&c+f>o)?"vertical":"horizontal"},zve=function(e,n,r){var o=r?e.left:e.top,i=r?e.right:e.bottom,a=r?e.width:e.height,l=r?n.left:n.top,u=r?n.right:n.bottom,c=r?n.width:n.height;return o===l||i===u||o+a/2===l+c/2},Hve=function(e,n){var r;return qE.some(function(o){var i=o[tu].options.emptyInsertThreshold;if(!(!i||GI(o))){var a=ka(o),l=e>=a.left-i&&e<=a.right+i,u=n>=a.top-i&&n<=a.bottom+i;if(l&&u)return r=o}}),r},DH=function(e){function n(i,a){return function(l,u,c,f){var d=l.options.group.name&&u.options.group.name&&l.options.group.name===u.options.group.name;if(i==null&&(a||d))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return n(i(l,u,c,f),a)(l,u,c,f);var p=(a?l:u).options.group.name;return i===!0||typeof i=="string"&&i===p||i.join&&i.indexOf(p)>-1}}var r={},o=e.group;(!o||HE(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,e.group=r},AH=function(){!OH&&Gr&&Cr(Gr,"display","none")},NH=function(){!OH&&Gr&&Cr(Gr,"display","")};JE&&document.addEventListener("click",function(t){if(YE)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),YE=!1,!1},!0);var uv=function(e){if(wn){e=e.touches?e.touches[0]:e;var n=Hve(e.clientX,e.clientY);if(n){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[tu]._onDragOver(r)}}},Wve=function(e){wn&&wn.parentNode[tu]._isOutsideThisEl(e.target)};function Er(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Ud({},e),t[tu]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return TH(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Er.supportPointer!==!1&&"PointerEvent"in window&&!Iw,emptyInsertThreshold:5};kw.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);DH(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:$ve,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?Ho(t,"pointerdown",this._onTapStart):(Ho(t,"mousedown",this._onTapStart),Ho(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ho(t,"dragover",this),Ho(t,"dragenter",this)),qE.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Ud(this,Rve())}Er.prototype={constructor:Er,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(eb=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,wn):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,o=this.options,i=o.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(l||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,f=o.filter;if(Jve(r),!wn&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||o.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Iw&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=Nf(u,o.draggable,r,!1),!(u&&u.animated)&&UE!==u)){if(Jy=Bu(u),Vw=Bu(u,o.draggable),typeof f=="function"){if(f.call(this,e,u,this)){Jl({sortable:n,rootEl:c,name:"filter",targetEl:u,toEl:r,fromEl:r}),Ds("filter",n,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=Nf(c,d.trim(),r,!1),d)return Jl({sortable:n,rootEl:d,name:"filter",targetEl:u,fromEl:r,toEl:r}),Ds("filter",n,{evt:e}),!0}),f)){i&&e.cancelable&&e.preventDefault();return}o.handle&&!Nf(c,o.handle,r,!1)||this._prepareDragStart(e,l,u)}}},_prepareDragStart:function(e,n,r){var o=this,i=o.el,a=o.options,l=i.ownerDocument,u;if(r&&!wn&&r.parentNode===i){var c=ka(r);if(Ni=i,wn=r,Yi=wn.parentNode,lv=wn.nextSibling,UE=r,GE=a.group,Er.dragged=wn,sv={target:wn,clientX:(n||e).clientX,clientY:(n||e).clientY},SH=sv.clientX-c.left,CH=sv.clientY-c.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,wn.style["will-change"]="all",u=function(){if(Ds("delayEnded",o,{evt:e}),Er.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!pH&&o.nativeDraggable&&(wn.draggable=!0),o._triggerDragStart(e,n),Jl({sortable:o,name:"choose",originalEvent:e}),eu(wn,a.chosenClass,!0)},a.ignore.split(",").forEach(function(f){mH(wn,f.trim(),QI)}),Ho(l,"dragover",uv),Ho(l,"mousemove",uv),Ho(l,"touchmove",uv),Ho(l,"mouseup",o._onDrop),Ho(l,"touchend",o._onDrop),Ho(l,"touchcancel",o._onDrop),pH&&this.nativeDraggable&&(this.options.touchStartThreshold=4,wn.draggable=!0),Ds("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Mw||Yd))){if(Er.eventCanceled){this._onDrop();return}Ho(l,"mouseup",o._disableDelayedDrag),Ho(l,"touchend",o._disableDelayedDrag),Ho(l,"touchcancel",o._disableDelayedDrag),Ho(l,"mousemove",o._delayedDragTouchMoveHandler),Ho(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&Ho(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(u,a.delay)}else u()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){wn&&QI(wn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Mo(e,"mouseup",this._disableDelayedDrag),Mo(e,"touchend",this._disableDelayedDrag),Mo(e,"touchcancel",this._disableDelayedDrag),Mo(e,"mousemove",this._delayedDragTouchMoveHandler),Mo(e,"touchmove",this._delayedDragTouchMoveHandler),Mo(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?Ho(document,"pointermove",this._onTouchMove):n?Ho(document,"touchmove",this._onTouchMove):Ho(document,"mousemove",this._onTouchMove):(Ho(wn,"dragend",this),Ho(Ni,"dragstart",this._onDragStart));try{document.selection?tO(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Qy=!1,Ni&&wn){Ds("dragStarted",this,{evt:n}),this.nativeDraggable&&Ho(document,"dragover",Wve);var r=this.options;!e&&eu(wn,r.dragClass,!1),eu(wn,r.ghostClass,!0),Er.active=this,e&&this._appendGhost(),Jl({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ic){this._lastX=Ic.clientX,this._lastY=Ic.clientY,AH();for(var e=document.elementFromPoint(Ic.clientX,Ic.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ic.clientX,Ic.clientY),e!==n);)n=e;if(wn.parentNode[tu]._isOutsideThisEl(e),n)do{if(n[tu]){var r=void 0;if(r=n[tu]._onDragOver({clientX:Ic.clientX,clientY:Ic.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);NH()}},_onTouchMove:function(e){if(sv){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,i=e.touches?e.touches[0]:e,a=Gr&&Xy(Gr,!0),l=Gr&&a&&a.a,u=Gr&&a&&a.d,c=QE&&Ml&&bH(Ml),f=(i.clientX-sv.clientX+o.x)/(l||1)+(c?c[0]-ZI[0]:0)/(l||1),d=(i.clientY-sv.clientY+o.y)/(u||1)+(c?c[1]-ZI[1]:0)/(u||1);if(!Er.active&&!Qy){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(Gr){a?(a.e+=f-(XI||0),a.f+=d-(KI||0)):a={a:1,b:0,c:0,d:1,e:f,f:d};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");Cr(Gr,"webkitTransform",p),Cr(Gr,"mozTransform",p),Cr(Gr,"msTransform",p),Cr(Gr,"transform",p),XI=f,KI=d,Ic=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Gr){var e=this.options.fallbackOnBody?document.body:Ni,n=ka(wn,!0,QE,!0,e),r=this.options;if(QE){for(Ml=e;Cr(Ml,"position")==="static"&&Cr(Ml,"transform")==="none"&&Ml!==document;)Ml=Ml.parentNode;Ml!==document.body&&Ml!==document.documentElement?(Ml===document&&(Ml=Mf()),n.top+=Ml.scrollTop,n.left+=Ml.scrollLeft):Ml=Mf(),ZI=bH(Ml)}Gr=wn.cloneNode(!0),eu(Gr,r.ghostClass,!1),eu(Gr,r.fallbackClass,!0),eu(Gr,r.dragClass,!0),Cr(Gr,"transition",""),Cr(Gr,"transform",""),Cr(Gr,"box-sizing","border-box"),Cr(Gr,"margin",0),Cr(Gr,"top",n.top),Cr(Gr,"left",n.left),Cr(Gr,"width",n.width),Cr(Gr,"height",n.height),Cr(Gr,"opacity","0.8"),Cr(Gr,"position",QE?"absolute":"fixed"),Cr(Gr,"zIndex","100000"),Cr(Gr,"pointerEvents","none"),Er.ghost=Gr,e.appendChild(Gr),Cr(Gr,"transform-origin",SH/parseInt(Gr.style.width)*100+"% "+CH/parseInt(Gr.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,o=e.dataTransfer,i=r.options;if(Ds("dragStart",this,{evt:e}),Er.eventCanceled){this._onDrop();return}Ds("setupClone",this),Er.eventCanceled||(qi=xH(wn),qi.draggable=!1,qi.style["will-change"]="",this._hideClone(),eu(qi,this.options.chosenClass,!1),Er.clone=qi),r.cloneId=tO(function(){Ds("clone",r),!Er.eventCanceled&&(r.options.removeCloneOnHide||Ni.insertBefore(qi,wn),r._hideClone(),Jl({sortable:r,name:"clone"}))}),!n&&eu(wn,i.dragClass,!0),n?(YE=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Mo(document,"mouseup",r._onDrop),Mo(document,"touchend",r._onDrop),Mo(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(r,o,wn)),Ho(document,"drop",r),Cr(wn,"transform","translateZ(0)")),Qy=!0,r._dragStartId=tO(r._dragStarted.bind(r,n,e)),Ho(document,"selectstart",r),Rw=!0,Iw&&Cr(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,o,i,a,l=this.options,u=l.group,c=Er.active,f=GE===u,d=l.sort,p=fl||c,h,g=this,b=!1;if(JI)return;function w(Z,ee){Ds(Z,g,Af({evt:e,isOwner:f,axis:h?"vertical":"horizontal",revert:a,dragRect:o,targetRect:i,canSort:d,fromSortable:p,target:r,completed:C,onMove:function(ce,Ae){return eO(Ni,n,wn,o,ce,ka(ce),e,Ae)},changed:O},ee))}function x(){w("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function C(Z){return w("dragOverCompleted",{insertion:Z}),Z&&(f?c._hideClone():c._showClone(g),g!==p&&(eu(wn,fl?fl.options.ghostClass:c.options.ghostClass,!1),eu(wn,l.ghostClass,!0)),fl!==g&&g!==Er.active?fl=g:g===Er.active&&fl&&(fl=null),p===g&&(g._ignoreWhileAnimating=r),g.animateAll(function(){w("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(r===wn&&!wn.animated||r===n&&!r.animated)&&(eb=null),!l.dragoverBubble&&!e.rootEl&&r!==document&&(wn.parentNode[tu]._isOutsideThisEl(e.target),!Z&&uv(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),b=!0}function O(){nu=Bu(wn),ch=Bu(wn,l.draggable),Jl({sortable:g,name:"change",toEl:n,newIndex:nu,newDraggableIndex:ch,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=Nf(r,l.draggable,n,!0),w("dragOver"),Er.eventCanceled)return b;if(wn.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r)return C(!1);if(YE=!1,c&&!l.disabled&&(f?d||(a=Yi!==Ni):fl===this||(this.lastPutMode=GE.checkPull(this,c,wn,e))&&u.checkPut(this,c,wn,e))){if(h=this._getDirection(e,r)==="vertical",o=ka(wn),w("dragOverValid"),Er.eventCanceled)return b;if(a)return Yi=Ni,x(),this._hideClone(),w("revert"),Er.eventCanceled||(lv?Ni.insertBefore(wn,lv):Ni.appendChild(wn)),C(!0);var A=GI(n,l.draggable);if(!A||qve(e,h,this)&&!A.animated){if(A===wn)return C(!1);if(A&&n===e.target&&(r=A),r&&(i=ka(r)),eO(Ni,n,wn,o,r,i,e,!!r)!==!1)return x(),n.appendChild(wn),Yi=n,O(),C(!0)}else if(A&&Yve(e,h,this)){var N=Ky(n,0,l,!0);if(N===wn)return C(!1);if(r=N,i=ka(r),eO(Ni,n,wn,o,r,i,e,!1)!==!1)return x(),n.insertBefore(wn,N),Yi=n,O(),C(!0)}else if(r.parentNode===n){i=ka(r);var I=0,P,V=wn.parentNode!==n,k=!zve(wn.animated&&wn.toRect||o,r.animated&&r.toRect||i,h),F=h?"top":"left",j=yH(r,"top","top")||yH(wn,"top","top"),L=j?j.scrollTop:void 0;eb!==r&&(P=i[F],Bw=!1,XE=!k&&l.invertSwap||V),I=Xve(e,r,i,h,k?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,XE,eb===r);var B;if(I!==0){var H=Bu(wn);do H-=I,B=Yi.children[H];while(B&&(Cr(B,"display")==="none"||B===Gr))}if(I===0||B===r)return C(!1);eb=r,Lw=I;var W=r.nextElementSibling,J=!1;J=I===1;var oe=eO(Ni,n,wn,o,r,i,e,J);if(oe!==!1)return(oe===1||oe===-1)&&(J=oe===1),JI=!0,setTimeout(Gve,30),x(),J&&!W?n.appendChild(wn):r.parentNode.insertBefore(wn,J?W:r),j&&wH(j,0,L-j.scrollTop),Yi=wn.parentNode,P!==void 0&&!XE&&(KE=Math.abs(P-ka(r)[F])),O(),C(!0)}if(n.contains(wn))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Mo(document,"mousemove",this._onTouchMove),Mo(document,"touchmove",this._onTouchMove),Mo(document,"pointermove",this._onTouchMove),Mo(document,"dragover",uv),Mo(document,"mousemove",uv),Mo(document,"touchmove",uv)},_offUpEvents:function(){var e=this.el.ownerDocument;Mo(e,"mouseup",this._onDrop),Mo(e,"touchend",this._onDrop),Mo(e,"pointerup",this._onDrop),Mo(e,"touchcancel",this._onDrop),Mo(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(nu=Bu(wn),ch=Bu(wn,r.draggable),Ds("drop",this,{evt:e}),Yi=wn&&wn.parentNode,nu=Bu(wn),ch=Bu(wn,r.draggable),Er.eventCanceled){this._nulling();return}Qy=!1,XE=!1,Bw=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),eP(this.cloneId),eP(this._dragStartId),this.nativeDraggable&&(Mo(document,"drop",this),Mo(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Iw&&Cr(document.body,"user-select",""),Cr(wn,"transform",""),e&&(Rw&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),Gr&&Gr.parentNode&&Gr.parentNode.removeChild(Gr),(Ni===Yi||fl&&fl.lastPutMode!=="clone")&&qi&&qi.parentNode&&qi.parentNode.removeChild(qi),wn&&(this.nativeDraggable&&Mo(wn,"dragend",this),QI(wn),wn.style["will-change"]="",Rw&&!Qy&&eu(wn,fl?fl.options.ghostClass:this.options.ghostClass,!1),eu(wn,this.options.chosenClass,!1),Jl({sortable:this,name:"unchoose",toEl:Yi,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ni!==Yi?(nu>=0&&(Jl({rootEl:Yi,name:"add",toEl:Yi,fromEl:Ni,originalEvent:e}),Jl({sortable:this,name:"remove",toEl:Yi,originalEvent:e}),Jl({rootEl:Yi,name:"sort",toEl:Yi,fromEl:Ni,originalEvent:e}),Jl({sortable:this,name:"sort",toEl:Yi,originalEvent:e})),fl&&fl.save()):nu!==Jy&&nu>=0&&(Jl({sortable:this,name:"update",toEl:Yi,originalEvent:e}),Jl({sortable:this,name:"sort",toEl:Yi,originalEvent:e})),Er.active&&((nu==null||nu===-1)&&(nu=Jy,ch=Vw),Jl({sortable:this,name:"end",toEl:Yi,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ds("nulling",this),Ni=wn=Yi=Gr=lv=qi=UE=uh=sv=Ic=Rw=nu=ch=Jy=Vw=eb=Lw=fl=GE=Er.dragged=Er.ghost=Er.clone=Er.active=null,ZE.forEach(function(e){e.checked=!0}),ZE.length=XI=KI=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":wn&&(this._onDragOver(e),Uve(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,o=0,i=r.length,a=this.options;o<i;o++)n=r[o],Nf(n,a.draggable,this.el,!1)&&e.push(n.getAttribute(a.dataIdAttr)||Zve(n));return e},sort:function(e,n){var r={},o=this.el;this.toArray().forEach(function(i,a){var l=o.children[a];Nf(l,this.options.draggable,o,!1)&&(r[i]=l)},this),n&&this.captureAnimationState(),e.forEach(function(i){r[i]&&(o.removeChild(r[i]),o.appendChild(r[i]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return Nf(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var o=kw.modifyOption(this,e,n);typeof o<"u"?r[e]=o:r[e]=n,e==="group"&&DH(r)},destroy:function(){Ds("destroy",this);var e=this.el;e[tu]=null,Mo(e,"mousedown",this._onTapStart),Mo(e,"touchstart",this._onTapStart),Mo(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Mo(e,"dragover",this),Mo(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),qE.splice(qE.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!uh){if(Ds("hideClone",this),Er.eventCanceled)return;Cr(qi,"display","none"),this.options.removeCloneOnHide&&qi.parentNode&&qi.parentNode.removeChild(qi),uh=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(uh){if(Ds("showClone",this),Er.eventCanceled)return;wn.parentNode==Ni&&!this.options.group.revertClone?Ni.insertBefore(qi,wn):lv?Ni.insertBefore(qi,lv):Ni.appendChild(qi),this.options.group.revertClone&&this.animate(wn,qi),Cr(qi,"display",""),uh=!1}}};function Uve(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function eO(t,e,n,r,o,i,a,l){var u,c=t[tu],f=c.options.onMove,d;return window.CustomEvent&&!Yd&&!Mw?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=e,u.from=t,u.dragged=n,u.draggedRect=r,u.related=o||e,u.relatedRect=i||ka(e),u.willInsertAfter=l,u.originalEvent=a,t.dispatchEvent(u),f&&(d=f.call(c,u,a)),d}function QI(t){t.draggable=!1}function Gve(){JI=!1}function Yve(t,e,n){var r=ka(Ky(n.el,0,n.options,!0)),o=10;return e?t.clientX<r.left-o||t.clientY<r.top&&t.clientX<r.right:t.clientY<r.top-o||t.clientY<r.bottom&&t.clientX<r.left}function qve(t,e,n){var r=ka(GI(n.el,n.options.draggable)),o=10;return e?t.clientX>r.right+o||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+o}function Xve(t,e,n,r,o,i,a,l){var u=r?t.clientY:t.clientX,c=r?n.height:n.width,f=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!a){if(l&&KE<c*o){if(!Bw&&(Lw===1?u>f+c*i/2:u<d-c*i/2)&&(Bw=!0),Bw)p=!0;else if(Lw===1?u<f+KE:u>d-KE)return-Lw}else if(u>f+c*(1-o)/2&&u<d-c*(1-o)/2)return Kve(e)}return p=p||a,p&&(u<f+c*i/2||u>d-c*i/2)?u>f+c/2?1:-1:0}function Kve(t){return Bu(wn)<Bu(t)?1:-1}function Zve(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function Jve(t){ZE.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&ZE.push(r)}}function tO(t){return setTimeout(t,0)}function eP(t){return clearTimeout(t)}JE&&Ho(document,"touchmove",function(t){(Er.active||Qy)&&t.cancelable&&t.preventDefault()}),Er.utils={on:Ho,off:Mo,css:Cr,find:mH,is:function(e,n){return!!Nf(e,n,e,!1)},extend:kve,throttle:_H,closest:Nf,toggleClass:eu,clone:xH,index:Bu,nextTick:tO,cancelNextTick:eP,detectDirection:TH,getChild:Ky},Er.get=function(t){return t[tu]},Er.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Er.utils=Af(Af({},Er.utils),r.utils)),kw.mount(r)})},Er.create=function(t,e){return new Er(t,e)},Er.version=Nve;var wa=[],Fw,tP,nP=!1,rP,oP,nO,jw;function Qve(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?Ho(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ho(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Ho(document,"touchmove",this._handleFallbackAutoScroll):Ho(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Mo(document,"dragover",this._handleAutoScroll):(Mo(document,"pointermove",this._handleFallbackAutoScroll),Mo(document,"touchmove",this._handleFallbackAutoScroll),Mo(document,"mousemove",this._handleFallbackAutoScroll)),MH(),rO(),Vve()},nulling:function(){nO=tP=Fw=nP=jw=rP=oP=null,wa.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,i=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(i,a);if(nO=n,r||this.options.forceAutoScrollFallback||Mw||Yd||Iw){iP(n,this.options,l,r);var u=sh(l,!0);nP&&(!jw||i!==rP||a!==oP)&&(jw&&MH(),jw=setInterval(function(){var c=sh(document.elementFromPoint(i,a),!0);c!==u&&(u=c,rO()),iP(n,o.options,c,r)},10),rP=i,oP=a)}else{if(!this.options.bubbleScroll||sh(l,!0)===Mf()){rO();return}iP(n,this.options,sh(l,!1),!1)}}},Ud(t,{pluginName:"scroll",initializeByDefault:!0})}function rO(){wa.forEach(function(t){clearInterval(t.pid)}),wa=[]}function MH(){clearInterval(jw)}var iP=_H(function(t,e,n,r){if(e.scroll){var o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,u=Mf(),c=!1,f;tP!==n&&(tP=n,rO(),Fw=e.scroll,f=e.scrollFn,Fw===!0&&(Fw=sh(n,!0)));var d=0,p=Fw;do{var h=p,g=ka(h),b=g.top,w=g.bottom,x=g.left,C=g.right,O=g.width,A=g.height,N=void 0,I=void 0,P=h.scrollWidth,V=h.scrollHeight,k=Cr(h),F=h.scrollLeft,j=h.scrollTop;h===u?(N=O<P&&(k.overflowX==="auto"||k.overflowX==="scroll"||k.overflowX==="visible"),I=A<V&&(k.overflowY==="auto"||k.overflowY==="scroll"||k.overflowY==="visible")):(N=O<P&&(k.overflowX==="auto"||k.overflowX==="scroll"),I=A<V&&(k.overflowY==="auto"||k.overflowY==="scroll"));var L=N&&(Math.abs(C-o)<=a&&F+O<P)-(Math.abs(x-o)<=a&&!!F),B=I&&(Math.abs(w-i)<=a&&j+A<V)-(Math.abs(b-i)<=a&&!!j);if(!wa[d])for(var H=0;H<=d;H++)wa[H]||(wa[H]={});(wa[d].vx!=L||wa[d].vy!=B||wa[d].el!==h)&&(wa[d].el=h,wa[d].vx=L,wa[d].vy=B,clearInterval(wa[d].pid),(L!=0||B!=0)&&(c=!0,wa[d].pid=setInterval((function(){r&&this.layer===0&&Er.active._onTouchMove(nO);var W=wa[this.layer].vy?wa[this.layer].vy*l:0,J=wa[this.layer].vx?wa[this.layer].vx*l:0;typeof f=="function"&&f.call(Er.dragged.parentNode[tu],J,W,t,nO,wa[this.layer].el)!=="continue"||wH(wa[this.layer].el,J,W)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==u&&(p=sh(p,!1)));nP=c}},30),IH=function(e){var n=e.originalEvent,r=e.putSortable,o=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(n){var c=r||i;l();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(f.clientX,f.clientY);u(),c&&!c.el.contains(d)&&(a("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function aP(){}aP.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=Ky(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:IH},Ud(aP,{pluginName:"revertOnSpill"});function lP(){}lP.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:IH},Ud(lP,{pluginName:"removeOnSpill"}),Er.mount(new Qve),Er.mount(lP,aP);function sP(t){t.parentElement!==null&&t.parentElement.removeChild(t)}function PH(t,e,n){const r=n===0?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,r)}function eme(){return typeof window<"u"?window.console:global.console}const tme=eme();function nme(t){const e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}const rme=/-(\w)/g,ome=nme(t=>t.replace(rme,(e,n)=>n.toUpperCase())),kH=["Start","Add","Remove","Update","End"],VH=["Choose","Unchoose","Sort","Filter","Clone"],RH=["Move"],ime=[RH,kH,VH].flatMap(t=>t).map(t=>`on${t}`),uP={manage:RH,manageAndEmit:kH,emit:VH};function ame(t){return ime.indexOf(t)!==-1}const lme=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function sme(t){return lme.includes(t)}function ume(t){return["transition-group","TransitionGroup"].includes(t)}function LH(t){return["id","class","role","style"].includes(t)||t.startsWith("data-")||t.startsWith("aria-")||t.startsWith("on")}function BH(t){return t.reduce((e,[n,r])=>(e[n]=r,e),{})}function cme({$attrs:t,componentData:e={}}){return{...BH(Object.entries(t).filter(([r,o])=>LH(r))),...e}}function fme({$attrs:t,callBackBuilder:e}){const n=BH(FH(t));Object.entries(e).forEach(([o,i])=>{uP[o].forEach(a=>{n[`on${a}`]=i(a)})});const r=`[data-draggable]${n.draggable||""}`;return{...n,draggable:r}}function FH(t){return Object.entries(t).filter(([e,n])=>!LH(e)).map(([e,n])=>[ome(e),n]).filter(([e,n])=>!ame(e))}const jH=({el:t})=>t,dme=(t,e)=>t.__draggable_context=e,$H=t=>t.__draggable_context;class pme{constructor({nodes:{header:e,default:n,footer:r},root:o,realList:i}){this.defaultNodes=n,this.children=[...e,...n,...r],this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=i}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,n){const{tag:r,children:o,_isRootComponent:i}=this;return e(r,n,i?{default:()=>o}:o)}updated(){const{defaultNodes:e,realList:n}=this;e.forEach((r,o)=>{dme(jH(r),{element:n[o],index:o})})}getUnderlyingVm(e){return $H(e)}getVmIndexFromDomIndex(e,n){const{defaultNodes:r}=this,{length:o}=r,i=n.children,a=i.item(e);if(a===null)return o;const l=$H(a);if(l)return l.index;if(o===0)return 0;const u=jH(r[0]),c=[...i].findIndex(f=>f===u);return e<c?0:o}}function hme(t,e){const n=t[e];return n?n():[]}function gme({$slots:t,realList:e,getKey:n}){const r=e||[],[o,i]=["header","footer"].map(u=>hme(t,u)),{item:a}=t;if(!a)throw new Error("draggable element must have an item slot");const l=r.flatMap((u,c)=>a({element:u,index:c}).map(f=>(f.key=n(u),f.props={...f.props||{},"data-draggable":!0},f)));if(l.length!==r.length)throw new Error("Item slot must have only one child");return{header:o,footer:i,default:l}}function vme(t){const e=ume(t),n=!sme(t)&&!e;return{transition:e,externalComponent:n,tag:n?s.resolveComponent(t):e?s.TransitionGroup:t}}function mme({$slots:t,tag:e,realList:n,getKey:r}){const o=gme({$slots:t,realList:n,getKey:r}),i=vme(e);return new pme({nodes:o,root:i,realList:n})}function zH(t,e){s.nextTick(()=>this.$emit(t.toLowerCase(),e))}function HH(t){return(e,n)=>{if(this.realList!==null)return this[`onDrag${t}`](e,n)}}function yme(t){const e=HH.call(this,t);return(n,r)=>{e.call(this,n,r),zH.call(this,t,n)}}let cP=null;const bme={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},_me=["update:modelValue","change",...[...uP.manageAndEmit,...uP.emit].map(t=>t.toLowerCase())],fh=s.defineComponent({name:"draggable",inheritAttrs:!1,props:bme,emits:_me,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:t,$attrs:e,tag:n,componentData:r,realList:o,getKey:i}=this,a=mme({$slots:t,tag:n,realList:o,getKey:i});this.componentStructure=a;const l=cme({$attrs:e,componentData:r});return a.render(s.h,l)}catch(t){return this.error=!0,s.h("pre",{style:{color:"red"}},t.stack)}},created(){this.list!==null&&this.modelValue!==null&&tme.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:t,$el:e,componentStructure:n}=this;n.updated();const r=fme({$attrs:t,callBackBuilder:{manageAndEmit:i=>yme.call(this,i),emit:i=>zH.bind(this,i),manage:i=>HH.call(this,i)}}),o=e.nodeType===1?e:e.parentElement;this._sortable=new Er(o,r),this.targetDomElement=o,o.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:t}=this;return t||this.modelValue},getKey(){const{itemKey:t}=this;return typeof t=="function"?t:e=>e[t]}},watch:{$attrs:{handler(t){const{_sortable:e}=this;e&&FH(t).forEach(([n,r])=>{e.option(n,r)})},deep:!0}},methods:{getUnderlyingVm(t){return this.componentStructure.getUnderlyingVm(t)||null},getUnderlyingPotencialDraggableComponent(t){return t.__draggable_component__},emitChanges(t){s.nextTick(()=>this.$emit("change",t))},alterList(t){if(this.list){t(this.list);return}const e=[...this.modelValue];t(e),this.$emit("update:modelValue",e)},spliceList(){const t=e=>e.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=r=>r.splice(e,0,r.splice(t,1)[0]);this.alterList(n)},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getUnderlyingPotencialDraggableComponent(t);if(!n)return{component:n};const r=n.realList,o={list:r,component:n};return t!==e&&r?{...n.getUnderlyingVm(e)||{},...o}:o},getVmIndexFromDomIndex(t){return this.componentStructure.getVmIndexFromDomIndex(t,this.targetDomElement)},onDragStart(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),cP=t.item},onDragAdd(t){const e=t.item._underlying_vm_;if(e===void 0)return;sP(t.item);const n=this.getVmIndexFromDomIndex(t.newIndex);this.spliceList(n,0,e);const r={element:e,newIndex:n};this.emitChanges({added:r})},onDragRemove(t){if(PH(this.$el,t.item,t.oldIndex),t.pullMode==="clone"){sP(t.clone);return}const{index:e,element:n}=this.context;this.spliceList(e,1);const r={element:n,oldIndex:e};this.emitChanges({removed:r})},onDragUpdate(t){sP(t.item),PH(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndexFromDomIndex(t.newIndex);this.updatePosition(e,n);const r={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex(t,e){if(!t.element)return 0;const n=[...e.to.children].filter(a=>a.style.display!=="none"),r=n.indexOf(e.related),o=t.component.getVmIndexFromDomIndex(r);return n.indexOf(cP)!==-1||!e.willInsertAfter?o:o+1},onDragMove(t,e){const{move:n,realList:r}=this;if(!n||!r)return!0;const o=this.getRelatedContextFromMoveEvent(t),i=this.computeFutureIndex(o,t),a={...this.context,futureIndex:i},l={...t,relatedContext:o,draggedContext:a};return n(l,e)},onDragEnd(){cP=null}}}),sa=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},wme={class:"rounded-sm bg-white flex flex-col h-full p-2 sy_shadow dark:border-slate-800 dark:bg-black"},xme={class:"flex items-center justify-between"},Sme={class:"font-bold text-lg"},Cme={class:"flex"},Eme={key:0,class:"h-[1px] bg-gray-100 w-full my-1 dark:bg-gray-400"},Ome=Object.freeze(Object.defineProperty({__proto__:null,default:sa(Object.assign({name:"widget-card"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},setup(t){let e=t;e.designer.setVueIncetance(e.widget.id,s.getCurrentInstance());let n=s.computed(()=>e.widget.props);e.designer.eventHandle({eventType:"onCreated",widget:e.widget});const r=o=>{e.designer.eventHandle({eventType:"onButtonClick",value:o,widget:e.widget})};return s.onMounted(()=>{e.designer.eventHandle({eventType:"onMounted",widget:e.widget})}),(o,i)=>{const a=s.resolveComponent("el-button"),l=s.resolveComponent("commonContainer");return s.openBlock(),s.createElementBlock("div",wme,[s.createElementVNode("div",xme,[s.createElementVNode("div",Sme,s.toDisplayString(s.unref(n).title),1),s.createElementVNode("div",Cme,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(n).list,(u,c)=>(s.openBlock(),s.createBlock(a,{link:"",onClick:f=>r(u.value),key:c,size:"small"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(u.label),1)]),_:2},1032,["onClick"]))),128))])]),s.unref(n).hasSplitLine?(s.openBlock(),s.createElementBlock("div",Eme)):s.createCommentVNode("",!0),s.createVNode(s.unref(fh),{ghostClass:"ghost",handle:".handle",list:s.unref(e).widget.widgetList,class:"min-h-20 content-start flex-wrap h-full flex-1",style:s.normalizeStyle({flexWrap:s.unref(n).flexWrap?"wrap":"nowrap",display:s.unref(n).flex?"flex":"block",flexDirection:s.unref(n).flexDirection,alignItems:s.unref(n).alignItems,justifyContent:s.unref(n).justifyContent}),group:{name:"dragGroup",put:!0},"item-key":"id"},{item:s.withCtx(({element:u})=>[s.createVNode(l,{designer:s.unref(e).designer,widget:u,parentWidget:s.unref(e).widget,style:s.normalizeStyle({...s.unref(e).designer.formatStyle(u)})},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent("widget-"+u.type),{ref:u.id,widget:u,designer:s.unref(e).designer},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.$slots,(c,f)=>s.renderSlot(o.$slots,f,{},void 0,!0)),256))]),_:2},1032,["widget","designer"]))]),_:2},1032,["designer","widget","parentWidget","style"])]),_:3},8,["list","style"])])}}}),[["__scopeId","data-v-502506a2"]])},Symbol.toStringTag,{value:"Module"})),Tme=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-cascader"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null},tableItemData:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());let i=s.computed(()=>r.widget.props);const a=s.computed({set:f=>{let d=null;f&&f.length>0&&(i.value.postLastLevel?d=f[f.length-1]:d=f.join(",")),i.value.isTableItem?o("update:modelValue",d):i.value.value=d},get:()=>{let f;if(i.value.isTableItem?f=r.modelValue||i.value.value:f=i.value.value,f&&typeof f=="string")if(i.value.postLastLevel){if(i.value.options)return u(i.value.options,f)}else return f.split(",");return null}}),l=f=>{r.designer.eventHandle({eventType:"onChange",value:f,tableItemData:r.tableItemData,widget:r.widget})},u=(f,d)=>{for(let p of f)if(p[i.value.propsChildren]&&p[i.value.propsChildren].length){const h=u(p[i.value.propsChildren],d);if(h)return[p[i.value.propsKey],...h]}else if(p[i.value.propsKey]===d)return[p[i.value.propsKey]];return null},c=f=>{i.value.options=f};return r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:f,httpRes:d})=>{f&&(i.value.options=f)}}),r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:l,setOption:c}),(f,d)=>{const p=s.resolveComponent("el-cascader"),h=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(h,{props:s.unref(i)},{default:s.withCtx(()=>[s.createVNode(p,{class:"w-full",modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=g=>a.value=g),options:s.unref(i).options,size:s.unref(i).size,disabled:s.unref(i).isDetail||s.unref(i).disabled,clearable:s.unref(i).clearable,filterable:"","show-all-levels":s.unref(i).showAllLevels,props:{label:s.unref(i).propsLabel,value:s.unref(i).propsKey,children:s.unref(i).propsChildren},onChange:l},null,8,["modelValue","options","size","disabled","clearable","show-all-levels","props"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Dme=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-checkCode"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());let i=s.computed(()=>r.widget.props);const a=s.ref(!1),l=s.ref(i.value.timeSec),u=s.computed({set:g=>{i.value.isTableItem?o("update:modelValue",g):i.value.value=g},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),c=()=>{r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:g,httpRes:b})=>{if(g===!0){a.value=!0;let w=setInterval(()=>{l.value--,l.value<=0&&(clearInterval(w),l.value=i.value.timeSec,a.value=!1)},1e3)}}})},f=g=>{i.value.isTrim&&(i.value.value=r.designer.$utils.trim(g)),r.designer.eventHandle({eventType:"onChange",value:i.value.value,widget:r.widget})},d=g=>{r.designer.eventHandle({eventType:"onInput",value:g,widget:r.widget})},p=()=>{r.designer.eventHandle({eventType:"onFocus",value:r.widget.props.value,widget:r.widget})},h=g=>{r.designer.eventHandle({eventType:"onBlur",value:r.widget.props.value,widget:r.widget})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({sendCode:c,changeHandle:f}),(g,b)=>{const w=s.resolveComponent("el-button"),x=s.resolveComponent("el-input"),C=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(C,{props:s.unref(i)},{default:s.withCtx(()=>[s.createVNode(x,{onChange:f,onInput:d,onFocus:p,modelValue:u.value,"onUpdate:modelValue":b[0]||(b[0]=O=>u.value=O),type:s.unref(i).type,size:s.unref(i).size,onBlur:h,placeholder:s.unref(i).placeholder,disabled:s.unref(i).disabled,readonly:s.unref(i).readonly,rows:s.unref(i).rows,maxlength:s.unref(i).maxlength,"show-word-limit":s.unref(i).showLimit},{append:s.withCtx(()=>[s.createVNode(w,{onClick:c,disabled:a.value,loading:a.value,class:"flex items-center"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(a.value?`重新发送(${l.value}s)`:"发送验证码"),1)]),_:1},8,["disabled","loading"])]),_:1},8,["modelValue","type","size","placeholder","disabled","readonly","rows","maxlength","show-word-limit"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Ame=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-checkbox"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})},modelValue:{type:null},tableItemData:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;r.designer.setVueIncetance(r.widget.id,s.getCurrentInstance());const o=n;let i=s.computed(()=>r.widget.props);const a=s.computed({set:u=>{i.value.isTableItem?o("update:modelValue",u):i.value.value=u},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),l=u=>{r.designer.eventHandle({eventType:"onChange",value:u,widget:r.widget,tableItemData:r.tableItemData})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:u,httpRes:c})=>{u&&(i.value.list=u)}}),s.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:l}),(u,c)=>{const f=s.resolveComponent("el-checkbox"),d=s.resolveComponent("el-checkbox-button"),p=s.resolveComponent("el-checkbox-group"),h=s.resolveComponent("common-widget-label-container");return s.openBlock(),s.createBlock(h,{props:s.unref(i)},{default:s.withCtx(()=>[s.createVNode(p,{disabled:s.unref(i).isDetail||s.unref(i).disabled,size:s.unref(i).size,onChange:l,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=g=>a.value=g)},{default:s.withCtx(()=>[s.unref(i).isButton?s.createCommentVNode("",!0):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(s.unref(i).list,(g,b)=>(s.openBlock(),s.createBlock(f,{class:"w-full",key:g.value,style:s.normalizeStyle({width:s.unref(i).isBlock?"":"auto"}),value:g.value},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(g.label),1)]),_:2},1032,["style","value"]))),128)),s.unref(i).isButton?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(s.unref(i).list,(g,b)=>(s.openBlock(),s.createBlock(d,{key:g.value,value:g.value,label:g.label},null,8,["value","label"]))),128)):s.createCommentVNode("",!0)]),_:1},8,["disabled","size","modelValue"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Nme={class:"flex w-full h-full bg-[#171717]","element-loading-text":"编辑器加载中","element-loading-background":"rgba(0, 0, 0, 1)"},Mme={key:0,class:"tree_wrap flex-none w-[320px] border"},Ime={class:"h-full w-full flex flex-col flex-1"},Pme={key:0,class:"head py-2 px-2 box-border bg-[#191c20]"},kme={key:0,class:"text-[#d25462] italic"},Vme={class:"text-[#d4d4d4]"},Rme={key:1,class:"footer text-[#ffd700] bg-[#2f3129] py-2 px-2"},fP={__name:"editor",props:{modelValue:[String,null],designer:{type:Object,default:{}},width:{type:[String],default:"100%"},height:{type:[String],default:"100%"},language:{type:[String],default:"javascript"},theme:{type:[String],default:"vs-dark"},params:{type:[Array],default:[]},minimap:{type:[Boolean],default:!0},pure:{type:[Boolean],default:!1},tabSize:{type:[Number],default:4},isAsync:{type:[Boolean],default:!0},fontSize:{type:[Number],default:12}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=s.ref(null),a=s.ref(!0);let l=null;s.onMounted(()=>{require.config({paths:{vs:"http://cdn.sunform.tech/libs/monaco-editor/min/vs","vs/language/zh-hans":"http://cdn.sunform.tech/libs/monaco-editor/min/vs/base/common/worker/simpleWorker.nls.zh-cn.min.js"}}),require(["vs/editor/editor.main"],function(){window.MonacoEnvironment={getWorkerUrl:function(h,g){return g==="json"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/json/jsonWorker.js":g==="css"||g==="scss"||g==="less"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/css/cssWorker.js":g==="html"||g==="handlebars"||g==="razor"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/html/htmlWorker.js":g==="typescript"||g==="javascript"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/typescript/tsWorker.js":"http://cdn.sunform.tech/libs/monaco-editor/min/vs/base/worker/workerMain.js"}},i.value?(l=monaco.editor.create(i.value,{value:r.modelValue||"",language:r.language,theme:r.theme,automaticLayout:!0,minimap:{enabled:r.minimap},folding:!0,foldingStrategy:"auto",renderLineHighlight:"all",scrollBeyondLastLine:!1,quickSuggestions:!0,suggestOnTriggerCharacters:!0,parameterHints:{enabled:!0},autoClosingBrackets:"always",autoClosingQuotes:"always",guides:{indentation:!0},autoIndent:"full",formatOnType:!0,formatOnPaste:!0,wordWrap:"off",tabSize:r.tabSize,locale:"zh-cn",fontSize:r.fontSize,suggest:{preview:!0}}),l.addAction({id:"show-component-info",label:"显示组件方法",keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.I],contextMenuGroupId:"operation",contextMenuOrder:1.5,run:function(h){const g=h.getModel(),b=h.getSelection(),w=g.getWordAtPosition(b.getStartPosition());w&&w.word.startsWith("datatable_")&&(console.log("组件名称:",w.word),showComponentInfo(w.word))}}),l.onDidChangeModelContent(h=>{o("update:modelValue",l.getValue())}),setTimeout(()=>{f(),a.value=!1},20),s.watch(()=>r.modelValue,h=>{},{deep:!0,immediate:!0}),monaco.languages.registerCompletionItemProvider("javascript",{provideCompletionItems:function(h,g){return{suggestions:[{label:"clog",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"console.log( $1 );",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"打印语句"},{label:"jp",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"console.log(JSON.parse(JSON.stringify( $1 )))",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"打印原始对象"},{label:"each",kind:monaco.languages.CompletionItemKind.Snippet,insertText:`$1.forEach((e,i)=>{
|
7
7
|
$2
|
8
8
|
})`,insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"遍历"},{label:"map",kind:monaco.languages.CompletionItemKind.Snippet,insertText:`$1.map((e,i)=>{
|
9
9
|
$2
|
package/package.json
CHANGED
package/dist/loader.min.js
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
"use strict";const _amdLoaderGlobal=this,_commonjsGlobal="object"==typeof global?global:{};var define,AMDLoader;!function(e){e.global=_amdLoaderGlobal;class t{get isWindows(){return this._detect(),this._isWindows}get isNode(){return this._detect(),this._isNode}get isElectronRenderer(){return this._detect(),this._isElectronRenderer}get isWebWorker(){return this._detect(),this._isWebWorker}get isElectronNodeIntegrationWebWorker(){return this._detect(),this._isElectronNodeIntegrationWebWorker}constructor(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1,this._isElectronNodeIntegrationWebWorker=!1}_detect(){this._detected||(this._detected=!0,this._isWindows=t._isWindows(),this._isNode=typeof module<"u"&&!!module.exports,this._isElectronRenderer=typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&"renderer"===process.type,this._isWebWorker="function"==typeof e.global.importScripts,this._isElectronNodeIntegrationWebWorker=this._isWebWorker&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&"worker"===process.type)}static _isWindows(){return!!(typeof navigator<"u"&&navigator.userAgent&&0<=navigator.userAgent.indexOf("Windows"))||typeof process<"u"&&"win32"===process.platform}}e.Environment=t}(AMDLoader=AMDLoader||{}),function(r){class i{constructor(e,t,r){this.type=e,this.detail=t,this.timestamp=r}}r.LoaderEvent=i;r.LoaderEventRecorder=class{constructor(e){this._events=[new i(1,"",e)]}record(e,t){this._events.push(new i(e,t,r.Utilities.getHighPerformanceTimestamp()))}getEvents(){return this._events}};class e{record(e,t){}getEvents(){return[]}}e.INSTANCE=new e,r.NullLoaderEventRecorder=e}(AMDLoader=AMDLoader||{}),function(e){class i{static fileUriToFilePath(e,t){if(t=decodeURI(t).replace(/%23/g,"#"),e){if(/^file:\/\/\//.test(t))return t.substr(8);if(/^file:\/\//.test(t))return t.substr(5)}else if(/^file:\/\//.test(t))return t.substr(7);return t}static startsWith(e,t){return e.length>=t.length&&e.substr(0,t.length)===t}static endsWith(e,t){return e.length>=t.length&&e.substr(e.length-t.length)===t}static containsQueryString(e){return/^[^\#]*\?/gi.test(e)}static isAbsolutePath(e){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(e)}static forEachProperty(t,r){if(t){let e;for(e in t)t.hasOwnProperty(e)&&r(e,t[e])}}static isEmpty(e){let t=!0;return i.forEachProperty(e,()=>{t=!1}),t}static recursiveClone(e){if(!e||"object"!=typeof e||e instanceof RegExp||!Array.isArray(e)&&Object.getPrototypeOf(e)!==Object.prototype)return e;let r=Array.isArray(e)?[]:{};return i.forEachProperty(e,(e,t)=>{r[e]=t&&"object"==typeof t?i.recursiveClone(t):t}),r}static generateAnonymousModule(){return"===anonymous"+i.NEXT_ANONYMOUS_ID+++"==="}static isAnonymousModule(e){return i.startsWith(e,"===anonymous")}static getHighPerformanceTimestamp(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=e.global.performance&&"function"==typeof e.global.performance.now),(this.HAS_PERFORMANCE_NOW?e.global.performance:Date).now()}}i.NEXT_ANONYMOUS_ID=1,i.PERFORMANCE_NOW_PROBED=!1,i.HAS_PERFORMANCE_NOW=!1,e.Utilities=i}(AMDLoader=AMDLoader||{}),function(n){function r(e){if(e instanceof Error)return e;const t=new Error(e.message||String(e)||"Unknown Error");return e.stack&&(t.stack=e.stack),t}n.ensureError=r;class i{static validateConfigurationOptions(e){if("string"!=typeof(e=e||{}).baseUrl&&(e.baseUrl=""),"boolean"!=typeof e.isBuild&&(e.isBuild=!1),"object"!=typeof e.paths&&(e.paths={}),"object"!=typeof e.config&&(e.config={}),"u"<typeof e.catchError&&(e.catchError=!1),"u"<typeof e.recordStats&&(e.recordStats=!1),"string"!=typeof e.urlArgs&&(e.urlArgs=""),"function"!=typeof e.onError&&(e.onError=function(e){if("loading"===e.phase)return console.error('Loading "'+e.moduleId+'" failed'),console.error(e),console.error("Here are the modules that depend on it:"),void console.error(e.neededBy);"factory"===e.phase&&(console.error('The factory function of "'+e.moduleId+'" has thrown an exception'),console.error(e),console.error("Here are the modules that depend on it:"),console.error(e.neededBy))}),Array.isArray(e.ignoreDuplicateModules)||(e.ignoreDuplicateModules=[]),0<e.baseUrl.length&&(n.Utilities.endsWith(e.baseUrl,"/")||(e.baseUrl+="/")),"string"!=typeof e.cspNonce&&(e.cspNonce=""),"u"<typeof e.preferScriptTags&&(e.preferScriptTags=!1),e.nodeCachedData&&"object"==typeof e.nodeCachedData&&("string"!=typeof e.nodeCachedData.seed&&(e.nodeCachedData.seed="seed"),("number"!=typeof e.nodeCachedData.writeDelay||e.nodeCachedData.writeDelay<0)&&(e.nodeCachedData.writeDelay=7e3),!e.nodeCachedData.path||"string"!=typeof e.nodeCachedData.path)){const t=r(new Error("INVALID cached data configuration, 'path' MUST be set"));t.phase="configuration",e.onError(t),e.nodeCachedData=void 0}return e}static mergeConfigurationOptions(e=null,t=null){let r=n.Utilities.recursiveClone(t||{});return n.Utilities.forEachProperty(e,(e,t)=>{"ignoreDuplicateModules"===e&&typeof r.ignoreDuplicateModules<"u"?r.ignoreDuplicateModules=r.ignoreDuplicateModules.concat(t):"paths"===e&&typeof r.paths<"u"?n.Utilities.forEachProperty(t,(e,t)=>r.paths[e]=t):"config"===e&&typeof r.config<"u"?n.Utilities.forEachProperty(t,(e,t)=>r.config[e]=t):r[e]=n.Utilities.recursiveClone(t)}),i.validateConfigurationOptions(r)}}n.ConfigurationOptionsUtil=i;n.Configuration=class t{constructor(e,t){if(this._env=e,this.options=i.mergeConfigurationOptions(t),this._createIgnoreDuplicateModulesMap(),this._createSortedPathsRules(),""===this.options.baseUrl&&this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){let e=this.options.nodeRequire.main.filename,t=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));this.options.baseUrl=e.substring(0,t+1)}}_createIgnoreDuplicateModulesMap(){this.ignoreDuplicateModulesMap={};for(let e=0;e<this.options.ignoreDuplicateModules.length;e++)this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[e]]=!0}_createSortedPathsRules(){this.sortedPathsRules=[],n.Utilities.forEachProperty(this.options.paths,(e,t)=>{Array.isArray(t)?this.sortedPathsRules.push({from:e,to:t}):this.sortedPathsRules.push({from:e,to:[t]})}),this.sortedPathsRules.sort((e,t)=>t.from.length-e.from.length)}cloneAndMerge(e){return new t(this._env,i.mergeConfigurationOptions(e,this.options))}getOptionsLiteral(){return this.options}_applyPaths(i){var o;for(let e=0,t=this.sortedPathsRules.length;e<t;e++)if(o=this.sortedPathsRules[e],n.Utilities.startsWith(i,o.from)){let r=[];for(let e=0,t=o.to.length;e<t;e++)r.push(o.to[e]+i.substr(o.from.length));return r}return[i]}_addUrlArgsToUrl(e){return n.Utilities.containsQueryString(e)?e+"&"+this.options.urlArgs:e+"?"+this.options.urlArgs}_addUrlArgsIfNecessaryToUrl(e){return this.options.urlArgs?this._addUrlArgsToUrl(e):e}_addUrlArgsIfNecessaryToUrls(r){if(this.options.urlArgs)for(let e=0,t=r.length;e<t;e++)r[e]=this._addUrlArgsToUrl(r[e]);return r}moduleIdToPaths(e){if(this._env.isNode&&this.options.amdModulesPattern instanceof RegExp&&!this.options.amdModulesPattern.test(e))return this.isBuild()?["empty:"]:["node|"+e];let r=e,i;if(n.Utilities.endsWith(r,".js")||n.Utilities.isAbsolutePath(r))n.Utilities.endsWith(r,".js")||n.Utilities.containsQueryString(r)||(r+=".js"),i=[r];else for(let e=0,t=(i=this._applyPaths(r)).length;e<t;e++)this.isBuild()&&"empty:"===i[e]||(n.Utilities.isAbsolutePath(i[e])||(i[e]=this.options.baseUrl+i[e]),n.Utilities.endsWith(i[e],".js")||n.Utilities.containsQueryString(i[e])||(i[e]=i[e]+".js"));return this._addUrlArgsIfNecessaryToUrls(i)}requireToUrl(e){let t=e;return n.Utilities.isAbsolutePath(t)||(t=this._applyPaths(t)[0],n.Utilities.isAbsolutePath(t)||(t=this.options.baseUrl+t)),this._addUrlArgsIfNecessaryToUrl(t)}isBuild(){return this.options.isBuild}shouldInvokeFactory(e){return!!(!this.options.isBuild||n.Utilities.isAnonymousModule(e)||this.options.buildForceInvokeFactory&&this.options.buildForceInvokeFactory[e])}isDuplicateMessageIgnoredFor(e){return this.ignoreDuplicateModulesMap.hasOwnProperty(e)}getConfigForModule(e){if(this.options.config)return this.options.config[e]}shouldCatchError(){return this.options.catchError}shouldRecordStats(){return this.options.recordStats}onError(e){this.options.onError(e)}}}(AMDLoader=AMDLoader||{}),function(p){class t{constructor(e){this._env=e,this._scriptLoader=null,this._callbackMap={}}load(e,t,r,i){this._scriptLoader||(this._env.isWebWorker?this._scriptLoader=new s:this._env.isElectronRenderer?(o=e.getConfig().getOptionsLiteral()["preferScriptTags"],this._scriptLoader=o?new n:new f(this._env)):this._env.isNode?this._scriptLoader=new f(this._env):this._scriptLoader=new n);var o={callback:r,errorback:i};this._callbackMap.hasOwnProperty(t)?this._callbackMap[t].push(o):(this._callbackMap[t]=[o],this._scriptLoader.load(e,t,()=>this.triggerCallback(t),e=>this.triggerErrorback(t,e)))}triggerCallback(e){let t=this._callbackMap[e];delete this._callbackMap[e];for(let e=0;e<t.length;e++)t[e].callback()}triggerErrorback(e,t){let r=this._callbackMap[e];delete this._callbackMap[e];for(let e=0;e<r.length;e++)r[e].errorback(t)}}class n{attachListeners(e,t,r){let i=()=>{e.removeEventListener("load",o),e.removeEventListener("error",n)},o=e=>{i(),t()},n=e=>{i(),r(e)};e.addEventListener("load",o),e.addEventListener("error",n)}load(o,n,s,l){if(/^node\|/.test(n)){let e=o.getConfig().getOptionsLiteral(),t=_(o.getRecorder(),e.nodeRequire||p.global.nodeRequire),r=n.split("|"),i=null;try{i=t(r[1])}catch(e){return void l(e)}o.enqueueDefineAnonymousModule([],()=>i),s()}else{let e=document.createElement("script");e.setAttribute("async","async"),e.setAttribute("type","text/javascript"),this.attachListeners(e,s,l);const t=o.getConfig().getOptionsLiteral()["trustedTypesPolicy"];t&&(n=t.createScriptURL(n)),e.setAttribute("src",n);s=o.getConfig().getOptionsLiteral()["cspNonce"];s&&e.setAttribute("nonce",s),document.getElementsByTagName("head")[0].appendChild(e)}}}class s{constructor(){this._cachedCanUseEval=null}_canUseEval(e){return null===this._cachedCanUseEval&&(this._cachedCanUseEval=function(e){const t=e.getConfig().getOptionsLiteral()["trustedTypesPolicy"];try{return(t?self.eval(t.createScript("","true")):new Function("true")).call(self),!0}catch{return!1}}(e)),this._cachedCanUseEval}load(t,r,i,o){if(/^node\|/.test(r)){const n=t.getConfig().getOptionsLiteral(),s=_(t.getRecorder(),n.nodeRequire||p.global.nodeRequire),l=r.split("|");let e=null;try{e=s(l[1])}catch(e){return void o(e)}t.enqueueDefineAnonymousModule([],function(){return e}),i()}else{const d=t.getConfig().getOptionsLiteral()["trustedTypesPolicy"];if(/^((http:)|(https:)|(file:))/.test(r)&&r.substring(0,self.origin.length)!==self.origin||!this._canUseEval(t))try{d&&(r=d.createScriptURL(r)),importScripts(r),i()}catch(e){o(e)}else fetch(r).then(e=>{if(200!==e.status)throw new Error(e.statusText);return e.text()}).then(e=>{e=e+`
|
2
|
-
//# sourceURL=`+r,(d?self.eval(d.createScript("",e)):new Function(e)).call(self),i()}).then(void 0,o)}}}class f{constructor(e){this._env=e,this._didInitialize=!1,this._didPatchNodeRequire=!1}_init(e){this._didInitialize||(this._didInitialize=!0,this._fs=e("fs"),this._vm=e("vm"),this._path=e("path"),this._crypto=e("crypto"))}_initNodeRequire(e,f){const _=f.getConfig().getOptionsLiteral()["nodeCachedData"];if(_&&!this._didPatchNodeRequire){this._didPatchNodeRequire=!0;const m=this,y=e("module");function g(r){const i=r.constructor;function e(e){return r.require(e)}return(e.resolve=function(e,t){return i._resolveFilename(e,r,!1,t)}).paths=function(e){return i._resolveLookupPaths(e,r)},e.main=process.mainModule,e.extensions=i._extensions,e.cache=i._cache,e}y.prototype._compile=function(e,t){const r=y.wrap(e.replace(/^#!.*/,"")),i=f.getRecorder(),o=m._getCachedDataPath(_,t),n={filename:t};let s;try{const p=m._fs.readFileSync(o);s=p.slice(0,16),n.cachedData=p.slice(16),i.record(60,o)}catch{i.record(61,o)}const l=new m._vm.Script(r,n),d=l.runInThisContext(n),a=m._path.dirname(t),u=g(this),c=[this.exports,u,this,t,a,process,_commonjsGlobal,Buffer],h=d.apply(this.exports,c);return m._handleCachedData(l,r,o,!n.cachedData,f),m._verifyCachedData(l,r,o,s,f),h}}}load(n,r,s,l){const e=n.getConfig().getOptionsLiteral(),i=_(n.getRecorder(),e.nodeRequire||p.global.nodeRequire),d=e.nodeInstrumenter||function(e){return e};this._init(i),this._initNodeRequire(i,n);var t=n.getRecorder();if(/^node\|/.test(r)){let e=r.split("|"),t=null;try{t=i(e[1])}catch(e){return void l(e)}n.enqueueDefineAnonymousModule([],()=>t),s()}else{r=p.Utilities.fileUriToFilePath(this._env.isWindows,r);const a=this._path.normalize(r),u=this._getElectronRendererScriptPathOrUri(a),c=!!e.nodeCachedData,h=c?this._getCachedDataPath(e.nodeCachedData,r):void 0;this._readSourceAndCachedData(a,h,t,(t,r,i,o)=>{if(t)l(t);else{let e;e=r.charCodeAt(0)===f._BOM?f._PREFIX+r.substring(1)+f._SUFFIX:f._PREFIX+r+f._SUFFIX,e=d(e,a);t={filename:u,cachedData:i},r=this._createAndEvalScript(n,e,t,s,l);this._handleCachedData(r,e,h,c&&!i,n),this._verifyCachedData(r,e,h,o,n)}})}}_createAndEvalScript(e,t,r,i,o){const n=e.getRecorder(),s=(n.record(31,r.filename),new this._vm.Script(t,r)),l=s.runInThisContext(r),d=e.getGlobalAMDDefineFunc();let a=!1;function u(){return a=!0,d.apply(null,arguments)}return u.amd=d.amd,l.call(p.global,e.getGlobalAMDRequireFunc(),u,r.filename,this._path.dirname(r.filename)),n.record(32,r.filename),a?i():o(new Error(`Didn't receive define call in ${r.filename}!`)),s}_getElectronRendererScriptPathOrUri(e){if(!this._env.isElectronRenderer)return e;let t=e.match(/^([a-z])\:(.*)/i);return t?"file:///"+(t[1].toUpperCase()+":"+t[2]).replace(/\\/g,"/"):"file://"+e}_getCachedDataPath(e,t){var r=this._crypto.createHash("md5").update(t,"utf8").update(e.seed,"utf8").update(process.arch,"").digest("hex"),t=this._path.basename(t).replace(/\.js$/,"");return this._path.join(e.path,t+`-${r}.code`)}_handleCachedData(t,r,i,e,o){t.cachedDataRejected?this._fs.unlink(i,e=>{o.getRecorder().record(62,i),this._createAndWriteCachedData(t,r,i,o),e&&o.getConfig().onError(e)}):e&&this._createAndWriteCachedData(t,r,i,o)}_createAndWriteCachedData(t,r,i,o){let e=Math.ceil(o.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),n=-1,s=0,l;const d=()=>{setTimeout(()=>{l=l||this._crypto.createHash("md5").update(r,"utf8").digest();var e=t.createCachedData();0===e.length||e.length===n||5<=s||(e.length<n?d():(n=e.length,this._fs.writeFile(i,Buffer.concat([l,e]),e=>{e&&o.getConfig().onError(e),o.getRecorder().record(63,i),d()})))},e*Math.pow(4,s++))};d()}_readSourceAndCachedData(e,n,s,l){if(n){let r,i,o,t=2;const d=e=>{e?l(e):0==--t&&l(void 0,r,i,o)};this._fs.readFile(e,{encoding:"utf8"},(e,t)=>{r=t,d(e)}),this._fs.readFile(n,(e,t)=>{!e&&t&&0<t.length?(o=t.slice(0,16),i=t.slice(16),s.record(60,n)):s.record(61,n),d()})}else this._fs.readFile(e,{encoding:"utf8"},l)}_verifyCachedData(e,t,r,i,o){!i||e.cachedDataRejected||setTimeout(()=>{var e=this._crypto.createHash("md5").update(t,"utf8").digest();i.equals(e)||(o.getConfig().onError(new Error(`FAILED TO VERIFY CACHED DATA, deleting stale '${r}' now, but a RESTART IS REQUIRED`)),this._fs.unlink(r,e=>{e&&o.getConfig().onError(e)}))},Math.ceil(5e3*(1+Math.random())))}}function _(t,r){if(r.__$__isRecorded)return r;function e(e){t.record(33,e);try{return r(e)}finally{t.record(34,e)}}return e.__$__isRecorded=!0,e}f._BOM=65279,f._PREFIX="(function (require, define, __filename, __dirname) { ",f._SUFFIX=`
|
3
|
-
});`,p.ensureRecordedNodeRequire=_,p.createScriptLoader=function(e){return new t(e)}}(AMDLoader=AMDLoader||{}),function(n){class d{constructor(e){var t=e.lastIndexOf("/");this.fromModulePath=-1!==t?e.substr(0,t+1):""}static _normalizeModuleId(e){let t=e,r;for(r=/\/\.\//;r.test(t);)t=t.replace(r,"/");for(t=t.replace(/^\.\//g,""),r=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;r.test(t);)t=t.replace(r,"/");return t=t.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,"")}resolveModule(e){let t=e;return n.Utilities.isAbsolutePath(t)||(n.Utilities.startsWith(t,"./")||n.Utilities.startsWith(t,"../"))&&(t=d._normalizeModuleId(this.fromModulePath+t)),t}}d.ROOT=new d(""),n.ModuleIdResolver=d;class a{constructor(e,t,r,i,o,n){this.id=e,this.strId=t,this.dependencies=r,this._callback=i,this._errorback=o,this.moduleIdResolver=n,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}static _safeInvokeFunction(e,t){try{return{returnedValue:e.apply(n.global,t),producedError:null}}catch(e){return{returnedValue:null,producedError:e}}}static _invokeFactory(e,t,r,i){return e.shouldInvokeFactory(t)?e.shouldCatchError()?this._safeInvokeFunction(r,i):{returnedValue:r.apply(n.global,i),producedError:null}:{returnedValue:null,producedError:null}}complete(e,t,r,i){this._isComplete=!0;let o=null;if(this._callback&&("function"==typeof this._callback?(e.record(21,this.strId),r=a._invokeFactory(t,this.strId,this._callback,r),o=r.producedError,e.record(22,this.strId),!o&&typeof r.returnedValue<"u"&&(!this.exportsPassedIn||n.Utilities.isEmpty(this.exports))&&(this.exports=r.returnedValue)):this.exports=this._callback),o){let e=n.ensureError(o);e.phase="factory",e.moduleId=this.strId,e.neededBy=i(this.id),this.error=e,t.onError(e)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null}onDependencyError(e){return this._isComplete=!0,this.error=e,!!this._errorback&&(this._errorback(e),!0)}isComplete(){return this._isComplete}}n.Module=a;class s{constructor(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}getMaxModuleId(){return this._nextId}getModuleId(e){let t=this._strModuleIdToIntModuleId.get(e);return"u"<typeof t&&(t=this._nextId++,this._strModuleIdToIntModuleId.set(e,t),this._intModuleIdToStrModuleId[t]=e),t}getStrModuleId(e){return this._intModuleIdToStrModuleId[e]}}class u{constructor(e){this.id=e}}u.EXPORTS=new u(0),u.MODULE=new u(1),u.REQUIRE=new u(2),n.RegularDependency=u;class l{constructor(e,t,r){this.id=e,this.pluginId=t,this.pluginParam=r}}n.PluginDependency=l;class c{constructor(e,t,r,i,o=0){this._env=e,this._scriptLoader=t,this._loaderAvailableTimestamp=o,this._defineFunc=r,this._requireFunc=i,this._moduleIdProvider=new s,this._config=new n.Configuration(this._env),this._hasDependencyCycle=!1,this._modules2=[],this._knownModules2=[],this._inverseDependencies2=[],this._inversePluginDependencies2=new Map,this._currentAnonymousDefineCall=null,this._recorder=null,this._buildInfoPath=[],this._buildInfoDefineStack=[],this._buildInfoDependencies=[],this._requireFunc.moduleManager=this}reset(){return new c(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)}getGlobalAMDDefineFunc(){return this._defineFunc}getGlobalAMDRequireFunc(){return this._requireFunc}static _findRelevantLocationInStack(e,t){let o=e=>e.replace(/\\/g,"/"),n=o(e),r=t.split(/\n/);for(let e=0;e<r.length;e++){var s=r[e].match(/(.*):(\d+):(\d+)\)?$/);if(s){let e=s[1],t=s[2],r=s[3],i=Math.max(e.lastIndexOf(" ")+1,e.lastIndexOf("(")+1);if((e=o(e=e.substr(i)))===n){let e={line:parseInt(t,10),col:parseInt(r,10)};return 1===e.line&&(e.col-=53),e}}}throw new Error("Could not correlate define call site for needle "+e)}getBuildInfo(){if(!this._config.isBuild())return null;let r=[],i=0;for(let e=0,t=this._modules2.length;e<t;e++){var o,n,s,l=this._modules2[e];l&&(o=this._buildInfoPath[l.id]||null,n=this._buildInfoDefineStack[l.id]||null,s=this._buildInfoDependencies[l.id],r[i++]={id:l.strId,path:o,defineLocation:o&&n?c._findRelevantLocationInStack(o,n):null,dependencies:s,shim:null,exports:l.exports})}return r}getRecorder(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new n.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=n.NullLoaderEventRecorder.INSTANCE),this._recorder}getLoaderEvents(){return this.getRecorder().getEvents()}enqueueDefineAnonymousModule(e,t){if(null!==this._currentAnonymousDefineCall)throw new Error("Can only have one anonymous define call per script file");let r=null;this._config.isBuild()&&(r=new Error("StackLocation").stack||null),this._currentAnonymousDefineCall={stack:r,dependencies:e,callback:t}}defineModule(t,r,i,o,n,s=new d(t)){var l=this._moduleIdProvider.getModuleId(t);if(this._modules2[l])this._config.isDuplicateMessageIgnoredFor(t)||console.warn("Duplicate definition of module '"+t+"'");else{let e=new a(l,t,this._normalizeDependencies(r,s),i,o,s);this._modules2[l]=e,this._config.isBuild()&&(this._buildInfoDefineStack[l]=n,this._buildInfoDependencies[l]=(e.dependencies||[]).map(e=>this._moduleIdProvider.getStrModuleId(e.id))),this._resolve(e)}}_normalizeDependency(e,t){if("exports"===e)return u.EXPORTS;if("module"===e)return u.MODULE;if("require"===e)return u.REQUIRE;var r,i,o=e.indexOf("!");return 0<=o?(i=t.resolveModule(e.substr(0,o)),o=t.resolveModule(e.substr(o+1)),r=this._moduleIdProvider.getModuleId(i+"!"+o),i=this._moduleIdProvider.getModuleId(i),new l(r,i,o)):new u(this._moduleIdProvider.getModuleId(t.resolveModule(e)))}_normalizeDependencies(r,i){let o=[],n=0;for(let e=0,t=r.length;e<t;e++)o[n++]=this._normalizeDependency(r[e],i);return o}_relativeRequire(e,t,r,i){if("string"==typeof t)return this.synchronousRequire(t,e);this.defineModule(n.Utilities.generateAnonymousModule(),t,r,i,null,e)}synchronousRequire(e,t=new d(e)){let r=this._normalizeDependency(e,t),i=this._modules2[r.id];if(!i)throw new Error("Check dependency list! Synchronous require cannot resolve module '"+e+"'. This is the first mention of this module!");if(!i.isComplete())throw new Error("Check dependency list! Synchronous require cannot resolve module '"+e+"'. This module has not been resolved completely yet.");if(i.error)throw i.error;return i.exports}configure(e,t){var r=this._config.shouldRecordStats();this._config=t?new n.Configuration(this._env,e):this._config.cloneAndMerge(e),this._config.shouldRecordStats()&&!r&&(this._recorder=null)}getConfig(){return this._config}_onLoad(e){var t;null!==this._currentAnonymousDefineCall&&(t=this._currentAnonymousDefineCall,this._currentAnonymousDefineCall=null,this.defineModule(this._moduleIdProvider.getStrModuleId(e),t.dependencies,t.callback,null,t.stack))}_createLoadError(e,t){var r=this._moduleIdProvider.getStrModuleId(e),e=(this._inverseDependencies2[e]||[]).map(e=>this._moduleIdProvider.getStrModuleId(e));const i=n.ensureError(t);return i.phase="loading",i.moduleId=r,i.neededBy=e,i}_onLoadError(e,t){var r=this._createLoadError(e,t);this._modules2[e]||(this._modules2[e]=new a(e,this._moduleIdProvider.getStrModuleId(e),[],()=>{},null,null));let i=[];for(let e=0,t=this._moduleIdProvider.getMaxModuleId();e<t;e++)i[e]=!1;let o=!1,n=[];for(n.push(e),i[e]=!0;0<n.length;){let e=n.shift(),t=this._modules2[e];t&&(o=t.onDependencyError(r)||o);var s=this._inverseDependencies2[e];if(s)for(let e=0,t=s.length;e<t;e++){var l=s[e];i[l]||(n.push(l),i[l]=!0)}}o||this._config.onError(r)}_hasDependencyPath(e,r){var t=this._modules2[e];if(!t)return!1;let i=[];for(let e=0,t=this._moduleIdProvider.getMaxModuleId();e<t;e++)i[e]=!1;let o=[];for(o.push(t),i[e]=!0;0<o.length;){var n=o.shift().dependencies;if(n)for(let e=0,t=n.length;e<t;e++){var s=n[e];if(s.id===r)return!0;var l=this._modules2[s.id];l&&!i[s.id]&&(i[s.id]=!0,o.push(l))}}return!1}_findCyclePath(r,i,o){if(r===i||50===o)return[r];var e=this._modules2[r];if(!e)return null;var n=e.dependencies;if(n)for(let t=0,e=n.length;t<e;t++){let e=this._findCyclePath(n[t].id,i,o+1);if(null!==e)return e.push(r),e}return null}_createRequire(i){var e=(e,t,r)=>this._relativeRequire(i,e,t,r);return e.toUrl=e=>this._config.requireToUrl(i.resolveModule(e)),e.getStats=()=>this.getLoaderEvents(),e.hasDependencyCycle=()=>this._hasDependencyCycle,e.config=(e,t=!1)=>{this.configure(e,t)},e.__$__nodeRequire=n.global.nodeRequire,e}_loadModule(s){if(!this._modules2[s]&&!this._knownModules2[s]){this._knownModules2[s]=!0;let e=this._moduleIdProvider.getStrModuleId(s),i=this._config.moduleIdToPaths(e),o=(this._env.isNode&&(-1===e.indexOf("/")||/^@[^\/]+\/[^\/]+$/.test(e))&&i.push("node|"+e),-1),n=e=>{if(++o>=i.length)this._onLoadError(s,e);else{let t=i[o],r=this.getRecorder();if(this._config.isBuild()&&"empty:"===t)return this._buildInfoPath[s]=t,this.defineModule(this._moduleIdProvider.getStrModuleId(s),[],null,null,null),void this._onLoad(s);r.record(10,t),this._scriptLoader.load(this,t,()=>{this._config.isBuild()&&(this._buildInfoPath[s]=t),r.record(11,t),this._onLoad(s)},e=>{r.record(12,t),n(e)})}};n(null)}}_loadPluginDependency(e,t){var r;this._modules2[t.id]||this._knownModules2[t.id]||(this._knownModules2[t.id]=!0,(r=e=>{this.defineModule(this._moduleIdProvider.getStrModuleId(t.id),[],e,null,null)}).error=e=>{this._config.onError(this._createLoadError(t.id,e))},e.load(t.pluginParam,this._createRequire(d.ROOT),r,this._config.getOptionsLiteral()))}_resolve(r){var i=r.dependencies;if(i)for(let e=0,t=i.length;e<t;e++){var o=i[e];if(o===u.EXPORTS)r.exportsPassedIn=!0,r.unresolvedDependenciesCount--;else if(o===u.MODULE)r.unresolvedDependenciesCount--;else if(o===u.REQUIRE)r.unresolvedDependenciesCount--;else{let e=this._modules2[o.id];if(e&&e.isComplete()){if(e.error)return void r.onDependencyError(e.error);r.unresolvedDependenciesCount--}else if(this._hasDependencyPath(o.id,r.id)){this._hasDependencyCycle=!0,console.warn("There is a dependency cycle between '"+this._moduleIdProvider.getStrModuleId(o.id)+"' and '"+this._moduleIdProvider.getStrModuleId(r.id)+"'. The cyclic path follows:");let e=this._findCyclePath(o.id,r.id,0)||[];e.reverse(),e.push(o.id),console.warn(e.map(e=>this._moduleIdProvider.getStrModuleId(e)).join(` =>
|
4
|
-
`)),r.unresolvedDependenciesCount--}else if(this._inverseDependencies2[o.id]=this._inverseDependencies2[o.id]||[],this._inverseDependencies2[o.id].push(r.id),o instanceof l){let e=this._modules2[o.pluginId];if(e&&e.isComplete()){this._loadPluginDependency(e.exports,o);continue}let t=this._inversePluginDependencies2.get(o.pluginId);t||(t=[],this._inversePluginDependencies2.set(o.pluginId,t)),t.push(o),this._loadModule(o.pluginId)}else this._loadModule(o.id)}}0===r.unresolvedDependenciesCount&&this._onModuleComplete(r)}_onModuleComplete(o){var e=this.getRecorder();if(!o.isComplete()){let r=o.dependencies,i=[];if(r)for(let e=0,t=r.length;e<t;e++){var n=r[e];n===u.EXPORTS?i[e]=o.exports:n===u.MODULE?i[e]={id:o.strId,config:()=>this._config.getConfigForModule(o.strId)}:n===u.REQUIRE?i[e]=this._createRequire(o.moduleIdResolver):(n=this._modules2[n.id],i[e]=n?n.exports:null)}o.complete(e,this._config,i,e=>(this._inverseDependencies2[e]||[]).map(e=>this._moduleIdProvider.getStrModuleId(e)));var s=this._inverseDependencies2[o.id];if(this._inverseDependencies2[o.id]=null,s)for(let r=0,e=s.length;r<e;r++){let e=s[r],t=this._modules2[e];t.unresolvedDependenciesCount--,0===t.unresolvedDependenciesCount&&this._onModuleComplete(t)}var l=this._inversePluginDependencies2.get(o.id);if(l){this._inversePluginDependencies2.delete(o.id);for(let e=0,t=l.length;e<t;e++)this._loadPluginDependency(o.exports,l[e])}}}}n.ModuleManager=c}(AMDLoader=AMDLoader||{}),function(t){const r=new t.Environment;let i=null;function o(e,t,r){"string"!=typeof e&&(r=t,t=e,e=null),"object"==typeof t&&Array.isArray(t)||(r=t,t=null),t=t||["require","exports","module"],e?i.defineModule(e,t,r,null,null):i.enqueueDefineAnonymousModule(t,r)}function e(e,t=!1){i.configure(e,t)}function n(){if(1===arguments.length){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0]))return void e(arguments[0]);if("string"==typeof arguments[0])return i.synchronousRequire(arguments[0])}if(2!==arguments.length&&3!==arguments.length||!Array.isArray(arguments[0]))throw new Error("Unrecognized require call");i.defineModule(t.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null)}o.amd={jQuery:!0};function s(){var e;(typeof t.global.require<"u"||typeof require<"u")&&"function"==typeof(e=t.global.require||require)&&"function"==typeof e.resolve&&(e=t.ensureRecordedNodeRequire(i.getRecorder(),e),t.global.nodeRequire=e,n.nodeRequire=e,n.__$__nodeRequire=e),!r.isNode||r.isElectronRenderer||r.isElectronNodeIntegrationWebWorker?(r.isElectronRenderer||(t.global.define=o),t.global.require=n):module.exports=n}n.config=e,n.getConfig=function(){return i.getConfig().getOptionsLiteral()},n.reset=function(){i=i.reset()},n.getBuildInfo=function(){return i.getBuildInfo()},n.getStats=function(){return i.getLoaderEvents()},n.define=o,t.init=s,"function"==typeof t.global.define&&t.global.define.amd||(i=new t.ModuleManager(r,t.createScriptLoader(r),o,n,t.Utilities.getHighPerformanceTimestamp()),typeof t.global.require<"u"&&"function"!=typeof t.global.require&&n.config(t.global.require),(define=function(){return o.apply(null,arguments)}).amd=o.amd,"u"<typeof doNotInitLoader&&s())}(AMDLoader=AMDLoader||{});
|