diff --git a/core/core-frontend/src/fcDesignerPro/index.es.js b/core/core-frontend/src/fcDesignerPro/index.es.js index 9507df6..1433209 100644 --- a/core/core-frontend/src/fcDesignerPro/index.es.js +++ b/core/core-frontend/src/fcDesignerPro/index.es.js @@ -8,7 +8,7 @@ var iw = Object.defineProperty; var rw = (e, t, i) => t in e ? iw(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i; var Wt = (e, t, i) => (rw(e, typeof t != "symbol" ? t + "" : t, i), i); -import { computed as Cn, isRef as ny, unref as iy, ref as Bs, resolveComponent as ne, TransitionGroup as ow, defineComponent as Ve, h as on, nextTick as Yn, toRef as Ei, createVNode as W, mergeProps as jt, openBlock as H, createElementBlock as ae, createElementVNode as X, reactive as vi, markRaw as Gt, withCtx as N, Fragment as Me, renderList as We, createBlock as he, createTextVNode as be, toDisplayString as le, resolveDynamicComponent as ar, createCommentVNode as ke, onUnmounted as ou, withDirectives as bn, resolveDirective as aw, normalizeClass as Xe, normalizeStyle as wn, renderSlot as kt, createSlots as Qn, shallowRef as Vs, withModifiers as vt, vShow as Sn, withKeys as al, normalizeProps as Sr, guardReactiveProps as Er, toRefs as zm, getCurrentInstance as lw, provide as Wm, watch as xo } from "vue"; +import { computed as Cn, isRef as ny, unref as iy, ref as Bs, resolveComponent as ee, TransitionGroup as ow, defineComponent as Be, h as on, nextTick as Yn, toRef as Ei, createVNode as z, mergeProps as jt, openBlock as H, createElementBlock as ae, createElementVNode as J, reactive as vi, markRaw as Gt, withCtx as N, Fragment as Me, renderList as ze, createBlock as me, createTextVNode as be, toDisplayString as le, resolveDynamicComponent as ar, createCommentVNode as Te, onUnmounted as ou, withDirectives as bn, resolveDirective as aw, normalizeClass as qe, normalizeStyle as wn, renderSlot as kt, createSlots as Qn, shallowRef as Vs, withModifiers as vt, vShow as Sn, withKeys as al, normalizeProps as Sr, guardReactiveProps as Er, toRefs as zm, getCurrentInstance as lw, provide as Wm, watch as xo } from "vue"; import { ElMessage as $c, ElLoading as sw } from "element-plus"; import au from "@form-create/element-ui"; import Bt from "@form-create/vant"; @@ -143,6 +143,7 @@ const ry = { field: "\u5B57\u6BB5 ID", title: "\u5B57\u6BB5\u540D\u79F0", attributeId: "\u662F\u5426\u4E3B\u952E", + fieldtype: "\u5B57\u6BB5\u7C7B\u578B", info: "\u63D0\u793A\u4FE1\u606F", ignore: "\u5FFD\u7565\u5B57\u6BB5", native: "\u662F\u5426\u663E\u793A\u6807\u9898", @@ -2512,7 +2513,7 @@ function Us(e) { return e.filter((t, i) => e.indexOf(t) === i); } let Aw = 0; -function it() { +function rt() { const e = 370 + ++Aw; return "F" + Math.random().toString(36).substr(3, 3) + Number(`${Date.now()}`).toString(36) + e.toString(36) + "c"; } @@ -2525,7 +2526,7 @@ function Cw(e, t) { }; } function Xm({ t: e }) { - const t = it(); + const t = rt(); return [ { type: "input", @@ -2722,6 +2723,12 @@ function Fa({ t: e }) { value: "", title: e("form.title") }, + { + type: "Input", + field: "fieldtype", + value: "", + title: e("form.fieldtype") + }, { type: "LanguageInput", field: "info", @@ -2959,7 +2966,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: Td, - field: it(), + field: rt(), title: e("com.radio.name"), info: "", effect: { @@ -3014,7 +3021,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: kd, - field: it(), + field: rt(), title: e("com.checkbox.name"), info: "", effect: { @@ -3074,7 +3081,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: Od, - field: it(), + field: rt(), title: e("com.input.name"), info: "", $required: !1, @@ -3129,7 +3136,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: "input", - field: it(), + field: rt(), title: e("com.textarea.name"), info: "", $required: !1, @@ -3186,7 +3193,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: "input", - field: it(), + field: rt(), title: e("com.password.name"), info: "", $required: !1, @@ -3233,7 +3240,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: $d, - field: it(), + field: rt(), title: e("com.inputNumber.name"), info: "", $required: !1, @@ -3288,7 +3295,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: Rd, - field: it(), + field: rt(), title: e("com.select.name"), info: "", effect: { @@ -3301,7 +3308,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { }, watch: { multiple({ rule: e }) { - e.key = it(); + e.key = rt(); } }, props(e, { t }) { @@ -3377,7 +3384,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: Dd, - field: it(), + field: rt(), title: e("com.switch.name"), info: "", $required: !1, @@ -3418,7 +3425,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: Id, - field: it(), + field: rt(), title: e("com.slider.name"), info: "", $required: !1, @@ -3466,7 +3473,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: Pa, - field: it(), + field: rt(), title: e("com.timePicker.name"), info: "", $required: !1, @@ -3475,7 +3482,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { }, watch: { isRange({ rule: e }) { - e.key = it(); + e.key = rt(); }, __format({ value: e, rule: t }) { t.props.format = e, t.props.valueFormat = e; @@ -3543,7 +3550,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: "timePicker", - field: it(), + field: rt(), title: e("com.timeRange.name"), info: "", $required: !1, @@ -3624,7 +3631,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: Fd, - field: it(), + field: rt(), title: e("com.datePicker.name"), info: "", $required: !1, @@ -3688,7 +3695,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: "datePicker", - field: it(), + field: rt(), title: e("com.dateRange.name"), info: "", $required: !1, @@ -3747,7 +3754,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: Pd, - field: it(), + field: rt(), title: e("com.rate.name"), info: "", $required: !1, @@ -3795,7 +3802,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: Md, - field: it(), + field: rt(), title: e("com.colorPicker.name"), info: "", $required: !1, @@ -4072,7 +4079,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: Zl, - field: it(), + field: rt(), title: e("com.cascader.name"), info: "", effect: { @@ -4188,7 +4195,7 @@ const Ew = "\u5355\u9009\u6846", Td = "radio", xw = { rule({ t: e }) { return { type: jd, - field: it(), + field: rt(), title: e("com.upload.name"), info: "", $required: !1, @@ -4334,7 +4341,7 @@ file.url = res.data.url;` rule({ t: e }) { return { type: Ud, - field: it(), + field: rt(), title: e("com.elTransfer.name"), info: "", $required: !1, @@ -4407,7 +4414,7 @@ file.url = res.data.url;` rule({ t: e }) { return { type: Hd, - field: it(), + field: rt(), title: e("com.tree.name"), info: "", effect: { @@ -4664,7 +4671,7 @@ file.url = res.data.url;` rule({ t: e }) { return { type: Kd, - field: it(), + field: rt(), title: e("com.fcEditor.name"), info: "", $required: !1, @@ -4699,7 +4706,7 @@ file.url = res.data.url;` rule({ t: e }) { return { type: "fcRow", - field: it(), + field: rt(), title: e("com.group.name"), info: "", $required: !1, @@ -4764,7 +4771,7 @@ file.url = res.data.url;` rule({ t: e }) { return { type: "fcRow", - field: it(), + field: rt(), title: e("com.subForm.name"), info: "", $required: !1, @@ -4869,7 +4876,7 @@ file.url = res.data.url;` type: Jd, props: { title: e("com.elCollapseItem.name"), - name: it() + name: rt() }, style: {}, children: [] @@ -4910,7 +4917,7 @@ file.url = res.data.url;` rule({ t: e }) { return { type: Xd, - field: it(), + field: rt(), title: e("com.elTreeSelect.name"), info: "", effect: { @@ -4926,7 +4933,7 @@ file.url = res.data.url;` }, watch: { multiple({ rule: e }) { - e.key = it(); + e.key = rt(); } }, props(e, { t }) { @@ -5233,7 +5240,7 @@ file.url = res.data.url;` rule() { return { type: tf, - field: it(), + field: rt(), title: "", info: "", $required: !1, @@ -5492,7 +5499,7 @@ border-bottom: 1px solid #EBEEF5; rule({ t: e }) { return { type: af, - field: it(), + field: rt(), title: e("com.tableForm.name"), info: "", props: {}, @@ -5595,7 +5602,7 @@ border-bottom: 1px solid #EBEEF5; rule({ t: e }) { return { type: "tableFormPro", - field: it(), + field: rt(), title: e("com.tableFormPro.name"), info: "", props: { @@ -5827,7 +5834,7 @@ border-bottom: 1px solid #EBEEF5; rule({ t: e }) { return { type: ql, - field: it(), + field: rt(), title: e("com." + ql + ".name"), info: "", props: {}, @@ -5931,7 +5938,7 @@ border-bottom: 1px solid #EBEEF5; rule({ t: e }) { return { type: es, - field: it(), + field: rt(), title: e("com." + es + ".name"), info: "", props: {}, @@ -6013,7 +6020,7 @@ border-bottom: 1px solid #EBEEF5; rule() { return { type: "TableForm", - field: it(), + field: rt(), title: "", info: "", props: {}, @@ -6204,7 +6211,7 @@ border-bottom: 1px solid #EBEEF5; rule({ t: e }) { return { type: dv, - field: it(), + field: rt(), title: e("com.fcValue.name"), info: "", props: {} @@ -7403,13 +7410,13 @@ height: 60px; rule() { return { type: uf, - field: it(), + field: rt(), title: "", native: !1, $required: !1, readMode: "custom", props: { - name: "block_" + it() + name: "block_" + rt() } }; }, @@ -7428,7 +7435,7 @@ height: 60px; rule() { return { type: df, - field: it(), + field: rt(), props: { expand: 1 } @@ -8121,7 +8128,7 @@ width: 220px; rule({ t: e }) { return { type: vf, - field: it(), + field: rt(), title: e("com.signaturePad.name"), info: "", $required: !1, @@ -8147,7 +8154,7 @@ width: 220px; rule({ t: e }) { return { type: gf, - field: it(), + field: rt(), title: e("com.elMention.name"), info: "", $required: !1, @@ -8235,7 +8242,7 @@ width: 220px; rule() { return { type: yf, - field: it(), + field: rt(), title: "", props: { options: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"].map((e) => ({ label: e, value: e })) @@ -8311,7 +8318,7 @@ width: 220px; rule({ t: e }) { return { type: bf, - field: it(), + field: rt(), title: e("com.fcId.name"), info: "", $required: !1, @@ -8337,7 +8344,7 @@ width: 220px; rule({ t: e }) { return { type: _f, - field: it(), + field: rt(), title: e("com.fcCity.name"), info: "", $required: !1, @@ -9380,7 +9387,7 @@ value: themeJson[key] rule({ t: e }) { return { type: "fcDataSelect", - field: it(), + field: rt(), title: e("com.fcDataSelect.name"), info: "", $required: !1, @@ -9942,7 +9949,7 @@ function SE(e) { var EE = ["evt"], Kn = function(t, i) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = r.evt, a = hE(r, EE); ul.pluginEvent.bind(At)(t, i, zi({ - dragEl: qe, + dragEl: et, parentEl: tn, ghostEl: xt, rootEl: Xt, @@ -9979,7 +9986,7 @@ function Un(e) { SE(zi({ putSortable: Tn, cloneEl: nn, - targetEl: qe, + targetEl: et, rootEl: Xt, oldIndex: No, oldDraggableIndex: Ja, @@ -9987,7 +9994,7 @@ function Un(e) { newDraggableIndex: xr }, e)); } -var qe, tn, xt, Xt, zr, ks, nn, Tr, No, ii, Ja, xr, ls, Tn, Lo = !1, zs = !1, Ws = [], Ur, Si, Cf, Sf, Av, Cv, za, Oo, Xa, Za = !1, ss = !1, Os, Rn, Ef = [], lc = !1, Gs = [], lu = typeof document < "u", us = py, Sv = sl || lr ? "cssFloat" : "float", xE = lu && !vE && !py && "draggable" in document.createElement("div"), by = function() { +var et, tn, xt, Xt, zr, ks, nn, Tr, No, ii, Ja, xr, ls, Tn, Lo = !1, zs = !1, Ws = [], Ur, Si, Cf, Sf, Av, Cv, za, Oo, Xa, Za = !1, ss = !1, Os, Rn, Ef = [], lc = !1, Gs = [], lu = typeof document < "u", us = py, Sv = sl || lr ? "cssFloat" : "float", xE = lu && !vE && !py && "draggable" in document.createElement("div"), by = function() { if (!!lu) { if (lr) return !1; @@ -10048,7 +10055,7 @@ lu && document.addEventListener("click", function(e) { return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), zs = !1, !1; }, !0); var Hr = function(t) { - if (qe) { + if (et) { t = t.touches ? t.touches[0] : t; var i = kE(t.clientX, t.clientY); if (i) { @@ -10059,7 +10066,7 @@ var Hr = function(t) { } } }, OE = function(t) { - qe && qe.parentNode[ri]._isOutsideThisEl(t.target); + et && et.parentNode[ri]._isOutsideThisEl(t.target); }; function At(e, t) { if (!(e && e.nodeType && e.nodeType === 1)) @@ -10121,12 +10128,12 @@ At.prototype = { !this.el.contains(t) && t !== this.el && (Oo = null); }, _getDirection: function(t, i) { - return typeof this.options.direction == "function" ? this.options.direction.call(this, t, i, qe) : this.options.direction; + return typeof this.options.direction == "function" ? this.options.direction.call(this, t, i, et) : this.options.direction; }, _onTapStart: function(t) { if (!!t.cancelable) { var i = this, r = this.el, n = this.options, a = n.preventOnFilter, s = t.type, u = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, d = (u || t).target, p = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || d, h = n.filter; - if (LE(r), !qe && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || n.disabled) && !p.isContentEditable && !(!this.nativeDraggable && Ya && d && d.tagName.toUpperCase() === "SELECT") && (d = Bi(d, n.draggable, r, !1), !(d && d.animated) && ks !== d)) { + if (LE(r), !et && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || n.disabled) && !p.isContentEditable && !(!this.nativeDraggable && Ya && d && d.tagName.toUpperCase() === "SELECT") && (d = Bi(d, n.draggable, r, !1), !(d && d.animated) && ks !== d)) { if (No = ci(d), Ja = ci(d, n.draggable), typeof h == "function") { if (h.call(this, t, d, this)) { Un({ @@ -10163,27 +10170,27 @@ At.prototype = { }, _prepareDragStart: function(t, i, r) { var n = this, a = n.el, s = n.options, u = a.ownerDocument, d; - if (r && !qe && r.parentNode === a) { + if (r && !et && r.parentNode === a) { var p = _n(r); - if (Xt = a, qe = r, tn = qe.parentNode, zr = qe.nextSibling, ks = r, ls = s.group, At.dragged = qe, Ur = { - target: qe, + if (Xt = a, et = r, tn = et.parentNode, zr = et.nextSibling, ks = r, ls = s.group, At.dragged = et, Ur = { + target: et, clientX: (i || t).clientX, clientY: (i || t).clientY - }, Av = Ur.clientX - p.left, Cv = Ur.clientY - p.top, this._lastX = (i || t).clientX, this._lastY = (i || t).clientY, qe.style["will-change"] = "all", d = function() { + }, Av = Ur.clientX - p.left, Cv = Ur.clientY - p.top, this._lastX = (i || t).clientX, this._lastY = (i || t).clientY, et.style["will-change"] = "all", d = function() { if (Kn("delayEnded", n, { evt: t }), At.eventCanceled) { n._onDrop(); return; } - n._disableDelayedDragEvents(), !yv && n.nativeDraggable && (qe.draggable = !0), n._triggerDragStart(t, i), Un({ + n._disableDelayedDragEvents(), !yv && n.nativeDraggable && (et.draggable = !0), n._triggerDragStart(t, i), Un({ sortable: n, name: "choose", originalEvent: t - }), ni(qe, s.chosenClass, !0); + }), ni(et, s.chosenClass, !0); }, s.ignore.split(",").forEach(function(h) { - my(qe, h.trim(), xf); - }), Mt(u, "dragover", Hr), Mt(u, "mousemove", Hr), Mt(u, "touchmove", Hr), Mt(u, "mouseup", n._onDrop), Mt(u, "touchend", n._onDrop), Mt(u, "touchcancel", n._onDrop), yv && this.nativeDraggable && (this.options.touchStartThreshold = 4, qe.draggable = !0), Kn("delayStart", this, { + my(et, h.trim(), xf); + }), Mt(u, "dragover", Hr), Mt(u, "mousemove", Hr), Mt(u, "touchmove", Hr), Mt(u, "mouseup", n._onDrop), Mt(u, "touchend", n._onDrop), Mt(u, "touchcancel", n._onDrop), yv && this.nativeDraggable && (this.options.touchStartThreshold = 4, et.draggable = !0), Kn("delayStart", this, { evt: t }), s.delay && (!s.delayOnTouchOnly || i) && (!this.nativeDraggable || !(sl || lr))) { if (At.eventCanceled) { @@ -10200,14 +10207,14 @@ At.prototype = { Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag(); }, _disableDelayedDrag: function() { - qe && xf(qe), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents(); + et && xf(et), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents(); }, _disableDelayedDragEvents: function() { var t = this.el.ownerDocument; Dt(t, "mouseup", this._disableDelayedDrag), Dt(t, "touchend", this._disableDelayedDrag), Dt(t, "touchcancel", this._disableDelayedDrag), Dt(t, "mousemove", this._delayedDragTouchMoveHandler), Dt(t, "touchmove", this._delayedDragTouchMoveHandler), Dt(t, "pointermove", this._delayedDragTouchMoveHandler); }, _triggerDragStart: function(t, i) { - i = i || t.pointerType == "touch" && t, !this.nativeDraggable || i ? this.options.supportPointer ? Mt(document, "pointermove", this._onTouchMove) : i ? Mt(document, "touchmove", this._onTouchMove) : Mt(document, "mousemove", this._onTouchMove) : (Mt(qe, "dragend", this), Mt(Xt, "dragstart", this._onDragStart)); + i = i || t.pointerType == "touch" && t, !this.nativeDraggable || i ? this.options.supportPointer ? Mt(document, "pointermove", this._onTouchMove) : i ? Mt(document, "touchmove", this._onTouchMove) : Mt(document, "mousemove", this._onTouchMove) : (Mt(et, "dragend", this), Mt(Xt, "dragstart", this._onDragStart)); try { document.selection ? $s(function() { document.selection.empty(); @@ -10216,12 +10223,12 @@ At.prototype = { } }, _dragStarted: function(t, i) { - if (Lo = !1, Xt && qe) { + if (Lo = !1, Xt && et) { Kn("dragStarted", this, { evt: i }), this.nativeDraggable && Mt(document, "dragover", OE); var r = this.options; - !t && ni(qe, r.dragClass, !1), ni(qe, r.ghostClass, !0), At.active = this, t && this._appendGhost(), Un({ + !t && ni(et, r.dragClass, !1), ni(et, r.ghostClass, !0), At.active = this, t && this._appendGhost(), Un({ sortable: this, name: "start", originalEvent: i @@ -10234,7 +10241,7 @@ At.prototype = { this._lastX = Si.clientX, this._lastY = Si.clientY, Ay(); for (var t = document.elementFromPoint(Si.clientX, Si.clientY), i = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(Si.clientX, Si.clientY), t !== i); ) i = t; - if (qe.parentNode[ri]._isOutsideThisEl(t), i) + if (et.parentNode[ri]._isOutsideThisEl(t), i) do { if (i[ri]) { var r = void 0; @@ -10276,13 +10283,13 @@ At.prototype = { }, _appendGhost: function() { if (!xt) { - var t = this.options.fallbackOnBody ? document.body : Xt, i = _n(qe, !0, us, !0, t), r = this.options; + var t = this.options.fallbackOnBody ? document.body : Xt, i = _n(et, !0, us, !0, t), r = this.options; if (us) { for (Rn = t; wt(Rn, "position") === "static" && wt(Rn, "transform") === "none" && Rn !== document; ) Rn = Rn.parentNode; Rn !== document.body && Rn !== document.documentElement ? (Rn === document && (Rn = Hi()), i.top += Rn.scrollTop, i.left += Rn.scrollLeft) : Rn = Hi(), Ef = wv(Rn); } - xt = qe.cloneNode(!0), ni(xt, r.ghostClass, !1), ni(xt, r.fallbackClass, !0), ni(xt, r.dragClass, !0), wt(xt, "transition", ""), wt(xt, "transform", ""), wt(xt, "box-sizing", "border-box"), wt(xt, "margin", 0), wt(xt, "top", i.top), wt(xt, "left", i.left), wt(xt, "width", i.width), wt(xt, "height", i.height), wt(xt, "opacity", "0.8"), wt(xt, "position", us ? "absolute" : "fixed"), wt(xt, "zIndex", "100000"), wt(xt, "pointerEvents", "none"), At.ghost = xt, t.appendChild(xt), wt(xt, "transform-origin", Av / parseInt(xt.style.width) * 100 + "% " + Cv / parseInt(xt.style.height) * 100 + "%"); + xt = et.cloneNode(!0), ni(xt, r.ghostClass, !1), ni(xt, r.fallbackClass, !0), ni(xt, r.dragClass, !0), wt(xt, "transition", ""), wt(xt, "transform", ""), wt(xt, "box-sizing", "border-box"), wt(xt, "margin", 0), wt(xt, "top", i.top), wt(xt, "left", i.left), wt(xt, "width", i.width), wt(xt, "height", i.height), wt(xt, "opacity", "0.8"), wt(xt, "position", us ? "absolute" : "fixed"), wt(xt, "zIndex", "100000"), wt(xt, "pointerEvents", "none"), At.ghost = xt, t.appendChild(xt), wt(xt, "transform-origin", Av / parseInt(xt.style.width) * 100 + "% " + Cv / parseInt(xt.style.height) * 100 + "%"); } }, _onDragStart: function(t, i) { @@ -10293,19 +10300,19 @@ At.prototype = { this._onDrop(); return; } - Kn("setupClone", this), At.eventCanceled || (nn = yy(qe), nn.draggable = !1, nn.style["will-change"] = "", this._hideClone(), ni(nn, this.options.chosenClass, !1), At.clone = nn), r.cloneId = $s(function() { - Kn("clone", r), !At.eventCanceled && (r.options.removeCloneOnHide || Xt.insertBefore(nn, qe), r._hideClone(), Un({ + Kn("setupClone", this), At.eventCanceled || (nn = yy(et), nn.draggable = !1, nn.style["will-change"] = "", this._hideClone(), ni(nn, this.options.chosenClass, !1), At.clone = nn), r.cloneId = $s(function() { + Kn("clone", r), !At.eventCanceled && (r.options.removeCloneOnHide || Xt.insertBefore(nn, et), r._hideClone(), Un({ sortable: r, name: "clone" })); - }), !i && ni(qe, a.dragClass, !0), i ? (zs = !0, r._loopId = setInterval(r._emulateDragOver, 50)) : (Dt(document, "mouseup", r._onDrop), Dt(document, "touchend", r._onDrop), Dt(document, "touchcancel", r._onDrop), n && (n.effectAllowed = "move", a.setData && a.setData.call(r, n, qe)), Mt(document, "drop", r), wt(qe, "transform", "translateZ(0)")), Lo = !0, r._dragStartId = $s(r._dragStarted.bind(r, i, t)), Mt(document, "selectstart", r), za = !0, Ya && wt(document.body, "user-select", "none"); + }), !i && ni(et, a.dragClass, !0), i ? (zs = !0, r._loopId = setInterval(r._emulateDragOver, 50)) : (Dt(document, "mouseup", r._onDrop), Dt(document, "touchend", r._onDrop), Dt(document, "touchcancel", r._onDrop), n && (n.effectAllowed = "move", a.setData && a.setData.call(r, n, et)), Mt(document, "drop", r), wt(et, "transform", "translateZ(0)")), Lo = !0, r._dragStartId = $s(r._dragStarted.bind(r, i, t)), Mt(document, "selectstart", r), za = !0, Ya && wt(document.body, "user-select", "none"); }, _onDragOver: function(t) { var i = this.el, r = t.target, n, a, s, u = this.options, d = u.group, p = At.active, h = ls === d, g = u.sort, _ = Tn || p, S, b = this, A = !1; if (lc) return; - function y(F, q) { - Kn(F, b, zi({ + function y(C, q) { + Kn(C, b, zi({ evt: t, isOwner: h, axis: S ? "vertical" : "horizontal", @@ -10316,8 +10323,8 @@ At.prototype = { fromSortable: _, target: r, completed: w, - onMove: function(Y, J) { - return ds(Xt, i, qe, n, Y, _n(Y), t, J); + onMove: function(Y, ue) { + return ds(Xt, i, et, n, Y, _n(Y), t, ue); }, changed: E }, q)); @@ -10325,15 +10332,15 @@ At.prototype = { function m() { y("dragOverAnimationCapture"), b.captureAnimationState(), b !== _ && _.captureAnimationState(); } - function w(F) { + function w(C) { return y("dragOverCompleted", { - insertion: F - }), F && (h ? p._hideClone() : p._showClone(b), b !== _ && (ni(qe, Tn ? Tn.options.ghostClass : p.options.ghostClass, !1), ni(qe, u.ghostClass, !0)), Tn !== b && b !== At.active ? Tn = b : b === At.active && Tn && (Tn = null), _ === b && (b._ignoreWhileAnimating = r), b.animateAll(function() { + insertion: C + }), C && (h ? p._hideClone() : p._showClone(b), b !== _ && (ni(et, Tn ? Tn.options.ghostClass : p.options.ghostClass, !1), ni(et, u.ghostClass, !0)), Tn !== b && b !== At.active ? Tn = b : b === At.active && Tn && (Tn = null), _ === b && (b._ignoreWhileAnimating = r), b.animateAll(function() { y("dragOverAnimationComplete"), b._ignoreWhileAnimating = null; - }), b !== _ && (_.animateAll(), _._ignoreWhileAnimating = null)), (r === qe && !qe.animated || r === i && !r.animated) && (Oo = null), !u.dragoverBubble && !t.rootEl && r !== document && (qe.parentNode[ri]._isOutsideThisEl(t.target), !F && Hr(t)), !u.dragoverBubble && t.stopPropagation && t.stopPropagation(), A = !0; + }), b !== _ && (_.animateAll(), _._ignoreWhileAnimating = null)), (r === et && !et.animated || r === i && !r.animated) && (Oo = null), !u.dragoverBubble && !t.rootEl && r !== document && (et.parentNode[ri]._isOutsideThisEl(t.target), !C && Hr(t)), !u.dragoverBubble && t.stopPropagation && t.stopPropagation(), A = !0; } function E() { - ii = ci(qe), xr = ci(qe, u.draggable), Un({ + ii = ci(et), xr = ci(et, u.draggable), Un({ sortable: b, name: "change", toEl: i, @@ -10344,46 +10351,46 @@ At.prototype = { } if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), r = Bi(r, u.draggable, i, !0), y("dragOver"), At.eventCanceled) return A; - if (qe.contains(t.target) || r.animated && r.animatingX && r.animatingY || b._ignoreWhileAnimating === r) + if (et.contains(t.target) || r.animated && r.animatingX && r.animatingY || b._ignoreWhileAnimating === r) return w(!1); - if (zs = !1, p && !u.disabled && (h ? g || (s = tn !== Xt) : Tn === this || (this.lastPutMode = ls.checkPull(this, p, qe, t)) && d.checkPut(this, p, qe, t))) { - if (S = this._getDirection(t, r) === "vertical", n = _n(qe), y("dragOverValid"), At.eventCanceled) + if (zs = !1, p && !u.disabled && (h ? g || (s = tn !== Xt) : Tn === this || (this.lastPutMode = ls.checkPull(this, p, et, t)) && d.checkPut(this, p, et, t))) { + if (S = this._getDirection(t, r) === "vertical", n = _n(et), y("dragOverValid"), At.eventCanceled) return A; if (s) - return tn = Xt, m(), this._hideClone(), y("revert"), At.eventCanceled || (zr ? Xt.insertBefore(qe, zr) : Xt.appendChild(qe)), w(!0); + return tn = Xt, m(), this._hideClone(), y("revert"), At.eventCanceled || (zr ? Xt.insertBefore(et, zr) : Xt.appendChild(et)), w(!0); var x = Fc(i, u.draggable); if (!x || IE(t, S, this) && !x.animated) { - if (x === qe) + if (x === et) return w(!1); - if (x && i === t.target && (r = x), r && (a = _n(r)), ds(Xt, i, qe, n, r, a, t, !!r) !== !1) - return m(), i.appendChild(qe), tn = i, E(), w(!0); + if (x && i === t.target && (r = x), r && (a = _n(r)), ds(Xt, i, et, n, r, a, t, !!r) !== !1) + return m(), i.appendChild(et), tn = i, E(), w(!0); } else if (x && DE(t, S, this)) { var k = Go(i, 0, u, !0); - if (k === qe) + if (k === et) return w(!1); - if (r = k, a = _n(r), ds(Xt, i, qe, n, r, a, t, !1) !== !1) - return m(), i.insertBefore(qe, k), tn = i, E(), w(!0); + if (r = k, a = _n(r), ds(Xt, i, et, n, r, a, t, !1) !== !1) + return m(), i.insertBefore(et, k), tn = i, E(), w(!0); } else if (r.parentNode === i) { a = _n(r); - var $ = 0, M, P = qe.parentNode !== i, B = !TE(qe.animated && qe.toRect || n, r.animated && r.toRect || a, S), T = S ? "top" : "left", D = _v(r, "top", "top") || _v(qe, "top", "top"), V = D ? D.scrollTop : void 0; - Oo !== r && (M = a[T], Za = !1, ss = !B && u.invertSwap || P), $ = FE(t, r, a, S, B ? 1 : u.swapThreshold, u.invertedSwapThreshold == null ? u.swapThreshold : u.invertedSwapThreshold, ss, Oo === r); - var K; - if ($ !== 0) { - var G = ci(qe); + var R = 0, M, P = et.parentNode !== i, B = !TE(et.animated && et.toRect || n, r.animated && r.toRect || a, S), T = S ? "top" : "left", D = _v(r, "top", "top") || _v(et, "top", "top"), V = D ? D.scrollTop : void 0; + Oo !== r && (M = a[T], Za = !1, ss = !B && u.invertSwap || P), R = FE(t, r, a, S, B ? 1 : u.swapThreshold, u.invertedSwapThreshold == null ? u.swapThreshold : u.invertedSwapThreshold, ss, Oo === r); + var W; + if (R !== 0) { + var G = ci(et); do - G -= $, K = tn.children[G]; - while (K && (wt(K, "display") === "none" || K === xt)); + G -= R, W = tn.children[G]; + while (W && (wt(W, "display") === "none" || W === xt)); } - if ($ === 0 || K === r) + if (R === 0 || W === r) return w(!1); - Oo = r, Xa = $; - var R = r.nextElementSibling, z = !1; - z = $ === 1; - var C = ds(Xt, i, qe, n, r, a, t, z); - if (C !== !1) - return (C === 1 || C === -1) && (z = C === 1), lc = !0, setTimeout(RE, 30), m(), z && !R ? i.appendChild(qe) : r.parentNode.insertBefore(qe, z ? R : r), D && gy(D, 0, V - D.scrollTop), tn = qe.parentNode, M !== void 0 && !ss && (Os = Math.abs(M - _n(r)[T])), E(), w(!0); + Oo = r, Xa = R; + var I = r.nextElementSibling, U = !1; + U = R === 1; + var F = ds(Xt, i, et, n, r, a, t, U); + if (F !== !1) + return (F === 1 || F === -1) && (U = F === 1), lc = !0, setTimeout(RE, 30), m(), U && !I ? i.appendChild(et) : r.parentNode.insertBefore(et, U ? I : r), D && gy(D, 0, V - D.scrollTop), tn = et.parentNode, M !== void 0 && !ss && (Os = Math.abs(M - _n(r)[T])), E(), w(!0); } - if (i.contains(qe)) + if (i.contains(et)) return w(!1); } return !1; @@ -10398,13 +10405,13 @@ At.prototype = { }, _onDrop: function(t) { var i = this.el, r = this.options; - if (ii = ci(qe), xr = ci(qe, r.draggable), Kn("drop", this, { + if (ii = ci(et), xr = ci(et, r.draggable), Kn("drop", this, { evt: t - }), tn = qe && qe.parentNode, ii = ci(qe), xr = ci(qe, r.draggable), At.eventCanceled) { + }), tn = et && et.parentNode, ii = ci(et), xr = ci(et, r.draggable), At.eventCanceled) { this._nulling(); return; } - Lo = !1, ss = !1, Za = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), sc(this.cloneId), sc(this._dragStartId), this.nativeDraggable && (Dt(document, "drop", this), Dt(i, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ya && wt(document.body, "user-select", ""), wt(qe, "transform", ""), t && (za && (t.cancelable && t.preventDefault(), !r.dropBubble && t.stopPropagation()), xt && xt.parentNode && xt.parentNode.removeChild(xt), (Xt === tn || Tn && Tn.lastPutMode !== "clone") && nn && nn.parentNode && nn.parentNode.removeChild(nn), qe && (this.nativeDraggable && Dt(qe, "dragend", this), xf(qe), qe.style["will-change"] = "", za && !Lo && ni(qe, Tn ? Tn.options.ghostClass : this.options.ghostClass, !1), ni(qe, this.options.chosenClass, !1), Un({ + Lo = !1, ss = !1, Za = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), sc(this.cloneId), sc(this._dragStartId), this.nativeDraggable && (Dt(document, "drop", this), Dt(i, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ya && wt(document.body, "user-select", ""), wt(et, "transform", ""), t && (za && (t.cancelable && t.preventDefault(), !r.dropBubble && t.stopPropagation()), xt && xt.parentNode && xt.parentNode.removeChild(xt), (Xt === tn || Tn && Tn.lastPutMode !== "clone") && nn && nn.parentNode && nn.parentNode.removeChild(nn), et && (this.nativeDraggable && Dt(et, "dragend", this), xf(et), et.style["will-change"] = "", za && !Lo && ni(et, Tn ? Tn.options.ghostClass : this.options.ghostClass, !1), ni(et, this.options.chosenClass, !1), Un({ sortable: this, name: "unchoose", toEl: tn, @@ -10451,7 +10458,7 @@ At.prototype = { }), this.save()))), this._nulling(); }, _nulling: function() { - Kn("nulling", this), Xt = qe = tn = xt = zr = nn = ks = Tr = Ur = Si = za = ii = xr = No = Ja = Oo = Xa = Tn = ls = At.dragged = At.ghost = At.clone = At.active = null, Gs.forEach(function(t) { + Kn("nulling", this), Xt = et = tn = xt = zr = nn = ks = Tr = Ur = Si = za = ii = xr = No = Ja = Oo = Xa = Tn = ls = At.dragged = At.ghost = At.clone = At.active = null, Gs.forEach(function(t) { t.checked = !0; }), Gs.length = Cf = Sf = 0; }, @@ -10463,7 +10470,7 @@ At.prototype = { break; case "dragenter": case "dragover": - qe && (this._onDragOver(t), $E(t)); + et && (this._onDragOver(t), $E(t)); break; case "selectstart": t.preventDefault(); @@ -10520,7 +10527,7 @@ At.prototype = { if (Tr) { if (Kn("showClone", this), At.eventCanceled) return; - qe.parentNode == Xt && !this.options.group.revertClone ? Xt.insertBefore(nn, qe) : zr ? Xt.insertBefore(nn, zr) : Xt.appendChild(nn), this.options.group.revertClone && this.animate(qe, nn), wt(nn, "display", ""), Tr = !1; + et.parentNode == Xt && !this.options.group.revertClone ? Xt.insertBefore(nn, et) : zr ? Xt.insertBefore(nn, zr) : Xt.appendChild(nn), this.options.group.revertClone && this.animate(et, nn), wt(nn, "display", ""), Tr = !1; } } }; @@ -10562,7 +10569,7 @@ function FE(e, t, i, r, n, a, s, u) { return _ = _ || s, _ && (d < h + p * a / 2 || d > g - p * a / 2) ? d > h + p / 2 ? 1 : -1 : 0; } function PE(e) { - return ci(qe) < ci(e) ? 1 : -1; + return ci(et) < ci(e) ? 1 : -1; } function ME(e) { for (var t = e.tagName + e.className + e.src + e.href + e.textContent, i = t.length, r = 0; i--; ) @@ -10687,16 +10694,16 @@ var Of = vy(function(e, t, i, r) { uc !== i && (uc = i, Rs(), Wa = t.scroll, h = t.scrollFn, Wa === !0 && (Wa = Or(i, !0))); var g = 0, _ = Wa; do { - var S = _, b = _n(S), A = b.top, y = b.bottom, m = b.left, w = b.right, E = b.width, x = b.height, k = void 0, $ = void 0, M = S.scrollWidth, P = S.scrollHeight, B = wt(S), T = S.scrollLeft, D = S.scrollTop; - S === d ? (k = E < M && (B.overflowX === "auto" || B.overflowX === "scroll" || B.overflowX === "visible"), $ = x < P && (B.overflowY === "auto" || B.overflowY === "scroll" || B.overflowY === "visible")) : (k = E < M && (B.overflowX === "auto" || B.overflowX === "scroll"), $ = x < P && (B.overflowY === "auto" || B.overflowY === "scroll")); - var V = k && (Math.abs(w - n) <= s && T + E < M) - (Math.abs(m - n) <= s && !!T), K = $ && (Math.abs(y - a) <= s && D + x < P) - (Math.abs(A - a) <= s && !!D); + var S = _, b = _n(S), A = b.top, y = b.bottom, m = b.left, w = b.right, E = b.width, x = b.height, k = void 0, R = void 0, M = S.scrollWidth, P = S.scrollHeight, B = wt(S), T = S.scrollLeft, D = S.scrollTop; + S === d ? (k = E < M && (B.overflowX === "auto" || B.overflowX === "scroll" || B.overflowX === "visible"), R = x < P && (B.overflowY === "auto" || B.overflowY === "scroll" || B.overflowY === "visible")) : (k = E < M && (B.overflowX === "auto" || B.overflowX === "scroll"), R = x < P && (B.overflowY === "auto" || B.overflowY === "scroll")); + var V = k && (Math.abs(w - n) <= s && T + E < M) - (Math.abs(m - n) <= s && !!T), W = R && (Math.abs(y - a) <= s && D + x < P) - (Math.abs(A - a) <= s && !!D); if (!fn[g]) for (var G = 0; G <= g; G++) fn[G] || (fn[G] = {}); - (fn[g].vx != V || fn[g].vy != K || fn[g].el !== S) && (fn[g].el = S, fn[g].vx = V, fn[g].vy = K, clearInterval(fn[g].pid), (V != 0 || K != 0) && (p = !0, fn[g].pid = setInterval(function() { + (fn[g].vx != V || fn[g].vy != W || fn[g].el !== S) && (fn[g].el = S, fn[g].vx = V, fn[g].vy = W, clearInterval(fn[g].pid), (V != 0 || W != 0) && (p = !0, fn[g].pid = setInterval(function() { r && this.layer === 0 && At.active._onTouchMove(Ks); - var R = fn[this.layer].vy ? fn[this.layer].vy * u : 0, z = fn[this.layer].vx ? fn[this.layer].vx * u : 0; - typeof h == "function" && h.call(At.dragged.parentNode[ri], z, R, e, Ks, fn[this.layer].el) !== "continue" || gy(fn[this.layer].el, z, R); + var I = fn[this.layer].vy ? fn[this.layer].vy * u : 0, U = fn[this.layer].vx ? fn[this.layer].vx * u : 0; + typeof h == "function" && h.call(At.dragged.parentNode[ri], U, I, e, Ks, fn[this.layer].el) !== "continue" || gy(fn[this.layer].el, U, I); }.bind({ layer: g }), 24))), g++; @@ -10997,7 +11004,7 @@ function t2(e) { return { transition: t, externalComponent: i, - tag: i ? ne(e) : t ? ow : e + tag: i ? ee(e) : t ? ow : e }; } function n2({ $slots: e, tag: t, realList: i, getKey: r }) { @@ -11056,7 +11063,7 @@ const r2 = { "update:modelValue", "change", ...[...fc.manageAndEmit, ...fc.emit].map((e) => e.toLowerCase()) -], Yo = Ve({ +], Yo = Be({ name: "draggable", inheritAttrs: !1, props: r2, @@ -11276,195 +11283,195 @@ var Iy = { exports: {} }; e.exports = r(); })(Lc, function() { var i = 1e3, r = 6e4, n = 36e5, a = "millisecond", s = "second", u = "minute", d = "hour", p = "day", h = "week", g = "month", _ = "quarter", S = "year", b = "date", A = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, m = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, w = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(G) { - var R = ["th", "st", "nd", "rd"], z = G % 100; - return "[" + G + (R[(z - 20) % 10] || R[z] || R[0]) + "]"; - } }, E = function(G, R, z) { - var C = String(G); - return !C || C.length >= R ? G : "" + Array(R + 1 - C.length).join(z) + G; + var I = ["th", "st", "nd", "rd"], U = G % 100; + return "[" + G + (I[(U - 20) % 10] || I[U] || I[0]) + "]"; + } }, E = function(G, I, U) { + var F = String(G); + return !F || F.length >= I ? G : "" + Array(I + 1 - F.length).join(U) + G; }, x = { s: E, z: function(G) { - var R = -G.utcOffset(), z = Math.abs(R), C = Math.floor(z / 60), F = z % 60; - return (R <= 0 ? "+" : "-") + E(C, 2, "0") + ":" + E(F, 2, "0"); - }, m: function G(R, z) { - if (R.date() < z.date()) - return -G(z, R); - var C = 12 * (z.year() - R.year()) + (z.month() - R.month()), F = R.clone().add(C, g), q = z - F < 0, Z = R.clone().add(C + (q ? -1 : 1), g); - return +(-(C + (z - F) / (q ? F - Z : Z - F)) || 0); + var I = -G.utcOffset(), U = Math.abs(I), F = Math.floor(U / 60), C = U % 60; + return (I <= 0 ? "+" : "-") + E(F, 2, "0") + ":" + E(C, 2, "0"); + }, m: function G(I, U) { + if (I.date() < U.date()) + return -G(U, I); + var F = 12 * (U.year() - I.year()) + (U.month() - I.month()), C = I.clone().add(F, g), q = U - C < 0, Z = I.clone().add(F + (q ? -1 : 1), g); + return +(-(F + (U - C) / (q ? C - Z : Z - C)) || 0); }, a: function(G) { return G < 0 ? Math.ceil(G) || 0 : Math.floor(G); }, p: function(G) { return { M: g, y: S, w: h, d: p, D: b, h: d, m: u, s, ms: a, Q: _ }[G] || String(G || "").toLowerCase().replace(/s$/, ""); }, u: function(G) { return G === void 0; - } }, k = "en", $ = {}; - $[k] = w; + } }, k = "en", R = {}; + R[k] = w; var M = "$isDayjsObject", P = function(G) { return G instanceof V || !(!G || !G[M]); - }, B = function G(R, z, C) { - var F; - if (!R) + }, B = function G(I, U, F) { + var C; + if (!I) return k; - if (typeof R == "string") { - var q = R.toLowerCase(); - $[q] && (F = q), z && ($[q] = z, F = q); - var Z = R.split("-"); - if (!F && Z.length > 1) + if (typeof I == "string") { + var q = I.toLowerCase(); + R[q] && (C = q), U && (R[q] = U, C = q); + var Z = I.split("-"); + if (!C && Z.length > 1) return G(Z[0]); } else { - var Y = R.name; - $[Y] = R, F = Y; + var Y = I.name; + R[Y] = I, C = Y; } - return !C && F && (k = F), F || !C && k; - }, T = function(G, R) { + return !F && C && (k = C), C || !F && k; + }, T = function(G, I) { if (P(G)) return G.clone(); - var z = typeof R == "object" ? R : {}; - return z.date = G, z.args = arguments, new V(z); + var U = typeof I == "object" ? I : {}; + return U.date = G, U.args = arguments, new V(U); }, D = x; - D.l = B, D.i = P, D.w = function(G, R) { - return T(G, { locale: R.$L, utc: R.$u, x: R.$x, $offset: R.$offset }); + D.l = B, D.i = P, D.w = function(G, I) { + return T(G, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset }); }; var V = function() { - function G(z) { - this.$L = B(z.locale, null, !0), this.parse(z), this.$x = this.$x || z.x || {}, this[M] = !0; + function G(U) { + this.$L = B(U.locale, null, !0), this.parse(U), this.$x = this.$x || U.x || {}, this[M] = !0; } - var R = G.prototype; - return R.parse = function(z) { - this.$d = function(C) { - var F = C.date, q = C.utc; - if (F === null) + var I = G.prototype; + return I.parse = function(U) { + this.$d = function(F) { + var C = F.date, q = F.utc; + if (C === null) return new Date(NaN); - if (D.u(F)) + if (D.u(C)) return new Date(); - if (F instanceof Date) - return new Date(F); - if (typeof F == "string" && !/Z$/i.test(F)) { - var Z = F.match(y); + if (C instanceof Date) + return new Date(C); + if (typeof C == "string" && !/Z$/i.test(C)) { + var Z = C.match(y); if (Z) { - var Y = Z[2] - 1 || 0, J = (Z[7] || "0").substring(0, 3); - return q ? new Date(Date.UTC(Z[1], Y, Z[3] || 1, Z[4] || 0, Z[5] || 0, Z[6] || 0, J)) : new Date(Z[1], Y, Z[3] || 1, Z[4] || 0, Z[5] || 0, Z[6] || 0, J); + var Y = Z[2] - 1 || 0, ue = (Z[7] || "0").substring(0, 3); + return q ? new Date(Date.UTC(Z[1], Y, Z[3] || 1, Z[4] || 0, Z[5] || 0, Z[6] || 0, ue)) : new Date(Z[1], Y, Z[3] || 1, Z[4] || 0, Z[5] || 0, Z[6] || 0, ue); } } - return new Date(F); - }(z), this.init(); - }, R.init = function() { - var z = this.$d; - this.$y = z.getFullYear(), this.$M = z.getMonth(), this.$D = z.getDate(), this.$W = z.getDay(), this.$H = z.getHours(), this.$m = z.getMinutes(), this.$s = z.getSeconds(), this.$ms = z.getMilliseconds(); - }, R.$utils = function() { + return new Date(C); + }(U), this.init(); + }, I.init = function() { + var U = this.$d; + this.$y = U.getFullYear(), this.$M = U.getMonth(), this.$D = U.getDate(), this.$W = U.getDay(), this.$H = U.getHours(), this.$m = U.getMinutes(), this.$s = U.getSeconds(), this.$ms = U.getMilliseconds(); + }, I.$utils = function() { return D; - }, R.isValid = function() { + }, I.isValid = function() { return this.$d.toString() !== A; - }, R.isSame = function(z, C) { - var F = T(z); - return this.startOf(C) <= F && F <= this.endOf(C); - }, R.isAfter = function(z, C) { - return T(z) < this.startOf(C); - }, R.isBefore = function(z, C) { - return this.endOf(C) < T(z); - }, R.$g = function(z, C, F) { - return D.u(z) ? this[C] : this.set(F, z); - }, R.unix = function() { + }, I.isSame = function(U, F) { + var C = T(U); + return this.startOf(F) <= C && C <= this.endOf(F); + }, I.isAfter = function(U, F) { + return T(U) < this.startOf(F); + }, I.isBefore = function(U, F) { + return this.endOf(F) < T(U); + }, I.$g = function(U, F, C) { + return D.u(U) ? this[F] : this.set(C, U); + }, I.unix = function() { return Math.floor(this.valueOf() / 1e3); - }, R.valueOf = function() { + }, I.valueOf = function() { return this.$d.getTime(); - }, R.startOf = function(z, C) { - var F = this, q = !!D.u(C) || C, Z = D.p(z), Y = function(ce, Se) { - var I = D.w(F.$u ? Date.UTC(F.$y, Se, ce) : new Date(F.$y, Se, ce), F); - return q ? I : I.endOf(p); - }, J = function(ce, Se) { - return D.w(F.toDate()[ce].apply(F.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Se)), F); - }, ve = this.$W, pe = this.$M, Te = this.$D, ge = "set" + (this.$u ? "UTC" : ""); + }, I.startOf = function(U, F) { + var C = this, q = !!D.u(F) || F, Z = D.p(U), Y = function(he, Se) { + var xe = D.w(C.$u ? Date.UTC(C.$y, Se, he) : new Date(C.$y, Se, he), C); + return q ? xe : xe.endOf(p); + }, ue = function(he, Se) { + return D.w(C.toDate()[he].apply(C.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Se)), C); + }, te = this.$W, pe = this.$M, ke = this.$D, ge = "set" + (this.$u ? "UTC" : ""); switch (Z) { case S: return q ? Y(1, 0) : Y(31, 11); case g: return q ? Y(1, pe) : Y(0, pe + 1); case h: - var me = this.$locale().weekStart || 0, we = (ve < me ? ve + 7 : ve) - me; - return Y(q ? Te - we : Te + (6 - we), pe); + var ve = this.$locale().weekStart || 0, we = (te < ve ? te + 7 : te) - ve; + return Y(q ? ke - we : ke + (6 - we), pe); case p: case b: - return J(ge + "Hours", 0); + return ue(ge + "Hours", 0); case d: - return J(ge + "Minutes", 1); + return ue(ge + "Minutes", 1); case u: - return J(ge + "Seconds", 2); + return ue(ge + "Seconds", 2); case s: - return J(ge + "Milliseconds", 3); + return ue(ge + "Milliseconds", 3); default: return this.clone(); } - }, R.endOf = function(z) { - return this.startOf(z, !1); - }, R.$set = function(z, C) { - var F, q = D.p(z), Z = "set" + (this.$u ? "UTC" : ""), Y = (F = {}, F[p] = Z + "Date", F[b] = Z + "Date", F[g] = Z + "Month", F[S] = Z + "FullYear", F[d] = Z + "Hours", F[u] = Z + "Minutes", F[s] = Z + "Seconds", F[a] = Z + "Milliseconds", F)[q], J = q === p ? this.$D + (C - this.$W) : C; + }, I.endOf = function(U) { + return this.startOf(U, !1); + }, I.$set = function(U, F) { + var C, q = D.p(U), Z = "set" + (this.$u ? "UTC" : ""), Y = (C = {}, C[p] = Z + "Date", C[b] = Z + "Date", C[g] = Z + "Month", C[S] = Z + "FullYear", C[d] = Z + "Hours", C[u] = Z + "Minutes", C[s] = Z + "Seconds", C[a] = Z + "Milliseconds", C)[q], ue = q === p ? this.$D + (F - this.$W) : F; if (q === g || q === S) { - var ve = this.clone().set(b, 1); - ve.$d[Y](J), ve.init(), this.$d = ve.set(b, Math.min(this.$D, ve.daysInMonth())).$d; + var te = this.clone().set(b, 1); + te.$d[Y](ue), te.init(), this.$d = te.set(b, Math.min(this.$D, te.daysInMonth())).$d; } else - Y && this.$d[Y](J); + Y && this.$d[Y](ue); return this.init(), this; - }, R.set = function(z, C) { - return this.clone().$set(z, C); - }, R.get = function(z) { - return this[D.p(z)](); - }, R.add = function(z, C) { - var F, q = this; - z = Number(z); - var Z = D.p(C), Y = function(pe) { - var Te = T(q); - return D.w(Te.date(Te.date() + Math.round(pe * z)), q); + }, I.set = function(U, F) { + return this.clone().$set(U, F); + }, I.get = function(U) { + return this[D.p(U)](); + }, I.add = function(U, F) { + var C, q = this; + U = Number(U); + var Z = D.p(F), Y = function(pe) { + var ke = T(q); + return D.w(ke.date(ke.date() + Math.round(pe * U)), q); }; if (Z === g) - return this.set(g, this.$M + z); + return this.set(g, this.$M + U); if (Z === S) - return this.set(S, this.$y + z); + return this.set(S, this.$y + U); if (Z === p) return Y(1); if (Z === h) return Y(7); - var J = (F = {}, F[u] = r, F[d] = n, F[s] = i, F)[Z] || 1, ve = this.$d.getTime() + z * J; - return D.w(ve, this); - }, R.subtract = function(z, C) { - return this.add(-1 * z, C); - }, R.format = function(z) { - var C = this, F = this.$locale(); + var ue = (C = {}, C[u] = r, C[d] = n, C[s] = i, C)[Z] || 1, te = this.$d.getTime() + U * ue; + return D.w(te, this); + }, I.subtract = function(U, F) { + return this.add(-1 * U, F); + }, I.format = function(U) { + var F = this, C = this.$locale(); if (!this.isValid()) - return F.invalidDate || A; - var q = z || "YYYY-MM-DDTHH:mm:ssZ", Z = D.z(this), Y = this.$H, J = this.$m, ve = this.$M, pe = F.weekdays, Te = F.months, ge = F.meridiem, me = function(Se, I, j, ee) { - return Se && (Se[I] || Se(C, q)) || j[I].slice(0, ee); + return C.invalidDate || A; + var q = U || "YYYY-MM-DDTHH:mm:ssZ", Z = D.z(this), Y = this.$H, ue = this.$m, te = this.$M, pe = C.weekdays, ke = C.months, ge = C.meridiem, ve = function(Se, xe, $, K) { + return Se && (Se[xe] || Se(F, q)) || $[xe].slice(0, K); }, we = function(Se) { return D.s(Y % 12 || 12, Se, "0"); - }, ce = ge || function(Se, I, j) { - var ee = Se < 12 ? "AM" : "PM"; - return j ? ee.toLowerCase() : ee; + }, he = ge || function(Se, xe, $) { + var K = Se < 12 ? "AM" : "PM"; + return $ ? K.toLowerCase() : K; }; - return q.replace(m, function(Se, I) { - return I || function(j) { - switch (j) { + return q.replace(m, function(Se, xe) { + return xe || function($) { + switch ($) { case "YY": - return String(C.$y).slice(-2); + return String(F.$y).slice(-2); case "YYYY": - return D.s(C.$y, 4, "0"); + return D.s(F.$y, 4, "0"); case "M": - return ve + 1; + return te + 1; case "MM": - return D.s(ve + 1, 2, "0"); + return D.s(te + 1, 2, "0"); case "MMM": - return me(F.monthsShort, ve, Te, 3); + return ve(C.monthsShort, te, ke, 3); case "MMMM": - return me(Te, ve); + return ve(ke, te); case "D": - return C.$D; + return F.$D; case "DD": - return D.s(C.$D, 2, "0"); + return D.s(F.$D, 2, "0"); case "d": - return String(C.$W); + return String(F.$W); case "dd": - return me(F.weekdaysMin, C.$W, pe, 2); + return ve(C.weekdaysMin, F.$W, pe, 2); case "ddd": - return me(F.weekdaysShort, C.$W, pe, 3); + return ve(C.weekdaysShort, F.$W, pe, 3); case "dddd": - return pe[C.$W]; + return pe[F.$W]; case "H": return String(Y); case "HH": @@ -11474,46 +11481,46 @@ var Iy = { exports: {} }; case "hh": return we(2); case "a": - return ce(Y, J, !0); + return he(Y, ue, !0); case "A": - return ce(Y, J, !1); + return he(Y, ue, !1); case "m": - return String(J); + return String(ue); case "mm": - return D.s(J, 2, "0"); + return D.s(ue, 2, "0"); case "s": - return String(C.$s); + return String(F.$s); case "ss": - return D.s(C.$s, 2, "0"); + return D.s(F.$s, 2, "0"); case "SSS": - return D.s(C.$ms, 3, "0"); + return D.s(F.$ms, 3, "0"); case "Z": return Z; } return null; }(Se) || Z.replace(":", ""); }); - }, R.utcOffset = function() { + }, I.utcOffset = function() { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); - }, R.diff = function(z, C, F) { - var q, Z = this, Y = D.p(C), J = T(z), ve = (J.utcOffset() - this.utcOffset()) * r, pe = this - J, Te = function() { - return D.m(Z, J); + }, I.diff = function(U, F, C) { + var q, Z = this, Y = D.p(F), ue = T(U), te = (ue.utcOffset() - this.utcOffset()) * r, pe = this - ue, ke = function() { + return D.m(Z, ue); }; switch (Y) { case S: - q = Te() / 12; + q = ke() / 12; break; case g: - q = Te(); + q = ke(); break; case _: - q = Te() / 3; + q = ke() / 3; break; case h: - q = (pe - ve) / 6048e5; + q = (pe - te) / 6048e5; break; case p: - q = (pe - ve) / 864e5; + q = (pe - te) / 864e5; break; case d: q = pe / n; @@ -11527,37 +11534,37 @@ var Iy = { exports: {} }; default: q = pe; } - return F ? q : D.a(q); - }, R.daysInMonth = function() { + return C ? q : D.a(q); + }, I.daysInMonth = function() { return this.endOf(g).$D; - }, R.$locale = function() { - return $[this.$L]; - }, R.locale = function(z, C) { - if (!z) + }, I.$locale = function() { + return R[this.$L]; + }, I.locale = function(U, F) { + if (!U) return this.$L; - var F = this.clone(), q = B(z, C, !0); - return q && (F.$L = q), F; - }, R.clone = function() { + var C = this.clone(), q = B(U, F, !0); + return q && (C.$L = q), C; + }, I.clone = function() { return D.w(this.$d, this); - }, R.toDate = function() { + }, I.toDate = function() { return new Date(this.valueOf()); - }, R.toJSON = function() { + }, I.toJSON = function() { return this.isValid() ? this.toISOString() : null; - }, R.toISOString = function() { + }, I.toISOString = function() { return this.$d.toISOString(); - }, R.toString = function() { + }, I.toString = function() { return this.$d.toUTCString(); }, G; - }(), K = V.prototype; - return T.prototype = K, [["$ms", a], ["$s", s], ["$m", u], ["$H", d], ["$W", p], ["$M", g], ["$y", S], ["$D", b]].forEach(function(G) { - K[G[1]] = function(R) { - return this.$g(R, G[0], G[1]); + }(), W = V.prototype; + return T.prototype = W, [["$ms", a], ["$s", s], ["$m", u], ["$H", d], ["$W", p], ["$M", g], ["$y", S], ["$D", b]].forEach(function(G) { + W[G[1]] = function(I) { + return this.$g(I, G[0], G[1]); }; - }), T.extend = function(G, R) { - return G.$i || (G(R, V, T), G.$i = !0), T; + }), T.extend = function(G, I) { + return G.$i || (G(I, V, T), G.$i = !0), T; }, T.locale = B, T.isDayjs = P, T.unix = function(G) { return T(1e3 * G); - }, T.en = $[k], T.Ls = $, T.p = {}, T; + }, T.en = R[k], T.Ls = R, T.p = {}, T; }); })(Iy); const s2 = Iy.exports, $o = { @@ -12368,7 +12375,7 @@ const s2 = Iy.exports, $o = { { type: "input", field: "response", - value: "res_" + it() + value: "res_" + rt() } ]; }, @@ -12526,14 +12533,14 @@ au.parser().preview = pw; Object.keys(rn).forEach((e) => { au.setFormula(e, rn[e]); }); -const li = au, et = au.factory(); +const li = au, tt = au.factory(); Bc(li); Ny(li); -Bc(et); -Ny(et); +Bc(tt); +Ny(tt); li.register("behavior", Ly); li.register("easySlots", nl); -et.register("easySlots", nl); +tt.register("easySlots", nl); /*! * @form-create/component-elm-select v3.2.18 * (c) 2018-2025 xaboy @@ -12614,7 +12621,7 @@ var Ys = { function g2(e, t) { return {}.hasOwnProperty.call(e, t); } -var y2 = "fcSelect", b2 = Ve({ +var y2 = "fcSelect", b2 = Be({ name: y2, inheritAttrs: !1, props: { @@ -12637,11 +12644,11 @@ var y2 = "fcSelect", b2 = Ve({ }, render: function() { var t = this, i, r, n = function(d, p) { - return W(ne("ElOption"), jt(d, { + return z(ee("ElOption"), jt(d, { key: "" + p + "-" + d.value }), null); }, a = function(d, p) { - return W(ne("ElOptionGroup"), { + return z(ee("ElOptionGroup"), { label: d.label, key: "" + p + "-" + d.label }, { @@ -12652,7 +12659,7 @@ var y2 = "fcSelect", b2 = Ve({ } }); }, s = this.options(); - return W(ne("ElSelect"), jt(this.$attrs, { + return z(ee("ElSelect"), jt(this.$attrs, { modelValue: this.value, "onUpdate:modelValue": function(d) { return t.$emit("update:modelValue", d); @@ -12679,7 +12686,7 @@ var y2 = "fcSelect", b2 = Ve({ function _2(e) { return Array.isArray(e) ? e : [null, void 0, ""].indexOf(e) > -1 ? [] : [e]; } -var w2 = "fcTree", A2 = Ve({ +var w2 = "fcTree", A2 = Be({ name: w2, inheritAttrs: !1, formCreateParser: { @@ -12720,7 +12727,7 @@ var w2 = "fcTree", A2 = Ve({ } }, render: function() { - return W(ne("ElTree"), jt(this.$attrs, { + return z(ee("ElTree"), jt(this.$attrs, { ref: "tree", onCheck: this.updateValue, onNodeClick: this.updateValue @@ -12796,7 +12803,7 @@ var By = { class: "icon", viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg" -}, k2 = /* @__PURE__ */ X("path", { +}, k2 = /* @__PURE__ */ J("path", { fill: "currentColor", d: "M160 832h704a32 32 0 110 64H160a32 32 0 110-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z" }, null, -1), O2 = [k2]; @@ -12821,7 +12828,7 @@ function Dv(e) { function R2(e) { return ("" + e).split("/").pop(); } -var D2 = "fcUpload", I2 = Ve({ +var D2 = "fcUpload", I2 = Be({ name: D2, inheritAttrs: !1, formCreateParser: { @@ -12886,9 +12893,9 @@ var D2 = "fcUpload", I2 = Ve({ }, render: function() { var t, i, r = this, n = cs(this.modelValue).length; - return W("div", { + return z("div", { class: "_fc-upload" - }, [W(ne("ElUpload"), jt({ + }, [z(ee("ElUpload"), jt({ key: n }, this.$attrs, { listType: this.listType || "picture-card", @@ -12903,11 +12910,11 @@ var D2 = "fcUpload", I2 = Ve({ ref: "upload" }), pc({ default: function() { - return [((t = (i = r.$slots).default) === null || t === void 0 ? void 0 : t.call(i)) || (["text", "picture"].indexOf(r.listType) === -1 ? W(ne("ElIcon"), null, { + return [((t = (i = r.$slots).default) === null || t === void 0 ? void 0 : t.call(i)) || (["text", "picture"].indexOf(r.listType) === -1 ? z(ee("ElIcon"), null, { default: function() { - return [W(By, null, null)]; + return [z(By, null, null)]; } - }) : W(ne("ElButton"), { + }) : z(ee("ElButton"), { type: "primary" }, { default: function() { @@ -12915,7 +12922,7 @@ var D2 = "fcUpload", I2 = Ve({ } }))]; } - }, S2(this.$slots, ["default"]))), W(ne("ElDialog"), { + }, S2(this.$slots, ["default"]))), z(ee("ElDialog"), { appendToBody: !0, modal: this.previewMask, title: this.modalTitle, @@ -12923,7 +12930,7 @@ var D2 = "fcUpload", I2 = Ve({ onClose: this.handleCancel }, { default: function() { - return [W("img", { + return [z("img", { style: "width: 100%", src: r.previewImage }, null)]; @@ -12934,7 +12941,7 @@ var D2 = "fcUpload", I2 = Ve({ this.$emit("fc.el", this.$refs.upload); } }); -const je = (e, t) => { +const Ve = (e, t) => { const i = e.__vccOpts || e; for (const [r, n] of t) i[r] = n; @@ -12944,7 +12951,7 @@ const je = (e, t) => { return e.forEach((i) => { i.field && t.push(i.field), i.children && t.push(...Vy(i.children)); }), t; -}, F2 = Ve({ +}, F2 = Be({ name: "StepForm", props: { stepsProps: Object, @@ -13038,11 +13045,11 @@ const je = (e, t) => { } }), P2 = { class: "_fc-step-form" }; function M2(e, t, i, r, n, a) { - const s = ne("van-step"), u = ne("van-steps"), d = ne("van-button"), p = ne("van-col"), h = ne("van-row"); + const s = ee("van-step"), u = ee("van-steps"), d = ee("van-button"), p = ee("van-col"), h = ee("van-row"); return H(), ae("div", P2, [ - W(u, jt({ active: e.active }, e.stepsProps), { + z(u, jt({ active: e.active }, e.stepsProps), { default: N(() => [ - (H(!0), ae(Me, null, We(e.steps, (g) => (H(), he(s, jt({ ref_for: !0 }, g.props), { + (H(!0), ae(Me, null, ze(e.steps, (g) => (H(), me(s, jt({ ref_for: !0 }, g.props), { default: N(() => [ be(le(g.props.title), 1) ]), @@ -13051,7 +13058,7 @@ function M2(e, t, i, r, n, a) { ]), _: 1 }, 16, ["active"]), - (H(), he(ar(e.Form), { + (H(), me(ar(e.Form), { option: e.options, rule: e.cacheRule, extendOption: !0, @@ -13060,14 +13067,14 @@ function M2(e, t, i, r, n, a) { onEmitEvent: e.$emit, "onUpdate:modelValue": e.formData }, null, 40, ["option", "rule", "modelValue", "onUpdate:api", "onEmitEvent", "onUpdate:modelValue"])), - W(h, null, { + z(h, null, { default: N(() => [ - W(p, { + z(p, { span: 24, style: { "margin-top": "15px" } }, { default: N(() => [ - e.active > 0 ? (H(), he(d, { + e.active > 0 ? (H(), me(d, { key: 0, block: "", size: "small", @@ -13077,8 +13084,8 @@ function M2(e, t, i, r, n, a) { be(le(e.formCreateInject.t("prevStep") || "\u4E0A\u4E00\u6B65"), 1) ]), _: 1 - }, 8, ["onClick"])) : ke("", !0), - e.active < e.cacheRule.length - 1 ? (H(), he(d, { + }, 8, ["onClick"])) : Te("", !0), + e.active < e.cacheRule.length - 1 ? (H(), me(d, { key: 1, block: "", size: "small", @@ -13089,8 +13096,8 @@ function M2(e, t, i, r, n, a) { be(le(e.formCreateInject.t("nextStep") || "\u4E0B\u4E00\u6B65"), 1) ]), _: 1 - }, 8, ["onClick"])) : ke("", !0), - e.submitBtn !== !1 && e.active === e.cacheRule.length - 1 ? (H(), he(d, { + }, 8, ["onClick"])) : Te("", !0), + e.submitBtn !== !1 && e.active === e.cacheRule.length - 1 ? (H(), me(d, { key: 2, block: "", size: "small", @@ -13103,7 +13110,7 @@ function M2(e, t, i, r, n, a) { be(le(e.formCreateInject.t("submit") || "\u63D0\u4EA4"), 1) ]), _: 1 - }, 8, ["onClick"])) : ke("", !0) + }, 8, ["onClick"])) : Te("", !0) ]), _: 1 }) @@ -13112,8 +13119,8 @@ function M2(e, t, i, r, n, a) { }) ]); } -const L2 = /* @__PURE__ */ je(F2, [["render", M2]]); -const N2 = Ve({ +const L2 = /* @__PURE__ */ Ve(F2, [["render", M2]]); +const N2 = Be({ name: "FcPopup", emits: ["confirm", "submit", "validateFail", "update:modelValue"], props: { @@ -13181,8 +13188,8 @@ const N2 = Ve({ } }), B2 = { class: "_fc-popup-title" }, V2 = { class: "_fc-popup-content" }, j2 = { class: "_fc-popup-footer" }; function U2(e, t, i, r, n, a) { - const s = ne("van-button"), u = ne("van-popup"); - return H(), he(u, jt({ + const s = ee("van-button"), u = ee("van-popup"); + return H(), me(u, jt({ class: "_fc-popup", closeable: "" }, e.$attrs, { @@ -13190,9 +13197,9 @@ function U2(e, t, i, r, n, a) { "onUpdate:show": t[1] || (t[1] = (d) => e.visible = d) }), { default: N(() => [ - X("div", B2, le(e.title), 1), - X("div", V2, [ - (H(), he(ar(e.Form), { + J("div", B2, le(e.title), 1), + J("div", V2, [ + (H(), me(ar(e.Form), { option: e.formOptions, rule: e.formRule, extendOption: !0, @@ -13204,9 +13211,9 @@ function U2(e, t, i, r, n, a) { onEmitEvent: e.$emit }, null, 40, ["option", "rule", "api", "model-value", "onChange", "onEmitEvent"])) ]), - X("div", j2, [ + J("div", j2, [ e.footer !== !1 ? (H(), ae(Me, { key: 0 }, [ - W(s, { + z(s, { block: "", size: "small", type: "primary", @@ -13218,7 +13225,7 @@ function U2(e, t, i, r, n, a) { ]), _: 1 }, 8, ["onClick"]), - W(s, { + z(s, { block: "", size: "small", class: "fc-clock", @@ -13230,14 +13237,14 @@ function U2(e, t, i, r, n, a) { ]), _: 1 }, 8, ["onClick"]) - ], 64)) : ke("", !0) + ], 64)) : Te("", !0) ]) ]), _: 1 }, 16, ["show"]); } -const H2 = /* @__PURE__ */ je(N2, [["render", U2]]); -const Vc = Ve({ +const H2 = /* @__PURE__ */ Ve(N2, [["render", U2]]); +const Vc = Be({ name: "DataTable", emits: ["sortChange", "handleClick"], props: { @@ -13313,7 +13320,7 @@ const Vc = Ve({ return bn(on("div", { class: "_fc-data-table" }, [ - on(ne("el-table"), { + on(ee("el-table"), { data: this.filterList, ...this.$attrs, key: this.id, @@ -13323,12 +13330,12 @@ const Vc = Ve({ } }, () => { const e = this.column.filter((i) => i.hidden !== !0).map((i) => this.makeColumn(i)); - this.selection && e.unshift(on(ne("el-table-column"), { + this.selection && e.unshift(on(ee("el-table-column"), { type: "selection", width: "50px" })); const t = this.makeButtonCol(); - return t && e.push(t), this.index && e.unshift(on(ne("el-table-column"), { + return t && e.push(t), this.index && e.unshift(on(ee("el-table-column"), { type: "index", width: "50px" })), e; @@ -13447,7 +13454,7 @@ const Vc = Ve({ }, makePage() { if (this.page && this.page.open === !0) - return on(ne("el-pagination"), { + return on(ee("el-pagination"), { layout: "prev, pager, next", total: this.total, currentPage: this.currentPage, @@ -13461,16 +13468,16 @@ const Vc = Ve({ }, makeButtonCol() { if (this.button && this.button.open === !0 && this.button.column) - return on(ne("el-table-column"), { + return on(ee("el-table-column"), { label: this.button.label || this.formCreateInject.t("operation") || "\u64CD\u4F5C", fixed: this.button.fixed === void 0 ? "right" : this.button.fixed, width: this.button.width || "100px" }, { - default: (e) => this.button.column.filter((t) => t.hidden !== !0).map((t) => on(ne("el-button"), this.btnProps(t, e), () => [t.name])) + default: (e) => this.button.column.filter((t) => t.hidden !== !0).map((t) => on(ee("el-button"), this.btnProps(t, e), () => [t.name])) }); }, makeColumn(e) { - return on(ne("el-table-column"), { + return on(ee("el-table-column"), { label: e.label, prop: e.prop, width: e.width, @@ -13488,11 +13495,11 @@ const Vc = Ve({ }); }, makeTd(e, t) { - return e.format === "custom" && e.render ? e.render(t, on, ne, this.formCreateInject.api) : e.format === "tag" ? on(ne("el-tag"), { disableTransitions: !0 }, () => [this.deepGet(t.row, e.prop, "")]) : e.format === "image" ? on("div", { + return e.format === "custom" && e.render ? e.render(t, on, ee, this.formCreateInject.api) : e.format === "tag" ? on(ee("el-tag"), { disableTransitions: !0 }, () => [this.deepGet(t.row, e.prop, "")]) : e.format === "image" ? on("div", { class: "_fc-data-table-img-list" }, (() => { let i = this.deepGet(t.row, e.prop, ""); - return i = (Array.isArray(i) ? i : [i]).filter((r) => !!r), i.map((r, n) => on(ne("el-image"), { + return i = (Array.isArray(i) ? i : [i]).filter((r) => !!r), i.map((r, n) => on(ee("el-image"), { src: r, previewSrcList: i, previewTeleported: !0, @@ -13601,20 +13608,20 @@ const z2 = { } }; function W2(e, t, i, r, n, a) { - const s = ne("el-col"); - return H(), he(s, { span: 24 }, { + const s = ee("el-col"); + return H(), me(s, { span: 24 }, { default: N(() => [ - X("div", { - class: Xe(["_fc-table", { "is-mini": i.mini }]) + J("div", { + class: qe(["_fc-table", { "is-mini": i.mini }]) }, [ - X("table", { + J("table", { border: "1", cellspacing: "0", cellpadding: "0", style: wn(a.tableColor) }, [ - (H(!0), ae(Me, null, We(i.rule.row, (u, d) => (H(), ae("tr", { key: d }, [ - (H(!0), ae(Me, null, We(i.rule.col, (p, h) => (H(), ae(Me, { + (H(!0), ae(Me, null, ze(i.rule.row, (u, d) => (H(), ae("tr", { key: d }, [ + (H(!0), ae(Me, null, ze(i.rule.col, (p, h) => (H(), ae(Me, { key: `${d}${h}` }, [ n.lattice[d][h].show ? (H(), ae("td", jt({ @@ -13626,8 +13633,8 @@ function W2(e, t, i, r, n, a) { style: [a.tableColor, n.tdStyle && n.tdStyle[`${d}:${h}`] || {}] }), [ kt(e.$slots, `${d}:${h}`), - (H(!0), ae(Me, null, We(n.lattice[d][h].slot, (g) => kt(e.$slots, `${g}`)), 256)) - ], 16)) : ke("", !0) + (H(!0), ae(Me, null, ze(n.lattice[d][h].slot, (g) => kt(e.$slots, `${g}`)), 256)) + ], 16)) : Te("", !0) ], 64))), 128)) ]))), 128)) ], 4) @@ -13636,7 +13643,7 @@ function W2(e, t, i, r, n, a) { _: 3 }); } -const jy = /* @__PURE__ */ je(z2, [["render", W2]]); +const jy = /* @__PURE__ */ Ve(z2, [["render", W2]]); const G2 = { name: "TableForm", emits: ["change", "add", "delete", "update:modelValue"], @@ -13863,11 +13870,11 @@ const G2 = { } }; function K2(e, t, i, r, n, a) { - const s = ne("el-button"); + const s = ee("el-button"); return H(), ae("div", { - class: Xe(["_fc-table-form", { "_fc-disabled": i.disabled }]) + class: qe(["_fc-table-form", { "_fc-disabled": i.disabled }]) }, [ - (H(), he(ar(n.Form), { + (H(), me(ar(n.Form), { option: i.options, rule: n.rule, extendOption: !0, @@ -13877,7 +13884,7 @@ function K2(e, t, i, r, n, a) { "onUpdate:api": t[0] || (t[0] = (u) => n.fapi = u), onEmitEvent: e.$emit }, null, 40, ["option", "rule", "disabled", "onChange", "api", "onEmitEvent"])), - i.addable && (!i.max || i.max > this.trs.length) ? (H(), he(s, { + i.addable && (!i.max || i.max > this.trs.length) ? (H(), me(s, { key: 0, link: "", type: "primary", @@ -13885,17 +13892,17 @@ function K2(e, t, i, r, n, a) { onClick: t[1] || (t[1] = (u) => a.addRaw(!0)) }, { default: N(() => [ - t[2] || (t[2] = X("i", { + t[2] || (t[2] = J("i", { class: "fc-icon icon-add-circle", style: { "font-weight": "700" } }, null, -1)), be(" " + le(i.formCreateInject.t("add") || "\u6DFB\u52A0"), 1) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ], 2); } -const Uy = /* @__PURE__ */ je(G2, [["render", K2]]); +const Uy = /* @__PURE__ */ Ve(G2, [["render", K2]]); const Y2 = { name: "TableFormPro", emits: ["change", "add", "delete", "update:modelValue", "handleClick"], @@ -14079,7 +14086,7 @@ const Y2 = { processRule(e) { let t = []; return e.forEach((i) => { - i.children ? t.push(...this.processRule(i.children)) : (i._renderId = it(), t.push({ + i.children ? t.push(...this.processRule(i.children)) : (i._renderId = rt(), t.push({ type: "template", name: i._renderId, children: [...i.rule || []] @@ -14149,7 +14156,7 @@ const Y2 = { mounted() { const e = this.fapi.sync; this.fapi.sync = (t) => { - t.tableRenderUni = it(), e(t); + t.tableRenderUni = rt(), e(t); }, this.updateTable(), this.newColumn && (!this.modelValue || !this.modelValue.length) && this.addRaw(!0), this.$watch(() => [...this.columns], (t) => { this.rule[1].children.splice(this.rule[1].children.indexOf(this.indexRule) > -1 ? 1 : 0, 0, ...this.processColumns(t)), this.rule[1].key++; }, { immediate: !0 }), this.$watch(() => this.showIndex, (t) => { @@ -14166,18 +14173,18 @@ const Y2 = { width: this.button.width || "100px" }, renderSlots: { - default: (i) => this.button.column.filter((r) => r.hidden !== !0).map((r) => on(ne("el-button"), this.btnProps(r, i), () => [r.key === "delete" && this.formCreateInject.t("delete") || r.name])) + default: (i) => this.button.column.filter((r) => r.hidden !== !0).map((r) => on(ee("el-button"), this.btnProps(r, i), () => [r.key === "delete" && this.formCreateInject.t("delete") || r.name])) } }); }, { immediate: !0 }); } }, Q2 = { class: "_fc-tf-pro-handle" }; function J2(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-pagination"); + const s = ee("el-button"), u = ee("el-pagination"); return H(), ae("div", { - class: Xe(["_fc-table-form-v2", { "_fc-disabled": i.disabled }]) + class: qe(["_fc-table-form-v2", { "_fc-disabled": i.disabled }]) }, [ - (H(), he(ar(n.Form), { + (H(), me(ar(n.Form), { option: i.options, rule: n.rule, extendOption: !0, @@ -14187,9 +14194,9 @@ function J2(e, t, i, r, n, a) { "onUpdate:api": t[0] || (t[0] = (d) => n.fapi = d), onEmitEvent: e.$emit }, null, 40, ["option", "rule", "disabled", "onChange", "api", "onEmitEvent"])), - X("div", Q2, [ - X("div", null, [ - (!i.max || i.max > a.total) && i.addable !== !1 && i.disabled !== !0 ? (H(), he(s, { + J("div", Q2, [ + J("div", null, [ + (!i.max || i.max > a.total) && i.addable !== !1 && i.disabled !== !0 ? (H(), me(s, { key: 0, link: "", type: "primary", @@ -14197,26 +14204,26 @@ function J2(e, t, i, r, n, a) { onClick: t[1] || (t[1] = (d) => a.addRaw(!0)) }, { default: N(() => [ - t[2] || (t[2] = X("i", { + t[2] || (t[2] = J("i", { class: "fc-icon icon-add-circle", style: { "font-weight": "700" } }, null, -1)), be(" " + le(i.formCreateInject.t("add") || "\u6DFB\u52A0"), 1) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ]), - i.page && i.page.open === !0 && n.chunk.length > 1 ? (H(), he(u, jt({ key: 0 }, i.page.props || {}, { + i.page && i.page.open === !0 && n.chunk.length > 1 ? (H(), me(u, jt({ key: 0 }, i.page.props || {}, { layout: "prev, pager, next", currentPage: n.nowPage, "onUpdate:currentPage": a.changePage, total: a.total, pageSize: a.limit - }), null, 16, ["currentPage", "onUpdate:currentPage", "total", "pageSize"])) : ke("", !0) + }), null, 16, ["currentPage", "onUpdate:currentPage", "total", "pageSize"])) : Te("", !0) ]) ], 2); } -const Hy = /* @__PURE__ */ je(Y2, [["render", J2]]); +const Hy = /* @__PURE__ */ Ve(Y2, [["render", J2]]); const X2 = { name: "InfiniteTableForm", emits: ["change", "add", "delete", "update:modelValue"], @@ -14462,11 +14469,11 @@ const X2 = { } }; function Z2(e, t, i, r, n, a) { - const s = ne("el-button"); + const s = ee("el-button"); return H(), ae("div", { - class: Xe(["_fc-infinite-table-form", { "_fc-disabled": i.disabled }]) + class: qe(["_fc-infinite-table-form", { "_fc-disabled": i.disabled }]) }, [ - (H(), he(ar(n.Form), { + (H(), me(ar(n.Form), { option: i.options, rule: n.rule, extendOption: !0, @@ -14476,7 +14483,7 @@ function Z2(e, t, i, r, n, a) { "onUpdate:api": t[0] || (t[0] = (u) => n.fapi = u), onEmitEvent: e.$emit }, null, 40, ["option", "rule", "onChange", "disabled", "api", "onEmitEvent"])), - !i.max || i.max > this.trs.length ? (H(), he(s, { + !i.max || i.max > this.trs.length ? (H(), me(s, { key: 0, link: "", type: "primary", @@ -14484,17 +14491,17 @@ function Z2(e, t, i, r, n, a) { onClick: t[1] || (t[1] = (u) => a.addRaw(!0)) }, { default: N(() => [ - t[2] || (t[2] = X("i", { + t[2] || (t[2] = J("i", { class: "fc-icon icon-add-circle", style: { "font-weight": "700" } }, null, -1)), be(" " + le(i.formCreateInject.t("add") || "\u6DFB\u52A0"), 1) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ], 2); } -const zy = /* @__PURE__ */ je(X2, [["render", Z2]]); +const zy = /* @__PURE__ */ Ve(X2, [["render", Z2]]); const q2 = { name: "NestedTableForm", emits: ["change", "add", "delete", "update:modelValue"], @@ -14734,11 +14741,11 @@ const q2 = { } }; function ex(e, t, i, r, n, a) { - const s = ne("el-button"); + const s = ee("el-button"); return H(), ae("div", { - class: Xe(["_fc-nested-table-form", { "_fc-disabled": i.disabled }]) + class: qe(["_fc-nested-table-form", { "_fc-disabled": i.disabled }]) }, [ - (H(), he(ar(n.Form), { + (H(), me(ar(n.Form), { option: i.options, rule: n.rule, extendOption: !0, @@ -14748,7 +14755,7 @@ function ex(e, t, i, r, n, a) { "onUpdate:api": t[0] || (t[0] = (u) => n.fapi = u), onEmitEvent: e.$emit }, null, 40, ["option", "rule", "onChange", "disabled", "api", "onEmitEvent"])), - !i.max || i.max > this.trs.length ? (H(), he(s, { + !i.max || i.max > this.trs.length ? (H(), me(s, { key: 0, link: "", type: "primary", @@ -14756,18 +14763,18 @@ function ex(e, t, i, r, n, a) { onClick: t[1] || (t[1] = (u) => a.addRaw(!0)) }, { default: N(() => [ - t[2] || (t[2] = X("i", { + t[2] || (t[2] = J("i", { class: "fc-icon icon-add-circle", style: { "font-weight": "700" } }, null, -1)), be(" " + le(i.formCreateInject.t("add") || "\u6DFB\u52A0"), 1) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ], 2); } -const Wy = /* @__PURE__ */ je(q2, [["render", ex]]); -const tx = Ve({ +const Wy = /* @__PURE__ */ Ve(q2, [["render", ex]]); +const tx = Be({ name: "FcCell" }), nx = { ref: "cell", @@ -14778,7 +14785,7 @@ function ix(e, t, i, r, n, a) { kt(e.$slots, "default") ], 512); } -const Gy = /* @__PURE__ */ je(tx, [["render", ix]]), rx = Ve({ +const Gy = /* @__PURE__ */ Ve(tx, [["render", ix]]), rx = Be({ name: "FcValue", props: ["modelValue"], watch: { @@ -14790,8 +14797,8 @@ const Gy = /* @__PURE__ */ je(tx, [["render", ix]]), rx = Ve({ function ax(e, t, i, r, n, a) { return H(), ae("div", ox, le(e.modelValue), 1); } -const Ky = /* @__PURE__ */ je(rx, [["render", ax]]); -const lx = Ve({ +const Ky = /* @__PURE__ */ Ve(rx, [["render", ax]]); +const lx = Be({ name: "FcCity", props: { modelValue: Array, @@ -14877,9 +14884,9 @@ const lx = Ve({ } }), sx = { class: "_fc-city-m" }; function ux(e, t, i, r, n, a) { - const s = ne("van-field"), u = ne("van-cascader"), d = ne("van-popup"); + const s = ee("van-field"), u = ee("van-cascader"), d = ee("van-popup"); return H(), ae("div", sx, [ - W(s, { + z(s, { ref: "el", placeholder: e.placeholder, readonly: "", @@ -14892,7 +14899,7 @@ function ux(e, t, i, r, n, a) { e.clearable && e.inputValue ? { name: "right-icon", fn: N(() => [ - X("i", { + J("i", { class: "van-badge__wrapper van-icon van-icon-clear van-field__clear", onClick: t[0] || (t[0] = (...p) => e.clear && e.clear(...p)) }) @@ -14900,14 +14907,14 @@ function ux(e, t, i, r, n, a) { key: "0" } : void 0 ]), 1032, ["placeholder", "disabled", "onClick", "model-value"]), - W(d, { + z(d, { show: e.show, "onUpdate:show": t[2] || (t[2] = (p) => e.show = p), round: "", position: "bottom" }, { default: N(() => [ - W(u, { + z(u, { modelValue: e.modelValue && e.modelValue[e.modelValue.length - 1] || "", options: e.province, onClose: t[1] || (t[1] = (p) => e.show = !1), @@ -14918,7 +14925,7 @@ function ux(e, t, i, r, n, a) { }, 8, ["show"]) ]); } -const dx = /* @__PURE__ */ je(lx, [["render", ux]]), Yy = Ve({ +const dx = /* @__PURE__ */ Ve(lx, [["render", ux]]), Yy = Be({ name: "FcSlot", inheritAttrs: !1, inject: ["parentFC"], @@ -14943,7 +14950,7 @@ const dx = /* @__PURE__ */ je(lx, [["render", ux]]), Yy = Ve({ }, render() { const e = this.getSlot(); - return W(Me, {}, e ? [e(this.slotArg)] : []); + return z(Me, {}, e ? [e(this.slotArg)] : []); }, methods: { getSlot() { @@ -14956,7 +14963,7 @@ const dx = /* @__PURE__ */ je(lx, [["render", ux]]), Yy = Ve({ return e(this.parentFC); } } -}), Qy = Ve({ +}), Qy = Be({ name: "FcJson", inheritAttrs: !1, props: { @@ -15006,7 +15013,7 @@ const dx = /* @__PURE__ */ je(lx, [["render", ux]]), Yy = Ve({ render() { var e, t; if (this.rule) - return this.type === "object" ? W(this.fcSubForm, { + return this.type === "object" ? z(this.fcSubForm, { key: 2, ...this.$attrs, modelValue: this.modelValue, @@ -15017,7 +15024,7 @@ const dx = /* @__PURE__ */ je(lx, [["render", ux]]), Yy = Ve({ formCreateInject: this.formCreateInject, rule: this.formRule, options: this.formOptions - }) : this.type === "array" ? W(this.fcGroup, { + }) : this.type === "array" ? z(this.fcGroup, { key: 3, ...this.$attrs, modelValue: this.modelValue, @@ -15033,7 +15040,7 @@ const dx = /* @__PURE__ */ je(lx, [["render", ux]]), Yy = Ve({ formCreateInject: this.formCreateInject, rule: this.formRule, options: this.formOptions - }) : W(Me, { + }) : z(Me, { key: this.uni }, [(t = (e = this.$slots) == null ? void 0 : e.default) == null ? void 0 : t.call(e)]); }, @@ -15057,7 +15064,7 @@ const dx = /* @__PURE__ */ je(lx, [["render", ux]]), Yy = Ve({ this.rule && this.loadRule(); } }); -const fx = Ve({ +const fx = Be({ name: "fcInlineForm" }), cx = { class: "_fc-line-form" }; function px(e, t, i, r, n, a) { @@ -15065,7 +15072,7 @@ function px(e, t, i, r, n, a) { kt(e.$slots, "default") ]); } -const jc = /* @__PURE__ */ je(fx, [["render", px]]), kn = function() { +const jc = /* @__PURE__ */ Ve(fx, [["render", px]]), kn = function() { var e = function() { }, t = {}, i = {}, r = {}; function n(h, g) { @@ -15093,32 +15100,32 @@ const jc = /* @__PURE__ */ je(fx, [["render", px]]), kn = function() { h.call && (h = { success: h }), g.length ? (h.error || e)(g) : (h.success || e)(h); } function u(h, g, _, S) { - var b = document, A = _.async, y = (_.numRetries || 0) + 1, m = _.before || e, w = h.replace(/[\?|#].*$/, ""), E = h.replace(/^(css|img|module|nomodule)!/, ""), x, k, $; + var b = document, A = _.async, y = (_.numRetries || 0) + 1, m = _.before || e, w = h.replace(/[\?|#].*$/, ""), E = h.replace(/^(css|img|module|nomodule)!/, ""), x, k, R; if (S = S || 0, /(^css!|\.css$)/.test(w)) - $ = b.createElement("link"), $.rel = "stylesheet", $.href = E, x = "hideFocus" in $, x && $.relList && (x = 0, $.rel = "preload", $.as = "style"); + R = b.createElement("link"), R.rel = "stylesheet", R.href = E, x = "hideFocus" in R, x && R.relList && (x = 0, R.rel = "preload", R.as = "style"); else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(w)) - $ = b.createElement("img"), $.src = E; - else if ($ = b.createElement("script"), $.src = E, $.async = A === void 0 ? !0 : A, k = "noModule" in $, /^module!/.test(w)) { + R = b.createElement("img"), R.src = E; + else if (R = b.createElement("script"), R.src = E, R.async = A === void 0 ? !0 : A, k = "noModule" in R, /^module!/.test(w)) { if (!k) return g(h, "l"); - $.type = "module"; + R.type = "module"; } else if (/^nomodule!/.test(w) && k) return g(h, "l"); - $.onload = $.onerror = $.onbeforeload = function(M) { + R.onload = R.onerror = R.onbeforeload = function(M) { var P = M.type[0]; if (x) try { - $.sheet.cssText.length || (P = "e"); + R.sheet.cssText.length || (P = "e"); } catch (B) { B.code != 18 && (P = "e"); } if (P == "e") { if (S += 1, S < y) return u(h, g, _, S); - } else if ($.rel == "preload" && $.as == "style") - return $.rel = "stylesheet"; + } else if (R.rel == "preload" && R.as == "style") + return R.rel = "stylesheet"; g(h, P, M.defaultPrevented); - }, m(h, $) !== !1 && b.head.appendChild($); + }, m(h, R) !== !1 && b.head.appendChild(R); } (function() { try { @@ -15197,7 +15204,7 @@ function Qs(e, t) { i !== null && clearTimeout(i), i = setTimeout(() => e.call(this, ...r), t); }; } -const hx = Ve({ +const hx = Be({ name: "FcEcharts", data() { return { @@ -15553,7 +15560,7 @@ const hx = Ve({ function vx(e, t, i, r, n, a) { return H(), ae("div", mx, null, 512); } -const Jy = /* @__PURE__ */ je(hx, [["render", vx]]); +const Jy = /* @__PURE__ */ Ve(hx, [["render", vx]]); /*! * Signature Pad v5.0.7 | https://github.com/szimek/signature_pad * (c) 2025 Szymon Nowak | Released under the MIT license @@ -15886,7 +15893,7 @@ class il extends gx { }), d.outerHTML; } } -const bx = Ve({ +const bx = Be({ name: "SignaturePad", emits: ["update:modelValue", "change", "remove"], data() { @@ -15937,14 +15944,14 @@ const bx = Ve({ height: "145px" }; function Sx(e, t, i, r, n, a) { - const s = ne("van-dialog"); + const s = ee("van-dialog"); return H(), ae("div", _x, [ e.modelValue ? (H(), ae("div", wx, [ - X("i", { + J("i", { class: "fc-icon icon-delete2", onClick: t[0] || (t[0] = (...u) => e.remove && e.remove(...u)) }), - X("img", { + J("img", { src: e.modelValue, alt: "signature" }, null, 8, Ax) @@ -15953,10 +15960,10 @@ function Sx(e, t, i, r, n, a) { class: "_fc-m-signature-btn", onClick: t[1] || (t[1] = (u) => e.visible = !0) }, [ - t[4] || (t[4] = X("i", { class: "fc-icon icon-edit2" }, null, -1)), + t[4] || (t[4] = J("i", { class: "fc-icon icon-edit2" }, null, -1)), be(" " + le(e.formCreateInject.t("signaturePadTip") || "\u70B9\u51FB\u6DFB\u52A0\u624B\u5199\u7B7E\u540D"), 1) ])), - W(s, { + z(s, { show: e.visible, "onUpdate:show": t[3] || (t[3] = (u) => e.visible = u), class: "_fc-m-signature-dialog", @@ -15968,19 +15975,19 @@ function Sx(e, t, i, r, n, a) { }, { title: N(() => [ be(le(e.formCreateInject.t("signaturePadTitle") || "\u8BF7\u5728\u865A\u7EBF\u6846\u5185\u4E66\u5199") + " ", 1), - X("i", { + J("i", { class: "fc-icon icon-add2", onClick: t[2] || (t[2] = (u) => e.visible = !1) }) ]), default: N(() => [ - X("canvas", Cx, null, 512) + J("canvas", Cx, null, 512) ]), _: 1 }, 8, ["show", "onConfirm", "onCancel", "confirm-button-text", "cancel-button-text", "confirm-button-disabled"]) ]); } -const Ex = /* @__PURE__ */ je(bx, [["render", Sx]]); +const Ex = /* @__PURE__ */ Ve(bx, [["render", Sx]]); function hc(e, t, i) { for (var r = [], n = Math.max(e.length, t.length), a = 0, s = 0; s < n || a; ) { var u = s < e.length ? e[s] : 0, d = s < t.length ? t[s] : 0, p = a + u + d; @@ -16042,7 +16049,7 @@ class Ox { return kx(s); } } -const $x = Ve({ +const $x = Be({ name: "FcId", props: ["modelValue", "prefix"], emits: ["update:modelValue"], @@ -16072,15 +16079,15 @@ const $x = Ve({ } }); function Rx(e, t, i, r, n, a) { - const s = ne("el-input"); - return H(), he(s, { + const s = ee("el-input"); + return H(), me(s, { modelValue: e.designer ? "" + (e.prefix || "") + e.preview : e.modelValue, readonly: "", disabled: "" }, null, 8, ["modelValue"]); } -const Xy = /* @__PURE__ */ je($x, [["render", Rx]]); -const Dx = Ve({ +const Xy = /* @__PURE__ */ Ve($x, [["render", Rx]]); +const Dx = Be({ name: "FcTitle", data() { return {}; @@ -16100,11 +16107,11 @@ const Dx = Ve({ }); function Ix(e, t, i, r, n, a) { return H(), ae("div", { - class: Xe(["_fc-title", e.size || "h2"]), + class: qe(["_fc-title", e.size || "h2"]), style: wn(e.textStyle) }, le(e.title), 7); } -const Zy = /* @__PURE__ */ je(Dx, [["render", Ix]]); +const Zy = /* @__PURE__ */ Ve(Dx, [["render", Ix]]); function Hc() { return { async: !1, @@ -16502,12 +16509,12 @@ ${g}` : g; `, 1)[0], b = !_.trim(), A = 0; if (this.options.pedantic ? (A = 2, g = _.trimStart()) : b ? A = i[1].length + 1 : (A = i[2].search(this.rules.other.nonSpaceChar), A = A > 4 ? 1 : A, g = _.slice(A), A += i[1].length), b && this.rules.other.blankLine.test(S) && (h += S + ` `, t = t.substring(S.length + 1), p = !0), !p) { - const w = this.rules.other.nextBulletRegex(A), E = this.rules.other.hrRegex(A), x = this.rules.other.fencesBeginRegex(A), k = this.rules.other.headingBeginRegex(A), $ = this.rules.other.htmlBeginRegex(A); + const w = this.rules.other.nextBulletRegex(A), E = this.rules.other.hrRegex(A), x = this.rules.other.fencesBeginRegex(A), k = this.rules.other.headingBeginRegex(A), R = this.rules.other.htmlBeginRegex(A); for (; t; ) { const M = t.split(` `, 1)[0]; let P; - if (S = M, this.options.pedantic ? (S = S.replace(this.rules.other.listReplaceNesting, " "), P = S) : P = S.replace(this.rules.other.tabCharGlobal, " "), x.test(S) || k.test(S) || $.test(S) || w.test(S) || E.test(S)) + if (S = M, this.options.pedantic ? (S = S.replace(this.rules.other.listReplaceNesting, " "), P = S) : P = S.replace(this.rules.other.tabCharGlobal, " "), x.test(S) || k.test(S) || R.test(S) || w.test(S) || E.test(S)) break; if (P.search(this.rules.other.nonSpaceChar) >= A || !S.trim()) g += ` @@ -17612,7 +17619,7 @@ Ut.walkTokens; Ut.parseInline; mi.parse; hi.lex; -const mT = Ve({ +const mT = Be({ name: "FcMarkdown", data() { return { @@ -17638,8 +17645,8 @@ function gT(e, t, i, r, n, a) { innerHTML: e.html }, null, 8, vT); } -const f0 = /* @__PURE__ */ je(mT, [["render", gT]]); -const yT = Ve({ +const f0 = /* @__PURE__ */ Ve(mT, [["render", gT]]); +const yT = Be({ name: "FcDialog", emits: ["confirm", "submit", "validateFail", "update:modelValue"], props: { @@ -17712,15 +17719,15 @@ const yT = Ve({ style: { right: "36px" } }; function _T(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-dialog"); - return H(), he(u, jt({ class: "_fc-dialog" }, e.$attrs, { + const s = ee("el-button"), u = ee("el-dialog"); + return H(), me(u, jt({ class: "_fc-dialog" }, e.$attrs, { fullscreen: e.max, modelValue: e.visible, "onUpdate:modelValue": t[3] || (t[3] = (d) => e.visible = d), destroyOnClose: "" }), Qn({ default: N(() => [ - e.$attrs.fullscreen ? ke("", !0) : (H(), ae("button", bT, [ + e.$attrs.fullscreen ? Te("", !0) : (H(), ae("button", bT, [ e.max ? (H(), ae("i", { key: 0, class: "fc-icon icon-page-min", @@ -17731,7 +17738,7 @@ function _T(e, t, i, r, n, a) { onClick: t[1] || (t[1] = (d) => e.max = !0) })) ])), - (H(), he(ar(e.Form), { + (H(), me(ar(e.Form), { option: e.formOptions, rule: e.formRule, extendOption: !0, @@ -17748,13 +17755,13 @@ function _T(e, t, i, r, n, a) { e.footer !== !1 ? { name: "footer", fn: N(() => [ - W(s, { onClick: e.close }, { + z(s, { onClick: e.close }, { default: N(() => [ be(le(e.formCreateInject.t("close") || "\u5173\u95ED"), 1) ]), _: 1 }, 8, ["onClick"]), - W(s, { + z(s, { type: "primary", onClick: e.handleConfirm }, { @@ -17768,7 +17775,7 @@ function _T(e, t, i, r, n, a) { } : void 0 ]), 1040, ["fullscreen", "modelValue"]); } -const c0 = /* @__PURE__ */ je(yT, [["render", _T]]), wT = (e) => e !== null && typeof e == "object", AT = (e) => e != null; +const c0 = /* @__PURE__ */ Ve(yT, [["render", _T]]), wT = (e) => e !== null && typeof e == "object", AT = (e) => e != null; function vc(e) { if (!AT(e)) return e; @@ -17782,7 +17789,7 @@ function vc(e) { } return e; } -const CT = Ve({ +const CT = Be({ name: "FcDataSelect", components: { FcDialog: c0 }, emits: ["update:modelValue", "change", "clear"], @@ -17868,7 +17875,7 @@ const CT = Ve({ this.searchRule, this.tableRule ]); - return e[1].on || (e[1].on = {}), e[1].props || (e[1].props = {}), this.multiple && (e[1].props.rowKey || (e[1].props.rowKey = this.valueKey || "value"), e[1].name || (e[1].name = it())), e[1].props.selection = !0, e[1].on.rowClick ? e[1].on.rowClick = [(...t) => this.tableRowClick(...t), e[1].on.rowClick] : e[1].on.rowClick = (...t) => this.tableRowClick(...t), e[1].on.selectionChange ? e[1].on.selectionChange = [(...t) => this.selectionChange(...t), e[1].on.selectionChange] : e[1].on.selectionChange = (...t) => this.selectionChange(...t), e; + return e[1].on || (e[1].on = {}), e[1].props || (e[1].props = {}), this.multiple && (e[1].props.rowKey || (e[1].props.rowKey = this.valueKey || "value"), e[1].name || (e[1].name = rt())), e[1].props.selection = !0, e[1].on.rowClick ? e[1].on.rowClick = [(...t) => this.tableRowClick(...t), e[1].on.rowClick] : e[1].on.rowClick = (...t) => this.tableRowClick(...t), e[1].on.selectionChange ? e[1].on.selectionChange = [(...t) => this.selectionChange(...t), e[1].on.selectionChange] : e[1].on.selectionChange = (...t) => this.selectionChange(...t), e; }, selectionChange(e) { this.multiple || this.tableRowClick(e[0]); @@ -17882,9 +17889,9 @@ const CT = Ve({ } }), ST = { class: "_fc-data-select" }; function ET(e, t, i, r, n, a) { - const s = ne("el-option"), u = ne("el-select"), d = ne("FcDialog"); + const s = ee("el-option"), u = ee("el-select"), d = ee("FcDialog"); return H(), ae("div", ST, [ - W(u, { + z(u, { disabled: e.disabled, placeholder: e.placeholder, multiple: e.multiple, @@ -17897,7 +17904,7 @@ function ET(e, t, i, r, n, a) { onClear: e.handleClear }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.options, (p) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.options, (p) => (H(), me(s, { key: p.value, label: p.label, value: p.value @@ -17905,7 +17912,7 @@ function ET(e, t, i, r, n, a) { ]), _: 1 }, 8, ["disabled", "placeholder", "multiple", "multipleLimit", "clearable", "model-value", "onUpdate:modelValue", "onVisibleChange", "onClear"]), - W(d, { + z(d, { ref: "dialog", formCreateInject: e.formCreateInject, rule: e.formRule, @@ -17917,7 +17924,7 @@ function ET(e, t, i, r, n, a) { }, null, 8, ["formCreateInject", "rule", "onUpdate:modelValue", "footer", "title", "onConfirm"]) ]); } -const p0 = /* @__PURE__ */ je(CT, [["render", ET]]), xT = Ve({ +const p0 = /* @__PURE__ */ Ve(CT, [["render", ET]]), xT = Be({ name: "AudioBox", emits: ["pause", "play", "ended"], data() { @@ -17951,15 +17958,15 @@ function OT(e, t, i, r, n, a) { onPlay: t[1] || (t[1] = (s) => e.$emit("play", s)), onEnded: t[2] || (t[2] = (s) => e.$emit("ended", s)) }, [ - X("source", { + J("source", { src: e.src, type: e.type }, null, 8, kT), t[3] || (t[3] = be(" Your browser does not support the audio element. ")) ], 40, TT); } -const h0 = /* @__PURE__ */ je(xT, [["render", OT]]); -const $T = Ve({ +const h0 = /* @__PURE__ */ Ve(xT, [["render", OT]]); +const $T = Be({ name: "IframeBox", emits: ["load"], data() { @@ -17978,7 +17985,7 @@ function DT(e, t, i, r, n, a) { onLoad: t[0] || (t[0] = (s) => e.$emit("load", s)) }, null, 40, RT); } -const m0 = /* @__PURE__ */ je($T, [["render", DT]]); +const m0 = /* @__PURE__ */ Ve($T, [["render", DT]]); var Zc = {}, fu = {}, Zn = {}; Object.defineProperty(Zn, "__esModule", { value: !0 @@ -20289,7 +20296,7 @@ typeof jQuery < "u" && (jQuery.fn.JsBarcode = function(e, t) { }), _u(i, e, t); }); var cI = _u; -const pI = Ve({ +const pI = Be({ name: "BarCodeBox", data() { return {}; @@ -20340,8 +20347,8 @@ const pI = Ve({ function mI(e, t, i, r, n, a) { return H(), ae("img", hI, null, 512); } -const j0 = /* @__PURE__ */ je(pI, [["render", mI]]); -const vI = Ve({ +const j0 = /* @__PURE__ */ Ve(pI, [["render", mI]]); +const vI = Be({ name: "VideoBox", emits: ["pause", "play", "ended", "error"], data() { @@ -20397,7 +20404,7 @@ function yI(e, t, i, r, n, a) { onEnded: t[2] || (t[2] = (s) => e.$emit("ended", s)) }, null, 40, gI); } -const U0 = /* @__PURE__ */ je(vI, [["render", yI]]); +const U0 = /* @__PURE__ */ Ve(vI, [["render", yI]]); var H0 = { exports: {} }; (function(e, t) { (function(i, r) { @@ -20405,331 +20412,331 @@ var H0 = { exports: {} }; })(Lc, () => (() => { var i = { 873: (s, u) => { var d, p, h = function() { - var g = function(G, R) { - var z = G, C = m[R], F = null, q = 0, Z = null, Y = [], J = {}, ve = function(j, ee) { - F = function(te) { - for (var se = new Array(te), oe = 0; oe < te; oe += 1) { - se[oe] = new Array(te); - for (var _e = 0; _e < te; _e += 1) - se[oe][_e] = null; + var g = function(G, I) { + var U = G, F = m[I], C = null, q = 0, Z = null, Y = [], ue = {}, te = function($, K) { + C = function(X) { + for (var ie = new Array(X), re = 0; re < X; re += 1) { + ie[re] = new Array(X); + for (var fe = 0; fe < X; fe += 1) + ie[re][fe] = null; } - return se; - }(q = 4 * z + 17), pe(0, 0), pe(q - 7, 0), pe(0, q - 7), ge(), Te(), we(j, ee), z >= 7 && me(j), Z == null && (Z = Se(z, C, Y)), ce(Z, ee); - }, pe = function(j, ee) { - for (var te = -1; te <= 7; te += 1) - if (!(j + te <= -1 || q <= j + te)) - for (var se = -1; se <= 7; se += 1) - ee + se <= -1 || q <= ee + se || (F[j + te][ee + se] = 0 <= te && te <= 6 && (se == 0 || se == 6) || 0 <= se && se <= 6 && (te == 0 || te == 6) || 2 <= te && te <= 4 && 2 <= se && se <= 4); - }, Te = function() { - for (var j = 8; j < q - 8; j += 1) - F[j][6] == null && (F[j][6] = j % 2 == 0); - for (var ee = 8; ee < q - 8; ee += 1) - F[6][ee] == null && (F[6][ee] = ee % 2 == 0); + return ie; + }(q = 4 * U + 17), pe(0, 0), pe(q - 7, 0), pe(0, q - 7), ge(), ke(), we($, K), U >= 7 && ve($), Z == null && (Z = Se(U, F, Y)), he(Z, K); + }, pe = function($, K) { + for (var X = -1; X <= 7; X += 1) + if (!($ + X <= -1 || q <= $ + X)) + for (var ie = -1; ie <= 7; ie += 1) + K + ie <= -1 || q <= K + ie || (C[$ + X][K + ie] = 0 <= X && X <= 6 && (ie == 0 || ie == 6) || 0 <= ie && ie <= 6 && (X == 0 || X == 6) || 2 <= X && X <= 4 && 2 <= ie && ie <= 4); + }, ke = function() { + for (var $ = 8; $ < q - 8; $ += 1) + C[$][6] == null && (C[$][6] = $ % 2 == 0); + for (var K = 8; K < q - 8; K += 1) + C[6][K] == null && (C[6][K] = K % 2 == 0); }, ge = function() { - for (var j = w.getPatternPosition(z), ee = 0; ee < j.length; ee += 1) - for (var te = 0; te < j.length; te += 1) { - var se = j[ee], oe = j[te]; - if (F[se][oe] == null) - for (var _e = -2; _e <= 2; _e += 1) + for (var $ = w.getPatternPosition(U), K = 0; K < $.length; K += 1) + for (var X = 0; X < $.length; X += 1) { + var ie = $[K], re = $[X]; + if (C[ie][re] == null) + for (var fe = -2; fe <= 2; fe += 1) for (var Ae = -2; Ae <= 2; Ae += 1) - F[se + _e][oe + Ae] = _e == -2 || _e == 2 || Ae == -2 || Ae == 2 || _e == 0 && Ae == 0; + C[ie + fe][re + Ae] = fe == -2 || fe == 2 || Ae == -2 || Ae == 2 || fe == 0 && Ae == 0; } - }, me = function(j) { - for (var ee = w.getBCHTypeNumber(z), te = 0; te < 18; te += 1) { - var se = !j && (ee >> te & 1) == 1; - F[Math.floor(te / 3)][te % 3 + q - 8 - 3] = se; + }, ve = function($) { + for (var K = w.getBCHTypeNumber(U), X = 0; X < 18; X += 1) { + var ie = !$ && (K >> X & 1) == 1; + C[Math.floor(X / 3)][X % 3 + q - 8 - 3] = ie; } - for (te = 0; te < 18; te += 1) - se = !j && (ee >> te & 1) == 1, F[te % 3 + q - 8 - 3][Math.floor(te / 3)] = se; - }, we = function(j, ee) { - for (var te = C << 3 | ee, se = w.getBCHTypeInfo(te), oe = 0; oe < 15; oe += 1) { - var _e = !j && (se >> oe & 1) == 1; - oe < 6 ? F[oe][8] = _e : oe < 8 ? F[oe + 1][8] = _e : F[q - 15 + oe][8] = _e; + for (X = 0; X < 18; X += 1) + ie = !$ && (K >> X & 1) == 1, C[X % 3 + q - 8 - 3][Math.floor(X / 3)] = ie; + }, we = function($, K) { + for (var X = F << 3 | K, ie = w.getBCHTypeInfo(X), re = 0; re < 15; re += 1) { + var fe = !$ && (ie >> re & 1) == 1; + re < 6 ? C[re][8] = fe : re < 8 ? C[re + 1][8] = fe : C[q - 15 + re][8] = fe; } - for (oe = 0; oe < 15; oe += 1) - _e = !j && (se >> oe & 1) == 1, oe < 8 ? F[8][q - oe - 1] = _e : oe < 9 ? F[8][15 - oe - 1 + 1] = _e : F[8][15 - oe - 1] = _e; - F[q - 8][8] = !j; - }, ce = function(j, ee) { - for (var te = -1, se = q - 1, oe = 7, _e = 0, Ae = w.getMaskFunction(ee), Be = q - 1; Be > 0; Be -= 2) - for (Be == 6 && (Be -= 1); ; ) { - for (var ct = 0; ct < 2; ct += 1) - if (F[se][Be - ct] == null) { - var ze = !1; - _e < j.length && (ze = (j[_e] >>> oe & 1) == 1), Ae(se, Be - ct) && (ze = !ze), F[se][Be - ct] = ze, (oe -= 1) == -1 && (_e += 1, oe = 7); + for (re = 0; re < 15; re += 1) + fe = !$ && (ie >> re & 1) == 1, re < 8 ? C[8][q - re - 1] = fe : re < 9 ? C[8][15 - re - 1 + 1] = fe : C[8][15 - re - 1] = fe; + C[q - 8][8] = !$; + }, he = function($, K) { + for (var X = -1, ie = q - 1, re = 7, fe = 0, Ae = w.getMaskFunction(K), Fe = q - 1; Fe > 0; Fe -= 2) + for (Fe == 6 && (Fe -= 1); ; ) { + for (var Xe = 0; Xe < 2; Xe += 1) + if (C[ie][Fe - Xe] == null) { + var Ze = !1; + fe < $.length && (Ze = ($[fe] >>> re & 1) == 1), Ae(ie, Fe - Xe) && (Ze = !Ze), C[ie][Fe - Xe] = Ze, (re -= 1) == -1 && (fe += 1, re = 7); } - if ((se += te) < 0 || q <= se) { - se -= te, te = -te; + if ((ie += X) < 0 || q <= ie) { + ie -= X, X = -X; break; } } - }, Se = function(j, ee, te) { - for (var se = k.getRSBlocks(j, ee), oe = $(), _e = 0; _e < te.length; _e += 1) { - var Ae = te[_e]; - oe.put(Ae.getMode(), 4), oe.put(Ae.getLength(), w.getLengthInBits(Ae.getMode(), j)), Ae.write(oe); + }, Se = function($, K, X) { + for (var ie = k.getRSBlocks($, K), re = R(), fe = 0; fe < X.length; fe += 1) { + var Ae = X[fe]; + re.put(Ae.getMode(), 4), re.put(Ae.getLength(), w.getLengthInBits(Ae.getMode(), $)), Ae.write(re); } - var Be = 0; - for (_e = 0; _e < se.length; _e += 1) - Be += se[_e].dataCount; - if (oe.getLengthInBits() > 8 * Be) - throw "code length overflow. (" + oe.getLengthInBits() + ">" + 8 * Be + ")"; - for (oe.getLengthInBits() + 4 <= 8 * Be && oe.put(0, 4); oe.getLengthInBits() % 8 != 0; ) - oe.putBit(!1); - for (; !(oe.getLengthInBits() >= 8 * Be || (oe.put(236, 8), oe.getLengthInBits() >= 8 * Be)); ) - oe.put(17, 8); - return function(ct, ze) { - for (var Ee = 0, Pe = 0, Oe = 0, nt = new Array(ze.length), De = new Array(ze.length), Ne = 0; Ne < ze.length; Ne += 1) { - var lt = ze[Ne].dataCount, mt = ze[Ne].totalCount - lt; - Pe = Math.max(Pe, lt), Oe = Math.max(Oe, mt), nt[Ne] = new Array(lt); - for (var Ze = 0; Ze < nt[Ne].length; Ze += 1) - nt[Ne][Ze] = 255 & ct.getBuffer()[Ze + Ee]; - Ee += lt; - var Ot = w.getErrorCorrectPolynomial(mt), dt = x(nt[Ne], Ot.getLength() - 1).mod(Ot); - for (De[Ne] = new Array(Ot.getLength() - 1), Ze = 0; Ze < De[Ne].length; Ze += 1) { - var He = Ze + dt.getLength() - De[Ne].length; - De[Ne][Ze] = He >= 0 ? dt.getAt(He) : 0; + var Fe = 0; + for (fe = 0; fe < ie.length; fe += 1) + Fe += ie[fe].dataCount; + if (re.getLengthInBits() > 8 * Fe) + throw "code length overflow. (" + re.getLengthInBits() + ">" + 8 * Fe + ")"; + for (re.getLengthInBits() + 4 <= 8 * Fe && re.put(0, 4); re.getLengthInBits() % 8 != 0; ) + re.putBit(!1); + for (; !(re.getLengthInBits() >= 8 * Fe || (re.put(236, 8), re.getLengthInBits() >= 8 * Fe)); ) + re.put(17, 8); + return function(Xe, Ze) { + for (var _e = 0, Le = 0, Oe = 0, it = new Array(Ze.length), pt = new Array(Ze.length), Re = 0; Re < Ze.length; Re += 1) { + var He = Ze[Re].dataCount, at = Ze[Re].totalCount - He; + Le = Math.max(Le, He), Oe = Math.max(Oe, at), it[Re] = new Array(He); + for (var We = 0; We < it[Re].length; We += 1) + it[Re][We] = 255 & Xe.getBuffer()[We + _e]; + _e += He; + var $t = w.getErrorCorrectPolynomial(at), ft = x(it[Re], $t.getLength() - 1).mod($t); + for (pt[Re] = new Array($t.getLength() - 1), We = 0; We < pt[Re].length; We += 1) { + var je = We + ft.getLength() - pt[Re].length; + pt[Re][We] = je >= 0 ? ft.getAt(je) : 0; } } var Je = 0; - for (Ze = 0; Ze < ze.length; Ze += 1) - Je += ze[Ze].totalCount; - var pt = new Array(Je), Ge = 0; - for (Ze = 0; Ze < Pe; Ze += 1) - for (Ne = 0; Ne < ze.length; Ne += 1) - Ze < nt[Ne].length && (pt[Ge] = nt[Ne][Ze], Ge += 1); - for (Ze = 0; Ze < Oe; Ze += 1) - for (Ne = 0; Ne < ze.length; Ne += 1) - Ze < De[Ne].length && (pt[Ge] = De[Ne][Ze], Ge += 1); - return pt; - }(oe, se); + for (We = 0; We < Ze.length; We += 1) + Je += Ze[We].totalCount; + var ht = new Array(Je), Ge = 0; + for (We = 0; We < Le; We += 1) + for (Re = 0; Re < Ze.length; Re += 1) + We < it[Re].length && (ht[Ge] = it[Re][We], Ge += 1); + for (We = 0; We < Oe; We += 1) + for (Re = 0; Re < Ze.length; Re += 1) + We < pt[Re].length && (ht[Ge] = pt[Re][We], Ge += 1); + return ht; + }(re, ie); }; - J.addData = function(j, ee) { - var te = null; - switch (ee = ee || "Byte") { + ue.addData = function($, K) { + var X = null; + switch (K = K || "Byte") { case "Numeric": - te = M(j); + X = M($); break; case "Alphanumeric": - te = P(j); + X = P($); break; case "Byte": - te = B(j); + X = B($); break; case "Kanji": - te = T(j); + X = T($); break; default: - throw "mode:" + ee; + throw "mode:" + K; } - Y.push(te), Z = null; - }, J.isDark = function(j, ee) { - if (j < 0 || q <= j || ee < 0 || q <= ee) - throw j + "," + ee; - return F[j][ee]; - }, J.getModuleCount = function() { + Y.push(X), Z = null; + }, ue.isDark = function($, K) { + if ($ < 0 || q <= $ || K < 0 || q <= K) + throw $ + "," + K; + return C[$][K]; + }, ue.getModuleCount = function() { return q; - }, J.make = function() { - if (z < 1) { - for (var j = 1; j < 40; j++) { - for (var ee = k.getRSBlocks(j, C), te = $(), se = 0; se < Y.length; se++) { - var oe = Y[se]; - te.put(oe.getMode(), 4), te.put(oe.getLength(), w.getLengthInBits(oe.getMode(), j)), oe.write(te); + }, ue.make = function() { + if (U < 1) { + for (var $ = 1; $ < 40; $++) { + for (var K = k.getRSBlocks($, F), X = R(), ie = 0; ie < Y.length; ie++) { + var re = Y[ie]; + X.put(re.getMode(), 4), X.put(re.getLength(), w.getLengthInBits(re.getMode(), $)), re.write(X); } - var _e = 0; - for (se = 0; se < ee.length; se++) - _e += ee[se].dataCount; - if (te.getLengthInBits() <= 8 * _e) + var fe = 0; + for (ie = 0; ie < K.length; ie++) + fe += K[ie].dataCount; + if (X.getLengthInBits() <= 8 * fe) break; } - z = j; + U = $; } - ve(!1, function() { - for (var Ae = 0, Be = 0, ct = 0; ct < 8; ct += 1) { - ve(!0, ct); - var ze = w.getLostPoint(J); - (ct == 0 || Ae > ze) && (Ae = ze, Be = ct); + te(!1, function() { + for (var Ae = 0, Fe = 0, Xe = 0; Xe < 8; Xe += 1) { + te(!0, Xe); + var Ze = w.getLostPoint(ue); + (Xe == 0 || Ae > Ze) && (Ae = Ze, Fe = Xe); } - return Be; + return Fe; }()); - }, J.createTableTag = function(j, ee) { - j = j || 2; - var te = ""; - te += '"; - }, J.createSvgTag = function(j, ee, te, se) { - var oe = {}; - typeof arguments[0] == "object" && (j = (oe = arguments[0]).cellSize, ee = oe.margin, te = oe.alt, se = oe.title), j = j || 2, ee = ee === void 0 ? 4 * j : ee, (te = typeof te == "string" ? { text: te } : te || {}).text = te.text || null, te.id = te.text ? te.id || "qrcode-description" : null, (se = typeof se == "string" ? { text: se } : se || {}).text = se.text || null, se.id = se.text ? se.id || "qrcode-title" : null; - var _e, Ae, Be, ct, ze = J.getModuleCount() * j + 2 * ee, Ee = ""; - for (ct = "l" + j + ",0 0," + j + " -" + j + ",0 0,-" + j + "z ", Ee += '' + I(se.text) + "" : "", Ee += te.text ? '' + I(te.text) + "" : "", Ee += '', Ee += '"; - }, J.createDataURL = function(j, ee) { - j = j || 2, ee = ee === void 0 ? 4 * j : ee; - var te = J.getModuleCount() * j + 2 * ee, se = ee, oe = te - ee; - return K(te, te, function(_e, Ae) { - if (se <= _e && _e < oe && se <= Ae && Ae < oe) { - var Be = Math.floor((_e - se) / j), ct = Math.floor((Ae - se) / j); - return J.isDark(ct, Be) ? 0 : 1; + return (X += "") + "
"; + }, ue.createSvgTag = function($, K, X, ie) { + var re = {}; + typeof arguments[0] == "object" && ($ = (re = arguments[0]).cellSize, K = re.margin, X = re.alt, ie = re.title), $ = $ || 2, K = K === void 0 ? 4 * $ : K, (X = typeof X == "string" ? { text: X } : X || {}).text = X.text || null, X.id = X.text ? X.id || "qrcode-description" : null, (ie = typeof ie == "string" ? { text: ie } : ie || {}).text = ie.text || null, ie.id = ie.text ? ie.id || "qrcode-title" : null; + var fe, Ae, Fe, Xe, Ze = ue.getModuleCount() * $ + 2 * K, _e = ""; + for (Xe = "l" + $ + ",0 0," + $ + " -" + $ + ",0 0,-" + $ + "z ", _e += '' + xe(ie.text) + "" : "", _e += X.text ? '' + xe(X.text) + "" : "", _e += '', _e += '"; + }, ue.createDataURL = function($, K) { + $ = $ || 2, K = K === void 0 ? 4 * $ : K; + var X = ue.getModuleCount() * $ + 2 * K, ie = K, re = X - K; + return W(X, X, function(fe, Ae) { + if (ie <= fe && fe < re && ie <= Ae && Ae < re) { + var Fe = Math.floor((fe - ie) / $), Xe = Math.floor((Ae - ie) / $); + return ue.isDark(Xe, Fe) ? 0 : 1; } return 1; }); - }, J.createImgTag = function(j, ee, te) { - j = j || 2, ee = ee === void 0 ? 4 * j : ee; - var se = J.getModuleCount() * j + 2 * ee, oe = ""; - return oe += ""; + }, ue.createImgTag = function($, K, X) { + $ = $ || 2, K = K === void 0 ? 4 * $ : K; + var ie = ue.getModuleCount() * $ + 2 * K, re = ""; + return re += ""; }; - var I = function(j) { - for (var ee = "", te = 0; te < j.length; te += 1) { - var se = j.charAt(te); - switch (se) { + var xe = function($) { + for (var K = "", X = 0; X < $.length; X += 1) { + var ie = $.charAt(X); + switch (ie) { case "<": - ee += "<"; + K += "<"; break; case ">": - ee += ">"; + K += ">"; break; case "&": - ee += "&"; + K += "&"; break; case '"': - ee += """; + K += """; break; default: - ee += se; + K += ie; } } - return ee; + return K; }; - return J.createASCII = function(j, ee) { - if ((j = j || 1) < 2) - return function(nt) { - nt = nt === void 0 ? 2 : nt; - var De, Ne, lt, mt, Ze, Ot = 1 * J.getModuleCount() + 2 * nt, dt = nt, He = Ot - nt, Je = { "\u2588\u2588": "\u2588", "\u2588 ": "\u2580", " \u2588": "\u2584", " ": " " }, pt = { "\u2588\u2588": "\u2580", "\u2588 ": "\u2580", " \u2588": " ", " ": " " }, Ge = ""; - for (De = 0; De < Ot; De += 2) { - for (lt = Math.floor((De - dt) / 1), mt = Math.floor((De + 1 - dt) / 1), Ne = 0; Ne < Ot; Ne += 1) - Ze = "\u2588", dt <= Ne && Ne < He && dt <= De && De < He && J.isDark(lt, Math.floor((Ne - dt) / 1)) && (Ze = " "), dt <= Ne && Ne < He && dt <= De + 1 && De + 1 < He && J.isDark(mt, Math.floor((Ne - dt) / 1)) ? Ze += " " : Ze += "\u2588", Ge += nt < 1 && De + 1 >= He ? pt[Ze] : Je[Ze]; + return ue.createASCII = function($, K) { + if (($ = $ || 1) < 2) + return function(it) { + it = it === void 0 ? 2 : it; + var pt, Re, He, at, We, $t = 1 * ue.getModuleCount() + 2 * it, ft = it, je = $t - it, Je = { "\u2588\u2588": "\u2588", "\u2588 ": "\u2580", " \u2588": "\u2584", " ": " " }, ht = { "\u2588\u2588": "\u2580", "\u2588 ": "\u2580", " \u2588": " ", " ": " " }, Ge = ""; + for (pt = 0; pt < $t; pt += 2) { + for (He = Math.floor((pt - ft) / 1), at = Math.floor((pt + 1 - ft) / 1), Re = 0; Re < $t; Re += 1) + We = "\u2588", ft <= Re && Re < je && ft <= pt && pt < je && ue.isDark(He, Math.floor((Re - ft) / 1)) && (We = " "), ft <= Re && Re < je && ft <= pt + 1 && pt + 1 < je && ue.isDark(at, Math.floor((Re - ft) / 1)) ? We += " " : We += "\u2588", Ge += it < 1 && pt + 1 >= je ? ht[We] : Je[We]; Ge += ` `; } - return Ot % 2 && nt > 0 ? Ge.substring(0, Ge.length - Ot - 1) + Array(Ot + 1).join("\u2580") : Ge.substring(0, Ge.length - 1); - }(ee); - j -= 1, ee = ee === void 0 ? 2 * j : ee; - var te, se, oe, _e, Ae = J.getModuleCount() * j + 2 * ee, Be = ee, ct = Ae - ee, ze = Array(j + 1).join("\u2588\u2588"), Ee = Array(j + 1).join(" "), Pe = "", Oe = ""; - for (te = 0; te < Ae; te += 1) { - for (oe = Math.floor((te - Be) / j), Oe = "", se = 0; se < Ae; se += 1) - _e = 1, Be <= se && se < ct && Be <= te && te < ct && J.isDark(oe, Math.floor((se - Be) / j)) && (_e = 0), Oe += _e ? ze : Ee; - for (oe = 0; oe < j; oe += 1) - Pe += Oe + ` + return $t % 2 && it > 0 ? Ge.substring(0, Ge.length - $t - 1) + Array($t + 1).join("\u2580") : Ge.substring(0, Ge.length - 1); + }(K); + $ -= 1, K = K === void 0 ? 2 * $ : K; + var X, ie, re, fe, Ae = ue.getModuleCount() * $ + 2 * K, Fe = K, Xe = Ae - K, Ze = Array($ + 1).join("\u2588\u2588"), _e = Array($ + 1).join(" "), Le = "", Oe = ""; + for (X = 0; X < Ae; X += 1) { + for (re = Math.floor((X - Fe) / $), Oe = "", ie = 0; ie < Ae; ie += 1) + fe = 1, Fe <= ie && ie < Xe && Fe <= X && X < Xe && ue.isDark(re, Math.floor((ie - Fe) / $)) && (fe = 0), Oe += fe ? Ze : _e; + for (re = 0; re < $; re += 1) + Le += Oe + ` `; } - return Pe.substring(0, Pe.length - 1); - }, J.renderTo2dContext = function(j, ee) { - ee = ee || 2; - for (var te = J.getModuleCount(), se = 0; se < te; se++) - for (var oe = 0; oe < te; oe++) - j.fillStyle = J.isDark(se, oe) ? "black" : "white", j.fillRect(se * ee, oe * ee, ee, ee); - }, J; + return Le.substring(0, Le.length - 1); + }, ue.renderTo2dContext = function($, K) { + K = K || 2; + for (var X = ue.getModuleCount(), ie = 0; ie < X; ie++) + for (var re = 0; re < X; re++) + $.fillStyle = ue.isDark(ie, re) ? "black" : "white", $.fillRect(ie * K, re * K, K, K); + }, ue; }; g.stringToBytes = (g.stringToBytesFuncs = { default: function(G) { - for (var R = [], z = 0; z < G.length; z += 1) { - var C = G.charCodeAt(z); - R.push(255 & C); + for (var I = [], U = 0; U < G.length; U += 1) { + var F = G.charCodeAt(U); + I.push(255 & F); } - return R; - } }).default, g.createStringToBytes = function(G, R) { - var z = function() { - for (var F = V(G), q = function() { - var Te = F.read(); - if (Te == -1) + return I; + } }).default, g.createStringToBytes = function(G, I) { + var U = function() { + for (var C = V(G), q = function() { + var ke = C.read(); + if (ke == -1) throw "eof"; - return Te; + return ke; }, Z = 0, Y = {}; ; ) { - var J = F.read(); - if (J == -1) + var ue = C.read(); + if (ue == -1) break; - var ve = q(), pe = q() << 8 | q(); - Y[String.fromCharCode(J << 8 | ve)] = pe, Z += 1; + var te = q(), pe = q() << 8 | q(); + Y[String.fromCharCode(ue << 8 | te)] = pe, Z += 1; } - if (Z != R) - throw Z + " != " + R; + if (Z != I) + throw Z + " != " + I; return Y; - }(), C = "?".charCodeAt(0); - return function(F) { - for (var q = [], Z = 0; Z < F.length; Z += 1) { - var Y = F.charCodeAt(Z); + }(), F = "?".charCodeAt(0); + return function(C) { + for (var q = [], Z = 0; Z < C.length; Z += 1) { + var Y = C.charCodeAt(Z); if (Y < 128) q.push(Y); else { - var J = z[F.charAt(Z)]; - typeof J == "number" ? (255 & J) == J ? q.push(J) : (q.push(J >>> 8), q.push(255 & J)) : q.push(C); + var ue = U[C.charAt(Z)]; + typeof ue == "number" ? (255 & ue) == ue ? q.push(ue) : (q.push(ue >>> 8), q.push(255 & ue)) : q.push(F); } } return q; }; }; var _, S, b, A, y, m = { L: 1, M: 0, Q: 3, H: 2 }, w = (_ = [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]], S = 1335, b = 7973, y = function(G) { - for (var R = 0; G != 0; ) - R += 1, G >>>= 1; - return R; + for (var I = 0; G != 0; ) + I += 1, G >>>= 1; + return I; }, (A = {}).getBCHTypeInfo = function(G) { - for (var R = G << 10; y(R) - y(S) >= 0; ) - R ^= S << y(R) - y(S); - return 21522 ^ (G << 10 | R); + for (var I = G << 10; y(I) - y(S) >= 0; ) + I ^= S << y(I) - y(S); + return 21522 ^ (G << 10 | I); }, A.getBCHTypeNumber = function(G) { - for (var R = G << 12; y(R) - y(b) >= 0; ) - R ^= b << y(R) - y(b); - return G << 12 | R; + for (var I = G << 12; y(I) - y(b) >= 0; ) + I ^= b << y(I) - y(b); + return G << 12 | I; }, A.getPatternPosition = function(G) { return _[G - 1]; }, A.getMaskFunction = function(G) { switch (G) { case 0: - return function(R, z) { - return (R + z) % 2 == 0; + return function(I, U) { + return (I + U) % 2 == 0; }; case 1: - return function(R, z) { - return R % 2 == 0; + return function(I, U) { + return I % 2 == 0; }; case 2: - return function(R, z) { - return z % 3 == 0; + return function(I, U) { + return U % 3 == 0; }; case 3: - return function(R, z) { - return (R + z) % 3 == 0; + return function(I, U) { + return (I + U) % 3 == 0; }; case 4: - return function(R, z) { - return (Math.floor(R / 2) + Math.floor(z / 3)) % 2 == 0; + return function(I, U) { + return (Math.floor(I / 2) + Math.floor(U / 3)) % 2 == 0; }; case 5: - return function(R, z) { - return R * z % 2 + R * z % 3 == 0; + return function(I, U) { + return I * U % 2 + I * U % 3 == 0; }; case 6: - return function(R, z) { - return (R * z % 2 + R * z % 3) % 2 == 0; + return function(I, U) { + return (I * U % 2 + I * U % 3) % 2 == 0; }; case 7: - return function(R, z) { - return (R * z % 3 + (R + z) % 2) % 2 == 0; + return function(I, U) { + return (I * U % 3 + (I + U) % 2) % 2 == 0; }; default: throw "bad maskPattern:" + G; } }, A.getErrorCorrectPolynomial = function(G) { - for (var R = x([1], 0), z = 0; z < G; z += 1) - R = R.multiply(x([1, E.gexp(z)], 0)); - return R; - }, A.getLengthInBits = function(G, R) { - if (1 <= R && R < 10) + for (var I = x([1], 0), U = 0; U < G; U += 1) + I = I.multiply(x([1, E.gexp(U)], 0)); + return I; + }, A.getLengthInBits = function(G, I) { + if (1 <= I && I < 10) switch (G) { case 1: return 10; @@ -20741,7 +20748,7 @@ var H0 = { exports: {} }; default: throw "mode:" + G; } - else if (R < 27) + else if (I < 27) switch (G) { case 1: return 12; @@ -20755,8 +20762,8 @@ var H0 = { exports: {} }; throw "mode:" + G; } else { - if (!(R < 41)) - throw "type:" + R; + if (!(I < 41)) + throw "type:" + I; switch (G) { case 1: return 14; @@ -20771,155 +20778,155 @@ var H0 = { exports: {} }; } } }, A.getLostPoint = function(G) { - for (var R = G.getModuleCount(), z = 0, C = 0; C < R; C += 1) - for (var F = 0; F < R; F += 1) { - for (var q = 0, Z = G.isDark(C, F), Y = -1; Y <= 1; Y += 1) - if (!(C + Y < 0 || R <= C + Y)) - for (var J = -1; J <= 1; J += 1) - F + J < 0 || R <= F + J || Y == 0 && J == 0 || Z == G.isDark(C + Y, F + J) && (q += 1); - q > 5 && (z += 3 + q - 5); + for (var I = G.getModuleCount(), U = 0, F = 0; F < I; F += 1) + for (var C = 0; C < I; C += 1) { + for (var q = 0, Z = G.isDark(F, C), Y = -1; Y <= 1; Y += 1) + if (!(F + Y < 0 || I <= F + Y)) + for (var ue = -1; ue <= 1; ue += 1) + C + ue < 0 || I <= C + ue || Y == 0 && ue == 0 || Z == G.isDark(F + Y, C + ue) && (q += 1); + q > 5 && (U += 3 + q - 5); } - for (C = 0; C < R - 1; C += 1) - for (F = 0; F < R - 1; F += 1) { - var ve = 0; - G.isDark(C, F) && (ve += 1), G.isDark(C + 1, F) && (ve += 1), G.isDark(C, F + 1) && (ve += 1), G.isDark(C + 1, F + 1) && (ve += 1), ve != 0 && ve != 4 || (z += 3); + for (F = 0; F < I - 1; F += 1) + for (C = 0; C < I - 1; C += 1) { + var te = 0; + G.isDark(F, C) && (te += 1), G.isDark(F + 1, C) && (te += 1), G.isDark(F, C + 1) && (te += 1), G.isDark(F + 1, C + 1) && (te += 1), te != 0 && te != 4 || (U += 3); } - for (C = 0; C < R; C += 1) - for (F = 0; F < R - 6; F += 1) - G.isDark(C, F) && !G.isDark(C, F + 1) && G.isDark(C, F + 2) && G.isDark(C, F + 3) && G.isDark(C, F + 4) && !G.isDark(C, F + 5) && G.isDark(C, F + 6) && (z += 40); - for (F = 0; F < R; F += 1) - for (C = 0; C < R - 6; C += 1) - G.isDark(C, F) && !G.isDark(C + 1, F) && G.isDark(C + 2, F) && G.isDark(C + 3, F) && G.isDark(C + 4, F) && !G.isDark(C + 5, F) && G.isDark(C + 6, F) && (z += 40); + for (F = 0; F < I; F += 1) + for (C = 0; C < I - 6; C += 1) + G.isDark(F, C) && !G.isDark(F, C + 1) && G.isDark(F, C + 2) && G.isDark(F, C + 3) && G.isDark(F, C + 4) && !G.isDark(F, C + 5) && G.isDark(F, C + 6) && (U += 40); + for (C = 0; C < I; C += 1) + for (F = 0; F < I - 6; F += 1) + G.isDark(F, C) && !G.isDark(F + 1, C) && G.isDark(F + 2, C) && G.isDark(F + 3, C) && G.isDark(F + 4, C) && !G.isDark(F + 5, C) && G.isDark(F + 6, C) && (U += 40); var pe = 0; - for (F = 0; F < R; F += 1) - for (C = 0; C < R; C += 1) - G.isDark(C, F) && (pe += 1); - return z + Math.abs(100 * pe / R / R - 50) / 5 * 10; + for (C = 0; C < I; C += 1) + for (F = 0; F < I; F += 1) + G.isDark(F, C) && (pe += 1); + return U + Math.abs(100 * pe / I / I - 50) / 5 * 10; }, A), E = function() { - for (var G = new Array(256), R = new Array(256), z = 0; z < 8; z += 1) - G[z] = 1 << z; - for (z = 8; z < 256; z += 1) - G[z] = G[z - 4] ^ G[z - 5] ^ G[z - 6] ^ G[z - 8]; - for (z = 0; z < 255; z += 1) - R[G[z]] = z; - return { glog: function(C) { - if (C < 1) - throw "glog(" + C + ")"; - return R[C]; - }, gexp: function(C) { - for (; C < 0; ) - C += 255; - for (; C >= 256; ) - C -= 255; - return G[C]; + for (var G = new Array(256), I = new Array(256), U = 0; U < 8; U += 1) + G[U] = 1 << U; + for (U = 8; U < 256; U += 1) + G[U] = G[U - 4] ^ G[U - 5] ^ G[U - 6] ^ G[U - 8]; + for (U = 0; U < 255; U += 1) + I[G[U]] = U; + return { glog: function(F) { + if (F < 1) + throw "glog(" + F + ")"; + return I[F]; + }, gexp: function(F) { + for (; F < 0; ) + F += 255; + for (; F >= 256; ) + F -= 255; + return G[F]; } }; }(); - function x(G, R) { + function x(G, I) { if (G.length === void 0) - throw G.length + "/" + R; - var z = function() { - for (var F = 0; F < G.length && G[F] == 0; ) - F += 1; - for (var q = new Array(G.length - F + R), Z = 0; Z < G.length - F; Z += 1) - q[Z] = G[Z + F]; + throw G.length + "/" + I; + var U = function() { + for (var C = 0; C < G.length && G[C] == 0; ) + C += 1; + for (var q = new Array(G.length - C + I), Z = 0; Z < G.length - C; Z += 1) + q[Z] = G[Z + C]; return q; - }(), C = { getAt: function(F) { - return z[F]; + }(), F = { getAt: function(C) { + return U[C]; }, getLength: function() { - return z.length; - }, multiply: function(F) { - for (var q = new Array(C.getLength() + F.getLength() - 1), Z = 0; Z < C.getLength(); Z += 1) - for (var Y = 0; Y < F.getLength(); Y += 1) - q[Z + Y] ^= E.gexp(E.glog(C.getAt(Z)) + E.glog(F.getAt(Y))); + return U.length; + }, multiply: function(C) { + for (var q = new Array(F.getLength() + C.getLength() - 1), Z = 0; Z < F.getLength(); Z += 1) + for (var Y = 0; Y < C.getLength(); Y += 1) + q[Z + Y] ^= E.gexp(E.glog(F.getAt(Z)) + E.glog(C.getAt(Y))); return x(q, 0); - }, mod: function(F) { - if (C.getLength() - F.getLength() < 0) - return C; - for (var q = E.glog(C.getAt(0)) - E.glog(F.getAt(0)), Z = new Array(C.getLength()), Y = 0; Y < C.getLength(); Y += 1) - Z[Y] = C.getAt(Y); - for (Y = 0; Y < F.getLength(); Y += 1) - Z[Y] ^= E.gexp(E.glog(F.getAt(Y)) + q); - return x(Z, 0).mod(F); + }, mod: function(C) { + if (F.getLength() - C.getLength() < 0) + return F; + for (var q = E.glog(F.getAt(0)) - E.glog(C.getAt(0)), Z = new Array(F.getLength()), Y = 0; Y < F.getLength(); Y += 1) + Z[Y] = F.getAt(Y); + for (Y = 0; Y < C.getLength(); Y += 1) + Z[Y] ^= E.gexp(E.glog(C.getAt(Y)) + q); + return x(Z, 0).mod(C); } }; - return C; + return F; } var k = function() { - var G = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12, 7, 37, 13], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], R = function(C, F) { + var G = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12, 7, 37, 13], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], I = function(F, C) { var q = {}; - return q.totalCount = C, q.dataCount = F, q; - }, z = { getRSBlocks: function(C, F) { - var q = function(me, we) { + return q.totalCount = F, q.dataCount = C, q; + }, U = { getRSBlocks: function(F, C) { + var q = function(ve, we) { switch (we) { case m.L: - return G[4 * (me - 1) + 0]; + return G[4 * (ve - 1) + 0]; case m.M: - return G[4 * (me - 1) + 1]; + return G[4 * (ve - 1) + 1]; case m.Q: - return G[4 * (me - 1) + 2]; + return G[4 * (ve - 1) + 2]; case m.H: - return G[4 * (me - 1) + 3]; + return G[4 * (ve - 1) + 3]; default: return; } - }(C, F); + }(F, C); if (q === void 0) - throw "bad rs block @ typeNumber:" + C + "/errorCorrectionLevel:" + F; - for (var Z = q.length / 3, Y = [], J = 0; J < Z; J += 1) - for (var ve = q[3 * J + 0], pe = q[3 * J + 1], Te = q[3 * J + 2], ge = 0; ge < ve; ge += 1) - Y.push(R(pe, Te)); + throw "bad rs block @ typeNumber:" + F + "/errorCorrectionLevel:" + C; + for (var Z = q.length / 3, Y = [], ue = 0; ue < Z; ue += 1) + for (var te = q[3 * ue + 0], pe = q[3 * ue + 1], ke = q[3 * ue + 2], ge = 0; ge < te; ge += 1) + Y.push(I(pe, ke)); return Y; } }; - return z; - }(), $ = function() { - var G = [], R = 0, z = { getBuffer: function() { + return U; + }(), R = function() { + var G = [], I = 0, U = { getBuffer: function() { return G; - }, getAt: function(C) { - var F = Math.floor(C / 8); - return (G[F] >>> 7 - C % 8 & 1) == 1; - }, put: function(C, F) { - for (var q = 0; q < F; q += 1) - z.putBit((C >>> F - q - 1 & 1) == 1); + }, getAt: function(F) { + var C = Math.floor(F / 8); + return (G[C] >>> 7 - F % 8 & 1) == 1; + }, put: function(F, C) { + for (var q = 0; q < C; q += 1) + U.putBit((F >>> C - q - 1 & 1) == 1); }, getLengthInBits: function() { - return R; - }, putBit: function(C) { - var F = Math.floor(R / 8); - G.length <= F && G.push(0), C && (G[F] |= 128 >>> R % 8), R += 1; + return I; + }, putBit: function(F) { + var C = Math.floor(I / 8); + G.length <= C && G.push(0), F && (G[C] |= 128 >>> I % 8), I += 1; } }; - return z; + return U; }, M = function(G) { - var R = G, z = { getMode: function() { + var I = G, U = { getMode: function() { return 1; }, getLength: function(q) { - return R.length; + return I.length; }, write: function(q) { - for (var Z = R, Y = 0; Y + 2 < Z.length; ) - q.put(C(Z.substring(Y, Y + 3)), 10), Y += 3; - Y < Z.length && (Z.length - Y == 1 ? q.put(C(Z.substring(Y, Y + 1)), 4) : Z.length - Y == 2 && q.put(C(Z.substring(Y, Y + 2)), 7)); - } }, C = function(q) { + for (var Z = I, Y = 0; Y + 2 < Z.length; ) + q.put(F(Z.substring(Y, Y + 3)), 10), Y += 3; + Y < Z.length && (Z.length - Y == 1 ? q.put(F(Z.substring(Y, Y + 1)), 4) : Z.length - Y == 2 && q.put(F(Z.substring(Y, Y + 2)), 7)); + } }, F = function(q) { for (var Z = 0, Y = 0; Y < q.length; Y += 1) - Z = 10 * Z + F(q.charAt(Y)); + Z = 10 * Z + C(q.charAt(Y)); return Z; - }, F = function(q) { + }, C = function(q) { if ("0" <= q && q <= "9") return q.charCodeAt(0) - "0".charCodeAt(0); throw "illegal char :" + q; }; - return z; + return U; }, P = function(G) { - var R = G, z = { getMode: function() { + var I = G, U = { getMode: function() { return 2; - }, getLength: function(F) { - return R.length; - }, write: function(F) { - for (var q = R, Z = 0; Z + 1 < q.length; ) - F.put(45 * C(q.charAt(Z)) + C(q.charAt(Z + 1)), 11), Z += 2; - Z < q.length && F.put(C(q.charAt(Z)), 6); - } }, C = function(F) { - if ("0" <= F && F <= "9") - return F.charCodeAt(0) - "0".charCodeAt(0); - if ("A" <= F && F <= "Z") - return F.charCodeAt(0) - "A".charCodeAt(0) + 10; - switch (F) { + }, getLength: function(C) { + return I.length; + }, write: function(C) { + for (var q = I, Z = 0; Z + 1 < q.length; ) + C.put(45 * F(q.charAt(Z)) + F(q.charAt(Z + 1)), 11), Z += 2; + Z < q.length && C.put(F(q.charAt(Z)), 6); + } }, F = function(C) { + if ("0" <= C && C <= "9") + return C.charCodeAt(0) - "0".charCodeAt(0); + if ("A" <= C && C <= "Z") + return C.charCodeAt(0) - "A".charCodeAt(0) + 10; + switch (C) { case " ": return 36; case "$": @@ -20939,35 +20946,35 @@ var H0 = { exports: {} }; case ":": return 44; default: - throw "illegal char :" + F; + throw "illegal char :" + C; } }; - return z; + return U; }, B = function(G) { - var R = g.stringToBytes(G); + var I = g.stringToBytes(G); return { getMode: function() { return 4; - }, getLength: function(z) { - return R.length; - }, write: function(z) { - for (var C = 0; C < R.length; C += 1) - z.put(R[C], 8); + }, getLength: function(U) { + return I.length; + }, write: function(U) { + for (var F = 0; F < I.length; F += 1) + U.put(I[F], 8); } }; }, T = function(G) { - var R = g.stringToBytesFuncs.SJIS; - if (!R) + var I = g.stringToBytesFuncs.SJIS; + if (!I) throw "sjis not supported."; (function() { - var F = R("\u53CB"); - if (F.length != 2 || (F[0] << 8 | F[1]) != 38726) + var C = I("\u53CB"); + if (C.length != 2 || (C[0] << 8 | C[1]) != 38726) throw "sjis not supported."; })(); - var z = R(G), C = { getMode: function() { + var U = I(G), F = { getMode: function() { return 8; - }, getLength: function(F) { - return ~~(z.length / 2); - }, write: function(F) { - for (var q = z, Z = 0; Z + 1 < q.length; ) { + }, getLength: function(C) { + return ~~(U.length / 2); + }, write: function(C) { + for (var q = U, Z = 0; Z + 1 < q.length; ) { var Y = (255 & q[Z]) << 8 | 255 & q[Z + 1]; if (33088 <= Y && Y <= 40956) Y -= 33088; @@ -20976,49 +20983,49 @@ var H0 = { exports: {} }; throw "illegal char at " + (Z + 1) + "/" + Y; Y -= 49472; } - Y = 192 * (Y >>> 8 & 255) + (255 & Y), F.put(Y, 13), Z += 2; + Y = 192 * (Y >>> 8 & 255) + (255 & Y), C.put(Y, 13), Z += 2; } if (Z < q.length) throw "illegal char at " + (Z + 1); } }; - return C; + return F; }, D = function() { - var G = [], R = { writeByte: function(z) { - G.push(255 & z); - }, writeShort: function(z) { - R.writeByte(z), R.writeByte(z >>> 8); - }, writeBytes: function(z, C, F) { - C = C || 0, F = F || z.length; - for (var q = 0; q < F; q += 1) - R.writeByte(z[q + C]); - }, writeString: function(z) { - for (var C = 0; C < z.length; C += 1) - R.writeByte(z.charCodeAt(C)); + var G = [], I = { writeByte: function(U) { + G.push(255 & U); + }, writeShort: function(U) { + I.writeByte(U), I.writeByte(U >>> 8); + }, writeBytes: function(U, F, C) { + F = F || 0, C = C || U.length; + for (var q = 0; q < C; q += 1) + I.writeByte(U[q + F]); + }, writeString: function(U) { + for (var F = 0; F < U.length; F += 1) + I.writeByte(U.charCodeAt(F)); }, toByteArray: function() { return G; }, toString: function() { - var z = ""; - z += "["; - for (var C = 0; C < G.length; C += 1) - C > 0 && (z += ","), z += G[C]; - return z + "]"; + var U = ""; + U += "["; + for (var F = 0; F < G.length; F += 1) + F > 0 && (U += ","), U += G[F]; + return U + "]"; } }; - return R; + return I; }, V = function(G) { - var R = G, z = 0, C = 0, F = 0, q = { read: function() { - for (; F < 8; ) { - if (z >= R.length) { - if (F == 0) + var I = G, U = 0, F = 0, C = 0, q = { read: function() { + for (; C < 8; ) { + if (U >= I.length) { + if (C == 0) return -1; - throw "unexpected end of file./" + F; + throw "unexpected end of file./" + C; } - var Y = R.charAt(z); - if (z += 1, Y == "=") - return F = 0, -1; - Y.match(/^\s$/) || (C = C << 6 | Z(Y.charCodeAt(0)), F += 6); + var Y = I.charAt(U); + if (U += 1, Y == "=") + return C = 0, -1; + Y.match(/^\s$/) || (F = F << 6 | Z(Y.charCodeAt(0)), C += 6); } - var J = C >>> F - 8 & 255; - return F -= 8, J; + var ue = F >>> C - 8 & 255; + return C -= 8, ue; } }, Z = function(Y) { if (65 <= Y && Y <= 90) return Y - 65; @@ -21033,87 +21040,87 @@ var H0 = { exports: {} }; throw "c:" + Y; }; return q; - }, K = function(G, R, z) { - for (var C = function(pe, Te) { - var ge = pe, me = Te, we = new Array(pe * Te), ce = { setPixel: function(j, ee, te) { - we[ee * ge + j] = te; - }, write: function(j) { - j.writeString("GIF87a"), j.writeShort(ge), j.writeShort(me), j.writeByte(128), j.writeByte(0), j.writeByte(0), j.writeByte(0), j.writeByte(0), j.writeByte(0), j.writeByte(255), j.writeByte(255), j.writeByte(255), j.writeString(","), j.writeShort(0), j.writeShort(0), j.writeShort(ge), j.writeShort(me), j.writeByte(0); - var ee = Se(2); - j.writeByte(2); - for (var te = 0; ee.length - te > 255; ) - j.writeByte(255), j.writeBytes(ee, te, 255), te += 255; - j.writeByte(ee.length - te), j.writeBytes(ee, te, ee.length - te), j.writeByte(0), j.writeString(";"); - } }, Se = function(j) { - for (var ee = 1 << j, te = 1 + (1 << j), se = j + 1, oe = I(), _e = 0; _e < ee; _e += 1) - oe.add(String.fromCharCode(_e)); - oe.add(String.fromCharCode(ee)), oe.add(String.fromCharCode(te)); - var Ae, Be, ct, ze = D(), Ee = (Ae = ze, Be = 0, ct = 0, { write: function(De, Ne) { - if (De >>> Ne != 0) + }, W = function(G, I, U) { + for (var F = function(pe, ke) { + var ge = pe, ve = ke, we = new Array(pe * ke), he = { setPixel: function($, K, X) { + we[K * ge + $] = X; + }, write: function($) { + $.writeString("GIF87a"), $.writeShort(ge), $.writeShort(ve), $.writeByte(128), $.writeByte(0), $.writeByte(0), $.writeByte(0), $.writeByte(0), $.writeByte(0), $.writeByte(255), $.writeByte(255), $.writeByte(255), $.writeString(","), $.writeShort(0), $.writeShort(0), $.writeShort(ge), $.writeShort(ve), $.writeByte(0); + var K = Se(2); + $.writeByte(2); + for (var X = 0; K.length - X > 255; ) + $.writeByte(255), $.writeBytes(K, X, 255), X += 255; + $.writeByte(K.length - X), $.writeBytes(K, X, K.length - X), $.writeByte(0), $.writeString(";"); + } }, Se = function($) { + for (var K = 1 << $, X = 1 + (1 << $), ie = $ + 1, re = xe(), fe = 0; fe < K; fe += 1) + re.add(String.fromCharCode(fe)); + re.add(String.fromCharCode(K)), re.add(String.fromCharCode(X)); + var Ae, Fe, Xe, Ze = D(), _e = (Ae = Ze, Fe = 0, Xe = 0, { write: function(pt, Re) { + if (pt >>> Re != 0) throw "length over"; - for (; Be + Ne >= 8; ) - Ae.writeByte(255 & (De << Be | ct)), Ne -= 8 - Be, De >>>= 8 - Be, ct = 0, Be = 0; - ct |= De << Be, Be += Ne; + for (; Fe + Re >= 8; ) + Ae.writeByte(255 & (pt << Fe | Xe)), Re -= 8 - Fe, pt >>>= 8 - Fe, Xe = 0, Fe = 0; + Xe |= pt << Fe, Fe += Re; }, flush: function() { - Be > 0 && Ae.writeByte(ct); + Fe > 0 && Ae.writeByte(Xe); } }); - Ee.write(ee, se); - var Pe = 0, Oe = String.fromCharCode(we[Pe]); - for (Pe += 1; Pe < we.length; ) { - var nt = String.fromCharCode(we[Pe]); - Pe += 1, oe.contains(Oe + nt) ? Oe += nt : (Ee.write(oe.indexOf(Oe), se), oe.size() < 4095 && (oe.size() == 1 << se && (se += 1), oe.add(Oe + nt)), Oe = nt); + _e.write(K, ie); + var Le = 0, Oe = String.fromCharCode(we[Le]); + for (Le += 1; Le < we.length; ) { + var it = String.fromCharCode(we[Le]); + Le += 1, re.contains(Oe + it) ? Oe += it : (_e.write(re.indexOf(Oe), ie), re.size() < 4095 && (re.size() == 1 << ie && (ie += 1), re.add(Oe + it)), Oe = it); } - return Ee.write(oe.indexOf(Oe), se), Ee.write(te, se), Ee.flush(), ze.toByteArray(); - }, I = function() { - var j = {}, ee = 0, te = { add: function(se) { - if (te.contains(se)) - throw "dup key:" + se; - j[se] = ee, ee += 1; + return _e.write(re.indexOf(Oe), ie), _e.write(X, ie), _e.flush(), Ze.toByteArray(); + }, xe = function() { + var $ = {}, K = 0, X = { add: function(ie) { + if (X.contains(ie)) + throw "dup key:" + ie; + $[ie] = K, K += 1; }, size: function() { - return ee; - }, indexOf: function(se) { - return j[se]; - }, contains: function(se) { - return j[se] !== void 0; + return K; + }, indexOf: function(ie) { + return $[ie]; + }, contains: function(ie) { + return $[ie] !== void 0; } }; - return te; + return X; }; - return ce; - }(G, R), F = 0; F < R; F += 1) + return he; + }(G, I), C = 0; C < I; C += 1) for (var q = 0; q < G; q += 1) - C.setPixel(q, F, z(q, F)); + F.setPixel(q, C, U(q, C)); var Z = D(); - C.write(Z); + F.write(Z); for (var Y = function() { - var pe = 0, Te = 0, ge = 0, me = "", we = {}, ce = function(I) { - me += String.fromCharCode(Se(63 & I)); - }, Se = function(I) { - if (!(I < 0)) { - if (I < 26) - return 65 + I; - if (I < 52) - return I - 26 + 97; - if (I < 62) - return I - 52 + 48; - if (I == 62) + var pe = 0, ke = 0, ge = 0, ve = "", we = {}, he = function(xe) { + ve += String.fromCharCode(Se(63 & xe)); + }, Se = function(xe) { + if (!(xe < 0)) { + if (xe < 26) + return 65 + xe; + if (xe < 52) + return xe - 26 + 97; + if (xe < 62) + return xe - 52 + 48; + if (xe == 62) return 43; - if (I == 63) + if (xe == 63) return 47; } - throw "n:" + I; + throw "n:" + xe; }; - return we.writeByte = function(I) { - for (pe = pe << 8 | 255 & I, Te += 8, ge += 1; Te >= 6; ) - ce(pe >>> Te - 6), Te -= 6; + return we.writeByte = function(xe) { + for (pe = pe << 8 | 255 & xe, ke += 8, ge += 1; ke >= 6; ) + he(pe >>> ke - 6), ke -= 6; }, we.flush = function() { - if (Te > 0 && (ce(pe << 6 - Te), pe = 0, Te = 0), ge % 3 != 0) - for (var I = 3 - ge % 3, j = 0; j < I; j += 1) - me += "="; + if (ke > 0 && (he(pe << 6 - ke), pe = 0, ke = 0), ge % 3 != 0) + for (var xe = 3 - ge % 3, $ = 0; $ < xe; $ += 1) + ve += "="; }, we.toString = function() { - return me; + return ve; }, we; - }(), J = Z.toByteArray(), ve = 0; ve < J.length; ve += 1) - Y.writeByte(J[ve]); + }(), ue = Z.toByteArray(), te = 0; te < ue.length; te += 1) + Y.writeByte(ue[te]); return Y.flush(), "data:image/gif;base64," + Y; }; return g; @@ -21146,27 +21153,27 @@ var H0 = { exports: {} }; }, n.o = (s, u) => Object.prototype.hasOwnProperty.call(s, u); var a = {}; return (() => { - n.d(a, { default: () => R }); - const s = (z) => !!z && typeof z == "object" && !Array.isArray(z); - function u(z, ...C) { - if (!C.length) - return z; - const F = C.shift(); - return F !== void 0 && s(z) && s(F) ? (z = Object.assign({}, z), Object.keys(F).forEach((q) => { - const Z = z[q], Y = F[q]; - Array.isArray(Z) && Array.isArray(Y) ? z[q] = Y : s(Z) && s(Y) ? z[q] = u(Object.assign({}, Z), Y) : z[q] = Y; - }), u(z, ...C)) : z; + n.d(a, { default: () => I }); + const s = (U) => !!U && typeof U == "object" && !Array.isArray(U); + function u(U, ...F) { + if (!F.length) + return U; + const C = F.shift(); + return C !== void 0 && s(U) && s(C) ? (U = Object.assign({}, U), Object.keys(C).forEach((q) => { + const Z = U[q], Y = C[q]; + Array.isArray(Z) && Array.isArray(Y) ? U[q] = Y : s(Z) && s(Y) ? U[q] = u(Object.assign({}, Z), Y) : U[q] = Y; + }), u(U, ...F)) : U; } - function d(z, C) { - const F = document.createElement("a"); - F.download = C, F.href = z, document.body.appendChild(F), F.click(), document.body.removeChild(F); + function d(U, F) { + const C = document.createElement("a"); + C.download = F, C.href = U, document.body.appendChild(C), C.click(), document.body.removeChild(C); } const p = { L: 0.07, M: 0.15, Q: 0.25, H: 0.3 }; class h { - constructor({ svg: C, type: F, window: q }) { - this._svg = C, this._type = F, this._window = q; + constructor({ svg: F, type: C, window: q }) { + this._svg = F, this._type = C, this._window = q; } - draw(C, F, q, Z) { + draw(F, C, q, Z) { let Y; switch (this._type) { case "dots": @@ -21187,106 +21194,106 @@ var H0 = { exports: {} }; default: Y = this._drawSquare; } - Y.call(this, { x: C, y: F, size: q, getNeighbor: Z }); + Y.call(this, { x: F, y: C, size: q, getNeighbor: Z }); } - _rotateFigure({ x: C, y: F, size: q, rotation: Z = 0, draw: Y }) { - var J; - const ve = C + q / 2, pe = F + q / 2; - Y(), (J = this._element) === null || J === void 0 || J.setAttribute("transform", `rotate(${180 * Z / Math.PI},${ve},${pe})`); + _rotateFigure({ x: F, y: C, size: q, rotation: Z = 0, draw: Y }) { + var ue; + const te = F + q / 2, pe = C + q / 2; + Y(), (ue = this._element) === null || ue === void 0 || ue.setAttribute("transform", `rotate(${180 * Z / Math.PI},${te},${pe})`); } - _basicDot(C) { - const { size: F, x: q, y: Z } = C; - this._rotateFigure(Object.assign(Object.assign({}, C), { draw: () => { - this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(q + F / 2)), this._element.setAttribute("cy", String(Z + F / 2)), this._element.setAttribute("r", String(F / 2)); + _basicDot(F) { + const { size: C, x: q, y: Z } = F; + this._rotateFigure(Object.assign(Object.assign({}, F), { draw: () => { + this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(q + C / 2)), this._element.setAttribute("cy", String(Z + C / 2)), this._element.setAttribute("r", String(C / 2)); } })); } - _basicSquare(C) { - const { size: F, x: q, y: Z } = C; - this._rotateFigure(Object.assign(Object.assign({}, C), { draw: () => { - this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(q)), this._element.setAttribute("y", String(Z)), this._element.setAttribute("width", String(F)), this._element.setAttribute("height", String(F)); + _basicSquare(F) { + const { size: C, x: q, y: Z } = F; + this._rotateFigure(Object.assign(Object.assign({}, F), { draw: () => { + this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(q)), this._element.setAttribute("y", String(Z)), this._element.setAttribute("width", String(C)), this._element.setAttribute("height", String(C)); } })); } - _basicSideRounded(C) { - const { size: F, x: q, y: Z } = C; - this._rotateFigure(Object.assign(Object.assign({}, C), { draw: () => { - this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${q} ${Z}v ${F}h ` + F / 2 + `a ${F / 2} ${F / 2}, 0, 0, 0, 0 ${-F}`); + _basicSideRounded(F) { + const { size: C, x: q, y: Z } = F; + this._rotateFigure(Object.assign(Object.assign({}, F), { draw: () => { + this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${q} ${Z}v ${C}h ` + C / 2 + `a ${C / 2} ${C / 2}, 0, 0, 0, 0 ${-C}`); } })); } - _basicCornerRounded(C) { - const { size: F, x: q, y: Z } = C; - this._rotateFigure(Object.assign(Object.assign({}, C), { draw: () => { - this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${q} ${Z}v ${F}h ${F}v ` + -F / 2 + `a ${F / 2} ${F / 2}, 0, 0, 0, ${-F / 2} ${-F / 2}`); + _basicCornerRounded(F) { + const { size: C, x: q, y: Z } = F; + this._rotateFigure(Object.assign(Object.assign({}, F), { draw: () => { + this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${q} ${Z}v ${C}h ${C}v ` + -C / 2 + `a ${C / 2} ${C / 2}, 0, 0, 0, ${-C / 2} ${-C / 2}`); } })); } - _basicCornerExtraRounded(C) { - const { size: F, x: q, y: Z } = C; - this._rotateFigure(Object.assign(Object.assign({}, C), { draw: () => { - this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${q} ${Z}v ${F}h ${F}a ${F} ${F}, 0, 0, 0, ${-F} ${-F}`); + _basicCornerExtraRounded(F) { + const { size: C, x: q, y: Z } = F; + this._rotateFigure(Object.assign(Object.assign({}, F), { draw: () => { + this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${q} ${Z}v ${C}h ${C}a ${C} ${C}, 0, 0, 0, ${-C} ${-C}`); } })); } - _basicCornersRounded(C) { - const { size: F, x: q, y: Z } = C; - this._rotateFigure(Object.assign(Object.assign({}, C), { draw: () => { - this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${q} ${Z}v ` + F / 2 + `a ${F / 2} ${F / 2}, 0, 0, 0, ${F / 2} ${F / 2}h ` + F / 2 + "v " + -F / 2 + `a ${F / 2} ${F / 2}, 0, 0, 0, ${-F / 2} ${-F / 2}`); + _basicCornersRounded(F) { + const { size: C, x: q, y: Z } = F; + this._rotateFigure(Object.assign(Object.assign({}, F), { draw: () => { + this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${q} ${Z}v ` + C / 2 + `a ${C / 2} ${C / 2}, 0, 0, 0, ${C / 2} ${C / 2}h ` + C / 2 + "v " + -C / 2 + `a ${C / 2} ${C / 2}, 0, 0, 0, ${-C / 2} ${-C / 2}`); } })); } - _drawDot({ x: C, y: F, size: q }) { - this._basicDot({ x: C, y: F, size: q, rotation: 0 }); + _drawDot({ x: F, y: C, size: q }) { + this._basicDot({ x: F, y: C, size: q, rotation: 0 }); } - _drawSquare({ x: C, y: F, size: q }) { - this._basicSquare({ x: C, y: F, size: q, rotation: 0 }); + _drawSquare({ x: F, y: C, size: q }) { + this._basicSquare({ x: F, y: C, size: q, rotation: 0 }); } - _drawRounded({ x: C, y: F, size: q, getNeighbor: Z }) { - const Y = Z ? +Z(-1, 0) : 0, J = Z ? +Z(1, 0) : 0, ve = Z ? +Z(0, -1) : 0, pe = Z ? +Z(0, 1) : 0, Te = Y + J + ve + pe; - if (Te !== 0) - if (Te > 2 || Y && J || ve && pe) - this._basicSquare({ x: C, y: F, size: q, rotation: 0 }); + _drawRounded({ x: F, y: C, size: q, getNeighbor: Z }) { + const Y = Z ? +Z(-1, 0) : 0, ue = Z ? +Z(1, 0) : 0, te = Z ? +Z(0, -1) : 0, pe = Z ? +Z(0, 1) : 0, ke = Y + ue + te + pe; + if (ke !== 0) + if (ke > 2 || Y && ue || te && pe) + this._basicSquare({ x: F, y: C, size: q, rotation: 0 }); else { - if (Te === 2) { + if (ke === 2) { let ge = 0; - return Y && ve ? ge = Math.PI / 2 : ve && J ? ge = Math.PI : J && pe && (ge = -Math.PI / 2), void this._basicCornerRounded({ x: C, y: F, size: q, rotation: ge }); + return Y && te ? ge = Math.PI / 2 : te && ue ? ge = Math.PI : ue && pe && (ge = -Math.PI / 2), void this._basicCornerRounded({ x: F, y: C, size: q, rotation: ge }); } - if (Te === 1) { + if (ke === 1) { let ge = 0; - return ve ? ge = Math.PI / 2 : J ? ge = Math.PI : pe && (ge = -Math.PI / 2), void this._basicSideRounded({ x: C, y: F, size: q, rotation: ge }); + return te ? ge = Math.PI / 2 : ue ? ge = Math.PI : pe && (ge = -Math.PI / 2), void this._basicSideRounded({ x: F, y: C, size: q, rotation: ge }); } } else - this._basicDot({ x: C, y: F, size: q, rotation: 0 }); + this._basicDot({ x: F, y: C, size: q, rotation: 0 }); } - _drawExtraRounded({ x: C, y: F, size: q, getNeighbor: Z }) { - const Y = Z ? +Z(-1, 0) : 0, J = Z ? +Z(1, 0) : 0, ve = Z ? +Z(0, -1) : 0, pe = Z ? +Z(0, 1) : 0, Te = Y + J + ve + pe; - if (Te !== 0) - if (Te > 2 || Y && J || ve && pe) - this._basicSquare({ x: C, y: F, size: q, rotation: 0 }); + _drawExtraRounded({ x: F, y: C, size: q, getNeighbor: Z }) { + const Y = Z ? +Z(-1, 0) : 0, ue = Z ? +Z(1, 0) : 0, te = Z ? +Z(0, -1) : 0, pe = Z ? +Z(0, 1) : 0, ke = Y + ue + te + pe; + if (ke !== 0) + if (ke > 2 || Y && ue || te && pe) + this._basicSquare({ x: F, y: C, size: q, rotation: 0 }); else { - if (Te === 2) { + if (ke === 2) { let ge = 0; - return Y && ve ? ge = Math.PI / 2 : ve && J ? ge = Math.PI : J && pe && (ge = -Math.PI / 2), void this._basicCornerExtraRounded({ x: C, y: F, size: q, rotation: ge }); + return Y && te ? ge = Math.PI / 2 : te && ue ? ge = Math.PI : ue && pe && (ge = -Math.PI / 2), void this._basicCornerExtraRounded({ x: F, y: C, size: q, rotation: ge }); } - if (Te === 1) { + if (ke === 1) { let ge = 0; - return ve ? ge = Math.PI / 2 : J ? ge = Math.PI : pe && (ge = -Math.PI / 2), void this._basicSideRounded({ x: C, y: F, size: q, rotation: ge }); + return te ? ge = Math.PI / 2 : ue ? ge = Math.PI : pe && (ge = -Math.PI / 2), void this._basicSideRounded({ x: F, y: C, size: q, rotation: ge }); } } else - this._basicDot({ x: C, y: F, size: q, rotation: 0 }); + this._basicDot({ x: F, y: C, size: q, rotation: 0 }); } - _drawClassy({ x: C, y: F, size: q, getNeighbor: Z }) { - const Y = Z ? +Z(-1, 0) : 0, J = Z ? +Z(1, 0) : 0, ve = Z ? +Z(0, -1) : 0, pe = Z ? +Z(0, 1) : 0; - Y + J + ve + pe !== 0 ? Y || ve ? J || pe ? this._basicSquare({ x: C, y: F, size: q, rotation: 0 }) : this._basicCornerRounded({ x: C, y: F, size: q, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: C, y: F, size: q, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: C, y: F, size: q, rotation: Math.PI / 2 }); + _drawClassy({ x: F, y: C, size: q, getNeighbor: Z }) { + const Y = Z ? +Z(-1, 0) : 0, ue = Z ? +Z(1, 0) : 0, te = Z ? +Z(0, -1) : 0, pe = Z ? +Z(0, 1) : 0; + Y + ue + te + pe !== 0 ? Y || te ? ue || pe ? this._basicSquare({ x: F, y: C, size: q, rotation: 0 }) : this._basicCornerRounded({ x: F, y: C, size: q, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: F, y: C, size: q, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: F, y: C, size: q, rotation: Math.PI / 2 }); } - _drawClassyRounded({ x: C, y: F, size: q, getNeighbor: Z }) { - const Y = Z ? +Z(-1, 0) : 0, J = Z ? +Z(1, 0) : 0, ve = Z ? +Z(0, -1) : 0, pe = Z ? +Z(0, 1) : 0; - Y + J + ve + pe !== 0 ? Y || ve ? J || pe ? this._basicSquare({ x: C, y: F, size: q, rotation: 0 }) : this._basicCornerExtraRounded({ x: C, y: F, size: q, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: C, y: F, size: q, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: C, y: F, size: q, rotation: Math.PI / 2 }); + _drawClassyRounded({ x: F, y: C, size: q, getNeighbor: Z }) { + const Y = Z ? +Z(-1, 0) : 0, ue = Z ? +Z(1, 0) : 0, te = Z ? +Z(0, -1) : 0, pe = Z ? +Z(0, 1) : 0; + Y + ue + te + pe !== 0 ? Y || te ? ue || pe ? this._basicSquare({ x: F, y: C, size: q, rotation: 0 }) : this._basicCornerExtraRounded({ x: F, y: C, size: q, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: F, y: C, size: q, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: F, y: C, size: q, rotation: Math.PI / 2 }); } } const g = { dot: "dot", square: "square", extraRounded: "extra-rounded" }, _ = Object.values(g); class S { - constructor({ svg: C, type: F, window: q }) { - this._svg = C, this._type = F, this._window = q; + constructor({ svg: F, type: C, window: q }) { + this._svg = F, this._type = C, this._window = q; } - draw(C, F, q, Z) { + draw(F, C, q, Z) { let Y; switch (this._type) { case g.square: @@ -21298,78 +21305,78 @@ var H0 = { exports: {} }; default: Y = this._drawDot; } - Y.call(this, { x: C, y: F, size: q, rotation: Z }); + Y.call(this, { x: F, y: C, size: q, rotation: Z }); } - _rotateFigure({ x: C, y: F, size: q, rotation: Z = 0, draw: Y }) { - var J; - const ve = C + q / 2, pe = F + q / 2; - Y(), (J = this._element) === null || J === void 0 || J.setAttribute("transform", `rotate(${180 * Z / Math.PI},${ve},${pe})`); + _rotateFigure({ x: F, y: C, size: q, rotation: Z = 0, draw: Y }) { + var ue; + const te = F + q / 2, pe = C + q / 2; + Y(), (ue = this._element) === null || ue === void 0 || ue.setAttribute("transform", `rotate(${180 * Z / Math.PI},${te},${pe})`); } - _basicDot(C) { - const { size: F, x: q, y: Z } = C, Y = F / 7; - this._rotateFigure(Object.assign(Object.assign({}, C), { draw: () => { - this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${q + F / 2} ${Z}a ${F / 2} ${F / 2} 0 1 0 0.1 0zm 0 ${Y}a ${F / 2 - Y} ${F / 2 - Y} 0 1 1 -0.1 0Z`); + _basicDot(F) { + const { size: C, x: q, y: Z } = F, Y = C / 7; + this._rotateFigure(Object.assign(Object.assign({}, F), { draw: () => { + this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${q + C / 2} ${Z}a ${C / 2} ${C / 2} 0 1 0 0.1 0zm 0 ${Y}a ${C / 2 - Y} ${C / 2 - Y} 0 1 1 -0.1 0Z`); } })); } - _basicSquare(C) { - const { size: F, x: q, y: Z } = C, Y = F / 7; - this._rotateFigure(Object.assign(Object.assign({}, C), { draw: () => { - this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${q} ${Z}v ${F}h ${F}v ` + -F + `zM ${q + Y} ${Z + Y}h ` + (F - 2 * Y) + "v " + (F - 2 * Y) + "h " + (2 * Y - F) + "z"); + _basicSquare(F) { + const { size: C, x: q, y: Z } = F, Y = C / 7; + this._rotateFigure(Object.assign(Object.assign({}, F), { draw: () => { + this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${q} ${Z}v ${C}h ${C}v ` + -C + `zM ${q + Y} ${Z + Y}h ` + (C - 2 * Y) + "v " + (C - 2 * Y) + "h " + (2 * Y - C) + "z"); } })); } - _basicExtraRounded(C) { - const { size: F, x: q, y: Z } = C, Y = F / 7; - this._rotateFigure(Object.assign(Object.assign({}, C), { draw: () => { + _basicExtraRounded(F) { + const { size: C, x: q, y: Z } = F, Y = C / 7; + this._rotateFigure(Object.assign(Object.assign({}, F), { draw: () => { this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${q} ${Z + 2.5 * Y}v ` + 2 * Y + `a ${2.5 * Y} ${2.5 * Y}, 0, 0, 0, ${2.5 * Y} ${2.5 * Y}h ` + 2 * Y + `a ${2.5 * Y} ${2.5 * Y}, 0, 0, 0, ${2.5 * Y} ${2.5 * -Y}v ` + -2 * Y + `a ${2.5 * Y} ${2.5 * Y}, 0, 0, 0, ${2.5 * -Y} ${2.5 * -Y}h ` + -2 * Y + `a ${2.5 * Y} ${2.5 * Y}, 0, 0, 0, ${2.5 * -Y} ${2.5 * Y}M ${q + 2.5 * Y} ${Z + Y}h ` + 2 * Y + `a ${1.5 * Y} ${1.5 * Y}, 0, 0, 1, ${1.5 * Y} ${1.5 * Y}v ` + 2 * Y + `a ${1.5 * Y} ${1.5 * Y}, 0, 0, 1, ${1.5 * -Y} ${1.5 * Y}h ` + -2 * Y + `a ${1.5 * Y} ${1.5 * Y}, 0, 0, 1, ${1.5 * -Y} ${1.5 * -Y}v ` + -2 * Y + `a ${1.5 * Y} ${1.5 * Y}, 0, 0, 1, ${1.5 * Y} ${1.5 * -Y}`); } })); } - _drawDot({ x: C, y: F, size: q, rotation: Z }) { - this._basicDot({ x: C, y: F, size: q, rotation: Z }); + _drawDot({ x: F, y: C, size: q, rotation: Z }) { + this._basicDot({ x: F, y: C, size: q, rotation: Z }); } - _drawSquare({ x: C, y: F, size: q, rotation: Z }) { - this._basicSquare({ x: C, y: F, size: q, rotation: Z }); + _drawSquare({ x: F, y: C, size: q, rotation: Z }) { + this._basicSquare({ x: F, y: C, size: q, rotation: Z }); } - _drawExtraRounded({ x: C, y: F, size: q, rotation: Z }) { - this._basicExtraRounded({ x: C, y: F, size: q, rotation: Z }); + _drawExtraRounded({ x: F, y: C, size: q, rotation: Z }) { + this._basicExtraRounded({ x: F, y: C, size: q, rotation: Z }); } } const b = { dot: "dot", square: "square" }, A = Object.values(b); class y { - constructor({ svg: C, type: F, window: q }) { - this._svg = C, this._type = F, this._window = q; + constructor({ svg: F, type: C, window: q }) { + this._svg = F, this._type = C, this._window = q; } - draw(C, F, q, Z) { + draw(F, C, q, Z) { let Y; - Y = this._type === b.square ? this._drawSquare : this._drawDot, Y.call(this, { x: C, y: F, size: q, rotation: Z }); + Y = this._type === b.square ? this._drawSquare : this._drawDot, Y.call(this, { x: F, y: C, size: q, rotation: Z }); } - _rotateFigure({ x: C, y: F, size: q, rotation: Z = 0, draw: Y }) { - var J; - const ve = C + q / 2, pe = F + q / 2; - Y(), (J = this._element) === null || J === void 0 || J.setAttribute("transform", `rotate(${180 * Z / Math.PI},${ve},${pe})`); + _rotateFigure({ x: F, y: C, size: q, rotation: Z = 0, draw: Y }) { + var ue; + const te = F + q / 2, pe = C + q / 2; + Y(), (ue = this._element) === null || ue === void 0 || ue.setAttribute("transform", `rotate(${180 * Z / Math.PI},${te},${pe})`); } - _basicDot(C) { - const { size: F, x: q, y: Z } = C; - this._rotateFigure(Object.assign(Object.assign({}, C), { draw: () => { - this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(q + F / 2)), this._element.setAttribute("cy", String(Z + F / 2)), this._element.setAttribute("r", String(F / 2)); + _basicDot(F) { + const { size: C, x: q, y: Z } = F; + this._rotateFigure(Object.assign(Object.assign({}, F), { draw: () => { + this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(q + C / 2)), this._element.setAttribute("cy", String(Z + C / 2)), this._element.setAttribute("r", String(C / 2)); } })); } - _basicSquare(C) { - const { size: F, x: q, y: Z } = C; - this._rotateFigure(Object.assign(Object.assign({}, C), { draw: () => { - this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(q)), this._element.setAttribute("y", String(Z)), this._element.setAttribute("width", String(F)), this._element.setAttribute("height", String(F)); + _basicSquare(F) { + const { size: C, x: q, y: Z } = F; + this._rotateFigure(Object.assign(Object.assign({}, F), { draw: () => { + this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(q)), this._element.setAttribute("y", String(Z)), this._element.setAttribute("width", String(C)), this._element.setAttribute("height", String(C)); } })); } - _drawDot({ x: C, y: F, size: q, rotation: Z }) { - this._basicDot({ x: C, y: F, size: q, rotation: Z }); + _drawDot({ x: F, y: C, size: q, rotation: Z }) { + this._basicDot({ x: F, y: C, size: q, rotation: Z }); } - _drawSquare({ x: C, y: F, size: q, rotation: Z }) { - this._basicSquare({ x: C, y: F, size: q, rotation: Z }); + _drawSquare({ x: F, y: C, size: q, rotation: Z }) { + this._basicSquare({ x: F, y: C, size: q, rotation: Z }); } } const m = "circle", w = [[1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1]], E = [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0]]; class x { - constructor(C, F) { - this._roundSize = (q) => this._options.dotsOptions.roundSize ? Math.floor(q) : q, this._window = F, this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "svg"), this._element.setAttribute("width", String(C.width)), this._element.setAttribute("height", String(C.height)), this._element.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), C.dotsOptions.roundSize || this._element.setAttribute("shape-rendering", "crispEdges"), this._element.setAttribute("viewBox", `0 0 ${C.width} ${C.height}`), this._defs = this._window.document.createElementNS("http://www.w3.org/2000/svg", "defs"), this._element.appendChild(this._defs), this._imageUri = C.image, this._instanceId = x.instanceCount++, this._options = C; + constructor(F, C) { + this._roundSize = (q) => this._options.dotsOptions.roundSize ? Math.floor(q) : q, this._window = C, this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "svg"), this._element.setAttribute("width", String(F.width)), this._element.setAttribute("height", String(F.height)), this._element.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), F.dotsOptions.roundSize || this._element.setAttribute("shape-rendering", "crispEdges"), this._element.setAttribute("viewBox", `0 0 ${F.width} ${F.height}`), this._defs = this._window.document.createElementNS("http://www.w3.org/2000/svg", "defs"), this._element.appendChild(this._defs), this._imageUri = F.image, this._instanceId = x.instanceCount++, this._options = F; } get width() { return this._options.width; @@ -21380,268 +21387,268 @@ var H0 = { exports: {} }; getElement() { return this._element; } - async drawQR(C) { - const F = C.getModuleCount(), q = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, Z = this._options.shape === m ? q / Math.sqrt(2) : q, Y = this._roundSize(Z / F); - let J = { hideXDots: 0, hideYDots: 0, width: 0, height: 0 }; - if (this._qr = C, this._options.image) { + async drawQR(F) { + const C = F.getModuleCount(), q = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, Z = this._options.shape === m ? q / Math.sqrt(2) : q, Y = this._roundSize(Z / C); + let ue = { hideXDots: 0, hideYDots: 0, width: 0, height: 0 }; + if (this._qr = F, this._options.image) { if (await this.loadImage(), !this._image) return; - const { imageOptions: ve, qrOptions: pe } = this._options, Te = ve.imageSize * p[pe.errorCorrectionLevel], ge = Math.floor(Te * F * F); - J = function({ originalHeight: me, originalWidth: we, maxHiddenDots: ce, maxHiddenAxisDots: Se, dotSize: I }) { - const j = { x: 0, y: 0 }, ee = { x: 0, y: 0 }; - if (me <= 0 || we <= 0 || ce <= 0 || I <= 0) + const { imageOptions: te, qrOptions: pe } = this._options, ke = te.imageSize * p[pe.errorCorrectionLevel], ge = Math.floor(ke * C * C); + ue = function({ originalHeight: ve, originalWidth: we, maxHiddenDots: he, maxHiddenAxisDots: Se, dotSize: xe }) { + const $ = { x: 0, y: 0 }, K = { x: 0, y: 0 }; + if (ve <= 0 || we <= 0 || he <= 0 || xe <= 0) return { height: 0, width: 0, hideYDots: 0, hideXDots: 0 }; - const te = me / we; - return j.x = Math.floor(Math.sqrt(ce / te)), j.x <= 0 && (j.x = 1), Se && Se < j.x && (j.x = Se), j.x % 2 == 0 && j.x--, ee.x = j.x * I, j.y = 1 + 2 * Math.ceil((j.x * te - 1) / 2), ee.y = Math.round(ee.x * te), (j.y * j.x > ce || Se && Se < j.y) && (Se && Se < j.y ? (j.y = Se, j.y % 2 == 0 && j.x--) : j.y -= 2, ee.y = j.y * I, j.x = 1 + 2 * Math.ceil((j.y / te - 1) / 2), ee.x = Math.round(ee.y / te)), { height: ee.y, width: ee.x, hideYDots: j.y, hideXDots: j.x }; - }({ originalWidth: this._image.width, originalHeight: this._image.height, maxHiddenDots: ge, maxHiddenAxisDots: F - 14, dotSize: Y }); + const X = ve / we; + return $.x = Math.floor(Math.sqrt(he / X)), $.x <= 0 && ($.x = 1), Se && Se < $.x && ($.x = Se), $.x % 2 == 0 && $.x--, K.x = $.x * xe, $.y = 1 + 2 * Math.ceil(($.x * X - 1) / 2), K.y = Math.round(K.x * X), ($.y * $.x > he || Se && Se < $.y) && (Se && Se < $.y ? ($.y = Se, $.y % 2 == 0 && $.x--) : $.y -= 2, K.y = $.y * xe, $.x = 1 + 2 * Math.ceil(($.y / X - 1) / 2), K.x = Math.round(K.y / X)), { height: K.y, width: K.x, hideYDots: $.y, hideXDots: $.x }; + }({ originalWidth: this._image.width, originalHeight: this._image.height, maxHiddenDots: ge, maxHiddenAxisDots: C - 14, dotSize: Y }); } - this.drawBackground(), this.drawDots((ve, pe) => { - var Te, ge, me, we, ce, Se; - return !(this._options.imageOptions.hideBackgroundDots && ve >= (F - J.hideYDots) / 2 && ve < (F + J.hideYDots) / 2 && pe >= (F - J.hideXDots) / 2 && pe < (F + J.hideXDots) / 2 || ((Te = w[ve]) === null || Te === void 0 ? void 0 : Te[pe]) || ((ge = w[ve - F + 7]) === null || ge === void 0 ? void 0 : ge[pe]) || ((me = w[ve]) === null || me === void 0 ? void 0 : me[pe - F + 7]) || ((we = E[ve]) === null || we === void 0 ? void 0 : we[pe]) || ((ce = E[ve - F + 7]) === null || ce === void 0 ? void 0 : ce[pe]) || ((Se = E[ve]) === null || Se === void 0 ? void 0 : Se[pe - F + 7])); - }), this.drawCorners(), this._options.image && await this.drawImage({ width: J.width, height: J.height, count: F, dotSize: Y }); + this.drawBackground(), this.drawDots((te, pe) => { + var ke, ge, ve, we, he, Se; + return !(this._options.imageOptions.hideBackgroundDots && te >= (C - ue.hideYDots) / 2 && te < (C + ue.hideYDots) / 2 && pe >= (C - ue.hideXDots) / 2 && pe < (C + ue.hideXDots) / 2 || ((ke = w[te]) === null || ke === void 0 ? void 0 : ke[pe]) || ((ge = w[te - C + 7]) === null || ge === void 0 ? void 0 : ge[pe]) || ((ve = w[te]) === null || ve === void 0 ? void 0 : ve[pe - C + 7]) || ((we = E[te]) === null || we === void 0 ? void 0 : we[pe]) || ((he = E[te - C + 7]) === null || he === void 0 ? void 0 : he[pe]) || ((Se = E[te]) === null || Se === void 0 ? void 0 : Se[pe - C + 7])); + }), this.drawCorners(), this._options.image && await this.drawImage({ width: ue.width, height: ue.height, count: C, dotSize: Y }); } drawBackground() { - var C, F, q; + var F, C, q; const Z = this._element, Y = this._options; if (Z) { - const J = (C = Y.backgroundOptions) === null || C === void 0 ? void 0 : C.gradient, ve = (F = Y.backgroundOptions) === null || F === void 0 ? void 0 : F.color; - let pe = Y.height, Te = Y.width; - if (J || ve) { + const ue = (F = Y.backgroundOptions) === null || F === void 0 ? void 0 : F.gradient, te = (C = Y.backgroundOptions) === null || C === void 0 ? void 0 : C.color; + let pe = Y.height, ke = Y.width; + if (ue || te) { const ge = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"); - this._backgroundClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._backgroundClipPath.setAttribute("id", `clip-path-background-color-${this._instanceId}`), this._defs.appendChild(this._backgroundClipPath), !((q = Y.backgroundOptions) === null || q === void 0) && q.round && (pe = Te = Math.min(Y.width, Y.height), ge.setAttribute("rx", String(pe / 2 * Y.backgroundOptions.round))), ge.setAttribute("x", String(this._roundSize((Y.width - Te) / 2))), ge.setAttribute("y", String(this._roundSize((Y.height - pe) / 2))), ge.setAttribute("width", String(Te)), ge.setAttribute("height", String(pe)), this._backgroundClipPath.appendChild(ge), this._createColor({ options: J, color: ve, additionalRotation: 0, x: 0, y: 0, height: Y.height, width: Y.width, name: `background-color-${this._instanceId}` }); + this._backgroundClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._backgroundClipPath.setAttribute("id", `clip-path-background-color-${this._instanceId}`), this._defs.appendChild(this._backgroundClipPath), !((q = Y.backgroundOptions) === null || q === void 0) && q.round && (pe = ke = Math.min(Y.width, Y.height), ge.setAttribute("rx", String(pe / 2 * Y.backgroundOptions.round))), ge.setAttribute("x", String(this._roundSize((Y.width - ke) / 2))), ge.setAttribute("y", String(this._roundSize((Y.height - pe) / 2))), ge.setAttribute("width", String(ke)), ge.setAttribute("height", String(pe)), this._backgroundClipPath.appendChild(ge), this._createColor({ options: ue, color: te, additionalRotation: 0, x: 0, y: 0, height: Y.height, width: Y.width, name: `background-color-${this._instanceId}` }); } } } - drawDots(C) { - var F, q; + drawDots(F) { + var C, q; if (!this._qr) throw "QR code is not defined"; const Z = this._options, Y = this._qr.getModuleCount(); if (Y > Z.width || Y > Z.height) throw "The canvas is too small."; - const J = Math.min(Z.width, Z.height) - 2 * Z.margin, ve = Z.shape === m ? J / Math.sqrt(2) : J, pe = this._roundSize(ve / Y), Te = this._roundSize((Z.width - Y * pe) / 2), ge = this._roundSize((Z.height - Y * pe) / 2), me = new h({ svg: this._element, type: Z.dotsOptions.type, window: this._window }); - this._dotsClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._dotsClipPath.setAttribute("id", `clip-path-dot-color-${this._instanceId}`), this._defs.appendChild(this._dotsClipPath), this._createColor({ options: (F = Z.dotsOptions) === null || F === void 0 ? void 0 : F.gradient, color: Z.dotsOptions.color, additionalRotation: 0, x: 0, y: 0, height: Z.height, width: Z.width, name: `dot-color-${this._instanceId}` }); + const ue = Math.min(Z.width, Z.height) - 2 * Z.margin, te = Z.shape === m ? ue / Math.sqrt(2) : ue, pe = this._roundSize(te / Y), ke = this._roundSize((Z.width - Y * pe) / 2), ge = this._roundSize((Z.height - Y * pe) / 2), ve = new h({ svg: this._element, type: Z.dotsOptions.type, window: this._window }); + this._dotsClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._dotsClipPath.setAttribute("id", `clip-path-dot-color-${this._instanceId}`), this._defs.appendChild(this._dotsClipPath), this._createColor({ options: (C = Z.dotsOptions) === null || C === void 0 ? void 0 : C.gradient, color: Z.dotsOptions.color, additionalRotation: 0, x: 0, y: 0, height: Z.height, width: Z.width, name: `dot-color-${this._instanceId}` }); for (let we = 0; we < Y; we++) - for (let ce = 0; ce < Y; ce++) - C && !C(we, ce) || !((q = this._qr) === null || q === void 0) && q.isDark(we, ce) && (me.draw(Te + ce * pe, ge + we * pe, pe, (Se, I) => !(ce + Se < 0 || we + I < 0 || ce + Se >= Y || we + I >= Y) && !(C && !C(we + I, ce + Se)) && !!this._qr && this._qr.isDark(we + I, ce + Se)), me._element && this._dotsClipPath && this._dotsClipPath.appendChild(me._element)); + for (let he = 0; he < Y; he++) + F && !F(we, he) || !((q = this._qr) === null || q === void 0) && q.isDark(we, he) && (ve.draw(ke + he * pe, ge + we * pe, pe, (Se, xe) => !(he + Se < 0 || we + xe < 0 || he + Se >= Y || we + xe >= Y) && !(F && !F(we + xe, he + Se)) && !!this._qr && this._qr.isDark(we + xe, he + Se)), ve._element && this._dotsClipPath && this._dotsClipPath.appendChild(ve._element)); if (Z.shape === m) { - const we = this._roundSize((J / pe - Y) / 2), ce = Y + 2 * we, Se = Te - we * pe, I = ge - we * pe, j = [], ee = this._roundSize(ce / 2); - for (let te = 0; te < ce; te++) { - j[te] = []; - for (let se = 0; se < ce; se++) - te >= we - 1 && te <= ce - we && se >= we - 1 && se <= ce - we || Math.sqrt((te - ee) * (te - ee) + (se - ee) * (se - ee)) > ee ? j[te][se] = 0 : j[te][se] = this._qr.isDark(se - 2 * we < 0 ? se : se >= Y ? se - 2 * we : se - we, te - 2 * we < 0 ? te : te >= Y ? te - 2 * we : te - we) ? 1 : 0; + const we = this._roundSize((ue / pe - Y) / 2), he = Y + 2 * we, Se = ke - we * pe, xe = ge - we * pe, $ = [], K = this._roundSize(he / 2); + for (let X = 0; X < he; X++) { + $[X] = []; + for (let ie = 0; ie < he; ie++) + X >= we - 1 && X <= he - we && ie >= we - 1 && ie <= he - we || Math.sqrt((X - K) * (X - K) + (ie - K) * (ie - K)) > K ? $[X][ie] = 0 : $[X][ie] = this._qr.isDark(ie - 2 * we < 0 ? ie : ie >= Y ? ie - 2 * we : ie - we, X - 2 * we < 0 ? X : X >= Y ? X - 2 * we : X - we) ? 1 : 0; } - for (let te = 0; te < ce; te++) - for (let se = 0; se < ce; se++) - j[te][se] && (me.draw(Se + se * pe, I + te * pe, pe, (oe, _e) => { + for (let X = 0; X < he; X++) + for (let ie = 0; ie < he; ie++) + $[X][ie] && (ve.draw(Se + ie * pe, xe + X * pe, pe, (re, fe) => { var Ae; - return !!(!((Ae = j[te + _e]) === null || Ae === void 0) && Ae[se + oe]); - }), me._element && this._dotsClipPath && this._dotsClipPath.appendChild(me._element)); + return !!(!((Ae = $[X + fe]) === null || Ae === void 0) && Ae[ie + re]); + }), ve._element && this._dotsClipPath && this._dotsClipPath.appendChild(ve._element)); } } drawCorners() { if (!this._qr) throw "QR code is not defined"; - const C = this._element, F = this._options; - if (!C) + const F = this._element, C = this._options; + if (!F) throw "Element code is not defined"; - const q = this._qr.getModuleCount(), Z = Math.min(F.width, F.height) - 2 * F.margin, Y = F.shape === m ? Z / Math.sqrt(2) : Z, J = this._roundSize(Y / q), ve = 7 * J, pe = 3 * J, Te = this._roundSize((F.width - q * J) / 2), ge = this._roundSize((F.height - q * J) / 2); - [[0, 0, 0], [1, 0, Math.PI / 2], [0, 1, -Math.PI / 2]].forEach(([me, we, ce]) => { - var Se, I, j, ee, te, se, oe, _e, Ae, Be, ct, ze, Ee, Pe; - const Oe = Te + me * J * (q - 7), nt = ge + we * J * (q - 7); - let De = this._dotsClipPath, Ne = this._dotsClipPath; - if ((((Se = F.cornersSquareOptions) === null || Se === void 0 ? void 0 : Se.gradient) || ((I = F.cornersSquareOptions) === null || I === void 0 ? void 0 : I.color)) && (De = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), De.setAttribute("id", `clip-path-corners-square-color-${me}-${we}-${this._instanceId}`), this._defs.appendChild(De), this._cornersSquareClipPath = this._cornersDotClipPath = Ne = De, this._createColor({ options: (j = F.cornersSquareOptions) === null || j === void 0 ? void 0 : j.gradient, color: (ee = F.cornersSquareOptions) === null || ee === void 0 ? void 0 : ee.color, additionalRotation: ce, x: Oe, y: nt, height: ve, width: ve, name: `corners-square-color-${me}-${we}-${this._instanceId}` })), ((te = F.cornersSquareOptions) === null || te === void 0 ? void 0 : te.type) && _.includes(F.cornersSquareOptions.type)) { - const lt = new S({ svg: this._element, type: F.cornersSquareOptions.type, window: this._window }); - lt.draw(Oe, nt, ve, ce), lt._element && De && De.appendChild(lt._element); + const q = this._qr.getModuleCount(), Z = Math.min(C.width, C.height) - 2 * C.margin, Y = C.shape === m ? Z / Math.sqrt(2) : Z, ue = this._roundSize(Y / q), te = 7 * ue, pe = 3 * ue, ke = this._roundSize((C.width - q * ue) / 2), ge = this._roundSize((C.height - q * ue) / 2); + [[0, 0, 0], [1, 0, Math.PI / 2], [0, 1, -Math.PI / 2]].forEach(([ve, we, he]) => { + var Se, xe, $, K, X, ie, re, fe, Ae, Fe, Xe, Ze, _e, Le; + const Oe = ke + ve * ue * (q - 7), it = ge + we * ue * (q - 7); + let pt = this._dotsClipPath, Re = this._dotsClipPath; + if ((((Se = C.cornersSquareOptions) === null || Se === void 0 ? void 0 : Se.gradient) || ((xe = C.cornersSquareOptions) === null || xe === void 0 ? void 0 : xe.color)) && (pt = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), pt.setAttribute("id", `clip-path-corners-square-color-${ve}-${we}-${this._instanceId}`), this._defs.appendChild(pt), this._cornersSquareClipPath = this._cornersDotClipPath = Re = pt, this._createColor({ options: ($ = C.cornersSquareOptions) === null || $ === void 0 ? void 0 : $.gradient, color: (K = C.cornersSquareOptions) === null || K === void 0 ? void 0 : K.color, additionalRotation: he, x: Oe, y: it, height: te, width: te, name: `corners-square-color-${ve}-${we}-${this._instanceId}` })), ((X = C.cornersSquareOptions) === null || X === void 0 ? void 0 : X.type) && _.includes(C.cornersSquareOptions.type)) { + const He = new S({ svg: this._element, type: C.cornersSquareOptions.type, window: this._window }); + He.draw(Oe, it, te, he), He._element && pt && pt.appendChild(He._element); } else { - const lt = new h({ svg: this._element, type: ((se = F.cornersSquareOptions) === null || se === void 0 ? void 0 : se.type) || F.dotsOptions.type, window: this._window }); - for (let mt = 0; mt < w.length; mt++) - for (let Ze = 0; Ze < w[mt].length; Ze++) - !((oe = w[mt]) === null || oe === void 0) && oe[Ze] && (lt.draw(Oe + Ze * J, nt + mt * J, J, (Ot, dt) => { - var He; - return !!(!((He = w[mt + dt]) === null || He === void 0) && He[Ze + Ot]); - }), lt._element && De && De.appendChild(lt._element)); + const He = new h({ svg: this._element, type: ((ie = C.cornersSquareOptions) === null || ie === void 0 ? void 0 : ie.type) || C.dotsOptions.type, window: this._window }); + for (let at = 0; at < w.length; at++) + for (let We = 0; We < w[at].length; We++) + !((re = w[at]) === null || re === void 0) && re[We] && (He.draw(Oe + We * ue, it + at * ue, ue, ($t, ft) => { + var je; + return !!(!((je = w[at + ft]) === null || je === void 0) && je[We + $t]); + }), He._element && pt && pt.appendChild(He._element)); } - if ((((_e = F.cornersDotOptions) === null || _e === void 0 ? void 0 : _e.gradient) || ((Ae = F.cornersDotOptions) === null || Ae === void 0 ? void 0 : Ae.color)) && (Ne = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), Ne.setAttribute("id", `clip-path-corners-dot-color-${me}-${we}-${this._instanceId}`), this._defs.appendChild(Ne), this._cornersDotClipPath = Ne, this._createColor({ options: (Be = F.cornersDotOptions) === null || Be === void 0 ? void 0 : Be.gradient, color: (ct = F.cornersDotOptions) === null || ct === void 0 ? void 0 : ct.color, additionalRotation: ce, x: Oe + 2 * J, y: nt + 2 * J, height: pe, width: pe, name: `corners-dot-color-${me}-${we}-${this._instanceId}` })), ((ze = F.cornersDotOptions) === null || ze === void 0 ? void 0 : ze.type) && A.includes(F.cornersDotOptions.type)) { - const lt = new y({ svg: this._element, type: F.cornersDotOptions.type, window: this._window }); - lt.draw(Oe + 2 * J, nt + 2 * J, pe, ce), lt._element && Ne && Ne.appendChild(lt._element); + if ((((fe = C.cornersDotOptions) === null || fe === void 0 ? void 0 : fe.gradient) || ((Ae = C.cornersDotOptions) === null || Ae === void 0 ? void 0 : Ae.color)) && (Re = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), Re.setAttribute("id", `clip-path-corners-dot-color-${ve}-${we}-${this._instanceId}`), this._defs.appendChild(Re), this._cornersDotClipPath = Re, this._createColor({ options: (Fe = C.cornersDotOptions) === null || Fe === void 0 ? void 0 : Fe.gradient, color: (Xe = C.cornersDotOptions) === null || Xe === void 0 ? void 0 : Xe.color, additionalRotation: he, x: Oe + 2 * ue, y: it + 2 * ue, height: pe, width: pe, name: `corners-dot-color-${ve}-${we}-${this._instanceId}` })), ((Ze = C.cornersDotOptions) === null || Ze === void 0 ? void 0 : Ze.type) && A.includes(C.cornersDotOptions.type)) { + const He = new y({ svg: this._element, type: C.cornersDotOptions.type, window: this._window }); + He.draw(Oe + 2 * ue, it + 2 * ue, pe, he), He._element && Re && Re.appendChild(He._element); } else { - const lt = new h({ svg: this._element, type: ((Ee = F.cornersDotOptions) === null || Ee === void 0 ? void 0 : Ee.type) || F.dotsOptions.type, window: this._window }); - for (let mt = 0; mt < E.length; mt++) - for (let Ze = 0; Ze < E[mt].length; Ze++) - !((Pe = E[mt]) === null || Pe === void 0) && Pe[Ze] && (lt.draw(Oe + Ze * J, nt + mt * J, J, (Ot, dt) => { - var He; - return !!(!((He = E[mt + dt]) === null || He === void 0) && He[Ze + Ot]); - }), lt._element && Ne && Ne.appendChild(lt._element)); + const He = new h({ svg: this._element, type: ((_e = C.cornersDotOptions) === null || _e === void 0 ? void 0 : _e.type) || C.dotsOptions.type, window: this._window }); + for (let at = 0; at < E.length; at++) + for (let We = 0; We < E[at].length; We++) + !((Le = E[at]) === null || Le === void 0) && Le[We] && (He.draw(Oe + We * ue, it + at * ue, ue, ($t, ft) => { + var je; + return !!(!((je = E[at + ft]) === null || je === void 0) && je[We + $t]); + }), He._element && Re && Re.appendChild(He._element)); } }); } loadImage() { - return new Promise((C, F) => { + return new Promise((F, C) => { var q; const Z = this._options; if (!Z.image) - return F("Image is not defined"); + return C("Image is not defined"); if (!((q = Z.nodeCanvas) === null || q === void 0) && q.loadImage) Z.nodeCanvas.loadImage(Z.image).then((Y) => { - var J, ve; + var ue, te; if (this._image = Y, this._options.imageOptions.saveAsBlob) { - const pe = (J = Z.nodeCanvas) === null || J === void 0 ? void 0 : J.createCanvas(this._image.width, this._image.height); - (ve = pe == null ? void 0 : pe.getContext("2d")) === null || ve === void 0 || ve.drawImage(Y, 0, 0), this._imageUri = pe == null ? void 0 : pe.toDataURL(); + const pe = (ue = Z.nodeCanvas) === null || ue === void 0 ? void 0 : ue.createCanvas(this._image.width, this._image.height); + (te = pe == null ? void 0 : pe.getContext("2d")) === null || te === void 0 || te.drawImage(Y, 0, 0), this._imageUri = pe == null ? void 0 : pe.toDataURL(); } - C(); - }).catch(F); + F(); + }).catch(C); else { const Y = new this._window.Image(); typeof Z.imageOptions.crossOrigin == "string" && (Y.crossOrigin = Z.imageOptions.crossOrigin), this._image = Y, Y.onload = async () => { - this._options.imageOptions.saveAsBlob && (this._imageUri = await async function(J, ve) { + this._options.imageOptions.saveAsBlob && (this._imageUri = await async function(ue, te) { return new Promise((pe) => { - const Te = new ve.XMLHttpRequest(); - Te.onload = function() { - const ge = new ve.FileReader(); + const ke = new te.XMLHttpRequest(); + ke.onload = function() { + const ge = new te.FileReader(); ge.onloadend = function() { pe(ge.result); - }, ge.readAsDataURL(Te.response); - }, Te.open("GET", J), Te.responseType = "blob", Te.send(); + }, ge.readAsDataURL(ke.response); + }, ke.open("GET", ue), ke.responseType = "blob", ke.send(); }); - }(Z.image || "", this._window)), C(); + }(Z.image || "", this._window)), F(); }, Y.src = Z.image; } }); } - async drawImage({ width: C, height: F, count: q, dotSize: Z }) { - const Y = this._options, J = this._roundSize((Y.width - q * Z) / 2), ve = this._roundSize((Y.height - q * Z) / 2), pe = J + this._roundSize(Y.imageOptions.margin + (q * Z - C) / 2), Te = ve + this._roundSize(Y.imageOptions.margin + (q * Z - F) / 2), ge = C - 2 * Y.imageOptions.margin, me = F - 2 * Y.imageOptions.margin, we = this._window.document.createElementNS("http://www.w3.org/2000/svg", "image"); - we.setAttribute("href", this._imageUri || ""), we.setAttribute("xlink:href", this._imageUri || ""), we.setAttribute("x", String(pe)), we.setAttribute("y", String(Te)), we.setAttribute("width", `${ge}px`), we.setAttribute("height", `${me}px`), this._element.appendChild(we); + async drawImage({ width: F, height: C, count: q, dotSize: Z }) { + const Y = this._options, ue = this._roundSize((Y.width - q * Z) / 2), te = this._roundSize((Y.height - q * Z) / 2), pe = ue + this._roundSize(Y.imageOptions.margin + (q * Z - F) / 2), ke = te + this._roundSize(Y.imageOptions.margin + (q * Z - C) / 2), ge = F - 2 * Y.imageOptions.margin, ve = C - 2 * Y.imageOptions.margin, we = this._window.document.createElementNS("http://www.w3.org/2000/svg", "image"); + we.setAttribute("href", this._imageUri || ""), we.setAttribute("xlink:href", this._imageUri || ""), we.setAttribute("x", String(pe)), we.setAttribute("y", String(ke)), we.setAttribute("width", `${ge}px`), we.setAttribute("height", `${ve}px`), this._element.appendChild(we); } - _createColor({ options: C, color: F, additionalRotation: q, x: Z, y: Y, height: J, width: ve, name: pe }) { - const Te = ve > J ? ve : J, ge = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"); - if (ge.setAttribute("x", String(Z)), ge.setAttribute("y", String(Y)), ge.setAttribute("height", String(J)), ge.setAttribute("width", String(ve)), ge.setAttribute("clip-path", `url('#clip-path-${pe}')`), C) { - let me; - if (C.type === "radial") - me = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), me.setAttribute("id", pe), me.setAttribute("gradientUnits", "userSpaceOnUse"), me.setAttribute("fx", String(Z + ve / 2)), me.setAttribute("fy", String(Y + J / 2)), me.setAttribute("cx", String(Z + ve / 2)), me.setAttribute("cy", String(Y + J / 2)), me.setAttribute("r", String(Te / 2)); + _createColor({ options: F, color: C, additionalRotation: q, x: Z, y: Y, height: ue, width: te, name: pe }) { + const ke = te > ue ? te : ue, ge = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"); + if (ge.setAttribute("x", String(Z)), ge.setAttribute("y", String(Y)), ge.setAttribute("height", String(ue)), ge.setAttribute("width", String(te)), ge.setAttribute("clip-path", `url('#clip-path-${pe}')`), F) { + let ve; + if (F.type === "radial") + ve = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), ve.setAttribute("id", pe), ve.setAttribute("gradientUnits", "userSpaceOnUse"), ve.setAttribute("fx", String(Z + te / 2)), ve.setAttribute("fy", String(Y + ue / 2)), ve.setAttribute("cx", String(Z + te / 2)), ve.setAttribute("cy", String(Y + ue / 2)), ve.setAttribute("r", String(ke / 2)); else { - const we = ((C.rotation || 0) + q) % (2 * Math.PI), ce = (we + 2 * Math.PI) % (2 * Math.PI); - let Se = Z + ve / 2, I = Y + J / 2, j = Z + ve / 2, ee = Y + J / 2; - ce >= 0 && ce <= 0.25 * Math.PI || ce > 1.75 * Math.PI && ce <= 2 * Math.PI ? (Se -= ve / 2, I -= J / 2 * Math.tan(we), j += ve / 2, ee += J / 2 * Math.tan(we)) : ce > 0.25 * Math.PI && ce <= 0.75 * Math.PI ? (I -= J / 2, Se -= ve / 2 / Math.tan(we), ee += J / 2, j += ve / 2 / Math.tan(we)) : ce > 0.75 * Math.PI && ce <= 1.25 * Math.PI ? (Se += ve / 2, I += J / 2 * Math.tan(we), j -= ve / 2, ee -= J / 2 * Math.tan(we)) : ce > 1.25 * Math.PI && ce <= 1.75 * Math.PI && (I += J / 2, Se += ve / 2 / Math.tan(we), ee -= J / 2, j -= ve / 2 / Math.tan(we)), me = this._window.document.createElementNS("http://www.w3.org/2000/svg", "linearGradient"), me.setAttribute("id", pe), me.setAttribute("gradientUnits", "userSpaceOnUse"), me.setAttribute("x1", String(Math.round(Se))), me.setAttribute("y1", String(Math.round(I))), me.setAttribute("x2", String(Math.round(j))), me.setAttribute("y2", String(Math.round(ee))); + const we = ((F.rotation || 0) + q) % (2 * Math.PI), he = (we + 2 * Math.PI) % (2 * Math.PI); + let Se = Z + te / 2, xe = Y + ue / 2, $ = Z + te / 2, K = Y + ue / 2; + he >= 0 && he <= 0.25 * Math.PI || he > 1.75 * Math.PI && he <= 2 * Math.PI ? (Se -= te / 2, xe -= ue / 2 * Math.tan(we), $ += te / 2, K += ue / 2 * Math.tan(we)) : he > 0.25 * Math.PI && he <= 0.75 * Math.PI ? (xe -= ue / 2, Se -= te / 2 / Math.tan(we), K += ue / 2, $ += te / 2 / Math.tan(we)) : he > 0.75 * Math.PI && he <= 1.25 * Math.PI ? (Se += te / 2, xe += ue / 2 * Math.tan(we), $ -= te / 2, K -= ue / 2 * Math.tan(we)) : he > 1.25 * Math.PI && he <= 1.75 * Math.PI && (xe += ue / 2, Se += te / 2 / Math.tan(we), K -= ue / 2, $ -= te / 2 / Math.tan(we)), ve = this._window.document.createElementNS("http://www.w3.org/2000/svg", "linearGradient"), ve.setAttribute("id", pe), ve.setAttribute("gradientUnits", "userSpaceOnUse"), ve.setAttribute("x1", String(Math.round(Se))), ve.setAttribute("y1", String(Math.round(xe))), ve.setAttribute("x2", String(Math.round($))), ve.setAttribute("y2", String(Math.round(K))); } - C.colorStops.forEach(({ offset: we, color: ce }) => { + F.colorStops.forEach(({ offset: we, color: he }) => { const Se = this._window.document.createElementNS("http://www.w3.org/2000/svg", "stop"); - Se.setAttribute("offset", 100 * we + "%"), Se.setAttribute("stop-color", ce), me.appendChild(Se); - }), ge.setAttribute("fill", `url('#${pe}')`), this._defs.appendChild(me); + Se.setAttribute("offset", 100 * we + "%"), Se.setAttribute("stop-color", he), ve.appendChild(Se); + }), ge.setAttribute("fill", `url('#${pe}')`), this._defs.appendChild(ve); } else - F && ge.setAttribute("fill", F); + C && ge.setAttribute("fill", C); this._element.appendChild(ge); } } x.instanceCount = 0; - const k = x, $ = "canvas", M = {}; - for (let z = 0; z <= 40; z++) - M[z] = z; - const P = { type: $, shape: "square", width: 300, height: 300, data: "", margin: 0, qrOptions: { typeNumber: M[0], mode: void 0, errorCorrectionLevel: "Q" }, imageOptions: { saveAsBlob: !0, hideBackgroundDots: !0, imageSize: 0.4, crossOrigin: void 0, margin: 0 }, dotsOptions: { type: "square", color: "#000", roundSize: !0 }, backgroundOptions: { round: 0, color: "#fff" } }; - function B(z) { - const C = Object.assign({}, z); - if (!C.colorStops || !C.colorStops.length) + const k = x, R = "canvas", M = {}; + for (let U = 0; U <= 40; U++) + M[U] = U; + const P = { type: R, shape: "square", width: 300, height: 300, data: "", margin: 0, qrOptions: { typeNumber: M[0], mode: void 0, errorCorrectionLevel: "Q" }, imageOptions: { saveAsBlob: !0, hideBackgroundDots: !0, imageSize: 0.4, crossOrigin: void 0, margin: 0 }, dotsOptions: { type: "square", color: "#000", roundSize: !0 }, backgroundOptions: { round: 0, color: "#fff" } }; + function B(U) { + const F = Object.assign({}, U); + if (!F.colorStops || !F.colorStops.length) throw "Field 'colorStops' is required in gradient"; - return C.rotation ? C.rotation = Number(C.rotation) : C.rotation = 0, C.colorStops = C.colorStops.map((F) => Object.assign(Object.assign({}, F), { offset: Number(F.offset) })), C; + return F.rotation ? F.rotation = Number(F.rotation) : F.rotation = 0, F.colorStops = F.colorStops.map((C) => Object.assign(Object.assign({}, C), { offset: Number(C.offset) })), F; } - function T(z) { - const C = Object.assign({}, z); - return C.width = Number(C.width), C.height = Number(C.height), C.margin = Number(C.margin), C.imageOptions = Object.assign(Object.assign({}, C.imageOptions), { hideBackgroundDots: Boolean(C.imageOptions.hideBackgroundDots), imageSize: Number(C.imageOptions.imageSize), margin: Number(C.imageOptions.margin) }), C.margin > Math.min(C.width, C.height) && (C.margin = Math.min(C.width, C.height)), C.dotsOptions = Object.assign({}, C.dotsOptions), C.dotsOptions.gradient && (C.dotsOptions.gradient = B(C.dotsOptions.gradient)), C.cornersSquareOptions && (C.cornersSquareOptions = Object.assign({}, C.cornersSquareOptions), C.cornersSquareOptions.gradient && (C.cornersSquareOptions.gradient = B(C.cornersSquareOptions.gradient))), C.cornersDotOptions && (C.cornersDotOptions = Object.assign({}, C.cornersDotOptions), C.cornersDotOptions.gradient && (C.cornersDotOptions.gradient = B(C.cornersDotOptions.gradient))), C.backgroundOptions && (C.backgroundOptions = Object.assign({}, C.backgroundOptions), C.backgroundOptions.gradient && (C.backgroundOptions.gradient = B(C.backgroundOptions.gradient))), C; + function T(U) { + const F = Object.assign({}, U); + return F.width = Number(F.width), F.height = Number(F.height), F.margin = Number(F.margin), F.imageOptions = Object.assign(Object.assign({}, F.imageOptions), { hideBackgroundDots: Boolean(F.imageOptions.hideBackgroundDots), imageSize: Number(F.imageOptions.imageSize), margin: Number(F.imageOptions.margin) }), F.margin > Math.min(F.width, F.height) && (F.margin = Math.min(F.width, F.height)), F.dotsOptions = Object.assign({}, F.dotsOptions), F.dotsOptions.gradient && (F.dotsOptions.gradient = B(F.dotsOptions.gradient)), F.cornersSquareOptions && (F.cornersSquareOptions = Object.assign({}, F.cornersSquareOptions), F.cornersSquareOptions.gradient && (F.cornersSquareOptions.gradient = B(F.cornersSquareOptions.gradient))), F.cornersDotOptions && (F.cornersDotOptions = Object.assign({}, F.cornersDotOptions), F.cornersDotOptions.gradient && (F.cornersDotOptions.gradient = B(F.cornersDotOptions.gradient))), F.backgroundOptions && (F.backgroundOptions = Object.assign({}, F.backgroundOptions), F.backgroundOptions.gradient && (F.backgroundOptions.gradient = B(F.backgroundOptions.gradient))), F; } var D = n(873), V = n.n(D); - function K(z) { - if (!z) + function W(U) { + if (!U) throw new Error("Extension must be defined"); - z[0] === "." && (z = z.substring(1)); - const C = { bmp: "image/bmp", gif: "image/gif", ico: "image/vnd.microsoft.icon", jpeg: "image/jpeg", jpg: "image/jpeg", png: "image/png", svg: "image/svg+xml", tif: "image/tiff", tiff: "image/tiff", webp: "image/webp", pdf: "application/pdf" }[z.toLowerCase()]; - if (!C) - throw new Error(`Extension "${z}" is not supported`); - return C; + U[0] === "." && (U = U.substring(1)); + const F = { bmp: "image/bmp", gif: "image/gif", ico: "image/vnd.microsoft.icon", jpeg: "image/jpeg", jpg: "image/jpeg", png: "image/png", svg: "image/svg+xml", tif: "image/tiff", tiff: "image/tiff", webp: "image/webp", pdf: "application/pdf" }[U.toLowerCase()]; + if (!F) + throw new Error(`Extension "${U}" is not supported`); + return F; } class G { - constructor(C) { - C != null && C.jsdom ? this._window = new C.jsdom("", { resources: "usable" }).window : this._window = window, this._options = C ? T(u(P, C)) : P, this.update(); + constructor(F) { + F != null && F.jsdom ? this._window = new F.jsdom("", { resources: "usable" }).window : this._window = window, this._options = F ? T(u(P, F)) : P, this.update(); } - static _clearContainer(C) { - C && (C.innerHTML = ""); + static _clearContainer(F) { + F && (F.innerHTML = ""); } _setupSvg() { if (!this._qr) return; - const C = new k(this._options, this._window); - this._svg = C.getElement(), this._svgDrawingPromise = C.drawQR(this._qr).then(() => { - var F; - this._svg && ((F = this._extension) === null || F === void 0 || F.call(this, C.getElement(), this._options)); + const F = new k(this._options, this._window); + this._svg = F.getElement(), this._svgDrawingPromise = F.drawQR(this._qr).then(() => { + var C; + this._svg && ((C = this._extension) === null || C === void 0 || C.call(this, F.getElement(), this._options)); }); } _setupCanvas() { - var C, F; - this._qr && (!((C = this._options.nodeCanvas) === null || C === void 0) && C.createCanvas ? (this._nodeCanvas = this._options.nodeCanvas.createCanvas(this._options.width, this._options.height), this._nodeCanvas.width = this._options.width, this._nodeCanvas.height = this._options.height) : (this._domCanvas = document.createElement("canvas"), this._domCanvas.width = this._options.width, this._domCanvas.height = this._options.height), this._setupSvg(), this._canvasDrawingPromise = (F = this._svgDrawingPromise) === null || F === void 0 ? void 0 : F.then(() => { + var F, C; + this._qr && (!((F = this._options.nodeCanvas) === null || F === void 0) && F.createCanvas ? (this._nodeCanvas = this._options.nodeCanvas.createCanvas(this._options.width, this._options.height), this._nodeCanvas.width = this._options.width, this._nodeCanvas.height = this._options.height) : (this._domCanvas = document.createElement("canvas"), this._domCanvas.width = this._options.width, this._domCanvas.height = this._options.height), this._setupSvg(), this._canvasDrawingPromise = (C = this._svgDrawingPromise) === null || C === void 0 ? void 0 : C.then(() => { var q; if (!this._svg) return; - const Z = this._svg, Y = new this._window.XMLSerializer().serializeToString(Z), J = btoa(Y), ve = `data:${K("svg")};base64,${J}`; + const Z = this._svg, Y = new this._window.XMLSerializer().serializeToString(Z), ue = btoa(Y), te = `data:${W("svg")};base64,${ue}`; if (!((q = this._options.nodeCanvas) === null || q === void 0) && q.loadImage) - return this._options.nodeCanvas.loadImage(ve).then((pe) => { - var Te, ge; - pe.width = this._options.width, pe.height = this._options.height, (ge = (Te = this._nodeCanvas) === null || Te === void 0 ? void 0 : Te.getContext("2d")) === null || ge === void 0 || ge.drawImage(pe, 0, 0); + return this._options.nodeCanvas.loadImage(te).then((pe) => { + var ke, ge; + pe.width = this._options.width, pe.height = this._options.height, (ge = (ke = this._nodeCanvas) === null || ke === void 0 ? void 0 : ke.getContext("2d")) === null || ge === void 0 || ge.drawImage(pe, 0, 0); }); { const pe = new this._window.Image(); - return new Promise((Te) => { + return new Promise((ke) => { pe.onload = () => { - var ge, me; - (me = (ge = this._domCanvas) === null || ge === void 0 ? void 0 : ge.getContext("2d")) === null || me === void 0 || me.drawImage(pe, 0, 0), Te(); - }, pe.src = ve; + var ge, ve; + (ve = (ge = this._domCanvas) === null || ge === void 0 ? void 0 : ge.getContext("2d")) === null || ve === void 0 || ve.drawImage(pe, 0, 0), ke(); + }, pe.src = te; }); } })); } - async _getElement(C = "png") { + async _getElement(F = "png") { if (!this._qr) throw "QR code is empty"; - return C.toLowerCase() === "svg" ? (this._svg && this._svgDrawingPromise || this._setupSvg(), await this._svgDrawingPromise, this._svg) : ((this._domCanvas || this._nodeCanvas) && this._canvasDrawingPromise || this._setupCanvas(), await this._canvasDrawingPromise, this._domCanvas || this._nodeCanvas); + return F.toLowerCase() === "svg" ? (this._svg && this._svgDrawingPromise || this._setupSvg(), await this._svgDrawingPromise, this._svg) : ((this._domCanvas || this._nodeCanvas) && this._canvasDrawingPromise || this._setupCanvas(), await this._canvasDrawingPromise, this._domCanvas || this._nodeCanvas); } - update(C) { - G._clearContainer(this._container), this._options = C ? T(u(this._options, C)) : this._options, this._options.data && (this._qr = V()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || function(F) { + update(F) { + G._clearContainer(this._container), this._options = F ? T(u(this._options, F)) : this._options, this._options.data && (this._qr = V()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || function(C) { switch (!0) { - case /^[0-9]*$/.test(F): + case /^[0-9]*$/.test(C): return "Numeric"; - case /^[0-9A-Z $%*+\-./:]*$/.test(F): + case /^[0-9A-Z $%*+\-./:]*$/.test(C): return "Alphanumeric"; default: return "Byte"; } - }(this._options.data)), this._qr.make(), this._options.type === $ ? this._setupCanvas() : this._setupSvg(), this.append(this._container)); + }(this._options.data)), this._qr.make(), this._options.type === R ? this._setupCanvas() : this._setupSvg(), this.append(this._container)); } - append(C) { - if (C) { - if (typeof C.appendChild != "function") + append(F) { + if (F) { + if (typeof F.appendChild != "function") throw "Container should be a single DOM node"; - this._options.type === $ ? this._domCanvas && C.appendChild(this._domCanvas) : this._svg && C.appendChild(this._svg), this._container = C; + this._options.type === R ? this._domCanvas && F.appendChild(this._domCanvas) : this._svg && F.appendChild(this._svg), this._container = F; } } - applyExtension(C) { - if (!C) + applyExtension(F) { + if (!F) throw "Extension function should be defined."; - this._extension = C, this.update(); + this._extension = F, this.update(); } deleteExtension() { this._extension = void 0, this.update(); } - async getRawData(C = "png") { + async getRawData(F = "png") { if (!this._qr) throw "QR code is empty"; - const F = await this._getElement(C), q = K(C); - if (!F) + const C = await this._getElement(F), q = W(F); + if (!C) return null; - if (C.toLowerCase() === "svg") { + if (F.toLowerCase() === "svg") { const Z = `\r -${new this._window.XMLSerializer().serializeToString(F)}`; +${new this._window.XMLSerializer().serializeToString(C)}`; return typeof Blob > "u" || this._options.jsdom ? Buffer.from(Z) : new Blob([Z], { type: q }); } return new Promise((Z) => { - const Y = F; + const Y = C; if ("toBuffer" in Y) if (q === "image/png") Z(Y.toBuffer(q)); @@ -21656,28 +21663,28 @@ ${new this._window.XMLSerializer().serializeToString(F)}`; "toBlob" in Y && Y.toBlob(Z, q, 1); }); } - async download(C) { + async download(F) { if (!this._qr) throw "QR code is empty"; if (typeof Blob > "u") throw "Cannot download in Node.js, call getRawData instead."; - let F = "png", q = "qr"; - typeof C == "string" ? (F = C, console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")) : typeof C == "object" && C !== null && (C.name && (q = C.name), C.extension && (F = C.extension)); - const Z = await this._getElement(F); + let C = "png", q = "qr"; + typeof F == "string" ? (C = F, console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")) : typeof F == "object" && F !== null && (F.name && (q = F.name), F.extension && (C = F.extension)); + const Z = await this._getElement(C); if (Z) - if (F.toLowerCase() === "svg") { + if (C.toLowerCase() === "svg") { let Y = new XMLSerializer().serializeToString(Z); Y = `\r -` + Y, d(`data:${K(F)};charset=utf-8,${encodeURIComponent(Y)}`, `${q}.svg`); +` + Y, d(`data:${W(C)};charset=utf-8,${encodeURIComponent(Y)}`, `${q}.svg`); } else - d(Z.toDataURL(K(F)), `${q}.${F}`); + d(Z.toDataURL(W(C)), `${q}.${C}`); } } - const R = G; + const I = G; })(), a.default; })()); })(H0); -const bI = /* @__PURE__ */ l2(H0.exports), _I = Ve({ +const bI = /* @__PURE__ */ l2(H0.exports), _I = Be({ name: "QrCodeBox", data() { return { @@ -21718,7 +21725,7 @@ const bI = /* @__PURE__ */ l2(H0.exports), _I = Ve({ function AI(e, t, i, r, n, a) { return H(), ae("div", wI, null, 512); } -const z0 = /* @__PURE__ */ je(_I, [["render", AI]]); +const z0 = /* @__PURE__ */ Ve(_I, [["render", AI]]); const qv = { date: "YYYY-MM-DD", month: "YYYY-MM", @@ -21922,7 +21929,7 @@ Bt.component("FcDataSelect", p0); Bt.component("FcMarkdown", f0); Bt.component("FcId", Xy); Bt.loadjs = kn; -const xI = Ve({ +const xI = Be({ name: "StepFormView", props: { stepsProps: Object, @@ -21973,11 +21980,11 @@ const xI = Ve({ } }), TI = { class: "_fd-step-form" }; function kI(e, t, i, r, n, a) { - const s = ne("van-step"), u = ne("van-steps"), d = ne("van-button"), p = ne("van-col"), h = ne("van-row"); + const s = ee("van-step"), u = ee("van-steps"), d = ee("van-button"), p = ee("van-col"), h = ee("van-row"); return H(), ae("div", TI, [ - W(u, jt({ active: e.active }, e.stepsProps), { + z(u, jt({ active: e.active }, e.stepsProps), { default: N(() => [ - (H(!0), ae(Me, null, We(e.stepItemRef, (g, _) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.stepItemRef, (g, _) => (H(), me(s, { key: g.id, onClick: vt((S) => e.change(_), ["stop"]) }, { @@ -21990,14 +21997,14 @@ function kI(e, t, i, r, n, a) { _: 1 }, 16, ["active"]), kt(e.$slots, "default"), - W(h, null, { + z(h, null, { default: N(() => [ - W(p, { + z(p, { span: 24, style: { display: "flex", "justify-content": "flex-end", padding: "15px" } }, { default: N(() => [ - e.active > 0 ? (H(), he(d, { + e.active > 0 ? (H(), me(d, { key: 0, block: "", size: "small", @@ -22007,8 +22014,8 @@ function kI(e, t, i, r, n, a) { be(le(e.formCreateInject.t("prevStep") || "\u4E0A\u4E00\u6B65"), 1) ]), _: 1 - }, 8, ["onClick"])) : ke("", !0), - e.active < e.stepItemRef.length - 1 ? (H(), he(d, { + }, 8, ["onClick"])) : Te("", !0), + e.active < e.stepItemRef.length - 1 ? (H(), me(d, { key: 1, block: "", size: "small", @@ -22019,7 +22026,7 @@ function kI(e, t, i, r, n, a) { be(le(e.formCreateInject.t("nextStep") || "\u4E0B\u4E00\u6B65"), 1) ]), _: 1 - }, 8, ["onClick"])) : ke("", !0) + }, 8, ["onClick"])) : Te("", !0) ]), _: 1 }) @@ -22028,8 +22035,8 @@ function kI(e, t, i, r, n, a) { }) ]); } -const K0 = /* @__PURE__ */ je(xI, [["render", kI]]); -const OI = Ve({ +const K0 = /* @__PURE__ */ Ve(xI, [["render", kI]]); +const OI = Be({ name: "StepFormItemView", props: { title: String, @@ -22051,15 +22058,15 @@ const OI = Ve({ }), $I = { class: "_fd-step-form-item" }; function RI(e, t, i, r, n, a) { return H(), ae("div", $I, [ - bn(X("div", null, [ + bn(J("div", null, [ kt(e.$slots, "default") ], 512), [ [Sn, e.stepForm.activeId === e.formCreateInject.rule._fc_id] ]) ]); } -const Y0 = /* @__PURE__ */ je(OI, [["render", RI]]); -const DI = Ve({ +const Y0 = /* @__PURE__ */ Ve(OI, [["render", RI]]); +const DI = Be({ name: "FcPopup", inject: ["designer"], inheritAttrs: !1, @@ -22080,19 +22087,19 @@ const DI = Ve({ } }), II = { class: "_fd-popup-title" }, FI = { class: "_fd-popup-content" }, PI = { class: "_fd-popup-footer" }; function MI(e, t, i, r, n, a) { - const s = ne("van-button"); + const s = ee("van-button"); return H(), ae("div", { class: "van-popup van-popup--bottom _fd-popup", style: wn(`--fc-dialog-height:${e.dragConHeight - 23}px;`) }, [ - t[0] || (t[0] = X("i", { class: "van-badge__wrapper van-icon van-icon-cross van-popup__close-icon van-popup__close-icon--top-right van-haptics-feedback" }, null, -1)), - X("div", II, le(e.title), 1), - X("div", FI, [ + t[0] || (t[0] = J("i", { class: "van-badge__wrapper van-icon van-icon-cross van-popup__close-icon van-popup__close-icon--top-right van-haptics-feedback" }, null, -1)), + J("div", II, le(e.title), 1), + J("div", FI, [ kt(e.$slots, "default") ]), - X("div", PI, [ + J("div", PI, [ e.footer !== !1 ? (H(), ae(Me, { key: 0 }, [ - W(s, { + z(s, { block: "", size: "small", type: "primary", @@ -22103,7 +22110,7 @@ function MI(e, t, i, r, n, a) { ]), _: 1 }), - W(s, { + z(s, { block: "", size: "small", class: "fc-clock", @@ -22114,11 +22121,11 @@ function MI(e, t, i, r, n, a) { ]), _: 1 }) - ], 64)) : ke("", !0) + ], 64)) : Te("", !0) ]) ], 4); } -const _c = /* @__PURE__ */ je(DI, [["render", MI]]), LI = Bt, qo = Bt.factory(); +const _c = /* @__PURE__ */ Ve(DI, [["render", MI]]), LI = Bt, qo = Bt.factory(); G0(qo); qo.setDriver("elm", { parsers: { @@ -22162,7 +22169,7 @@ var to = { exports: {} }; (function(i, r) { e.exports = r(); })(Lc, function() { - var i = navigator.userAgent, r = navigator.platform, n = /gecko\/\d/i.test(i), a = /MSIE \d/.test(i), s = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i), u = /Edge\/(\d+)/.exec(i), d = a || s || u, p = d && (a ? document.documentMode || 6 : +(u || s)[1]), h = !u && /WebKit\//.test(i), g = h && /Qt\/\d+\.\d+/.test(i), _ = !u && /Chrome\/(\d+)/.exec(i), S = _ && +_[1], b = /Opera\//.test(i), A = /Apple Computer/.test(navigator.vendor), y = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i), m = /PhantomJS/.test(i), w = A && (/Mobile\/\w+/.test(i) || navigator.maxTouchPoints > 2), E = /Android/.test(i), x = w || E || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i), k = w || /Mac/.test(r), $ = /\bCrOS\b/.test(i), M = /win/i.test(r), P = b && i.match(/Version\/(\d*\.\d*)/); + var i = navigator.userAgent, r = navigator.platform, n = /gecko\/\d/i.test(i), a = /MSIE \d/.test(i), s = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i), u = /Edge\/(\d+)/.exec(i), d = a || s || u, p = d && (a ? document.documentMode || 6 : +(u || s)[1]), h = !u && /WebKit\//.test(i), g = h && /Qt\/\d+\.\d+/.test(i), _ = !u && /Chrome\/(\d+)/.exec(i), S = _ && +_[1], b = /Opera\//.test(i), A = /Apple Computer/.test(navigator.vendor), y = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i), m = /PhantomJS/.test(i), w = A && (/Mobile\/\w+/.test(i) || navigator.maxTouchPoints > 2), E = /Android/.test(i), x = w || E || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i), k = w || /Mac/.test(r), R = /\bCrOS\b/.test(i), M = /win/i.test(r), P = b && i.match(/Version\/(\d*\.\d*)/); P && (P = Number(P[1])), P && P >= 15 && (b = !1, h = !0); var B = k && (g || b && (P == null || P < 12.11)), T = n || d && p >= 9; function D(o) { @@ -22175,15 +22182,15 @@ var to = { exports: {} }; o.className = c.slice(0, f.index) + (v ? f[1] + v : ""); } }; - function K(o) { + function W(o) { for (var l = o.childNodes.length; l > 0; --l) o.removeChild(o.firstChild); return o; } function G(o, l) { - return K(o).appendChild(l); + return W(o).appendChild(l); } - function R(o, l, c, f) { + function I(o, l, c, f) { var v = document.createElement(o); if (c && (v.className = c), f && (v.style.cssText = f), typeof l == "string") v.appendChild(document.createTextNode(l)); @@ -22192,15 +22199,15 @@ var to = { exports: {} }; v.appendChild(l[O]); return v; } - function z(o, l, c, f) { - var v = R(o, l, c, f); + function U(o, l, c, f) { + var v = I(o, l, c, f); return v.setAttribute("role", "presentation"), v; } - var C; - document.createRange ? C = function(o, l, c, f) { + var F; + document.createRange ? F = function(o, l, c, f) { var v = document.createRange(); return v.setEnd(f || o, c), v.setStart(o, l), v; - } : C = function(o, l, c) { + } : F = function(o, l, c) { var f = document.body.createTextRange(); try { f.moveToElementText(o.parentNode); @@ -22209,7 +22216,7 @@ var to = { exports: {} }; } return f.collapse(!0), f.moveEnd("character", c), f.moveStart("character", l), f; }; - function F(o, l) { + function C(o, l) { if (l.nodeType == 3 && (l = l.parentNode), o.contains) return o.contains(l); do @@ -22237,24 +22244,24 @@ var to = { exports: {} }; c[f] && !D(c[f]).test(l) && (l += " " + c[f]); return l; } - var J = function(o) { + var ue = function(o) { o.select(); }; - w ? J = function(o) { + w ? ue = function(o) { o.selectionStart = 0, o.selectionEnd = o.value.length; - } : d && (J = function(o) { + } : d && (ue = function(o) { try { o.select(); } catch { } }); - function ve(o) { + function te(o) { return o.display.wrapper.ownerDocument; } function pe(o) { - return ve(o).defaultView; + return te(o).defaultView; } - function Te(o) { + function ke(o) { var l = Array.prototype.slice.call(arguments, 1); return function() { return o.apply(null, l); @@ -22266,17 +22273,17 @@ var to = { exports: {} }; o.hasOwnProperty(f) && (c !== !1 || !l.hasOwnProperty(f)) && (l[f] = o[f]); return l; } - function me(o, l, c, f, v) { + function ve(o, l, c, f, v) { l == null && (l = o.search(/[^\s\u00a0]/), l == -1 && (l = o.length)); for (var O = f || 0, L = v || 0; ; ) { - var U = o.indexOf(" ", O); - if (U < 0 || U >= l) + var j = o.indexOf(" ", O); + if (j < 0 || j >= l) return L + (l - O); - L += U - O, L += c - L % c, O = U + 1; + L += j - O, L += c - L % c, O = j + 1; } } var we = function() { - this.id = null, this.f = null, this.time = 0, this.handler = Te(this.onTimeout, this); + this.id = null, this.f = null, this.time = 0, this.handler = ke(this.onTimeout, this); }; we.prototype.onTimeout = function(o) { o.id = 0, o.time <= +new Date() ? o.f() : setTimeout(o.handler, o.time - +new Date()); @@ -22285,16 +22292,16 @@ var to = { exports: {} }; var c = +new Date() + o; (!this.id || c < this.time) && (clearTimeout(this.id), this.id = setTimeout(this.handler, o), this.time = c); }; - function ce(o, l) { + function he(o, l) { for (var c = 0; c < o.length; ++c) if (o[c] == l) return c; return -1; } - var Se = 50, I = { toString: function() { + var Se = 50, xe = { toString: function() { return "CodeMirror.Pass"; - } }, j = { scroll: !1 }, ee = { origin: "*mouse" }, te = { origin: "+move" }; - function se(o, l, c) { + } }, $ = { scroll: !1 }, K = { origin: "*mouse" }, X = { origin: "+move" }; + function ie(o, l, c) { for (var f = 0, v = 0; ; ) { var O = o.indexOf(" ", f); O == -1 && (O = o.length); @@ -22305,54 +22312,54 @@ var to = { exports: {} }; return f; } } - var oe = [""]; - function _e(o) { - for (; oe.length <= o; ) - oe.push(Ae(oe) + " "); - return oe[o]; + var re = [""]; + function fe(o) { + for (; re.length <= o; ) + re.push(Ae(re) + " "); + return re[o]; } function Ae(o) { return o[o.length - 1]; } - function Be(o, l) { + function Fe(o, l) { for (var c = [], f = 0; f < o.length; f++) c[f] = l(o[f], f); return c; } - function ct(o, l, c) { + function Xe(o, l, c) { for (var f = 0, v = c(l); f < o.length && c(o[f]) <= v; ) f++; o.splice(f, 0, l); } - function ze() { + function Ze() { } - function Ee(o, l) { + function _e(o, l) { var c; - return Object.create ? c = Object.create(o) : (ze.prototype = o, c = new ze()), l && ge(l, c), c; + return Object.create ? c = Object.create(o) : (Ze.prototype = o, c = new Ze()), l && ge(l, c), c; } - var Pe = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; + var Le = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; function Oe(o) { - return /\w/.test(o) || o > "\x80" && (o.toUpperCase() != o.toLowerCase() || Pe.test(o)); + return /\w/.test(o) || o > "\x80" && (o.toUpperCase() != o.toLowerCase() || Le.test(o)); } - function nt(o, l) { + function it(o, l) { return l ? l.source.indexOf("\\w") > -1 && Oe(o) ? !0 : l.test(o) : Oe(o); } - function De(o) { + function pt(o) { for (var l in o) if (o.hasOwnProperty(l) && o[l]) return !1; return !0; } - var Ne = /[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/; - function lt(o) { - return o.charCodeAt(0) >= 768 && Ne.test(o); + var Re = /[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/; + function He(o) { + return o.charCodeAt(0) >= 768 && Re.test(o); } - function mt(o, l, c) { - for (; (c < 0 ? l > 0 : l < o.length) && lt(o.charAt(l)); ) + function at(o, l, c) { + for (; (c < 0 ? l > 0 : l < o.length) && He(o.charAt(l)); ) l += c; return l; } - function Ze(o, l, c) { + function We(o, l, c) { for (var f = l > c ? -1 : 1; ; ) { if (l == c) return l; @@ -22362,7 +22369,7 @@ var to = { exports: {} }; o(O) ? c = O : l = O + f; } } - function Ot(o, l, c, f) { + function $t(o, l, c, f) { if (!o) return f(l, c, "ltr", 0); for (var v = !1, O = 0; O < o.length; ++O) { @@ -22371,96 +22378,96 @@ var to = { exports: {} }; } v || f(l, c, "ltr"); } - var dt = null; - function He(o, l, c) { + var ft = null; + function je(o, l, c) { var f; - dt = null; + ft = null; for (var v = 0; v < o.length; ++v) { var O = o[v]; if (O.from < l && O.to > l) return v; - O.to == l && (O.from != O.to && c == "before" ? f = v : dt = v), O.from == l && (O.from != O.to && c != "before" ? f = v : dt = v); + O.to == l && (O.from != O.to && c == "before" ? f = v : ft = v), O.from == l && (O.from != O.to && c != "before" ? f = v : ft = v); } - return f != null ? f : dt; + return f != null ? f : ft; } var Je = function() { var o = "bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN", l = "nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111"; - function c(ie) { - return ie <= 247 ? o.charAt(ie) : 1424 <= ie && ie <= 1524 ? "R" : 1536 <= ie && ie <= 1785 ? l.charAt(ie - 1536) : 1774 <= ie && ie <= 2220 ? "r" : 8192 <= ie && ie <= 8203 ? "w" : ie == 8204 ? "b" : "L"; + function c(ne) { + return ne <= 247 ? o.charAt(ne) : 1424 <= ne && ne <= 1524 ? "R" : 1536 <= ne && ne <= 1785 ? l.charAt(ne - 1536) : 1774 <= ne && ne <= 2220 ? "r" : 8192 <= ne && ne <= 8203 ? "w" : ne == 8204 ? "b" : "L"; } - var f = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/, v = /[stwN]/, O = /[LRr]/, L = /[Lb1n]/, U = /[1n]/; - function Q(ie, ue, de) { - this.level = ie, this.from = ue, this.to = de; + var f = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/, v = /[stwN]/, O = /[LRr]/, L = /[Lb1n]/, j = /[1n]/; + function Q(ne, se, de) { + this.level = ne, this.from = se, this.to = de; } - return function(ie, ue) { - var de = ue == "ltr" ? "L" : "R"; - if (ie.length == 0 || ue == "ltr" && !f.test(ie)) + return function(ne, se) { + var de = se == "ltr" ? "L" : "R"; + if (ne.length == 0 || se == "ltr" && !f.test(ne)) return !1; - for (var xe = ie.length, Ce = [], Ie = 0; Ie < xe; ++Ie) - Ce.push(c(ie.charCodeAt(Ie))); - for (var Le = 0, Ue = de; Le < xe; ++Le) { - var Ye = Ce[Le]; - Ye == "m" ? Ce[Le] = Ue : Ue = Ye; + for (var Ee = ne.length, Ce = [], Ie = 0; Ie < Ee; ++Ie) + Ce.push(c(ne.charCodeAt(Ie))); + for (var Ne = 0, Ue = de; Ne < Ee; ++Ne) { + var Ye = Ce[Ne]; + Ye == "m" ? Ce[Ne] = Ue : Ue = Ye; } - for (var tt = 0, Qe = de; tt < xe; ++tt) { - var rt = Ce[tt]; - rt == "1" && Qe == "r" ? Ce[tt] = "n" : O.test(rt) && (Qe = rt, rt == "r" && (Ce[tt] = "R")); + for (var nt = 0, Qe = de; nt < Ee; ++nt) { + var ot = Ce[nt]; + ot == "1" && Qe == "r" ? Ce[nt] = "n" : O.test(ot) && (Qe = ot, ot == "r" && (Ce[nt] = "R")); } - for (var ht = 1, ft = Ce[0]; ht < xe - 1; ++ht) { - var Et = Ce[ht]; - Et == "+" && ft == "1" && Ce[ht + 1] == "1" ? Ce[ht] = "1" : Et == "," && ft == Ce[ht + 1] && (ft == "1" || ft == "n") && (Ce[ht] = ft), ft = Et; + for (var mt = 1, ct = Ce[0]; mt < Ee - 1; ++mt) { + var Et = Ce[mt]; + Et == "+" && ct == "1" && Ce[mt + 1] == "1" ? Ce[mt] = "1" : Et == "," && ct == Ce[mt + 1] && (ct == "1" || ct == "n") && (Ce[mt] = ct), ct = Et; } - for (var Vt = 0; Vt < xe; ++Vt) { + for (var Vt = 0; Vt < Ee; ++Vt) { var vn = Ce[Vt]; if (vn == ",") Ce[Vt] = "N"; else if (vn == "%") { var Jt = void 0; - for (Jt = Vt + 1; Jt < xe && Ce[Jt] == "%"; ++Jt) + for (Jt = Vt + 1; Jt < Ee && Ce[Jt] == "%"; ++Jt) ; - for (var Gn = Vt && Ce[Vt - 1] == "!" || Jt < xe && Ce[Jt] == "1" ? "1" : "N", Bn = Vt; Bn < Jt; ++Bn) + for (var Gn = Vt && Ce[Vt - 1] == "!" || Jt < Ee && Ce[Jt] == "1" ? "1" : "N", Bn = Vt; Bn < Jt; ++Bn) Ce[Bn] = Gn; Vt = Jt - 1; } } - for (var ln = 0, Vn = de; ln < xe; ++ln) { + for (var ln = 0, Vn = de; ln < Ee; ++ln) { var An = Ce[ln]; Vn == "L" && An == "1" ? Ce[ln] = "L" : O.test(An) && (Vn = An); } - for (var dn = 0; dn < xe; ++dn) + for (var dn = 0; dn < Ee; ++dn) if (v.test(Ce[dn])) { var sn = void 0; - for (sn = dn + 1; sn < xe && v.test(Ce[sn]); ++sn) + for (sn = dn + 1; sn < Ee && v.test(Ce[sn]); ++sn) ; - for (var qt = (dn ? Ce[dn - 1] : de) == "L", jn = (sn < xe ? Ce[sn] : de) == "L", So = qt == jn ? qt ? "L" : "R" : de, Ar = dn; Ar < sn; ++Ar) + for (var qt = (dn ? Ce[dn - 1] : de) == "L", jn = (sn < Ee ? Ce[sn] : de) == "L", So = qt == jn ? qt ? "L" : "R" : de, Ar = dn; Ar < sn; ++Ar) Ce[Ar] = So; dn = sn - 1; } - for (var xn = [], Mi, gn = 0; gn < xe; ) + for (var xn = [], Mi, gn = 0; gn < Ee; ) if (L.test(Ce[gn])) { var Sd = gn; - for (++gn; gn < xe && L.test(Ce[gn]); ++gn) + for (++gn; gn < Ee && L.test(Ce[gn]); ++gn) ; xn.push(new Q(0, Sd, gn)); } else { - var er = gn, Vr = xn.length, jr = ue == "rtl" ? 1 : 0; - for (++gn; gn < xe && Ce[gn] != "L"; ++gn) + var er = gn, Vr = xn.length, jr = se == "rtl" ? 1 : 0; + for (++gn; gn < Ee && Ce[gn] != "L"; ++gn) ; for (var $n = er; $n < gn; ) - if (U.test(Ce[$n])) { + if (j.test(Ce[$n])) { er < $n && (xn.splice(Vr, 0, new Q(1, er, $n)), Vr += jr); var Eo = $n; - for (++$n; $n < gn && U.test(Ce[$n]); ++$n) + for (++$n; $n < gn && j.test(Ce[$n]); ++$n) ; xn.splice(Vr, 0, new Q(2, Eo, $n)), Vr += jr, er = $n; } else ++$n; er < gn && xn.splice(Vr, 0, new Q(1, er, gn)); } - return ue == "ltr" && (xn[0].level == 1 && (Mi = ie.match(/^\s+/)) && (xn[0].from = Mi[0].length, xn.unshift(new Q(0, 0, Mi[0].length))), Ae(xn).level == 1 && (Mi = ie.match(/\s+$/)) && (Ae(xn).to -= Mi[0].length, xn.push(new Q(0, xe - Mi[0].length, xe)))), ue == "rtl" ? xn.reverse() : xn; + return se == "ltr" && (xn[0].level == 1 && (Mi = ne.match(/^\s+/)) && (xn[0].from = Mi[0].length, xn.unshift(new Q(0, 0, Mi[0].length))), Ae(xn).level == 1 && (Mi = ne.match(/\s+$/)) && (Ae(xn).to -= Mi[0].length, xn.push(new Q(0, Ee - Mi[0].length, Ee)))), se == "rtl" ? xn.reverse() : xn; }; }(); - function pt(o, l) { + function ht(o, l) { var c = o.order; return c == null && (c = o.order = Je(o.text, l)), c; } @@ -22474,10 +22481,10 @@ var to = { exports: {} }; f[l] = (f[l] || Ge).concat(c); } }; - function ut(o, l) { + function dt(o, l) { return o._handlers && o._handlers[l] || Ge; } - function ot(o, l, c) { + function lt(o, l, c) { if (o.removeEventListener) o.removeEventListener(l, c, !1); else if (o.detachEvent) @@ -22485,13 +22492,13 @@ var to = { exports: {} }; else { var f = o._handlers, v = f && f[l]; if (v) { - var O = ce(v, c); + var O = he(v, c); O > -1 && (f[l] = v.slice(0, O).concat(v.slice(O + 1))); } } } - function at(o, l) { - var c = ut(o, l); + function st(o, l) { + var c = dt(o, l); if (!!c.length) for (var f = Array.prototype.slice.call(arguments, 2), v = 0; v < c.length; ++v) c[v].apply(null, f); @@ -22499,22 +22506,22 @@ var to = { exports: {} }; function Ct(o, l, c) { return typeof l == "string" && (l = { type: l, preventDefault: function() { this.defaultPrevented = !0; - } }), at(o, c || l.type, o, l), ur(l) || l.codemirrorIgnore; + } }), st(o, c || l.type, o, l), ur(l) || l.codemirrorIgnore; } function Pn(o) { var l = o._handlers && o._handlers.cursorActivity; if (!!l) for (var c = o.curOp.cursorActivityHandlers || (o.curOp.cursorActivityHandlers = []), f = 0; f < l.length; ++f) - ce(c, l[f]) == -1 && c.push(l[f]); + he(c, l[f]) == -1 && c.push(l[f]); } function Qt(o, l) { - return ut(o, l).length > 0; + return dt(o, l).length > 0; } function zt(o) { o.prototype.on = function(l, c) { $e(this, l, c); }, o.prototype.off = function(l, c) { - ot(this, l, c); + lt(this, l, c); }; } function It(o) { @@ -22539,23 +22546,23 @@ var to = { exports: {} }; var Du = function() { if (d && p < 9) return !1; - var o = R("div"); + var o = I("div"); return "draggable" in o || "dragDrop" in o; }(), di; function Iu(o) { if (di == null) { - var l = R("span", "\u200B"); - G(o, R("span", [l, document.createTextNode("x")])), o.firstChild.offsetHeight != 0 && (di = l.offsetWidth <= 1 && l.offsetHeight > 2 && !(d && p < 8)); + var l = I("span", "\u200B"); + G(o, I("span", [l, document.createTextNode("x")])), o.firstChild.offsetHeight != 0 && (di = l.offsetWidth <= 1 && l.offsetHeight > 2 && !(d && p < 8)); } - var c = di ? R("span", "\u200B") : R("span", "\xA0", null, "display: inline-block; width: 1px; margin-right: -1px"); + var c = di ? I("span", "\u200B") : I("span", "\xA0", null, "display: inline-block; width: 1px; margin-right: -1px"); return c.setAttribute("cm-text", ""), c; } var io; function yl(o) { if (io != null) return io; - var l = G(o, document.createTextNode("A\u062EA")), c = C(l, 0, 1).getBoundingClientRect(), f = C(l, 1, 2).getBoundingClientRect(); - return K(o), !c || c.left == c.right ? !1 : io = f.right - c.right < 3; + var l = G(o, document.createTextNode("A\u062EA")), c = F(l, 0, 1).getBoundingClientRect(), f = F(l, 1, 2).getBoundingClientRect(); + return W(o), !c || c.left == c.right ? !1 : io = f.right - c.right < 3; } var oa = ` @@ -22584,13 +22591,13 @@ b`.split(/\n/).length != 3 ? function(o) { } return !l || l.parentElement() != o ? !1 : l.compareEndPoints("StartToEnd", l) != 0; }, $i = function() { - var o = R("div"); + var o = I("div"); return "oncopy" in o ? !0 : (o.setAttribute("oncopy", "return;"), typeof o.oncopy == "function"); }(), Ri = null; function bl(o) { if (Ri != null) return Ri; - var l = G(o, R("span", "x")), c = l.getBoundingClientRect(), f = C(l, 0, 1).getBoundingClientRect(); + var l = G(o, I("span", "x")), c = l.getBoundingClientRect(), f = F(l, 0, 1).getBoundingClientRect(); return Ri = Math.abs(c.left - f.left) > 1; } var bi = {}, fr = {}; @@ -22605,7 +22612,7 @@ b`.split(/\n/).length != 3 ? function(o) { o = fr[o]; else if (o && typeof o.name == "string" && fr.hasOwnProperty(o.name)) { var l = fr[o.name]; - typeof l == "string" && (l = { name: l }), o = Ee(l, o), o.name = l.name; + typeof l == "string" && (l = { name: l }), o = _e(l, o), o.name = l.name; } else { if (typeof o == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(o)) return zn("application/xml"); @@ -22688,9 +22695,9 @@ b`.split(/\n/).length != 3 ? function(o) { }, Zt.prototype.backUp = function(o) { this.pos -= o; }, Zt.prototype.column = function() { - return this.lastColumnPos < this.start && (this.lastColumnValue = me(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue), this.lastColumnPos = this.start), this.lastColumnValue - (this.lineStart ? me(this.string, this.lineStart, this.tabSize) : 0); + return this.lastColumnPos < this.start && (this.lastColumnValue = ve(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue), this.lastColumnPos = this.start), this.lastColumnValue - (this.lineStart ? ve(this.string, this.lineStart, this.tabSize) : 0); }, Zt.prototype.indentation = function() { - return me(this.string, null, this.tabSize) - (this.lineStart ? me(this.string, this.lineStart, this.tabSize) : 0); + return ve(this.string, null, this.tabSize) - (this.lineStart ? ve(this.string, this.lineStart, this.tabSize) : 0); }, Zt.prototype.match = function(o, l, c) { if (typeof o == "string") { var f = function(L) { @@ -22718,7 +22725,7 @@ b`.split(/\n/).length != 3 ? function(o) { var o = this.lineOracle; return o && o.baseToken(this.pos); }; - function st(o, l) { + function ut(o, l) { if (l -= o.first, l < 0 || l >= o.size) throw new Error("There is no line " + (l + o.first) + " in the document."); for (var c = o; !c.lines; ) @@ -22754,7 +22761,7 @@ b`.split(/\n/).length != 3 ? function(o) { function Ft(o) { if (o.parent == null) return null; - for (var l = o.parent, c = ce(l.lines, o), f = l.parent; f; l = f, f = f.parent) + for (var l = o.parent, c = he(l.lines, o), f = l.parent; f; l = f, f = f.parent) for (var v = 0; f.children[v] != l; ++v) c += f.children[v].chunkSize(); return c + l.first; @@ -22774,17 +22781,17 @@ b`.split(/\n/).length != 3 ? function(o) { return c; } while (!o.lines); for (var L = 0; L < o.lines.length; ++L) { - var U = o.lines[L], Q = U.height; + var j = o.lines[L], Q = j.height; if (l < Q) break; l -= Q; } return c + L; } - function re(o, l) { + function oe(o, l) { return l >= o.first && l < o.first + o.size; } - function fe(o, l) { + function ce(o, l) { return String(o.lineNumberFormatter(l + o.firstLineNumber)); } function ye(o, l, c) { @@ -22792,20 +22799,20 @@ b`.split(/\n/).length != 3 ? function(o) { return new ye(o, l, c); this.line = o, this.ch = l, this.sticky = c; } - function Re(o, l) { + function De(o, l) { return o.line - l.line || o.ch - l.ch; } function bt(o, l) { - return o.sticky == l.sticky && Re(o, l) == 0; + return o.sticky == l.sticky && De(o, l) == 0; } - function $t(o) { + function Ot(o) { return ye(o.line, o.ch); } function Rt(o, l) { - return Re(o, l) < 0 ? l : o; + return De(o, l) < 0 ? l : o; } function un(o, l) { - return Re(o, l) < 0 ? o : l; + return De(o, l) < 0 ? o : l; } function qn(o, l) { return Math.max(o.first, Math.min(l, o.first + o.size - 1)); @@ -22814,7 +22821,7 @@ b`.split(/\n/).length != 3 ? function(o) { if (l.line < o.first) return ye(o.first, 0); var c = o.first + o.size - 1; - return l.line > c ? ye(c, st(o, c).text.length) : r1(l, st(o, l.line).text.length); + return l.line > c ? ye(c, ut(o, c).text.length) : r1(l, ut(o, l.line).text.length); } function r1(o, l) { var c = o.ch; @@ -22858,31 +22865,31 @@ b`.split(/\n/).length != 3 ? function(o) { l.text, o.doc.mode, c, - function(ie, ue) { - return v.push(ie, ue); + function(ne, se) { + return v.push(ne, se); }, O, f ); - for (var L = c.state, U = function(ie) { + for (var L = c.state, j = function(ne) { c.baseTokens = v; - var ue = o.state.overlays[ie], de = 1, xe = 0; - c.state = !0, Zp(o, l.text, ue.mode, c, function(Ce, Ie) { - for (var Le = de; xe < Ce; ) { + var se = o.state.overlays[ne], de = 1, Ee = 0; + c.state = !0, Zp(o, l.text, se.mode, c, function(Ce, Ie) { + for (var Ne = de; Ee < Ce; ) { var Ue = v[de]; - Ue > Ce && v.splice(de, 1, Ce, v[de + 1], Ue), de += 2, xe = Math.min(Ce, Ue); + Ue > Ce && v.splice(de, 1, Ce, v[de + 1], Ue), de += 2, Ee = Math.min(Ce, Ue); } if (!!Ie) - if (ue.opaque) - v.splice(Le, de - Le, Ce, "overlay " + Ie), de = Le + 2; + if (se.opaque) + v.splice(Ne, de - Ne, Ce, "overlay " + Ie), de = Ne + 2; else - for (; Le < de; Le += 2) { - var Ye = v[Le + 1]; - v[Le + 1] = (Ye ? Ye + " " : "") + "overlay " + Ie; + for (; Ne < de; Ne += 2) { + var Ye = v[Ne + 1]; + v[Ne + 1] = (Ye ? Ye + " " : "") + "overlay " + Ie; } }, O), c.state = L, c.baseTokens = null, c.baseTokenPos = 1; }, Q = 0; Q < o.state.overlays.length; ++Q) - U(Q); + j(Q); return { styles: v, classes: O.bgClass || O.textClass ? O : null }; } function Kp(o, l, c) { @@ -22896,12 +22903,12 @@ b`.split(/\n/).length != 3 ? function(o) { var f = o.doc, v = o.display; if (!f.mode.startState) return new Ii(f, !0, l); - var O = o1(o, l, c), L = O > f.first && st(f, O - 1).stateAfter, U = L ? Ii.fromSaved(f, L, O) : new Ii(f, aa(f.mode), O); + var O = o1(o, l, c), L = O > f.first && ut(f, O - 1).stateAfter, j = L ? Ii.fromSaved(f, L, O) : new Ii(f, aa(f.mode), O); return f.iter(O, l, function(Q) { - Fu(o, Q.text, U); - var ie = U.line; - Q.stateAfter = ie == l - 1 || ie % 5 == 0 || ie >= v.viewFrom && ie < v.viewTo ? U.save() : null, U.nextLine(); - }), c && (f.modeFrontier = U.line), U; + Fu(o, Q.text, j); + var ne = j.line; + Q.stateAfter = ne == l - 1 || ne % 5 == 0 || ne >= v.viewFrom && ne < v.viewTo ? j.save() : null, j.nextLine(); + }), c && (f.modeFrontier = j.line), j; } function Fu(o, l, c, f) { var v = o.doc.mode, O = new Zt(l, o.options.tabSize, c); @@ -22932,10 +22939,10 @@ b`.split(/\n/).length != 3 ? function(o) { function Jp(o, l, c, f) { var v = o.doc, O = v.mode, L; l = _t(v, l); - var U = st(v, l.line), Q = la(o, l.line, c), ie = new Zt(U.text, o.options.tabSize, Q), ue; - for (f && (ue = []); (f || ie.pos < l.ch) && !ie.eol(); ) - ie.start = ie.pos, L = Pu(O, ie, Q.state), f && ue.push(new Qp(ie, L, Ki(v.mode, Q.state))); - return f ? ue : new Qp(ie, L, Q.state); + var j = ut(v, l.line), Q = la(o, l.line, c), ne = new Zt(j.text, o.options.tabSize, Q), se; + for (f && (se = []); (f || ne.pos < l.ch) && !ne.eol(); ) + ne.start = ne.pos, L = Pu(O, ne, Q.state), f && se.push(new Qp(ne, L, Ki(v.mode, Q.state))); + return f ? se : new Qp(ne, L, Q.state); } function Xp(o, l) { if (o) @@ -22950,42 +22957,42 @@ b`.split(/\n/).length != 3 ? function(o) { return o; } function Zp(o, l, c, f, v, O, L) { - var U = c.flattenSpans; - U == null && (U = o.options.flattenSpans); - var Q = 0, ie = null, ue = new Zt(l, o.options.tabSize, f), de, xe = o.options.addModeClass && [null]; - for (l == "" && Xp(Yp(c, f.state), O); !ue.eol(); ) { - if (ue.pos > o.options.maxHighlightLength ? (U = !1, L && Fu(o, l, f, ue.pos), ue.pos = l.length, de = null) : de = Xp(Pu(c, ue, f.state, xe), O), xe) { - var Ce = xe[0].name; + var j = c.flattenSpans; + j == null && (j = o.options.flattenSpans); + var Q = 0, ne = null, se = new Zt(l, o.options.tabSize, f), de, Ee = o.options.addModeClass && [null]; + for (l == "" && Xp(Yp(c, f.state), O); !se.eol(); ) { + if (se.pos > o.options.maxHighlightLength ? (j = !1, L && Fu(o, l, f, se.pos), se.pos = l.length, de = null) : de = Xp(Pu(c, se, f.state, Ee), O), Ee) { + var Ce = Ee[0].name; Ce && (de = "m-" + (de ? Ce + " " + de : Ce)); } - if (!U || ie != de) { - for (; Q < ue.start; ) - Q = Math.min(ue.start, Q + 5e3), v(Q, ie); - ie = de; + if (!j || ne != de) { + for (; Q < se.start; ) + Q = Math.min(se.start, Q + 5e3), v(Q, ne); + ne = de; } - ue.start = ue.pos; + se.start = se.pos; } - for (; Q < ue.pos; ) { - var Ie = Math.min(ue.pos, Q + 5e3); - v(Ie, ie), Q = Ie; + for (; Q < se.pos; ) { + var Ie = Math.min(se.pos, Q + 5e3); + v(Ie, ne), Q = Ie; } } function o1(o, l, c) { - for (var f, v, O = o.doc, L = c ? -1 : l - (o.doc.mode.innerMode ? 1e3 : 100), U = l; U > L; --U) { - if (U <= O.first) + for (var f, v, O = o.doc, L = c ? -1 : l - (o.doc.mode.innerMode ? 1e3 : 100), j = l; j > L; --j) { + if (j <= O.first) return O.first; - var Q = st(O, U - 1), ie = Q.stateAfter; - if (ie && (!c || U + (ie instanceof Al ? ie.lookAhead : 0) <= O.modeFrontier)) - return U; - var ue = me(Q.text, null, o.options.tabSize); - (v == null || f > ue) && (v = U - 1, f = ue); + var Q = ut(O, j - 1), ne = Q.stateAfter; + if (ne && (!c || j + (ne instanceof Al ? ne.lookAhead : 0) <= O.modeFrontier)) + return j; + var se = ve(Q.text, null, o.options.tabSize); + (v == null || f > se) && (v = j - 1, f = se); } return v; } function a1(o, l) { if (o.modeFrontier = Math.min(o.modeFrontier, l), !(o.highlightFrontier < l - 10)) { for (var c = o.first, f = l - 1; f > c; f--) { - var v = st(o, f).stateAfter; + var v = ut(o, f).stateAfter; if (v && (!(v instanceof Al) || f + v.lookAhead < l)) { c = f + 1; break; @@ -23025,8 +23032,8 @@ b`.split(/\n/).length != 3 ? function(o) { var f; if (o) for (var v = 0; v < o.length; ++v) { - var O = o[v], L = O.marker, U = O.from == null || (L.inclusiveLeft ? O.from <= l : O.from < l); - if (U || O.from == l && L.type == "bookmark" && (!c || !O.marker.insertLeft)) { + var O = o[v], L = O.marker, j = O.from == null || (L.inclusiveLeft ? O.from <= l : O.from < l); + if (j || O.from == l && L.type == "bookmark" && (!c || !O.marker.insertLeft)) { var Q = O.to == null || (L.inclusiveRight ? O.to >= l : O.to > l); (f || (f = [])).push(new Cl(L, O.from, Q ? null : O.to)); } @@ -23037,8 +23044,8 @@ b`.split(/\n/).length != 3 ? function(o) { var f; if (o) for (var v = 0; v < o.length; ++v) { - var O = o[v], L = O.marker, U = O.to == null || (L.inclusiveRight ? O.to >= l : O.to > l); - if (U || O.from == l && L.type == "bookmark" && (!c || O.marker.insertLeft)) { + var O = o[v], L = O.marker, j = O.to == null || (L.inclusiveRight ? O.to >= l : O.to > l); + if (j || O.from == l && L.type == "bookmark" && (!c || O.marker.insertLeft)) { var Q = O.from == null || (L.inclusiveLeft ? O.from <= l : O.from < l); (f || (f = [])).push(new Cl( L, @@ -23052,35 +23059,35 @@ b`.split(/\n/).length != 3 ? function(o) { function Mu(o, l) { if (l.full) return null; - var c = re(o, l.from.line) && st(o, l.from.line).markedSpans, f = re(o, l.to.line) && st(o, l.to.line).markedSpans; + var c = oe(o, l.from.line) && ut(o, l.from.line).markedSpans, f = oe(o, l.to.line) && ut(o, l.to.line).markedSpans; if (!c && !f) return null; - var v = l.from.ch, O = l.to.ch, L = Re(l.from, l.to) == 0, U = f1(c, v, L), Q = c1(f, O, L), ie = l.text.length == 1, ue = Ae(l.text).length + (ie ? v : 0); - if (U) - for (var de = 0; de < U.length; ++de) { - var xe = U[de]; - if (xe.to == null) { - var Ce = sa(Q, xe.marker); - Ce ? ie && (xe.to = Ce.to == null ? null : Ce.to + ue) : xe.to = v; + var v = l.from.ch, O = l.to.ch, L = De(l.from, l.to) == 0, j = f1(c, v, L), Q = c1(f, O, L), ne = l.text.length == 1, se = Ae(l.text).length + (ne ? v : 0); + if (j) + for (var de = 0; de < j.length; ++de) { + var Ee = j[de]; + if (Ee.to == null) { + var Ce = sa(Q, Ee.marker); + Ce ? ne && (Ee.to = Ce.to == null ? null : Ce.to + se) : Ee.to = v; } } if (Q) for (var Ie = 0; Ie < Q.length; ++Ie) { - var Le = Q[Ie]; - if (Le.to != null && (Le.to += ue), Le.from == null) { - var Ue = sa(U, Le.marker); - Ue || (Le.from = ue, ie && (U || (U = [])).push(Le)); + var Ne = Q[Ie]; + if (Ne.to != null && (Ne.to += se), Ne.from == null) { + var Ue = sa(j, Ne.marker); + Ue || (Ne.from = se, ne && (j || (j = [])).push(Ne)); } else - Le.from += ue, ie && (U || (U = [])).push(Le); + Ne.from += se, ne && (j || (j = [])).push(Ne); } - U && (U = eh(U)), Q && Q != U && (Q = eh(Q)); - var Ye = [U]; - if (!ie) { - var tt = l.text.length - 2, Qe; - if (tt > 0 && U) - for (var rt = 0; rt < U.length; ++rt) - U[rt].to == null && (Qe || (Qe = [])).push(new Cl(U[rt].marker, null, null)); - for (var ht = 0; ht < tt; ++ht) + j && (j = eh(j)), Q && Q != j && (Q = eh(Q)); + var Ye = [j]; + if (!ne) { + var nt = l.text.length - 2, Qe; + if (nt > 0 && j) + for (var ot = 0; ot < j.length; ++ot) + j[ot].to == null && (Qe || (Qe = [])).push(new Cl(j[ot].marker, null, null)); + for (var mt = 0; mt < nt; ++mt) Ye.push(Qe); Ye.push(Q); } @@ -23098,17 +23105,17 @@ b`.split(/\n/).length != 3 ? function(o) { if (o.iter(l.line, c.line + 1, function(Ce) { if (Ce.markedSpans) for (var Ie = 0; Ie < Ce.markedSpans.length; ++Ie) { - var Le = Ce.markedSpans[Ie].marker; - Le.readOnly && (!f || ce(f, Le) == -1) && (f || (f = [])).push(Le); + var Ne = Ce.markedSpans[Ie].marker; + Ne.readOnly && (!f || he(f, Ne) == -1) && (f || (f = [])).push(Ne); } }), !f) return null; for (var v = [{ from: l, to: c }], O = 0; O < f.length; ++O) - for (var L = f[O], U = L.find(0), Q = 0; Q < v.length; ++Q) { - var ie = v[Q]; - if (!(Re(ie.to, U.from) < 0 || Re(ie.from, U.to) > 0)) { - var ue = [Q, 1], de = Re(ie.from, U.from), xe = Re(ie.to, U.to); - (de < 0 || !L.inclusiveLeft && !de) && ue.push({ from: ie.from, to: U.from }), (xe > 0 || !L.inclusiveRight && !xe) && ue.push({ from: U.to, to: ie.to }), v.splice.apply(v, ue), Q += ue.length - 3; + for (var L = f[O], j = L.find(0), Q = 0; Q < v.length; ++Q) { + var ne = v[Q]; + if (!(De(ne.to, j.from) < 0 || De(ne.from, j.to) > 0)) { + var se = [Q, 1], de = De(ne.from, j.from), Ee = De(ne.to, j.to); + (de < 0 || !L.inclusiveLeft && !de) && se.push({ from: ne.from, to: j.from }), (Ee > 0 || !L.inclusiveRight && !Ee) && se.push({ from: j.to, to: ne.to }), v.splice.apply(v, se), Q += se.length - 3; } } return v; @@ -23138,10 +23145,10 @@ b`.split(/\n/).length != 3 ? function(o) { var c = o.lines.length - l.lines.length; if (c != 0) return c; - var f = o.find(), v = l.find(), O = Re(f.from, v.from) || Sl(o) - Sl(l); + var f = o.find(), v = l.find(), O = De(f.from, v.from) || Sl(o) - Sl(l); if (O) return -O; - var L = Re(f.to, v.to) || El(o) - El(l); + var L = De(f.to, v.to) || El(o) - El(l); return L || l.id - o.id; } function ih(o, l) { @@ -23167,13 +23174,13 @@ b`.split(/\n/).length != 3 ? function(o) { return f; } function oh(o, l, c, f, v) { - var O = st(o, l), L = Qi && O.markedSpans; + var O = ut(o, l), L = Qi && O.markedSpans; if (L) - for (var U = 0; U < L.length; ++U) { - var Q = L[U]; + for (var j = 0; j < L.length; ++j) { + var Q = L[j]; if (!!Q.marker.collapsed) { - var ie = Q.marker.find(0), ue = Re(ie.from, c) || Sl(Q.marker) - Sl(v), de = Re(ie.to, f) || El(Q.marker) - El(v); - if (!(ue >= 0 && de <= 0 || ue <= 0 && de >= 0) && (ue <= 0 && (Q.marker.inclusiveRight && v.inclusiveLeft ? Re(ie.to, c) >= 0 : Re(ie.to, c) > 0) || ue >= 0 && (Q.marker.inclusiveRight && v.inclusiveLeft ? Re(ie.from, f) <= 0 : Re(ie.from, f) < 0))) + var ne = Q.marker.find(0), se = De(ne.from, c) || Sl(Q.marker) - Sl(v), de = De(ne.to, f) || El(Q.marker) - El(v); + if (!(se >= 0 && de <= 0 || se <= 0 && de >= 0) && (se <= 0 && (Q.marker.inclusiveRight && v.inclusiveLeft ? De(ne.to, c) >= 0 : De(ne.to, c) > 0) || se >= 0 && (Q.marker.inclusiveRight && v.inclusiveLeft ? De(ne.from, f) <= 0 : De(ne.from, f) < 0))) return !0; } } @@ -23194,13 +23201,13 @@ b`.split(/\n/).length != 3 ? function(o) { return c; } function Nu(o, l) { - var c = st(o, l), f = _i(c); + var c = ut(o, l), f = _i(c); return c == f ? l : Ft(f); } function ah(o, l) { if (l > o.lastLine()) return l; - var c = st(o, l), f; + var c = ut(o, l), f; if (!hr(o, c)) return l; for (; f = xl(c); ) @@ -23240,10 +23247,10 @@ b`.split(/\n/).length != 3 ? function(o) { } for (var O = c.parent; O; c = O, O = c.parent) for (var L = 0; L < O.children.length; ++L) { - var U = O.children[L]; - if (U == c) + var j = O.children[L]; + if (j == c) break; - l += U.height; + l += j.height; } return l; } @@ -23262,7 +23269,7 @@ b`.split(/\n/).length != 3 ? function(o) { } function Vu(o) { var l = o.display, c = o.doc; - l.maxLine = st(c, c.first), l.maxLineLength = Tl(l.maxLine), l.maxLineChanged = !0, c.iter(function(f) { + l.maxLine = ut(c, c.first), l.maxLineLength = Tl(l.maxLine), l.maxLineChanged = !0, c.iter(function(f) { var v = Tl(f); v > l.maxLineLength && (l.maxLineLength = v, l.maxLine = f); }); @@ -23289,8 +23296,8 @@ b`.split(/\n/).length != 3 ? function(o) { return c[o] || (c[o] = o.replace(/\S+/g, "cm-$&")); } function sh(o, l) { - var c = z("span", null, null, h ? "padding-right: .1px" : null), f = { - pre: z("pre", [c], "CodeMirror-line"), + var c = U("span", null, null, h ? "padding-right: .1px" : null), f = { + pre: U("pre", [c], "CodeMirror-line"), content: c, col: 0, pos: 0, @@ -23301,57 +23308,57 @@ b`.split(/\n/).length != 3 ? function(o) { l.measure = {}; for (var v = 0; v <= (l.rest ? l.rest.length : 0); v++) { var O = v ? l.rest[v - 1] : l.line, L = void 0; - f.pos = 0, f.addToken = A1, yl(o.display.measure) && (L = pt(O, o.doc.direction)) && (f.addToken = S1(f.addToken, L)), f.map = []; - var U = l != o.display.externalMeasured && Ft(O); - E1(O, f, Kp(o, O, U)), O.styleClasses && (O.styleClasses.bgClass && (f.bgClass = Y(O.styleClasses.bgClass, f.bgClass || "")), O.styleClasses.textClass && (f.textClass = Y(O.styleClasses.textClass, f.textClass || ""))), f.map.length == 0 && f.map.push(0, 0, f.content.appendChild(Iu(o.display.measure))), v == 0 ? (l.measure.map = f.map, l.measure.cache = {}) : ((l.measure.maps || (l.measure.maps = [])).push(f.map), (l.measure.caches || (l.measure.caches = [])).push({})); + f.pos = 0, f.addToken = A1, yl(o.display.measure) && (L = ht(O, o.doc.direction)) && (f.addToken = S1(f.addToken, L)), f.map = []; + var j = l != o.display.externalMeasured && Ft(O); + E1(O, f, Kp(o, O, j)), O.styleClasses && (O.styleClasses.bgClass && (f.bgClass = Y(O.styleClasses.bgClass, f.bgClass || "")), O.styleClasses.textClass && (f.textClass = Y(O.styleClasses.textClass, f.textClass || ""))), f.map.length == 0 && f.map.push(0, 0, f.content.appendChild(Iu(o.display.measure))), v == 0 ? (l.measure.map = f.map, l.measure.cache = {}) : ((l.measure.maps || (l.measure.maps = [])).push(f.map), (l.measure.caches || (l.measure.caches = [])).push({})); } if (h) { var Q = f.content.lastChild; (/\bcm-tab\b/.test(Q.className) || Q.querySelector && Q.querySelector(".cm-tab")) && (f.content.className = "cm-tab-wrap-hack"); } - return at(o, "renderLine", o, l.line, f.pre), f.pre.className && (f.textClass = Y(f.pre.className, f.textClass || "")), f; + return st(o, "renderLine", o, l.line, f.pre), f.pre.className && (f.textClass = Y(f.pre.className, f.textClass || "")), f; } function w1(o) { - var l = R("span", "\u2022", "cm-invalidchar"); + var l = I("span", "\u2022", "cm-invalidchar"); return l.title = "\\u" + o.charCodeAt(0).toString(16), l.setAttribute("aria-label", l.title), l; } function A1(o, l, c, f, v, O, L) { if (!!l) { - var U = o.splitSpaces ? C1(l, o.trailingSpace) : l, Q = o.cm.state.specialChars, ie = !1, ue; + var j = o.splitSpaces ? C1(l, o.trailingSpace) : l, Q = o.cm.state.specialChars, ne = !1, se; if (!Q.test(l)) - o.col += l.length, ue = document.createTextNode(U), o.map.push(o.pos, o.pos + l.length, ue), d && p < 9 && (ie = !0), o.pos += l.length; + o.col += l.length, se = document.createTextNode(j), o.map.push(o.pos, o.pos + l.length, se), d && p < 9 && (ne = !0), o.pos += l.length; else { - ue = document.createDocumentFragment(); + se = document.createDocumentFragment(); for (var de = 0; ; ) { Q.lastIndex = de; - var xe = Q.exec(l), Ce = xe ? xe.index - de : l.length - de; + var Ee = Q.exec(l), Ce = Ee ? Ee.index - de : l.length - de; if (Ce) { - var Ie = document.createTextNode(U.slice(de, de + Ce)); - d && p < 9 ? ue.appendChild(R("span", [Ie])) : ue.appendChild(Ie), o.map.push(o.pos, o.pos + Ce, Ie), o.col += Ce, o.pos += Ce; + var Ie = document.createTextNode(j.slice(de, de + Ce)); + d && p < 9 ? se.appendChild(I("span", [Ie])) : se.appendChild(Ie), o.map.push(o.pos, o.pos + Ce, Ie), o.col += Ce, o.pos += Ce; } - if (!xe) + if (!Ee) break; de += Ce + 1; - var Le = void 0; - if (xe[0] == " ") { + var Ne = void 0; + if (Ee[0] == " ") { var Ue = o.cm.options.tabSize, Ye = Ue - o.col % Ue; - Le = ue.appendChild(R("span", _e(Ye), "cm-tab")), Le.setAttribute("role", "presentation"), Le.setAttribute("cm-text", " "), o.col += Ye; + Ne = se.appendChild(I("span", fe(Ye), "cm-tab")), Ne.setAttribute("role", "presentation"), Ne.setAttribute("cm-text", " "), o.col += Ye; } else - xe[0] == "\r" || xe[0] == ` -` ? (Le = ue.appendChild(R("span", xe[0] == "\r" ? "\u240D" : "\u2424", "cm-invalidchar")), Le.setAttribute("cm-text", xe[0]), o.col += 1) : (Le = o.cm.options.specialCharPlaceholder(xe[0]), Le.setAttribute("cm-text", xe[0]), d && p < 9 ? ue.appendChild(R("span", [Le])) : ue.appendChild(Le), o.col += 1); - o.map.push(o.pos, o.pos + 1, Le), o.pos++; + Ee[0] == "\r" || Ee[0] == ` +` ? (Ne = se.appendChild(I("span", Ee[0] == "\r" ? "\u240D" : "\u2424", "cm-invalidchar")), Ne.setAttribute("cm-text", Ee[0]), o.col += 1) : (Ne = o.cm.options.specialCharPlaceholder(Ee[0]), Ne.setAttribute("cm-text", Ee[0]), d && p < 9 ? se.appendChild(I("span", [Ne])) : se.appendChild(Ne), o.col += 1); + o.map.push(o.pos, o.pos + 1, Ne), o.pos++; } } - if (o.trailingSpace = U.charCodeAt(l.length - 1) == 32, c || f || v || ie || O || L) { - var tt = c || ""; - f && (tt += f), v && (tt += v); - var Qe = R("span", [ue], tt, O); + if (o.trailingSpace = j.charCodeAt(l.length - 1) == 32, c || f || v || ne || O || L) { + var nt = c || ""; + f && (nt += f), v && (nt += v); + var Qe = I("span", [se], nt, O); if (L) - for (var rt in L) - L.hasOwnProperty(rt) && rt != "style" && rt != "class" && Qe.setAttribute(rt, L[rt]); + for (var ot in L) + L.hasOwnProperty(ot) && ot != "style" && ot != "class" && Qe.setAttribute(ot, L[ot]); return o.content.appendChild(Qe); } - o.content.appendChild(ue); + o.content.appendChild(se); } } function C1(o, l) { @@ -23364,14 +23371,14 @@ b`.split(/\n/).length != 3 ? function(o) { return f; } function S1(o, l) { - return function(c, f, v, O, L, U, Q) { + return function(c, f, v, O, L, j, Q) { v = v ? v + " cm-force-border" : "cm-force-border"; - for (var ie = c.pos, ue = ie + f.length; ; ) { - for (var de = void 0, xe = 0; xe < l.length && (de = l[xe], !(de.to > ie && de.from <= ie)); xe++) + for (var ne = c.pos, se = ne + f.length; ; ) { + for (var de = void 0, Ee = 0; Ee < l.length && (de = l[Ee], !(de.to > ne && de.from <= ne)); Ee++) ; - if (de.to >= ue) - return o(c, f, v, O, L, U, Q); - o(c, f.slice(0, de.to - ie), v, O, null, U, Q), O = null, f = f.slice(de.to - ie), ie = de.to; + if (de.to >= se) + return o(c, f, v, O, L, j, Q); + o(c, f.slice(0, de.to - ne), v, O, null, j, Q), O = null, f = f.slice(de.to - ne), ne = de.to; } }; } @@ -23386,31 +23393,31 @@ b`.split(/\n/).length != 3 ? function(o) { l.addToken(l, v.slice(O, O = c[L]), lh(c[L + 1], l.cm.options)); return; } - for (var U = v.length, Q = 0, ie = 1, ue = "", de, xe, Ce = 0, Ie, Le, Ue, Ye, tt; ; ) { + for (var j = v.length, Q = 0, ne = 1, se = "", de, Ee, Ce = 0, Ie, Ne, Ue, Ye, nt; ; ) { if (Ce == Q) { - Ie = Le = Ue = xe = "", tt = null, Ye = null, Ce = 1 / 0; - for (var Qe = [], rt = void 0, ht = 0; ht < f.length; ++ht) { - var ft = f[ht], Et = ft.marker; - if (Et.type == "bookmark" && ft.from == Q && Et.widgetNode) + Ie = Ne = Ue = Ee = "", nt = null, Ye = null, Ce = 1 / 0; + for (var Qe = [], ot = void 0, mt = 0; mt < f.length; ++mt) { + var ct = f[mt], Et = ct.marker; + if (Et.type == "bookmark" && ct.from == Q && Et.widgetNode) Qe.push(Et); - else if (ft.from <= Q && (ft.to == null || ft.to > Q || Et.collapsed && ft.to == Q && ft.from == Q)) { - if (ft.to != null && ft.to != Q && Ce > ft.to && (Ce = ft.to, Le = ""), Et.className && (Ie += " " + Et.className), Et.css && (xe = (xe ? xe + ";" : "") + Et.css), Et.startStyle && ft.from == Q && (Ue += " " + Et.startStyle), Et.endStyle && ft.to == Ce && (rt || (rt = [])).push(Et.endStyle, ft.to), Et.title && ((tt || (tt = {})).title = Et.title), Et.attributes) + else if (ct.from <= Q && (ct.to == null || ct.to > Q || Et.collapsed && ct.to == Q && ct.from == Q)) { + if (ct.to != null && ct.to != Q && Ce > ct.to && (Ce = ct.to, Ne = ""), Et.className && (Ie += " " + Et.className), Et.css && (Ee = (Ee ? Ee + ";" : "") + Et.css), Et.startStyle && ct.from == Q && (Ue += " " + Et.startStyle), Et.endStyle && ct.to == Ce && (ot || (ot = [])).push(Et.endStyle, ct.to), Et.title && ((nt || (nt = {})).title = Et.title), Et.attributes) for (var Vt in Et.attributes) - (tt || (tt = {}))[Vt] = Et.attributes[Vt]; - Et.collapsed && (!Ye || Lu(Ye.marker, Et) < 0) && (Ye = ft); + (nt || (nt = {}))[Vt] = Et.attributes[Vt]; + Et.collapsed && (!Ye || Lu(Ye.marker, Et) < 0) && (Ye = ct); } else - ft.from > Q && Ce > ft.from && (Ce = ft.from); + ct.from > Q && Ce > ct.from && (Ce = ct.from); } - if (rt) - for (var vn = 0; vn < rt.length; vn += 2) - rt[vn + 1] == Ce && (Le += " " + rt[vn]); + if (ot) + for (var vn = 0; vn < ot.length; vn += 2) + ot[vn + 1] == Ce && (Ne += " " + ot[vn]); if (!Ye || Ye.from == Q) for (var Jt = 0; Jt < Qe.length; ++Jt) uh(l, 0, Qe[Jt]); if (Ye && (Ye.from || 0) == Q) { if (uh( l, - (Ye.to == null ? U + 1 : Ye.to) - Q, + (Ye.to == null ? j + 1 : Ye.to) - Q, Ye.marker, Ye.from == null ), Ye.to == null) @@ -23418,30 +23425,30 @@ b`.split(/\n/).length != 3 ? function(o) { Ye.to == Q && (Ye = !1); } } - if (Q >= U) + if (Q >= j) break; - for (var Gn = Math.min(U, Ce); ; ) { - if (ue) { - var Bn = Q + ue.length; + for (var Gn = Math.min(j, Ce); ; ) { + if (se) { + var Bn = Q + se.length; if (!Ye) { - var ln = Bn > Gn ? ue.slice(0, Gn - Q) : ue; + var ln = Bn > Gn ? se.slice(0, Gn - Q) : se; l.addToken( l, ln, de ? de + Ie : Ie, Ue, - Q + ln.length == Ce ? Le : "", - xe, - tt + Q + ln.length == Ce ? Ne : "", + Ee, + nt ); } if (Bn >= Gn) { - ue = ue.slice(Gn - Q), Q = Gn; + se = se.slice(Gn - Q), Q = Gn; break; } Q = Bn, Ue = ""; } - ue = v.slice(O, O = c[ie++]), de = lh(c[ie++], l.cm.options); + se = v.slice(O, O = c[ne++]), de = lh(c[ne++], l.cm.options); } } } @@ -23450,7 +23457,7 @@ b`.split(/\n/).length != 3 ? function(o) { } function kl(o, l, c) { for (var f = [], v, O = l; O < c; O = v) { - var L = new dh(o.doc, st(o.doc, O), O); + var L = new dh(o.doc, ut(o.doc, O), O); v = O + L.size, f.push(L); } return f; @@ -23486,13 +23493,13 @@ b`.split(/\n/).length != 3 ? function(o) { } var ua = null; function pn(o, l) { - var c = ut(o, l); + var c = dt(o, l); if (!!c.length) { var f = Array.prototype.slice.call(arguments, 2), v; lo ? v = lo.delayedCallbacks : ua ? v = ua : (v = ua = [], setTimeout(O1, 0)); - for (var O = function(U) { + for (var O = function(j) { v.push(function() { - return c[U].apply(null, f); + return c[j].apply(null, f); }); }, L = 0; L < c.length; ++L) O(L); @@ -23512,7 +23519,7 @@ b`.split(/\n/).length != 3 ? function(o) { l.changes = null; } function da(o) { - return o.node == o.text && (o.node = R("div", null, null, "position: relative"), o.text.parentNode && o.text.parentNode.replaceChild(o.node, o.text), o.node.appendChild(o.text), d && p < 8 && (o.node.style.zIndex = 2)), o.node; + return o.node == o.text && (o.node = I("div", null, null, "position: relative"), o.text.parentNode && o.text.parentNode.replaceChild(o.node, o.text), o.node.appendChild(o.text), d && p < 8 && (o.node.style.zIndex = 2)), o.node; } function $1(o, l) { var c = l.bgClass ? l.bgClass + " " + (l.line.bgClass || "") : l.line.bgClass; @@ -23520,7 +23527,7 @@ b`.split(/\n/).length != 3 ? function(o) { c ? l.background.className = c : (l.background.parentNode.removeChild(l.background), l.background = null); else if (c) { var f = da(l); - l.background = f.insertBefore(R("div", null, c), f.firstChild), o.display.input.setUneditable(l.background); + l.background = f.insertBefore(I("div", null, c), f.firstChild), o.display.input.setUneditable(l.background); } } function ch(o, l) { @@ -23539,7 +23546,7 @@ b`.split(/\n/).length != 3 ? function(o) { function ph(o, l, c, f) { if (l.gutter && (l.node.removeChild(l.gutter), l.gutter = null), l.gutterBackground && (l.node.removeChild(l.gutterBackground), l.gutterBackground = null), l.line.gutterClass) { var v = da(l); - l.gutterBackground = R( + l.gutterBackground = I( "div", null, "CodeMirror-gutter-background " + l.line.gutterClass, @@ -23548,22 +23555,22 @@ b`.split(/\n/).length != 3 ? function(o) { } var O = l.line.gutterMarkers; if (o.options.lineNumbers || O) { - var L = da(l), U = l.gutter = R("div", null, "CodeMirror-gutter-wrapper", "left: " + (o.options.fixedGutter ? f.fixedPos : -f.gutterTotalWidth) + "px"); - if (U.setAttribute("aria-hidden", "true"), o.display.input.setUneditable(U), L.insertBefore(U, l.text), l.line.gutterClass && (U.className += " " + l.line.gutterClass), o.options.lineNumbers && (!O || !O["CodeMirror-linenumbers"]) && (l.lineNumber = U.appendChild( - R( + var L = da(l), j = l.gutter = I("div", null, "CodeMirror-gutter-wrapper", "left: " + (o.options.fixedGutter ? f.fixedPos : -f.gutterTotalWidth) + "px"); + if (j.setAttribute("aria-hidden", "true"), o.display.input.setUneditable(j), L.insertBefore(j, l.text), l.line.gutterClass && (j.className += " " + l.line.gutterClass), o.options.lineNumbers && (!O || !O["CodeMirror-linenumbers"]) && (l.lineNumber = j.appendChild( + I( "div", - fe(o.options, c), + ce(o.options, c), "CodeMirror-linenumber CodeMirror-gutter-elt", "left: " + f.gutterLeft["CodeMirror-linenumbers"] + "px; width: " + o.display.lineNumInnerWidth + "px" ) )), O) for (var Q = 0; Q < o.display.gutterSpecs.length; ++Q) { - var ie = o.display.gutterSpecs[Q].className, ue = O.hasOwnProperty(ie) && O[ie]; - ue && U.appendChild(R( + var ne = o.display.gutterSpecs[Q].className, se = O.hasOwnProperty(ne) && O[ne]; + se && j.appendChild(I( "div", - [ue], + [se], "CodeMirror-gutter-elt", - "left: " + f.gutterLeft[ie] + "px; width: " + f.gutterWidth[ie] + "px" + "left: " + f.gutterLeft[ne] + "px; width: " + f.gutterWidth[ne] + "px" )); } } @@ -23585,9 +23592,9 @@ b`.split(/\n/).length != 3 ? function(o) { } function mh(o, l, c, f, v) { if (!!l.widgets) - for (var O = da(c), L = 0, U = l.widgets; L < U.length; ++L) { - var Q = U[L], ie = R("div", [Q.node], "CodeMirror-linewidget" + (Q.className ? " " + Q.className : "")); - Q.handleMouseEvents || ie.setAttribute("cm-ignore-events", "true"), F1(Q, ie, c, f), o.display.input.setUneditable(ie), v && Q.above ? O.insertBefore(ie, c.gutter || c.text) : O.appendChild(ie), pn(Q, "redraw"); + for (var O = da(c), L = 0, j = l.widgets; L < j.length; ++L) { + var Q = j[L], ne = I("div", [Q.node], "CodeMirror-linewidget" + (Q.className ? " " + Q.className : "")); + Q.handleMouseEvents || ne.setAttribute("cm-ignore-events", "true"), F1(Q, ne, c, f), o.display.input.setUneditable(ne), v && Q.above ? O.insertBefore(ne, c.gutter || c.text) : O.appendChild(ne), pn(Q, "redraw"); } } function F1(o, l, c, f) { @@ -23604,9 +23611,9 @@ b`.split(/\n/).length != 3 ? function(o) { var l = o.doc.cm; if (!l) return 0; - if (!F(document.body, o.node)) { + if (!C(document.body, o.node)) { var c = "position: relative;"; - o.coverGutter && (c += "margin-left: -" + l.display.gutters.offsetWidth + "px;"), o.noHScroll && (c += "width: " + l.display.wrapper.clientWidth + "px;"), G(l.display.measure, R("div", [o.node], null, c)); + o.coverGutter && (c += "margin-left: -" + l.display.gutters.offsetWidth + "px;"), o.noHScroll && (c += "width: " + l.display.wrapper.clientWidth + "px;"), G(l.display.measure, I("div", [o.node], null, c)); } return o.height = o.node.parentNode.offsetHeight; } @@ -23624,7 +23631,7 @@ b`.split(/\n/).length != 3 ? function(o) { function vh(o) { if (o.cachedPaddingH) return o.cachedPaddingH; - var l = G(o.measure, R("pre", "x", "CodeMirror-line-like")), c = window.getComputedStyle ? window.getComputedStyle(l) : l.currentStyle, f = { left: parseInt(c.paddingLeft), right: parseInt(c.paddingRight) }; + var l = G(o.measure, I("pre", "x", "CodeMirror-line-like")), c = window.getComputedStyle ? window.getComputedStyle(l) : l.currentStyle, f = { left: parseInt(c.paddingLeft), right: parseInt(c.paddingRight) }; return !isNaN(f.left) && !isNaN(f.right) && (o.cachedPaddingH = f), f; } function Fi(o) { @@ -23642,9 +23649,9 @@ b`.split(/\n/).length != 3 ? function(o) { var O = l.measure.heights = []; if (f) { l.measure.width = v; - for (var L = l.text.firstChild.getClientRects(), U = 0; U < L.length - 1; U++) { - var Q = L[U], ie = L[U + 1]; - Math.abs(Q.bottom - ie.bottom) > 2 && O.push((Q.bottom + ie.top) / 2 - c.top); + for (var L = l.text.firstChild.getClientRects(), j = 0; j < L.length - 1; j++) { + var Q = L[j], ne = L[j + 1]; + Math.abs(Q.bottom - ne.bottom) > 2 && O.push((Q.bottom + ne.top) / 2 - c.top); } } O.push(c.bottom - c.top); @@ -23705,17 +23712,17 @@ b`.split(/\n/).length != 3 ? function(o) { } var bh = { left: 0, right: 0, top: 0, bottom: 0 }; function _h(o, l, c) { - for (var f, v, O, L, U, Q, ie = 0; ie < o.length; ie += 3) - if (U = o[ie], Q = o[ie + 1], l < U ? (v = 0, O = 1, L = "left") : l < Q ? (v = l - U, O = v + 1) : (ie == o.length - 3 || l == Q && o[ie + 3] > l) && (O = Q - U, v = O - 1, l >= Q && (L = "right")), v != null) { - if (f = o[ie + 2], U == Q && c == (f.insertLeft ? "left" : "right") && (L = c), c == "left" && v == 0) - for (; ie && o[ie - 2] == o[ie - 3] && o[ie - 1].insertLeft; ) - f = o[(ie -= 3) + 2], L = "left"; - if (c == "right" && v == Q - U) - for (; ie < o.length - 3 && o[ie + 3] == o[ie + 4] && !o[ie + 5].insertLeft; ) - f = o[(ie += 3) + 2], L = "right"; + for (var f, v, O, L, j, Q, ne = 0; ne < o.length; ne += 3) + if (j = o[ne], Q = o[ne + 1], l < j ? (v = 0, O = 1, L = "left") : l < Q ? (v = l - j, O = v + 1) : (ne == o.length - 3 || l == Q && o[ne + 3] > l) && (O = Q - j, v = O - 1, l >= Q && (L = "right")), v != null) { + if (f = o[ne + 2], j == Q && c == (f.insertLeft ? "left" : "right") && (L = c), c == "left" && v == 0) + for (; ne && o[ne - 2] == o[ne - 3] && o[ne - 1].insertLeft; ) + f = o[(ne -= 3) + 2], L = "left"; + if (c == "right" && v == Q - j) + for (; ne < o.length - 3 && o[ne + 3] == o[ne + 4] && !o[ne + 5].insertLeft; ) + f = o[(ne += 3) + 2], L = "right"; break; } - return { node: f, start: v, end: O, collapse: L, coverStart: U, coverEnd: Q }; + return { node: f, start: v, end: O, collapse: L, coverStart: j, coverEnd: Q }; } function L1(o, l) { var c = bh; @@ -23728,36 +23735,36 @@ b`.split(/\n/).length != 3 ? function(o) { return c; } function N1(o, l, c, f) { - var v = _h(l.map, c, f), O = v.node, L = v.start, U = v.end, Q = v.collapse, ie; + var v = _h(l.map, c, f), O = v.node, L = v.start, j = v.end, Q = v.collapse, ne; if (O.nodeType == 3) { - for (var ue = 0; ue < 4; ue++) { - for (; L && lt(l.line.text.charAt(v.coverStart + L)); ) + for (var se = 0; se < 4; se++) { + for (; L && He(l.line.text.charAt(v.coverStart + L)); ) --L; - for (; v.coverStart + U < v.coverEnd && lt(l.line.text.charAt(v.coverStart + U)); ) - ++U; - if (d && p < 9 && L == 0 && U == v.coverEnd - v.coverStart ? ie = O.parentNode.getBoundingClientRect() : ie = L1(C(O, L, U).getClientRects(), f), ie.left || ie.right || L == 0) + for (; v.coverStart + j < v.coverEnd && He(l.line.text.charAt(v.coverStart + j)); ) + ++j; + if (d && p < 9 && L == 0 && j == v.coverEnd - v.coverStart ? ne = O.parentNode.getBoundingClientRect() : ne = L1(F(O, L, j).getClientRects(), f), ne.left || ne.right || L == 0) break; - U = L, L = L - 1, Q = "right"; + j = L, L = L - 1, Q = "right"; } - d && p < 11 && (ie = B1(o.display.measure, ie)); + d && p < 11 && (ne = B1(o.display.measure, ne)); } else { L > 0 && (Q = f = "right"); var de; - o.options.lineWrapping && (de = O.getClientRects()).length > 1 ? ie = de[f == "right" ? de.length - 1 : 0] : ie = O.getBoundingClientRect(); + o.options.lineWrapping && (de = O.getClientRects()).length > 1 ? ne = de[f == "right" ? de.length - 1 : 0] : ne = O.getBoundingClientRect(); } - if (d && p < 9 && !L && (!ie || !ie.left && !ie.right)) { - var xe = O.parentNode.getClientRects()[0]; - xe ? ie = { left: xe.left, right: xe.left + fo(o.display), top: xe.top, bottom: xe.bottom } : ie = bh; + if (d && p < 9 && !L && (!ne || !ne.left && !ne.right)) { + var Ee = O.parentNode.getClientRects()[0]; + Ee ? ne = { left: Ee.left, right: Ee.left + fo(o.display), top: Ee.top, bottom: Ee.bottom } : ne = bh; } - for (var Ce = ie.top - l.rect.top, Ie = ie.bottom - l.rect.top, Le = (Ce + Ie) / 2, Ue = l.view.measure.heights, Ye = 0; Ye < Ue.length - 1 && !(Le < Ue[Ye]); Ye++) + for (var Ce = ne.top - l.rect.top, Ie = ne.bottom - l.rect.top, Ne = (Ce + Ie) / 2, Ue = l.view.measure.heights, Ye = 0; Ye < Ue.length - 1 && !(Ne < Ue[Ye]); Ye++) ; - var tt = Ye ? Ue[Ye - 1] : 0, Qe = Ue[Ye], rt = { - left: (Q == "right" ? ie.right : ie.left) - l.rect.left, - right: (Q == "left" ? ie.left : ie.right) - l.rect.left, - top: tt, + var nt = Ye ? Ue[Ye - 1] : 0, Qe = Ue[Ye], ot = { + left: (Q == "right" ? ne.right : ne.left) - l.rect.left, + right: (Q == "left" ? ne.left : ne.right) - l.rect.left, + top: nt, bottom: Qe }; - return !ie.left && !ie.right && (rt.bogus = !0), o.options.singleCursorHeightPerLine || (rt.rtop = Ce, rt.rbottom = Ie), rt; + return !ne.left && !ne.right && (ot.bogus = !0), o.options.singleCursorHeightPerLine || (ot.rtop = Ce, ot.rbottom = Ie), ot; } function B1(o, l) { if (!window.screen || screen.logicalXDPI == null || screen.logicalXDPI == screen.deviceXDPI || !bl(o)) @@ -23776,7 +23783,7 @@ b`.split(/\n/).length != 3 ? function(o) { o.measure.caches[l] = {}; } function Ah(o) { - o.display.externalMeasure = null, K(o.display.lineMeasure); + o.display.externalMeasure = null, W(o.display.lineMeasure); for (var l = 0; l < o.display.view.length; l++) wh(o.display.view[l]); } @@ -23806,9 +23813,9 @@ b`.split(/\n/).length != 3 ? function(o) { f || (f = "local"); var L = Ji(l); if (f == "local" ? L += Ol(o.display) : L -= o.display.viewOffset, f == "page" || f == "window") { - var U = o.display.lineSpace.getBoundingClientRect(); - L += U.top + (f == "window" ? 0 : Sh(ve(o))); - var Q = U.left + (f == "window" ? 0 : Ch(ve(o))); + var j = o.display.lineSpace.getBoundingClientRect(); + L += j.top + (f == "window" ? 0 : Sh(te(o))); + var Q = j.left + (f == "window" ? 0 : Ch(te(o))); c.left += Q, c.right += Q; } return c.top += L, c.bottom += L, c; @@ -23818,7 +23825,7 @@ b`.split(/\n/).length != 3 ? function(o) { return l; var f = l.left, v = l.top; if (c == "page") - f -= Ch(ve(o)), v -= Sh(ve(o)); + f -= Ch(te(o)), v -= Sh(te(o)); else if (c == "local" || !c) { var O = o.display.sizer.getBoundingClientRect(); f += O.left, v += O.top; @@ -23827,28 +23834,28 @@ b`.split(/\n/).length != 3 ? function(o) { return { left: f - L.left, top: v - L.top }; } function Rl(o, l, c, f, v) { - return f || (f = st(o.doc, l.line)), $l(o, f, yh(o, f, l.ch, v), c); + return f || (f = ut(o.doc, l.line)), $l(o, f, yh(o, f, l.ch, v), c); } function wi(o, l, c, f, v, O) { - f = f || st(o.doc, l.line), v || (v = so(o, f)); - function L(Ie, Le) { - var Ue = Pi(o, v, Ie, Le ? "right" : "left", O); - return Le ? Ue.left = Ue.right : Ue.right = Ue.left, $l(o, f, Ue, c); + f = f || ut(o.doc, l.line), v || (v = so(o, f)); + function L(Ie, Ne) { + var Ue = Pi(o, v, Ie, Ne ? "right" : "left", O); + return Ne ? Ue.left = Ue.right : Ue.right = Ue.left, $l(o, f, Ue, c); } - var U = pt(f, o.doc.direction), Q = l.ch, ie = l.sticky; - if (Q >= f.text.length ? (Q = f.text.length, ie = "before") : Q <= 0 && (Q = 0, ie = "after"), !U) - return L(ie == "before" ? Q - 1 : Q, ie == "before"); - function ue(Ie, Le, Ue) { - var Ye = U[Le], tt = Ye.level == 1; - return L(Ue ? Ie - 1 : Ie, tt != Ue); + var j = ht(f, o.doc.direction), Q = l.ch, ne = l.sticky; + if (Q >= f.text.length ? (Q = f.text.length, ne = "before") : Q <= 0 && (Q = 0, ne = "after"), !j) + return L(ne == "before" ? Q - 1 : Q, ne == "before"); + function se(Ie, Ne, Ue) { + var Ye = j[Ne], nt = Ye.level == 1; + return L(Ue ? Ie - 1 : Ie, nt != Ue); } - var de = He(U, Q, ie), xe = dt, Ce = ue(Q, de, ie == "before"); - return xe != null && (Ce.other = ue(Q, xe, ie != "before")), Ce; + var de = je(j, Q, ne), Ee = ft, Ce = se(Q, de, ne == "before"); + return Ee != null && (Ce.other = se(Q, Ee, ne != "before")), Ce; } function xh(o, l) { var c = 0; l = _t(o.doc, l), o.options.lineWrapping || (c = fo(o.display) * l.ch); - var f = st(o.doc, l.line), v = Ji(f) + Ol(o.display); + var f = ut(o.doc, l.line), v = Ji(f) + Ol(o.display); return { left: c, right: c, top: v, bottom: v + f.height }; } function Gu(o, l, c, f, v) { @@ -23861,24 +23868,24 @@ b`.split(/\n/).length != 3 ? function(o) { return Gu(f.first, 0, null, -1, -1); var v = Di(f, c), O = f.first + f.size - 1; if (v > O) - return Gu(f.first + f.size - 1, st(f, O).text.length, null, 1, 1); + return Gu(f.first + f.size - 1, ut(f, O).text.length, null, 1, 1); l < 0 && (l = 0); - for (var L = st(f, v); ; ) { - var U = V1(o, L, v, l, c), Q = h1(L, U.ch + (U.xRel > 0 || U.outside > 0 ? 1 : 0)); + for (var L = ut(f, v); ; ) { + var j = V1(o, L, v, l, c), Q = h1(L, j.ch + (j.xRel > 0 || j.outside > 0 ? 1 : 0)); if (!Q) - return U; - var ie = Q.find(1); - if (ie.line == v) - return ie; - L = st(f, v = ie.line); + return j; + var ne = Q.find(1); + if (ne.line == v) + return ne; + L = ut(f, v = ne.line); } } function Th(o, l, c, f) { f -= Wu(l); - var v = l.text.length, O = Ze(function(L) { + var v = l.text.length, O = We(function(L) { return Pi(o, c, L - 1).bottom <= f; }, v, 0); - return v = Ze(function(L) { + return v = We(function(L) { return Pi(o, c, L).top > f; }, O, v), { begin: O, end: v }; } @@ -23892,86 +23899,86 @@ b`.split(/\n/).length != 3 ? function(o) { } function V1(o, l, c, f, v) { v -= Ji(l); - var O = so(o, l), L = Wu(l), U = 0, Q = l.text.length, ie = !0, ue = pt(l, o.doc.direction); - if (ue) { - var de = (o.options.lineWrapping ? U1 : j1)(o, l, c, O, ue, f, v); - ie = de.level != 1, U = ie ? de.from : de.to - 1, Q = ie ? de.to : de.from - 1; + var O = so(o, l), L = Wu(l), j = 0, Q = l.text.length, ne = !0, se = ht(l, o.doc.direction); + if (se) { + var de = (o.options.lineWrapping ? U1 : j1)(o, l, c, O, se, f, v); + ne = de.level != 1, j = ne ? de.from : de.to - 1, Q = ne ? de.to : de.from - 1; } - var xe = null, Ce = null, Ie = Ze(function(ht) { - var ft = Pi(o, O, ht); - return ft.top += L, ft.bottom += L, Yu(ft, f, v, !1) ? (ft.top <= v && ft.left <= f && (xe = ht, Ce = ft), !0) : !1; - }, U, Q), Le, Ue, Ye = !1; + var Ee = null, Ce = null, Ie = We(function(mt) { + var ct = Pi(o, O, mt); + return ct.top += L, ct.bottom += L, Yu(ct, f, v, !1) ? (ct.top <= v && ct.left <= f && (Ee = mt, Ce = ct), !0) : !1; + }, j, Q), Ne, Ue, Ye = !1; if (Ce) { - var tt = f - Ce.left < Ce.right - f, Qe = tt == ie; - Ie = xe + (Qe ? 0 : 1), Ue = Qe ? "after" : "before", Le = tt ? Ce.left : Ce.right; + var nt = f - Ce.left < Ce.right - f, Qe = nt == ne; + Ie = Ee + (Qe ? 0 : 1), Ue = Qe ? "after" : "before", Ne = nt ? Ce.left : Ce.right; } else { - !ie && (Ie == Q || Ie == U) && Ie++, Ue = Ie == 0 ? "after" : Ie == l.text.length ? "before" : Pi(o, O, Ie - (ie ? 1 : 0)).bottom + L <= v == ie ? "after" : "before"; - var rt = wi(o, ye(c, Ie, Ue), "line", l, O); - Le = rt.left, Ye = v < rt.top ? -1 : v >= rt.bottom ? 1 : 0; + !ne && (Ie == Q || Ie == j) && Ie++, Ue = Ie == 0 ? "after" : Ie == l.text.length ? "before" : Pi(o, O, Ie - (ne ? 1 : 0)).bottom + L <= v == ne ? "after" : "before"; + var ot = wi(o, ye(c, Ie, Ue), "line", l, O); + Ne = ot.left, Ye = v < ot.top ? -1 : v >= ot.bottom ? 1 : 0; } - return Ie = mt(l.text, Ie, 1), Gu(c, Ie, Ue, Ye, f - Le); + return Ie = at(l.text, Ie, 1), Gu(c, Ie, Ue, Ye, f - Ne); } function j1(o, l, c, f, v, O, L) { - var U = Ze(function(de) { - var xe = v[de], Ce = xe.level != 1; + var j = We(function(de) { + var Ee = v[de], Ce = Ee.level != 1; return Yu(wi( o, - ye(c, Ce ? xe.to : xe.from, Ce ? "before" : "after"), + ye(c, Ce ? Ee.to : Ee.from, Ce ? "before" : "after"), "line", l, f ), O, L, !0); - }, 0, v.length - 1), Q = v[U]; - if (U > 0) { - var ie = Q.level != 1, ue = wi( + }, 0, v.length - 1), Q = v[j]; + if (j > 0) { + var ne = Q.level != 1, se = wi( o, - ye(c, ie ? Q.from : Q.to, ie ? "after" : "before"), + ye(c, ne ? Q.from : Q.to, ne ? "after" : "before"), "line", l, f ); - Yu(ue, O, L, !0) && ue.top > L && (Q = v[U - 1]); + Yu(se, O, L, !0) && se.top > L && (Q = v[j - 1]); } return Q; } function U1(o, l, c, f, v, O, L) { - var U = Th(o, l, f, L), Q = U.begin, ie = U.end; - /\s/.test(l.text.charAt(ie - 1)) && ie--; - for (var ue = null, de = null, xe = 0; xe < v.length; xe++) { - var Ce = v[xe]; - if (!(Ce.from >= ie || Ce.to <= Q)) { - var Ie = Ce.level != 1, Le = Pi(o, f, Ie ? Math.min(ie, Ce.to) - 1 : Math.max(Q, Ce.from)).right, Ue = Le < O ? O - Le + 1e9 : Le - O; - (!ue || de > Ue) && (ue = Ce, de = Ue); + var j = Th(o, l, f, L), Q = j.begin, ne = j.end; + /\s/.test(l.text.charAt(ne - 1)) && ne--; + for (var se = null, de = null, Ee = 0; Ee < v.length; Ee++) { + var Ce = v[Ee]; + if (!(Ce.from >= ne || Ce.to <= Q)) { + var Ie = Ce.level != 1, Ne = Pi(o, f, Ie ? Math.min(ne, Ce.to) - 1 : Math.max(Q, Ce.from)).right, Ue = Ne < O ? O - Ne + 1e9 : Ne - O; + (!se || de > Ue) && (se = Ce, de = Ue); } } - return ue || (ue = v[v.length - 1]), ue.from < Q && (ue = { from: Q, to: ue.to, level: ue.level }), ue.to > ie && (ue = { from: ue.from, to: ie, level: ue.level }), ue; + return se || (se = v[v.length - 1]), se.from < Q && (se = { from: Q, to: se.to, level: se.level }), se.to > ne && (se = { from: se.from, to: ne, level: se.level }), se; } var Ir; function uo(o) { if (o.cachedTextHeight != null) return o.cachedTextHeight; if (Ir == null) { - Ir = R("pre", null, "CodeMirror-line-like"); + Ir = I("pre", null, "CodeMirror-line-like"); for (var l = 0; l < 49; ++l) - Ir.appendChild(document.createTextNode("x")), Ir.appendChild(R("br")); + Ir.appendChild(document.createTextNode("x")), Ir.appendChild(I("br")); Ir.appendChild(document.createTextNode("x")); } G(o.measure, Ir); var c = Ir.offsetHeight / 50; - return c > 3 && (o.cachedTextHeight = c), K(o.measure), c || 1; + return c > 3 && (o.cachedTextHeight = c), W(o.measure), c || 1; } function fo(o) { if (o.cachedCharWidth != null) return o.cachedCharWidth; - var l = R("span", "xxxxxxxxxx"), c = R("pre", [l], "CodeMirror-line-like"); + var l = I("span", "xxxxxxxxxx"), c = I("pre", [l], "CodeMirror-line-like"); G(o.measure, c); var f = l.getBoundingClientRect(), v = (f.right - f.left) / 10; return v > 2 && (o.cachedCharWidth = v), v || 10; } function Qu(o) { for (var l = o.display, c = {}, f = {}, v = l.gutters.clientLeft, O = l.gutters.firstChild, L = 0; O; O = O.nextSibling, ++L) { - var U = o.display.gutterSpecs[L].className; - c[U] = O.offsetLeft + O.clientLeft + v, f[U] = O.clientWidth; + var j = o.display.gutterSpecs[L].className; + c[j] = O.offsetLeft + O.clientLeft + v, f[j] = O.clientWidth; } return { fixedPos: Ju(l), @@ -24007,16 +24014,16 @@ b`.split(/\n/).length != 3 ? function(o) { var v = o.display; if (!c && Mn(l).getAttribute("cm-not-content") == "true") return null; - var O, L, U = v.lineSpace.getBoundingClientRect(); + var O, L, j = v.lineSpace.getBoundingClientRect(); try { - O = l.clientX - U.left, L = l.clientY - U.top; + O = l.clientX - j.left, L = l.clientY - j.top; } catch { return null; } - var Q = Ku(o, O, L), ie; - if (f && Q.xRel > 0 && (ie = st(o.doc, Q.line).text).length == Q.ch) { - var ue = me(ie, ie.length, o.options.tabSize) - ie.length; - Q = ye(Q.line, Math.max(0, Math.round((O - vh(o.display).left) / fo(o.display)) - ue)); + var Q = Ku(o, O, L), ne; + if (f && Q.xRel > 0 && (ne = ut(o.doc, Q.line).text).length == Q.ch) { + var se = ve(ne, ne.length, o.options.tabSize) - ne.length; + Q = ye(Q.line, Math.max(0, Math.round((O - vh(o.display).left) / fo(o.display)) - se)); } return Q; } @@ -24043,11 +24050,11 @@ b`.split(/\n/).length != 3 ? function(o) { var L = Dl(o, l, l, -1); L ? (v.view = v.view.slice(0, L.index), v.viewTo = L.lineN) : vr(o); } else { - var U = Dl(o, l, l, -1), Q = Dl(o, c, c + f, 1); - U && Q ? (v.view = v.view.slice(0, U.index).concat(kl(o, U.lineN, Q.lineN)).concat(v.view.slice(Q.index)), v.viewTo += f) : vr(o); + var j = Dl(o, l, l, -1), Q = Dl(o, c, c + f, 1); + j && Q ? (v.view = v.view.slice(0, j.index).concat(kl(o, j.lineN, Q.lineN)).concat(v.view.slice(Q.index)), v.viewTo += f) : vr(o); } - var ie = v.externalMeasured; - ie && (c < ie.lineN ? ie.lineN += f : l < ie.lineN + ie.size && (v.externalMeasured = null)); + var ne = v.externalMeasured; + ne && (c < ne.lineN ? ne.lineN += f : l < ne.lineN + ne.size && (v.externalMeasured = null)); } function mr(o, l, c) { o.curOp.viewChanged = !0; @@ -24056,7 +24063,7 @@ b`.split(/\n/).length != 3 ? function(o) { var O = f.view[Pr(o, l)]; if (O.node != null) { var L = O.changes || (O.changes = []); - ce(L, c) == -1 && L.push(c); + he(L, c) == -1 && L.push(c); } } } @@ -24067,15 +24074,15 @@ b`.split(/\n/).length != 3 ? function(o) { var v = Pr(o, l), O, L = o.display.view; if (!Qi || c == o.doc.first + o.doc.size) return { index: v, lineN: c }; - for (var U = o.display.viewFrom, Q = 0; Q < v; Q++) - U += L[Q].size; - if (U != l) { + for (var j = o.display.viewFrom, Q = 0; Q < v; Q++) + j += L[Q].size; + if (j != l) { if (f > 0) { if (v == L.length - 1) return null; - O = U + L[v].size - l, v++; + O = j + L[v].size - l, v++; } else - O = U - l; + O = j - l; l += O, c += O; } for (; Nu(o.doc, c) != c; ) { @@ -24103,70 +24110,70 @@ b`.split(/\n/).length != 3 ? function(o) { l === void 0 && (l = !0); var c = o.doc, f = {}, v = f.cursors = document.createDocumentFragment(), O = f.selection = document.createDocumentFragment(), L = o.options.$customCursor; L && (l = !0); - for (var U = 0; U < c.sel.ranges.length; U++) - if (!(!l && U == c.sel.primIndex)) { - var Q = c.sel.ranges[U]; + for (var j = 0; j < c.sel.ranges.length; j++) + if (!(!l && j == c.sel.primIndex)) { + var Q = c.sel.ranges[j]; if (!(Q.from().line >= o.display.viewTo || Q.to().line < o.display.viewFrom)) { - var ie = Q.empty(); + var ne = Q.empty(); if (L) { - var ue = L(o, Q); - ue && Zu(o, ue, v); + var se = L(o, Q); + se && Zu(o, se, v); } else - (ie || o.options.showCursorWhenSelecting) && Zu(o, Q.head, v); - ie || z1(o, Q, O); + (ne || o.options.showCursorWhenSelecting) && Zu(o, Q.head, v); + ne || z1(o, Q, O); } } return f; } function Zu(o, l, c) { - var f = wi(o, l, "div", null, null, !o.options.singleCursorHeightPerLine), v = c.appendChild(R("div", "\xA0", "CodeMirror-cursor")); + var f = wi(o, l, "div", null, null, !o.options.singleCursorHeightPerLine), v = c.appendChild(I("div", "\xA0", "CodeMirror-cursor")); if (v.style.left = f.left + "px", v.style.top = f.top + "px", v.style.height = Math.max(0, f.bottom - f.top) * o.options.cursorHeight + "px", /\bcm-fat-cursor\b/.test(o.getWrapperElement().className)) { var O = Rl(o, l, "div", null, null), L = O.right - O.left; v.style.width = (L > 0 ? L : o.defaultCharWidth()) + "px"; } if (f.other) { - var U = c.appendChild(R("div", "\xA0", "CodeMirror-cursor CodeMirror-secondarycursor")); - U.style.display = "", U.style.left = f.other.left + "px", U.style.top = f.other.top + "px", U.style.height = (f.other.bottom - f.other.top) * 0.85 + "px"; + var j = c.appendChild(I("div", "\xA0", "CodeMirror-cursor CodeMirror-secondarycursor")); + j.style.display = "", j.style.left = f.other.left + "px", j.style.top = f.other.top + "px", j.style.height = (f.other.bottom - f.other.top) * 0.85 + "px"; } } function Il(o, l) { return o.top - l.top || o.left - l.left; } function z1(o, l, c) { - var f = o.display, v = o.doc, O = document.createDocumentFragment(), L = vh(o.display), U = L.left, Q = Math.max(f.sizerWidth, Dr(o) - f.sizer.offsetLeft) - L.right, ie = v.direction == "ltr"; - function ue(Qe, rt, ht, ft) { - rt < 0 && (rt = 0), rt = Math.round(rt), ft = Math.round(ft), O.appendChild(R("div", null, "CodeMirror-selected", "position: absolute; left: " + Qe + `px; - top: ` + rt + "px; width: " + (ht == null ? Q - Qe : ht) + `px; - height: ` + (ft - rt) + "px")); + var f = o.display, v = o.doc, O = document.createDocumentFragment(), L = vh(o.display), j = L.left, Q = Math.max(f.sizerWidth, Dr(o) - f.sizer.offsetLeft) - L.right, ne = v.direction == "ltr"; + function se(Qe, ot, mt, ct) { + ot < 0 && (ot = 0), ot = Math.round(ot), ct = Math.round(ct), O.appendChild(I("div", null, "CodeMirror-selected", "position: absolute; left: " + Qe + `px; + top: ` + ot + "px; width: " + (mt == null ? Q - Qe : mt) + `px; + height: ` + (ct - ot) + "px")); } - function de(Qe, rt, ht) { - var ft = st(v, Qe), Et = ft.text.length, Vt, vn; + function de(Qe, ot, mt) { + var ct = ut(v, Qe), Et = ct.text.length, Vt, vn; function Jt(ln, Vn) { - return Rl(o, ye(Qe, ln), "div", ft, Vn); + return Rl(o, ye(Qe, ln), "div", ct, Vn); } function Gn(ln, Vn, An) { - var dn = kh(o, ft, null, ln), sn = Vn == "ltr" == (An == "after") ? "left" : "right", qt = An == "after" ? dn.begin : dn.end - (/\s/.test(ft.text.charAt(dn.end - 1)) ? 2 : 1); + var dn = kh(o, ct, null, ln), sn = Vn == "ltr" == (An == "after") ? "left" : "right", qt = An == "after" ? dn.begin : dn.end - (/\s/.test(ct.text.charAt(dn.end - 1)) ? 2 : 1); return Jt(qt, sn)[sn]; } - var Bn = pt(ft, v.direction); - return Ot(Bn, rt || 0, ht == null ? Et : ht, function(ln, Vn, An, dn) { - var sn = An == "ltr", qt = Jt(ln, sn ? "left" : "right"), jn = Jt(Vn - 1, sn ? "right" : "left"), So = rt == null && ln == 0, Ar = ht == null && Vn == Et, xn = dn == 0, Mi = !Bn || dn == Bn.length - 1; + var Bn = ht(ct, v.direction); + return $t(Bn, ot || 0, mt == null ? Et : mt, function(ln, Vn, An, dn) { + var sn = An == "ltr", qt = Jt(ln, sn ? "left" : "right"), jn = Jt(Vn - 1, sn ? "right" : "left"), So = ot == null && ln == 0, Ar = mt == null && Vn == Et, xn = dn == 0, Mi = !Bn || dn == Bn.length - 1; if (jn.top - qt.top <= 3) { - var gn = (ie ? So : Ar) && xn, Sd = (ie ? Ar : So) && Mi, er = gn ? U : (sn ? qt : jn).left, Vr = Sd ? Q : (sn ? jn : qt).right; - ue(er, qt.top, Vr - er, qt.bottom); + var gn = (ne ? So : Ar) && xn, Sd = (ne ? Ar : So) && Mi, er = gn ? j : (sn ? qt : jn).left, Vr = Sd ? Q : (sn ? jn : qt).right; + se(er, qt.top, Vr - er, qt.bottom); } else { var jr, $n, Eo, Ed; - sn ? (jr = ie && So && xn ? U : qt.left, $n = ie ? Q : Gn(ln, An, "before"), Eo = ie ? U : Gn(Vn, An, "after"), Ed = ie && Ar && Mi ? Q : jn.right) : (jr = ie ? Gn(ln, An, "before") : U, $n = !ie && So && xn ? Q : qt.right, Eo = !ie && Ar && Mi ? U : jn.left, Ed = ie ? Gn(Vn, An, "after") : Q), ue(jr, qt.top, $n - jr, qt.bottom), qt.bottom < jn.top && ue(U, qt.bottom, null, jn.top), ue(Eo, jn.top, Ed - Eo, jn.bottom); + sn ? (jr = ne && So && xn ? j : qt.left, $n = ne ? Q : Gn(ln, An, "before"), Eo = ne ? j : Gn(Vn, An, "after"), Ed = ne && Ar && Mi ? Q : jn.right) : (jr = ne ? Gn(ln, An, "before") : j, $n = !ne && So && xn ? Q : qt.right, Eo = !ne && Ar && Mi ? j : jn.left, Ed = ne ? Gn(Vn, An, "after") : Q), se(jr, qt.top, $n - jr, qt.bottom), qt.bottom < jn.top && se(j, qt.bottom, null, jn.top), se(Eo, jn.top, Ed - Eo, jn.bottom); } (!Vt || Il(qt, Vt) < 0) && (Vt = qt), Il(jn, Vt) < 0 && (Vt = jn), (!vn || Il(qt, vn) < 0) && (vn = qt), Il(jn, vn) < 0 && (vn = jn); }), { start: Vt, end: vn }; } - var xe = l.from(), Ce = l.to(); - if (xe.line == Ce.line) - de(xe.line, xe.ch, Ce.ch); + var Ee = l.from(), Ce = l.to(); + if (Ee.line == Ce.line) + de(Ee.line, Ee.ch, Ce.ch); else { - var Ie = st(v, xe.line), Le = st(v, Ce.line), Ue = _i(Ie) == _i(Le), Ye = de(xe.line, xe.ch, Ue ? Ie.text.length + 1 : null).end, tt = de(Ce.line, Ue ? 0 : null, Ce.ch).start; - Ue && (Ye.top < tt.top - 2 ? (ue(Ye.right, Ye.top, null, Ye.bottom), ue(U, tt.top, tt.left, tt.bottom)) : ue(Ye.right, Ye.top, tt.left - Ye.right, Ye.bottom)), Ye.bottom < tt.top && ue(U, Ye.bottom, null, tt.top); + var Ie = ut(v, Ee.line), Ne = ut(v, Ce.line), Ue = _i(Ie) == _i(Ne), Ye = de(Ee.line, Ee.ch, Ue ? Ie.text.length + 1 : null).end, nt = de(Ce.line, Ue ? 0 : null, Ce.ch).start; + Ue && (Ye.top < nt.top - 2 ? (se(Ye.right, Ye.top, null, Ye.bottom), se(j, nt.top, nt.left, nt.bottom)) : se(Ye.right, Ye.top, nt.left - Ye.right, Ye.bottom)), Ye.bottom < nt.top && se(j, Ye.bottom, null, nt.top); } c.appendChild(O); } @@ -24189,33 +24196,33 @@ b`.split(/\n/).length != 3 ? function(o) { }, 100); } function td(o, l) { - o.state.delayingBlurEvent && !o.state.draggingText && (o.state.delayingBlurEvent = !1), o.options.readOnly != "nocursor" && (o.state.focused || (at(o, "focus", o, l), o.state.focused = !0, Z(o.display.wrapper, "CodeMirror-focused"), !o.curOp && o.display.selForContextMenu != o.doc.sel && (o.display.input.reset(), h && setTimeout(function() { + o.state.delayingBlurEvent && !o.state.draggingText && (o.state.delayingBlurEvent = !1), o.options.readOnly != "nocursor" && (o.state.focused || (st(o, "focus", o, l), o.state.focused = !0, Z(o.display.wrapper, "CodeMirror-focused"), !o.curOp && o.display.selForContextMenu != o.doc.sel && (o.display.input.reset(), h && setTimeout(function() { return o.display.input.reset(!0); }, 20)), o.display.input.receivedFocus()), qu(o)); } function co(o, l) { - o.state.delayingBlurEvent || (o.state.focused && (at(o, "blur", o, l), o.state.focused = !1, V(o.display.wrapper, "CodeMirror-focused")), clearInterval(o.display.blinker), setTimeout(function() { + o.state.delayingBlurEvent || (o.state.focused && (st(o, "blur", o, l), o.state.focused = !1, V(o.display.wrapper, "CodeMirror-focused")), clearInterval(o.display.blinker), setTimeout(function() { o.state.focused || (o.display.shift = !1); }, 150)); } function Fl(o) { for (var l = o.display, c = l.lineDiv.offsetTop, f = Math.max(0, l.scroller.getBoundingClientRect().top), v = l.lineDiv.getBoundingClientRect().top, O = 0, L = 0; L < l.view.length; L++) { - var U = l.view[L], Q = o.options.lineWrapping, ie = void 0, ue = 0; - if (!U.hidden) { - if (v += U.line.height, d && p < 8) { - var de = U.node.offsetTop + U.node.offsetHeight; - ie = de - c, c = de; + var j = l.view[L], Q = o.options.lineWrapping, ne = void 0, se = 0; + if (!j.hidden) { + if (v += j.line.height, d && p < 8) { + var de = j.node.offsetTop + j.node.offsetHeight; + ne = de - c, c = de; } else { - var xe = U.node.getBoundingClientRect(); - ie = xe.bottom - xe.top, !Q && U.text.firstChild && (ue = U.text.firstChild.getBoundingClientRect().right - xe.left - 1); + var Ee = j.node.getBoundingClientRect(); + ne = Ee.bottom - Ee.top, !Q && j.text.firstChild && (se = j.text.firstChild.getBoundingClientRect().right - Ee.left - 1); } - var Ce = U.line.height - ie; - if ((Ce > 5e-3 || Ce < -5e-3) && (v < f && (O -= Ce), fi(U.line, ie), Ih(U.line), U.rest)) - for (var Ie = 0; Ie < U.rest.length; Ie++) - Ih(U.rest[Ie]); - if (ue > o.display.sizerWidth) { - var Le = Math.ceil(ue / fo(o.display)); - Le > o.display.maxLineLength && (o.display.maxLineLength = Le, o.display.maxLine = U.line, o.display.maxLineChanged = !0); + var Ce = j.line.height - ne; + if ((Ce > 5e-3 || Ce < -5e-3) && (v < f && (O -= Ce), fi(j.line, ne), Ih(j.line), j.rest)) + for (var Ie = 0; Ie < j.rest.length; Ie++) + Ih(j.rest[Ie]); + if (se > o.display.sizerWidth) { + var Ne = Math.ceil(se / fo(o.display)); + Ne > o.display.maxLineLength && (o.display.maxLineLength = Ne, o.display.maxLine = j.line, o.display.maxLineChanged = !0); } } } @@ -24233,8 +24240,8 @@ b`.split(/\n/).length != 3 ? function(o) { f = Math.floor(f - Ol(o)); var v = c && c.bottom != null ? c.bottom : f + o.wrapper.clientHeight, O = Di(l, f), L = Di(l, v); if (c && c.ensure) { - var U = c.ensure.from.line, Q = c.ensure.to.line; - U < O ? (O = U, L = Di(l, Ji(st(l, U)) + o.wrapper.clientHeight)) : Math.min(Q, l.lastLine()) >= L && (O = Di(l, Ji(st(l, Q)) - o.wrapper.clientHeight), L = Q); + var j = c.ensure.from.line, Q = c.ensure.to.line; + j < O ? (O = j, L = Di(l, Ji(ut(l, j)) + o.wrapper.clientHeight)) : Math.min(Q, l.lastLine()) >= L && (O = Di(l, Ji(ut(l, Q)) - o.wrapper.clientHeight), L = Q); } return { from: O, to: Math.max(L, O + 1) }; } @@ -24242,7 +24249,7 @@ b`.split(/\n/).length != 3 ? function(o) { if (!Ct(o, "scrollCursorIntoView")) { var c = o.display, f = c.sizer.getBoundingClientRect(), v = null, O = c.wrapper.ownerDocument; if (l.top + f.top < 0 ? v = !0 : l.bottom + f.top > (O.defaultView.innerHeight || O.documentElement.clientHeight) && (v = !1), v != null && !m) { - var L = R("div", "\u200B", null, `position: absolute; + var L = I("div", "\u200B", null, `position: absolute; top: ` + (l.top - c.viewOffset - Ol(o.display)) + `px; height: ` + (l.bottom - l.top + Fi(o) + c.barHeight) + `px; left: ` + l.left + "px; width: " + Math.max(2, l.right - l.left) + "px;"); @@ -24255,15 +24262,15 @@ b`.split(/\n/).length != 3 ? function(o) { var v; !o.options.lineWrapping && l == c && (c = l.sticky == "before" ? ye(l.line, l.ch + 1, "before") : l, l = l.ch ? ye(l.line, l.sticky == "before" ? l.ch - 1 : l.ch, "after") : l); for (var O = 0; O < 5; O++) { - var L = !1, U = wi(o, l), Q = !c || c == l ? U : wi(o, c); + var L = !1, j = wi(o, l), Q = !c || c == l ? j : wi(o, c); v = { - left: Math.min(U.left, Q.left), - top: Math.min(U.top, Q.top) - f, - right: Math.max(U.left, Q.left), - bottom: Math.max(U.bottom, Q.bottom) + f + left: Math.min(j.left, Q.left), + top: Math.min(j.top, Q.top) - f, + right: Math.max(j.left, Q.left), + bottom: Math.max(j.bottom, Q.bottom) + f }; - var ie = nd(o, v), ue = o.doc.scrollTop, de = o.doc.scrollLeft; - if (ie.scrollTop != null && (ma(o, ie.scrollTop), Math.abs(o.doc.scrollTop - ue) > 1 && (L = !0)), ie.scrollLeft != null && (Mr(o, ie.scrollLeft), Math.abs(o.doc.scrollLeft - de) > 1 && (L = !0)), !L) + var ne = nd(o, v), se = o.doc.scrollTop, de = o.doc.scrollLeft; + if (ne.scrollTop != null && (ma(o, ne.scrollTop), Math.abs(o.doc.scrollTop - se) > 1 && (L = !0)), ne.scrollLeft != null && (Mr(o, ne.scrollLeft), Math.abs(o.doc.scrollLeft - de) > 1 && (L = !0)), !L) break; } return v; @@ -24277,15 +24284,15 @@ b`.split(/\n/).length != 3 ? function(o) { l.top < 0 && (l.top = 0); var v = o.curOp && o.curOp.scrollTop != null ? o.curOp.scrollTop : c.scroller.scrollTop, O = Hu(o), L = {}; l.bottom - l.top > O && (l.bottom = l.top + O); - var U = o.doc.height + Uu(c), Q = l.top < f, ie = l.bottom > U - f; + var j = o.doc.height + Uu(c), Q = l.top < f, ne = l.bottom > j - f; if (l.top < v) L.scrollTop = Q ? 0 : l.top; else if (l.bottom > v + O) { - var ue = Math.min(l.top, (ie ? U : l.bottom) - O); - ue != v && (L.scrollTop = ue); + var se = Math.min(l.top, (ne ? j : l.bottom) - O); + se != v && (L.scrollTop = se); } - var de = o.options.fixedGutter ? 0 : c.gutters.offsetWidth, xe = o.curOp && o.curOp.scrollLeft != null ? o.curOp.scrollLeft : c.scroller.scrollLeft - de, Ce = Dr(o) - c.gutters.offsetWidth, Ie = l.right - l.left > Ce; - return Ie && (l.right = l.left + Ce), l.left < 10 ? L.scrollLeft = 0 : l.left < xe ? L.scrollLeft = Math.max(0, l.left + de - (Ie ? 0 : 10)) : l.right > Ce + xe - 3 && (L.scrollLeft = l.right + (Ie ? 0 : 10) - Ce), L; + var de = o.options.fixedGutter ? 0 : c.gutters.offsetWidth, Ee = o.curOp && o.curOp.scrollLeft != null ? o.curOp.scrollLeft : c.scroller.scrollLeft - de, Ce = Dr(o) - c.gutters.offsetWidth, Ie = l.right - l.left > Ce; + return Ie && (l.right = l.left + Ce), l.left < 10 ? L.scrollLeft = 0 : l.left < Ee ? L.scrollLeft = Math.max(0, l.left + de - (Ie ? 0 : 10)) : l.right > Ce + Ee - 3 && (L.scrollLeft = l.right + (Ie ? 0 : 10) - Ce), L; } function id(o, l) { l != null && (Ml(o), o.curOp.scrollTop = (o.curOp.scrollTop == null ? o.doc.scrollTop : o.curOp.scrollTop) + l); @@ -24344,7 +24351,7 @@ b`.split(/\n/).length != 3 ? function(o) { } var Lr = function(o, l, c) { this.cm = c; - var f = this.vert = R("div", [R("div", null, null, "min-width: 1px")], "CodeMirror-vscrollbar"), v = this.horiz = R("div", [R("div", null, null, "height: 100%; min-height: 1px")], "CodeMirror-hscrollbar"); + var f = this.vert = I("div", [I("div", null, null, "min-width: 1px")], "CodeMirror-vscrollbar"), v = this.horiz = I("div", [I("div", null, null, "height: 100%; min-height: 1px")], "CodeMirror-hscrollbar"); f.tabIndex = v.tabIndex = -1, o(f), o(v), $e(f, "scroll", function() { f.clientHeight && l(f.scrollTop, "vertical"); }), $e(v, "scroll", function() { @@ -24471,7 +24478,7 @@ b`.split(/\n/).length != 3 ? function(o) { function e_(o) { var l = o.cm; o.adjustWidthTo != null && (l.display.sizer.style.minWidth = o.adjustWidthTo + "px", o.maxScrollLeft < l.doc.scrollLeft && Mr(l, Math.min(l.display.scroller.scrollLeft, o.maxScrollLeft), !0), l.display.maxLineChanged = !1); - var c = o.focus && o.focus == q(ve(l)); + var c = o.focus && o.focus == q(te(l)); o.preparedSelection && l.display.input.showSelection(o.preparedSelection, c), (o.updatedDisplay || o.startHeight != l.doc.height) && ho(l, o.barMeasure), o.updatedDisplay && ld(l, o.barMeasure), o.selectionChanged && qu(l), l.state.focused && o.updateInput && l.display.input.reset(o.typing), c && Dh(o.cm); } function t_(o) { @@ -24487,12 +24494,12 @@ b`.split(/\n/).length != 3 ? function(o) { } var O = o.maybeHiddenMarkers, L = o.maybeUnhiddenMarkers; if (O) - for (var U = 0; U < O.length; ++U) - O[U].lines.length || at(O[U], "hide"); + for (var j = 0; j < O.length; ++j) + O[j].lines.length || st(O[j], "hide"); if (L) for (var Q = 0; Q < L.length; ++Q) - L[Q].lines.length && at(L[Q], "unhide"); - c.wrapper.offsetHeight && (f.scrollTop = l.display.scroller.scrollTop), o.changeObjs && at(l, "changes", l, o.changeObjs), o.update && o.update.finish(); + L[Q].lines.length && st(L[Q], "unhide"); + c.wrapper.offsetHeight && (f.scrollTop = l.display.scroller.scrollTop), o.changeObjs && st(l, "changes", l, o.changeObjs), o.update && o.update.finish(); } function Wn(o, l) { if (o.curOp) @@ -24542,7 +24549,7 @@ b`.split(/\n/).length != 3 ? function(o) { }; } function ya(o, l) { - o.doc.highlightFrontier < o.display.viewTo && o.state.highlight.set(l, Te(n_, o)); + o.doc.highlightFrontier < o.display.viewTo && o.state.highlight.set(l, ke(n_, o)); } function n_(o) { var l = o.doc; @@ -24550,12 +24557,12 @@ b`.split(/\n/).length != 3 ? function(o) { var c = +new Date() + o.options.workTime, f = la(o, l.highlightFrontier), v = []; l.iter(f.line, Math.min(l.first + l.size, o.display.viewTo + 500), function(O) { if (f.line >= o.display.viewFrom) { - var L = O.styles, U = O.text.length > o.options.maxHighlightLength ? Ki(l.mode, f.state) : null, Q = Gp(o, O, f, !0); - U && (f.state = U), O.styles = Q.styles; - var ie = O.styleClasses, ue = Q.classes; - ue ? O.styleClasses = ue : ie && (O.styleClasses = null); - for (var de = !L || L.length != O.styles.length || ie != ue && (!ie || !ue || ie.bgClass != ue.bgClass || ie.textClass != ue.textClass), xe = 0; !de && xe < L.length; ++xe) - de = L[xe] != O.styles[xe]; + var L = O.styles, j = O.text.length > o.options.maxHighlightLength ? Ki(l.mode, f.state) : null, Q = Gp(o, O, f, !0); + j && (f.state = j), O.styles = Q.styles; + var ne = O.styleClasses, se = Q.classes; + se ? O.styleClasses = se : ne && (O.styleClasses = null); + for (var de = !L || L.length != O.styles.length || ne != se && (!ne || !se || ne.bgClass != se.bgClass || ne.textClass != se.textClass), Ee = 0; !de && Ee < L.length; ++Ee) + de = L[Ee] != O.styles[Ee]; de && v.push(f.line), O.stateAfter = f.save(), f.nextLine(); } else O.text.length <= o.options.maxHighlightLength && Fu(o, O.text, f), O.stateAfter = f.line % 5 == 0 ? f.save() : null, f.nextLine(); @@ -24575,7 +24582,7 @@ b`.split(/\n/).length != 3 ? function(o) { Qt(o, l) && this.events.push(arguments); }, Ll.prototype.finish = function() { for (var o = 0; o < this.events.length; o++) - at.apply(null, this.events[o]); + st.apply(null, this.events[o]); }; function i_(o) { var l = o.display; @@ -24584,18 +24591,18 @@ b`.split(/\n/).length != 3 ? function(o) { function r_(o) { if (o.hasFocus()) return null; - var l = q(ve(o)); - if (!l || !F(o.display.lineDiv, l)) + var l = q(te(o)); + if (!l || !C(o.display.lineDiv, l)) return null; var c = { activeElt: l }; if (window.getSelection) { var f = pe(o).getSelection(); - f.anchorNode && f.extend && F(o.display.lineDiv, f.anchorNode) && (c.anchorNode = f.anchorNode, c.anchorOffset = f.anchorOffset, c.focusNode = f.focusNode, c.focusOffset = f.focusOffset); + f.anchorNode && f.extend && C(o.display.lineDiv, f.anchorNode) && (c.anchorNode = f.anchorNode, c.anchorOffset = f.anchorOffset, c.focusNode = f.focusNode, c.focusOffset = f.focusOffset); } return c; } function o_(o) { - if (!(!o || !o.activeElt || o.activeElt == q(o.activeElt.ownerDocument)) && (o.activeElt.focus(), !/^(INPUT|TEXTAREA)$/.test(o.activeElt.nodeName) && o.anchorNode && F(document.body, o.anchorNode) && F(document.body, o.focusNode))) { + if (!(!o || !o.activeElt || o.activeElt == q(o.activeElt.ownerDocument)) && (o.activeElt.focus(), !/^(INPUT|TEXTAREA)$/.test(o.activeElt.nodeName) && o.anchorNode && C(document.body, o.anchorNode) && C(document.body, o.focusNode))) { var l = o.activeElt.ownerDocument, c = l.defaultView.getSelection(), f = l.createRange(); f.setEnd(o.anchorNode, o.anchorOffset), f.collapse(!1), c.removeAllRanges(), c.addRange(f), c.extend(o.focusNode, o.focusOffset); } @@ -24609,13 +24616,13 @@ b`.split(/\n/).length != 3 ? function(o) { jh(o) && (vr(o), l.dims = Qu(o)); var v = f.first + f.size, O = Math.max(l.visible.from - o.options.viewportMargin, f.first), L = Math.min(v, l.visible.to + o.options.viewportMargin); c.viewFrom < O && O - c.viewFrom < 20 && (O = Math.max(f.first, c.viewFrom)), c.viewTo > L && c.viewTo - L < 20 && (L = Math.min(v, c.viewTo)), Qi && (O = Nu(o.doc, O), L = ah(o.doc, L)); - var U = O != c.viewFrom || L != c.viewTo || c.lastWrapHeight != l.wrapperHeight || c.lastWrapWidth != l.wrapperWidth; - H1(o, O, L), c.viewOffset = Ji(st(o.doc, c.viewFrom)), o.display.mover.style.top = c.viewOffset + "px"; + var j = O != c.viewFrom || L != c.viewTo || c.lastWrapHeight != l.wrapperHeight || c.lastWrapWidth != l.wrapperWidth; + H1(o, O, L), c.viewOffset = Ji(ut(o.doc, c.viewFrom)), o.display.mover.style.top = c.viewOffset + "px"; var Q = $h(o); - if (!U && Q == 0 && !l.force && c.renderedView == c.view && (c.updateLineNumbers == null || c.updateLineNumbers >= c.viewTo)) + if (!j && Q == 0 && !l.force && c.renderedView == c.view && (c.updateLineNumbers == null || c.updateLineNumbers >= c.viewTo)) return !1; - var ie = r_(o); - return Q > 4 && (c.lineDiv.style.display = "none"), a_(o, c.updateLineNumbers, l.dims), Q > 4 && (c.lineDiv.style.display = ""), c.renderedView = c.view, o_(ie), K(c.cursorDiv), K(c.selectionDiv), c.gutters.style.height = c.sizer.style.minHeight = 0, U && (c.lastWrapHeight = l.wrapperHeight, c.lastWrapWidth = l.wrapperWidth, ya(o, 400)), c.updateLineNumbers = null, !0; + var ne = r_(o); + return Q > 4 && (c.lineDiv.style.display = "none"), a_(o, c.updateLineNumbers, l.dims), Q > 4 && (c.lineDiv.style.display = ""), c.renderedView = c.view, o_(ne), W(c.cursorDiv), W(c.selectionDiv), c.gutters.style.height = c.sizer.style.minHeight = 0, j && (c.lastWrapHeight = l.wrapperHeight, c.lastWrapWidth = l.wrapperWidth, ya(o, 400)), c.updateLineNumbers = null, !0; } function Bh(o, l) { for (var c = l.viewport, f = !0; ; f = !1) { @@ -24642,26 +24649,26 @@ b`.split(/\n/).length != 3 ? function(o) { } function a_(o, l, c) { var f = o.display, v = o.options.lineNumbers, O = f.lineDiv, L = O.firstChild; - function U(Ie) { - var Le = Ie.nextSibling; - return h && k && o.display.currentWheelTarget == Ie ? Ie.style.display = "none" : Ie.parentNode.removeChild(Ie), Le; + function j(Ie) { + var Ne = Ie.nextSibling; + return h && k && o.display.currentWheelTarget == Ie ? Ie.style.display = "none" : Ie.parentNode.removeChild(Ie), Ne; } - for (var Q = f.view, ie = f.viewFrom, ue = 0; ue < Q.length; ue++) { - var de = Q[ue]; + for (var Q = f.view, ne = f.viewFrom, se = 0; se < Q.length; se++) { + var de = Q[se]; if (!de.hidden) if (!de.node || de.node.parentNode != O) { - var xe = I1(o, de, ie, c); - O.insertBefore(xe, L); + var Ee = I1(o, de, ne, c); + O.insertBefore(Ee, L); } else { for (; L != de.node; ) - L = U(L); - var Ce = v && l != null && l <= ie && de.lineNumber; - de.changes && (ce(de.changes, "gutter") > -1 && (Ce = !1), fh(o, de, ie, c)), Ce && (K(de.lineNumber), de.lineNumber.appendChild(document.createTextNode(fe(o.options, ie)))), L = de.node.nextSibling; + L = j(L); + var Ce = v && l != null && l <= ne && de.lineNumber; + de.changes && (he(de.changes, "gutter") > -1 && (Ce = !1), fh(o, de, ne, c)), Ce && (W(de.lineNumber), de.lineNumber.appendChild(document.createTextNode(ce(o.options, ne)))), L = de.node.nextSibling; } - ie += de.size; + ne += de.size; } for (; L; ) - L = U(L); + L = j(L); } function ad(o) { var l = o.gutters.offsetWidth; @@ -24676,10 +24683,10 @@ b`.split(/\n/).length != 3 ? function(o) { for (var f = Ju(l) - l.scroller.scrollLeft + o.doc.scrollLeft, v = l.gutters.offsetWidth, O = f + "px", L = 0; L < c.length; L++) if (!c[L].hidden) { o.options.fixedGutter && (c[L].gutter && (c[L].gutter.style.left = O), c[L].gutterBackground && (c[L].gutterBackground.style.left = O)); - var U = c[L].alignable; - if (U) - for (var Q = 0; Q < U.length; Q++) - U[Q].style.left = O; + var j = c[L].alignable; + if (j) + for (var Q = 0; Q < j.length; Q++) + j[Q].style.left = O; } o.options.fixedGutter && (l.gutters.style.left = f + v + "px"); } @@ -24687,11 +24694,11 @@ b`.split(/\n/).length != 3 ? function(o) { function jh(o) { if (!o.options.lineNumbers) return !1; - var l = o.doc, c = fe(o.options, l.first + l.size - 1), f = o.display; + var l = o.doc, c = ce(o.options, l.first + l.size - 1), f = o.display; if (c.length != f.lineNumChars) { - var v = f.measure.appendChild(R( + var v = f.measure.appendChild(I( "div", - [R("div", c)], + [I("div", c)], "CodeMirror-linenumber CodeMirror-gutter-elt" )), O = v.firstChild.offsetWidth, L = v.offsetWidth - O; return f.lineGutter.style.width = "", f.lineNumInnerWidth = Math.max(O, f.lineGutter.offsetWidth - L) + 1, f.lineNumWidth = f.lineNumInnerWidth + L, f.lineNumChars = f.lineNumInnerWidth ? c.length : -1, f.lineGutter.style.width = f.lineNumWidth + "px", ad(o.display), !0; @@ -24712,10 +24719,10 @@ b`.split(/\n/).length != 3 ? function(o) { } function Uh(o) { var l = o.gutters, c = o.gutterSpecs; - K(l), o.lineGutter = null; + W(l), o.lineGutter = null; for (var f = 0; f < c.length; ++f) { - var v = c[f], O = v.className, L = v.style, U = l.appendChild(R("div", null, "CodeMirror-gutter " + O)); - L && (U.style.cssText = L), O == "CodeMirror-linenumbers" && (o.lineGutter = U, U.style.width = (o.lineNumWidth || 1) + "px"); + var v = c[f], O = v.className, L = v.style, j = l.appendChild(I("div", null, "CodeMirror-gutter " + O)); + L && (j.style.cssText = L), O == "CodeMirror-linenumbers" && (o.lineGutter = j, j.style.width = (o.lineNumWidth || 1) + "px"); } l.style.display = c.length ? "" : "none", ad(o); } @@ -24724,14 +24731,14 @@ b`.split(/\n/).length != 3 ? function(o) { } function l_(o, l, c, f) { var v = this; - this.input = c, v.scrollbarFiller = R("div", null, "CodeMirror-scrollbar-filler"), v.scrollbarFiller.setAttribute("cm-not-content", "true"), v.gutterFiller = R("div", null, "CodeMirror-gutter-filler"), v.gutterFiller.setAttribute("cm-not-content", "true"), v.lineDiv = z("div", null, "CodeMirror-code"), v.selectionDiv = R("div", null, null, "position: relative; z-index: 1"), v.cursorDiv = R("div", null, "CodeMirror-cursors"), v.measure = R("div", null, "CodeMirror-measure"), v.lineMeasure = R("div", null, "CodeMirror-measure"), v.lineSpace = z( + this.input = c, v.scrollbarFiller = I("div", null, "CodeMirror-scrollbar-filler"), v.scrollbarFiller.setAttribute("cm-not-content", "true"), v.gutterFiller = I("div", null, "CodeMirror-gutter-filler"), v.gutterFiller.setAttribute("cm-not-content", "true"), v.lineDiv = U("div", null, "CodeMirror-code"), v.selectionDiv = I("div", null, null, "position: relative; z-index: 1"), v.cursorDiv = I("div", null, "CodeMirror-cursors"), v.measure = I("div", null, "CodeMirror-measure"), v.lineMeasure = I("div", null, "CodeMirror-measure"), v.lineSpace = U( "div", [v.measure, v.lineMeasure, v.selectionDiv, v.cursorDiv, v.lineDiv], null, "position: relative; outline: none" ); - var O = z("div", [v.lineSpace], "CodeMirror-lines"); - v.mover = R("div", [O], null, "position: relative"), v.sizer = R("div", [v.mover], "CodeMirror-sizer"), v.sizerWidth = null, v.heightForcer = R("div", null, null, "position: absolute; height: " + Se + "px; width: 1px;"), v.gutters = R("div", null, "CodeMirror-gutters"), v.lineGutter = null, v.scroller = R("div", [v.sizer, v.heightForcer, v.gutters], "CodeMirror-scroll"), v.scroller.setAttribute("tabIndex", "-1"), v.wrapper = R("div", [v.scrollbarFiller, v.gutterFiller, v.scroller], "CodeMirror"), v.wrapper.setAttribute("translate", "no"), d && p < 8 && (v.gutters.style.zIndex = -1, v.scroller.style.paddingRight = 0), !h && !(n && x) && (v.scroller.draggable = !0), o && (o.appendChild ? o.appendChild(v.wrapper) : o(v.wrapper)), v.viewFrom = v.viewTo = l.first, v.reportedViewFrom = v.reportedViewTo = l.first, v.view = [], v.renderedView = null, v.externalMeasured = null, v.viewOffset = 0, v.lastWrapHeight = v.lastWrapWidth = 0, v.updateLineNumbers = null, v.nativeBarWidth = v.barHeight = v.barWidth = 0, v.scrollbarsClipped = !1, v.lineNumWidth = v.lineNumInnerWidth = v.lineNumChars = null, v.alignWidgets = !1, v.cachedCharWidth = v.cachedTextHeight = v.cachedPaddingH = null, v.maxLine = null, v.maxLineLength = 0, v.maxLineChanged = !1, v.wheelDX = v.wheelDY = v.wheelStartX = v.wheelStartY = null, v.shift = !1, v.selForContextMenu = null, v.activeTouch = null, v.gutterSpecs = sd(f.gutters, f.lineNumbers), Uh(v), c.init(v); + var O = U("div", [v.lineSpace], "CodeMirror-lines"); + v.mover = I("div", [O], null, "position: relative"), v.sizer = I("div", [v.mover], "CodeMirror-sizer"), v.sizerWidth = null, v.heightForcer = I("div", null, null, "position: absolute; height: " + Se + "px; width: 1px;"), v.gutters = I("div", null, "CodeMirror-gutters"), v.lineGutter = null, v.scroller = I("div", [v.sizer, v.heightForcer, v.gutters], "CodeMirror-scroll"), v.scroller.setAttribute("tabIndex", "-1"), v.wrapper = I("div", [v.scrollbarFiller, v.gutterFiller, v.scroller], "CodeMirror"), v.wrapper.setAttribute("translate", "no"), d && p < 8 && (v.gutters.style.zIndex = -1, v.scroller.style.paddingRight = 0), !h && !(n && x) && (v.scroller.draggable = !0), o && (o.appendChild ? o.appendChild(v.wrapper) : o(v.wrapper)), v.viewFrom = v.viewTo = l.first, v.reportedViewFrom = v.reportedViewTo = l.first, v.view = [], v.renderedView = null, v.externalMeasured = null, v.viewOffset = 0, v.lastWrapHeight = v.lastWrapWidth = 0, v.updateLineNumbers = null, v.nativeBarWidth = v.barHeight = v.barWidth = 0, v.scrollbarsClipped = !1, v.lineNumWidth = v.lineNumInnerWidth = v.lineNumChars = null, v.alignWidgets = !1, v.cachedCharWidth = v.cachedTextHeight = v.cachedPaddingH = null, v.maxLine = null, v.maxLineLength = 0, v.maxLineChanged = !1, v.wheelDX = v.wheelDY = v.wheelStartX = v.wheelStartY = null, v.shift = !1, v.selForContextMenu = null, v.activeTouch = null, v.gutterSpecs = sd(f.gutters, f.lineNumbers), Uh(v), c.init(v); } var Nl = 0, Zi = null; d ? Zi = -0.53 : n ? Zi = 15 : _ ? Zi = -0.7 : A && (Zi = -1 / 3); @@ -24749,29 +24756,29 @@ b`.split(/\n/).length != 3 ? function(o) { }, 100)); var c = Hh(l), f = c.x, v = c.y, O = Zi; l.deltaMode === 0 && (f = l.deltaX, v = l.deltaY, O = 1); - var L = o.display, U = L.scroller, Q = U.scrollWidth > U.clientWidth, ie = U.scrollHeight > U.clientHeight; - if (!!(f && Q || v && ie)) { + var L = o.display, j = L.scroller, Q = j.scrollWidth > j.clientWidth, ne = j.scrollHeight > j.clientHeight; + if (!!(f && Q || v && ne)) { if (v && k && h) { e: - for (var ue = l.target, de = L.view; ue != U; ue = ue.parentNode) - for (var xe = 0; xe < de.length; xe++) - if (de[xe].node == ue) { - o.display.currentWheelTarget = ue; + for (var se = l.target, de = L.view; se != j; se = se.parentNode) + for (var Ee = 0; Ee < de.length; Ee++) + if (de[Ee].node == se) { + o.display.currentWheelTarget = se; break e; } } if (f && !n && !b && O != null) { - v && ie && ma(o, Math.max(0, U.scrollTop + v * O)), Mr(o, Math.max(0, U.scrollLeft + f * O)), (!v || v && ie) && It(l), L.wheelStartX = null; + v && ne && ma(o, Math.max(0, j.scrollTop + v * O)), Mr(o, Math.max(0, j.scrollLeft + f * O)), (!v || v && ne) && It(l), L.wheelStartX = null; return; } if (v && O != null) { - var Ce = v * O, Ie = o.doc.scrollTop, Le = Ie + L.wrapper.clientHeight; - Ce < 0 ? Ie = Math.max(0, Ie + Ce - 50) : Le = Math.min(o.doc.height, Le + Ce + 50), od(o, { top: Ie, bottom: Le }); + var Ce = v * O, Ie = o.doc.scrollTop, Ne = Ie + L.wrapper.clientHeight; + Ce < 0 ? Ie = Math.max(0, Ie + Ce - 50) : Ne = Math.min(o.doc.height, Ne + Ce + 50), od(o, { top: Ie, bottom: Ne }); } - Nl < 20 && l.deltaMode !== 0 && (L.wheelStartX == null ? (L.wheelStartX = U.scrollLeft, L.wheelStartY = U.scrollTop, L.wheelDX = f, L.wheelDY = v, setTimeout(function() { + Nl < 20 && l.deltaMode !== 0 && (L.wheelStartX == null ? (L.wheelStartX = j.scrollLeft, L.wheelStartY = j.scrollTop, L.wheelDX = f, L.wheelDY = v, setTimeout(function() { if (L.wheelStartX != null) { - var Ue = U.scrollLeft - L.wheelStartX, Ye = U.scrollTop - L.wheelStartY, tt = Ye && L.wheelDY && Ye / L.wheelDY || Ue && L.wheelDX && Ue / L.wheelDX; - L.wheelStartX = L.wheelStartY = null, tt && (Zi = (Zi * Nl + tt) / (Nl + 1), ++Nl); + var Ue = j.scrollLeft - L.wheelStartX, Ye = j.scrollTop - L.wheelStartY, nt = Ye && L.wheelDY && Ye / L.wheelDY || Ue && L.wheelDX && Ue / L.wheelDX; + L.wheelStartX = L.wheelStartY = null, nt && (Zi = (Zi * Nl + nt) / (Nl + 1), ++Nl); } }, 200)) : (L.wheelDX += f, L.wheelDY += v)); } @@ -24794,7 +24801,7 @@ b`.split(/\n/).length != 3 ? function(o) { return !0; }, ei.prototype.deepCopy = function() { for (var o = [], l = 0; l < this.ranges.length; l++) - o[l] = new Pt($t(this.ranges[l].anchor), $t(this.ranges[l].head)); + o[l] = new Pt(Ot(this.ranges[l].anchor), Ot(this.ranges[l].head)); return new ei(o, this.primIndex); }, ei.prototype.somethingSelected = function() { for (var o = 0; o < this.ranges.length; o++) @@ -24805,7 +24812,7 @@ b`.split(/\n/).length != 3 ? function(o) { l || (l = o); for (var c = 0; c < this.ranges.length; c++) { var f = this.ranges[c]; - if (Re(l, f.from()) >= 0 && Re(o, f.to()) <= 0) + if (De(l, f.from()) >= 0 && De(o, f.to()) <= 0) return c; } return -1; @@ -24822,14 +24829,14 @@ b`.split(/\n/).length != 3 ? function(o) { }; function Ai(o, l, c) { var f = o && o.options.selectionsMayTouch, v = l[c]; - l.sort(function(xe, Ce) { - return Re(xe.from(), Ce.from()); - }), c = ce(l, v); + l.sort(function(Ee, Ce) { + return De(Ee.from(), Ce.from()); + }), c = he(l, v); for (var O = 1; O < l.length; O++) { - var L = l[O], U = l[O - 1], Q = Re(U.to(), L.from()); + var L = l[O], j = l[O - 1], Q = De(j.to(), L.from()); if (f && !L.empty() ? Q > 0 : Q >= 0) { - var ie = un(U.from(), L.from()), ue = Rt(U.to(), L.to()), de = U.empty() ? L.from() == L.head : U.from() == U.head; - O <= c && --c, l.splice(--O, 2, new Pt(de ? ue : ie, de ? ie : ue)); + var ne = un(j.from(), L.from()), se = Rt(j.to(), L.to()), de = j.empty() ? L.from() == L.head : j.from() == j.head; + O <= c && --c, l.splice(--O, 2, new Pt(de ? se : ne, de ? ne : se)); } } return new ei(l, c); @@ -24844,9 +24851,9 @@ b`.split(/\n/).length != 3 ? function(o) { ) : o.to; } function Wh(o, l) { - if (Re(o, l.from) < 0) + if (De(o, l.from) < 0) return o; - if (Re(o, l.to) <= 0) + if (De(o, l.to) <= 0) return yr(l); var c = o.line + l.text.length - (l.to.line - l.from.line) - 1, f = o.ch; return o.line == l.to.line && (f += yr(l).ch - l.to.ch), ye(c, f); @@ -24866,10 +24873,10 @@ b`.split(/\n/).length != 3 ? function(o) { } function u_(o, l, c) { for (var f = [], v = ye(o.first, 0), O = v, L = 0; L < l.length; L++) { - var U = l[L], Q = Gh(U.from, v, O), ie = Gh(yr(U), v, O); - if (v = U.to, O = ie, c == "around") { - var ue = o.sel.ranges[L], de = Re(ue.head, ue.anchor) < 0; - f[L] = new Pt(de ? ie : Q, de ? Q : ie); + var j = l[L], Q = Gh(j.from, v, O), ne = Gh(yr(j), v, O); + if (v = j.to, O = ne, c == "around") { + var se = o.sel.ranges[L], de = De(se.head, se.anchor) < 0; + f[L] = new Pt(de ? ne : Q, de ? Q : ne); } else f[L] = new Pt(Q, Q); } @@ -24887,47 +24894,47 @@ b`.split(/\n/).length != 3 ? function(o) { return l.from.ch == 0 && l.to.ch == 0 && Ae(l.text) == "" && (!o.cm || o.cm.options.wholeLineUpdateBefore); } function fd(o, l, c, f) { - function v(tt) { - return c ? c[tt] : null; + function v(nt) { + return c ? c[nt] : null; } - function O(tt, Qe, rt) { - g1(tt, Qe, rt, f), pn(tt, "change", tt, l); + function O(nt, Qe, ot) { + g1(nt, Qe, ot, f), pn(nt, "change", nt, l); } - function L(tt, Qe) { - for (var rt = [], ht = tt; ht < Qe; ++ht) - rt.push(new ao(ie[ht], v(ht), f)); - return rt; + function L(nt, Qe) { + for (var ot = [], mt = nt; mt < Qe; ++mt) + ot.push(new ao(ne[mt], v(mt), f)); + return ot; } - var U = l.from, Q = l.to, ie = l.text, ue = st(o, U.line), de = st(o, Q.line), xe = Ae(ie), Ce = v(ie.length - 1), Ie = Q.line - U.line; + var j = l.from, Q = l.to, ne = l.text, se = ut(o, j.line), de = ut(o, Q.line), Ee = Ae(ne), Ce = v(ne.length - 1), Ie = Q.line - j.line; if (l.full) - o.insert(0, L(0, ie.length)), o.remove(ie.length, o.size - ie.length); + o.insert(0, L(0, ne.length)), o.remove(ne.length, o.size - ne.length); else if (Kh(o, l)) { - var Le = L(0, ie.length - 1); - O(de, de.text, Ce), Ie && o.remove(U.line, Ie), Le.length && o.insert(U.line, Le); - } else if (ue == de) - if (ie.length == 1) - O(ue, ue.text.slice(0, U.ch) + xe + ue.text.slice(Q.ch), Ce); + var Ne = L(0, ne.length - 1); + O(de, de.text, Ce), Ie && o.remove(j.line, Ie), Ne.length && o.insert(j.line, Ne); + } else if (se == de) + if (ne.length == 1) + O(se, se.text.slice(0, j.ch) + Ee + se.text.slice(Q.ch), Ce); else { - var Ue = L(1, ie.length - 1); - Ue.push(new ao(xe + ue.text.slice(Q.ch), Ce, f)), O(ue, ue.text.slice(0, U.ch) + ie[0], v(0)), o.insert(U.line + 1, Ue); + var Ue = L(1, ne.length - 1); + Ue.push(new ao(Ee + se.text.slice(Q.ch), Ce, f)), O(se, se.text.slice(0, j.ch) + ne[0], v(0)), o.insert(j.line + 1, Ue); } - else if (ie.length == 1) - O(ue, ue.text.slice(0, U.ch) + ie[0] + de.text.slice(Q.ch), v(0)), o.remove(U.line + 1, Ie); + else if (ne.length == 1) + O(se, se.text.slice(0, j.ch) + ne[0] + de.text.slice(Q.ch), v(0)), o.remove(j.line + 1, Ie); else { - O(ue, ue.text.slice(0, U.ch) + ie[0], v(0)), O(de, xe + de.text.slice(Q.ch), Ce); - var Ye = L(1, ie.length - 1); - Ie > 1 && o.remove(U.line + 1, Ie - 1), o.insert(U.line + 1, Ye); + O(se, se.text.slice(0, j.ch) + ne[0], v(0)), O(de, Ee + de.text.slice(Q.ch), Ce); + var Ye = L(1, ne.length - 1); + Ie > 1 && o.remove(j.line + 1, Ie - 1), o.insert(j.line + 1, Ye); } pn(o, "change", o, l); } function br(o, l, c) { function f(v, O, L) { if (v.linked) - for (var U = 0; U < v.linked.length; ++U) { - var Q = v.linked[U]; + for (var j = 0; j < v.linked.length; ++j) { + var Q = v.linked[j]; if (Q.doc != O) { - var ie = L && Q.sharedHist; - c && !ie || (l(Q.doc, ie), f(Q.doc, v, ie)); + var ne = L && Q.sharedHist; + c && !ne || (l(Q.doc, ne), f(Q.doc, v, ne)); } } } @@ -24950,7 +24957,7 @@ b`.split(/\n/).length != 3 ? function(o) { this.done = [], this.undone = [], this.undoDepth = o ? o.undoDepth : 1 / 0, this.lastModTime = this.lastSelTime = 0, this.lastOp = this.lastSelOp = null, this.lastOrigin = this.lastSelOrigin = null, this.generation = this.maxGeneration = o ? o.maxGeneration : 1; } function cd(o, l) { - var c = { from: $t(l.from), to: yr(l), text: Yi(o, l.from, l.to) }; + var c = { from: Ot(l.from), to: yr(l), text: Yi(o, l.from, l.to) }; return Zh(o, c, l.from.line, l.to.line + 1), br(o, function(f) { return Zh(f, c, l.from.line, l.to.line + 1); }, !0), c; @@ -24975,9 +24982,9 @@ b`.split(/\n/).length != 3 ? function(o) { function Xh(o, l, c, f) { var v = o.history; v.undone.length = 0; - var O = +new Date(), L, U; + var O = +new Date(), L, j; if ((v.lastOp == f || v.lastOrigin == l.origin && l.origin && (l.origin.charAt(0) == "+" && v.lastModTime > O - (o.cm ? o.cm.options.historyEventDelay : 500) || l.origin.charAt(0) == "*")) && (L = f_(v, v.lastOp == f))) - U = Ae(L.changes), Re(l.from, l.to) == 0 && Re(l.from, U.to) == 0 ? U.to = yr(l) : L.changes.push(cd(o, l)); + j = Ae(L.changes), De(l.from, l.to) == 0 && De(l.from, j.to) == 0 ? j.to = yr(l) : L.changes.push(cd(o, l)); else { var Q = Ae(v.done); for ((!Q || !Q.ranges) && Vl(o.sel, v.done), L = { @@ -24986,7 +24993,7 @@ b`.split(/\n/).length != 3 ? function(o) { }, v.done.push(L); v.done.length > v.undoDepth; ) v.done.shift(), v.done[0].ranges || v.done.shift(); } - v.done.push(c), v.generation = ++v.maxGeneration, v.lastModTime = v.lastSelTime = O, v.lastOp = v.lastSelOp = f, v.lastOrigin = v.lastSelOrigin = l.origin, U || at(o, "historyAdded"); + v.done.push(c), v.generation = ++v.maxGeneration, v.lastModTime = v.lastSelTime = O, v.lastOp = v.lastSelOp = f, v.lastOrigin = v.lastSelOrigin = l.origin, j || st(o, "historyAdded"); } function c_(o, l, c, f) { var v = l.charAt(0); @@ -25031,9 +25038,9 @@ b`.split(/\n/).length != 3 ? function(o) { var O = c[v], L = f[v]; if (O && L) { e: - for (var U = 0; U < L.length; ++U) { - for (var Q = L[U], ie = 0; ie < O.length; ++ie) - if (O[ie].marker == Q.marker) + for (var j = 0; j < L.length; ++j) { + for (var Q = L[j], ne = 0; ne < O.length; ++ne) + if (O[ne].marker == Q.marker) continue e; O.push(Q); } @@ -25049,13 +25056,13 @@ b`.split(/\n/).length != 3 ? function(o) { f.push(c ? ei.prototype.deepCopy.call(O) : O); continue; } - var L = O.changes, U = []; - f.push({ changes: U }); + var L = O.changes, j = []; + f.push({ changes: j }); for (var Q = 0; Q < L.length; ++Q) { - var ie = L[Q], ue = void 0; - if (U.push({ from: ie.from, to: ie.to, text: ie.text }), l) - for (var de in ie) - (ue = de.match(/^spans_(\d+)$/)) && ce(l, Number(ue[1])) > -1 && (Ae(U)[de] = ie[de], delete ie[de]); + var ne = L[Q], se = void 0; + if (j.push({ from: ne.from, to: ne.to, text: ne.text }), l) + for (var de in ne) + (se = de.match(/^spans_(\d+)$/)) && he(l, Number(se[1])) > -1 && (Ae(j)[de] = ne[de], delete ne[de]); } } return f; @@ -25064,8 +25071,8 @@ b`.split(/\n/).length != 3 ? function(o) { if (f) { var v = o.anchor; if (c) { - var O = Re(l, v) < 0; - O != Re(c, v) < 0 ? (v = l, l = c) : O != Re(l, c) < 0 && (l = c); + var O = De(l, v) < 0; + O != De(c, v) < 0 ? (v = l, l = c) : O != De(l, c) < 0 && (l = c); } return new Pt(v, l); } else @@ -25100,7 +25107,7 @@ b`.split(/\n/).length != 3 ? function(o) { }, origin: c && c.origin }; - return at(o, "beforeSelectionChange", o, f), o.cm && at(o.cm, "beforeSelectionChange", o.cm, f), f.ranges != l.ranges ? Ai(o.cm, f.ranges, f.ranges.length - 1) : l; + return st(o, "beforeSelectionChange", o, f), o.cm && st(o.cm, "beforeSelectionChange", o.cm, f), f.ranges != l.ranges ? Ai(o.cm, f.ranges, f.ranges.length - 1) : l; } function nm(o, l, c) { var f = o.history.done, v = Ae(f); @@ -25111,7 +25118,7 @@ b`.split(/\n/).length != 3 ? function(o) { } function Ul(o, l, c) { (Qt(o, "beforeSelectionChange") || o.cm && Qt(o.cm, "beforeSelectionChange")) && (l = v_(o, l, c)); - var f = c && c.bias || (Re(l.primary().head, o.sel.primary().head) < 0 ? -1 : 1); + var f = c && c.bias || (De(l.primary().head, o.sel.primary().head) < 0 ? -1 : 1); im(o, om(o, l, f, !0)), !(c && c.scroll === !1) && o.cm && o.cm.getOption("readOnly") != "nocursor" && po(o.cm); } function im(o, l) { @@ -25122,18 +25129,18 @@ b`.split(/\n/).length != 3 ? function(o) { } function om(o, l, c, f) { for (var v, O = 0; O < l.ranges.length; O++) { - var L = l.ranges[O], U = l.ranges.length == o.sel.ranges.length && o.sel.ranges[O], Q = Hl(o, L.anchor, U && U.anchor, c, f), ie = L.head == L.anchor ? Q : Hl(o, L.head, U && U.head, c, f); - (v || Q != L.anchor || ie != L.head) && (v || (v = l.ranges.slice(0, O)), v[O] = new Pt(Q, ie)); + var L = l.ranges[O], j = l.ranges.length == o.sel.ranges.length && o.sel.ranges[O], Q = Hl(o, L.anchor, j && j.anchor, c, f), ne = L.head == L.anchor ? Q : Hl(o, L.head, j && j.head, c, f); + (v || Q != L.anchor || ne != L.head) && (v || (v = l.ranges.slice(0, O)), v[O] = new Pt(Q, ne)); } return v ? Ai(o.cm, v, l.primIndex) : l; } function vo(o, l, c, f, v) { - var O = st(o, l.line); + var O = ut(o, l.line); if (O.markedSpans) for (var L = 0; L < O.markedSpans.length; ++L) { - var U = O.markedSpans[L], Q = U.marker, ie = "selectLeft" in Q ? !Q.selectLeft : Q.inclusiveLeft, ue = "selectRight" in Q ? !Q.selectRight : Q.inclusiveRight; - if ((U.from == null || (ie ? U.from <= l.ch : U.from < l.ch)) && (U.to == null || (ue ? U.to >= l.ch : U.to > l.ch))) { - if (v && (at(Q, "beforeCursorEnter"), Q.explicitlyCleared)) + var j = O.markedSpans[L], Q = j.marker, ne = "selectLeft" in Q ? !Q.selectLeft : Q.inclusiveLeft, se = "selectRight" in Q ? !Q.selectRight : Q.inclusiveRight; + if ((j.from == null || (ne ? j.from <= l.ch : j.from < l.ch)) && (j.to == null || (se ? j.to >= l.ch : j.to > l.ch))) { + if (v && (st(Q, "beforeCursorEnter"), Q.explicitlyCleared)) if (O.markedSpans) { --L; continue; @@ -25142,12 +25149,12 @@ b`.split(/\n/).length != 3 ? function(o) { if (!Q.atomic) continue; if (c) { - var de = Q.find(f < 0 ? 1 : -1), xe = void 0; - if ((f < 0 ? ue : ie) && (de = am(o, de, -f, de && de.line == l.line ? O : null)), de && de.line == l.line && (xe = Re(de, c)) && (f < 0 ? xe < 0 : xe > 0)) + var de = Q.find(f < 0 ? 1 : -1), Ee = void 0; + if ((f < 0 ? se : ne) && (de = am(o, de, -f, de && de.line == l.line ? O : null)), de && de.line == l.line && (Ee = De(de, c)) && (f < 0 ? Ee < 0 : Ee > 0)) return vo(o, de, l, f, v); } var Ce = Q.find(f < 0 ? -1 : 1); - return (f < 0 ? ie : ue) && (Ce = am(o, Ce, f, Ce.line == l.line ? O : null)), Ce ? vo(o, Ce, l, f, v) : null; + return (f < 0 ? ne : se) && (Ce = am(o, Ce, f, Ce.line == l.line ? O : null)), Ce ? vo(o, Ce, l, f, v) : null; } } return l; @@ -25157,10 +25164,10 @@ b`.split(/\n/).length != 3 ? function(o) { return L || (o.cantEdit = !0, ye(o.first, 0)); } function am(o, l, c, f) { - return c < 0 && l.ch == 0 ? l.line > o.first ? _t(o, ye(l.line - 1)) : null : c > 0 && l.ch == (f || st(o, l.line)).text.length ? l.line < o.first + o.size - 1 ? ye(l.line + 1, 0) : null : new ye(l.line, l.ch + c); + return c < 0 && l.ch == 0 ? l.line > o.first ? _t(o, ye(l.line - 1)) : null : c > 0 && l.ch == (f || ut(o, l.line)).text.length ? l.line < o.first + o.size - 1 ? ye(l.line + 1, 0) : null : new ye(l.line, l.ch + c); } function lm(o) { - o.setSelection(ye(o.firstLine(), 0), ye(o.lastLine()), j); + o.setSelection(ye(o.firstLine(), 0), ye(o.lastLine()), $); } function sm(o, l, c) { var f = { @@ -25173,9 +25180,9 @@ b`.split(/\n/).length != 3 ? function(o) { return f.canceled = !0; } }; - return c && (f.update = function(v, O, L, U) { - v && (f.from = _t(o, v)), O && (f.to = _t(o, O)), L && (f.text = L), U !== void 0 && (f.origin = U); - }), at(o, "beforeChange", o, f), o.cm && at(o.cm, "beforeChange", o.cm, f), f.canceled ? (o.cm && (o.cm.curOp.updateInput = 2), null) : { from: f.from, to: f.to, text: f.text, origin: f.origin }; + return c && (f.update = function(v, O, L, j) { + v && (f.from = _t(o, v)), O && (f.to = _t(o, O)), L && (f.text = L), j !== void 0 && (f.origin = j); + }), st(o, "beforeChange", o, f), o.cm && st(o.cm, "beforeChange", o.cm, f), f.canceled ? (o.cm && (o.cm.curOp.updateInput = 2), null) : { from: f.from, to: f.to, text: f.text, origin: f.origin }; } function go(o, l, c) { if (o.cm) { @@ -25194,48 +25201,48 @@ b`.split(/\n/).length != 3 ? function(o) { } } function um(o, l) { - if (!(l.text.length == 1 && l.text[0] == "" && Re(l.from, l.to) == 0)) { + if (!(l.text.length == 1 && l.text[0] == "" && De(l.from, l.to) == 0)) { var c = ud(o, l); Xh(o, l, c, o.cm ? o.cm.curOp.id : NaN), wa(o, l, c, Mu(o, l)); var f = []; br(o, function(v, O) { - !O && ce(f, v.history) == -1 && (pm(v.history, l), f.push(v.history)), wa(v, l, null, Mu(v, l)); + !O && he(f, v.history) == -1 && (pm(v.history, l), f.push(v.history)), wa(v, l, null, Mu(v, l)); }); } } function zl(o, l, c) { var f = o.cm && o.cm.state.suppressEdits; if (!(f && !c)) { - for (var v = o.history, O, L = o.sel, U = l == "undo" ? v.done : v.undone, Q = l == "undo" ? v.undone : v.done, ie = 0; ie < U.length && (O = U[ie], !(c ? O.ranges && !O.equals(o.sel) : !O.ranges)); ie++) + for (var v = o.history, O, L = o.sel, j = l == "undo" ? v.done : v.undone, Q = l == "undo" ? v.undone : v.done, ne = 0; ne < j.length && (O = j[ne], !(c ? O.ranges && !O.equals(o.sel) : !O.ranges)); ne++) ; - if (ie != U.length) { + if (ne != j.length) { for (v.lastOrigin = v.lastSelOrigin = null; ; ) - if (O = U.pop(), O.ranges) { + if (O = j.pop(), O.ranges) { if (Vl(O, Q), c && !O.equals(o.sel)) { En(o, O, { clearRedo: !1 }); return; } L = O; } else if (f) { - U.push(O); + j.push(O); return; } else break; - var ue = []; - Vl(L, Q), Q.push({ changes: ue, generation: v.generation }), v.generation = O.generation || ++v.maxGeneration; - for (var de = Qt(o, "beforeChange") || o.cm && Qt(o.cm, "beforeChange"), xe = function(Le) { - var Ue = O.changes[Le]; + var se = []; + Vl(L, Q), Q.push({ changes: se, generation: v.generation }), v.generation = O.generation || ++v.maxGeneration; + for (var de = Qt(o, "beforeChange") || o.cm && Qt(o.cm, "beforeChange"), Ee = function(Ne) { + var Ue = O.changes[Ne]; if (Ue.origin = l, de && !sm(o, Ue, !1)) - return U.length = 0, {}; - ue.push(cd(o, Ue)); - var Ye = Le ? ud(o, Ue) : Ae(U); - wa(o, Ue, Ye, qh(o, Ue)), !Le && o.cm && o.cm.scrollIntoView({ from: Ue.from, to: yr(Ue) }); - var tt = []; - br(o, function(Qe, rt) { - !rt && ce(tt, Qe.history) == -1 && (pm(Qe.history, Ue), tt.push(Qe.history)), wa(Qe, Ue, null, qh(Qe, Ue)); + return j.length = 0, {}; + se.push(cd(o, Ue)); + var Ye = Ne ? ud(o, Ue) : Ae(j); + wa(o, Ue, Ye, qh(o, Ue)), !Ne && o.cm && o.cm.scrollIntoView({ from: Ue.from, to: yr(Ue) }); + var nt = []; + br(o, function(Qe, ot) { + !ot && he(nt, Qe.history) == -1 && (pm(Qe.history, Ue), nt.push(Qe.history)), wa(Qe, Ue, null, qh(Qe, Ue)); }); }, Ce = O.changes.length - 1; Ce >= 0; --Ce) { - var Ie = xe(Ce); + var Ie = Ee(Ce); if (Ie) return Ie.v; } @@ -25243,7 +25250,7 @@ b`.split(/\n/).length != 3 ? function(o) { } } function dm(o, l) { - if (l != 0 && (o.first += l, o.sel = new ei(Be(o.sel.ranges, function(v) { + if (l != 0 && (o.first += l, o.sel = new ei(Fe(o.sel.ranges, function(v) { return new Pt( ye(v.anchor.line + l, v.anchor.ch), ye(v.head.line + l, v.head.ch) @@ -25274,39 +25281,39 @@ b`.split(/\n/).length != 3 ? function(o) { var O = o.lastLine(); l.to.line > O && (l = { from: l.from, - to: ye(O, st(o, O).text.length), + to: ye(O, ut(o, O).text.length), text: [l.text[0]], origin: l.origin - }), l.removed = Yi(o, l.from, l.to), c || (c = ud(o, l)), o.cm ? g_(o.cm, l, f) : fd(o, l, f), Ul(o, c, j), o.cantEdit && Hl(o, ye(o.firstLine(), 0)) && (o.cantEdit = !1); + }), l.removed = Yi(o, l.from, l.to), c || (c = ud(o, l)), o.cm ? g_(o.cm, l, f) : fd(o, l, f), Ul(o, c, $), o.cantEdit && Hl(o, ye(o.firstLine(), 0)) && (o.cantEdit = !1); } } function g_(o, l, c) { - var f = o.doc, v = o.display, O = l.from, L = l.to, U = !1, Q = O.line; - o.options.lineWrapping || (Q = Ft(_i(st(f, O.line))), f.iter(Q, L.line + 1, function(Ce) { + var f = o.doc, v = o.display, O = l.from, L = l.to, j = !1, Q = O.line; + o.options.lineWrapping || (Q = Ft(_i(ut(f, O.line))), f.iter(Q, L.line + 1, function(Ce) { if (Ce == v.maxLine) - return U = !0, !0; + return j = !0, !0; })), f.sel.contains(l.from, l.to) > -1 && Pn(o), fd(f, l, c, Oh(o)), o.options.lineWrapping || (f.iter(Q, O.line + l.text.length, function(Ce) { var Ie = Tl(Ce); - Ie > v.maxLineLength && (v.maxLine = Ce, v.maxLineLength = Ie, v.maxLineChanged = !0, U = !1); - }), U && (o.curOp.updateMaxLine = !0)), a1(f, O.line), ya(o, 400); - var ie = l.text.length - (L.line - O.line) - 1; - l.full ? Ln(o) : O.line == L.line && l.text.length == 1 && !Kh(o.doc, l) ? mr(o, O.line, "text") : Ln(o, O.line, L.line + 1, ie); - var ue = Qt(o, "changes"), de = Qt(o, "change"); - if (de || ue) { - var xe = { + Ie > v.maxLineLength && (v.maxLine = Ce, v.maxLineLength = Ie, v.maxLineChanged = !0, j = !1); + }), j && (o.curOp.updateMaxLine = !0)), a1(f, O.line), ya(o, 400); + var ne = l.text.length - (L.line - O.line) - 1; + l.full ? Ln(o) : O.line == L.line && l.text.length == 1 && !Kh(o.doc, l) ? mr(o, O.line, "text") : Ln(o, O.line, L.line + 1, ne); + var se = Qt(o, "changes"), de = Qt(o, "change"); + if (de || se) { + var Ee = { from: O, to: L, text: l.text, removed: l.removed, origin: l.origin }; - de && pn(o, "change", o, xe), ue && (o.curOp.changeObjs || (o.curOp.changeObjs = [])).push(xe); + de && pn(o, "change", o, Ee), se && (o.curOp.changeObjs || (o.curOp.changeObjs = [])).push(Ee); } o.display.selForContextMenu = null; } function yo(o, l, c, f, v) { var O; - f || (f = c), Re(f, c) < 0 && (O = [f, c], c = O[0], f = O[1]), typeof l == "string" && (l = o.splitLines(l)), go(o, { from: c, to: f, text: l, origin: v }); + f || (f = c), De(f, c) < 0 && (O = [f, c], c = O[0], f = O[1]), typeof l == "string" && (l = o.splitLines(l)), go(o, { from: c, to: f, text: l, origin: v }); } function fm(o, l, c, f) { c < o.line ? o.line += f : l < o.line && (o.line = l, o.ch = 0); @@ -25316,15 +25323,15 @@ b`.split(/\n/).length != 3 ? function(o) { var O = o[v], L = !0; if (O.ranges) { O.copied || (O = o[v] = O.deepCopy(), O.copied = !0); - for (var U = 0; U < O.ranges.length; U++) - fm(O.ranges[U].anchor, l, c, f), fm(O.ranges[U].head, l, c, f); + for (var j = 0; j < O.ranges.length; j++) + fm(O.ranges[j].anchor, l, c, f), fm(O.ranges[j].head, l, c, f); continue; } for (var Q = 0; Q < O.changes.length; ++Q) { - var ie = O.changes[Q]; - if (c < ie.from.line) - ie.from = ye(ie.from.line + f, ie.from.ch), ie.to = ye(ie.to.line + f, ie.to.ch); - else if (l <= ie.to.line) { + var ne = O.changes[Q]; + if (c < ne.from.line) + ne.from = ye(ne.from.line + f, ne.from.ch), ne.to = ye(ne.to.line + f, ne.to.ch); + else if (l <= ne.to.line) { L = !1; break; } @@ -25338,7 +25345,7 @@ b`.split(/\n/).length != 3 ? function(o) { } function Aa(o, l, c, f) { var v = l, O = l; - return typeof l == "number" ? O = st(o, qn(o, l)) : v = Ft(l), v == null ? null : (f(O, v) && o.cm && mr(o.cm, v, c), O); + return typeof l == "number" ? O = ut(o, qn(o, l)) : v = Ft(l), v == null ? null : (f(O, v) && o.cm && mr(o.cm, v, c), O); } function Ca(o) { this.lines = o, this.parent = null; @@ -25396,8 +25403,8 @@ b`.split(/\n/).length != 3 ? function(o) { o -= v; } if (this.size - l < 25 && (this.children.length > 1 || !(this.children[0] instanceof Ca))) { - var U = []; - this.collapse(U), this.children = [new Ca(U)], this.children[0].parent = this; + var j = []; + this.collapse(j), this.children = [new Ca(j)], this.children[0].parent = this; } }, collapse: function(o) { @@ -25410,8 +25417,8 @@ b`.split(/\n/).length != 3 ? function(o) { var v = this.children[f], O = v.chunkSize(); if (o <= O) { if (v.insertInner(o, l, c), v.lines && v.lines.length > 50) { - for (var L = v.lines.length % 25 + 25, U = L; U < v.lines.length; ) { - var Q = new Ca(v.lines.slice(U, U += 25)); + for (var L = v.lines.length % 25 + 25, j = L; j < v.lines.length; ) { + var Q = new Ca(v.lines.slice(j, j += 25)); v.height -= Q.height, this.children.splice(++f, 0, Q), Q.parent = this; } v.lines = v.lines.slice(0, L), this.maybeSpill(); @@ -25428,7 +25435,7 @@ b`.split(/\n/).length != 3 ? function(o) { var l = o.children.splice(o.children.length - 5, 5), c = new Sa(l); if (o.parent) { o.size -= c.size, o.height -= c.height; - var v = ce(o.parent.children, o); + var v = he(o.parent.children, o); o.parent.children.splice(v + 1, 0, c); } else { var f = new Sa(o.children); @@ -25485,8 +25492,8 @@ b`.split(/\n/).length != 3 ? function(o) { function y_(o, l, c, f) { var v = new Ea(o, c, f), O = o.cm; return O && v.noHScroll && (O.display.alignWidgets = !0), Aa(o, l, "widget", function(L) { - var U = L.widgets || (L.widgets = []); - if (v.insertAt == null ? U.push(v) : U.splice(Math.min(U.length, Math.max(0, v.insertAt)), 0, v), v.line = L, O && !hr(o, L)) { + var j = L.widgets || (L.widgets = []); + if (v.insertAt == null ? j.push(v) : j.splice(Math.min(j.length, Math.max(0, v.insertAt)), 0, v), v.line = L, O && !hr(o, L)) { var Q = Ji(L) < o.scrollTop; fi(L, L.height + fa(v)), Q && id(O, v.height), O.curOp.forceUpdate = !0; } @@ -25504,13 +25511,13 @@ b`.split(/\n/).length != 3 ? function(o) { c && pn(this, "clear", c.from, c.to); } for (var f = null, v = null, O = 0; O < this.lines.length; ++O) { - var L = this.lines[O], U = sa(L.markedSpans, this); - o && !this.collapsed ? mr(o, Ft(L), "text") : o && (U.to != null && (v = Ft(L)), U.from != null && (f = Ft(L))), L.markedSpans = u1(L.markedSpans, U), U.from == null && this.collapsed && !hr(this.doc, L) && o && fi(L, uo(o.display)); + var L = this.lines[O], j = sa(L.markedSpans, this); + o && !this.collapsed ? mr(o, Ft(L), "text") : o && (j.to != null && (v = Ft(L)), j.from != null && (f = Ft(L))), L.markedSpans = u1(L.markedSpans, j), j.from == null && this.collapsed && !hr(this.doc, L) && o && fi(L, uo(o.display)); } if (o && this.collapsed && !o.options.lineWrapping) for (var Q = 0; Q < this.lines.length; ++Q) { - var ie = _i(this.lines[Q]), ue = Tl(ie); - ue > o.display.maxLineLength && (o.display.maxLine = ie, o.display.maxLineLength = ue, o.display.maxLineChanged = !0); + var ne = _i(this.lines[Q]), se = Tl(ne); + se > o.display.maxLineLength && (o.display.maxLine = ne, o.display.maxLineLength = se, o.display.maxLineChanged = !0); } f != null && o && this.collapsed && Ln(o, f, v + 1), this.lines.length = 0, this.explicitlyCleared = !0, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = !1, o && rm(o.doc)), o && pn(o, "markerCleared", o, this, f, v), l && Br(o), this.parent && this.parent.clear(); } @@ -25529,9 +25536,9 @@ b`.split(/\n/).length != 3 ? function(o) { !l || !f || Wn(f, function() { var v = l.line, O = Ft(l.line), L = zu(f, O); if (L && (wh(L), f.curOp.selectionChanged = f.curOp.forceUpdate = !0), f.curOp.updateMaxLine = !0, !hr(c.doc, v) && c.height != null) { - var U = c.height; + var j = c.height; c.height = null; - var Q = fa(c) - U; + var Q = fa(c) - j; Q && fi(v, v.height + Q); } pn(f, "markerChanged", f, o); @@ -25539,11 +25546,11 @@ b`.split(/\n/).length != 3 ? function(o) { }, _r.prototype.attachLine = function(o) { if (!this.lines.length && this.doc.cm) { var l = this.doc.cm.curOp; - (!l.maybeHiddenMarkers || ce(l.maybeHiddenMarkers, this) == -1) && (l.maybeUnhiddenMarkers || (l.maybeUnhiddenMarkers = [])).push(this); + (!l.maybeHiddenMarkers || he(l.maybeHiddenMarkers, this) == -1) && (l.maybeUnhiddenMarkers || (l.maybeUnhiddenMarkers = [])).push(this); } this.lines.push(o); }, _r.prototype.detachLine = function(o) { - if (this.lines.splice(ce(this.lines, o), 1), !this.lines.length && this.doc.cm) { + if (this.lines.splice(he(this.lines, o), 1), !this.lines.length && this.doc.cm) { var l = this.doc.cm.curOp; (l.maybeHiddenMarkers || (l.maybeHiddenMarkers = [])).push(this); } @@ -25553,32 +25560,32 @@ b`.split(/\n/).length != 3 ? function(o) { return b_(o, l, c, f, v); if (o.cm && !o.cm.curOp) return hn(o.cm, bo)(o, l, c, f, v); - var O = new _r(o, v), L = Re(l, c); + var O = new _r(o, v), L = De(l, c); if (f && ge(f, O, !1), L > 0 || L == 0 && O.clearWhenEmpty !== !1) return O; - if (O.replacedWith && (O.collapsed = !0, O.widgetNode = z("span", [O.replacedWith], "CodeMirror-widget"), f.handleMouseEvents || O.widgetNode.setAttribute("cm-ignore-events", "true"), f.insertLeft && (O.widgetNode.insertLeft = !0)), O.collapsed) { + if (O.replacedWith && (O.collapsed = !0, O.widgetNode = U("span", [O.replacedWith], "CodeMirror-widget"), f.handleMouseEvents || O.widgetNode.setAttribute("cm-ignore-events", "true"), f.insertLeft && (O.widgetNode.insertLeft = !0)), O.collapsed) { if (oh(o, l.line, l, c, O) || l.line != c.line && oh(o, c.line, l, c, O)) throw new Error("Inserting collapsed marker partially overlapping an existing one"); s1(); } O.addToHistory && Xh(o, { from: l, to: c, origin: "markText" }, o.sel, NaN); - var U = l.line, Q = o.cm, ie; - if (o.iter(U, c.line + 1, function(de) { - Q && O.collapsed && !Q.options.lineWrapping && _i(de) == Q.display.maxLine && (ie = !0), O.collapsed && U != l.line && fi(de, 0), d1(de, new Cl( + var j = l.line, Q = o.cm, ne; + if (o.iter(j, c.line + 1, function(de) { + Q && O.collapsed && !Q.options.lineWrapping && _i(de) == Q.display.maxLine && (ne = !0), O.collapsed && j != l.line && fi(de, 0), d1(de, new Cl( O, - U == l.line ? l.ch : null, - U == c.line ? c.ch : null - ), o.cm && o.cm.curOp), ++U; + j == l.line ? l.ch : null, + j == c.line ? c.ch : null + ), o.cm && o.cm.curOp), ++j; }), O.collapsed && o.iter(l.line, c.line + 1, function(de) { hr(o, de) && fi(de, 0); }), O.clearOnEnter && $e(O, "beforeCursorEnter", function() { return O.clear(); }), O.readOnly && (l1(), (o.history.done.length || o.history.undone.length) && o.clearHistory()), O.collapsed && (O.id = ++mm, O.atomic = !0), Q) { - if (ie && (Q.curOp.updateMaxLine = !0), O.collapsed) + if (ne && (Q.curOp.updateMaxLine = !0), O.collapsed) Ln(Q, l.line, c.line + 1); else if (O.className || O.startStyle || O.endStyle || O.css || O.attributes || O.title) - for (var ue = l.line; ue <= c.line; ue++) - mr(Q, ue, "text"); + for (var se = l.line; se <= c.line; se++) + mr(Q, se, "text"); O.atomic && rm(Q.doc), pn(Q, "markerAdded", Q, O); } return O; @@ -25600,11 +25607,11 @@ b`.split(/\n/).length != 3 ? function(o) { }, zt(xa); function b_(o, l, c, f, v) { f = ge(f), f.shared = !1; - var O = [bo(o, l, c, f, v)], L = O[0], U = f.widgetNode; + var O = [bo(o, l, c, f, v)], L = O[0], j = f.widgetNode; return br(o, function(Q) { - U && (f.widgetNode = U.cloneNode(!0)), O.push(bo(Q, _t(Q, l), _t(Q, c), f, v)); - for (var ie = 0; ie < Q.linked.length; ++ie) - if (Q.linked[ie].isParent) + j && (f.widgetNode = j.cloneNode(!0)), O.push(bo(Q, _t(Q, l), _t(Q, c), f, v)); + for (var ne = 0; ne < Q.linked.length; ++ne) + if (Q.linked[ne].isParent) return; L = Ae(O); }), new xa(O, L); @@ -25617,9 +25624,9 @@ b`.split(/\n/).length != 3 ? function(o) { function __(o, l) { for (var c = 0; c < l.length; c++) { var f = l[c], v = f.find(), O = o.clipPos(v.from), L = o.clipPos(v.to); - if (Re(O, L)) { - var U = bo(o, O, L, f.primary, f.primary.type); - f.markers.push(U), U.parent = f; + if (De(O, L)) { + var j = bo(o, O, L, f.primary, f.primary.type); + f.markers.push(j), j.parent = f; } } } @@ -25630,8 +25637,8 @@ b`.split(/\n/).length != 3 ? function(o) { return O.push(Q); }); for (var L = 0; L < v.markers.length; L++) { - var U = v.markers[L]; - ce(O, U.doc) == -1 && (U.parent = null, v.markers.splice(L--, 1)); + var j = v.markers[L]; + he(O, j.doc) == -1 && (j.parent = null, v.markers.splice(L--, 1)); } }, c = 0; c < o.length; c++) l(c); @@ -25641,9 +25648,9 @@ b`.split(/\n/).length != 3 ? function(o) { return new Nn(o, l, c, f, v); c == null && (c = 0), Sa.call(this, [new Ca([new ao("", null)])]), this.first = c, this.scrollTop = this.scrollLeft = 0, this.cantEdit = !1, this.cleanGeneration = 1, this.modeFrontier = this.highlightFrontier = c; var O = ye(c, 0); - this.sel = gr(O), this.history = new Bl(null), this.id = ++A_, this.modeOption = l, this.lineSep = f, this.direction = v == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof o == "string" && (o = this.splitLines(o)), fd(this, { from: O, to: O, text: o }), En(this, gr(O), j); + this.sel = gr(O), this.history = new Bl(null), this.id = ++A_, this.modeOption = l, this.lineSep = f, this.direction = v == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof o == "string" && (o = this.splitLines(o)), fd(this, { from: O, to: O, text: o }), En(this, gr(O), $); }; - Nn.prototype = Ee(Sa.prototype, { + Nn.prototype = _e(Sa.prototype, { constructor: Nn, iter: function(o, l, c) { c ? this.iterN(o - this.first, l - o, c) : this.iterN(this.first, this.first + this.size, o); @@ -25664,11 +25671,11 @@ b`.split(/\n/).length != 3 ? function(o) { var l = ye(this.first, 0), c = this.first + this.size - 1; go(this, { from: l, - to: ye(c, st(this, c).text.length), + to: ye(c, ut(this, c).text.length), text: this.splitLines(o), origin: "setValue", full: !0 - }, !0), this.cm && ha(this.cm, 0, 0), En(this, gr(l), j); + }, !0), this.cm && ha(this.cm, 0, 0), En(this, gr(l), $); }), replaceRange: function(o, l, c, f) { l = _t(this, l), c = c ? _t(this, c) : l, yo(this, o, l, c, f); @@ -25682,14 +25689,14 @@ b`.split(/\n/).length != 3 ? function(o) { return l && l.text; }, getLineHandle: function(o) { - if (re(this, o)) - return st(this, o); + if (oe(this, o)) + return ut(this, o); }, getLineNumber: function(o) { return Ft(o); }, getLineHandleVisualStart: function(o) { - return typeof o == "number" && (o = st(this, o)), _i(o); + return typeof o == "number" && (o = ut(this, o)), _i(o); }, lineCount: function() { return this.size; @@ -25726,7 +25733,7 @@ b`.split(/\n/).length != 3 ? function(o) { em(this, Wp(this, o), l); }), extendSelectionsBy: mn(function(o, l) { - var c = Be(this.sel.ranges, o); + var c = Fe(this.sel.ranges, o); em(this, Wp(this, c), l); }), setSelections: mn(function(o, l, c) { @@ -25767,9 +25774,9 @@ b`.split(/\n/).length != 3 ? function(o) { var L = v.ranges[O]; f[O] = { from: L.from(), to: L.to(), text: this.splitLines(o[O]), origin: c }; } - for (var U = l && l != "end" && u_(this, f, l), Q = f.length - 1; Q >= 0; Q--) + for (var j = l && l != "end" && u_(this, f, l), Q = f.length - 1; Q >= 0; Q--) go(this, f[Q]); - U ? nm(this, U) : this.cm && po(this.cm); + j ? nm(this, j) : this.cm && po(this.cm); }), undo: mn(function() { zl(this, "undo"); @@ -25824,21 +25831,21 @@ b`.split(/\n/).length != 3 ? function(o) { setGutterMarker: mn(function(o, l, c) { return Aa(this, o, "gutter", function(f) { var v = f.gutterMarkers || (f.gutterMarkers = {}); - return v[l] = c, !c && De(v) && (f.gutterMarkers = null), !0; + return v[l] = c, !c && pt(v) && (f.gutterMarkers = null), !0; }); }), clearGutter: mn(function(o) { var l = this; this.iter(function(c) { c.gutterMarkers && c.gutterMarkers[o] && Aa(l, c, "gutter", function() { - return c.gutterMarkers[o] = null, De(c.gutterMarkers) && (c.gutterMarkers = null), !0; + return c.gutterMarkers[o] = null, pt(c.gutterMarkers) && (c.gutterMarkers = null), !0; }); }); }), lineInfo: function(o) { var l; if (typeof o == "number") { - if (!re(this, o) || (l = o, o = st(this, o), !o)) + if (!oe(this, o) || (l = o, o = ut(this, o), !o)) return null; } else if (l = Ft(o), l == null) return null; @@ -25876,8 +25883,8 @@ b`.split(/\n/).length != 3 ? function(o) { var L = O.match(D(c)); if (!L) return !1; - var U = L.index + L[0].length; - f[v] = O.slice(0, L.index) + (!L.index || U == O.length ? "" : " ") + O.slice(U) || null; + var j = L.index + L[0].length; + f[v] = O.slice(0, L.index) + (!L.index || j == O.length ? "" : " ") + O.slice(j) || null; } else return !1; @@ -25905,7 +25912,7 @@ b`.split(/\n/).length != 3 ? function(o) { }, findMarksAt: function(o) { o = _t(this, o); - var l = [], c = st(this, o.line).markedSpans; + var l = [], c = ut(this, o.line).markedSpans; if (c) for (var f = 0; f < c.length; ++f) { var v = c[f]; @@ -25919,8 +25926,8 @@ b`.split(/\n/).length != 3 ? function(o) { return this.iter(o.line, l.line + 1, function(O) { var L = O.markedSpans; if (L) - for (var U = 0; U < L.length; U++) { - var Q = L[U]; + for (var j = 0; j < L.length; j++) { + var Q = L[j]; !(Q.to != null && v == o.line && o.ch >= Q.to || Q.from == null && v != o.line || Q.from != null && v == l.line && Q.from >= l.ch) && (!c || c(Q.marker)) && f.push(Q.marker.parent || Q.marker); } ++v; @@ -26017,7 +26024,7 @@ b`.split(/\n/).length != 3 ? function(o) { var c = Fr(l, o, !0), f = o.dataTransfer.files; if (!(!c || l.isReadOnly())) if (f && f.length && window.FileReader && window.File) - for (var v = f.length, O = Array(v), L = 0, U = function() { + for (var v = f.length, O = Array(v), L = 0, j = function() { ++L == v && hn(l, function() { c = _t(l.doc, c); var Ce = { @@ -26033,23 +26040,23 @@ b`.split(/\n/).length != 3 ? function(o) { go(l.doc, Ce), nm(l.doc, gr(_t(l.doc, c), _t(l.doc, yr(Ce)))); })(); }, Q = function(Ce, Ie) { - if (l.options.allowDropFileTypes && ce(l.options.allowDropFileTypes, Ce.type) == -1) { - U(); + if (l.options.allowDropFileTypes && he(l.options.allowDropFileTypes, Ce.type) == -1) { + j(); return; } - var Le = new FileReader(); - Le.onerror = function() { - return U(); - }, Le.onload = function() { - var Ue = Le.result; + var Ne = new FileReader(); + Ne.onerror = function() { + return j(); + }, Ne.onload = function() { + var Ue = Ne.result; if (/[\x00-\x08\x0e-\x1f]{2}/.test(Ue)) { - U(); + j(); return; } - O[Ie] = Ue, U(); - }, Le.readAsText(Ce); - }, ie = 0; ie < f.length; ie++) - Q(f[ie], ie); + O[Ie] = Ue, j(); + }, Ne.readAsText(Ce); + }, ne = 0; ne < f.length; ne++) + Q(f[ne], ne); else { if (l.state.draggingText && l.doc.sel.contains(c) > -1) { l.state.draggingText(o), setTimeout(function() { @@ -26058,13 +26065,13 @@ b`.split(/\n/).length != 3 ? function(o) { return; } try { - var ue = o.dataTransfer.getData("Text"); - if (ue) { + var se = o.dataTransfer.getData("Text"); + if (se) { var de; if (l.state.draggingText && !l.state.draggingText.copy && (de = l.listSelections()), Ul(l.doc, gr(c, c)), de) - for (var xe = 0; xe < de.length; ++xe) - yo(l.doc, "", de[xe].anchor, de[xe].head, "drag"); - l.replaceSelection(ue, "around", "paste"), l.display.input.focus(); + for (var Ee = 0; Ee < de.length; ++Ee) + yo(l.doc, "", de[Ee].anchor, de[Ee].head, "drag"); + l.replaceSelection(se, "around", "paste"), l.display.input.focus(); } } catch { } @@ -26077,7 +26084,7 @@ b`.split(/\n/).length != 3 ? function(o) { return; } if (!(Ct(o, l) || Xi(o.display, l)) && (l.dataTransfer.setData("Text", o.getSelection()), l.dataTransfer.effectAllowed = "copyMove", l.dataTransfer.setDragImage && !A)) { - var c = R("img", null, null, "position: fixed; left: 0; top: 0;"); + var c = I("img", null, null, "position: fixed; left: 0; top: 0;"); c.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", b && (c.width = c.height = 1, o.display.wrapper.appendChild(c), c._top = c.offsetTop), l.dataTransfer.setDragImage(c, 0, 0), b && c.parentNode.removeChild(c); } } @@ -26085,7 +26092,7 @@ b`.split(/\n/).length != 3 ? function(o) { var c = Fr(o, l); if (!!c) { var f = document.createDocumentFragment(); - Zu(o, c, f), o.display.dragCursor || (o.display.dragCursor = R("div", null, "CodeMirror-cursors CodeMirror-dragcursors"), o.display.lineSpace.insertBefore(o.display.dragCursor, o.display.cursorDiv)), G(o.display.dragCursor, f); + Zu(o, c, f), o.display.dragCursor || (o.display.dragCursor = I("div", null, "CodeMirror-cursors CodeMirror-dragcursors"), o.display.lineSpace.insertBefore(o.display.dragCursor, o.display.cursorDiv)), G(o.display.dragCursor, f); } } function ym(o) { @@ -26282,17 +26289,17 @@ b`.split(/\n/).length != 3 ? function(o) { var l = o.split(/-(?!$)/); o = l[l.length - 1]; for (var c, f, v, O, L = 0; L < l.length - 1; L++) { - var U = l[L]; - if (/^(cmd|meta|m)$/i.test(U)) + var j = l[L]; + if (/^(cmd|meta|m)$/i.test(j)) O = !0; - else if (/^a(lt)?$/i.test(U)) + else if (/^a(lt)?$/i.test(j)) c = !0; - else if (/^(c|ctrl|control)$/i.test(U)) + else if (/^(c|ctrl|control)$/i.test(j)) f = !0; - else if (/^s(hift)?$/i.test(U)) + else if (/^s(hift)?$/i.test(j)) v = !0; else - throw new Error("Unrecognized modifier name: " + U); + throw new Error("Unrecognized modifier name: " + j); } return c && (o = "Alt-" + o), f && (o = "Ctrl-" + o), O && (o = "Cmd-" + o), v && (o = "Shift-" + o), o; } @@ -26307,19 +26314,19 @@ b`.split(/\n/).length != 3 ? function(o) { delete o[c]; continue; } - for (var v = Be(c.split(" "), O_), O = 0; O < v.length; O++) { - var L = void 0, U = void 0; - O == v.length - 1 ? (U = v.join(" "), L = f) : (U = v.slice(0, O + 1).join(" "), L = "..."); - var Q = l[U]; + for (var v = Fe(c.split(" "), O_), O = 0; O < v.length; O++) { + var L = void 0, j = void 0; + O == v.length - 1 ? (j = v.join(" "), L = f) : (j = v.slice(0, O + 1).join(" "), L = "..."); + var Q = l[j]; if (!Q) - l[U] = L; + l[j] = L; else if (Q != L) - throw new Error("Inconsistent bindings for " + U); + throw new Error("Inconsistent bindings for " + j); } delete o[c]; } - for (var ie in l) - o[ie] = l[ie]; + for (var ne in l) + o[ne] = l[ne]; return o; } function _o(o, l, c, f) { @@ -26360,9 +26367,9 @@ b`.split(/\n/).length != 3 ? function(o) { } function wo(o, l) { for (var c = o.doc.sel.ranges, f = [], v = 0; v < c.length; v++) { - for (var O = l(c[v]); f.length && Re(O.from, Ae(f).to) <= 0; ) { + for (var O = l(c[v]); f.length && De(O.from, Ae(f).to) <= 0; ) { var L = f.pop(); - if (Re(L.from, O.from) < 0) { + if (De(L.from, O.from) < 0) { O.from = L.from; break; } @@ -26370,13 +26377,13 @@ b`.split(/\n/).length != 3 ? function(o) { f.push(O); } Wn(o, function() { - for (var U = f.length - 1; U >= 0; U--) - yo(o.doc, "", f[U].from, f[U].to, "+delete"); + for (var j = f.length - 1; j >= 0; j--) + yo(o.doc, "", f[j].from, f[j].to, "+delete"); po(o); }); } function md(o, l, c) { - var f = mt(o.text, l + c, c); + var f = at(o.text, l + c, c); return f < 0 || f > o.text.length ? null : f; } function vd(o, l, c) { @@ -26386,66 +26393,66 @@ b`.split(/\n/).length != 3 ? function(o) { function gd(o, l, c, f, v) { if (o) { l.doc.direction == "rtl" && (v = -v); - var O = pt(c, l.doc.direction); + var O = ht(c, l.doc.direction); if (O) { - var L = v < 0 ? Ae(O) : O[0], U = v < 0 == (L.level == 1), Q = U ? "after" : "before", ie; + var L = v < 0 ? Ae(O) : O[0], j = v < 0 == (L.level == 1), Q = j ? "after" : "before", ne; if (L.level > 0 || l.doc.direction == "rtl") { - var ue = so(l, c); - ie = v < 0 ? c.text.length - 1 : 0; - var de = Pi(l, ue, ie).top; - ie = Ze(function(xe) { - return Pi(l, ue, xe).top == de; - }, v < 0 == (L.level == 1) ? L.from : L.to - 1, ie), Q == "before" && (ie = md(c, ie, 1)); + var se = so(l, c); + ne = v < 0 ? c.text.length - 1 : 0; + var de = Pi(l, se, ne).top; + ne = We(function(Ee) { + return Pi(l, se, Ee).top == de; + }, v < 0 == (L.level == 1) ? L.from : L.to - 1, ne), Q == "before" && (ne = md(c, ne, 1)); } else - ie = v < 0 ? L.to : L.from; - return new ye(f, ie, Q); + ne = v < 0 ? L.to : L.from; + return new ye(f, ne, Q); } } return new ye(f, v < 0 ? c.text.length : 0, v < 0 ? "before" : "after"); } function R_(o, l, c, f) { - var v = pt(l, o.doc.direction); + var v = ht(l, o.doc.direction); if (!v) return vd(l, c, f); c.ch >= l.text.length ? (c.ch = l.text.length, c.sticky = "before") : c.ch <= 0 && (c.ch = 0, c.sticky = "after"); - var O = He(v, c.ch, c.sticky), L = v[O]; + var O = je(v, c.ch, c.sticky), L = v[O]; if (o.doc.direction == "ltr" && L.level % 2 == 0 && (f > 0 ? L.to > c.ch : L.from < c.ch)) return vd(l, c, f); - var U = function(Ye, tt) { - return md(l, Ye instanceof ye ? Ye.ch : Ye, tt); - }, Q, ie = function(Ye) { + var j = function(Ye, nt) { + return md(l, Ye instanceof ye ? Ye.ch : Ye, nt); + }, Q, ne = function(Ye) { return o.options.lineWrapping ? (Q = Q || so(o, l), kh(o, l, Q, Ye)) : { begin: 0, end: l.text.length }; - }, ue = ie(c.sticky == "before" ? U(c, -1) : c.ch); + }, se = ne(c.sticky == "before" ? j(c, -1) : c.ch); if (o.doc.direction == "rtl" || L.level == 1) { - var de = L.level == 1 == f < 0, xe = U(c, de ? 1 : -1); - if (xe != null && (de ? xe <= L.to && xe <= ue.end : xe >= L.from && xe >= ue.begin)) { + var de = L.level == 1 == f < 0, Ee = j(c, de ? 1 : -1); + if (Ee != null && (de ? Ee <= L.to && Ee <= se.end : Ee >= L.from && Ee >= se.begin)) { var Ce = de ? "before" : "after"; - return new ye(c.line, xe, Ce); + return new ye(c.line, Ee, Ce); } } - var Ie = function(Ye, tt, Qe) { - for (var rt = function(Vt, vn) { - return vn ? new ye(c.line, U(Vt, 1), "before") : new ye(c.line, Vt, "after"); - }; Ye >= 0 && Ye < v.length; Ye += tt) { - var ht = v[Ye], ft = tt > 0 == (ht.level != 1), Et = ft ? Qe.begin : U(Qe.end, -1); - if (ht.from <= Et && Et < ht.to || (Et = ft ? ht.from : U(ht.to, -1), Qe.begin <= Et && Et < Qe.end)) - return rt(Et, ft); + var Ie = function(Ye, nt, Qe) { + for (var ot = function(Vt, vn) { + return vn ? new ye(c.line, j(Vt, 1), "before") : new ye(c.line, Vt, "after"); + }; Ye >= 0 && Ye < v.length; Ye += nt) { + var mt = v[Ye], ct = nt > 0 == (mt.level != 1), Et = ct ? Qe.begin : j(Qe.end, -1); + if (mt.from <= Et && Et < mt.to || (Et = ct ? mt.from : j(mt.to, -1), Qe.begin <= Et && Et < Qe.end)) + return ot(Et, ct); } - }, Le = Ie(O + f, f, ue); - if (Le) - return Le; - var Ue = f > 0 ? ue.end : U(ue.begin, -1); - return Ue != null && !(f > 0 && Ue == l.text.length) && (Le = Ie(f > 0 ? 0 : v.length - 1, f, ie(Ue)), Le) ? Le : null; + }, Ne = Ie(O + f, f, se); + if (Ne) + return Ne; + var Ue = f > 0 ? se.end : j(se.begin, -1); + return Ue != null && !(f > 0 && Ue == l.text.length) && (Ne = Ie(f > 0 ? 0 : v.length - 1, f, ne(Ue)), Ne) ? Ne : null; } var Oa = { selectAll: lm, singleSelection: function(o) { - return o.setSelection(o.getCursor("anchor"), o.getCursor("head"), j); + return o.setSelection(o.getCursor("anchor"), o.getCursor("head"), $); }, killLine: function(o) { return wo(o, function(l) { if (l.empty()) { - var c = st(o.doc, l.head.line).text.length; + var c = ut(o.doc, l.head.line).text.length; return l.head.ch == c && l.head.line < o.lastLine() ? { from: l.head, to: ye(l.head.line + 1, 0) } : { from: l.head, to: ye(l.head.line, c) }; } else return { from: l.from(), to: l.to() }; @@ -26525,19 +26532,19 @@ b`.split(/\n/).length != 3 ? function(o) { return o.extendSelectionsBy(function(l) { var c = o.cursorCoords(l.head, "div").top + 5; return o.coordsChar({ left: o.display.lineDiv.offsetWidth + 100, top: c }, "div"); - }, te); + }, X); }, goLineLeft: function(o) { return o.extendSelectionsBy(function(l) { var c = o.cursorCoords(l.head, "div").top + 5; return o.coordsChar({ left: 0, top: c }, "div"); - }, te); + }, X); }, goLineLeftSmart: function(o) { return o.extendSelectionsBy(function(l) { var c = o.cursorCoords(l.head, "div").top + 5, f = o.coordsChar({ left: 0, top: c }, "div"); return f.ch < o.getLine(f.line).search(/\S/) ? Em(o, l.head) : f; - }, te); + }, X); }, goLineUp: function(o) { return o.moveV(-1, "line"); @@ -26607,8 +26614,8 @@ b`.split(/\n/).length != 3 ? function(o) { }, insertSoftTab: function(o) { for (var l = [], c = o.listSelections(), f = o.options.tabSize, v = 0; v < c.length; v++) { - var O = c[v].from(), L = me(o.getLine(O.line), O.ch, f); - l.push(_e(f - L % f)); + var O = c[v].from(), L = ve(o.getLine(O.line), O.ch, f); + l.push(fe(f - L % f)); } o.replaceSelections(l); }, @@ -26619,7 +26626,7 @@ b`.split(/\n/).length != 3 ? function(o) { return Wn(o, function() { for (var l = o.listSelections(), c = [], f = 0; f < l.length; f++) if (!!l[f].empty()) { - var v = l[f].head, O = st(o.doc, v.line).text; + var v = l[f].head, O = ut(o.doc, v.line).text; if (O) { if (v.ch == O.length && (v = new ye(v.line, v.ch - 1)), v.ch > 0) v = new ye(v.line, v.ch + 1), o.replaceRange( @@ -26629,7 +26636,7 @@ b`.split(/\n/).length != 3 ? function(o) { "+transpose" ); else if (v.line > o.doc.first) { - var L = st(o.doc, v.line - 1).text; + var L = ut(o.doc, v.line - 1).text; L && (v = new ye(v.line, 1), o.replaceRange( O.charAt(0) + o.doc.lineSeparator() + L.charAt(L.length - 1), ye(v.line - 1, L.length - 1), @@ -26662,15 +26669,15 @@ b`.split(/\n/).length != 3 ? function(o) { } }; function Sm(o, l) { - var c = st(o.doc, l), f = _i(c); + var c = ut(o.doc, l), f = _i(c); return f != c && (l = Ft(f)), gd(!0, o, f, l, 1); } function D_(o, l) { - var c = st(o.doc, l), f = m1(c); + var c = ut(o.doc, l), f = m1(c); return f != c && (l = Ft(f)), gd(!0, o, c, l, -1); } function Em(o, l) { - var c = Sm(o, l.line), f = st(o.doc, c.line), v = pt(f, o.doc.direction); + var c = Sm(o, l.line), f = ut(o.doc, c.line), v = ht(f, o.doc.direction); if (!v || v[0].level == 0) { var O = Math.max(c.ch, f.text.search(/\S/)), L = l.line == c.line && l.ch <= O && l.ch; return ye(c.line, L ? 0 : O, c.sticky); @@ -26683,7 +26690,7 @@ b`.split(/\n/).length != 3 ? function(o) { o.display.input.ensurePolled(); var f = o.display.shift, v = !1; try { - o.isReadOnly() && (o.state.suppressEdits = !0), c && (o.display.shift = !1), v = l(o) != I; + o.isReadOnly() && (o.state.suppressEdits = !0), c && (o.display.shift = !1), v = l(o) != xe; } finally { o.display.shift = f, o.state.suppressEdits = !1; } @@ -26733,7 +26740,7 @@ b`.split(/\n/).length != 3 ? function(o) { var yd = null; function km(o) { var l = this; - if (!(o.target && o.target != l.display.input.getField()) && (l.curOp.focus = q(ve(l)), !Ct(l, o))) { + if (!(o.target && o.target != l.display.input.getField()) && (l.curOp.focus = q(te(l)), !Ct(l, o))) { d && p < 11 && o.keyCode == 27 && (o.returnValue = !1); var c = o.keyCode; l.display.shift = c == 16 || o.shiftKey; @@ -26745,7 +26752,7 @@ b`.split(/\n/).length != 3 ? function(o) { var l = o.display.lineDiv; Z(l, "CodeMirror-crosshair"); function c(f) { - (f.keyCode == 18 || !f.altKey) && (V(l, "CodeMirror-crosshair"), ot(document, "keyup", c), ot(document, "mouseover", c)); + (f.keyCode == 18 || !f.altKey) && (V(l, "CodeMirror-crosshair"), lt(document, "keyup", c), lt(document, "mouseover", c)); } $e(document, "keyup", c), $e(document, "mouseover", c); } @@ -26770,7 +26777,7 @@ b`.split(/\n/).length != 3 ? function(o) { this.time = o, this.pos = l, this.button = c; }; bd.prototype.compare = function(o, l, c) { - return this.time + L_ > o && Re(l, this.pos) == 0 && c == this.button; + return this.time + L_ > o && De(l, this.pos) == 0 && c == this.button; }; var Ra, Da; function N_(o, l) { @@ -26799,39 +26806,39 @@ b`.split(/\n/).length != 3 ? function(o) { return f == "double" ? O = "Double" + O : f == "triple" && (O = "Triple" + O), O = (l == 1 ? "Left" : l == 2 ? "Middle" : "Right") + O, $a(o, Am(O, v), v, function(L) { if (typeof L == "string" && (L = Oa[L]), !L) return !1; - var U = !1; + var j = !1; try { - o.isReadOnly() && (o.state.suppressEdits = !0), U = L(o, c) != I; + o.isReadOnly() && (o.state.suppressEdits = !0), j = L(o, c) != xe; } finally { o.state.suppressEdits = !1; } - return U; + return j; }); } function V_(o, l, c) { var f = o.getOption("configureMouse"), v = f ? f(o, l, c) : {}; if (v.unit == null) { - var O = $ ? c.shiftKey && c.metaKey : c.altKey; + var O = R ? c.shiftKey && c.metaKey : c.altKey; v.unit = O ? "rectangle" : l == "single" ? "char" : l == "double" ? "word" : "line"; } return (v.extend == null || o.doc.extend) && (v.extend = o.doc.extend || c.shiftKey), v.addNew == null && (v.addNew = k ? c.metaKey : c.ctrlKey), v.moveOnDrag == null && (v.moveOnDrag = !(k ? c.altKey : c.ctrlKey)), v; } function j_(o, l, c, f) { - d ? setTimeout(Te(Dh, o), 0) : o.curOp.focus = q(ve(o)); + d ? setTimeout(ke(Dh, o), 0) : o.curOp.focus = q(te(o)); var v = V_(o, c, f), O = o.doc.sel, L; - o.options.dragDrop && Du && !o.isReadOnly() && c == "single" && (L = O.contains(l)) > -1 && (Re((L = O.ranges[L]).from(), l) < 0 || l.xRel > 0) && (Re(L.to(), l) > 0 || l.xRel < 0) ? U_(o, f, l, v) : H_(o, f, l, v); + o.options.dragDrop && Du && !o.isReadOnly() && c == "single" && (L = O.contains(l)) > -1 && (De((L = O.ranges[L]).from(), l) < 0 || l.xRel > 0) && (De(L.to(), l) > 0 || l.xRel < 0) ? U_(o, f, l, v) : H_(o, f, l, v); } function U_(o, l, c, f) { - var v = o.display, O = !1, L = hn(o, function(ie) { - h && (v.scroller.draggable = !1), o.state.draggingText = !1, o.state.delayingBlurEvent && (o.hasFocus() ? o.state.delayingBlurEvent = !1 : ed(o)), ot(v.wrapper.ownerDocument, "mouseup", L), ot(v.wrapper.ownerDocument, "mousemove", U), ot(v.scroller, "dragstart", Q), ot(v.scroller, "drop", L), O || (It(ie), f.addNew || jl(o.doc, c, null, null, f.extend), h && !A || d && p == 9 ? setTimeout(function() { + var v = o.display, O = !1, L = hn(o, function(ne) { + h && (v.scroller.draggable = !1), o.state.draggingText = !1, o.state.delayingBlurEvent && (o.hasFocus() ? o.state.delayingBlurEvent = !1 : ed(o)), lt(v.wrapper.ownerDocument, "mouseup", L), lt(v.wrapper.ownerDocument, "mousemove", j), lt(v.scroller, "dragstart", Q), lt(v.scroller, "drop", L), O || (It(ne), f.addNew || jl(o.doc, c, null, null, f.extend), h && !A || d && p == 9 ? setTimeout(function() { v.wrapper.ownerDocument.body.focus({ preventScroll: !0 }), v.input.focus(); }, 20) : v.input.focus()); - }), U = function(ie) { - O = O || Math.abs(l.clientX - ie.clientX) + Math.abs(l.clientY - ie.clientY) >= 10; + }), j = function(ne) { + O = O || Math.abs(l.clientX - ne.clientX) + Math.abs(l.clientY - ne.clientY) >= 10; }, Q = function() { return O = !0; }; - h && (v.scroller.draggable = !0), o.state.draggingText = L, L.copy = !f.moveOnDrag, $e(v.wrapper.ownerDocument, "mouseup", L), $e(v.wrapper.ownerDocument, "mousemove", U), $e(v.scroller, "dragstart", Q), $e(v.scroller, "drop", L), o.state.delayingBlurEvent = !0, setTimeout(function() { + h && (v.scroller.draggable = !0), o.state.draggingText = L, L.copy = !f.moveOnDrag, $e(v.wrapper.ownerDocument, "mouseup", L), $e(v.wrapper.ownerDocument, "mousemove", j), $e(v.scroller, "dragstart", Q), $e(v.scroller, "drop", L), o.state.delayingBlurEvent = !0, setTimeout(function() { return v.input.focus(); }, 20), v.scroller.dragDrop && v.scroller.dragDrop(); } @@ -26849,89 +26856,89 @@ b`.split(/\n/).length != 3 ? function(o) { d && ed(o); var v = o.display, O = o.doc; It(l); - var L, U, Q = O.sel, ie = Q.ranges; - if (f.addNew && !f.extend ? (U = O.sel.contains(c), U > -1 ? L = ie[U] : L = new Pt(c, c)) : (L = O.sel.primary(), U = O.sel.primIndex), f.unit == "rectangle") - f.addNew || (L = new Pt(c, c)), c = Fr(o, l, !0, !0), U = -1; + var L, j, Q = O.sel, ne = Q.ranges; + if (f.addNew && !f.extend ? (j = O.sel.contains(c), j > -1 ? L = ne[j] : L = new Pt(c, c)) : (L = O.sel.primary(), j = O.sel.primIndex), f.unit == "rectangle") + f.addNew || (L = new Pt(c, c)), c = Fr(o, l, !0, !0), j = -1; else { - var ue = Dm(o, c, f.unit); - f.extend ? L = pd(L, ue.anchor, ue.head, f.extend) : L = ue; + var se = Dm(o, c, f.unit); + f.extend ? L = pd(L, se.anchor, se.head, f.extend) : L = se; } - f.addNew ? U == -1 ? (U = ie.length, En( + f.addNew ? j == -1 ? (j = ne.length, En( O, - Ai(o, ie.concat([L]), U), + Ai(o, ne.concat([L]), j), { scroll: !1, origin: "*mouse" } - )) : ie.length > 1 && ie[U].empty() && f.unit == "char" && !f.extend ? (En( + )) : ne.length > 1 && ne[j].empty() && f.unit == "char" && !f.extend ? (En( O, - Ai(o, ie.slice(0, U).concat(ie.slice(U + 1)), 0), + Ai(o, ne.slice(0, j).concat(ne.slice(j + 1)), 0), { scroll: !1, origin: "*mouse" } - ), Q = O.sel) : hd(O, U, L, ee) : (U = 0, En(O, new ei([L], 0), ee), Q = O.sel); + ), Q = O.sel) : hd(O, j, L, K) : (j = 0, En(O, new ei([L], 0), K), Q = O.sel); var de = c; - function xe(Qe) { - if (Re(de, Qe) != 0) + function Ee(Qe) { + if (De(de, Qe) != 0) if (de = Qe, f.unit == "rectangle") { - for (var rt = [], ht = o.options.tabSize, ft = me(st(O, c.line).text, c.ch, ht), Et = me(st(O, Qe.line).text, Qe.ch, ht), Vt = Math.min(ft, Et), vn = Math.max(ft, Et), Jt = Math.min(c.line, Qe.line), Gn = Math.min(o.lastLine(), Math.max(c.line, Qe.line)); Jt <= Gn; Jt++) { - var Bn = st(O, Jt).text, ln = se(Bn, Vt, ht); - Vt == vn ? rt.push(new Pt(ye(Jt, ln), ye(Jt, ln))) : Bn.length > ln && rt.push(new Pt(ye(Jt, ln), ye(Jt, se(Bn, vn, ht)))); + for (var ot = [], mt = o.options.tabSize, ct = ve(ut(O, c.line).text, c.ch, mt), Et = ve(ut(O, Qe.line).text, Qe.ch, mt), Vt = Math.min(ct, Et), vn = Math.max(ct, Et), Jt = Math.min(c.line, Qe.line), Gn = Math.min(o.lastLine(), Math.max(c.line, Qe.line)); Jt <= Gn; Jt++) { + var Bn = ut(O, Jt).text, ln = ie(Bn, Vt, mt); + Vt == vn ? ot.push(new Pt(ye(Jt, ln), ye(Jt, ln))) : Bn.length > ln && ot.push(new Pt(ye(Jt, ln), ye(Jt, ie(Bn, vn, mt)))); } - rt.length || rt.push(new Pt(c, c)), En( + ot.length || ot.push(new Pt(c, c)), En( O, - Ai(o, Q.ranges.slice(0, U).concat(rt), U), + Ai(o, Q.ranges.slice(0, j).concat(ot), j), { origin: "*mouse", scroll: !1 } ), o.scrollIntoView(Qe); } else { var Vn = L, An = Dm(o, Qe, f.unit), dn = Vn.anchor, sn; - Re(An.anchor, dn) > 0 ? (sn = An.head, dn = un(Vn.from(), An.anchor)) : (sn = An.anchor, dn = Rt(Vn.to(), An.head)); + De(An.anchor, dn) > 0 ? (sn = An.head, dn = un(Vn.from(), An.anchor)) : (sn = An.anchor, dn = Rt(Vn.to(), An.head)); var qt = Q.ranges.slice(0); - qt[U] = z_(o, new Pt(_t(O, dn), sn)), En(O, Ai(o, qt, U), ee); + qt[j] = z_(o, new Pt(_t(O, dn), sn)), En(O, Ai(o, qt, j), K); } } var Ce = v.wrapper.getBoundingClientRect(), Ie = 0; - function Le(Qe) { - var rt = ++Ie, ht = Fr(o, Qe, !0, f.unit == "rectangle"); - if (!!ht) - if (Re(ht, de) != 0) { - o.curOp.focus = q(ve(o)), xe(ht); - var ft = Pl(v, O); - (ht.line >= ft.to || ht.line < ft.from) && setTimeout(hn(o, function() { - Ie == rt && Le(Qe); + function Ne(Qe) { + var ot = ++Ie, mt = Fr(o, Qe, !0, f.unit == "rectangle"); + if (!!mt) + if (De(mt, de) != 0) { + o.curOp.focus = q(te(o)), Ee(mt); + var ct = Pl(v, O); + (mt.line >= ct.to || mt.line < ct.from) && setTimeout(hn(o, function() { + Ie == ot && Ne(Qe); }), 150); } else { var Et = Qe.clientY < Ce.top ? -20 : Qe.clientY > Ce.bottom ? 20 : 0; Et && setTimeout(hn(o, function() { - Ie == rt && (v.scroller.scrollTop += Et, Le(Qe)); + Ie == ot && (v.scroller.scrollTop += Et, Ne(Qe)); }), 50); } } function Ue(Qe) { - o.state.selectingText = !1, Ie = 1 / 0, Qe && (It(Qe), v.input.focus()), ot(v.wrapper.ownerDocument, "mousemove", Ye), ot(v.wrapper.ownerDocument, "mouseup", tt), O.history.lastSelOrigin = null; + o.state.selectingText = !1, Ie = 1 / 0, Qe && (It(Qe), v.input.focus()), lt(v.wrapper.ownerDocument, "mousemove", Ye), lt(v.wrapper.ownerDocument, "mouseup", nt), O.history.lastSelOrigin = null; } var Ye = hn(o, function(Qe) { - Qe.buttons === 0 || !ra(Qe) ? Ue(Qe) : Le(Qe); - }), tt = hn(o, Ue); - o.state.selectingText = tt, $e(v.wrapper.ownerDocument, "mousemove", Ye), $e(v.wrapper.ownerDocument, "mouseup", tt); + Qe.buttons === 0 || !ra(Qe) ? Ue(Qe) : Ne(Qe); + }), nt = hn(o, Ue); + o.state.selectingText = nt, $e(v.wrapper.ownerDocument, "mousemove", Ye), $e(v.wrapper.ownerDocument, "mouseup", nt); } function z_(o, l) { - var c = l.anchor, f = l.head, v = st(o.doc, c.line); - if (Re(c, f) == 0 && c.sticky == f.sticky) + var c = l.anchor, f = l.head, v = ut(o.doc, c.line); + if (De(c, f) == 0 && c.sticky == f.sticky) return l; - var O = pt(v); + var O = ht(v); if (!O) return l; - var L = He(O, c.ch, c.sticky), U = O[L]; - if (U.from != c.ch && U.to != c.ch) + var L = je(O, c.ch, c.sticky), j = O[L]; + if (j.from != c.ch && j.to != c.ch) return l; - var Q = L + (U.from == c.ch == (U.level != 1) ? 0 : 1); + var Q = L + (j.from == c.ch == (j.level != 1) ? 0 : 1); if (Q == 0 || Q == O.length) return l; - var ie; + var ne; if (f.line != c.line) - ie = (f.line - c.line) * (o.doc.direction == "ltr" ? 1 : -1) > 0; + ne = (f.line - c.line) * (o.doc.direction == "ltr" ? 1 : -1) > 0; else { - var ue = He(O, f.ch, f.sticky), de = ue - L || (f.ch - c.ch) * (U.level == 1 ? -1 : 1); - ue == Q - 1 || ue == Q ? ie = de < 0 : ie = de > 0; + var se = je(O, f.ch, f.sticky), de = se - L || (f.ch - c.ch) * (j.level == 1 ? -1 : 1); + se == Q - 1 || se == Q ? ne = de < 0 : ne = de > 0; } - var xe = O[Q + (ie ? -1 : 0)], Ce = ie == (xe.level == 1), Ie = Ce ? xe.from : xe.to, Le = Ce ? "after" : "before"; - return c.ch == Ie && c.sticky == Le ? l : new Pt(new ye(c.line, Ie, Le), f); + var Ee = O[Q + (ne ? -1 : 0)], Ce = ne == (Ee.level == 1), Ie = Ce ? Ee.from : Ee.to, Ne = Ce ? "after" : "before"; + return c.ch == Ie && c.sticky == Ne ? l : new Pt(new ye(c.line, Ie, Ne), f); } function Im(o, l, c, f) { var v, O; @@ -26946,15 +26953,15 @@ b`.split(/\n/).length != 3 ? function(o) { if (v >= Math.floor(o.display.gutters.getBoundingClientRect().right)) return !1; f && It(l); - var L = o.display, U = L.lineDiv.getBoundingClientRect(); - if (O > U.bottom || !Qt(o, c)) + var L = o.display, j = L.lineDiv.getBoundingClientRect(); + if (O > j.bottom || !Qt(o, c)) return ur(l); - O -= U.top - L.viewOffset; + O -= j.top - L.viewOffset; for (var Q = 0; Q < o.display.gutterSpecs.length; ++Q) { - var ie = L.gutters.childNodes[Q]; - if (ie && ie.getBoundingClientRect().right >= v) { - var ue = Di(o.doc, O), de = o.display.gutterSpecs[Q]; - return at(o, c, o, ue, de.className, l), ur(l); + var ne = L.gutters.childNodes[Q]; + if (ne && ne.getBoundingClientRect().right >= v) { + var se = Di(o.doc, O), de = o.display.gutterSpecs[Q]; + return st(o, c, o, se, de.className, l), ur(l); } } } @@ -26976,8 +26983,8 @@ b`.split(/\n/).length != 3 ? function(o) { function G_(o) { var l = o.optionHandlers; function c(f, v, O, L) { - o.defaults[f] = v, O && (l[f] = L ? function(U, Q, ie) { - ie != Ao && O(U, Q, ie); + o.defaults[f] = v, O && (l[f] = L ? function(j, Q, ne) { + ne != Ao && O(j, Q, ne); } : O); } o.defineOption = c, o.Init = Ao, c("value", "", function(f, v) { @@ -26990,16 +26997,16 @@ b`.split(/\n/).length != 3 ? function(o) { if (f.doc.lineSep = v, !!v) { var O = [], L = f.doc.first; f.doc.iter(function(Q) { - for (var ie = 0; ; ) { - var ue = Q.text.indexOf(v, ie); - if (ue == -1) + for (var ne = 0; ; ) { + var se = Q.text.indexOf(v, ne); + if (se == -1) break; - ie = ue + v.length, O.push(ye(L, ue)); + ne = se + v.length, O.push(ye(L, se)); } L++; }); - for (var U = O.length - 1; U >= 0; U--) - yo(f.doc, v, O[U], ye(O[U].line, O[U].ch + v.length)); + for (var j = O.length - 1; j >= 0; j--) + yo(f.doc, v, O[j], ye(O[j].line, O[j].ch + v.length)); } }), c("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g, function(f, v, O) { f.state.specialChars = new RegExp(v.source + (v.test(" ") ? "" : "| "), "g"), O != Ao && f.refresh(); @@ -27016,8 +27023,8 @@ b`.split(/\n/).length != 3 ? function(o) { }, !0), c("rtlMoveVisually", !M), c("wholeLineUpdateBefore", !0), c("theme", "default", function(f) { Pm(f), ba(f); }, !0), c("keyMap", "default", function(f, v, O) { - var L = Gl(v), U = O != Ao && Gl(O); - U && U.detach && U.detach(f, L), L.attach && L.attach(f, U || null); + var L = Gl(v), j = O != Ao && Gl(O); + j && j.detach && j.detach(f, L), L.attach && L.attach(f, j || null); }), c("extraKeys", null), c("configureMouse", null), c("lineWrapping", !1, Y_, !0), c("gutters", [], function(f, v) { f.display.gutterSpecs = sd(v, f.options.lineNumbers), ba(f); }, !0), c("fixedGutter", !0, function(f, v) { @@ -27051,7 +27058,7 @@ b`.split(/\n/).length != 3 ? function(o) { function K_(o, l, c) { var f = c && c != Ao; if (!l != !f) { - var v = o.display.dragFunctions, O = l ? $e : ot; + var v = o.display.dragFunctions, O = l ? $e : lt; O(o.display.scroller, "dragstart", v.start), O(o.display.scroller, "dragenter", v.enter), O(o.display.scroller, "dragover", v.over), O(o.display.scroller, "dragleave", v.leave), O(o.display.scroller, "drop", v.drop); } } @@ -27091,8 +27098,8 @@ b`.split(/\n/).length != 3 ? function(o) { for (var L in Yl) Yl.hasOwnProperty(L) && Yl[L](this, l[L], Ao); jh(this), l.finishInit && l.finishInit(this); - for (var U = 0; U < wd.length; ++U) - wd[U](this); + for (var j = 0; j < wd.length; ++j) + wd[j](this); Br(this), h && l.lineWrapping && getComputedStyle(O.lineDiv).textRendering == "optimizelegibility" && (O.lineDiv.style.textRendering = "auto"); } Kt.defaults = Mm, Kt.optionHandlers = Yl; @@ -27100,11 +27107,11 @@ b`.split(/\n/).length != 3 ? function(o) { var l = o.display; $e(l.scroller, "mousedown", hn(o, Rm)), d && p < 11 ? $e(l.scroller, "dblclick", hn(o, function(Q) { if (!Ct(o, Q)) { - var ie = Fr(o, Q); - if (!(!ie || _d(o, Q) || Xi(o.display, Q))) { + var ne = Fr(o, Q); + if (!(!ne || _d(o, Q) || Xi(o.display, Q))) { It(Q); - var ue = o.findWordAt(ie); - jl(o.doc, ue.anchor, ue.head); + var se = o.findWordAt(ne); + jl(o.doc, se.anchor, se.head); } } })) : $e(l.scroller, "dblclick", function(Q) { @@ -27123,36 +27130,36 @@ b`.split(/\n/).length != 3 ? function(o) { function O(Q) { if (Q.touches.length != 1) return !1; - var ie = Q.touches[0]; - return ie.radiusX <= 1 && ie.radiusY <= 1; + var ne = Q.touches[0]; + return ne.radiusX <= 1 && ne.radiusY <= 1; } - function L(Q, ie) { - if (ie.left == null) + function L(Q, ne) { + if (ne.left == null) return !0; - var ue = ie.left - Q.left, de = ie.top - Q.top; - return ue * ue + de * de > 20 * 20; + var se = ne.left - Q.left, de = ne.top - Q.top; + return se * se + de * de > 20 * 20; } $e(l.scroller, "touchstart", function(Q) { if (!Ct(o, Q) && !O(Q) && !_d(o, Q)) { l.input.ensurePolled(), clearTimeout(c); - var ie = +new Date(); + var ne = +new Date(); l.activeTouch = { - start: ie, + start: ne, moved: !1, - prev: ie - f.end <= 300 ? f : null + prev: ne - f.end <= 300 ? f : null }, Q.touches.length == 1 && (l.activeTouch.left = Q.touches[0].pageX, l.activeTouch.top = Q.touches[0].pageY); } }), $e(l.scroller, "touchmove", function() { l.activeTouch && (l.activeTouch.moved = !0); }), $e(l.scroller, "touchend", function(Q) { - var ie = l.activeTouch; - if (ie && !Xi(l, Q) && ie.left != null && !ie.moved && new Date() - ie.start < 300) { - var ue = o.coordsChar(l.activeTouch, "page"), de; - !ie.prev || L(ie, ie.prev) ? de = new Pt(ue, ue) : !ie.prev.prev || L(ie, ie.prev.prev) ? de = o.findWordAt(ue) : de = new Pt(ye(ue.line, 0), _t(o.doc, ye(ue.line + 1, 0))), o.setSelection(de.anchor, de.head), o.focus(), It(Q); + var ne = l.activeTouch; + if (ne && !Xi(l, Q) && ne.left != null && !ne.moved && new Date() - ne.start < 300) { + var se = o.coordsChar(l.activeTouch, "page"), de; + !ne.prev || L(ne, ne.prev) ? de = new Pt(se, se) : !ne.prev.prev || L(ne, ne.prev.prev) ? de = o.findWordAt(se) : de = new Pt(ye(se.line, 0), _t(o.doc, ye(se.line + 1, 0))), o.setSelection(de.anchor, de.head), o.focus(), It(Q); } v(); }), $e(l.scroller, "touchcancel", v), $e(l.scroller, "scroll", function() { - l.scroller.clientHeight && (ma(o, l.scroller.scrollTop), Mr(o, l.scroller.scrollLeft, !0), at(o, "scroll", o)); + l.scroller.clientHeight && (ma(o, l.scroller.scrollTop), Mr(o, l.scroller.scrollLeft, !0), st(o, "scroll", o)); }), $e(l.scroller, "mousewheel", function(Q) { return zh(o, Q); }), $e(l.scroller, "DOMMouseScroll", function(Q) { @@ -27174,12 +27181,12 @@ b`.split(/\n/).length != 3 ? function(o) { Ct(o, Q) || ym(o); } }; - var U = l.input.getField(); - $e(U, "keyup", function(Q) { + var j = l.input.getField(); + $e(j, "keyup", function(Q) { return Om.call(o, Q); - }), $e(U, "keydown", hn(o, km)), $e(U, "keypress", hn(o, $m)), $e(U, "focus", function(Q) { + }), $e(j, "keydown", hn(o, km)), $e(j, "keypress", hn(o, $m)), $e(j, "focus", function(Q) { return td(o, Q); - }), $e(U, "blur", function(Q) { + }), $e(j, "blur", function(Q) { return co(o, Q); }); } @@ -27190,27 +27197,27 @@ b`.split(/\n/).length != 3 ? function(o) { function Ia(o, l, c, f) { var v = o.doc, O; c == null && (c = "add"), c == "smart" && (v.mode.indent ? O = la(o, l).state : c = "prev"); - var L = o.options.tabSize, U = st(v, l), Q = me(U.text, null, L); - U.stateAfter && (U.stateAfter = null); - var ie = U.text.match(/^\s*/)[0], ue; - if (!f && !/\S/.test(U.text)) - ue = 0, c = "not"; - else if (c == "smart" && (ue = v.mode.indent(O, U.text.slice(ie.length), U.text), ue == I || ue > 150)) { + var L = o.options.tabSize, j = ut(v, l), Q = ve(j.text, null, L); + j.stateAfter && (j.stateAfter = null); + var ne = j.text.match(/^\s*/)[0], se; + if (!f && !/\S/.test(j.text)) + se = 0, c = "not"; + else if (c == "smart" && (se = v.mode.indent(O, j.text.slice(ne.length), j.text), se == xe || se > 150)) { if (!f) return; c = "prev"; } - c == "prev" ? l > v.first ? ue = me(st(v, l - 1).text, null, L) : ue = 0 : c == "add" ? ue = Q + o.options.indentUnit : c == "subtract" ? ue = Q - o.options.indentUnit : typeof c == "number" && (ue = Q + c), ue = Math.max(0, ue); - var de = "", xe = 0; + c == "prev" ? l > v.first ? se = ve(ut(v, l - 1).text, null, L) : se = 0 : c == "add" ? se = Q + o.options.indentUnit : c == "subtract" ? se = Q - o.options.indentUnit : typeof c == "number" && (se = Q + c), se = Math.max(0, se); + var de = "", Ee = 0; if (o.options.indentWithTabs) - for (var Ce = Math.floor(ue / L); Ce; --Ce) - xe += L, de += " "; - if (xe < ue && (de += _e(ue - xe)), de != ie) - return yo(v, de, ye(l, 0), ye(l, ie.length), "+input"), U.stateAfter = null, !0; + for (var Ce = Math.floor(se / L); Ce; --Ce) + Ee += L, de += " "; + if (Ee < se && (de += fe(se - Ee)), de != ne) + return yo(v, de, ye(l, 0), ye(l, ne.length), "+input"), j.stateAfter = null, !0; for (var Ie = 0; Ie < v.sel.ranges.length; Ie++) { - var Le = v.sel.ranges[Ie]; - if (Le.head.line == l && Le.head.ch < ie.length) { - var Ue = ye(l, ie.length); + var Ne = v.sel.ranges[Ie]; + if (Ne.head.line == l && Ne.head.ch < ne.length) { + var Ue = ye(l, ne.length); hd(v, Ie, new Pt(Ue, Ue)); break; } @@ -27223,33 +27230,33 @@ b`.split(/\n/).length != 3 ? function(o) { function Ad(o, l, c, f, v) { var O = o.doc; o.display.shift = !1, f || (f = O.sel); - var L = +new Date() - 200, U = v == "paste" || o.state.pasteIncoming > L, Q = oa(l), ie = null; - if (U && f.ranges.length > 1) + var L = +new Date() - 200, j = v == "paste" || o.state.pasteIncoming > L, Q = oa(l), ne = null; + if (j && f.ranges.length > 1) if (Ci && Ci.text.join(` `) == l) { if (f.ranges.length % Ci.text.length == 0) { - ie = []; - for (var ue = 0; ue < Ci.text.length; ue++) - ie.push(O.splitLines(Ci.text[ue])); + ne = []; + for (var se = 0; se < Ci.text.length; se++) + ne.push(O.splitLines(Ci.text[se])); } } else - Q.length == f.ranges.length && o.options.pasteLinesPerSelection && (ie = Be(Q, function(Ye) { + Q.length == f.ranges.length && o.options.pasteLinesPerSelection && (ne = Fe(Q, function(Ye) { return [Ye]; })); - for (var de = o.curOp.updateInput, xe = f.ranges.length - 1; xe >= 0; xe--) { - var Ce = f.ranges[xe], Ie = Ce.from(), Le = Ce.to(); - Ce.empty() && (c && c > 0 ? Ie = ye(Ie.line, Ie.ch - c) : o.state.overwrite && !U ? Le = ye(Le.line, Math.min(st(O, Le.line).text.length, Le.ch + Ae(Q).length)) : U && Ci && Ci.lineWise && Ci.text.join(` + for (var de = o.curOp.updateInput, Ee = f.ranges.length - 1; Ee >= 0; Ee--) { + var Ce = f.ranges[Ee], Ie = Ce.from(), Ne = Ce.to(); + Ce.empty() && (c && c > 0 ? Ie = ye(Ie.line, Ie.ch - c) : o.state.overwrite && !j ? Ne = ye(Ne.line, Math.min(ut(O, Ne.line).text.length, Ne.ch + Ae(Q).length)) : j && Ci && Ci.lineWise && Ci.text.join(` `) == Q.join(` -`) && (Ie = Le = ye(Ie.line, 0))); +`) && (Ie = Ne = ye(Ie.line, 0))); var Ue = { from: Ie, - to: Le, - text: ie ? ie[xe % ie.length] : Q, - origin: v || (U ? "paste" : o.state.cutIncoming > L ? "cut" : "+input") + to: Ne, + text: ne ? ne[Ee % ne.length] : Q, + origin: v || (j ? "paste" : o.state.cutIncoming > L ? "cut" : "+input") }; go(o.doc, Ue), pn(o, "inputRead", o, Ue); } - l && !U && Nm(o, l), po(o), o.curOp.updateInput < 2 && (o.curOp.updateInput = de), o.curOp.typing = !0, o.state.pasteIncoming = o.state.cutIncoming = -1; + l && !j && Nm(o, l), po(o), o.curOp.updateInput < 2 && (o.curOp.updateInput = de), o.curOp.typing = !0, o.state.pasteIncoming = o.state.cutIncoming = -1; } function Lm(o, l) { var c = o.clipboardData && o.clipboardData.getData("Text"); @@ -27265,13 +27272,13 @@ b`.split(/\n/).length != 3 ? function(o) { if (!(v.head.ch > 100 || f && c.ranges[f - 1].head.line == v.head.line)) { var O = o.getModeAt(v.head), L = !1; if (O.electricChars) { - for (var U = 0; U < O.electricChars.length; U++) - if (l.indexOf(O.electricChars.charAt(U)) > -1) { + for (var j = 0; j < O.electricChars.length; j++) + if (l.indexOf(O.electricChars.charAt(j)) > -1) { L = Ia(o, v.head.line, "smart"); break; } } else - O.electricInput && O.electricInput.test(st(o.doc, v.head.line).text.slice(0, v.head.ch)) && (L = Ia(o, v.head.line, "smart")); + O.electricInput && O.electricInput.test(ut(o.doc, v.head.line).text.slice(0, v.head.ch)) && (L = Ia(o, v.head.line, "smart")); L && pn(o, "electricInput", o, v.head.line); } } @@ -27287,7 +27294,7 @@ b`.split(/\n/).length != 3 ? function(o) { o.setAttribute("autocorrect", c ? "" : "off"), o.setAttribute("autocapitalize", f ? "" : "off"), o.setAttribute("spellcheck", !!l); } function jm() { - var o = R("textarea", null, null, "position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"), l = R("div", [o], null, "overflow: hidden; position: relative; width: 3px; height: 0px;"); + var o = I("textarea", null, null, "position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"), l = I("div", [o], null, "overflow: hidden; position: relative; width: 3px; height: 0px;"); return h ? o.style.width = "1000px" : o.setAttribute("wrap", "off"), w && (o.style.border = "1px solid black"), Vm(o), l; } function J_(o) { @@ -27299,7 +27306,7 @@ b`.split(/\n/).length != 3 ? function(o) { }, setOption: function(f, v) { var O = this.options, L = O[f]; - O[f] == v && f != "mode" || (O[f] = v, l.hasOwnProperty(f) && hn(this, l[f])(this, v, L), at(this, "optionChange", this, f)); + O[f] == v && f != "mode" || (O[f] = v, l.hasOwnProperty(f) && hn(this, l[f])(this, v, L), st(this, "optionChange", this, f)); }, getOption: function(f) { return this.options[f]; @@ -27319,7 +27326,7 @@ b`.split(/\n/).length != 3 ? function(o) { var O = f.token ? f : o.getMode(this.options, f); if (O.startState) throw new Error("Overlays may not be stateful."); - ct( + Xe( this.state.overlays, { mode: O, @@ -27342,20 +27349,20 @@ b`.split(/\n/).length != 3 ? function(o) { } }), indentLine: On(function(f, v, O) { - typeof v != "string" && typeof v != "number" && (v == null ? v = this.options.smartIndent ? "smart" : "prev" : v = v ? "add" : "subtract"), re(this.doc, f) && Ia(this, f, v, O); + typeof v != "string" && typeof v != "number" && (v == null ? v = this.options.smartIndent ? "smart" : "prev" : v = v ? "add" : "subtract"), oe(this.doc, f) && Ia(this, f, v, O); }), indentSelection: On(function(f) { for (var v = this.doc.sel.ranges, O = -1, L = 0; L < v.length; L++) { - var U = v[L]; - if (U.empty()) - U.head.line > O && (Ia(this, U.head.line, f, !0), O = U.head.line, L == this.doc.sel.primIndex && po(this)); + var j = v[L]; + if (j.empty()) + j.head.line > O && (Ia(this, j.head.line, f, !0), O = j.head.line, L == this.doc.sel.primIndex && po(this)); else { - var Q = U.from(), ie = U.to(), ue = Math.max(O, Q.line); - O = Math.min(this.lastLine(), ie.line - (ie.ch ? 0 : 1)) + 1; - for (var de = ue; de < O; ++de) + var Q = j.from(), ne = j.to(), se = Math.max(O, Q.line); + O = Math.min(this.lastLine(), ne.line - (ne.ch ? 0 : 1)) + 1; + for (var de = se; de < O; ++de) Ia(this, de, f); - var xe = this.doc.sel.ranges; - Q.ch == 0 && v.length == xe.length && xe[L].from().ch > 0 && hd(this.doc, L, new Pt(Q, xe[L].to()), j); + var Ee = this.doc.sel.ranges; + Q.ch == 0 && v.length == Ee.length && Ee[L].from().ch > 0 && hd(this.doc, L, new Pt(Q, Ee[L].to()), $); } } }), @@ -27367,23 +27374,23 @@ b`.split(/\n/).length != 3 ? function(o) { }, getTokenTypeAt: function(f) { f = _t(this.doc, f); - var v = Kp(this, st(this.doc, f.line)), O = 0, L = (v.length - 1) / 2, U = f.ch, Q; - if (U == 0) + var v = Kp(this, ut(this.doc, f.line)), O = 0, L = (v.length - 1) / 2, j = f.ch, Q; + if (j == 0) Q = v[2]; else for (; ; ) { - var ie = O + L >> 1; - if ((ie ? v[ie * 2 - 1] : 0) >= U) - L = ie; - else if (v[ie * 2 + 1] < U) - O = ie + 1; + var ne = O + L >> 1; + if ((ne ? v[ne * 2 - 1] : 0) >= j) + L = ne; + else if (v[ne * 2 + 1] < j) + O = ne + 1; else { - Q = v[ie * 2 + 2]; + Q = v[ne * 2 + 2]; break; } } - var ue = Q ? Q.indexOf("overlay ") : -1; - return ue < 0 ? Q : ue == 0 ? null : Q.slice(0, ue - 1); + var se = Q ? Q.indexOf("overlay ") : -1; + return se < 0 ? Q : se == 0 ? null : Q.slice(0, se - 1); }, getModeAt: function(f) { var v = this.doc.mode; @@ -27396,19 +27403,19 @@ b`.split(/\n/).length != 3 ? function(o) { var O = []; if (!c.hasOwnProperty(v)) return O; - var L = c[v], U = this.getModeAt(f); - if (typeof U[v] == "string") - L[U[v]] && O.push(L[U[v]]); - else if (U[v]) - for (var Q = 0; Q < U[v].length; Q++) { - var ie = L[U[v][Q]]; - ie && O.push(ie); + var L = c[v], j = this.getModeAt(f); + if (typeof j[v] == "string") + L[j[v]] && O.push(L[j[v]]); + else if (j[v]) + for (var Q = 0; Q < j[v].length; Q++) { + var ne = L[j[v][Q]]; + ne && O.push(ne); } else - U.helperType && L[U.helperType] ? O.push(L[U.helperType]) : L[U.name] && O.push(L[U.name]); - for (var ue = 0; ue < L._global.length; ue++) { - var de = L._global[ue]; - de.pred(U, this) && ce(O, de.val) == -1 && O.push(de.val); + j.helperType && L[j.helperType] ? O.push(L[j.helperType]) : L[j.name] && O.push(L[j.name]); + for (var se = 0; se < L._global.length; se++) { + var de = L._global[se]; + de.pred(j, this) && he(O, de.val) == -1 && O.push(de.val); } return O; }, @@ -27430,13 +27437,13 @@ b`.split(/\n/).length != 3 ? function(o) { return f = Eh(this, { top: f, left: 0 }, v || "page").top, Di(this.doc, f + this.display.viewOffset); }, heightAtLine: function(f, v, O) { - var L = !1, U; + var L = !1, j; if (typeof f == "number") { var Q = this.doc.first + this.doc.size - 1; - f < this.doc.first ? f = this.doc.first : f > Q && (f = Q, L = !0), U = st(this.doc, f); + f < this.doc.first ? f = this.doc.first : f > Q && (f = Q, L = !0), j = ut(this.doc, f); } else - U = f; - return $l(this, U, { top: 0, left: 0 }, v || "page", O || L).top + (L ? this.doc.height - Ji(U) : 0); + j = f; + return $l(this, j, { top: 0, left: 0 }, v || "page", O || L).top + (L ? this.doc.height - Ji(j) : 0); }, defaultTextHeight: function() { return uo(this.display); @@ -27447,17 +27454,17 @@ b`.split(/\n/).length != 3 ? function(o) { getViewport: function() { return { from: this.display.viewFrom, to: this.display.viewTo }; }, - addWidget: function(f, v, O, L, U) { + addWidget: function(f, v, O, L, j) { var Q = this.display; f = wi(this, _t(this.doc, f)); - var ie = f.bottom, ue = f.left; + var ne = f.bottom, se = f.left; if (v.style.position = "absolute", v.setAttribute("cm-ignore-events", "true"), this.display.input.setUneditable(v), Q.sizer.appendChild(v), L == "over") - ie = f.top; + ne = f.top; else if (L == "above" || L == "near") { - var de = Math.max(Q.wrapper.clientHeight, this.doc.height), xe = Math.max(Q.sizer.clientWidth, Q.lineSpace.clientWidth); - (L == "above" || f.bottom + v.offsetHeight > de) && f.top > v.offsetHeight ? ie = f.top - v.offsetHeight : f.bottom + v.offsetHeight <= de && (ie = f.bottom), ue + v.offsetWidth > xe && (ue = xe - v.offsetWidth); + var de = Math.max(Q.wrapper.clientHeight, this.doc.height), Ee = Math.max(Q.sizer.clientWidth, Q.lineSpace.clientWidth); + (L == "above" || f.bottom + v.offsetHeight > de) && f.top > v.offsetHeight ? ne = f.top - v.offsetHeight : f.bottom + v.offsetHeight <= de && (ne = f.bottom), se + v.offsetWidth > Ee && (se = Ee - v.offsetWidth); } - v.style.top = ie + "px", v.style.left = v.style.right = "", U == "right" ? (ue = Q.sizer.clientWidth - v.offsetWidth, v.style.right = "0px") : (U == "left" ? ue = 0 : U == "middle" && (ue = (Q.sizer.clientWidth - v.offsetWidth) / 2), v.style.left = ue + "px"), O && K1(this, { left: ue, top: ie, right: ue + v.offsetWidth, bottom: ie + v.offsetHeight }); + v.style.top = ne + "px", v.style.left = v.style.right = "", j == "right" ? (se = Q.sizer.clientWidth - v.offsetWidth, v.style.right = "0px") : (j == "left" ? se = 0 : j == "middle" && (se = (Q.sizer.clientWidth - v.offsetWidth) / 2), v.style.left = se + "px"), O && K1(this, { left: se, top: ne, right: se + v.offsetWidth, bottom: ne + v.offsetHeight }); }, triggerOnKeyDown: On(km), triggerOnKeyPress: On($m), @@ -27471,9 +27478,9 @@ b`.split(/\n/).length != 3 ? function(o) { Nm(this, f); }), findPosH: function(f, v, O, L) { - var U = 1; - v < 0 && (U = -1, v = -v); - for (var Q = _t(this.doc, f), ie = 0; ie < v && (Q = Cd(this.doc, Q, U, O, L), !Q.hitSide); ++ie) + var j = 1; + v < 0 && (j = -1, v = -v); + for (var Q = _t(this.doc, f), ne = 0; ne < v && (Q = Cd(this.doc, Q, j, O, L), !Q.hitSide); ++ne) ; return Q; }, @@ -27481,61 +27488,61 @@ b`.split(/\n/).length != 3 ? function(o) { var O = this; this.extendSelectionsBy(function(L) { return O.display.shift || O.doc.extend || L.empty() ? Cd(O.doc, L.head, f, v, O.options.rtlMoveVisually) : f < 0 ? L.from() : L.to(); - }, te); + }, X); }), deleteH: On(function(f, v) { var O = this.doc.sel, L = this.doc; - O.somethingSelected() ? L.replaceSelection("", null, "+delete") : wo(this, function(U) { - var Q = Cd(L, U.head, f, v, !1); - return f < 0 ? { from: Q, to: U.head } : { from: U.head, to: Q }; + O.somethingSelected() ? L.replaceSelection("", null, "+delete") : wo(this, function(j) { + var Q = Cd(L, j.head, f, v, !1); + return f < 0 ? { from: Q, to: j.head } : { from: j.head, to: Q }; }); }), findPosV: function(f, v, O, L) { - var U = 1, Q = L; - v < 0 && (U = -1, v = -v); - for (var ie = _t(this.doc, f), ue = 0; ue < v; ++ue) { - var de = wi(this, ie, "div"); - if (Q == null ? Q = de.left : de.left = Q, ie = Um(this, de, U, O), ie.hitSide) + var j = 1, Q = L; + v < 0 && (j = -1, v = -v); + for (var ne = _t(this.doc, f), se = 0; se < v; ++se) { + var de = wi(this, ne, "div"); + if (Q == null ? Q = de.left : de.left = Q, ne = Um(this, de, j, O), ne.hitSide) break; } - return ie; + return ne; }, moveV: On(function(f, v) { - var O = this, L = this.doc, U = [], Q = !this.display.shift && !L.extend && L.sel.somethingSelected(); - if (L.extendSelectionsBy(function(ue) { + var O = this, L = this.doc, j = [], Q = !this.display.shift && !L.extend && L.sel.somethingSelected(); + if (L.extendSelectionsBy(function(se) { if (Q) - return f < 0 ? ue.from() : ue.to(); - var de = wi(O, ue.head, "div"); - ue.goalColumn != null && (de.left = ue.goalColumn), U.push(de.left); - var xe = Um(O, de, f, v); - return v == "page" && ue == L.sel.primary() && id(O, Rl(O, xe, "div").top - de.top), xe; - }, te), U.length) - for (var ie = 0; ie < L.sel.ranges.length; ie++) - L.sel.ranges[ie].goalColumn = U[ie]; + return f < 0 ? se.from() : se.to(); + var de = wi(O, se.head, "div"); + se.goalColumn != null && (de.left = se.goalColumn), j.push(de.left); + var Ee = Um(O, de, f, v); + return v == "page" && se == L.sel.primary() && id(O, Rl(O, Ee, "div").top - de.top), Ee; + }, X), j.length) + for (var ne = 0; ne < L.sel.ranges.length; ne++) + L.sel.ranges[ne].goalColumn = j[ne]; }), findWordAt: function(f) { - var v = this.doc, O = st(v, f.line).text, L = f.ch, U = f.ch; + var v = this.doc, O = ut(v, f.line).text, L = f.ch, j = f.ch; if (O) { var Q = this.getHelper(f, "wordChars"); - (f.sticky == "before" || U == O.length) && L ? --L : ++U; - for (var ie = O.charAt(L), ue = nt(ie, Q) ? function(de) { - return nt(de, Q); - } : /\s/.test(ie) ? function(de) { + (f.sticky == "before" || j == O.length) && L ? --L : ++j; + for (var ne = O.charAt(L), se = it(ne, Q) ? function(de) { + return it(de, Q); + } : /\s/.test(ne) ? function(de) { return /\s/.test(de); } : function(de) { - return !/\s/.test(de) && !nt(de); - }; L > 0 && ue(O.charAt(L - 1)); ) + return !/\s/.test(de) && !it(de); + }; L > 0 && se(O.charAt(L - 1)); ) --L; - for (; U < O.length && ue(O.charAt(U)); ) - ++U; + for (; j < O.length && se(O.charAt(j)); ) + ++j; } - return new Pt(ye(f.line, L), ye(f.line, U)); + return new Pt(ye(f.line, L), ye(f.line, j)); }, toggleOverwrite: function(f) { - f != null && f == this.state.overwrite || ((this.state.overwrite = !this.state.overwrite) ? Z(this.display.cursorDiv, "CodeMirror-overwrite") : V(this.display.cursorDiv, "CodeMirror-overwrite"), at(this, "overwriteToggle", this, this.state.overwrite)); + f != null && f == this.state.overwrite || ((this.state.overwrite = !this.state.overwrite) ? Z(this.display.cursorDiv, "CodeMirror-overwrite") : V(this.display.cursorDiv, "CodeMirror-overwrite"), st(this, "overwriteToggle", this, this.state.overwrite)); }, hasFocus: function() { - return this.display.input.getField() == q(ve(this)); + return this.display.input.getField() == q(te(this)); }, isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit); @@ -27562,17 +27569,17 @@ b`.split(/\n/).length != 3 ? function(o) { return typeof Q == "number" || /^\d+$/.test(String(Q)) ? Q + "px" : Q; }; f != null && (this.display.wrapper.style.width = L(f)), v != null && (this.display.wrapper.style.height = L(v)), this.options.lineWrapping && Ah(this); - var U = this.display.viewFrom; - this.doc.iter(U, this.display.viewTo, function(Q) { + var j = this.display.viewFrom; + this.doc.iter(j, this.display.viewTo, function(Q) { if (Q.widgets) { - for (var ie = 0; ie < Q.widgets.length; ie++) - if (Q.widgets[ie].noHScroll) { - mr(O, U, "widget"); + for (var ne = 0; ne < Q.widgets.length; ne++) + if (Q.widgets[ne].noHScroll) { + mr(O, j, "widget"); break; } } - ++U; - }), this.curOp.forceUpdate = !0, at(this, "refresh", this); + ++j; + }), this.curOp.forceUpdate = !0, st(this, "refresh", this); }), operation: function(f) { return Wn(this, f); @@ -27585,7 +27592,7 @@ b`.split(/\n/).length != 3 ? function(o) { }, refresh: On(function() { var f = this.display.cachedTextHeight; - Ln(this), this.curOp.forceUpdate = !0, ca(this), ha(this, this.doc.scrollLeft, this.doc.scrollTop), ad(this.display), (f == null || Math.abs(f - uo(this.display)) > 0.5 || this.options.lineWrapping) && Xu(this), at(this, "refresh", this); + Ln(this), this.curOp.forceUpdate = !0, ca(this), ha(this, this.doc.scrollLeft, this.doc.scrollTop), ad(this.display), (f == null || Math.abs(f - uo(this.display)) > 0.5 || this.options.lineWrapping) && Xu(this), st(this, "refresh", this); }), swapDoc: On(function(f) { var v = this.doc; @@ -27614,26 +27621,26 @@ b`.split(/\n/).length != 3 ? function(o) { }; } function Cd(o, l, c, f, v) { - var O = l, L = c, U = st(o, l.line), Q = v && o.direction == "rtl" ? -c : c; - function ie() { - var tt = l.line + Q; - return tt < o.first || tt >= o.first + o.size ? !1 : (l = new ye(tt, l.ch, l.sticky), U = st(o, tt)); + var O = l, L = c, j = ut(o, l.line), Q = v && o.direction == "rtl" ? -c : c; + function ne() { + var nt = l.line + Q; + return nt < o.first || nt >= o.first + o.size ? !1 : (l = new ye(nt, l.ch, l.sticky), j = ut(o, nt)); } - function ue(tt) { + function se(nt) { var Qe; if (f == "codepoint") { - var rt = U.text.charCodeAt(l.ch + (c > 0 ? 0 : -1)); - if (isNaN(rt)) + var ot = j.text.charCodeAt(l.ch + (c > 0 ? 0 : -1)); + if (isNaN(ot)) Qe = null; else { - var ht = c > 0 ? rt >= 55296 && rt < 56320 : rt >= 56320 && rt < 57343; - Qe = new ye(l.line, Math.max(0, Math.min(U.text.length, l.ch + c * (ht ? 2 : 1))), -c); + var mt = c > 0 ? ot >= 55296 && ot < 56320 : ot >= 56320 && ot < 57343; + Qe = new ye(l.line, Math.max(0, Math.min(j.text.length, l.ch + c * (mt ? 2 : 1))), -c); } } else - v ? Qe = R_(o.cm, U, l, c) : Qe = vd(U, l, c); + v ? Qe = R_(o.cm, j, l, c) : Qe = vd(j, l, c); if (Qe == null) - if (!tt && ie()) - l = gd(v, o.cm, U, l.line, Q); + if (!nt && ne()) + l = gd(v, o.cm, j, l.line, Q); else return !1; else @@ -27641,19 +27648,19 @@ b`.split(/\n/).length != 3 ? function(o) { return !0; } if (f == "char" || f == "codepoint") - ue(); + se(); else if (f == "column") - ue(!0); + se(!0); else if (f == "word" || f == "group") - for (var de = null, xe = f == "group", Ce = o.cm && o.cm.getHelper(l, "wordChars"), Ie = !0; !(c < 0 && !ue(!Ie)); Ie = !1) { - var Le = U.text.charAt(l.ch) || ` -`, Ue = nt(Le, Ce) ? "w" : xe && Le == ` -` ? "n" : !xe || /\s/.test(Le) ? null : "p"; - if (xe && !Ie && !Ue && (Ue = "s"), de && de != Ue) { - c < 0 && (c = 1, ue(), l.sticky = "after"); + for (var de = null, Ee = f == "group", Ce = o.cm && o.cm.getHelper(l, "wordChars"), Ie = !0; !(c < 0 && !se(!Ie)); Ie = !1) { + var Ne = j.text.charAt(l.ch) || ` +`, Ue = it(Ne, Ce) ? "w" : Ee && Ne == ` +` ? "n" : !Ee || /\s/.test(Ne) ? null : "p"; + if (Ee && !Ie && !Ue && (Ue = "s"), de && de != Ue) { + c < 0 && (c = 1, se(), l.sticky = "after"); break; } - if (Ue && (de = Ue), c > 0 && !ue(!Ie)) + if (Ue && (de = Ue), c > 0 && !se(!Ie)) break; } var Ye = Hl(o, l, O, L, !0); @@ -27662,18 +27669,18 @@ b`.split(/\n/).length != 3 ? function(o) { function Um(o, l, c, f) { var v = o.doc, O = l.left, L; if (f == "page") { - var U = Math.min(o.display.wrapper.clientHeight, pe(o).innerHeight || v(o).documentElement.clientHeight), Q = Math.max(U - 0.5 * uo(o.display), 3); + var j = Math.min(o.display.wrapper.clientHeight, pe(o).innerHeight || v(o).documentElement.clientHeight), Q = Math.max(j - 0.5 * uo(o.display), 3); L = (c > 0 ? l.bottom : l.top) + c * Q; } else f == "line" && (L = c > 0 ? l.bottom + 3 : l.top - 3); - for (var ie; ie = Ku(o, O, L), !!ie.outside; ) { + for (var ne; ne = Ku(o, O, L), !!ne.outside; ) { if (c < 0 ? L <= 0 : L >= v.height) { - ie.hitSide = !0; + ne.hitSide = !0; break; } L += c * 5; } - return ie; + return ne; } var Lt = function(o) { this.cm = o, this.lastAnchorNode = this.lastAnchorOffset = this.lastFocusNode = this.lastFocusOffset = null, this.polling = new we(), this.composing = null, this.gracePeriod = !1, this.readDOMTimeout = null; @@ -27681,8 +27688,8 @@ b`.split(/\n/).length != 3 ? function(o) { Lt.prototype.init = function(o) { var l = this, c = this, f = c.cm, v = c.div = o.lineDiv; v.contentEditable = !0, Vm(v, f.options.spellcheck, f.options.autocorrect, f.options.autocapitalize); - function O(U) { - for (var Q = U.target; Q; Q = Q.parentNode) { + function O(j) { + for (var Q = j.target; Q; Q = Q.parentNode) { if (Q == v) return !0; if (/\bCodeMirror-(?:line)?widget\b/.test(Q.className)) @@ -27690,47 +27697,47 @@ b`.split(/\n/).length != 3 ? function(o) { } return !1; } - $e(v, "paste", function(U) { - !O(U) || Ct(f, U) || Lm(U, f) || p <= 11 && setTimeout(hn(f, function() { + $e(v, "paste", function(j) { + !O(j) || Ct(f, j) || Lm(j, f) || p <= 11 && setTimeout(hn(f, function() { return l.updateFromDOM(); }), 20); - }), $e(v, "compositionstart", function(U) { - l.composing = { data: U.data, done: !1 }; - }), $e(v, "compositionupdate", function(U) { - l.composing || (l.composing = { data: U.data, done: !1 }); - }), $e(v, "compositionend", function(U) { - l.composing && (U.data != l.composing.data && l.readFromDOMSoon(), l.composing.done = !0); + }), $e(v, "compositionstart", function(j) { + l.composing = { data: j.data, done: !1 }; + }), $e(v, "compositionupdate", function(j) { + l.composing || (l.composing = { data: j.data, done: !1 }); + }), $e(v, "compositionend", function(j) { + l.composing && (j.data != l.composing.data && l.readFromDOMSoon(), l.composing.done = !0); }), $e(v, "touchstart", function() { return c.forceCompositionEnd(); }), $e(v, "input", function() { l.composing || l.readFromDOMSoon(); }); - function L(U) { - if (!(!O(U) || Ct(f, U))) { + function L(j) { + if (!(!O(j) || Ct(f, j))) { if (f.somethingSelected()) - Ql({ lineWise: !1, text: f.getSelections() }), U.type == "cut" && f.replaceSelection("", null, "cut"); + Ql({ lineWise: !1, text: f.getSelections() }), j.type == "cut" && f.replaceSelection("", null, "cut"); else if (f.options.lineWiseCopyCut) { var Q = Bm(f); - Ql({ lineWise: !0, text: Q.text }), U.type == "cut" && f.operation(function() { - f.setSelections(Q.ranges, 0, j), f.replaceSelection("", null, "cut"); + Ql({ lineWise: !0, text: Q.text }), j.type == "cut" && f.operation(function() { + f.setSelections(Q.ranges, 0, $), f.replaceSelection("", null, "cut"); }); } else return; - if (U.clipboardData) { - U.clipboardData.clearData(); - var ie = Ci.text.join(` + if (j.clipboardData) { + j.clipboardData.clearData(); + var ne = Ci.text.join(` `); - if (U.clipboardData.setData("Text", ie), U.clipboardData.getData("Text") == ie) { - U.preventDefault(); + if (j.clipboardData.setData("Text", ne), j.clipboardData.getData("Text") == ne) { + j.preventDefault(); return; } } - var ue = jm(), de = ue.firstChild; - f.display.lineSpace.insertBefore(ue, f.display.lineSpace.firstChild), de.value = Ci.text.join(` + var se = jm(), de = se.firstChild; + f.display.lineSpace.insertBefore(se, f.display.lineSpace.firstChild), de.value = Ci.text.join(` `); - var xe = q(v.ownerDocument); - J(de), setTimeout(function() { - f.display.lineSpace.removeChild(ue), xe.focus(), xe == v && c.showPrimarySelection(); + var Ee = q(v.ownerDocument); + ue(de), setTimeout(function() { + f.display.lineSpace.removeChild(se), Ee.focus(), Ee == v && c.showPrimarySelection(); }, 50); } } @@ -27751,22 +27758,22 @@ b`.split(/\n/).length != 3 ? function(o) { return; } var O = Jl(l, o.anchorNode, o.anchorOffset), L = Jl(l, o.focusNode, o.focusOffset); - if (!(O && !O.bad && L && !L.bad && Re(un(O, L), f) == 0 && Re(Rt(O, L), v) == 0)) { - var U = l.display.view, Q = f.line >= l.display.viewFrom && Hm(l, f) || { node: U[0].measure.map[2], offset: 0 }, ie = v.line < l.display.viewTo && Hm(l, v); - if (!ie) { - var ue = U[U.length - 1].measure, de = ue.maps ? ue.maps[ue.maps.length - 1] : ue.map; - ie = { node: de[de.length - 1], offset: de[de.length - 2] - de[de.length - 3] }; + if (!(O && !O.bad && L && !L.bad && De(un(O, L), f) == 0 && De(Rt(O, L), v) == 0)) { + var j = l.display.view, Q = f.line >= l.display.viewFrom && Hm(l, f) || { node: j[0].measure.map[2], offset: 0 }, ne = v.line < l.display.viewTo && Hm(l, v); + if (!ne) { + var se = j[j.length - 1].measure, de = se.maps ? se.maps[se.maps.length - 1] : se.map; + ne = { node: de[de.length - 1], offset: de[de.length - 2] - de[de.length - 3] }; } - if (!Q || !ie) { + if (!Q || !ne) { o.removeAllRanges(); return; } - var xe = o.rangeCount && o.getRangeAt(0), Ce; + var Ee = o.rangeCount && o.getRangeAt(0), Ce; try { - Ce = C(Q.node, Q.offset, ie.offset, ie.node); + Ce = F(Q.node, Q.offset, ne.offset, ne.node); } catch { } - Ce && (!n && l.state.focused ? (o.collapse(Q.node, Q.offset), Ce.collapsed || (o.removeAllRanges(), o.addRange(Ce))) : (o.removeAllRanges(), o.addRange(Ce)), xe && o.anchorNode == null ? o.addRange(xe) : n && this.startGracePeriod()), this.rememberSelection(); + Ce && (!n && l.state.focused ? (o.collapse(Q.node, Q.offset), Ce.collapsed || (o.removeAllRanges(), o.addRange(Ce))) : (o.removeAllRanges(), o.addRange(Ce)), Ee && o.anchorNode == null ? o.addRange(Ee) : n && this.startGracePeriod()), this.rememberSelection(); } }, Lt.prototype.startGracePeriod = function() { var o = this; @@ -27785,7 +27792,7 @@ b`.split(/\n/).length != 3 ? function(o) { if (!o.rangeCount) return !1; var l = o.getRangeAt(0).commonAncestorContainer; - return F(this.div, l); + return C(this.div, l); }, Lt.prototype.focus = function() { this.cm.options.readOnly != "nocursor" && ((!this.selectionInEditor() || q(this.div.ownerDocument) != this.div) && this.showSelection(this.prepareSelection(), !0), this.div.focus()); }, Lt.prototype.blur = function() { @@ -27819,41 +27826,41 @@ b`.split(/\n/).length != 3 ? function(o) { this.rememberSelection(); var c = Jl(l, o.anchorNode, o.anchorOffset), f = Jl(l, o.focusNode, o.focusOffset); c && f && Wn(l, function() { - En(l.doc, gr(c, f), j), (c.bad || f.bad) && (l.curOp.selectionChanged = !0); + En(l.doc, gr(c, f), $), (c.bad || f.bad) && (l.curOp.selectionChanged = !0); }); } } }, Lt.prototype.pollContent = function() { this.readDOMTimeout != null && (clearTimeout(this.readDOMTimeout), this.readDOMTimeout = null); var o = this.cm, l = o.display, c = o.doc.sel.primary(), f = c.from(), v = c.to(); - if (f.ch == 0 && f.line > o.firstLine() && (f = ye(f.line - 1, st(o.doc, f.line - 1).length)), v.ch == st(o.doc, v.line).text.length && v.line < o.lastLine() && (v = ye(v.line + 1, 0)), f.line < l.viewFrom || v.line > l.viewTo - 1) + if (f.ch == 0 && f.line > o.firstLine() && (f = ye(f.line - 1, ut(o.doc, f.line - 1).length)), v.ch == ut(o.doc, v.line).text.length && v.line < o.lastLine() && (v = ye(v.line + 1, 0)), f.line < l.viewFrom || v.line > l.viewTo - 1) return !1; - var O, L, U; - f.line == l.viewFrom || (O = Pr(o, f.line)) == 0 ? (L = Ft(l.view[0].line), U = l.view[0].node) : (L = Ft(l.view[O].line), U = l.view[O - 1].node.nextSibling); - var Q = Pr(o, v.line), ie, ue; - if (Q == l.view.length - 1 ? (ie = l.viewTo - 1, ue = l.lineDiv.lastChild) : (ie = Ft(l.view[Q + 1].line) - 1, ue = l.view[Q + 1].node.previousSibling), !U) + var O, L, j; + f.line == l.viewFrom || (O = Pr(o, f.line)) == 0 ? (L = Ft(l.view[0].line), j = l.view[0].node) : (L = Ft(l.view[O].line), j = l.view[O - 1].node.nextSibling); + var Q = Pr(o, v.line), ne, se; + if (Q == l.view.length - 1 ? (ne = l.viewTo - 1, se = l.lineDiv.lastChild) : (ne = Ft(l.view[Q + 1].line) - 1, se = l.view[Q + 1].node.previousSibling), !j) return !1; - for (var de = o.doc.splitLines(Z_(o, U, ue, L, ie)), xe = Yi(o.doc, ye(L, 0), ye(ie, st(o.doc, ie).text.length)); de.length > 1 && xe.length > 1; ) - if (Ae(de) == Ae(xe)) - de.pop(), xe.pop(), ie--; - else if (de[0] == xe[0]) - de.shift(), xe.shift(), L++; + for (var de = o.doc.splitLines(Z_(o, j, se, L, ne)), Ee = Yi(o.doc, ye(L, 0), ye(ne, ut(o.doc, ne).text.length)); de.length > 1 && Ee.length > 1; ) + if (Ae(de) == Ae(Ee)) + de.pop(), Ee.pop(), ne--; + else if (de[0] == Ee[0]) + de.shift(), Ee.shift(), L++; else break; - for (var Ce = 0, Ie = 0, Le = de[0], Ue = xe[0], Ye = Math.min(Le.length, Ue.length); Ce < Ye && Le.charCodeAt(Ce) == Ue.charCodeAt(Ce); ) + for (var Ce = 0, Ie = 0, Ne = de[0], Ue = Ee[0], Ye = Math.min(Ne.length, Ue.length); Ce < Ye && Ne.charCodeAt(Ce) == Ue.charCodeAt(Ce); ) ++Ce; - for (var tt = Ae(de), Qe = Ae(xe), rt = Math.min( - tt.length - (de.length == 1 ? Ce : 0), - Qe.length - (xe.length == 1 ? Ce : 0) - ); Ie < rt && tt.charCodeAt(tt.length - Ie - 1) == Qe.charCodeAt(Qe.length - Ie - 1); ) + for (var nt = Ae(de), Qe = Ae(Ee), ot = Math.min( + nt.length - (de.length == 1 ? Ce : 0), + Qe.length - (Ee.length == 1 ? Ce : 0) + ); Ie < ot && nt.charCodeAt(nt.length - Ie - 1) == Qe.charCodeAt(Qe.length - Ie - 1); ) ++Ie; - if (de.length == 1 && xe.length == 1 && L == f.line) - for (; Ce && Ce > f.ch && tt.charCodeAt(tt.length - Ie - 1) == Qe.charCodeAt(Qe.length - Ie - 1); ) + if (de.length == 1 && Ee.length == 1 && L == f.line) + for (; Ce && Ce > f.ch && nt.charCodeAt(nt.length - Ie - 1) == Qe.charCodeAt(Qe.length - Ie - 1); ) Ce--, Ie++; - de[de.length - 1] = tt.slice(0, tt.length - Ie).replace(/^\u200b+/, ""), de[0] = de[0].slice(Ce).replace(/\u200b+$/, ""); - var ht = ye(L, Ce), ft = ye(ie, xe.length ? Ae(xe).length - Ie : 0); - if (de.length > 1 || de[0] || Re(ht, ft)) - return yo(o.doc, de, ht, ft, "+input"), !0; + de[de.length - 1] = nt.slice(0, nt.length - Ie).replace(/^\u200b+/, ""), de[0] = de[0].slice(Ce).replace(/\u200b+$/, ""); + var mt = ye(L, Ce), ct = ye(ne, Ee.length ? Ae(Ee).length - Ie : 0); + if (de.length > 1 || de[0] || De(mt, ct)) + return yo(o.doc, de, mt, ct, "+input"), !0; }, Lt.prototype.ensurePolled = function() { this.forceCompositionEnd(); }, Lt.prototype.reset = function() { @@ -27888,10 +27895,10 @@ b`.split(/\n/).length != 3 ? function(o) { var c = zu(o, l.line); if (!c || c.hidden) return null; - var f = st(o.doc, l.line), v = gh(c, f, l.line), O = pt(f, o.doc.direction), L = "left"; + var f = ut(o.doc, l.line), v = gh(c, f, l.line), O = ht(f, o.doc.direction), L = "left"; if (O) { - var U = He(O, l.ch); - L = U % 2 ? "right" : "left"; + var j = je(O, l.ch); + L = j % 2 ? "right" : "left"; } var Q = _h(v.map, l.ch, L); return Q.offset = Q.collapse == "right" ? Q.end : Q.start, Q; @@ -27906,44 +27913,44 @@ b`.split(/\n/).length != 3 ? function(o) { return l && (o.bad = !0), o; } function Z_(o, l, c, f, v) { - var O = "", L = !1, U = o.doc.lineSeparator(), Q = !1; - function ie(Ce) { + var O = "", L = !1, j = o.doc.lineSeparator(), Q = !1; + function ne(Ce) { return function(Ie) { return Ie.id == Ce; }; } - function ue() { - L && (O += U, Q && (O += U), L = Q = !1); + function se() { + L && (O += j, Q && (O += j), L = Q = !1); } function de(Ce) { - Ce && (ue(), O += Ce); + Ce && (se(), O += Ce); } - function xe(Ce) { + function Ee(Ce) { if (Ce.nodeType == 1) { var Ie = Ce.getAttribute("cm-text"); if (Ie) { de(Ie); return; } - var Le = Ce.getAttribute("cm-marker"), Ue; - if (Le) { - var Ye = o.findMarks(ye(f, 0), ye(v + 1, 0), ie(+Le)); - Ye.length && (Ue = Ye[0].find(0)) && de(Yi(o.doc, Ue.from, Ue.to).join(U)); + var Ne = Ce.getAttribute("cm-marker"), Ue; + if (Ne) { + var Ye = o.findMarks(ye(f, 0), ye(v + 1, 0), ne(+Ne)); + Ye.length && (Ue = Ye[0].find(0)) && de(Yi(o.doc, Ue.from, Ue.to).join(j)); return; } if (Ce.getAttribute("contenteditable") == "false") return; - var tt = /^(pre|div|p|li|table|br)$/i.test(Ce.nodeName); + var nt = /^(pre|div|p|li|table|br)$/i.test(Ce.nodeName); if (!/^br$/i.test(Ce.nodeName) && Ce.textContent.length == 0) return; - tt && ue(); + nt && se(); for (var Qe = 0; Qe < Ce.childNodes.length; Qe++) - xe(Ce.childNodes[Qe]); - /^(pre|p)$/i.test(Ce.nodeName) && (Q = !0), tt && (L = !0); + Ee(Ce.childNodes[Qe]); + /^(pre|p)$/i.test(Ce.nodeName) && (Q = !0), nt && (L = !0); } else Ce.nodeType == 3 && de(Ce.nodeValue.replace(/\u200b/g, "").replace(/\u00a0/g, " ")); } - for (; xe(l), l != c; ) + for (; Ee(l), l != c; ) l = l.nextSibling, Q = !1; return O; } @@ -27968,38 +27975,38 @@ b`.split(/\n/).length != 3 ? function(o) { } function q_(o, l, c) { var f = o.text.firstChild, v = !1; - if (!l || !F(f, l)) + if (!l || !C(f, l)) return Co(ye(Ft(o.line), 0), !0); if (l == f && (v = !0, l = f.childNodes[c], c = 0, !l)) { var O = o.rest ? Ae(o.rest) : o.line; return Co(ye(Ft(O), O.text.length), v); } - var L = l.nodeType == 3 ? l : null, U = l; - for (!L && l.childNodes.length == 1 && l.firstChild.nodeType == 3 && (L = l.firstChild, c && (c = L.nodeValue.length)); U.parentNode != f; ) - U = U.parentNode; - var Q = o.measure, ie = Q.maps; - function ue(Ue, Ye, tt) { - for (var Qe = -1; Qe < (ie ? ie.length : 0); Qe++) - for (var rt = Qe < 0 ? Q.map : ie[Qe], ht = 0; ht < rt.length; ht += 3) { - var ft = rt[ht + 2]; - if (ft == Ue || ft == Ye) { - var Et = Ft(Qe < 0 ? o.line : o.rest[Qe]), Vt = rt[ht] + tt; - return (tt < 0 || ft != Ue) && (Vt = rt[ht + (tt ? 1 : 0)]), ye(Et, Vt); + var L = l.nodeType == 3 ? l : null, j = l; + for (!L && l.childNodes.length == 1 && l.firstChild.nodeType == 3 && (L = l.firstChild, c && (c = L.nodeValue.length)); j.parentNode != f; ) + j = j.parentNode; + var Q = o.measure, ne = Q.maps; + function se(Ue, Ye, nt) { + for (var Qe = -1; Qe < (ne ? ne.length : 0); Qe++) + for (var ot = Qe < 0 ? Q.map : ne[Qe], mt = 0; mt < ot.length; mt += 3) { + var ct = ot[mt + 2]; + if (ct == Ue || ct == Ye) { + var Et = Ft(Qe < 0 ? o.line : o.rest[Qe]), Vt = ot[mt] + nt; + return (nt < 0 || ct != Ue) && (Vt = ot[mt + (nt ? 1 : 0)]), ye(Et, Vt); } } } - var de = ue(L, U, c); + var de = se(L, j, c); if (de) return Co(de, v); - for (var xe = U.nextSibling, Ce = L ? L.nodeValue.length - c : 0; xe; xe = xe.nextSibling) { - if (de = ue(xe, xe.firstChild, 0), de) + for (var Ee = j.nextSibling, Ce = L ? L.nodeValue.length - c : 0; Ee; Ee = Ee.nextSibling) { + if (de = se(Ee, Ee.firstChild, 0), de) return Co(ye(de.line, de.ch - Ce), v); - Ce += xe.textContent.length; + Ce += Ee.textContent.length; } - for (var Ie = U.previousSibling, Le = c; Ie; Ie = Ie.previousSibling) { - if (de = ue(Ie, Ie.firstChild, -1), de) - return Co(ye(de.line, de.ch + Le), v); - Le += Ie.textContent.length; + for (var Ie = j.previousSibling, Ne = c; Ie; Ie = Ie.previousSibling) { + if (de = se(Ie, Ie.firstChild, -1), de) + return Co(ye(de.line, de.ch + Ne), v); + Ne += Ie.textContent.length; } } var en = function(o) { @@ -28019,9 +28026,9 @@ b`.split(/\n/).length != 3 ? function(o) { if (f.somethingSelected()) Ql({ lineWise: !1, text: f.getSelections() }); else if (f.options.lineWiseCopyCut) { - var U = Bm(f); - Ql({ lineWise: !0, text: U.text }), L.type == "cut" ? f.setSelections(U.ranges, null, j) : (c.prevInput = "", v.value = U.text.join(` -`), J(v)); + var j = Bm(f); + Ql({ lineWise: !0, text: j.text }), L.type == "cut" ? f.setSelections(j.ranges, null, $) : (c.prevInput = "", v.value = j.text.join(` +`), ue(v)); } else return; L.type == "cut" && (f.state.cutIncoming = +new Date()); @@ -28033,8 +28040,8 @@ b`.split(/\n/).length != 3 ? function(o) { f.state.pasteIncoming = +new Date(), c.focus(); return; } - var U = new Event("paste"); - U.clipboardData = L.clipboardData, v.dispatchEvent(U); + var j = new Event("paste"); + j.clipboardData = L.clipboardData, v.dispatchEvent(j); } }), $e(o.lineSpace, "selectstart", function(L) { Xi(o, L) || It(L); @@ -28073,7 +28080,7 @@ b`.split(/\n/).length != 3 ? function(o) { if (l.somethingSelected()) { this.prevInput = ""; var c = l.getSelection(); - this.textarea.value = c, l.state.focused && J(this.textarea), d && p >= 9 && (this.hasSelection = c); + this.textarea.value = c, l.state.focused && ue(this.textarea), d && p >= 9 && (this.hasSelection = c); } else o || (this.prevInput = this.textarea.value = "", d && p >= 9 && (this.hasSelection = null)); } @@ -28120,7 +28127,7 @@ b`.split(/\n/).length != 3 ? function(o) { if (O == 8203 && !f && (f = "\u200B"), O == 8666) return this.reset(), this.cm.execCommand("undo"); } - for (var L = 0, U = Math.min(f.length, v.length); L < U && f.charCodeAt(L) == v.charCodeAt(L); ) + for (var L = 0, j = Math.min(f.length, v.length); L < j && f.charCodeAt(L) == v.charCodeAt(L); ) ++L; return Wn(l, function() { Ad( @@ -28146,34 +28153,34 @@ b`.split(/\n/).length != 3 ? function(o) { var O = Fr(c, o), L = f.scroller.scrollTop; if (!O || b) return; - var U = c.options.resetSelectionOnContextMenu; - U && c.doc.sel.contains(O) == -1 && hn(c, En)(c.doc, gr(O), j); - var Q = v.style.cssText, ie = l.wrapper.style.cssText, ue = l.wrapper.offsetParent.getBoundingClientRect(); + var j = c.options.resetSelectionOnContextMenu; + j && c.doc.sel.contains(O) == -1 && hn(c, En)(c.doc, gr(O), $); + var Q = v.style.cssText, ne = l.wrapper.style.cssText, se = l.wrapper.offsetParent.getBoundingClientRect(); l.wrapper.style.cssText = "position: static", v.style.cssText = `position: absolute; width: 30px; height: 30px; - top: ` + (o.clientY - ue.top - 5) + "px; left: " + (o.clientX - ue.left - 5) + `px; + top: ` + (o.clientY - se.top - 5) + "px; left: " + (o.clientX - se.left - 5) + `px; z-index: 1000; background: ` + (d ? "rgba(255, 255, 255, .05)" : "transparent") + `; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`; var de; h && (de = v.ownerDocument.defaultView.scrollY), f.input.focus(), h && v.ownerDocument.defaultView.scrollTo(null, de), f.input.reset(), c.somethingSelected() || (v.value = l.prevInput = " "), l.contextMenuPending = Ce, f.selForContextMenu = c.doc.sel, clearTimeout(f.detectingSelectAll); - function xe() { + function Ee() { if (v.selectionStart != null) { - var Le = c.somethingSelected(), Ue = "\u200B" + (Le ? v.value : ""); - v.value = "\u21DA", v.value = Ue, l.prevInput = Le ? "" : "\u200B", v.selectionStart = 1, v.selectionEnd = Ue.length, f.selForContextMenu = c.doc.sel; + var Ne = c.somethingSelected(), Ue = "\u200B" + (Ne ? v.value : ""); + v.value = "\u21DA", v.value = Ue, l.prevInput = Ne ? "" : "\u200B", v.selectionStart = 1, v.selectionEnd = Ue.length, f.selForContextMenu = c.doc.sel; } } function Ce() { - if (l.contextMenuPending == Ce && (l.contextMenuPending = !1, l.wrapper.style.cssText = ie, v.style.cssText = Q, d && p < 9 && f.scrollbars.setScrollTop(f.scroller.scrollTop = L), v.selectionStart != null)) { - (!d || d && p < 9) && xe(); - var Le = 0, Ue = function() { - f.selForContextMenu == c.doc.sel && v.selectionStart == 0 && v.selectionEnd > 0 && l.prevInput == "\u200B" ? hn(c, lm)(c) : Le++ < 10 ? f.detectingSelectAll = setTimeout(Ue, 500) : (f.selForContextMenu = null, f.input.reset()); + if (l.contextMenuPending == Ce && (l.contextMenuPending = !1, l.wrapper.style.cssText = ne, v.style.cssText = Q, d && p < 9 && f.scrollbars.setScrollTop(f.scroller.scrollTop = L), v.selectionStart != null)) { + (!d || d && p < 9) && Ee(); + var Ne = 0, Ue = function() { + f.selForContextMenu == c.doc.sel && v.selectionStart == 0 && v.selectionEnd > 0 && l.prevInput == "\u200B" ? hn(c, lm)(c) : Ne++ < 10 ? f.detectingSelectAll = setTimeout(Ue, 500) : (f.selForContextMenu = null, f.input.reset()); }; f.detectingSelectAll = setTimeout(Ue, 200); } } - if (d && p >= 9 && xe(), T) { + if (d && p >= 9 && Ee(), T) { yi(o); var Ie = function() { - ot(window, "mouseup", Ie), setTimeout(Ce, 20); + lt(window, "mouseup", Ie), setTimeout(Ce, 20); }; $e(window, "mouseup", Ie); } else @@ -28188,7 +28195,7 @@ b`.split(/\n/).length != 3 ? function(o) { l.autofocus = c == o || o.getAttribute("autofocus") != null && c == document.body; } function f() { - o.value = U.getValue(); + o.value = j.getValue(); } var v; if (o.form && ($e(o.form, "submit", f), !l.leaveSubmitMethodAlone)) { @@ -28205,24 +28212,24 @@ b`.split(/\n/).length != 3 ? function(o) { Q.save = f, Q.getTextArea = function() { return o; }, Q.toTextArea = function() { - Q.toTextArea = isNaN, f(), o.parentNode.removeChild(Q.getWrapperElement()), o.style.display = "", o.form && (ot(o.form, "submit", f), !l.leaveSubmitMethodAlone && typeof o.form.submit == "function" && (o.form.submit = v)); + Q.toTextArea = isNaN, f(), o.parentNode.removeChild(Q.getWrapperElement()), o.style.display = "", o.form && (lt(o.form, "submit", f), !l.leaveSubmitMethodAlone && typeof o.form.submit == "function" && (o.form.submit = v)); }; }, o.style.display = "none"; - var U = Kt( + var j = Kt( function(Q) { return o.parentNode.insertBefore(Q, o.nextSibling); }, l ); - return U; + return j; } function tw(o) { - o.off = ot, o.on = $e, o.wheelEventPixels = s_, o.Doc = Nn, o.splitLines = oa, o.countColumn = me, o.findColumn = se, o.isWordChar = Oe, o.Pass = I, o.signal = at, o.Line = ao, o.changeEnd = yr, o.scrollbarModel = Lh, o.Pos = ye, o.cmpPos = Re, o.modes = bi, o.mimeModes = fr, o.resolveMode = zn, o.getMode = Gi, o.modeExtensions = cr, o.extendMode = wl, o.copyState = Ki, o.startState = aa, o.innerMode = pr, o.commands = Oa, o.keyMap = qi, o.keyName = Cm, o.isModifierKey = wm, o.lookupKey = _o, o.normalizeKeyMap = $_, o.StringStream = Zt, o.SharedTextMarker = xa, o.TextMarker = _r, o.LineWidget = Ea, o.e_preventDefault = It, o.e_stopPropagation = ui, o.e_stop = yi, o.addClass = Z, o.contains = F, o.rmClass = V, o.keyNames = wr; + o.off = lt, o.on = $e, o.wheelEventPixels = s_, o.Doc = Nn, o.splitLines = oa, o.countColumn = ve, o.findColumn = ie, o.isWordChar = Oe, o.Pass = xe, o.signal = st, o.Line = ao, o.changeEnd = yr, o.scrollbarModel = Lh, o.Pos = ye, o.cmpPos = De, o.modes = bi, o.mimeModes = fr, o.resolveMode = zn, o.getMode = Gi, o.modeExtensions = cr, o.extendMode = wl, o.copyState = Ki, o.startState = aa, o.innerMode = pr, o.commands = Oa, o.keyMap = qi, o.keyName = Cm, o.isModifierKey = wm, o.lookupKey = _o, o.normalizeKeyMap = $_, o.StringStream = Zt, o.SharedTextMarker = xa, o.TextMarker = _r, o.LineWidget = Ea, o.e_preventDefault = It, o.e_stopPropagation = ui, o.e_stop = yi, o.addClass = Z, o.contains = C, o.rmClass = V, o.keyNames = wr; } G_(Kt), J_(Kt); var nw = "iter insert remove copy getEditor constructor".split(" "); for (var Xl in Nn.prototype) - Nn.prototype.hasOwnProperty(Xl) && ce(nw, Xl) < 0 && (Kt.prototype[Xl] = function(o) { + Nn.prototype.hasOwnProperty(Xl) && he(nw, Xl) < 0 && (Kt.prototype[Xl] = function(o) { return function() { return o.apply(this.doc, arguments); }; @@ -28247,14 +28254,14 @@ const rr = to.exports; })(function(i) { i.defineMode("javascript", function(r, n) { var a = r.indentUnit, s = n.statementIndent, u = n.jsonld, d = n.json || u, p = n.trackScope !== !1, h = n.typescript, g = n.wordCharacters || /[\w$\xa1-\uffff]/, _ = function() { - function re(un) { + function oe(un) { return { type: un, style: "keyword" }; } - var fe = re("keyword a"), ye = re("keyword b"), Re = re("keyword c"), bt = re("keyword d"), $t = re("operator"), Rt = { type: "atom", style: "atom" }; + var ce = oe("keyword a"), ye = oe("keyword b"), De = oe("keyword c"), bt = oe("keyword d"), Ot = oe("operator"), Rt = { type: "atom", style: "atom" }; return { - if: re("if"), - while: fe, - with: fe, + if: oe("if"), + while: ce, + with: ce, else: ye, do: ye, try: ye, @@ -28262,165 +28269,165 @@ const rr = to.exports; return: bt, break: bt, continue: bt, - new: re("new"), - delete: Re, - void: Re, - throw: Re, - debugger: re("debugger"), - var: re("var"), - const: re("var"), - let: re("var"), - function: re("function"), - catch: re("catch"), - for: re("for"), - switch: re("switch"), - case: re("case"), - default: re("default"), - in: $t, - typeof: $t, - instanceof: $t, + new: oe("new"), + delete: De, + void: De, + throw: De, + debugger: oe("debugger"), + var: oe("var"), + const: oe("var"), + let: oe("var"), + function: oe("function"), + catch: oe("catch"), + for: oe("for"), + switch: oe("switch"), + case: oe("case"), + default: oe("default"), + in: Ot, + typeof: Ot, + instanceof: Ot, true: Rt, false: Rt, null: Rt, undefined: Rt, NaN: Rt, Infinity: Rt, - this: re("this"), - class: re("class"), - super: re("atom"), - yield: Re, - export: re("export"), - import: re("import"), - extends: Re, - await: Re + this: oe("this"), + class: oe("class"), + super: oe("atom"), + yield: De, + export: oe("export"), + import: oe("import"), + extends: De, + await: De }; }(), S = /[+\-*&%=<>!?|~^@]/, b = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/; - function A(re) { - for (var fe = !1, ye, Re = !1; (ye = re.next()) != null; ) { - if (!fe) { - if (ye == "/" && !Re) + function A(oe) { + for (var ce = !1, ye, De = !1; (ye = oe.next()) != null; ) { + if (!ce) { + if (ye == "/" && !De) return; - ye == "[" ? Re = !0 : Re && ye == "]" && (Re = !1); + ye == "[" ? De = !0 : De && ye == "]" && (De = !1); } - fe = !fe && ye == "\\"; + ce = !ce && ye == "\\"; } } var y, m; - function w(re, fe, ye) { - return y = re, m = ye, fe; + function w(oe, ce, ye) { + return y = oe, m = ye, ce; } - function E(re, fe) { - var ye = re.next(); + function E(oe, ce) { + var ye = oe.next(); if (ye == '"' || ye == "'") - return fe.tokenize = x(ye), fe.tokenize(re, fe); - if (ye == "." && re.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) + return ce.tokenize = x(ye), ce.tokenize(oe, ce); + if (ye == "." && oe.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) return w("number", "number"); - if (ye == "." && re.match("..")) + if (ye == "." && oe.match("..")) return w("spread", "meta"); if (/[\[\]{}\(\),;\:\.]/.test(ye)) return w(ye); - if (ye == "=" && re.eat(">")) + if (ye == "=" && oe.eat(">")) return w("=>", "operator"); - if (ye == "0" && re.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) + if (ye == "0" && oe.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) return w("number", "number"); if (/\d/.test(ye)) - return re.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/), w("number", "number"); + return oe.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/), w("number", "number"); if (ye == "/") - return re.eat("*") ? (fe.tokenize = k, k(re, fe)) : re.eat("/") ? (re.skipToEnd(), w("comment", "comment")) : Di(re, fe, 1) ? (A(re), re.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/), w("regexp", "string-2")) : (re.eat("="), w("operator", "operator", re.current())); + return oe.eat("*") ? (ce.tokenize = k, k(oe, ce)) : oe.eat("/") ? (oe.skipToEnd(), w("comment", "comment")) : Di(oe, ce, 1) ? (A(oe), oe.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/), w("regexp", "string-2")) : (oe.eat("="), w("operator", "operator", oe.current())); if (ye == "`") - return fe.tokenize = $, $(re, fe); - if (ye == "#" && re.peek() == "!") - return re.skipToEnd(), w("meta", "meta"); - if (ye == "#" && re.eatWhile(g)) + return ce.tokenize = R, R(oe, ce); + if (ye == "#" && oe.peek() == "!") + return oe.skipToEnd(), w("meta", "meta"); + if (ye == "#" && oe.eatWhile(g)) return w("variable", "property"); - if (ye == "<" && re.match("!--") || ye == "-" && re.match("->") && !/\S/.test(re.string.slice(0, re.start))) - return re.skipToEnd(), w("comment", "comment"); + if (ye == "<" && oe.match("!--") || ye == "-" && oe.match("->") && !/\S/.test(oe.string.slice(0, oe.start))) + return oe.skipToEnd(), w("comment", "comment"); if (S.test(ye)) - return (ye != ">" || !fe.lexical || fe.lexical.type != ">") && (re.eat("=") ? (ye == "!" || ye == "=") && re.eat("=") : /[<>*+\-|&?]/.test(ye) && (re.eat(ye), ye == ">" && re.eat(ye))), ye == "?" && re.eat(".") ? w(".") : w("operator", "operator", re.current()); + return (ye != ">" || !ce.lexical || ce.lexical.type != ">") && (oe.eat("=") ? (ye == "!" || ye == "=") && oe.eat("=") : /[<>*+\-|&?]/.test(ye) && (oe.eat(ye), ye == ">" && oe.eat(ye))), ye == "?" && oe.eat(".") ? w(".") : w("operator", "operator", oe.current()); if (g.test(ye)) { - re.eatWhile(g); - var Re = re.current(); - if (fe.lastType != ".") { - if (_.propertyIsEnumerable(Re)) { - var bt = _[Re]; - return w(bt.type, bt.style, Re); + oe.eatWhile(g); + var De = oe.current(); + if (ce.lastType != ".") { + if (_.propertyIsEnumerable(De)) { + var bt = _[De]; + return w(bt.type, bt.style, De); } - if (Re == "async" && re.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, !1)) - return w("async", "keyword", Re); + if (De == "async" && oe.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, !1)) + return w("async", "keyword", De); } - return w("variable", "variable", Re); + return w("variable", "variable", De); } } - function x(re) { - return function(fe, ye) { - var Re = !1, bt; - if (u && fe.peek() == "@" && fe.match(b)) + function x(oe) { + return function(ce, ye) { + var De = !1, bt; + if (u && ce.peek() == "@" && ce.match(b)) return ye.tokenize = E, w("jsonld-keyword", "meta"); - for (; (bt = fe.next()) != null && !(bt == re && !Re); ) - Re = !Re && bt == "\\"; - return Re || (ye.tokenize = E), w("string", "string"); + for (; (bt = ce.next()) != null && !(bt == oe && !De); ) + De = !De && bt == "\\"; + return De || (ye.tokenize = E), w("string", "string"); }; } - function k(re, fe) { - for (var ye = !1, Re; Re = re.next(); ) { - if (Re == "/" && ye) { - fe.tokenize = E; + function k(oe, ce) { + for (var ye = !1, De; De = oe.next(); ) { + if (De == "/" && ye) { + ce.tokenize = E; break; } - ye = Re == "*"; + ye = De == "*"; } return w("comment", "comment"); } - function $(re, fe) { - for (var ye = !1, Re; (Re = re.next()) != null; ) { - if (!ye && (Re == "`" || Re == "$" && re.eat("{"))) { - fe.tokenize = E; + function R(oe, ce) { + for (var ye = !1, De; (De = oe.next()) != null; ) { + if (!ye && (De == "`" || De == "$" && oe.eat("{"))) { + ce.tokenize = E; break; } - ye = !ye && Re == "\\"; + ye = !ye && De == "\\"; } - return w("quasi", "string-2", re.current()); + return w("quasi", "string-2", oe.current()); } var M = "([{}])"; - function P(re, fe) { - fe.fatArrowAt && (fe.fatArrowAt = null); - var ye = re.string.indexOf("=>", re.start); + function P(oe, ce) { + ce.fatArrowAt && (ce.fatArrowAt = null); + var ye = oe.string.indexOf("=>", oe.start); if (!(ye < 0)) { if (h) { - var Re = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(re.string.slice(re.start, ye)); - Re && (ye = Re.index); + var De = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(oe.string.slice(oe.start, ye)); + De && (ye = De.index); } - for (var bt = 0, $t = !1, Rt = ye - 1; Rt >= 0; --Rt) { - var un = re.string.charAt(Rt), qn = M.indexOf(un); + for (var bt = 0, Ot = !1, Rt = ye - 1; Rt >= 0; --Rt) { + var un = oe.string.charAt(Rt), qn = M.indexOf(un); if (qn >= 0 && qn < 3) { if (!bt) { ++Rt; break; } if (--bt == 0) { - un == "(" && ($t = !0); + un == "(" && (Ot = !0); break; } } else if (qn >= 3 && qn < 6) ++bt; else if (g.test(un)) - $t = !0; + Ot = !0; else if (/["'\/`]/.test(un)) for (; ; --Rt) { if (Rt == 0) return; - var _t = re.string.charAt(Rt - 1); - if (_t == un && re.string.charAt(Rt - 2) != "\\") { + var _t = oe.string.charAt(Rt - 1); + if (_t == un && oe.string.charAt(Rt - 2) != "\\") { Rt--; break; } } - else if ($t && !bt) { + else if (Ot && !bt) { ++Rt; break; } } - $t && !bt && (fe.fatArrowAt = Rt); + Ot && !bt && (ce.fatArrowAt = Rt); } } var B = { @@ -28433,563 +28440,563 @@ const rr = to.exports; import: !0, "jsonld-keyword": !0 }; - function T(re, fe, ye, Re, bt, $t) { - this.indented = re, this.column = fe, this.type = ye, this.prev = bt, this.info = $t, Re != null && (this.align = Re); + function T(oe, ce, ye, De, bt, Ot) { + this.indented = oe, this.column = ce, this.type = ye, this.prev = bt, this.info = Ot, De != null && (this.align = De); } - function D(re, fe) { + function D(oe, ce) { if (!p) return !1; - for (var ye = re.localVars; ye; ye = ye.next) - if (ye.name == fe) + for (var ye = oe.localVars; ye; ye = ye.next) + if (ye.name == ce) return !0; - for (var Re = re.context; Re; Re = Re.prev) - for (var ye = Re.vars; ye; ye = ye.next) - if (ye.name == fe) + for (var De = oe.context; De; De = De.prev) + for (var ye = De.vars; ye; ye = ye.next) + if (ye.name == ce) return !0; } - function V(re, fe, ye, Re, bt) { - var $t = re.cc; - for (K.state = re, K.stream = bt, K.marked = null, K.cc = $t, K.style = fe, re.lexical.hasOwnProperty("align") || (re.lexical.align = !0); ; ) { - var Rt = $t.length ? $t.pop() : d ? I : ce; - if (Rt(ye, Re)) { - for (; $t.length && $t[$t.length - 1].lex; ) - $t.pop()(); - return K.marked ? K.marked : ye == "variable" && D(re, Re) ? "variable-2" : fe; + function V(oe, ce, ye, De, bt) { + var Ot = oe.cc; + for (W.state = oe, W.stream = bt, W.marked = null, W.cc = Ot, W.style = ce, oe.lexical.hasOwnProperty("align") || (oe.lexical.align = !0); ; ) { + var Rt = Ot.length ? Ot.pop() : d ? xe : he; + if (Rt(ye, De)) { + for (; Ot.length && Ot[Ot.length - 1].lex; ) + Ot.pop()(); + return W.marked ? W.marked : ye == "variable" && D(oe, De) ? "variable-2" : ce; } } } - var K = { state: null, column: null, marked: null, cc: null }; + var W = { state: null, column: null, marked: null, cc: null }; function G() { - for (var re = arguments.length - 1; re >= 0; re--) - K.cc.push(arguments[re]); + for (var oe = arguments.length - 1; oe >= 0; oe--) + W.cc.push(arguments[oe]); } - function R() { + function I() { return G.apply(null, arguments), !0; } - function z(re, fe) { - for (var ye = fe; ye; ye = ye.next) - if (ye.name == re) + function U(oe, ce) { + for (var ye = ce; ye; ye = ye.next) + if (ye.name == oe) return !0; return !1; } - function C(re) { - var fe = K.state; - if (K.marked = "def", !!p) { - if (fe.context) { - if (fe.lexical.info == "var" && fe.context && fe.context.block) { - var ye = F(re, fe.context); + function F(oe) { + var ce = W.state; + if (W.marked = "def", !!p) { + if (ce.context) { + if (ce.lexical.info == "var" && ce.context && ce.context.block) { + var ye = C(oe, ce.context); if (ye != null) { - fe.context = ye; + ce.context = ye; return; } - } else if (!z(re, fe.localVars)) { - fe.localVars = new Y(re, fe.localVars); + } else if (!U(oe, ce.localVars)) { + ce.localVars = new Y(oe, ce.localVars); return; } } - n.globalVars && !z(re, fe.globalVars) && (fe.globalVars = new Y(re, fe.globalVars)); + n.globalVars && !U(oe, ce.globalVars) && (ce.globalVars = new Y(oe, ce.globalVars)); } } - function F(re, fe) { - if (fe) - if (fe.block) { - var ye = F(re, fe.prev); - return ye ? ye == fe.prev ? fe : new Z(ye, fe.vars, !0) : null; + function C(oe, ce) { + if (ce) + if (ce.block) { + var ye = C(oe, ce.prev); + return ye ? ye == ce.prev ? ce : new Z(ye, ce.vars, !0) : null; } else - return z(re, fe.vars) ? fe : new Z(fe.prev, new Y(re, fe.vars), !1); + return U(oe, ce.vars) ? ce : new Z(ce.prev, new Y(oe, ce.vars), !1); else return null; } - function q(re) { - return re == "public" || re == "private" || re == "protected" || re == "abstract" || re == "readonly"; + function q(oe) { + return oe == "public" || oe == "private" || oe == "protected" || oe == "abstract" || oe == "readonly"; } - function Z(re, fe, ye) { - this.prev = re, this.vars = fe, this.block = ye; + function Z(oe, ce, ye) { + this.prev = oe, this.vars = ce, this.block = ye; } - function Y(re, fe) { - this.name = re, this.next = fe; + function Y(oe, ce) { + this.name = oe, this.next = ce; } - var J = new Y("this", new Y("arguments", null)); - function ve() { - K.state.context = new Z(K.state.context, K.state.localVars, !1), K.state.localVars = J; + var ue = new Y("this", new Y("arguments", null)); + function te() { + W.state.context = new Z(W.state.context, W.state.localVars, !1), W.state.localVars = ue; } function pe() { - K.state.context = new Z(K.state.context, K.state.localVars, !0), K.state.localVars = null; + W.state.context = new Z(W.state.context, W.state.localVars, !0), W.state.localVars = null; } - ve.lex = pe.lex = !0; - function Te() { - K.state.localVars = K.state.context.vars, K.state.context = K.state.context.prev; + te.lex = pe.lex = !0; + function ke() { + W.state.localVars = W.state.context.vars, W.state.context = W.state.context.prev; } - Te.lex = !0; - function ge(re, fe) { + ke.lex = !0; + function ge(oe, ce) { var ye = function() { - var Re = K.state, bt = Re.indented; - if (Re.lexical.type == "stat") - bt = Re.lexical.indented; + var De = W.state, bt = De.indented; + if (De.lexical.type == "stat") + bt = De.lexical.indented; else - for (var $t = Re.lexical; $t && $t.type == ")" && $t.align; $t = $t.prev) - bt = $t.indented; - Re.lexical = new T(bt, K.stream.column(), re, null, Re.lexical, fe); + for (var Ot = De.lexical; Ot && Ot.type == ")" && Ot.align; Ot = Ot.prev) + bt = Ot.indented; + De.lexical = new T(bt, W.stream.column(), oe, null, De.lexical, ce); }; return ye.lex = !0, ye; } - function me() { - var re = K.state; - re.lexical.prev && (re.lexical.type == ")" && (re.indented = re.lexical.indented), re.lexical = re.lexical.prev); + function ve() { + var oe = W.state; + oe.lexical.prev && (oe.lexical.type == ")" && (oe.indented = oe.lexical.indented), oe.lexical = oe.lexical.prev); } - me.lex = !0; - function we(re) { - function fe(ye) { - return ye == re ? R() : re == ";" || ye == "}" || ye == ")" || ye == "]" ? G() : R(fe); + ve.lex = !0; + function we(oe) { + function ce(ye) { + return ye == oe ? I() : oe == ";" || ye == "}" || ye == ")" || ye == "]" ? G() : I(ce); } - return fe; + return ce; } - function ce(re, fe) { - return re == "var" ? R(ge("vardef", fe), yi, we(";"), me) : re == "keyword a" ? R(ge("form"), ee, ce, me) : re == "keyword b" ? R(ge("form"), ce, me) : re == "keyword d" ? K.stream.match(/^\s*$/, !1) ? R() : R(ge("stat"), se, we(";"), me) : re == "debugger" ? R(we(";")) : re == "{" ? R(ge("}"), pe, dt, me, Te) : re == ";" ? R() : re == "if" ? (K.state.lexical.info == "else" && K.state.cc[K.state.cc.length - 1] == me && K.state.cc.pop()(), R(ge("form"), ee, ce, me, io)) : re == "function" ? R($i) : re == "for" ? R(ge("form"), pe, yl, ce, Te, me) : re == "class" || h && fe == "interface" ? (K.marked = "keyword", R(ge("form", re == "class" ? re : fe), _l, me)) : re == "variable" ? h && fe == "declare" ? (K.marked = "keyword", R(ce)) : h && (fe == "module" || fe == "enum" || fe == "type") && K.stream.match(/^\s*\w/, !1) ? (K.marked = "keyword", fe == "enum" ? R(oo) : fe == "type" ? R(bl, we("operator"), $e, we(";")) : R(ge("form"), Mn, we("{"), ge("}"), dt, me, me)) : h && fe == "namespace" ? (K.marked = "keyword", R(ge("form"), I, ce, me)) : h && fe == "abstract" ? (K.marked = "keyword", R(ce)) : R(ge("stat"), nt) : re == "switch" ? R( + function he(oe, ce) { + return oe == "var" ? I(ge("vardef", ce), yi, we(";"), ve) : oe == "keyword a" ? I(ge("form"), K, he, ve) : oe == "keyword b" ? I(ge("form"), he, ve) : oe == "keyword d" ? W.stream.match(/^\s*$/, !1) ? I() : I(ge("stat"), ie, we(";"), ve) : oe == "debugger" ? I(we(";")) : oe == "{" ? I(ge("}"), pe, ft, ve, ke) : oe == ";" ? I() : oe == "if" ? (W.state.lexical.info == "else" && W.state.cc[W.state.cc.length - 1] == ve && W.state.cc.pop()(), I(ge("form"), K, he, ve, io)) : oe == "function" ? I($i) : oe == "for" ? I(ge("form"), pe, yl, he, ke, ve) : oe == "class" || h && ce == "interface" ? (W.marked = "keyword", I(ge("form", oe == "class" ? oe : ce), _l, ve)) : oe == "variable" ? h && ce == "declare" ? (W.marked = "keyword", I(he)) : h && (ce == "module" || ce == "enum" || ce == "type") && W.stream.match(/^\s*\w/, !1) ? (W.marked = "keyword", ce == "enum" ? I(oo) : ce == "type" ? I(bl, we("operator"), $e, we(";")) : I(ge("form"), Mn, we("{"), ge("}"), ft, ve, ve)) : h && ce == "namespace" ? (W.marked = "keyword", I(ge("form"), xe, he, ve)) : h && ce == "abstract" ? (W.marked = "keyword", I(he)) : I(ge("stat"), it) : oe == "switch" ? I( ge("form"), - ee, + K, we("{"), ge("}", "switch"), pe, - dt, - me, - me, - Te - ) : re == "case" ? R(I, we(":")) : re == "default" ? R(we(":")) : re == "catch" ? R(ge("form"), ve, Se, ce, me, Te) : re == "export" ? R(ge("stat"), cr, me) : re == "import" ? R(ge("stat"), Ki, me) : re == "async" ? R(ce) : fe == "@" ? R(I, ce) : G(ge("stat"), I, we(";"), me); + ft, + ve, + ve, + ke + ) : oe == "case" ? I(xe, we(":")) : oe == "default" ? I(we(":")) : oe == "catch" ? I(ge("form"), te, Se, he, ve, ke) : oe == "export" ? I(ge("stat"), cr, ve) : oe == "import" ? I(ge("stat"), Ki, ve) : oe == "async" ? I(he) : ce == "@" ? I(xe, he) : G(ge("stat"), xe, we(";"), ve); } - function Se(re) { - if (re == "(") - return R(bi, we(")")); + function Se(oe) { + if (oe == "(") + return I(bi, we(")")); } - function I(re, fe) { - return te(re, fe, !1); + function xe(oe, ce) { + return X(oe, ce, !1); } - function j(re, fe) { - return te(re, fe, !0); + function $(oe, ce) { + return X(oe, ce, !0); } - function ee(re) { - return re != "(" ? G() : R(ge(")"), se, we(")"), me); + function K(oe) { + return oe != "(" ? G() : I(ge(")"), ie, we(")"), ve); } - function te(re, fe, ye) { - if (K.state.fatArrowAt == K.stream.start) { - var Re = ye ? ze : ct; - if (re == "(") - return R(ve, ge(")"), Ze(bi, ")"), me, we("=>"), Re, Te); - if (re == "variable") - return G(ve, Mn, we("=>"), Re, Te); + function X(oe, ce, ye) { + if (W.state.fatArrowAt == W.stream.start) { + var De = ye ? Ze : Xe; + if (oe == "(") + return I(te, ge(")"), We(bi, ")"), ve, we("=>"), De, ke); + if (oe == "variable") + return G(te, Mn, we("=>"), De, ke); } - var bt = ye ? _e : oe; - return B.hasOwnProperty(re) ? R(bt) : re == "function" ? R($i, bt) : re == "class" || h && fe == "interface" ? (K.marked = "keyword", R(ge("form"), fr, me)) : re == "keyword c" || re == "async" ? R(ye ? j : I) : re == "(" ? R(ge(")"), se, we(")"), me, bt) : re == "operator" || re == "spread" ? R(ye ? j : I) : re == "[" ? R(ge("]"), Yi, me, bt) : re == "{" ? Ot(Ne, "}", null, bt) : re == "quasi" ? G(Ae, bt) : re == "new" ? R(Ee(ye)) : R(); + var bt = ye ? fe : re; + return B.hasOwnProperty(oe) ? I(bt) : oe == "function" ? I($i, bt) : oe == "class" || h && ce == "interface" ? (W.marked = "keyword", I(ge("form"), fr, ve)) : oe == "keyword c" || oe == "async" ? I(ye ? $ : xe) : oe == "(" ? I(ge(")"), ie, we(")"), ve, bt) : oe == "operator" || oe == "spread" ? I(ye ? $ : xe) : oe == "[" ? I(ge("]"), Yi, ve, bt) : oe == "{" ? $t(Re, "}", null, bt) : oe == "quasi" ? G(Ae, bt) : oe == "new" ? I(_e(ye)) : I(); } - function se(re) { - return re.match(/[;\}\)\],]/) ? G() : G(I); + function ie(oe) { + return oe.match(/[;\}\)\],]/) ? G() : G(xe); } - function oe(re, fe) { - return re == "," ? R(se) : _e(re, fe, !1); + function re(oe, ce) { + return oe == "," ? I(ie) : fe(oe, ce, !1); } - function _e(re, fe, ye) { - var Re = ye == !1 ? oe : _e, bt = ye == !1 ? I : j; - if (re == "=>") - return R(ve, ye ? ze : ct, Te); - if (re == "operator") - return /\+\+|--/.test(fe) || h && fe == "!" ? R(Re) : h && fe == "<" && K.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, !1) ? R(ge(">"), Ze($e, ">"), me, Re) : fe == "?" ? R(I, we(":"), bt) : R(bt); - if (re == "quasi") - return G(Ae, Re); - if (re != ";") { - if (re == "(") - return Ot(j, ")", "call", Re); - if (re == ".") - return R(De, Re); - if (re == "[") - return R(ge("]"), se, we("]"), me, Re); - if (h && fe == "as") - return K.marked = "keyword", R($e, Re); - if (re == "regexp") - return K.state.lastType = K.marked = "operator", K.stream.backUp(K.stream.pos - K.stream.start - 1), R(bt); + function fe(oe, ce, ye) { + var De = ye == !1 ? re : fe, bt = ye == !1 ? xe : $; + if (oe == "=>") + return I(te, ye ? Ze : Xe, ke); + if (oe == "operator") + return /\+\+|--/.test(ce) || h && ce == "!" ? I(De) : h && ce == "<" && W.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, !1) ? I(ge(">"), We($e, ">"), ve, De) : ce == "?" ? I(xe, we(":"), bt) : I(bt); + if (oe == "quasi") + return G(Ae, De); + if (oe != ";") { + if (oe == "(") + return $t($, ")", "call", De); + if (oe == ".") + return I(pt, De); + if (oe == "[") + return I(ge("]"), ie, we("]"), ve, De); + if (h && ce == "as") + return W.marked = "keyword", I($e, De); + if (oe == "regexp") + return W.state.lastType = W.marked = "operator", W.stream.backUp(W.stream.pos - W.stream.start - 1), I(bt); } } - function Ae(re, fe) { - return re != "quasi" ? G() : fe.slice(fe.length - 2) != "${" ? R(Ae) : R(se, Be); + function Ae(oe, ce) { + return oe != "quasi" ? G() : ce.slice(ce.length - 2) != "${" ? I(Ae) : I(ie, Fe); } - function Be(re) { - if (re == "}") - return K.marked = "string-2", K.state.tokenize = $, R(Ae); + function Fe(oe) { + if (oe == "}") + return W.marked = "string-2", W.state.tokenize = R, I(Ae); } - function ct(re) { - return P(K.stream, K.state), G(re == "{" ? ce : I); + function Xe(oe) { + return P(W.stream, W.state), G(oe == "{" ? he : xe); } - function ze(re) { - return P(K.stream, K.state), G(re == "{" ? ce : j); + function Ze(oe) { + return P(W.stream, W.state), G(oe == "{" ? he : $); } - function Ee(re) { - return function(fe) { - return fe == "." ? R(re ? Oe : Pe) : fe == "variable" && h ? R(It, re ? _e : oe) : G(re ? j : I); + function _e(oe) { + return function(ce) { + return ce == "." ? I(oe ? Oe : Le) : ce == "variable" && h ? I(It, oe ? fe : re) : G(oe ? $ : xe); }; } - function Pe(re, fe) { - if (fe == "target") - return K.marked = "keyword", R(oe); + function Le(oe, ce) { + if (ce == "target") + return W.marked = "keyword", I(re); } - function Oe(re, fe) { - if (fe == "target") - return K.marked = "keyword", R(_e); + function Oe(oe, ce) { + if (ce == "target") + return W.marked = "keyword", I(fe); } - function nt(re) { - return re == ":" ? R(me, ce) : G(oe, we(";"), me); + function it(oe) { + return oe == ":" ? I(ve, he) : G(re, we(";"), ve); } - function De(re) { - if (re == "variable") - return K.marked = "property", R(); + function pt(oe) { + if (oe == "variable") + return W.marked = "property", I(); } - function Ne(re, fe) { - if (re == "async") - return K.marked = "property", R(Ne); - if (re == "variable" || K.style == "keyword") { - if (K.marked = "property", fe == "get" || fe == "set") - return R(lt); + function Re(oe, ce) { + if (oe == "async") + return W.marked = "property", I(Re); + if (oe == "variable" || W.style == "keyword") { + if (W.marked = "property", ce == "get" || ce == "set") + return I(He); var ye; - return h && K.state.fatArrowAt == K.stream.start && (ye = K.stream.match(/^\s*:\s*/, !1)) && (K.state.fatArrowAt = K.stream.pos + ye[0].length), R(mt); + return h && W.state.fatArrowAt == W.stream.start && (ye = W.stream.match(/^\s*:\s*/, !1)) && (W.state.fatArrowAt = W.stream.pos + ye[0].length), I(at); } else { - if (re == "number" || re == "string") - return K.marked = u ? "property" : K.style + " property", R(mt); - if (re == "jsonld-keyword") - return R(mt); - if (h && q(fe)) - return K.marked = "keyword", R(Ne); - if (re == "[") - return R(I, He, we("]"), mt); - if (re == "spread") - return R(j, mt); - if (fe == "*") - return K.marked = "keyword", R(Ne); - if (re == ":") - return G(mt); + if (oe == "number" || oe == "string") + return W.marked = u ? "property" : W.style + " property", I(at); + if (oe == "jsonld-keyword") + return I(at); + if (h && q(ce)) + return W.marked = "keyword", I(Re); + if (oe == "[") + return I(xe, je, we("]"), at); + if (oe == "spread") + return I($, at); + if (ce == "*") + return W.marked = "keyword", I(Re); + if (oe == ":") + return G(at); } } - function lt(re) { - return re != "variable" ? G(mt) : (K.marked = "property", R($i)); + function He(oe) { + return oe != "variable" ? G(at) : (W.marked = "property", I($i)); } - function mt(re) { - if (re == ":") - return R(j); - if (re == "(") + function at(oe) { + if (oe == ":") + return I($); + if (oe == "(") return G($i); } - function Ze(re, fe, ye) { - function Re(bt, $t) { + function We(oe, ce, ye) { + function De(bt, Ot) { if (ye ? ye.indexOf(bt) > -1 : bt == ",") { - var Rt = K.state.lexical; - return Rt.info == "call" && (Rt.pos = (Rt.pos || 0) + 1), R(function(un, qn) { - return un == fe || qn == fe ? G() : G(re); - }, Re); + var Rt = W.state.lexical; + return Rt.info == "call" && (Rt.pos = (Rt.pos || 0) + 1), I(function(un, qn) { + return un == ce || qn == ce ? G() : G(oe); + }, De); } - return bt == fe || $t == fe ? R() : ye && ye.indexOf(";") > -1 ? G(re) : R(we(fe)); + return bt == ce || Ot == ce ? I() : ye && ye.indexOf(";") > -1 ? G(oe) : I(we(ce)); } - return function(bt, $t) { - return bt == fe || $t == fe ? R() : G(re, Re); + return function(bt, Ot) { + return bt == ce || Ot == ce ? I() : G(oe, De); }; } - function Ot(re, fe, ye) { - for (var Re = 3; Re < arguments.length; Re++) - K.cc.push(arguments[Re]); - return R(ge(fe, ye), Ze(re, fe), me); + function $t(oe, ce, ye) { + for (var De = 3; De < arguments.length; De++) + W.cc.push(arguments[De]); + return I(ge(ce, ye), We(oe, ce), ve); } - function dt(re) { - return re == "}" ? R() : G(ce, dt); + function ft(oe) { + return oe == "}" ? I() : G(he, ft); } - function He(re, fe) { + function je(oe, ce) { if (h) { - if (re == ":") - return R($e); - if (fe == "?") - return R(He); + if (oe == ":") + return I($e); + if (ce == "?") + return I(je); } } - function Je(re, fe) { - if (h && (re == ":" || fe == "in")) - return R($e); + function Je(oe, ce) { + if (h && (oe == ":" || ce == "in")) + return I($e); } - function pt(re) { - if (h && re == ":") - return K.stream.match(/^\s*\w+\s+is\b/, !1) ? R(I, Ge, $e) : R($e); + function ht(oe) { + if (h && oe == ":") + return W.stream.match(/^\s*\w+\s+is\b/, !1) ? I(xe, Ge, $e) : I($e); } - function Ge(re, fe) { - if (fe == "is") - return K.marked = "keyword", R(); + function Ge(oe, ce) { + if (ce == "is") + return W.marked = "keyword", I(); } - function $e(re, fe) { - if (fe == "keyof" || fe == "typeof" || fe == "infer" || fe == "readonly") - return K.marked = "keyword", R(fe == "typeof" ? j : $e); - if (re == "variable" || fe == "void") - return K.marked = "type", R(zt); - if (fe == "|" || fe == "&") - return R($e); - if (re == "string" || re == "number" || re == "atom") - return R(zt); - if (re == "[") - return R(ge("]"), Ze($e, "]", ","), me, zt); - if (re == "{") - return R(ge("}"), ot, me, zt); - if (re == "(") - return R(Ze(Qt, ")"), ut, zt); - if (re == "<") - return R(Ze($e, ">"), $e); - if (re == "quasi") + function $e(oe, ce) { + if (ce == "keyof" || ce == "typeof" || ce == "infer" || ce == "readonly") + return W.marked = "keyword", I(ce == "typeof" ? $ : $e); + if (oe == "variable" || ce == "void") + return W.marked = "type", I(zt); + if (ce == "|" || ce == "&") + return I($e); + if (oe == "string" || oe == "number" || oe == "atom") + return I(zt); + if (oe == "[") + return I(ge("]"), We($e, "]", ","), ve, zt); + if (oe == "{") + return I(ge("}"), lt, ve, zt); + if (oe == "(") + return I(We(Qt, ")"), dt, zt); + if (oe == "<") + return I(We($e, ">"), $e); + if (oe == "quasi") return G(Ct, zt); } - function ut(re) { - if (re == "=>") - return R($e); + function dt(oe) { + if (oe == "=>") + return I($e); } - function ot(re) { - return re.match(/[\}\)\]]/) ? R() : re == "," || re == ";" ? R(ot) : G(at, ot); + function lt(oe) { + return oe.match(/[\}\)\]]/) ? I() : oe == "," || oe == ";" ? I(lt) : G(st, lt); } - function at(re, fe) { - if (re == "variable" || K.style == "keyword") - return K.marked = "property", R(at); - if (fe == "?" || re == "number" || re == "string") - return R(at); - if (re == ":") - return R($e); - if (re == "[") - return R(we("variable"), Je, we("]"), at); - if (re == "(") - return G(Ri, at); - if (!re.match(/[;\}\)\],]/)) - return R(); + function st(oe, ce) { + if (oe == "variable" || W.style == "keyword") + return W.marked = "property", I(st); + if (ce == "?" || oe == "number" || oe == "string") + return I(st); + if (oe == ":") + return I($e); + if (oe == "[") + return I(we("variable"), Je, we("]"), st); + if (oe == "(") + return G(Ri, st); + if (!oe.match(/[;\}\)\],]/)) + return I(); } - function Ct(re, fe) { - return re != "quasi" ? G() : fe.slice(fe.length - 2) != "${" ? R(Ct) : R($e, Pn); + function Ct(oe, ce) { + return oe != "quasi" ? G() : ce.slice(ce.length - 2) != "${" ? I(Ct) : I($e, Pn); } - function Pn(re) { - if (re == "}") - return K.marked = "string-2", K.state.tokenize = $, R(Ct); + function Pn(oe) { + if (oe == "}") + return W.marked = "string-2", W.state.tokenize = R, I(Ct); } - function Qt(re, fe) { - return re == "variable" && K.stream.match(/^\s*[?:]/, !1) || fe == "?" ? R(Qt) : re == ":" ? R($e) : re == "spread" ? R(Qt) : G($e); + function Qt(oe, ce) { + return oe == "variable" && W.stream.match(/^\s*[?:]/, !1) || ce == "?" ? I(Qt) : oe == ":" ? I($e) : oe == "spread" ? I(Qt) : G($e); } - function zt(re, fe) { - if (fe == "<") - return R(ge(">"), Ze($e, ">"), me, zt); - if (fe == "|" || re == "." || fe == "&") - return R($e); - if (re == "[") - return R($e, we("]"), zt); - if (fe == "extends" || fe == "implements") - return K.marked = "keyword", R($e); - if (fe == "?") - return R($e, we(":"), $e); + function zt(oe, ce) { + if (ce == "<") + return I(ge(">"), We($e, ">"), ve, zt); + if (ce == "|" || oe == "." || ce == "&") + return I($e); + if (oe == "[") + return I($e, we("]"), zt); + if (ce == "extends" || ce == "implements") + return W.marked = "keyword", I($e); + if (ce == "?") + return I($e, we(":"), $e); } - function It(re, fe) { - if (fe == "<") - return R(ge(">"), Ze($e, ">"), me, zt); + function It(oe, ce) { + if (ce == "<") + return I(ge(">"), We($e, ">"), ve, zt); } function ui() { return G($e, ur); } - function ur(re, fe) { - if (fe == "=") - return R($e); + function ur(oe, ce) { + if (ce == "=") + return I($e); } - function yi(re, fe) { - return fe == "enum" ? (K.marked = "keyword", R(oo)) : G(Mn, He, di, Iu); + function yi(oe, ce) { + return ce == "enum" ? (W.marked = "keyword", I(oo)) : G(Mn, je, di, Iu); } - function Mn(re, fe) { - if (h && q(fe)) - return K.marked = "keyword", R(Mn); - if (re == "variable") - return C(fe), R(); - if (re == "spread") - return R(Mn); - if (re == "[") - return Ot(Du, "]"); - if (re == "{") - return Ot(ra, "}"); + function Mn(oe, ce) { + if (h && q(ce)) + return W.marked = "keyword", I(Mn); + if (oe == "variable") + return F(ce), I(); + if (oe == "spread") + return I(Mn); + if (oe == "[") + return $t(Du, "]"); + if (oe == "{") + return $t(ra, "}"); } - function ra(re, fe) { - return re == "variable" && !K.stream.match(/^\s*:/, !1) ? (C(fe), R(di)) : (re == "variable" && (K.marked = "property"), re == "spread" ? R(Mn) : re == "}" ? G() : re == "[" ? R(I, we("]"), we(":"), ra) : R(we(":"), Mn, di)); + function ra(oe, ce) { + return oe == "variable" && !W.stream.match(/^\s*:/, !1) ? (F(ce), I(di)) : (oe == "variable" && (W.marked = "property"), oe == "spread" ? I(Mn) : oe == "}" ? G() : oe == "[" ? I(xe, we("]"), we(":"), ra) : I(we(":"), Mn, di)); } function Du() { return G(Mn, di); } - function di(re, fe) { - if (fe == "=") - return R(j); + function di(oe, ce) { + if (ce == "=") + return I($); } - function Iu(re) { - if (re == ",") - return R(yi); + function Iu(oe) { + if (oe == ",") + return I(yi); } - function io(re, fe) { - if (re == "keyword b" && fe == "else") - return R(ge("form", "else"), ce, me); + function io(oe, ce) { + if (oe == "keyword b" && ce == "else") + return I(ge("form", "else"), he, ve); } - function yl(re, fe) { - if (fe == "await") - return R(yl); - if (re == "(") - return R(ge(")"), oa, me); + function yl(oe, ce) { + if (ce == "await") + return I(yl); + if (oe == "(") + return I(ge(")"), oa, ve); } - function oa(re) { - return re == "var" ? R(yi, dr) : re == "variable" ? R(dr) : G(dr); + function oa(oe) { + return oe == "var" ? I(yi, dr) : oe == "variable" ? I(dr) : G(dr); } - function dr(re, fe) { - return re == ")" ? R() : re == ";" ? R(dr) : fe == "in" || fe == "of" ? (K.marked = "keyword", R(I, dr)) : G(I, dr); + function dr(oe, ce) { + return oe == ")" ? I() : oe == ";" ? I(dr) : ce == "in" || ce == "of" ? (W.marked = "keyword", I(xe, dr)) : G(xe, dr); } - function $i(re, fe) { - if (fe == "*") - return K.marked = "keyword", R($i); - if (re == "variable") - return C(fe), R($i); - if (re == "(") - return R(ve, ge(")"), Ze(bi, ")"), me, pt, ce, Te); - if (h && fe == "<") - return R(ge(">"), Ze(ui, ">"), me, $i); + function $i(oe, ce) { + if (ce == "*") + return W.marked = "keyword", I($i); + if (oe == "variable") + return F(ce), I($i); + if (oe == "(") + return I(te, ge(")"), We(bi, ")"), ve, ht, he, ke); + if (h && ce == "<") + return I(ge(">"), We(ui, ">"), ve, $i); } - function Ri(re, fe) { - if (fe == "*") - return K.marked = "keyword", R(Ri); - if (re == "variable") - return C(fe), R(Ri); - if (re == "(") - return R(ve, ge(")"), Ze(bi, ")"), me, pt, Te); - if (h && fe == "<") - return R(ge(">"), Ze(ui, ">"), me, Ri); + function Ri(oe, ce) { + if (ce == "*") + return W.marked = "keyword", I(Ri); + if (oe == "variable") + return F(ce), I(Ri); + if (oe == "(") + return I(te, ge(")"), We(bi, ")"), ve, ht, ke); + if (h && ce == "<") + return I(ge(">"), We(ui, ">"), ve, Ri); } - function bl(re, fe) { - if (re == "keyword" || re == "variable") - return K.marked = "type", R(bl); - if (fe == "<") - return R(ge(">"), Ze(ui, ">"), me); + function bl(oe, ce) { + if (oe == "keyword" || oe == "variable") + return W.marked = "type", I(bl); + if (ce == "<") + return I(ge(">"), We(ui, ">"), ve); } - function bi(re, fe) { - return fe == "@" && R(I, bi), re == "spread" ? R(bi) : h && q(fe) ? (K.marked = "keyword", R(bi)) : h && re == "this" ? R(He, di) : G(Mn, He, di); + function bi(oe, ce) { + return ce == "@" && I(xe, bi), oe == "spread" ? I(bi) : h && q(ce) ? (W.marked = "keyword", I(bi)) : h && oe == "this" ? I(je, di) : G(Mn, je, di); } - function fr(re, fe) { - return re == "variable" ? _l(re, fe) : ro(re, fe); + function fr(oe, ce) { + return oe == "variable" ? _l(oe, ce) : ro(oe, ce); } - function _l(re, fe) { - if (re == "variable") - return C(fe), R(ro); + function _l(oe, ce) { + if (oe == "variable") + return F(ce), I(ro); } - function ro(re, fe) { - if (fe == "<") - return R(ge(">"), Ze(ui, ">"), me, ro); - if (fe == "extends" || fe == "implements" || h && re == ",") - return fe == "implements" && (K.marked = "keyword"), R(h ? $e : I, ro); - if (re == "{") - return R(ge("}"), zn, me); + function ro(oe, ce) { + if (ce == "<") + return I(ge(">"), We(ui, ">"), ve, ro); + if (ce == "extends" || ce == "implements" || h && oe == ",") + return ce == "implements" && (W.marked = "keyword"), I(h ? $e : xe, ro); + if (oe == "{") + return I(ge("}"), zn, ve); } - function zn(re, fe) { - if (re == "async" || re == "variable" && (fe == "static" || fe == "get" || fe == "set" || h && q(fe)) && K.stream.match(/^\s+[\w$\xa1-\uffff]/, !1)) - return K.marked = "keyword", R(zn); - if (re == "variable" || K.style == "keyword") - return K.marked = "property", R(Gi, zn); - if (re == "number" || re == "string") - return R(Gi, zn); - if (re == "[") - return R(I, He, we("]"), Gi, zn); - if (fe == "*") - return K.marked = "keyword", R(zn); - if (h && re == "(") + function zn(oe, ce) { + if (oe == "async" || oe == "variable" && (ce == "static" || ce == "get" || ce == "set" || h && q(ce)) && W.stream.match(/^\s+[\w$\xa1-\uffff]/, !1)) + return W.marked = "keyword", I(zn); + if (oe == "variable" || W.style == "keyword") + return W.marked = "property", I(Gi, zn); + if (oe == "number" || oe == "string") + return I(Gi, zn); + if (oe == "[") + return I(xe, je, we("]"), Gi, zn); + if (ce == "*") + return W.marked = "keyword", I(zn); + if (h && oe == "(") return G(Ri, zn); - if (re == ";" || re == ",") - return R(zn); - if (re == "}") - return R(); - if (fe == "@") - return R(I, zn); + if (oe == ";" || oe == ",") + return I(zn); + if (oe == "}") + return I(); + if (ce == "@") + return I(xe, zn); } - function Gi(re, fe) { - if (fe == "!" || fe == "?") - return R(Gi); - if (re == ":") - return R($e, di); - if (fe == "=") - return R(j); - var ye = K.state.lexical.prev, Re = ye && ye.info == "interface"; - return G(Re ? Ri : $i); + function Gi(oe, ce) { + if (ce == "!" || ce == "?") + return I(Gi); + if (oe == ":") + return I($e, di); + if (ce == "=") + return I($); + var ye = W.state.lexical.prev, De = ye && ye.info == "interface"; + return G(De ? Ri : $i); } - function cr(re, fe) { - return fe == "*" ? (K.marked = "keyword", R(st, we(";"))) : fe == "default" ? (K.marked = "keyword", R(I, we(";"))) : re == "{" ? R(Ze(wl, "}"), st, we(";")) : G(ce); + function cr(oe, ce) { + return ce == "*" ? (W.marked = "keyword", I(ut, we(";"))) : ce == "default" ? (W.marked = "keyword", I(xe, we(";"))) : oe == "{" ? I(We(wl, "}"), ut, we(";")) : G(he); } - function wl(re, fe) { - if (fe == "as") - return K.marked = "keyword", R(we("variable")); - if (re == "variable") - return G(j, wl); + function wl(oe, ce) { + if (ce == "as") + return W.marked = "keyword", I(we("variable")); + if (oe == "variable") + return G($, wl); } - function Ki(re) { - return re == "string" ? R() : re == "(" ? G(I) : re == "." ? G(oe) : G(pr, aa, st); + function Ki(oe) { + return oe == "string" ? I() : oe == "(" ? G(xe) : oe == "." ? G(re) : G(pr, aa, ut); } - function pr(re, fe) { - return re == "{" ? Ot(pr, "}") : (re == "variable" && C(fe), fe == "*" && (K.marked = "keyword"), R(Zt)); + function pr(oe, ce) { + return oe == "{" ? $t(pr, "}") : (oe == "variable" && F(ce), ce == "*" && (W.marked = "keyword"), I(Zt)); } - function aa(re) { - if (re == ",") - return R(pr, aa); + function aa(oe) { + if (oe == ",") + return I(pr, aa); } - function Zt(re, fe) { - if (fe == "as") - return K.marked = "keyword", R(pr); + function Zt(oe, ce) { + if (ce == "as") + return W.marked = "keyword", I(pr); } - function st(re, fe) { - if (fe == "from") - return K.marked = "keyword", R(I); + function ut(oe, ce) { + if (ce == "from") + return W.marked = "keyword", I(xe); } - function Yi(re) { - return re == "]" ? R() : G(Ze(j, "]")); + function Yi(oe) { + return oe == "]" ? I() : G(We($, "]")); } function oo() { - return G(ge("form"), Mn, we("{"), ge("}"), Ze(fi, "}"), me, me); + return G(ge("form"), Mn, we("{"), ge("}"), We(fi, "}"), ve, ve); } function fi() { return G(Mn, di); } - function Ft(re, fe) { - return re.lastType == "operator" || re.lastType == "," || S.test(fe.charAt(0)) || /[,.]/.test(fe.charAt(0)); + function Ft(oe, ce) { + return oe.lastType == "operator" || oe.lastType == "," || S.test(ce.charAt(0)) || /[,.]/.test(ce.charAt(0)); } - function Di(re, fe, ye) { - return fe.tokenize == E && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(fe.lastType) || fe.lastType == "quasi" && /\{\s*$/.test(re.string.slice(0, re.pos - (ye || 0))); + function Di(oe, ce, ye) { + return ce.tokenize == E && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(ce.lastType) || ce.lastType == "quasi" && /\{\s*$/.test(oe.string.slice(0, oe.pos - (ye || 0))); } return { - startState: function(re) { - var fe = { + startState: function(oe) { + var ce = { tokenize: E, lastType: "sof", cc: [], - lexical: new T((re || 0) - a, 0, "block", !1), + lexical: new T((oe || 0) - a, 0, "block", !1), localVars: n.localVars, context: n.localVars && new Z(null, null, !1), - indented: re || 0 + indented: oe || 0 }; - return n.globalVars && typeof n.globalVars == "object" && (fe.globalVars = n.globalVars), fe; + return n.globalVars && typeof n.globalVars == "object" && (ce.globalVars = n.globalVars), ce; }, - token: function(re, fe) { - if (re.sol() && (fe.lexical.hasOwnProperty("align") || (fe.lexical.align = !1), fe.indented = re.indentation(), P(re, fe)), fe.tokenize != k && re.eatSpace()) + token: function(oe, ce) { + if (oe.sol() && (ce.lexical.hasOwnProperty("align") || (ce.lexical.align = !1), ce.indented = oe.indentation(), P(oe, ce)), ce.tokenize != k && oe.eatSpace()) return null; - var ye = fe.tokenize(re, fe); - return y == "comment" ? ye : (fe.lastType = y == "operator" && (m == "++" || m == "--") ? "incdec" : y, V(fe, ye, y, m, re)); + var ye = ce.tokenize(oe, ce); + return y == "comment" ? ye : (ce.lastType = y == "operator" && (m == "++" || m == "--") ? "incdec" : y, V(ce, ye, y, m, oe)); }, - indent: function(re, fe) { - if (re.tokenize == k || re.tokenize == $) + indent: function(oe, ce) { + if (oe.tokenize == k || oe.tokenize == R) return i.Pass; - if (re.tokenize != E) + if (oe.tokenize != E) return 0; - var ye = fe && fe.charAt(0), Re = re.lexical, bt; - if (!/^\s*else\b/.test(fe)) - for (var $t = re.cc.length - 1; $t >= 0; --$t) { - var Rt = re.cc[$t]; - if (Rt == me) - Re = Re.prev; - else if (Rt != io && Rt != Te) + var ye = ce && ce.charAt(0), De = oe.lexical, bt; + if (!/^\s*else\b/.test(ce)) + for (var Ot = oe.cc.length - 1; Ot >= 0; --Ot) { + var Rt = oe.cc[Ot]; + if (Rt == ve) + De = De.prev; + else if (Rt != io && Rt != ke) break; } - for (; (Re.type == "stat" || Re.type == "form") && (ye == "}" || (bt = re.cc[re.cc.length - 1]) && (bt == oe || bt == _e) && !/^[,\.=+\-*:?[\(]/.test(fe)); ) - Re = Re.prev; - s && Re.type == ")" && Re.prev.type == "stat" && (Re = Re.prev); - var un = Re.type, qn = ye == un; - return un == "vardef" ? Re.indented + (re.lastType == "operator" || re.lastType == "," ? Re.info.length + 1 : 0) : un == "form" && ye == "{" ? Re.indented : un == "form" ? Re.indented + a : un == "stat" ? Re.indented + (Ft(re, fe) ? s || a : 0) : Re.info == "switch" && !qn && n.doubleIndentSwitch != !1 ? Re.indented + (/^(?:case|default)\b/.test(fe) ? a : 2 * a) : Re.align ? Re.column + (qn ? 0 : 1) : Re.indented + (qn ? 0 : a); + for (; (De.type == "stat" || De.type == "form") && (ye == "}" || (bt = oe.cc[oe.cc.length - 1]) && (bt == re || bt == fe) && !/^[,\.=+\-*:?[\(]/.test(ce)); ) + De = De.prev; + s && De.type == ")" && De.prev.type == "stat" && (De = De.prev); + var un = De.type, qn = ye == un; + return un == "vardef" ? De.indented + (oe.lastType == "operator" || oe.lastType == "," ? De.info.length + 1 : 0) : un == "form" && ye == "{" ? De.indented : un == "form" ? De.indented + a : un == "stat" ? De.indented + (Ft(oe, ce) ? s || a : 0) : De.info == "switch" && !qn && n.doubleIndentSwitch != !1 ? De.indented + (/^(?:case|default)\b/.test(ce) ? a : 2 * a) : De.align ? De.column + (qn ? 0 : 1) : De.indented + (qn ? 0 : a); }, electricInput: /^\s*(?:case .*?:|default:|\{|\})$/, blockCommentStart: d ? null : "/*", @@ -29002,8 +29009,8 @@ const rr = to.exports; jsonldMode: u, jsonMode: d, expressionAllowed: Di, - skipExpression: function(re) { - V(re, "atom", "atom", "true", new i.StringStream("", 2, null)); + skipExpression: function(oe) { + V(oe, "atom", "atom", "true", new i.StringStream("", 2, null)); } }; }), i.registerHelper("wordChars", "javascript", /[\w$]/), i.defineMIME("text/javascript", "javascript"), i.defineMIME("text/ecmascript", "javascript"), i.defineMIME("application/javascript", "javascript"), i.defineMIME("application/x-javascript", "javascript"), i.defineMIME("application/ecmascript", "javascript"), i.defineMIME("application/json", { name: "javascript", json: !0 }), i.defineMIME("application/x-json", { name: "javascript", json: !0 }), i.defineMIME("application/manifest+json", { name: "javascript", json: !0 }), i.defineMIME("application/ld+json", { name: "javascript", jsonld: !0 }), i.defineMIME("text/typescript", { name: "javascript", typescript: !0 }), i.defineMIME("application/typescript", { name: "javascript", typescript: !0 }); @@ -29100,14 +29107,14 @@ const rr = to.exports; }; function d(m, w, E) { var x = m.options.hintOptions, k = {}; - for (var $ in y) - k[$] = y[$]; + for (var R in y) + k[R] = y[R]; if (x) - for (var $ in x) - x[$] !== void 0 && (k[$] = x[$]); + for (var R in x) + x[R] !== void 0 && (k[R] = x[R]); if (E) - for (var $ in E) - E[$] !== void 0 && (k[$] = E[$]); + for (var R in E) + E[R] !== void 0 && (k[R] = E[R]); return k.hint.resolve && (k.hint = k.hint.resolve(m, w)), k; } function p(m) { @@ -29142,12 +29149,12 @@ const rr = to.exports; }, E["Ctrl-N"] = function() { w.moveFocus(1); }); - var k = m.options.customKeys, $ = k ? {} : E; + var k = m.options.customKeys, R = k ? {} : E; function M(T, D) { var V; - typeof D != "string" ? V = function(K) { - return D(K, w); - } : E.hasOwnProperty(D) ? V = E[D] : V = D, $[T] = V; + typeof D != "string" ? V = function(W) { + return D(W, w); + } : E.hasOwnProperty(D) ? V = E[D] : V = D, R[T] = V; } if (k) for (var P in k) @@ -29156,7 +29163,7 @@ const rr = to.exports; if (B) for (var P in B) B.hasOwnProperty(P) && M(P, B[P]); - return $; + return R; } function g(m, w) { for (; w && w != m; ) { @@ -29167,44 +29174,44 @@ const rr = to.exports; } function _(m, w) { this.id = "cm-complete-" + Math.floor(Math.random(1e6)), this.completion = m, this.data = w, this.picked = !1; - var E = this, x = m.cm, k = x.getInputField().ownerDocument, $ = k.defaultView || k.parentWindow, M = this.hints = k.createElement("ul"); + var E = this, x = m.cm, k = x.getInputField().ownerDocument, R = k.defaultView || k.parentWindow, M = this.hints = k.createElement("ul"); M.setAttribute("role", "listbox"), M.setAttribute("aria-expanded", "true"), M.id = this.id; var P = m.cm.options.theme; M.className = "CodeMirror-hints " + P, this.selectedHint = w.selectedHint || 0; for (var B = w.list, T = 0; T < B.length; ++T) { - var D = M.appendChild(k.createElement("li")), V = B[T], K = r + (T != this.selectedHint ? "" : " " + n); - V.className != null && (K = V.className + " " + K), D.className = K, T == this.selectedHint && D.setAttribute("aria-selected", "true"), D.id = this.id + "-" + T, D.setAttribute("role", "option"), V.render ? V.render(D, w, V) : D.appendChild(k.createTextNode(V.displayText || p(V))), D.hintId = T; + var D = M.appendChild(k.createElement("li")), V = B[T], W = r + (T != this.selectedHint ? "" : " " + n); + V.className != null && (W = V.className + " " + W), D.className = W, T == this.selectedHint && D.setAttribute("aria-selected", "true"), D.id = this.id + "-" + T, D.setAttribute("role", "option"), V.render ? V.render(D, w, V) : D.appendChild(k.createTextNode(V.displayText || p(V))), D.hintId = T; } - var G = m.options.container || k.body, R = x.cursorCoords(m.options.alignWithWord ? w.from : null), z = R.left, C = R.bottom, F = !0, q = 0, Z = 0; + var G = m.options.container || k.body, I = x.cursorCoords(m.options.alignWithWord ? w.from : null), U = I.left, F = I.bottom, C = !0, q = 0, Z = 0; if (G !== k.body) { - var Y = ["absolute", "relative", "fixed"].indexOf($.getComputedStyle(G).position) !== -1, J = Y ? G : G.offsetParent, ve = J.getBoundingClientRect(), pe = k.body.getBoundingClientRect(); - q = ve.left - pe.left - J.scrollLeft, Z = ve.top - pe.top - J.scrollTop; + var Y = ["absolute", "relative", "fixed"].indexOf(R.getComputedStyle(G).position) !== -1, ue = Y ? G : G.offsetParent, te = ue.getBoundingClientRect(), pe = k.body.getBoundingClientRect(); + q = te.left - pe.left - ue.scrollLeft, Z = te.top - pe.top - ue.scrollTop; } - M.style.left = z - q + "px", M.style.top = C - Z + "px"; - var Te = $.innerWidth || Math.max(k.body.offsetWidth, k.documentElement.offsetWidth), ge = $.innerHeight || Math.max(k.body.offsetHeight, k.documentElement.offsetHeight); + M.style.left = U - q + "px", M.style.top = F - Z + "px"; + var ke = R.innerWidth || Math.max(k.body.offsetWidth, k.documentElement.offsetWidth), ge = R.innerHeight || Math.max(k.body.offsetHeight, k.documentElement.offsetHeight); G.appendChild(M), x.getInputField().setAttribute("aria-autocomplete", "list"), x.getInputField().setAttribute("aria-owns", this.id), x.getInputField().setAttribute("aria-activedescendant", this.id + "-" + this.selectedHint); - var me = m.options.moveOnOverlap ? M.getBoundingClientRect() : new DOMRect(), we = m.options.paddingForScrollbar ? M.scrollHeight > M.clientHeight + 1 : !1, ce; + var ve = m.options.moveOnOverlap ? M.getBoundingClientRect() : new DOMRect(), we = m.options.paddingForScrollbar ? M.scrollHeight > M.clientHeight + 1 : !1, he; setTimeout(function() { - ce = x.getScrollInfo(); + he = x.getScrollInfo(); }); - var Se = me.bottom - ge; + var Se = ve.bottom - ge; if (Se > 0) { - var I = me.bottom - me.top, j = R.top - (R.bottom - me.top); - if (j - I > 0) - M.style.top = (C = R.top - I - Z) + "px", F = !1; - else if (I > ge) { - M.style.height = ge - 5 + "px", M.style.top = (C = R.bottom - me.top - Z) + "px"; - var ee = x.getCursor(); - w.from.ch != ee.ch && (R = x.cursorCoords(ee), M.style.left = (z = R.left - q) + "px", me = M.getBoundingClientRect()); + var xe = ve.bottom - ve.top, $ = I.top - (I.bottom - ve.top); + if ($ - xe > 0) + M.style.top = (F = I.top - xe - Z) + "px", C = !1; + else if (xe > ge) { + M.style.height = ge - 5 + "px", M.style.top = (F = I.bottom - ve.top - Z) + "px"; + var K = x.getCursor(); + w.from.ch != K.ch && (I = x.cursorCoords(K), M.style.left = (U = I.left - q) + "px", ve = M.getBoundingClientRect()); } } - var te = me.right - Te; - if (we && (te += x.display.nativeBarWidth), te > 0 && (me.right - me.left > Te && (M.style.width = Te - 5 + "px", te -= me.right - me.left - Te), M.style.left = (z = Math.max(R.left - te - q, 0)) + "px"), we) - for (var se = M.firstChild; se; se = se.nextSibling) - se.style.paddingRight = x.display.nativeBarWidth + "px"; + var X = ve.right - ke; + if (we && (X += x.display.nativeBarWidth), X > 0 && (ve.right - ve.left > ke && (M.style.width = ke - 5 + "px", X -= ve.right - ve.left - ke), M.style.left = (U = Math.max(I.left - X - q, 0)) + "px"), we) + for (var ie = M.firstChild; ie; ie = ie.nextSibling) + ie.style.paddingRight = x.display.nativeBarWidth + "px"; if (x.addKeyMap(this.keyMap = h(m, { - moveFocus: function(Ae, Be) { - E.changeActive(E.selectedHint + Ae, Be); + moveFocus: function(Ae, Fe) { + E.changeActive(E.selectedHint + Ae, Fe); }, setFocus: function(Ae) { E.changeActive(Ae); @@ -29221,35 +29228,35 @@ const rr = to.exports; }, data: w })), m.options.closeOnUnfocus) { - var oe; + var re; x.on("blur", this.onBlur = function() { - oe = setTimeout(function() { + re = setTimeout(function() { m.close(); }, 100); }), x.on("focus", this.onFocus = function() { - clearTimeout(oe); + clearTimeout(re); }); } x.on("scroll", this.onScroll = function() { - var Ae = x.getScrollInfo(), Be = x.getWrapperElement().getBoundingClientRect(); - ce || (ce = x.getScrollInfo()); - var ct = C + ce.top - Ae.top, ze = ct - ($.pageYOffset || (k.documentElement || k.body).scrollTop); - if (F || (ze += M.offsetHeight), ze <= Be.top || ze >= Be.bottom) + var Ae = x.getScrollInfo(), Fe = x.getWrapperElement().getBoundingClientRect(); + he || (he = x.getScrollInfo()); + var Xe = F + he.top - Ae.top, Ze = Xe - (R.pageYOffset || (k.documentElement || k.body).scrollTop); + if (C || (Ze += M.offsetHeight), Ze <= Fe.top || Ze >= Fe.bottom) return m.close(); - M.style.top = ct + "px", M.style.left = z + ce.left - Ae.left + "px"; + M.style.top = Xe + "px", M.style.left = U + he.left - Ae.left + "px"; }), i.on(M, "dblclick", function(Ae) { - var Be = g(M, Ae.target || Ae.srcElement); - Be && Be.hintId != null && (E.changeActive(Be.hintId), E.pick()); + var Fe = g(M, Ae.target || Ae.srcElement); + Fe && Fe.hintId != null && (E.changeActive(Fe.hintId), E.pick()); }), i.on(M, "click", function(Ae) { - var Be = g(M, Ae.target || Ae.srcElement); - Be && Be.hintId != null && (E.changeActive(Be.hintId), m.options.completeOnSingleClick && E.pick()); + var Fe = g(M, Ae.target || Ae.srcElement); + Fe && Fe.hintId != null && (E.changeActive(Fe.hintId), m.options.completeOnSingleClick && E.pick()); }), i.on(M, "mousedown", function() { setTimeout(function() { x.focus(); }, 20); }); - var _e = this.getSelectedHintRange(); - return (_e.from !== 0 || _e.to !== 0) && this.scrollToActive(), i.signal(w, "select", B[this.selectedHint], M.childNodes[this.selectedHint]), !0; + var fe = this.getSelectedHintRange(); + return (fe.from !== 0 || fe.to !== 0) && this.scrollToActive(), i.signal(w, "select", B[this.selectedHint], M.childNodes[this.selectedHint]), !0; } _.prototype = { close: function() { @@ -29310,12 +29317,12 @@ const rr = to.exports; function A(m, w) { var E = m.getHelpers(w, "hint"), x; if (E.length) { - var k = function($, M, P) { - var B = S($, E); + var k = function(R, M, P) { + var B = S(R, E); function T(D) { if (D == B.length) return M(null); - b(B[D], $, P, function(V) { + b(B[D], R, P, function(V) { V && V.list.length > 0 ? M(V) : T(D + 1); }); } @@ -29323,24 +29330,24 @@ const rr = to.exports; }; return k.async = !0, k.supportsSelection = !0, k; } else - return (x = m.getHelper(m.getCursor(), "hintWords")) ? function($) { - return i.hint.fromList($, { words: x }); - } : i.hint.anyword ? function($, M) { - return i.hint.anyword($, M); + return (x = m.getHelper(m.getCursor(), "hintWords")) ? function(R) { + return i.hint.fromList(R, { words: x }); + } : i.hint.anyword ? function(R, M) { + return i.hint.anyword(R, M); } : function() { }; } i.registerHelper("hint", "auto", { resolve: A }), i.registerHelper("hint", "fromList", function(m, w) { - var E = m.getCursor(), x = m.getTokenAt(E), k, $ = i.Pos(E.line, x.start), M = E; - x.start < E.ch && /\w/.test(x.string.charAt(E.ch - x.start - 1)) ? k = x.string.substr(0, E.ch - x.start) : (k = "", $ = E); + var E = m.getCursor(), x = m.getTokenAt(E), k, R = i.Pos(E.line, x.start), M = E; + x.start < E.ch && /\w/.test(x.string.charAt(E.ch - x.start - 1)) ? k = x.string.substr(0, E.ch - x.start) : (k = "", R = E); for (var P = [], B = 0; B < w.words.length; B++) { var T = w.words[B]; T.slice(0, k.length) == k && P.push(T); } if (P.length) - return { list: P, from: $, to: M }; + return { list: P, from: R, to: M }; }), i.commands.autocomplete = i.showHint; var y = { hint: i.hint.auto, @@ -29379,18 +29386,18 @@ const rr = to.exports; return m.indexOf(w) != -1; } function s(m, w, E, x) { - var k = m.getCursor(), $ = E(m, k); - if (!/\b(?:string|comment)\b/.test($.type)) { - var M = i.innerMode(m.getMode(), $.state); + var k = m.getCursor(), R = E(m, k); + if (!/\b(?:string|comment)\b/.test(R.type)) { + var M = i.innerMode(m.getMode(), R.state); if (M.mode.helperType !== "json") { - $.state = M.state, /^[\w$_]*$/.test($.string) ? $.end > k.ch && ($.end = k.ch, $.string = $.string.slice(0, k.ch - $.start)) : $ = { + R.state = M.state, /^[\w$_]*$/.test(R.string) ? R.end > k.ch && (R.end = k.ch, R.string = R.string.slice(0, k.ch - R.start)) : R = { start: k.ch, end: k.ch, string: "", - state: $.state, - type: $.string == "." ? "property" : null + state: R.state, + type: R.string == "." ? "property" : null }; - for (var P = $; P.type == "property"; ) { + for (var P = R; P.type == "property"; ) { if (P = E(m, r(k.line, P.start)), P.string != ".") return; if (P = E(m, r(k.line, P.start)), !B) @@ -29398,9 +29405,9 @@ const rr = to.exports; B.push(P); } return { - list: y($, B, w, x), - from: r(k.line, $.start), - to: r(k.line, $.end) + list: y(R, B, w, x), + from: r(k.line, R.start), + to: r(k.line, R.end) }; } } @@ -29434,12 +29441,12 @@ const rr = to.exports; Object.getOwnPropertyNames(x).forEach(w); } function y(m, w, E, x) { - var k = [], $ = m.string, M = x && x.globalScope || window; - function P(R) { - R.lastIndexOf($, 0) == 0 && !a(k, R) && k.push(R); + var k = [], R = m.string, M = x && x.globalScope || window; + function P(I) { + I.lastIndexOf(R, 0) == 0 && !a(k, I) && k.push(I); } - function B(R) { - typeof R == "string" ? n(h, P) : R instanceof Array ? n(g, P) : R instanceof Function && n(_, P), A(R, P); + function B(I) { + typeof I == "string" ? n(h, P) : I instanceof Array ? n(g, P) : I instanceof Function && n(_, P), A(I, P); } if (w && w.length) { var T = w.pop(), D; @@ -29449,8 +29456,8 @@ const rr = to.exports; } else { for (var V = m.state.localVars; V; V = V.next) P(V.name); - for (var K = m.state.context; K; K = K.prev) - for (var V = K.vars; V; V = V.next) + for (var W = m.state.context; W; W = W.prev) + for (var V = W.vars; V; V = V.next) P(V.name); for (var V = m.state.globalVars; V; V = V.next) P(V.name); @@ -29463,7 +29470,7 @@ const rr = to.exports; } }); })(); -const NI = "[[FORM-CREATE-PREFIX-", BI = "-FORM-CREATE-SUFFIX]]", VI = Ve({ +const NI = "[[FORM-CREATE-PREFIX-", BI = "-FORM-CREATE-SUFFIX]]", VI = Be({ name: "FnEditor", emits: ["update:modelValue", "change"], props: { @@ -29560,16 +29567,16 @@ const NI = "[[FORM-CREATE-PREFIX-", BI = "-FORM-CREATE-SUFFIX]]", VI = Ve({ class: "_fd-fn-editor" }; function KI(e, t, i, r, n, a) { - const s = ne("el-table-column"), u = ne("el-table"), d = ne("el-popover"), p = ne("el-button"); + const s = ee("el-table-column"), u = ee("el-table"), d = ee("el-popover"), p = ee("el-button"); return H(), ae("div", jI, [ - X("div", UI, [ - t[2] || (t[2] = X("div", { class: "_fd-fn-ind" }, null, -1)), - X("div", HI, [ - X("span", null, [ + J("div", UI, [ + t[2] || (t[2] = J("div", { class: "_fd-fn-ind" }, null, -1)), + J("div", HI, [ + J("span", null, [ be("function " + le(e.name) + "(", 1), - (H(!0), ae(Me, null, We(e.argList, (h, g) => (H(), ae(Me, null, [ + (H(!0), ae(Me, null, ze(e.argList, (h, g) => (H(), ae(Me, null, [ be(le(g > 0 ? ", " : ""), 1), - h.type === "string" ? (H(), ae("span", zI, le(h.name), 1)) : (H(), he(d, { + h.type === "string" ? (H(), ae("span", zI, le(h.name), 1)) : (H(), me(d, { key: 1, placement: "top-start", width: 400, @@ -29579,35 +29586,35 @@ function KI(e, t, i, r, n, a) { content: h.info || "" }, { reference: N(() => [ - X("span", WI, [ + J("span", WI, [ be(le(h.name), 1), - t[0] || (t[0] = X("i", { class: "fc-icon icon-question" }, null, -1)) + t[0] || (t[0] = J("i", { class: "fc-icon icon-question" }, null, -1)) ]) ]), default: N(() => [ - h.columns ? (H(), he(u, { + h.columns ? (H(), me(u, { key: 0, data: h.columns, border: "" }, { default: N(() => [ - W(s, { + z(s, { width: "120", property: "label", label: e.t("props.field") }, null, 8, ["label"]), - W(s, { + z(s, { property: "info", label: e.t("event.info") }, null, 8, ["label"]), - W(s, { + z(s, { width: "80", property: "type", label: e.t("event.type") }, null, 8, ["label"]) ]), _: 2 - }, 1032, ["data"])) : ke("", !0) + }, 1032, ["data"])) : Te("", !0) ]), _: 2 }, 1032, ["title", "content"])) @@ -29616,12 +29623,12 @@ function KI(e, t, i, r, n, a) { ]) ]) ]), - X("div", GI, null, 512), - t[3] || (t[3] = X("div", { class: "_fd-fn-tip" }, [ - X("div", { class: "_fd-fn-ind" }), - X("div", { class: "cm-keyword" }, "}") + J("div", GI, null, 512), + t[3] || (t[3] = J("div", { class: "_fd-fn-tip" }, [ + J("div", { class: "_fd-fn-ind" }), + J("div", { class: "cm-keyword" }, "}") ], -1)), - e.visible && e.button ? (H(), he(p, { + e.visible && e.button ? (H(), me(p, { key: 0, type: "primary", size: "small", @@ -29631,11 +29638,11 @@ function KI(e, t, i, r, n, a) { be(le(e.t("props.save")), 1) ]), _: 1 - }, 8, ["onClick"])) : ke("", !0) + }, 8, ["onClick"])) : Te("", !0) ]); } -const sr = /* @__PURE__ */ je(VI, [["render", KI]]); -const YI = Ve({ +const sr = /* @__PURE__ */ Ve(VI, [["render", KI]]); +const YI = Be({ name: "ConditionInput", inject: ["designer"], emits: ["update:modelValue", "change"], @@ -29664,9 +29671,9 @@ const YI = Ve({ } }), QI = { class: "_fd-cdi-input" }; function JI(e, t, i, r, n, a) { - const s = ne("el-cascader"), u = ne("el-input-number"), d = ne("el-option"), p = ne("el-select"), h = ne("el-switch"), g = ne("el-input"); + const s = ee("el-cascader"), u = ee("el-input-number"), d = ee("el-option"), p = ee("el-select"), h = ee("el-switch"), g = ee("el-input"); return H(), ae("div", QI, [ - e.type === "cascader" ? (H(), he(s, jt({ + e.type === "cascader" ? (H(), me(s, jt({ key: 0, size: "default", props: { checkStrictly: !0, emitPath: !1 } @@ -29675,14 +29682,14 @@ function JI(e, t, i, r, n, a) { modelValue: e.value, "onUpdate:modelValue": t[0] || (t[0] = (_) => e.value = _), onChange: e.onInput - }), null, 16, ["options", "modelValue", "onChange"])) : e.type === "number" ? (H(), he(u, jt({ + }), null, 16, ["options", "modelValue", "onChange"])) : e.type === "number" ? (H(), me(u, jt({ key: 1, size: "default" }, e.props || {}, { modelValue: e.value, "onUpdate:modelValue": t[1] || (t[1] = (_) => e.value = _), onChange: e.onInput - }), null, 16, ["modelValue", "onChange"])) : e.type === "select" ? (H(), he(p, jt({ + }), null, 16, ["modelValue", "onChange"])) : e.type === "select" ? (H(), me(p, jt({ key: 2, size: "default", filterable: "", @@ -29694,21 +29701,21 @@ function JI(e, t, i, r, n, a) { onChange: e.onInput }), { default: N(() => [ - (H(!0), ae(Me, null, We(e.options, (_) => (H(), he(d, { + (H(!0), ae(Me, null, ze(e.options, (_) => (H(), me(d, { label: _.label, value: _.value, key: _.value }, null, 8, ["label", "value"]))), 128)) ]), _: 1 - }, 16, ["modelValue", "onChange"])) : e.type === "switch" ? (H(), he(h, jt({ + }, 16, ["modelValue", "onChange"])) : e.type === "switch" ? (H(), me(h, jt({ key: 3, size: "default" }, e.props || {}, { modelValue: e.value, "onUpdate:modelValue": t[3] || (t[3] = (_) => e.value = _), onChange: e.onInput - }), null, 16, ["modelValue", "onChange"])) : (H(), he(g, jt({ + }), null, 16, ["modelValue", "onChange"])) : (H(), me(g, jt({ key: 4, size: "default" }, e.props || {}, { @@ -29718,8 +29725,8 @@ function JI(e, t, i, r, n, a) { }), null, 16, ["modelValue", "onBlur"])) ]); } -const XI = /* @__PURE__ */ je(YI, [["render", JI]]); -const ZI = Ve({ +const XI = /* @__PURE__ */ Ve(YI, [["render", JI]]); +const ZI = Be({ name: "PatternInput", emits: ["update:modelValue", "change"], props: { @@ -29811,9 +29818,9 @@ const ZI = Ve({ } }), qI = { class: "_fd-pattern-input" }; function eF(e, t, i, r, n, a) { - const s = ne("el-dropdown-item"), u = ne("el-dropdown-menu"), d = ne("el-dropdown"), p = ne("el-input"); + const s = ee("el-dropdown-item"), u = ee("el-dropdown-menu"), d = ee("el-dropdown"), p = ee("el-input"); return H(), ae("div", qI, [ - W(p, { + z(p, { size: e.size, modelValue: e.value, "onUpdate:modelValue": t[0] || (t[0] = (h) => e.value = h), @@ -29821,15 +29828,15 @@ function eF(e, t, i, r, n, a) { clearable: "" }, { append: N(() => [ - W(d, { + z(d, { size: "default", trigger: "click", "popper-class": "_fd-pattern-popper" }, { dropdown: N(() => [ - W(u, null, { + z(u, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.options, (h) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.options, (h) => (H(), me(s, { key: h.value, onClick: (g) => e.setValue(h.value) }, { @@ -29843,7 +29850,7 @@ function eF(e, t, i, r, n, a) { }) ]), default: N(() => [ - t[1] || (t[1] = X("i", { class: "fc-icon icon-setting" }, null, -1)) + t[1] || (t[1] = J("i", { class: "fc-icon icon-setting" }, null, -1)) ]), _: 1 }) @@ -29852,8 +29859,8 @@ function eF(e, t, i, r, n, a) { }, 8, ["size", "modelValue", "onBlur"]) ]); } -const Op = /* @__PURE__ */ je(ZI, [["render", eF]]); -const tF = Ve({ +const Op = /* @__PURE__ */ Ve(ZI, [["render", eF]]); +const tF = Be({ name: "RuleSelect", inject: ["designer"], emits: ["update:modelValue", "change"], @@ -29922,8 +29929,8 @@ const tF = Ve({ class: "_fd-rule-select-node" }; function iF(e, t, i, r, n, a) { - const s = ne("el-tree-select"); - return H(), he(s, { + const s = ee("el-tree-select"); + return H(), me(s, { class: "_fd-rule-select", modelValue: e.modelValue, "onUpdate:modelValue": e.input, @@ -29935,8 +29942,8 @@ function iF(e, t, i, r, n, a) { }, { default: N(({ data: u }) => [ u.value === "___subform" ? (H(), ae("div", nF, [ - X("div", null, le(u.label), 1), - X("span", null, le(e.t("props.subform")), 1) + J("div", null, le(u.label), 1), + J("span", null, le(e.t("props.subform")), 1) ])) : (H(), ae(Me, { key: 1 }, [ be(le(u.label), 1) ], 64)) @@ -29944,8 +29951,8 @@ function iF(e, t, i, r, n, a) { _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "size", "multiple", "showCheckbox", "data"]); } -const $p = /* @__PURE__ */ je(tF, [["render", iF]]); -const rF = Ve({ +const $p = /* @__PURE__ */ Ve(tF, [["render", iF]]); +const rF = Be({ name: "ValueInput", emits: ["update:modelValue", "change", "change-type", "blur"], inject: ["designer"], @@ -29988,29 +29995,29 @@ const rF = Ve({ } }); function oF(e, t, i, r, n, a) { - const s = ne("el-option"), u = ne("el-select"), d = ne("el-input"); - return H(), he(d, jt({ + const s = ee("el-option"), u = ee("el-select"), d = ee("el-input"); + return H(), me(d, jt({ class: "_fd-value-input", modelValue: e.value, "onUpdate:modelValue": t[1] || (t[1] = (p) => e.value = p), onBlur: e.onBlur }, e.$attrs), Qn({ prepend: N(() => [ - W(u, { + z(u, { modelValue: e.type, "onUpdate:modelValue": t[0] || (t[0] = (p) => e.type = p), style: { width: "60px" } }, { default: N(() => [ - W(s, { + z(s, { label: e.t("validate.types.string"), value: "1" }, null, 8, ["label"]), - W(s, { + z(s, { label: e.t("validate.types.number"), value: "2" }, null, 8, ["label"]), - W(s, { + z(s, { label: e.t("validate.types.boolean"), value: "3" }, null, 8, ["label"]) @@ -30029,8 +30036,8 @@ function oF(e, t, i, r, n, a) { } : void 0 ]), 1040, ["modelValue", "onBlur"]); } -const wu = /* @__PURE__ */ je(rF, [["render", oF]]); -const aF = Ve({ +const wu = /* @__PURE__ */ Ve(rF, [["render", oF]]); +const aF = Be({ name: "Warning", props: { tooltip: String @@ -30046,14 +30053,14 @@ const aF = Ve({ class: "fc-icon icon-question" }; function dF(e, t, i, r, n, a) { - const s = ne("el-tooltip"); - return H(), he(s, { + const s = ee("el-tooltip"); + return H(), me(s, { effect: "dark", placement: "top-start", "popper-class": "_fd-warning-pop" }, { content: N(() => [ - X("span", { innerHTML: e.tooltip }, null, 8, lF) + J("span", { innerHTML: e.tooltip }, null, 8, lF) ]), default: N(() => [ e.$slots.default ? (H(), ae("span", sF, [ @@ -30063,8 +30070,8 @@ function dF(e, t, i, r, n, a) { _: 3 }); } -const ki = /* @__PURE__ */ je(aF, [["render", dF]]); -const fF = Ve({ +const ki = /* @__PURE__ */ Ve(aF, [["render", dF]]); +const fF = Be({ name: "VariableConfig", components: { Warning: ki }, emits: ["submit", "confirm"], @@ -30267,9 +30274,9 @@ const fF = Ve({ } }), cF = { class: "_fd-variable" }, pF = { style: { width: "230px" } }, hF = { class: "_fd-variable-item-label" }, mF = { class: "_fd-variable-info" }; function vF(e, t, i, r, n, a) { - const s = ne("el-input"), u = ne("el-header"), d = ne("el-tree"), p = ne("el-main"), h = ne("el-container"), g = ne("el-popover"), _ = ne("el-badge"), S = ne("Warning"), b = ne("el-aside"), A = ne("el-button"), y = ne("el-dialog"); + const s = ee("el-input"), u = ee("el-header"), d = ee("el-tree"), p = ee("el-main"), h = ee("el-container"), g = ee("el-popover"), _ = ee("el-badge"), S = ee("Warning"), b = ee("el-aside"), A = ee("el-button"), y = ee("el-dialog"); return H(), ae("div", cF, [ - e.popover ? (H(), he(g, { + e.popover ? (H(), me(g, { key: 0, ref: "pop", placement: "bottom", @@ -30280,47 +30287,47 @@ function vF(e, t, i, r, n, a) { "popper-class": "_fd-variable-pop" }, { reference: N(() => t[7] || (t[7] = [ - X("i", { + J("i", { class: "fc-icon icon-variable", style: { cursor: "pointer" } }, null, -1) ])), default: N(() => [ - W(h, { style: { height: "100%" } }, { + z(h, { style: { height: "100%" } }, { default: N(() => [ - W(u, { + z(u, { height: "55px", class: "_fd-variable-pop-header" }, { default: N(() => [ - W(s, { + z(s, { size: "small", modelValue: e.variable, "onUpdate:modelValue": t[1] || (t[1] = (m) => e.variable = m) }, { prefix: N(() => t[8] || (t[8] = [ - X("span", null, "{{", -1) + J("span", null, "{{", -1) ])), suffix: N(() => t[9] || (t[9] = [ be(" }} ") ])), append: N(() => [ - X("div", { + J("div", { onClick: t[0] || (t[0] = (...m) => e.confirm && e.confirm(...m)) }, le(e.t("props.append")), 1) ]), _: 1 }, 8, ["modelValue"]), - X("i", { + J("i", { class: "fc-icon icon-setting", onClick: t[2] || (t[2] = (...m) => e.openVariableConfig && e.openVariableConfig(...m)) }) ]), _: 1 }), - W(p, null, { + z(p, null, { default: N(() => [ - W(d, { + z(d, { ref: "treeRef", data: e.treeInfo, "default-expanded-keys": e.expandedKeys, @@ -30330,13 +30337,13 @@ function vF(e, t, i, r, n, a) { onNodeClick: e.nodeClick }, { default: N(({ node: m, data: w }) => [ - X("div", { - class: Xe(["_fd-variable-pop-node", { disabled: w.disabled }]) + J("div", { + class: qe(["_fd-variable-pop-node", { disabled: w.disabled }]) }, [ - X("div", null, [ - X("span", null, le((w.label || "").trim() || (w.rule ? e.getTitle(w.rule) : w.id)), 1) + J("div", null, [ + J("span", null, le((w.label || "").trim() || (w.rule ? e.getTitle(w.rule) : w.id)), 1) ]), - X("span", null, le(w.id), 1) + J("span", null, le(w.id), 1) ], 2) ]), _: 1 @@ -30350,23 +30357,23 @@ function vF(e, t, i, r, n, a) { ]), _: 1 }, 512)) : (H(), ae(Me, { key: 1 }, [ - W(_, { + z(_, { value: e.eventNum, type: "warning", hidden: e.eventNum < 1 }, { default: N(() => [ - X("div", { + J("div", { class: "_fd-variable-btn", onClick: t[3] || (t[3] = (...m) => e.open && e.open(...m)) }, [ - t[10] || (t[10] = X("i", { class: "fc-icon icon-variable" }, null, -1)), + t[10] || (t[10] = J("i", { class: "fc-icon icon-variable" }, null, -1)), be(le(e.t("computed.variable.bind")), 1) ]) ]), _: 1 }, 8, ["value", "hidden"]), - W(y, { + z(y, { class: "_fd-variable-dialog _fd-config-dialog", modelValue: e.visible, "onUpdate:modelValue": t[6] || (t[6] = (m) => e.visible = m), @@ -30377,13 +30384,13 @@ function vF(e, t, i, r, n, a) { }, { header: N(() => [ be(le(e.t("computed.variable.bind")) + " ", 1), - W(S, { + z(S, { tooltip: e.t("warning.variable") }, null, 8, ["tooltip"]) ]), footer: N(() => [ - X("div", null, [ - W(A, { + J("div", null, [ + z(A, { size: "default", onClick: t[5] || (t[5] = (m) => e.visible = !1) }, { @@ -30392,7 +30399,7 @@ function vF(e, t, i, r, n, a) { ]), _: 1 }), - W(A, { + z(A, { type: "primary", size: "default", onClick: e.submit @@ -30405,31 +30412,31 @@ function vF(e, t, i, r, n, a) { ]) ]), default: N(() => [ - W(h, { + z(h, { class: "_fd-variable-con", style: { height: "600px" } }, { default: N(() => [ - W(p, null, { + z(p, null, { default: N(() => [ - W(h, { class: "_fd-variable-l" }, { + z(h, { class: "_fd-variable-l" }, { default: N(() => [ - W(u, null, { + z(u, null, { default: N(() => [ - X("div", pF, le(e.t("computed.variable.attr")), 1), - X("div", null, le(e.t("computed.variable.bind")), 1) + J("div", pF, le(e.t("computed.variable.attr")), 1), + J("div", null, le(e.t("computed.variable.bind")), 1) ]), _: 1 }), - W(p, null, { + z(p, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.fields, (m, w) => (H(), ae("div", { + (H(!0), ae(Me, null, ze(e.fields, (m, w) => (H(), ae("div", { key: m.label, - class: Xe(["_fd-variable-item", { active: w === e.activeIdx, "_fd-variable-top": m.attach === !0 }]) + class: qe(["_fd-variable-item", { active: w === e.activeIdx, "_fd-variable-top": m.attach === !0 }]) }, [ - X("div", hF, le(m.label), 1), - t[13] || (t[13] = X("div", null, "=", -1)), - W(s, { + J("div", hF, le(m.label), 1), + t[13] || (t[13] = J("div", null, "=", -1)), + z(s, { modelValue: m.value, "onUpdate:modelValue": (E) => m.value = E, placeholder: "_", @@ -30437,7 +30444,7 @@ function vF(e, t, i, r, n, a) { clearable: "" }, { prefix: N(() => t[11] || (t[11] = [ - X("span", null, "{{", -1) + J("span", null, "{{", -1) ])), suffix: N(() => t[12] || (t[12] = [ be(" }} ") @@ -30454,24 +30461,24 @@ function vF(e, t, i, r, n, a) { ]), _: 1 }), - W(b, { style: { width: "328px" } }, { + z(b, { style: { width: "328px" } }, { default: N(() => [ - W(h, { class: "_fd-variable-r" }, { + z(h, { class: "_fd-variable-r" }, { default: N(() => [ - W(u, null, { + z(u, null, { default: N(() => [ be(le(e.t("computed.variable.list")) + " ", 1), - X("i", { + J("i", { class: "fc-icon icon-setting", onClick: t[4] || (t[4] = (...m) => e.openVariableConfig && e.openVariableConfig(...m)) }) ]), _: 1 }), - W(p, null, { + z(p, null, { default: N(() => [ - X("div", mF, le(e.t("warning.variableInfo")), 1), - W(d, { + J("div", mF, le(e.t("warning.variableInfo")), 1), + z(d, { ref: "treeRef", data: e.treeInfo, "default-expanded-keys": e.expandedKeys, @@ -30481,13 +30488,13 @@ function vF(e, t, i, r, n, a) { onNodeClick: e.nodeClick }, { default: N(({ node: m, data: w }) => [ - X("div", { - class: Xe(["_fd-variable-node", { disabled: w.disabled }]) + J("div", { + class: qe(["_fd-variable-node", { disabled: w.disabled }]) }, [ - X("div", null, [ - X("span", null, le((w.label || "").trim() || (w.rule ? e.getTitle(w.rule) : w.id)), 1) + J("div", null, [ + J("span", null, le((w.label || "").trim() || (w.rule ? e.getTitle(w.rule) : w.id)), 1) ]), - X("span", null, le(w.id), 1) + J("span", null, le(w.id), 1) ], 2) ]), _: 1 @@ -30510,7 +30517,7 @@ function vF(e, t, i, r, n, a) { ], 64)) ]); } -const ml = /* @__PURE__ */ je(fF, [["render", vF]]); +const ml = /* @__PURE__ */ Ve(fF, [["render", vF]]); const Bo = { input: ["==", "!=", "on", "notOn", "empty", "notEmpty", "pattern"], select: ["==", "!=", "on", "notOn", "empty", "notEmpty"], @@ -30518,7 +30525,7 @@ const Bo = { number: ["==", "!=", ">", ">=", "<", "<=", "empty", "notEmpty"] }; Bo.cascader = Bo.select; -const X0 = Ve({ +const X0 = Be({ name: "ConditionGroup", components: { VariableConfig: ml, ValueInput: wu, RuleSelect: $p, PatternInput: Op, ConditionInput: XI }, inject: ["designer"], @@ -30647,11 +30654,11 @@ const X0 = Ve({ class: "_fd-cfg-value" }, SF = ["onClick"], EF = { class: "_fd-cdg-btns" }; function xF(e, t, i, r, n, a) { - const s = ne("el-option"), u = ne("el-select"), d = ne("ConditionGroup", !0), p = ne("VariableConfig"), h = ne("el-input"), g = ne("RuleSelect"), _ = ne("ValueInput"), S = ne("PatternInput"), b = ne("ConditionInput"), A = ne("el-checkbox"), y = ne("el-button"); + const s = ee("el-option"), u = ee("el-select"), d = ee("ConditionGroup", !0), p = ee("VariableConfig"), h = ee("el-input"), g = ee("RuleSelect"), _ = ee("ValueInput"), S = ee("PatternInput"), b = ee("ConditionInput"), A = ee("el-checkbox"), y = ee("el-button"); return H(), ae("div", yF, [ - X("div", bF, [ - X("div", _F, [ - e.list.length > 0 ? (H(), he(u, { + J("div", bF, [ + J("div", _F, [ + e.list.length > 0 ? (H(), me(u, { key: 0, size: "default", modelValue: e.mode, @@ -30659,38 +30666,38 @@ function xF(e, t, i, r, n, a) { onChange: e.onInput }, { default: N(() => [ - W(s, { + z(s, { label: "AND", value: "AND" }), - W(s, { + z(s, { label: "OR", value: "OR" }) ]), _: 1 - }, 8, ["modelValue", "onChange"])) : ke("", !0) + }, 8, ["modelValue", "onChange"])) : Te("", !0) ]), - X("div", wF, [ - (H(!0), ae(Me, null, We(e.list, (m, w) => (H(), ae(Me, null, [ + J("div", wF, [ + (H(!0), ae(Me, null, ze(e.list, (m, w) => (H(), ae(Me, null, [ m.mode != null ? (H(), ae("div", { class: "_fd-cdg-option is-group", key: m.field + "a" + w + e.list.length }, [ - W(d, { + z(d, { modelValue: e.list[w], "onUpdate:modelValue": (E) => e.list[w] = E, onChange: e.onInput }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"]), - X("i", { - class: Xe(["fc-icon icon-add-circle", { disabled: e.list.length === 1 }]), + J("i", { + class: qe(["fc-icon icon-add-circle", { disabled: e.list.length === 1 }]), onClick: (E) => e.removeItem(w) }, null, 10, AF) ])) : (H(), ae("div", { class: "_fd-cdg-option", key: w }, [ - W(u, { + z(u, { style: { width: "85px" }, size: "default", modelValue: m.type, @@ -30698,18 +30705,18 @@ function xF(e, t, i, r, n, a) { onChange: (E) => e.changeType(m) }, { default: N(() => [ - W(s, { + z(s, { label: e.t("props.field"), value: "field" }, null, 8, ["label"]), - W(s, { + z(s, { label: e.t("props.variable"), value: "variable" }, null, 8, ["label"]) ]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"]), - m.type === "variable" ? (H(), he(h, { + m.type === "variable" ? (H(), me(h, { class: "_fd-cdg-variable", size: "default", modelValue: m.field, @@ -30719,13 +30726,13 @@ function xF(e, t, i, r, n, a) { key: "variable" }, { suffix: N(() => [ - W(p, { + z(p, { popover: "", onConfirm: (E) => e.selectVar(m, E) }, null, 8, ["onConfirm"]) ]), _: 2 - }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (H(), he(g, { + }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (H(), me(g, { class: "_fd-cdg-field", size: "default", onlyField: "", @@ -30737,7 +30744,7 @@ function xF(e, t, i, r, n, a) { onChange: (E) => e.changeField(m), key: "field" }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])), - m.formula ? (H(), he(u, { + m.formula ? (H(), me(u, { key: 2, class: "_fd-cdg-term", size: "default", @@ -30746,16 +30753,16 @@ function xF(e, t, i, r, n, a) { onChange: e.onInput }, { default: N(() => [ - (H(!0), ae(Me, null, We(m.formula, (E) => (H(), he(s, { + (H(!0), ae(Me, null, ze(m.formula, (E) => (H(), me(s, { key: E.value, label: E.label, value: E.value }, null, 8, ["label", "value"]))), 128)) ]), _: 2 - }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : ke("", !0), + }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : Te("", !0), m.input && ["empty", "notEmpty"].indexOf(m.condition) === -1 ? (H(), ae("div", CF, [ - m.var ? (H(), he(g, { + m.var ? (H(), me(g, { key: 0, class: "_fd-cdg-field", size: "default", @@ -30766,19 +30773,19 @@ function xF(e, t, i, r, n, a) { clearable: "", multiple: !1, onChange: e.onInput - }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : m.type === "variable" ? (H(), he(_, { + }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : m.type === "variable" ? (H(), me(_, { key: 1, size: "default", modelValue: m.value, "onUpdate:modelValue": (E) => m.value = E, onChange: e.onInput - }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : m.condition === "pattern" ? (H(), he(S, { + }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : m.condition === "pattern" ? (H(), me(S, { size: "default", key: m.field, modelValue: m.value, "onUpdate:modelValue": (E) => m.value = E, onChange: e.onInput - }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (H(), he(b, jt({ + }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (H(), me(b, jt({ key: 3, ref_for: !0 }, m.input, { @@ -30787,14 +30794,14 @@ function xF(e, t, i, r, n, a) { "onUpdate:modelValue": (E) => m.value = E, onChange: e.onInput }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])), - W(A, { + z(A, { modelValue: m.var, "onUpdate:modelValue": (E) => m.var = E, size: "default", label: e.t("props.field") }, null, 8, ["modelValue", "onUpdate:modelValue", "label"]) - ])) : ke("", !0), - X("i", { + ])) : Te("", !0), + J("i", { class: "fc-icon icon-delete", onClick: (E) => e.removeItem(w) }, null, 8, SF) @@ -30802,25 +30809,25 @@ function xF(e, t, i, r, n, a) { ], 64))), 256)) ]) ]), - X("div", EF, [ - W(y, { + J("div", EF, [ + z(y, { link: "", type: "primary", onClick: e.addItem }, { default: N(() => [ - t[1] || (t[1] = X("i", { class: "fc-icon icon-add-circle" }, null, -1)), + t[1] || (t[1] = J("i", { class: "fc-icon icon-add-circle" }, null, -1)), be(" " + le(e.t("computed.addCondition")), 1) ]), _: 1 }, 8, ["onClick"]), - W(y, { + z(y, { link: "", type: "primary", onClick: e.addItemGroup }, { default: N(() => [ - t[2] || (t[2] = X("i", { class: "fc-icon icon-add-circle" }, null, -1)), + t[2] || (t[2] = J("i", { class: "fc-icon icon-add-circle" }, null, -1)), be(" " + le(e.t("computed.addGroup")), 1) ]), _: 1 @@ -30828,8 +30835,8 @@ function xF(e, t, i, r, n, a) { ]) ]); } -const TF = /* @__PURE__ */ je(gF, [["render", xF]]); -const kF = Ve({ +const TF = /* @__PURE__ */ Ve(gF, [["render", xF]]); +const kF = Be({ name: "ComputedConfig", components: { Warning: ki, RuleSelect: $p, ConditionGroup: TF }, props: { @@ -31091,15 +31098,15 @@ const kF = Ve({ style: { color: "#f56c6c" } }; function HF(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-badge"), d = ne("Warning"), p = ne("el-tab-pane"), h = ne("el-tabs"), g = ne("ConditionGroup"), _ = ne("RuleSelect"), S = ne("el-radio"), b = ne("el-radio-group"), A = ne("el-main"), y = ne("el-container"), m = ne("el-tree"), w = ne("el-aside"), E = ne("el-header"), x = ne("el-dialog"); + const s = ee("el-button"), u = ee("el-badge"), d = ee("Warning"), p = ee("el-tab-pane"), h = ee("el-tabs"), g = ee("ConditionGroup"), _ = ee("RuleSelect"), S = ee("el-radio"), b = ee("el-radio-group"), A = ee("el-main"), y = ee("el-container"), m = ee("el-tree"), w = ee("el-aside"), E = ee("el-header"), x = ee("el-dialog"); return H(), ae("div", OF, [ - W(u, { + z(u, { type: "warning", "is-dot": "", hidden: !e.configured }, { default: N(() => [ - W(s, { + z(s, { class: "_fd-plain-button", plain: "", onClick: t[0] || (t[0] = (k) => e.visible = !0), @@ -31113,7 +31120,7 @@ function HF(e, t, i, r, n, a) { ]), _: 1 }, 8, ["hidden"]), - W(x, { + z(x, { class: "_fd-comp-dialog _fd-config-dialog", title: e.title, modelValue: e.visible, @@ -31124,8 +31131,8 @@ function HF(e, t, i, r, n, a) { width: "980px" }, { footer: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { onClick: t[5] || (t[5] = (k) => e.visible = !1), size: "default" }, { @@ -31134,7 +31141,7 @@ function HF(e, t, i, r, n, a) { ]), _: 1 }), - W(s, { + z(s, { type: "primary", onClick: e.submit, size: "default" @@ -31147,26 +31154,26 @@ function HF(e, t, i, r, n, a) { ]) ]), default: N(() => [ - e.type !== "value" ? (H(), he(h, { + e.type !== "value" ? (H(), me(h, { key: 0, class: "_fd-preview-tabs", modelValue: e.status, "onUpdate:modelValue": t[1] || (t[1] = (k) => e.status = k) }, { default: N(() => [ - W(p, { name: "condition" }, { + z(p, { name: "condition" }, { label: N(() => [ be(le(e.type === "linkage" ? e.t("computed.value.title") : e.t("computed.condition")) + " ", 1), - W(d, { + z(d, { tooltip: e.t("warning.computedCondition") }, null, 8, ["tooltip"]) ]), _: 1 }), - W(p, { name: "computed" }, { + z(p, { name: "computed" }, { label: N(() => [ be(le(e.t("computed.name")) + " ", 1), - W(d, { + z(d, { tooltip: e.t("warning.computedFormula") }, null, 8, ["tooltip"]) ]), @@ -31174,26 +31181,26 @@ function HF(e, t, i, r, n, a) { }) ]), _: 1 - }, 8, ["modelValue"])) : ke("", !0), - e.status === "condition" ? (H(), he(y, { + }, 8, ["modelValue"])) : Te("", !0), + e.status === "condition" ? (H(), me(y, { key: 1, class: "_fd-comp-condition" }, { default: N(() => [ - W(A, null, { + z(A, null, { default: N(() => [ - X("div", $F, le(e.t("computed.setting")), 1), - e.visible ? (H(), he(g, { + J("div", $F, le(e.t("computed.setting")), 1), + e.visible ? (H(), me(g, { key: 0, modelValue: e.condition, "onUpdate:modelValue": t[2] || (t[2] = (k) => e.condition = k), ref: "condition" - }, null, 8, ["modelValue"])) : ke("", !0), + }, null, 8, ["modelValue"])) : Te("", !0), e.type === "linkage" ? (H(), ae(Me, { key: 1 }, [ - X("div", RF, le(e.t("computed.linkage.trigger")), 1), - X("div", DF, [ + J("div", RF, le(e.t("computed.linkage.trigger")), 1), + J("div", DF, [ be(le(e.t("computed.linkage.info.0")) + " ", 1), - W(_, { + z(_, { modelValue: e.linkage, "onUpdate:modelValue": t[3] || (t[3] = (k) => e.linkage = k), size: "small", @@ -31204,19 +31211,19 @@ function HF(e, t, i, r, n, a) { be(" " + le(e.t("computed.linkage.info.1")), 1) ]) ], 64)) : (H(), ae(Me, { key: 2 }, [ - X("div", IF, le(e.t("computed.invert")), 1), - W(b, { + J("div", IF, le(e.t("computed.invert")), 1), + z(b, { modelValue: e.invert, "onUpdate:modelValue": t[4] || (t[4] = (k) => e.invert = k) }, { default: N(() => [ - W(S, { value: !0 }, { + z(S, { value: !0 }, { default: N(() => [ be(le(e.invertLabel), 1) ]), _: 1 }), - W(S, { value: !1 }, { + z(S, { value: !1 }, { default: N(() => [ be(le(e.validLabel), 1) ]), @@ -31231,14 +31238,14 @@ function HF(e, t, i, r, n, a) { }) ]), _: 1 - })) : (H(), he(y, { + })) : (H(), me(y, { key: 2, class: "_fd-comp-con" }, { default: N(() => [ - W(w, null, { + z(w, null, { default: N(() => [ - W(m, { + z(m, { ref: "treeRef", data: e.treeInfo, "default-expanded-keys": e.expandedKeys, @@ -31247,23 +31254,23 @@ function HF(e, t, i, r, n, a) { indent: 10, onNodeClick: e.nodeClick }, { - default: N(({ node: k, data: $ }) => [ - X("div", { - class: Xe(["_fd-comp-node", { disabled: $.disabled }]), - onMouseover: (M) => e.nodeOver($) + default: N(({ node: k, data: R }) => [ + J("div", { + class: qe(["_fd-comp-node", { disabled: R.disabled }]), + onMouseover: (M) => e.nodeOver(R) }, [ - X("div", null, [ - $.rule ? (H(), ae(Me, { key: 0 }, [ - $.rule._menu.subForm === "object" ? (H(), ae("span", PF, "{ " + le(e.t("props.group")) + " }", 1)) : ke("", !0), - $.rule._menu.subForm === "array" ? (H(), ae("span", MF, "[ " + le(e.t("props.collection")) + " ]", 1)) : ke("", !0) - ], 64)) : ke("", !0), - X("span", null, le($.rule ? e.getTitle($.rule) : ($.label || "").trim()), 1) + J("div", null, [ + R.rule ? (H(), ae(Me, { key: 0 }, [ + R.rule._menu.subForm === "object" ? (H(), ae("span", PF, "{ " + le(e.t("props.group")) + " }", 1)) : Te("", !0), + R.rule._menu.subForm === "array" ? (H(), ae("span", MF, "[ " + le(e.t("props.collection")) + " ]", 1)) : Te("", !0) + ], 64)) : Te("", !0), + J("span", null, le(R.rule ? e.getTitle(R.rule) : (R.label || "").trim()), 1) ]), - $.rule ? (H(), ae("span", { + R.rule ? (H(), ae("span", { key: 0, class: "_fd-comp-id", - onClick: vt((M) => e.setField($), ["stop"]) - }, " ID ", 8, LF)) : ke("", !0) + onClick: vt((M) => e.setField(R), ["stop"]) + }, " ID ", 8, LF)) : Te("", !0) ], 42, FF) ]), _: 1 @@ -31271,11 +31278,11 @@ function HF(e, t, i, r, n, a) { ]), _: 1 }), - W(A, null, { + z(A, null, { default: N(() => [ - W(y, { class: "_fd-comp-r" }, { + z(y, { class: "_fd-comp-r" }, { default: N(() => [ - W(E, { + z(E, { class: "_fd-comp-head", height: "40px" }, { @@ -31284,17 +31291,17 @@ function HF(e, t, i, r, n, a) { ]), _: 1 }), - W(A, null, { + z(A, null, { default: N(() => [ - e.visible ? (H(), ae("div", NF, null, 512)) : ke("", !0) + e.visible ? (H(), ae("div", NF, null, 512)) : Te("", !0) ]), _: 1 }), e.formulaInfo || e.err ? (H(), ae("div", BF, [ - e.formulaInfo ? (H(), ae("div", VF, le(e.t("computed.formulaInfo")) + ": " + le(e.formulaInfo), 1)) : ke("", !0), - e.formulaExample ? (H(), ae("div", jF, le(e.t("computed.formulaExample")) + ": " + le(e.formulaExample), 1)) : ke("", !0), - e.err ? (H(), ae("div", UF, le(e.t("validate.message")) + ": " + le(e.err), 1)) : ke("", !0) - ])) : ke("", !0) + e.formulaInfo ? (H(), ae("div", VF, le(e.t("computed.formulaInfo")) + ": " + le(e.formulaInfo), 1)) : Te("", !0), + e.formulaExample ? (H(), ae("div", jF, le(e.t("computed.formulaExample")) + ": " + le(e.formulaExample), 1)) : Te("", !0), + e.err ? (H(), ae("div", UF, le(e.t("validate.message")) + ": " + le(e.err), 1)) : Te("", !0) + ])) : Te("", !0) ]), _: 1 }) @@ -31309,8 +31316,8 @@ function HF(e, t, i, r, n, a) { }, 8, ["title", "modelValue"]) ]); } -const Z0 = /* @__PURE__ */ je(kF, [["render", HF]]); -const Fs = "$FNX:", eg = (e) => St.String(e) && e.indexOf(Fs) === 0, zF = Ve({ +const Z0 = /* @__PURE__ */ Ve(kF, [["render", HF]]); +const Fs = "$FNX:", eg = (e) => St.String(e) && e.indexOf(Fs) === 0, zF = Be({ name: "EventConfig", emits: ["update:modelValue"], props: { @@ -31331,7 +31338,7 @@ const Fs = "$FNX:", eg = (e) => St.String(e) && e.indexOf(Fs) === 0, zF = Ve({ ComputedConfig: Z0, FnEditor: sr, fcDraggable: Yo, - DragForm: et.$form() + DragForm: tt.$form() }, data() { return { @@ -31600,19 +31607,19 @@ const Fs = "$FNX:", eg = (e) => St.String(e) && e.indexOf(Fs) === 0, zF = Ve({ class: "_fd-event-behavior-title" }, pP = { class: "_fd-event-behavior-title" }, hP = { class: "_fd-form-item-warning" }, mP = { class: "_fd-form-item-warning" }, vP = { class: "_fd-form-item-warning" }; function gP(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-badge"), d = ne("el-dropdown-item"), p = ne("el-dropdown-menu"), h = ne("el-dropdown"), g = ne("el-header"), _ = ne("el-tooltip"), S = ne("fcDraggable"), b = ne("el-input"), A = ne("el-main"), y = ne("el-container"), m = ne("el-aside"), w = ne("FnEditor"), E = ne("el-tab-pane"), x = ne("el-option"), k = ne("el-select"), $ = ne("el-tabs"), M = ne("el-menu-item"), P = ne("el-sub-menu"), B = ne("el-menu"), T = ne("Warning"), D = ne("DragForm"), V = ne("el-radio-button"), K = ne("el-radio-group"), G = ne("el-form-item"), R = ne("ComputedConfig"), z = ne("el-form"), C = ne("el-dialog"); + const s = ee("el-button"), u = ee("el-badge"), d = ee("el-dropdown-item"), p = ee("el-dropdown-menu"), h = ee("el-dropdown"), g = ee("el-header"), _ = ee("el-tooltip"), S = ee("fcDraggable"), b = ee("el-input"), A = ee("el-main"), y = ee("el-container"), m = ee("el-aside"), w = ee("FnEditor"), E = ee("el-tab-pane"), x = ee("el-option"), k = ee("el-select"), R = ee("el-tabs"), M = ee("el-menu-item"), P = ee("el-sub-menu"), B = ee("el-menu"), T = ee("Warning"), D = ee("DragForm"), V = ee("el-radio-button"), W = ee("el-radio-group"), G = ee("el-form-item"), I = ee("ComputedConfig"), U = ee("el-form"), F = ee("el-dialog"); return H(), ae("div", WF, [ - W(u, { + z(u, { value: e.eventNum, type: "warning", hidden: e.eventNum < 1 }, { default: N(() => [ - W(s, { + z(s, { class: "_fd-plain-button", plain: "", size: "small", - onClick: t[0] || (t[0] = (F) => e.visible = !0) + onClick: t[0] || (t[0] = (C) => e.visible = !0) }, { default: N(() => [ be(le(e.t("event.title")), 1) @@ -31622,28 +31629,28 @@ function gP(e, t, i, r, n, a) { ]), _: 1 }, 8, ["value", "hidden"]), - W(C, { + z(F, { class: "_fd-event-dialog _fd-config-dialog", title: e.t("event.title"), modelValue: e.visible, - "onUpdate:modelValue": t[14] || (t[14] = (F) => e.visible = F), + "onUpdate:modelValue": t[14] || (t[14] = (C) => e.visible = C), "destroy-on-close": "", "close-on-click-modal": !1, "append-to-body": "", width: "1080px" }, { footer: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { size: "default", - onClick: t[13] || (t[13] = (F) => e.visible = !1) + onClick: t[13] || (t[13] = (C) => e.visible = !1) }, { default: N(() => [ be(le(e.t("props.cancel")), 1) ]), _: 1 }), - W(s, { + z(s, { type: "primary", size: "default", onClick: e.submit @@ -31656,61 +31663,61 @@ function gP(e, t, i, r, n, a) { ]) ]), default: N(() => [ - W(y, { + z(y, { class: "_fd-event-con", style: { height: "600px" } }, { default: N(() => [ - W(m, { style: { width: "300px" } }, { + z(m, { style: { width: "300px" } }, { default: N(() => [ - W(y, { class: "_fd-event-l" }, { + z(y, { class: "_fd-event-l" }, { default: N(() => [ - W(g, { + z(g, { class: "_fd-event-head", height: "40px" }, { default: N(() => [ - W(h, { + z(h, { "popper-class": "_fd-event-dropdown", trigger: "click", size: "default", placement: "bottom-start" }, { dropdown: N(() => [ - W(p, null, { + z(p, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.eventName, (F) => (H(), he(d, { - key: F, - onClick: (q) => e.add(F), - disabled: e.useEventKeys.indexOf(F) > -1 + (H(!0), ae(Me, null, ze(e.eventName, (C) => (H(), me(d, { + key: C, + onClick: (q) => e.add(C), + disabled: e.useEventKeys.indexOf(C) > -1 }, { default: N(() => [ - X("div", GF, [ - X("span", null, le(F), 1), - e.eventInfo[F] ? (H(), ae("span", KF, le(e.eventInfo[F]), 1)) : ke("", !0) + J("div", GF, [ + J("span", null, le(C), 1), + e.eventInfo[C] ? (H(), ae("span", KF, le(e.eventInfo[C]), 1)) : Te("", !0) ]) ]), _: 2 }, 1032, ["onClick", "disabled"]))), 128)), - (H(!0), ae(Me, null, We(e.hookList, (F, q) => (H(), he(d, { + (H(!0), ae(Me, null, ze(e.hookList, (C, q) => (H(), me(d, { divided: e.eventName.length > 0 && !q, - onClick: (Z) => e.add(F), - disabled: e.useEventKeys.indexOf(F) > -1 + onClick: (Z) => e.add(C), + disabled: e.useEventKeys.indexOf(C) > -1 }, { default: N(() => [ - X("div", YF, [ - X("div", null, le(F), 1), - X("span", QF, le(e.eventInfo[F]), 1) + J("div", YF, [ + J("div", null, le(C), 1), + J("span", QF, le(e.eventInfo[C]), 1) ]) ]), _: 2 }, 1032, ["divided", "onClick", "disabled"]))), 256)), - W(d, { + z(d, { divided: e.eventName.length > 0 || e.hook, onClick: e.cusEvent }, { default: N(() => [ - X("div", null, le(e.t("props.custom")), 1) + J("div", null, le(e.t("props.custom")), 1) ]), _: 1 }, 8, ["divided", "onClick"]) @@ -31719,14 +31726,14 @@ function gP(e, t, i, r, n, a) { }) ]), default: N(() => [ - W(s, { + z(s, { link: "", type: "primary", size: "default" }, { default: N(() => [ be(le(e.t("event.create")), 1), - t[15] || (t[15] = X("i", { + t[15] || (t[15] = J("i", { class: "fc-icon icon-down", style: { "font-size": "14px" } }, null, -1)) @@ -31739,25 +31746,25 @@ function gP(e, t, i, r, n, a) { ]), _: 1 }), - W(A, null, { + z(A, null, { default: N(() => [ - X("div", JF, [ - (H(!0), ae(Me, null, We(e.event, (F, q) => (H(), ae("div", { - key: F.id, - class: Xe(["_fd-menu-item", { "is-active": F.id === e.defActive }]) + J("div", JF, [ + (H(!0), ae(Me, null, ze(e.event, (C, q) => (H(), ae("div", { + key: C.id, + class: qe(["_fd-menu-item", { "is-active": C.id === e.defActive }]) }, [ - X("div", { + J("div", { class: "_fd-event-title", onClick: vt((Z) => e.edit(q), ["stop"]) }, [ - X("div", ZF, [ - X("span", null, [ + J("div", ZF, [ + J("span", null, [ t[16] || (t[16] = be("function")), - X("span", null, le(F.name), 1) + J("span", null, le(C.name), 1) ]), - e.eventInfo[F.name] ? (H(), ae("span", qF, le(e.eventInfo[F.name]), 1)) : ke("", !0) + e.eventInfo[C.name] ? (H(), ae("span", qF, le(e.eventInfo[C.name]), 1)) : Te("", !0) ]), - F.name !== "hook_load" ? (H(), he(_, { + C.name !== "hook_load" ? (H(), me(_, { key: 0, effect: "dark", content: e.t("behavior.add"), @@ -31765,44 +31772,44 @@ function gP(e, t, i, r, n, a) { "hide-after": 0 }, { default: N(() => [ - X("i", { + J("i", { class: "fc-icon icon-task-add", onClick: vt((Z) => e.addBehavior(q), ["stop"]) }, null, 8, eP) ]), _: 2 - }, 1032, ["content"])) : ke("", !0), - X("i", { + }, 1032, ["content"])) : Te("", !0), + J("i", { class: "fc-icon icon-delete-circle", onClick: vt((Z) => e.rm(q), ["stop"]) }, null, 8, tP) ], 8, XF), - X("div", nP, [ - W(S, { + J("div", nP, [ + z(S, { group: { name: "behavior", put: !1 }, sort: !0, handle: ".icon-drag", direction: "vertical", animation: 0, itemKey: "_fc_id", - list: F.behaviors + list: C.behaviors }, { item: N(({ element: Z, index: Y }) => [ - X("div", { - class: Xe(["_fd-event-behavior", { "is-active": Z.id === e.defActive }]), - onClick: vt((J) => e.editBehavior(q, Y), ["stop"]) + J("div", { + class: qe(["_fd-event-behavior", { "is-active": Z.id === e.defActive }]), + onClick: vt((ue) => e.editBehavior(q, Y), ["stop"]) }, [ - X("div", rP, [ - X("div", null, [ - t[17] || (t[17] = X("i", { class: "fc-icon icon-drag" }, null, -1)), - X("span", null, le(e.t("behavior." + Z.method + ".name")), 1) + J("div", rP, [ + J("div", null, [ + t[17] || (t[17] = J("i", { class: "fc-icon icon-drag" }, null, -1)), + J("span", null, le(e.t("behavior." + Z.method + ".name")), 1) ]), - X("i", { + J("i", { class: "fc-icon icon-delete-circle", - onClick: vt((J) => e.rmBehavior(q, Y), ["stop"]) + onClick: vt((ue) => e.rmBehavior(q, Y), ["stop"]) }, null, 8, oP) ]), - X("div", aP, le(e.t("behavior." + Z.method + ".info") || e.t("behavior." + Z.method + ".name")), 1) + J("div", aP, le(e.t("behavior." + Z.method + ".info") || e.t("behavior." + Z.method + ".name")), 1) ], 10, iP) ]), _: 2 @@ -31810,27 +31817,27 @@ function gP(e, t, i, r, n, a) { ]) ], 2))), 128)), e.cus ? (H(), ae("div", lP, [ - X("div", sP, [ - W(b, { + J("div", sP, [ + z(b, { type: "text", modelValue: e.cusValue, - "onUpdate:modelValue": t[1] || (t[1] = (F) => e.cusValue = F), + "onUpdate:modelValue": t[1] || (t[1] = (C) => e.cusValue = C), size: "default", onKeydown: al(e.addCus, ["enter"]), placeholder: e.t("event.placeholder") }, null, 8, ["modelValue", "onKeydown", "placeholder"]), - X("div", null, [ - X("i", { + J("div", null, [ + J("i", { class: "fc-icon icon-add", - onClick: t[2] || (t[2] = vt((...F) => e.addCus && e.addCus(...F), ["stop"])) + onClick: t[2] || (t[2] = vt((...C) => e.addCus && e.addCus(...C), ["stop"])) }), - X("i", { + J("i", { class: "fc-icon icon-delete", - onClick: t[3] || (t[3] = vt((...F) => e.closeCus && e.closeCus(...F), ["stop"])) + onClick: t[3] || (t[3] = vt((...C) => e.closeCus && e.closeCus(...C), ["stop"])) }) ]) ]) - ])) : ke("", !0) + ])) : Te("", !0) ]) ]), _: 1 @@ -31841,17 +31848,17 @@ function gP(e, t, i, r, n, a) { ]), _: 1 }), - W(A, null, { + z(A, null, { default: N(() => [ - W(y, { class: "_fd-event-r" }, { + z(y, { class: "_fd-event-r" }, { default: N(() => [ - e.activeData || e.activeBehavior ? (H(), he(g, { + e.activeData || e.activeBehavior ? (H(), me(g, { key: 0, class: "_fd-event-head", height: "40px" }, { default: N(() => [ - W(s, { + z(s, { size: "small", onClick: e.close }, { @@ -31860,7 +31867,7 @@ function gP(e, t, i, r, n, a) { ]), _: 1 }, 8, ["onClick"]), - W(s, { + z(s, { size: "small", type: "primary", onClick: e.save @@ -31872,26 +31879,26 @@ function gP(e, t, i, r, n, a) { }, 8, ["onClick"]) ]), _: 1 - })) : ke("", !0), - e.activeData ? (H(), he(A, { key: 1 }, { + })) : Te("", !0), + e.activeData ? (H(), me(A, { key: 1 }, { default: N(() => [ - (H(), he($, { + (H(), me(R, { modelValue: e.eventType, - "onUpdate:modelValue": t[7] || (t[7] = (F) => e.eventType = F), + "onUpdate:modelValue": t[7] || (t[7] = (C) => e.eventType = C), class: "_fc-tabs", key: e.activeData.key }, { default: N(() => [ - W(E, { + z(E, { label: e.t("props.custom"), name: "fn", lazy: "" }, { default: N(() => [ - W(w, { + z(w, { ref: "fn", modelValue: e.eventStr, - "onUpdate:modelValue": t[4] || (t[4] = (F) => e.eventStr = F), + "onUpdate:modelValue": t[4] || (t[4] = (C) => e.eventStr = C), body: "", name: e.activeData.name, args: e.fnArgs, @@ -31900,33 +31907,33 @@ function gP(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(E, { + z(E, { label: e.t("form.globalEvent"), name: "event" }, { default: N(() => [ - X("div", uP, [ - W(k, { + J("div", uP, [ + z(k, { modelValue: e.eventKey, - "onUpdate:modelValue": t[5] || (t[5] = (F) => e.eventKey = F), + "onUpdate:modelValue": t[5] || (t[5] = (C) => e.eventKey = C), clearable: "", filterable: "", style: { width: "240px", "margin-left": "15px" } }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.options, (F) => (H(), he(x, { - key: F.value, - label: F.label, - value: F.value + (H(!0), ae(Me, null, ze(e.options, (C) => (H(), me(x, { + key: C.value, + label: C.label, + value: C.value }, null, 8, ["label", "value"]))), 128)) ]), _: 1 }, 8, ["modelValue"]), - X("span", { + J("span", { class: "_fc-manage-text", - onClick: t[6] || (t[6] = (...F) => e.openConfig && e.openConfig(...F)) + onClick: t[6] || (t[6] = (...C) => e.openConfig && e.openConfig(...C)) }, t[18] || (t[18] = [ - X("i", { class: "fc-icon icon-setting" }, null, -1) + J("i", { class: "fc-icon icon-setting" }, null, -1) ])) ]) ]), @@ -31937,31 +31944,31 @@ function gP(e, t, i, r, n, a) { }, 8, ["modelValue"])) ]), _: 1 - })) : ke("", !0), - e.activeBehavior ? (H(), he(A, { + })) : Te("", !0), + e.activeBehavior ? (H(), me(A, { key: 2, class: "is-behavior" }, { default: N(() => [ - W(m, { + z(m, { width: "220px", class: "_fd-event-behavior-list" }, { default: N(() => [ - X("div", dP, le(e.t("behavior.props.execute")), 1), - W(B, { + J("div", dP, le(e.t("behavior.props.execute")), 1), + z(B, { defaultActive: e.activeBehavior.method, onSelect: e.handleSelect }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.behaviorMenu, (F) => (H(), he(P, { - index: F.label + (H(!0), ae(Me, null, ze(e.behaviorMenu, (C) => (H(), me(P, { + index: C.label }, { title: N(() => [ - X("span", null, le(e.t("props." + F.label)), 1) + J("span", null, le(e.t("props." + C.label)), 1) ]), default: N(() => [ - (H(!0), ae(Me, null, We(F.children, (q) => (H(), he(M, { + (H(!0), ae(Me, null, ze(C.children, (q) => (H(), me(M, { key: q.value, index: q.value }, { @@ -31979,59 +31986,59 @@ function gP(e, t, i, r, n, a) { ]), _: 1 }), - W(A, { class: "_fd-event-behavior-con" }, { + z(A, { class: "_fd-event-behavior-con" }, { default: N(() => [ - X("div", fP, [ + J("div", fP, [ be(le(e.t("behavior.props.info")) + " ", 1), - X("div", null, le(e.t("behavior." + e.activeBehavior.method + ".info") || e.t("behavior." + e.activeBehavior.method + ".name")), 1) + J("div", null, le(e.t("behavior." + e.activeBehavior.method + ".info") || e.t("behavior." + e.activeBehavior.method + ".name")), 1) ]), - e.form.rule && e.form.rule.length ? (H(), ae("div", cP, le(e.t("designer.rule")), 1)) : ke("", !0), - e.form.rule && e.form.rule.length ? (H(), he(D, { + e.form.rule && e.form.rule.length ? (H(), ae("div", cP, le(e.t("designer.rule")), 1)) : Te("", !0), + e.form.rule && e.form.rule.length ? (H(), me(D, { key: 1, rule: e.form.rule, option: e.form.options, modelValue: e.form.formData, - "onUpdate:modelValue": t[8] || (t[8] = (F) => e.form.formData = F), + "onUpdate:modelValue": t[8] || (t[8] = (C) => e.form.formData = C), api: e.form.api, - "onUpdate:api": t[9] || (t[9] = (F) => e.form.api = F) + "onUpdate:api": t[9] || (t[9] = (C) => e.form.api = C) }, { - title: N((F) => [ - F.rule.warning ? (H(), he(T, { + title: N((C) => [ + C.rule.warning ? (H(), me(T, { key: 0, - tooltip: F.rule.warning + tooltip: C.rule.warning }, { default: N(() => [ - be(le(F.rule.title), 1) + be(le(C.rule.title), 1) ]), _: 2 }, 1032, ["tooltip"])) : (H(), ae(Me, { key: 1 }, [ - be(le(F.rule.title), 1) + be(le(C.rule.title), 1) ], 64)) ]), _: 1 - }, 8, ["rule", "option", "modelValue", "api"])) : ke("", !0), - X("div", pP, le(e.t("designer.advanced")), 1), - W(z, { + }, 8, ["rule", "option", "modelValue", "api"])) : Te("", !0), + J("div", pP, le(e.t("designer.advanced")), 1), + z(U, { size: "small", labelWidth: "auto" }, { default: N(() => [ - W(G, { + z(G, { label: e.t("behavior.props.ignoreError") }, { default: N(() => [ - W(K, { + z(W, { modelValue: e.activeBehavior.ignoreError, - "onUpdate:modelValue": t[10] || (t[10] = (F) => e.activeBehavior.ignoreError = F) + "onUpdate:modelValue": t[10] || (t[10] = (C) => e.activeBehavior.ignoreError = C) }, { default: N(() => [ - W(V, { value: !0 }, { + z(V, { value: !0 }, { default: N(() => [ be(le(e.t("behavior.props.continue")), 1) ]), _: 1 }), - W(V, { value: !1 }, { + z(V, { value: !1 }, { default: N(() => [ be(le(e.t("behavior.props.stop")), 1) ]), @@ -32040,37 +32047,37 @@ function gP(e, t, i, r, n, a) { ]), _: 1 }, 8, ["modelValue"]), - X("div", hP, le(e.t("warning.behaviorIgnoreError")), 1) + J("div", hP, le(e.t("warning.behaviorIgnoreError")), 1) ]), _: 1 }, 8, ["label"]), - W(G, { + z(G, { label: e.t("behavior.props.expression") }, { default: N(() => [ - W(R, { + z(I, { modelValue: e.activeBehavior.expression, - "onUpdate:modelValue": t[11] || (t[11] = (F) => e.activeBehavior.expression = F), + "onUpdate:modelValue": t[11] || (t[11] = (C) => e.activeBehavior.expression = C), title: e.t("behavior.props.setFormula"), invertLabel: e.t("behavior.props.break"), validLabel: e.t("behavior.props.continue") }, null, 8, ["modelValue", "title", "invertLabel", "validLabel"]), - X("div", mP, le(e.t("warning.behaviorExpression")), 1) + J("div", mP, le(e.t("warning.behaviorExpression")), 1) ]), _: 1 }, 8, ["label"]), - W(G, { + z(G, { label: e.t("behavior.props.stopPropagation") }, { default: N(() => [ - W(R, { + z(I, { modelValue: e.activeBehavior.stopPropagation, - "onUpdate:modelValue": t[12] || (t[12] = (F) => e.activeBehavior.stopPropagation = F), + "onUpdate:modelValue": t[12] || (t[12] = (C) => e.activeBehavior.stopPropagation = C), title: e.t("behavior.props.setFormula"), invertLabel: e.t("behavior.props.continue"), validLabel: e.t("behavior.props.stop") }, null, 8, ["modelValue", "title", "invertLabel", "validLabel"]), - X("div", vP, le(e.t("warning.behaviorStopPropagation")), 1) + J("div", vP, le(e.t("warning.behaviorStopPropagation")), 1) ]), _: 1 }, 8, ["label"]) @@ -32082,7 +32089,7 @@ function gP(e, t, i, r, n, a) { }) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ]), _: 1 }) @@ -32097,7 +32104,7 @@ function gP(e, t, i, r, n, a) { }, 8, ["title", "modelValue"]) ]); } -const q0 = /* @__PURE__ */ je(zF, [["render", gP]]), eb = Ve({ +const q0 = /* @__PURE__ */ Ve(zF, [["render", gP]]), eb = Be({ name: "VNode", props: { fn: Function @@ -32577,192 +32584,192 @@ const Vf = nb, fg = kr, cg = Symbol("nomatch"), lb = (e) => { return u.noHighlightRe.test(E); } function p(E, x, k) { - let $ = "", M = ""; - typeof x == "object" ? ($ = E, k = x.ignoreIllegals, M = x.language) : (Fo("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Fo("10.7.0", `Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`), M = E, $ = x), k === void 0 && (k = !0); - const P = { code: $, language: M }; + let R = "", M = ""; + typeof x == "object" ? (R = E, k = x.ignoreIllegals, M = x.language) : (Fo("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Fo("10.7.0", `Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`), M = E, R = x), k === void 0 && (k = !0); + const P = { code: R, language: M }; w("before:highlight", P); const B = P.result ? P.result : h(P.language, P.code, k); return B.code = P.code, w("after:highlight", B), B; } - function h(E, x, k, $) { + function h(E, x, k, R) { const M = /* @__PURE__ */ Object.create(null); function P() { if (!Y.keywords) - return ve.addText(pe); - let ce = 0; + return te.addText(pe); + let he = 0; Y.keywordPatternRe.lastIndex = 0; - let Se = Y.keywordPatternRe.exec(pe), I = ""; + let Se = Y.keywordPatternRe.exec(pe), xe = ""; for (; Se; ) { - I += pe.substring(ce, Se.index); - const ee = F.case_insensitive ? Se[0].toLowerCase() : Se[0], te = (j = ee, Y.keywords[j]); - if (te) { - const [se, oe] = te; - if (ve.addText(I), I = "", M[ee] = (M[ee] || 0) + 1, M[ee] <= 7 && (Te += oe), se.startsWith("_")) - I += Se[0]; + xe += pe.substring(he, Se.index); + const K = C.case_insensitive ? Se[0].toLowerCase() : Se[0], X = ($ = K, Y.keywords[$]); + if (X) { + const [ie, re] = X; + if (te.addText(xe), xe = "", M[K] = (M[K] || 0) + 1, M[K] <= 7 && (ke += re), ie.startsWith("_")) + xe += Se[0]; else { - const _e = F.classNameAliases[se] || se; - T(Se[0], _e); + const fe = C.classNameAliases[ie] || ie; + T(Se[0], fe); } } else - I += Se[0]; - ce = Y.keywordPatternRe.lastIndex, Se = Y.keywordPatternRe.exec(pe); + xe += Se[0]; + he = Y.keywordPatternRe.lastIndex, Se = Y.keywordPatternRe.exec(pe); } - var j; - I += pe.substring(ce), ve.addText(I); + var $; + xe += pe.substring(he), te.addText(xe); } function B() { Y.subLanguage != null ? (() => { if (pe === "") return; - let ce = null; + let he = null; if (typeof Y.subLanguage == "string") { if (!t[Y.subLanguage]) - return ve.addText(pe); - ce = h(Y.subLanguage, pe, !0, J[Y.subLanguage]), J[Y.subLanguage] = ce._top; + return te.addText(pe); + he = h(Y.subLanguage, pe, !0, ue[Y.subLanguage]), ue[Y.subLanguage] = he._top; } else - ce = g(pe, Y.subLanguage.length ? Y.subLanguage : null); - Y.relevance > 0 && (Te += ce.relevance), ve.__addSublanguage(ce._emitter, ce.language); + he = g(pe, Y.subLanguage.length ? Y.subLanguage : null); + Y.relevance > 0 && (ke += he.relevance), te.__addSublanguage(he._emitter, he.language); })() : P(), pe = ""; } - function T(ce, Se) { - ce !== "" && (ve.startScope(Se), ve.addText(ce), ve.endScope()); + function T(he, Se) { + he !== "" && (te.startScope(Se), te.addText(he), te.endScope()); } - function D(ce, Se) { - let I = 1; - const j = Se.length - 1; - for (; I <= j; ) { - if (!ce._emit[I]) { - I++; + function D(he, Se) { + let xe = 1; + const $ = Se.length - 1; + for (; xe <= $; ) { + if (!he._emit[xe]) { + xe++; continue; } - const ee = F.classNameAliases[ce[I]] || ce[I], te = Se[I]; - ee ? T(te, ee) : (pe = te, P(), pe = ""), I++; + const K = C.classNameAliases[he[xe]] || he[xe], X = Se[xe]; + K ? T(X, K) : (pe = X, P(), pe = ""), xe++; } } - function V(ce, Se) { - return ce.scope && typeof ce.scope == "string" && ve.openNode(F.classNameAliases[ce.scope] || ce.scope), ce.beginScope && (ce.beginScope._wrap ? (T(pe, F.classNameAliases[ce.beginScope._wrap] || ce.beginScope._wrap), pe = "") : ce.beginScope._multi && (D(ce.beginScope, Se), pe = "")), Y = Object.create(ce, { parent: { + function V(he, Se) { + return he.scope && typeof he.scope == "string" && te.openNode(C.classNameAliases[he.scope] || he.scope), he.beginScope && (he.beginScope._wrap ? (T(pe, C.classNameAliases[he.beginScope._wrap] || he.beginScope._wrap), pe = "") : he.beginScope._multi && (D(he.beginScope, Se), pe = "")), Y = Object.create(he, { parent: { value: Y } }), Y; } - function K(ce, Se, I) { - let j = ((ee, te) => { - const se = ee && ee.exec(te); - return se && se.index === 0; - })(ce.endRe, I); - if (j) { - if (ce["on:end"]) { - const ee = new tg(ce); - ce["on:end"](Se, ee), ee.isMatchIgnored && (j = !1); + function W(he, Se, xe) { + let $ = ((K, X) => { + const ie = K && K.exec(X); + return ie && ie.index === 0; + })(he.endRe, xe); + if ($) { + if (he["on:end"]) { + const K = new tg(he); + he["on:end"](Se, K), K.isMatchIgnored && ($ = !1); } - if (j) { - for (; ce.endsParent && ce.parent; ) - ce = ce.parent; - return ce; + if ($) { + for (; he.endsParent && he.parent; ) + he = he.parent; + return he; } } - if (ce.endsWithParent) - return K(ce.parent, Se, I); + if (he.endsWithParent) + return W(he.parent, Se, xe); } - function G(ce) { - return Y.matcher.regexIndex === 0 ? (pe += ce[0], 1) : (we = !0, 0); + function G(he) { + return Y.matcher.regexIndex === 0 ? (pe += he[0], 1) : (we = !0, 0); } - function R(ce) { - const Se = ce[0], I = x.substring(ce.index), j = K(Y, ce, I); - if (!j) + function I(he) { + const Se = he[0], xe = x.substring(he.index), $ = W(Y, he, xe); + if (!$) return cg; - const ee = Y; - Y.endScope && Y.endScope._wrap ? (B(), T(Se, Y.endScope._wrap)) : Y.endScope && Y.endScope._multi ? (B(), D(Y.endScope, ce)) : ee.skip ? pe += Se : (ee.returnEnd || ee.excludeEnd || (pe += Se), B(), ee.excludeEnd && (pe = Se)); + const K = Y; + Y.endScope && Y.endScope._wrap ? (B(), T(Se, Y.endScope._wrap)) : Y.endScope && Y.endScope._multi ? (B(), D(Y.endScope, he)) : K.skip ? pe += Se : (K.returnEnd || K.excludeEnd || (pe += Se), B(), K.excludeEnd && (pe = Se)); do - Y.scope && ve.closeNode(), Y.skip || Y.subLanguage || (Te += Y.relevance), Y = Y.parent; - while (Y !== j.parent); - return j.starts && V(j.starts, ce), ee.returnEnd ? 0 : Se.length; + Y.scope && te.closeNode(), Y.skip || Y.subLanguage || (ke += Y.relevance), Y = Y.parent; + while (Y !== $.parent); + return $.starts && V($.starts, he), K.returnEnd ? 0 : Se.length; } - let z = {}; - function C(ce, Se) { - const I = Se && Se[0]; - if (pe += ce, I == null) + let U = {}; + function F(he, Se) { + const xe = Se && Se[0]; + if (pe += he, xe == null) return B(), 0; - if (z.type === "begin" && Se.type === "end" && z.index === Se.index && I === "") { + if (U.type === "begin" && Se.type === "end" && U.index === Se.index && xe === "") { if (pe += x.slice(Se.index, Se.index + 1), !n) { - const j = Error(`0 width match regex (${E})`); - throw j.languageName = E, j.badRule = z.rule, j; + const $ = Error(`0 width match regex (${E})`); + throw $.languageName = E, $.badRule = U.rule, $; } return 1; } - if (z = Se, Se.type === "begin") - return ((j) => { - const ee = j[0], te = j.rule, se = new tg(te), oe = [te.__beforeBegin, te["on:begin"]]; - for (const _e of oe) - if (_e && (_e(j, se), se.isMatchIgnored)) - return G(ee); - return te.skip ? pe += ee : (te.excludeBegin && (pe += ee), B(), te.returnBegin || te.excludeBegin || (pe = ee)), V(te, j), te.returnBegin ? 0 : ee.length; + if (U = Se, Se.type === "begin") + return (($) => { + const K = $[0], X = $.rule, ie = new tg(X), re = [X.__beforeBegin, X["on:begin"]]; + for (const fe of re) + if (fe && (fe($, ie), ie.isMatchIgnored)) + return G(K); + return X.skip ? pe += K : (X.excludeBegin && (pe += K), B(), X.returnBegin || X.excludeBegin || (pe = K)), V(X, $), X.returnBegin ? 0 : K.length; })(Se); if (Se.type === "illegal" && !k) { - const j = Error('Illegal lexeme "' + I + '" for mode "' + (Y.scope || "") + '"'); - throw j.mode = Y, j; + const $ = Error('Illegal lexeme "' + xe + '" for mode "' + (Y.scope || "") + '"'); + throw $.mode = Y, $; } if (Se.type === "end") { - const j = R(Se); - if (j !== cg) - return j; + const $ = I(Se); + if ($ !== cg) + return $; } - if (Se.type === "illegal" && I === "") + if (Se.type === "illegal" && xe === "") return 1; - if (me > 1e5 && me > 3 * Se.index) + if (ve > 1e5 && ve > 3 * Se.index) throw Error("potential infinite loop, way more iterations than matches"); - return pe += I, I.length; + return pe += xe, xe.length; } - const F = A(E); - if (!F) + const C = A(E); + if (!C) throw Wr(a.replace("{}", E)), Error('Unknown language: "' + E + '"'); - const q = BP(F); - let Z = "", Y = $ || q; - const J = {}, ve = new u.__emitter(u); + const q = BP(C); + let Z = "", Y = R || q; + const ue = {}, te = new u.__emitter(u); (() => { - const ce = []; - for (let Se = Y; Se !== F; Se = Se.parent) - Se.scope && ce.unshift(Se.scope); - ce.forEach((Se) => ve.openNode(Se)); + const he = []; + for (let Se = Y; Se !== C; Se = Se.parent) + Se.scope && he.unshift(Se.scope); + he.forEach((Se) => te.openNode(Se)); })(); - let pe = "", Te = 0, ge = 0, me = 0, we = !1; + let pe = "", ke = 0, ge = 0, ve = 0, we = !1; try { - if (F.__emitTokens) - F.__emitTokens(x, ve); + if (C.__emitTokens) + C.__emitTokens(x, te); else { for (Y.matcher.considerAll(); ; ) { - me++, we ? we = !1 : Y.matcher.considerAll(), Y.matcher.lastIndex = ge; - const ce = Y.matcher.exec(x); - if (!ce) + ve++, we ? we = !1 : Y.matcher.considerAll(), Y.matcher.lastIndex = ge; + const he = Y.matcher.exec(x); + if (!he) break; - const Se = C(x.substring(ge, ce.index), ce); - ge = ce.index + Se; + const Se = F(x.substring(ge, he.index), he); + ge = he.index + Se; } - C(x.substring(ge)); + F(x.substring(ge)); } - return ve.finalize(), Z = ve.toHTML(), { + return te.finalize(), Z = te.toHTML(), { language: E, value: Z, - relevance: Te, + relevance: ke, illegal: !1, - _emitter: ve, + _emitter: te, _top: Y }; - } catch (ce) { - if (ce.message && ce.message.includes("Illegal")) + } catch (he) { + if (he.message && he.message.includes("Illegal")) return { language: E, value: Vf(x), illegal: !0, relevance: 0, _illegalBy: { - message: ce.message, + message: he.message, index: ge, context: x.slice(ge - 100, ge + 100), - mode: ce.mode, + mode: he.mode, resultSoFar: Z }, - _emitter: ve + _emitter: te }; if (n) return { @@ -32770,11 +32777,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = E, $ = x), k === value: Vf(x), illegal: !1, relevance: 0, - errorRaised: ce, - _emitter: ve, + errorRaised: he, + _emitter: te, _top: Y }; - throw ce; + throw he; } } function g(E, x) { @@ -32782,9 +32789,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = E, $ = x), k === const k = ((D) => { const V = { value: Vf(D), illegal: !1, relevance: 0, _top: s, _emitter: new u.__emitter(u) }; return V._emitter.addText(D), V; - })(E), $ = x.filter(A).filter(m).map((D) => h(D, E, !1)); - $.unshift(k); - const M = $.sort((D, V) => { + })(E), R = x.filter(A).filter(m).map((D) => h(D, E, !1)); + R.unshift(k); + const M = R.sort((D, V) => { if (D.relevance !== V.relevance) return V.relevance - D.relevance; if (D.language && V.language) { @@ -32819,7 +32826,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = E, $ = x), k === if (E.children.length > 0 && (u.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(E)), u.throwUnescapedHTML)) throw new VP("One of your code blocks includes unescaped HTML.", E.innerHTML); x = E; - const $ = x.textContent, M = k ? p($, { language: k, ignoreIllegals: !0 }) : g($); + const R = x.textContent, M = k ? p(R, { language: k, ignoreIllegals: !0 }) : g(R); E.innerHTML = M.value, E.dataset.highlighted = "yes", ((P, B, T) => { const D = B && i[B] || T; P.classList.add("hljs"), P.classList.add("language-" + D); @@ -32830,7 +32837,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = E, $ = x), k === }, M.secondBest && (E.secondBest = { language: M.secondBest.language, relevance: M.secondBest.relevance - }), w("after:highlightElement", { el: E, result: M, text: $ }); + }), w("after:highlightElement", { el: E, result: M, text: R }); } let S = !1; function b() { @@ -32850,8 +32857,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = E, $ = x), k === } function w(E, x) { const k = E; - r.forEach(($) => { - $[k] && $[k](x); + r.forEach((R) => { + R[k] && R[k](x); }); } typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", () => { @@ -32875,10 +32882,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), M = E, $ = x), k === let k = null; try { k = x(e); - } catch ($) { + } catch (R) { if (Wr("Language definition for '{}' could not be registered.".replace("{}", E)), !n) - throw $; - Wr($), k = s; + throw R; + Wr(R), k = s; } k.name || (k.name = E), t[E] = k, k.rawDefinition = x.bind(null, e), k.aliases && y(k.aliases, { languageName: E @@ -33024,16 +33031,16 @@ var UP = (() => { begin: /<[A-Za-z0-9\\._:-]+/, end: /\/[A-Za-z0-9\\._:-]+>|\/>/, isTrulyOpeningTag: (Z, Y) => { - const J = Z[0].length + Z.index, ve = Z.input[J]; - if (ve === "<" || ve === ",") + const ue = Z[0].length + Z.index, te = Z.input[ue]; + if (te === "<" || te === ",") return void Y.ignoreMatch(); let pe; - ve === ">" && (((ge, { after: me }) => { + te === ">" && (((ge, { after: ve }) => { const we = " { begin: "`", end: "`", contains: [d.BACKSLASH_ESCAPE, m] - }, $ = { + }, R = { className: "comment", variants: [d.COMMENT(/\/\*\*(?!\/)/, "\\*/", { relevance: 0, @@ -33123,7 +33130,7 @@ var UP = (() => { keywords: _, contains: ["self"].concat(M) }); - const P = [].concat($, m.contains), B = P.concat([{ + const P = [].concat(R, m.contains), B = P.concat([{ begin: /\(/, end: /\)/, keywords: _, @@ -33147,7 +33154,7 @@ var UP = (() => { match: p.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/), className: "title.class", keywords: { _: [...r, ...n] } - }, K = { + }, W = { variants: [{ match: [/function/, /\s+/, h, /(?=\s*\()/] }, { match: [/function/, /\s*(?=\()/] }], @@ -33156,24 +33163,24 @@ var UP = (() => { contains: [T], illegal: /%/ }, G = { - match: p.concat(/\b/, (R = [...a, "super", "import"], p.concat("(?!", R.join("|"), ")")), h, p.lookahead(/\(/)), + match: p.concat(/\b/, (I = [...a, "super", "import"], p.concat("(?!", I.join("|"), ")")), h, p.lookahead(/\(/)), className: "title.function", relevance: 0 }; - var R; - const z = { + var I; + const U = { begin: p.concat(/\./, p.lookahead(p.concat(h, /(?![0-9A-Za-z$_(])/))), end: h, excludeBegin: !0, keywords: "prototype", className: "property", relevance: 0 - }, C = { + }, F = { match: [/get|set/, /\s+/, h, /(?=\()/], className: { 1: "keyword", 3: "title.function" }, contains: [{ begin: /\(\)/ }, T] - }, F = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + d.UNDERSCORE_IDENT_RE + ")\\s*=>", q = { - match: [/const|var|let/, /\s+/, h, /\s*/, /=\s*/, /(async\s*)?/, p.lookahead(F)], + }, C = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + d.UNDERSCORE_IDENT_RE + ")\\s*=>", q = { + match: [/const|var|let/, /\s+/, h, /\s*/, /=\s*/, /(async\s*)?/, p.lookahead(C)], keywords: "async", className: { 1: "keyword", 3: "title.function" }, contains: [T] @@ -33192,7 +33199,7 @@ var UP = (() => { className: "meta", relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ - }, d.APOS_STRING_MODE, d.QUOTE_STRING_MODE, w, E, x, k, $, { match: /\$\d+/ }, y, V, { + }, d.APOS_STRING_MODE, d.QUOTE_STRING_MODE, w, E, x, k, R, { match: /\$\d+/ }, y, V, { className: "attr", begin: h + p.lookahead(":"), relevance: 0 @@ -33200,9 +33207,9 @@ var UP = (() => { begin: "(" + d.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*", keywords: "return throw case", relevance: 0, - contains: [$, d.REGEXP_MODE, { + contains: [R, d.REGEXP_MODE, { className: "function", - begin: F, + begin: C, returnBegin: !0, end: "\\s*=>", contains: [{ @@ -33235,7 +33242,7 @@ var UP = (() => { skip: !0, contains: ["self"] }] }] - }, K, { + }, W, { beginKeywords: "while if switch catch for" }, { begin: "\\b(?!function)" + d.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", @@ -33245,7 +33252,7 @@ var UP = (() => { begin: h, className: "title.function" })] - }, { match: /\.\.\./, relevance: 0 }, z, { + }, { match: /\.\.\./, relevance: 0 }, U, { match: "\\$" + h, relevance: 0 }, { @@ -33256,11 +33263,11 @@ var UP = (() => { relevance: 0, match: /\b[A-Z][A-Z_0-9]+\b/, className: "variable.constant" - }, D, C, { match: /\$[(.]/ }] + }, D, F, { match: /\$[(.]/ }] }; }; })(); -const HP = Ve({ +const HP = Be({ name: "ConfigItem", components: { Warning: ki }, props: { @@ -33287,34 +33294,34 @@ const HP = Ve({ class: "_fd-ci-info" }; function YP(e, t, i, r, n, a) { - const s = ne("Warning"); + const s = ee("Warning"); return H(), ae("div", zP, [ - X("div", WP, [ - X("div", { - class: Xe(["_fd-ci-label", e.$slots.append && e.arrow !== !1 ? "is-arrow" : ""]), + J("div", WP, [ + J("div", { + class: qe(["_fd-ci-label", e.$slots.append && e.arrow !== !1 ? "is-arrow" : ""]), onClick: t[0] || (t[0] = (u) => e.visit = e.$slots.append && e.arrow !== !1 && !e.visit) }, [ - e.warning ? (H(), he(s, { + e.warning ? (H(), me(s, { key: 0, tooltip: e.warning }, { default: N(() => [ kt(e.$slots, "label", {}, () => [ - X("span", null, le(e.label), 1) + J("span", null, le(e.label), 1) ]) ]), _: 3 }, 8, ["tooltip"])) : kt(e.$slots, "label", { key: 1 }, () => [ - X("span", null, le(e.label), 1) + J("span", null, le(e.label), 1) ]), e.$slots.append && e.arrow !== !1 ? (H(), ae("i", { key: 2, - class: Xe(["fc-icon icon-down", e.showAppend || e.visit ? "down" : ""]) - }, null, 2)) : ke("", !0) + class: qe(["fc-icon icon-down", e.showAppend || e.visit ? "down" : ""]) + }, null, 2)) : Te("", !0) ], 2), e.$slots.default || e.info ? (H(), ae("div", GP, [ e.$slots.default ? kt(e.$slots, "default", { key: 0 }) : (H(), ae("span", KP, le(e.info), 1)) - ])) : ke("", !0) + ])) : Te("", !0) ]), e.showAppend || e.visit ? (H(), ae("div", { key: 0, @@ -33322,11 +33329,11 @@ function YP(e, t, i, r, n, a) { style: wn("background:" + e.appendBackground) }, [ kt(e.$slots, "append") - ], 4)) : ke("", !0) + ], 4)) : Te("", !0) ]); } -const si = /* @__PURE__ */ je(HP, [["render", YP]]); -const QP = Ve({ +const si = /* @__PURE__ */ Ve(HP, [["render", YP]]); +const QP = Be({ name: "PageInput", inject: ["designer"], emits: ["add", "delete", "change"], @@ -33370,49 +33377,49 @@ const QP = Ve({ class: "_fd-page-btns" }, i3 = ["onClick"], r3 = ["onClick"]; function o3(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-dropdown-item"), d = ne("el-dropdown-menu"), p = ne("el-dropdown"); + const s = ee("el-button"), u = ee("el-dropdown-item"), d = ee("el-dropdown-menu"), p = ee("el-dropdown"); return H(), ae("div", JP, [ - (H(!0), ae(Me, null, We(e.pageData, (h, g) => (H(), ae("div", { + (H(!0), ae(Me, null, ze(e.pageData, (h, g) => (H(), ae("div", { key: h.main ? h.main.name : "", - class: Xe(["_fd-page-item", { active: h === e.activePage }]), + class: qe(["_fd-page-item", { active: h === e.activePage }]), onClick: (_) => e.$emit("change", g) }, [ - X("div", null, [ - X("div", ZP, [ - X("span", null, le(e.getPageLabel(h)), 1), - h === e.activePage ? (H(), ae("i", qP)) : ke("", !0) + J("div", null, [ + J("div", ZP, [ + J("span", null, le(e.getPageLabel(h)), 1), + h === e.activePage ? (H(), ae("i", qP)) : Te("", !0) ]), h.main ? (H(), ae("div", e3, [ be(" ID\uFF1A" + le(h.main.name) + " ", 1), - X("i", { + J("i", { onClick: vt((_) => e.copy(h.main.name), ["stop"]), class: "fc-icon icon-group" }, null, 8, t3) - ])) : ke("", !0) + ])) : Te("", !0) ]), - h.default ? ke("", !0) : (H(), ae("div", n3, [ - X("div", { + h.default ? Te("", !0) : (H(), ae("div", n3, [ + J("div", { class: "_fd-page-copy", onClick: vt((_) => e.$emit("copy", g), ["stop"]) }, t[0] || (t[0] = [ - X("i", { class: "fc-icon icon-copy" }, null, -1) + J("i", { class: "fc-icon icon-copy" }, null, -1) ]), 8, i3), - X("div", { + J("div", { class: "_fd-page-del", onClick: vt((_) => e.$emit("delete", g), ["stop"]) }, t[1] || (t[1] = [ - X("i", { class: "fc-icon icon-delete" }, null, -1) + J("i", { class: "fc-icon icon-delete" }, null, -1) ]), 8, r3) ])) ], 10, XP))), 128)), - W(p, { + z(p, { size: "default", trigger: "click" }, { dropdown: N(() => [ - W(d, null, { + z(d, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.containerList, (h) => (H(), he(u, { + (H(!0), ae(Me, null, ze(e.containerList, (h) => (H(), me(u, { key: h.name, onClick: (g) => e.$emit("add", h.name) }, { @@ -33426,13 +33433,13 @@ function o3(e, t, i, r, n, a) { }) ]), default: N(() => [ - W(s, { + z(s, { link: "", type: "primary" }, { default: N(() => [ be(le(e.t("designer.addPage")), 1), - t[2] || (t[2] = X("i", { class: "fc-icon icon-down" }, null, -1)) + t[2] || (t[2] = J("i", { class: "fc-icon icon-down" }, null, -1)) ]), _: 1 }) @@ -33441,7 +33448,7 @@ function o3(e, t, i, r, n, a) { }) ]); } -const a3 = /* @__PURE__ */ je(QP, [["render", o3]]); +const a3 = /* @__PURE__ */ Ve(QP, [["render", o3]]); function pg(e) { return Array.isArray(e) ? e : [null, void 0, ""].indexOf(e) > -1 ? [] : [e]; } @@ -33976,8 +33983,8 @@ function As() { return Po; Tg = 1; var e = Pp().InputScanner, t = tu().Tokenizer, i = tu().TOKEN, r = Mp().Directives, n = db(), a = Cu().Pattern, s = cb().TemplatablePattern; - function u($, M) { - return M.indexOf($) !== -1; + function u(R, M) { + return M.indexOf(R) !== -1; } var d = { START_EXPR: "TK_START_EXPR", @@ -34000,8 +34007,8 @@ function As() { EOF: i.EOF }, p = new r(/\/\*/, /\*\//), h = /0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/, g = /[0-9]/, _ = /[^\d\.]/, S = ">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "), b = ">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |"; b = b.replace(/[-[\]{}()*+?.,\\^$|#]/g, "\\$&"), b = "\\?\\.(?!\\d) " + b, b = b.replace(/ /g, "|"); - var A = new RegExp(b), y = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), m = y.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), w = new RegExp("^(?:" + m.join("|") + ")$"), E, x = function($, M) { - t.call(this, $, M), this._patterns.whitespace = this._patterns.whitespace.matching( + var A = new RegExp(b), y = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), m = y.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), w = new RegExp("^(?:" + m.join("|") + ")$"), E, x = function(R, M) { + t.call(this, R, M), this._patterns.whitespace = this._patterns.whitespace.matching( /\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source, /\u2028\u2029/.source ); @@ -34024,66 +34031,66 @@ function As() { template_expression: B.until(/[`}\\]/) }; }; - x.prototype = new t(), x.prototype._is_comment = function($) { - return $.type === d.COMMENT || $.type === d.BLOCK_COMMENT || $.type === d.UNKNOWN; - }, x.prototype._is_opening = function($) { - return $.type === d.START_BLOCK || $.type === d.START_EXPR; - }, x.prototype._is_closing = function($, M) { - return ($.type === d.END_BLOCK || $.type === d.END_EXPR) && M && ($.text === "]" && M.text === "[" || $.text === ")" && M.text === "(" || $.text === "}" && M.text === "{"); + x.prototype = new t(), x.prototype._is_comment = function(R) { + return R.type === d.COMMENT || R.type === d.BLOCK_COMMENT || R.type === d.UNKNOWN; + }, x.prototype._is_opening = function(R) { + return R.type === d.START_BLOCK || R.type === d.START_EXPR; + }, x.prototype._is_closing = function(R, M) { + return (R.type === d.END_BLOCK || R.type === d.END_EXPR) && M && (R.text === "]" && M.text === "[" || R.text === ")" && M.text === "(" || R.text === "}" && M.text === "{"); }, x.prototype._reset = function() { E = !1; - }, x.prototype._get_next_token = function($, M) { + }, x.prototype._get_next_token = function(R, M) { var P = null; this._readWhitespace(); var B = this._input.peek(); - return B === null ? this._create_token(d.EOF, "") : (P = P || this._read_non_javascript(B), P = P || this._read_string(B), P = P || this._read_pair(B, this._input.peek(1)), P = P || this._read_word($), P = P || this._read_singles(B), P = P || this._read_comment(B), P = P || this._read_regexp(B, $), P = P || this._read_xml(B, $), P = P || this._read_punctuation(), P = P || this._create_token(d.UNKNOWN, this._input.next()), P); - }, x.prototype._read_word = function($) { + return B === null ? this._create_token(d.EOF, "") : (P = P || this._read_non_javascript(B), P = P || this._read_string(B), P = P || this._read_pair(B, this._input.peek(1)), P = P || this._read_word(R), P = P || this._read_singles(B), P = P || this._read_comment(B), P = P || this._read_regexp(B, R), P = P || this._read_xml(B, R), P = P || this._read_punctuation(), P = P || this._create_token(d.UNKNOWN, this._input.next()), P); + }, x.prototype._read_word = function(R) { var M; if (M = this.__patterns.identifier.read(), M !== "") return M = M.replace(n.allLineBreaks, ` -`), !($.type === d.DOT || $.type === d.RESERVED && ($.text === "set" || $.text === "get")) && w.test(M) ? (M === "in" || M === "of") && ($.type === d.WORD || $.type === d.STRING) ? this._create_token(d.OPERATOR, M) : this._create_token(d.RESERVED, M) : this._create_token(d.WORD, M); +`), !(R.type === d.DOT || R.type === d.RESERVED && (R.text === "set" || R.text === "get")) && w.test(M) ? (M === "in" || M === "of") && (R.type === d.WORD || R.type === d.STRING) ? this._create_token(d.OPERATOR, M) : this._create_token(d.RESERVED, M) : this._create_token(d.WORD, M); if (M = this.__patterns.number.read(), M !== "") return this._create_token(d.WORD, M); - }, x.prototype._read_singles = function($) { + }, x.prototype._read_singles = function(R) { var M = null; - return $ === "(" || $ === "[" ? M = this._create_token(d.START_EXPR, $) : $ === ")" || $ === "]" ? M = this._create_token(d.END_EXPR, $) : $ === "{" ? M = this._create_token(d.START_BLOCK, $) : $ === "}" ? M = this._create_token(d.END_BLOCK, $) : $ === ";" ? M = this._create_token(d.SEMICOLON, $) : $ === "." && _.test(this._input.peek(1)) ? M = this._create_token(d.DOT, $) : $ === "," && (M = this._create_token(d.COMMA, $)), M && this._input.next(), M; - }, x.prototype._read_pair = function($, M) { + return R === "(" || R === "[" ? M = this._create_token(d.START_EXPR, R) : R === ")" || R === "]" ? M = this._create_token(d.END_EXPR, R) : R === "{" ? M = this._create_token(d.START_BLOCK, R) : R === "}" ? M = this._create_token(d.END_BLOCK, R) : R === ";" ? M = this._create_token(d.SEMICOLON, R) : R === "." && _.test(this._input.peek(1)) ? M = this._create_token(d.DOT, R) : R === "," && (M = this._create_token(d.COMMA, R)), M && this._input.next(), M; + }, x.prototype._read_pair = function(R, M) { var P = null; - return $ === "#" && M === "{" && (P = this._create_token(d.START_BLOCK, $ + M)), P && (this._input.next(), this._input.next()), P; + return R === "#" && M === "{" && (P = this._create_token(d.START_BLOCK, R + M)), P && (this._input.next(), this._input.next()), P; }, x.prototype._read_punctuation = function() { - var $ = this.__patterns.punct.read(); - if ($ !== "") - return $ === "=" ? this._create_token(d.EQUALS, $) : $ === "?." ? this._create_token(d.DOT, $) : this._create_token(d.OPERATOR, $); - }, x.prototype._read_non_javascript = function($) { + var R = this.__patterns.punct.read(); + if (R !== "") + return R === "=" ? this._create_token(d.EQUALS, R) : R === "?." ? this._create_token(d.DOT, R) : this._create_token(d.OPERATOR, R); + }, x.prototype._read_non_javascript = function(R) { var M = ""; - if ($ === "#") { + if (R === "#") { if (this._is_first_token() && (M = this.__patterns.shebang.read(), M)) return this._create_token(d.UNKNOWN, M.trim() + ` `); if (M = this.__patterns.include.read(), M) return this._create_token(d.UNKNOWN, M.trim() + ` `); - $ = this._input.next(); + R = this._input.next(); var P = "#"; if (this._input.hasNext() && this._input.testChar(g)) { do - $ = this._input.next(), P += $; - while (this._input.hasNext() && $ !== "#" && $ !== "="); - return $ === "#" || (this._input.peek() === "[" && this._input.peek(1) === "]" ? (P += "[]", this._input.next(), this._input.next()) : this._input.peek() === "{" && this._input.peek(1) === "}" && (P += "{}", this._input.next(), this._input.next())), this._create_token(d.WORD, P); + R = this._input.next(), P += R; + while (this._input.hasNext() && R !== "#" && R !== "="); + return R === "#" || (this._input.peek() === "[" && this._input.peek(1) === "]" ? (P += "[]", this._input.next(), this._input.next()) : this._input.peek() === "{" && this._input.peek(1) === "}" && (P += "{}", this._input.next(), this._input.next())), this._create_token(d.WORD, P); } this._input.back(); - } else if ($ === "<" && this._is_first_token()) { + } else if (R === "<" && this._is_first_token()) { if (M = this.__patterns.html_comment_start.read(), M) { for (; this._input.hasNext() && !this._input.testChar(n.newline); ) M += this._input.next(); return E = !0, this._create_token(d.COMMENT, M); } - } else if (E && $ === "-" && (M = this.__patterns.html_comment_end.read(), M)) + } else if (E && R === "-" && (M = this.__patterns.html_comment_end.read(), M)) return E = !1, this._create_token(d.COMMENT, M); return null; - }, x.prototype._read_comment = function($) { + }, x.prototype._read_comment = function(R) { var M = null; - if ($ === "/") { + if (R === "/") { var P = ""; if (this._input.peek(1) === "*") { P = this.__patterns.block_comment.read(); @@ -34094,15 +34101,15 @@ function As() { this._input.peek(1) === "/" && (P = this.__patterns.comment.read(), M = this._create_token(d.COMMENT, P)); } return M; - }, x.prototype._read_string = function($) { - if ($ === "`" || $ === "'" || $ === '"') { + }, x.prototype._read_string = function(R) { + if (R === "`" || R === "'" || R === '"') { var M = this._input.next(); - return this.has_char_escapes = !1, $ === "`" ? M += this._read_string_recursive("`", !0, "${") : M += this._read_string_recursive($), this.has_char_escapes && this._options.unescape_strings && (M = k(M)), this._input.peek() === $ && (M += this._input.next()), M = M.replace(n.allLineBreaks, ` + return this.has_char_escapes = !1, R === "`" ? M += this._read_string_recursive("`", !0, "${") : M += this._read_string_recursive(R), this.has_char_escapes && this._options.unescape_strings && (M = k(M)), this._input.peek() === R && (M += this._input.next()), M = M.replace(n.allLineBreaks, ` `), this._create_token(d.STRING, M); } return null; - }, x.prototype._allow_regexp_or_xml = function($) { - return $.type === d.RESERVED && u($.text, ["return", "case", "throw", "else", "do", "typeof", "yield"]) || $.type === d.END_EXPR && $.text === ")" && $.opened.previous.type === d.RESERVED && u($.opened.previous.text, ["if", "while", "for"]) || u($.type, [ + }, x.prototype._allow_regexp_or_xml = function(R) { + return R.type === d.RESERVED && u(R.text, ["return", "case", "throw", "else", "do", "typeof", "yield"]) || R.type === d.END_EXPR && R.text === ")" && R.opened.previous.type === d.RESERVED && u(R.opened.previous.text, ["if", "while", "for"]) || u(R.type, [ d.COMMENT, d.START_EXPR, d.START_BLOCK, @@ -34114,20 +34121,20 @@ function As() { d.SEMICOLON, d.COMMA ]); - }, x.prototype._read_regexp = function($, M) { - if ($ === "/" && this._allow_regexp_or_xml(M)) { - for (var P = this._input.next(), B = !1, T = !1; this._input.hasNext() && (B || T || this._input.peek() !== $) && !this._input.testChar(n.newline); ) + }, x.prototype._read_regexp = function(R, M) { + if (R === "/" && this._allow_regexp_or_xml(M)) { + for (var P = this._input.next(), B = !1, T = !1; this._input.hasNext() && (B || T || this._input.peek() !== R) && !this._input.testChar(n.newline); ) P += this._input.peek(), B ? B = !1 : (B = this._input.peek() === "\\", this._input.peek() === "[" ? T = !0 : this._input.peek() === "]" && (T = !1)), this._input.next(); - return this._input.peek() === $ && (P += this._input.next(), P += this._input.read(n.identifier)), this._create_token(d.STRING, P); + return this._input.peek() === R && (P += this._input.next(), P += this._input.read(n.identifier)), this._create_token(d.STRING, P); } return null; - }, x.prototype._read_xml = function($, M) { - if (this._options.e4x && $ === "<" && this._allow_regexp_or_xml(M)) { + }, x.prototype._read_xml = function(R, M) { + if (this._options.e4x && R === "<" && this._allow_regexp_or_xml(M)) { var P = "", B = this.__patterns.xml.read_match(); if (B) { for (var T = B[2].replace(/^{\s+/, "{").replace(/\s+}$/, "}"), D = T.indexOf("{") === 0, V = 0; B; ) { - var K = !!B[1], G = B[2], R = !!B[B.length - 1] || G.slice(0, 8) === "![CDATA["; - if (!R && (G === T || D && G.replace(/^{\s+/, "{").replace(/\s+}$/, "}")) && (K ? --V : ++V), P += B[0], V <= 0) + var W = !!B[1], G = B[2], I = !!B[B.length - 1] || G.slice(0, 8) === "![CDATA["; + if (!I && (G === T || D && G.replace(/^{\s+/, "{").replace(/\s+}$/, "}")) && (W ? --V : ++V), P += B[0], V <= 0) break; B = this.__patterns.xml.read_match(); } @@ -34137,8 +34144,8 @@ function As() { } return null; }; - function k($) { - for (var M = "", P = 0, B = new e($), T = null; B.hasNext(); ) + function k(R) { + for (var M = "", P = 0, B = new e(R), T = null; B.hasNext(); ) if (T = B.match(/([\s]|[^\\]|\\\\)+/g), T && (M += T[0]), B.peek() === "\\") { if (B.next(), B.peek() === "x") T = B.match(/x([0-9A-Fa-f]{2})/g); @@ -34149,21 +34156,21 @@ function As() { continue; } if (!T || (P = parseInt(T[1], 16), P > 126 && P <= 255 && T[0].indexOf("x") === 0)) - return $; + return R; P >= 0 && P < 32 || P > 1114111 ? M += "\\" + T[0] : P === 34 || P === 39 || P === 92 ? M += "\\" + String.fromCharCode(P) : M += String.fromCharCode(P); } return M; } - return x.prototype._read_string_recursive = function($, M, P) { + return x.prototype._read_string_recursive = function(R, M, P) { var B, T; - $ === "'" ? T = this.__patterns.single_quote : $ === '"' ? T = this.__patterns.double_quote : $ === "`" ? T = this.__patterns.template_text : $ === "}" && (T = this.__patterns.template_expression); + R === "'" ? T = this.__patterns.single_quote : R === '"' ? T = this.__patterns.double_quote : R === "`" ? T = this.__patterns.template_text : R === "}" && (T = this.__patterns.template_expression); for (var D = T.read(), V = ""; this._input.hasNext(); ) { - if (V = this._input.next(), V === $ || !M && n.newline.test(V)) { + if (V = this._input.next(), V === R || !M && n.newline.test(V)) { this._input.back(); break; } else V === "\\" && this._input.hasNext() ? (B = this._input.peek(), B === "x" || B === "u" ? this.has_char_escapes = !0 : B === "\r" && this._input.peek(1) === ` -` && this._input.next(), V += this._input.next()) : P && (P === "${" && V === "$" && this._input.peek() === "{" && (V += this._input.next()), P === V && ($ === "`" ? V += this._read_string_recursive("}", M, "`") : V += this._read_string_recursive("`", M, "${"), this._input.hasNext() && (V += this._input.next()))); +` && this._input.next(), V += this._input.next()) : P && (P === "${" && V === "$" && this._input.peek() === "{" && (V += this._input.next()), P === V && (R === "`" ? V += this._read_string_recursive("}", M, "`") : V += this._read_string_recursive("`", M, "${"), this._input.hasNext() && (V += this._input.next()))); V += T.read(), D += V; } return D; @@ -34219,16 +34226,16 @@ function u3() { function k(T) { return d(T, [m.Expression, m.ForInitializer, m.Conditional]); } - function $(T, D) { + function R(T, D) { for (var V = 0; V < T.length; V++) { - var K = T[V].trim(); - if (K.charAt(0) !== D) + var W = T[V].trim(); + if (W.charAt(0) !== D) return !1; } return !0; } function M(T, D) { - for (var V = 0, K = T.length, G; V < K; V++) + for (var V = 0, W = T.length, G; V < W; V++) if (G = T[V], G && G.indexOf(D) !== 0) return !1; return !0; @@ -34239,7 +34246,7 @@ function u3() { P.prototype.create_flags = function(T, D) { var V = 0; T && (V = T.indentation_level, !this._output.just_added_newline() && T.line_indent_level > V && (V = T.line_indent_level)); - var K = { + var W = { mode: D, parent: T, last_token: T ? T.last_token : new t(u.START_BLOCK, ""), @@ -34264,7 +34271,7 @@ function u3() { start_line_index: this._output.get_line_number(), ternary_depth: 0 }; - return K; + return W; }, P.prototype._reset = function(T) { var D = T.match(/^[\t ]*/)[0]; this._last_last_text = "", this._output = new e(this._options, D), this._output.raw = this._options.test_output_raw, this._flag_store = [], this.set_mode(m.BlockStatement); @@ -34276,30 +34283,30 @@ function u3() { var T, D = this._reset(this._source_text), V = this._options.eol; this._options.eol === "auto" && (V = ` `, D && i.lineBreak.test(D || "") && (V = D.match(i.lineBreak)[0])); - for (var K = this._tokens.next(); K; ) - this.handle_token(K), this._last_last_text = this._flags.last_token.text, this._flags.last_token = K, K = this._tokens.next(); + for (var W = this._tokens.next(); W; ) + this.handle_token(W), this._last_last_text = this._flags.last_token.text, this._flags.last_token = W, W = this._tokens.next(); return T = this._output.get_code(V), T; }, P.prototype.handle_token = function(T, D) { T.type === u.START_EXPR ? this.handle_start_expr(T) : T.type === u.END_EXPR ? this.handle_end_expr(T) : T.type === u.START_BLOCK ? this.handle_start_block(T) : T.type === u.END_BLOCK ? this.handle_end_block(T) : T.type === u.WORD ? this.handle_word(T) : T.type === u.RESERVED ? this.handle_word(T) : T.type === u.SEMICOLON ? this.handle_semicolon(T) : T.type === u.STRING ? this.handle_string(T) : T.type === u.EQUALS ? this.handle_equals(T) : T.type === u.OPERATOR ? this.handle_operator(T) : T.type === u.COMMA ? this.handle_comma(T) : T.type === u.BLOCK_COMMENT ? this.handle_block_comment(T, D) : T.type === u.COMMENT ? this.handle_comment(T, D) : T.type === u.DOT ? this.handle_dot(T) : T.type === u.EOF ? this.handle_eof(T) : T.type === u.UNKNOWN ? this.handle_unknown(T, D) : this.handle_unknown(T, D); }, P.prototype.handle_whitespace_and_comments = function(T, D) { - var V = T.newlines, K = this._options.keep_array_indentation && x(this._flags.mode); + var V = T.newlines, W = this._options.keep_array_indentation && x(this._flags.mode); if (T.comments_before) for (var G = T.comments_before.next(); G; ) this.handle_whitespace_and_comments(G, D), this.handle_token(G, D), G = T.comments_before.next(); - if (K) - for (var R = 0; R < V; R += 1) - this.print_newline(R > 0, D); + if (W) + for (var I = 0; I < V; I += 1) + this.print_newline(I > 0, D); else if (this._options.max_preserve_newlines && V > this._options.max_preserve_newlines && (V = this._options.max_preserve_newlines), this._options.preserve_newlines && V > 1) { this.print_newline(!1, D); - for (var z = 1; z < V; z += 1) + for (var U = 1; U < V; U += 1) this.print_newline(!0, D); } }; var B = ["async", "break", "continue", "return", "throw", "yield"]; return P.prototype.allow_wrap_or_preserved_newline = function(T, D) { if (D = D === void 0 ? !1 : D, !this._output.just_added_newline()) { - var V = this._options.preserve_newlines && T.newlines || D, K = d(this._flags.last_token.text, s) || d(T.text, s); - if (K) { + var V = this._options.preserve_newlines && T.newlines || D, W = d(this._flags.last_token.text, s) || d(T.text, s); + if (W) { var G = d(this._flags.last_token.text, s) && d(this._options.operator_position, y) || d(T.text, s); V = V && G; } @@ -34362,8 +34369,8 @@ function u3() { this._output.space_before_token = !1; var V = this._tokens.peek(-3); if (this._options.space_after_named_function && V) { - var K = this._tokens.peek(-4); - _(V, ["async", "function"]) || V.text === "*" && _(K, ["async", "function"]) ? this._output.space_before_token = !0 : this._flags.mode === m.ObjectLiteral ? (V.text === "{" || V.text === "," || V.text === "*" && (K.text === "{" || K.text === ",")) && (this._output.space_before_token = !0) : this._flags.parent && this._flags.parent.class_start_block && (this._output.space_before_token = !0); + var W = this._tokens.peek(-4); + _(V, ["async", "function"]) || V.text === "*" && _(W, ["async", "function"]) ? this._output.space_before_token = !0 : this._flags.mode === m.ObjectLiteral ? (V.text === "{" || V.text === "," || V.text === "*" && (W.text === "{" || W.text === ",")) && (this._output.space_before_token = !0) : this._flags.parent && this._flags.parent.class_start_block && (this._output.space_before_token = !0); } } else this.allow_wrap_or_preserved_newline(T); @@ -34381,18 +34388,18 @@ function u3() { this.handle_whitespace_and_comments(T); var D = this._tokens.peek(), V = this._tokens.peek(1); this._flags.last_word === "switch" && this._flags.last_token.type === u.END_EXPR ? (this.set_mode(m.BlockStatement), this._flags.in_case_statement = !0) : this._flags.case_body ? this.set_mode(m.BlockStatement) : V && (d(V.text, [":", ","]) && d(D.type, [u.STRING, u.WORD, u.RESERVED]) || d(D.text, ["get", "set", "..."]) && d(V.type, [u.WORD, u.RESERVED])) ? d(this._last_last_text, ["class", "interface"]) && !d(V.text, [":", ","]) ? this.set_mode(m.BlockStatement) : this.set_mode(m.ObjectLiteral) : this._flags.last_token.type === u.OPERATOR && this._flags.last_token.text === "=>" ? this.set_mode(m.BlockStatement) : d(this._flags.last_token.type, [u.EQUALS, u.START_EXPR, u.COMMA, u.OPERATOR]) || _(this._flags.last_token, ["return", "throw", "import", "default"]) ? this.set_mode(m.ObjectLiteral) : this.set_mode(m.BlockStatement), this._flags.last_token && _(this._flags.last_token.previous, ["class", "extends"]) && (this._flags.class_start_block = !0); - var K = !D.comments_before && D.text === "}", G = K && this._flags.last_word === "function" && this._flags.last_token.type === u.END_EXPR; + var W = !D.comments_before && D.text === "}", G = W && this._flags.last_word === "function" && this._flags.last_token.type === u.END_EXPR; if (this._options.brace_preserve_inline) { - var R = 0, z = null; + var I = 0, U = null; this._flags.inline_frame = !0; do - if (R += 1, z = this._tokens.peek(R - 1), z.newlines) { + if (I += 1, U = this._tokens.peek(I - 1), U.newlines) { this._flags.inline_frame = !1; break; } - while (z.type !== u.EOF && !(z.type === u.END_BLOCK && z.opened === T)); + while (U.type !== u.EOF && !(U.type === u.END_BLOCK && U.opened === T)); } - (this._options.brace_style === "expand" || this._options.brace_style === "none" && T.newlines) && !this._flags.inline_frame ? this._flags.last_token.type !== u.OPERATOR && (G || this._flags.last_token.type === u.EQUALS || _(this._flags.last_token, S) && this._flags.last_token.text !== "else") ? this._output.space_before_token = !0 : this.print_newline(!1, !0) : (x(this._previous_flags.mode) && (this._flags.last_token.type === u.START_EXPR || this._flags.last_token.type === u.COMMA) && ((this._flags.last_token.type === u.COMMA || this._options.space_in_paren) && (this._output.space_before_token = !0), (this._flags.last_token.type === u.COMMA || this._flags.last_token.type === u.START_EXPR && this._flags.inline_frame) && (this.allow_wrap_or_preserved_newline(T), this._previous_flags.multiline_frame = this._previous_flags.multiline_frame || this._flags.multiline_frame, this._flags.multiline_frame = !1)), this._flags.last_token.type !== u.OPERATOR && this._flags.last_token.type !== u.START_EXPR && (d(this._flags.last_token.type, [u.START_BLOCK, u.SEMICOLON]) && !this._flags.inline_frame ? this.print_newline() : this._output.space_before_token = !0)), this.print_token(T), this.indent(), !K && !(this._options.brace_preserve_inline && this._flags.inline_frame) && this.print_newline(); + (this._options.brace_style === "expand" || this._options.brace_style === "none" && T.newlines) && !this._flags.inline_frame ? this._flags.last_token.type !== u.OPERATOR && (G || this._flags.last_token.type === u.EQUALS || _(this._flags.last_token, S) && this._flags.last_token.text !== "else") ? this._output.space_before_token = !0 : this.print_newline(!1, !0) : (x(this._previous_flags.mode) && (this._flags.last_token.type === u.START_EXPR || this._flags.last_token.type === u.COMMA) && ((this._flags.last_token.type === u.COMMA || this._options.space_in_paren) && (this._output.space_before_token = !0), (this._flags.last_token.type === u.COMMA || this._flags.last_token.type === u.START_EXPR && this._flags.inline_frame) && (this.allow_wrap_or_preserved_newline(T), this._previous_flags.multiline_frame = this._previous_flags.multiline_frame || this._flags.multiline_frame, this._flags.multiline_frame = !1)), this._flags.last_token.type !== u.OPERATOR && this._flags.last_token.type !== u.START_EXPR && (d(this._flags.last_token.type, [u.START_BLOCK, u.SEMICOLON]) && !this._flags.inline_frame ? this.print_newline() : this._output.space_before_token = !0)), this.print_token(T), this.indent(), !W && !(this._options.brace_preserve_inline && this._flags.inline_frame) && this.print_newline(); }, P.prototype.handle_end_block = function(T) { for (this.handle_whitespace_and_comments(T); this._flags.mode === m.Statement; ) this.restore_mode(); @@ -34439,8 +34446,8 @@ function u3() { this.print_newline(); else { this._output.trim(!0); - var K = this._output.current_line; - K.last() !== "}" && this.print_newline(), this._output.space_before_token = !0; + var W = this._output.current_line; + W.last() !== "}" && this.print_newline(), this._output.space_before_token = !0; } else V === "NEWLINE" ? _(this._flags.last_token, S) ? this._output.space_before_token = !0 : this._flags.last_token.text === "declare" && _(T, ["var", "let", "const"]) ? this._output.space_before_token = !0 : this._flags.last_token.type !== u.END_EXPR ? (this._flags.last_token.type !== u.START_EXPR || !_(T, ["var", "let", "const"])) && this._flags.last_token.text !== ":" && (g(T, "if") && g(T.previous, "else") ? this._output.space_before_token = !0 : this.print_newline()) : _(T, a) && this._flags.last_token.text !== ")" && this.print_newline() : this._flags.multiline_frame && x(this._flags.mode) && this._flags.last_token.text === "," && this._last_last_text === "}" ? this.print_newline() : V === "SPACE" && (this._output.space_before_token = !0); @@ -34459,8 +34466,8 @@ function u3() { }, P.prototype.handle_operator = function(T) { var D = T.text === "*" && (_(this._flags.last_token, ["function", "yield"]) || d(this._flags.last_token.type, [u.START_BLOCK, u.COMMA, u.END_BLOCK, u.SEMICOLON])), V = d(T.text, ["-", "+"]) && (d(this._flags.last_token.type, [u.START_BLOCK, u.START_EXPR, u.EQUALS, u.OPERATOR]) || d(this._flags.last_token.text, a) || this._flags.last_token.text === ","); if (!this.start_of_statement(T)) { - var K = !D; - this.handle_whitespace_and_comments(T, K); + var W = !D; + this.handle_whitespace_and_comments(T, W); } if (T.text === "*" && this._flags.last_token.type === u.DOT) { this.print_token(T); @@ -34478,15 +34485,15 @@ function u3() { this.print_token(T), this._flags.in_case = !1, this._flags.case_body = !0, this._tokens.peek().type !== u.START_BLOCK ? (this.indent(), this.print_newline(), this._flags.case_block = !1) : (this._flags.case_block = !0, this._output.space_before_token = !0); return; } - var G = !0, R = !0, z = !1; - if (T.text === ":" ? this._flags.ternary_depth === 0 ? G = !1 : (this._flags.ternary_depth -= 1, z = !0) : T.text === "?" && (this._flags.ternary_depth += 1), !V && !D && this._options.preserve_newlines && d(T.text, s)) { - var C = T.text === ":", F = C && z, q = C && !z; + var G = !0, I = !0, U = !1; + if (T.text === ":" ? this._flags.ternary_depth === 0 ? G = !1 : (this._flags.ternary_depth -= 1, U = !0) : T.text === "?" && (this._flags.ternary_depth += 1), !V && !D && this._options.preserve_newlines && d(T.text, s)) { + var F = T.text === ":", C = F && U, q = F && !U; switch (this._options.operator_position) { case A.before_newline: - this._output.space_before_token = !q, this.print_token(T), (!C || F) && this.allow_wrap_or_preserved_newline(T), this._output.space_before_token = !0; + this._output.space_before_token = !q, this.print_token(T), (!F || C) && this.allow_wrap_or_preserved_newline(T), this._output.space_before_token = !0; return; case A.after_newline: - this._output.space_before_token = !0, !C || F ? this._tokens.peek().newlines ? this.print_newline(!1, !0) : this.allow_wrap_or_preserved_newline(T) : this._output.space_before_token = !1, this.print_token(T), this._output.space_before_token = !0; + this._output.space_before_token = !0, !F || C ? this._tokens.peek().newlines ? this.print_newline(!1, !0) : this.allow_wrap_or_preserved_newline(T) : this._output.space_before_token = !1, this.print_token(T), this._output.space_before_token = !0; return; case A.preserve_newline: q || this.allow_wrap_or_preserved_newline(T), G = !(this._output.just_added_newline() || q), this._output.space_before_token = G, this.print_token(T), this._output.space_before_token = !0; @@ -34496,17 +34503,17 @@ function u3() { if (D) { this.allow_wrap_or_preserved_newline(T), G = !1; var Z = this._tokens.peek(); - R = Z && d(Z.type, [u.WORD, u.RESERVED]); + I = Z && d(Z.type, [u.WORD, u.RESERVED]); } else if (T.text === "...") - this.allow_wrap_or_preserved_newline(T), G = this._flags.last_token.type === u.START_BLOCK, R = !1; + this.allow_wrap_or_preserved_newline(T), G = this._flags.last_token.type === u.START_BLOCK, I = !1; else if (d(T.text, ["--", "++", "!", "~"]) || V) { - if ((this._flags.last_token.type === u.COMMA || this._flags.last_token.type === u.START_EXPR) && this.allow_wrap_or_preserved_newline(T), G = !1, R = !1, T.newlines && (T.text === "--" || T.text === "++" || T.text === "~")) { + if ((this._flags.last_token.type === u.COMMA || this._flags.last_token.type === u.START_EXPR) && this.allow_wrap_or_preserved_newline(T), G = !1, I = !1, T.newlines && (T.text === "--" || T.text === "++" || T.text === "~")) { var Y = _(this._flags.last_token, S) && T.newlines; Y && (this._previous_flags.if_block || this._previous_flags.else_block) && this.restore_mode(), this.print_newline(Y, !0); } - this._flags.last_token.text === ";" && k(this._flags.mode) && (G = !0), this._flags.last_token.type === u.RESERVED ? G = !0 : this._flags.last_token.type === u.END_EXPR ? G = !(this._flags.last_token.text === "]" && (T.text === "--" || T.text === "++")) : this._flags.last_token.type === u.OPERATOR && (G = d(T.text, ["--", "-", "++", "+"]) && d(this._flags.last_token.text, ["--", "-", "++", "+"]), d(T.text, ["+", "-"]) && d(this._flags.last_token.text, ["--", "++"]) && (R = !0)), (this._flags.mode === m.BlockStatement && !this._flags.inline_frame || this._flags.mode === m.Statement) && (this._flags.last_token.text === "{" || this._flags.last_token.text === ";") && this.print_newline(); + this._flags.last_token.text === ";" && k(this._flags.mode) && (G = !0), this._flags.last_token.type === u.RESERVED ? G = !0 : this._flags.last_token.type === u.END_EXPR ? G = !(this._flags.last_token.text === "]" && (T.text === "--" || T.text === "++")) : this._flags.last_token.type === u.OPERATOR && (G = d(T.text, ["--", "-", "++", "+"]) && d(this._flags.last_token.text, ["--", "-", "++", "+"]), d(T.text, ["+", "-"]) && d(this._flags.last_token.text, ["--", "++"]) && (I = !0)), (this._flags.mode === m.BlockStatement && !this._flags.inline_frame || this._flags.mode === m.Statement) && (this._flags.last_token.text === "{" || this._flags.last_token.text === ";") && this.print_newline(); } - this._output.space_before_token = this._output.space_before_token || G, this.print_token(T), this._output.space_before_token = R; + this._output.space_before_token = this._output.space_before_token || G, this.print_token(T), this._output.space_before_token = I; }, P.prototype.handle_block_comment = function(T, D) { if (this._output.raw) { this._output.add_raw_token(T), T.directives && T.directives.preserve === "end" && (this._output.raw = this._options.test_output_raw); @@ -34522,10 +34529,10 @@ function u3() { } else this.print_block_commment(T, D); }, P.prototype.print_block_commment = function(T, D) { - var V = E(T.text), K, G = !1, R = !1, z = T.whitespace_before, C = z.length; + var V = E(T.text), W, G = !1, I = !1, U = T.whitespace_before, F = U.length; if (this.print_newline(!1, D), this.print_token_line_indentation(T), this._output.add_token(V[0]), this.print_newline(!1, D), V.length > 1) { - for (V = V.slice(1), G = $(V, "*"), R = M(V, z), G && (this._flags.alignment = 1), K = 0; K < V.length; K++) - G ? (this.print_token_line_indentation(T), this._output.add_token(p(V[K]))) : R && V[K] ? (this.print_token_line_indentation(T), this._output.add_token(V[K].substring(C))) : (this._output.current_line.set_indent(-1), this._output.add_token(V[K])), this.print_newline(!1, D); + for (V = V.slice(1), G = R(V, "*"), I = M(V, U), G && (this._flags.alignment = 1), W = 0; W < V.length; W++) + G ? (this.print_token_line_indentation(T), this._output.add_token(p(V[W]))) : I && V[W] ? (this.print_token_line_indentation(T), this._output.add_token(V[W].substring(F))) : (this._output.current_line.set_indent(-1), this._output.add_token(V[W])), this.print_newline(!1, D); this._flags.alignment = 0; } }, P.prototype.handle_comment = function(T, D) { @@ -34646,7 +34653,7 @@ function f3() { `); var b = _.match(/^[\t ]*/)[0]; this._output = new t(this._options, b), this._input = new i(_), this._indentLevel = 0, this._nestedLevel = 0, this._ch = null; - for (var A = 0, y = !1, m = !1, w = !1, E = !1, x = !1, k = this._ch, $ = !1, M, P, B; M = this._input.read(d), P = M !== "", B = k, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), k = this._ch, this._ch; ) + for (var A = 0, y = !1, m = !1, w = !1, E = !1, x = !1, k = this._ch, R = !1, M, P, B; M = this._input.read(d), P = M !== "", B = k, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), k = this._ch, this._ch; ) if (this._ch === "/" && this._input.peek() === "*") { this._output.add_new_line(), this._input.back(); var T = this._input.read(p), D = n.get_directives(T); @@ -34662,8 +34669,8 @@ function f3() { this.print_string(this._ch + this.eatString("}")); else { this.print_string(this._ch); - var K = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g); - K.match(/[ :]$/) && (K = this.eatString(": ").replace(/\s+$/, ""), this.print_string(K), this._output.space_before_token = !0), A === 0 && K.indexOf(":") !== -1 ? (m = !0, this.indent()) : K in this.NESTED_AT_RULE ? (this._nestedLevel += 1, K in this.CONDITIONAL_GROUP_RULE && (w = !0)) : A === 0 && !m && (E = !0); + var W = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g); + W.match(/[ :]$/) && (W = this.eatString(": ").replace(/\s+$/, ""), this.print_string(W), this._output.space_before_token = !0), A === 0 && W.indexOf(":") !== -1 ? (m = !0, this.indent()) : W in this.NESTED_AT_RULE ? (this._nestedLevel += 1, W in this.CONDITIONAL_GROUP_RULE && (w = !0)) : A === 0 && !m && (E = !0); } else if (this._ch === "#" && this._input.peek() === "{") this.preserveSingleSpace(P), this.print_string(this._ch + this.eatString("}")); @@ -34674,21 +34681,21 @@ function f3() { else if (this._ch === ":") { for (var G = 0; G < this.NON_SEMICOLON_NEWLINE_PROPERTY.length; G++) if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[G])) { - $ = !0; + R = !0; break; } (y || w) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !E && A === 0 ? (this.print_string(":"), m || (m = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":")); } else if (this._ch === '"' || this._ch === "'") { - var R = B === '"' || B === "'"; - this.preserveSingleSpace(R || P), this.print_string(this._ch + this.eatString(this._ch)), this.eatWhitespace(!0); + var I = B === '"' || B === "'"; + this.preserveSingleSpace(I || P), this.print_string(this._ch + this.eatString(this._ch)), this.eatWhitespace(!0); } else if (this._ch === ";") - $ = !1, A === 0 ? (m && (this.outdent(), m = !1), E = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0); + R = !1, A === 0 ? (m && (this.outdent(), m = !1), E = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0); else if (this._ch === "(") if (this._input.lookBack("url")) this.print_string(this._ch), this.eatWhitespace(), A++, this.indent(), this._ch = this._input.next(), this._ch === ")" || this._ch === '"' || this._ch === "'" ? this._input.back() : this._ch && (this.print_string(this._ch + this.eatString(")")), A && (A--, this.outdent())); else { - var z = !1; - this._input.lookBack("with") && (z = !0), this.preserveSingleSpace(P || z), this.print_string(this._ch), m && B === "$" && this._options.selector_separator_newline ? (this._output.add_new_line(), x = !0) : (this.eatWhitespace(), A++, this.indent()); + var U = !1; + this._input.lookBack("with") && (U = !0), this.preserveSingleSpace(P || U), this.print_string(this._ch), m && B === "$" && this._options.selector_separator_newline ? (this._output.add_new_line(), x = !0) : (this.eatWhitespace(), A++, this.indent()); } else if (this._ch === ")") A && (A--, this.outdent()), x && this._input.peek() === ";" && this._options.selector_separator_newline && (x = !1, this.outdent(), this._output.add_new_line()), this.print_string(this._ch); @@ -34705,12 +34712,12 @@ function f3() { else if (this._ch === "!" && !this._input.lookBack("\\")) this._output.space_before_token = !0, this.print_string(this._ch); else { - var C = B === '"' || B === "'"; - this.preserveSingleSpace(C || P), this.print_string(this._ch), !this._output.just_added_newline() && this._input.peek() === ` -` && $ && this._output.add_new_line(); + var F = B === '"' || B === "'"; + this.preserveSingleSpace(F || P), this.print_string(this._ch), !this._output.just_added_newline() && this._input.peek() === ` +` && R && this._output.add_new_line(); } - var F = this._output.get_code(S); - return F; + var C = this._output.get_code(S); + return C; }, Zf.Beautifier = g, Zf; } var Dg; @@ -35057,10 +35064,10 @@ function p3() { var w = y.match(/^[\t ]*/)[0], E = { text: "", type: "" - }, x = new S(this._options), k = new s(this._options, w), $ = new i(y, this._options).tokenize(); + }, x = new S(this._options), k = new s(this._options, w), R = new i(y, this._options).tokenize(); this._tag_stack = new g(k); - for (var M = null, P = $.next(); P.type !== r.EOF; ) - P.type === r.TAG_OPEN || P.type === r.COMMENT ? (M = this._handle_tag_open(k, P, x, E, $), x = M) : P.type === r.ATTRIBUTE || P.type === r.EQUALS || P.type === r.VALUE || P.type === r.TEXT && !x.tag_complete ? M = this._handle_inside_tag(k, P, x, E) : P.type === r.TAG_CLOSE ? M = this._handle_tag_close(k, P, x) : P.type === r.TEXT ? M = this._handle_text(k, P, x) : P.type === r.CONTROL_FLOW_OPEN ? M = this._handle_control_flow_open(k, P) : P.type === r.CONTROL_FLOW_CLOSE ? M = this._handle_control_flow_close(k, P) : k.add_raw_token(P), E = M, P = $.next(); + for (var M = null, P = R.next(); P.type !== r.EOF; ) + P.type === r.TAG_OPEN || P.type === r.COMMENT ? (M = this._handle_tag_open(k, P, x, E, R), x = M) : P.type === r.ATTRIBUTE || P.type === r.EQUALS || P.type === r.VALUE || P.type === r.TEXT && !x.tag_complete ? M = this._handle_inside_tag(k, P, x, E) : P.type === r.TAG_CLOSE ? M = this._handle_tag_close(k, P, x) : P.type === r.TEXT ? M = this._handle_text(k, P, x) : P.type === r.CONTROL_FLOW_OPEN ? M = this._handle_control_flow_open(k, P) : P.type === r.CONTROL_FLOW_CLOSE ? M = this._handle_control_flow_close(k, P) : k.add_raw_token(P), E = M, P = R.next(); var B = k._output.get_code(m); return B; }, _.prototype._handle_control_flow_open = function(y, m) { @@ -35096,12 +35103,12 @@ function p3() { }, _.prototype._print_custom_beatifier_text = function(y, m, w) { var E = this; if (m.text !== "") { - var x = m.text, k, $ = 1, M = "", P = ""; - w.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? k = this._js_beautify : w.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? k = this._css_beautify : w.custom_beautifier_name === "html" && (k = function(G, R) { - var z = new _(G, R, E._js_beautify, E._css_beautify); - return z.beautify(); - }), this._options.indent_scripts === "keep" ? $ = 0 : this._options.indent_scripts === "separate" && ($ = -y.indent_level); - var B = y.get_full_indent($); + var x = m.text, k, R = 1, M = "", P = ""; + w.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? k = this._js_beautify : w.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? k = this._css_beautify : w.custom_beautifier_name === "html" && (k = function(G, I) { + var U = new _(G, I, E._js_beautify, E._css_beautify); + return U.beautify(); + }), this._options.indent_scripts === "keep" ? R = 0 : this._options.indent_scripts === "separate" && (R = -y.indent_level); + var B = y.get_full_indent(R); if (x = x.replace(/\n[ \t]*$/, ""), w.custom_beautifier_name !== "html" && x[0] === "<" && x.match(/^(|]]>)$/.exec(x); if (!T) { @@ -35122,9 +35129,9 @@ function p3() { var V = new D(); x = k(B + x, V); } else { - var K = m.whitespace_before; - K && (x = x.replace(new RegExp(` -(` + K + ")?", "g"), ` + var W = m.whitespace_before; + W && (x = x.replace(new RegExp(` +(` + W + ")?", "g"), ` `)), x = B + x.replace(/\n/g, ` ` + B); } @@ -35134,9 +35141,9 @@ function p3() { }, _.prototype._handle_tag_open = function(y, m, w, E, x) { var k = this._get_tag_open_token(m); if ((w.is_unformatted || w.is_content_unformatted) && !w.is_empty_element && m.type === r.TAG_OPEN && !k.is_start_tag ? (y.add_raw_token(m), k.start_tag_token = this._tag_stack.try_pop(k.tag_name)) : (y.traverse_whitespace(m), this._set_tag_position(y, m, k, w, E), k.is_inline_element || y.set_wrap_point(), y.print_token(m)), k.is_start_tag && this._is_wrap_attributes_force) { - var $ = 0, M; + var R = 0, M; do - M = x.peek($), M.type === r.ATTRIBUTE && (k.attr_count += 1), $ += 1; + M = x.peek(R), M.type === r.ATTRIBUTE && (k.attr_count += 1), R += 1; while (M.type !== r.EOF && M.type !== r.TAG_CLOSE); } return (this._is_wrap_attributes_force_aligned || this._is_wrap_attributes_aligned_multiple || this._is_wrap_attributes_preserve_aligned) && (k.alignment_size = m.text.length + 1), !k.tag_complete && !k.is_unformatted && (y.alignment_size = k.alignment_size), k; @@ -35164,8 +35171,8 @@ function p3() { w.tag_name === "!--" && x.type === r.TAG_CLOSE && E.is_end_tag && w.text.indexOf(` `) === -1 || (w.is_inline_element || w.is_unformatted || y.print_newline(!1), this._calcluate_parent_multiline(y, w)); } else if (w.is_end_tag) { - var $ = !1; - $ = w.start_tag_token && w.start_tag_token.multiline_content, $ = $ || !w.is_inline_element && !(E.is_inline_element || E.is_unformatted) && !(x.type === r.TAG_CLOSE && w.start_tag_token === E) && x.type !== "TK_CONTENT", (w.is_content_unformatted || w.is_unformatted) && ($ = !1), $ && y.print_newline(!1); + var R = !1; + R = w.start_tag_token && w.start_tag_token.multiline_content, R = R || !w.is_inline_element && !(E.is_inline_element || E.is_unformatted) && !(x.type === r.TAG_CLOSE && w.start_tag_token === E) && x.type !== "TK_CONTENT", (w.is_content_unformatted || w.is_unformatted) && (R = !1), R && y.print_newline(!1); } else w.indent_content = !w.custom_beautifier_name, w.tag_start_char === "<" && (w.tag_name === "html" ? w.indent_content = this._options.indent_inner_html : w.tag_name === "head" ? w.indent_content = this._options.indent_head_inner_html : w.tag_name === "body" && (w.indent_content = this._options.indent_body_inner_html)), !(w.is_inline_element || w.is_unformatted) && (x.type !== "TK_CONTENT" || w.is_content_unformatted) && y.print_newline(!1), this._calcluate_parent_multiline(y, w); }, _.prototype._calcluate_parent_multiline = function(y, m) { @@ -35306,24 +35313,24 @@ function y3(e, t, i, r) { const m = y.props || {}, w = y._sfc || {}; let E = []; if (y.class && E.push(`class="${Array.isArray(y.class) ? y.class.join(" ") : y.class}"`), y.slot && y.slot !== "default" && E.push("#" + y.slot), Object.keys(m).forEach((k) => { - const $ = m[k]; - if ($ && typeof $ == "object") { + const R = m[k]; + if (R && typeof R == "object") { const M = y._fc_id ? y._fc_id + "_" + k : k; - a.data[M] = $, E.push(`:${k}="${M}"`); - } else if ($ != null && $ !== "" && typeof $ != "function") { - let M = typeof $ == "string" ? "" : ":"; - M += `${k}="${$}"`, E.push(M); + a.data[M] = R, E.push(`:${k}="${M}"`); + } else if (R != null && R !== "" && typeof R != "function") { + let M = typeof R == "string" ? "" : ":"; + M += `${k}="${R}"`, E.push(M); } }), y.field) { let k = y.value; - const $ = { + const R = { array: [], string: "", number: 0 }; if (y.value == null) { const M = i[y._fc_drag_tag]; - M && Array.isArray(M.validate) && Vi($, M.validate[0]) && (k = $[M.validate[0]]); + M && Array.isArray(M.validate) && Vi(R, M.validate[0]) && (k = R[M.validate[0]]); } a.data.formData[y.field] = k, w.vModel !== !1 && E.push(`v-model${w.modelField ? ":" + w.modelField : ""}="formData.${u()}${y.field}"`); } @@ -35334,8 +35341,8 @@ function y3(e, t, i, r) { w.attr && Object.keys(w.attr).forEach((k) => { E.push(`${k}="${w.attr[k]}"`); }), w.prop && Object.keys(w.prop).forEach((k) => { - const $ = y._fc_id + "_" + k; - a.data[$] = w.prop[k], E.push(`:${k}="${$}"`); + const R = y._fc_id + "_" + k; + a.data[R] = w.prop[k], E.push(`:${k}="${R}"`); }), w.flag && w.flag.forEach((k) => { E.push(k); }); @@ -35355,10 +35362,10 @@ function y3(e, t, i, r) { typeof D == "string" ? k = D : x = D; } } - const $ = x.native !== !1 && (x.field || x.title); + const R = x.native !== !1 && (x.field || x.title); return k || (x._sfc && x._sfc.parentField && s.push(x.parentField), x._sfc && x._sfc.content ? w = `${x._sfc.content}` : x.children && (w = ` ` + h(x.children) + ` -`), n && n[x.type] && (x.type = Dc(n[x.type])), k = d(x, w), x._sfc && x._sfc.parentField && s.pop()), $ && ((M = x == null ? void 0 : x.wrap) == null ? void 0 : M.show) !== !1 && (k = d({ +`), n && n[x.type] && (x.type = Dc(n[x.type])), k = d(x, w), x._sfc && x._sfc.parentField && s.pop()), R && ((M = x == null ? void 0 : x.wrap) == null ? void 0 : M.show) !== !1 && (k = d({ type: "elFormItem", props: { labelWidth: x.title ? void 0 : "0px", @@ -35450,7 +35457,7 @@ ${A} function b3(e) { return !e || typeof e == "string" ? e || "" : Object.keys(e).reduce((t, i) => (e[i] != null && e[i] !== "" && t.push(vl(i) + ":" + e[i] + ";"), t), []).join(""); } -const _3 = Ve({ +const _3 = Be({ name: "SubList", components: { fcDraggable: Yo, VNode: eb, ConfigItem: si }, inject: ["designer"], @@ -35476,21 +35483,21 @@ const _3 = Ve({ if (e === t) return; const i = this.activeRule.children.splice(e, 1); - this.activeRule.children.splice(t, 0, i[0]), this.activeRule.key = it(); + this.activeRule.children.splice(t, 0, i[0]), this.activeRule.key = rt(); } } }), w3 = { class: "_fc-sublist" }, A3 = { class: "_fc-r-title" }, C3 = ["onClick"], S3 = ["onClick"]; function E3(e, t, i, r, n, a) { - const s = ne("VNode"), u = ne("ConfigItem"), d = ne("fcDraggable"); + const s = ee("VNode"), u = ee("ConfigItem"), d = ee("fcDraggable"); return H(), ae("div", w3, [ - X("p", A3, [ - X("span", null, le(e.t("designer.sublist")), 1), - X("i", { + J("p", A3, [ + J("span", null, le(e.t("designer.sublist")), 1), + J("i", { class: "fc-icon icon-add-circle", onClick: t[0] || (t[0] = (p) => e.toolHandle(e.activeRule, "addChild")) }) ]), - W(d, { + z(d, { group: { name: "sub", pull: "clone", put: !1 }, sort: !0, handle: ".icon-drag", @@ -35501,17 +35508,17 @@ function E3(e, t, i, r, n, a) { list: e.activeRuleChildren }, { item: N(({ element: p, index: h }) => [ - W(u, null, Qn({ + z(u, null, Qn({ label: N(() => [ - t[1] || (t[1] = X("i", { class: "fc-icon icon-drag" }, null, -1)), - X("span", null, le((e.t("com." + p._menu.name + ".name") || e.activeRule._menu.label) + " " + (h + 1)), 1) + t[1] || (t[1] = J("i", { class: "fc-icon icon-drag" }, null, -1)), + J("span", null, le((e.t("com." + p._menu.name + ".name") || e.activeRule._menu.label) + " " + (h + 1)), 1) ]), default: N(() => [ - X("i", { + J("i", { class: "fc-icon icon-copy", onClick: (g) => e.toolHandle(p, "copy") }, null, 8, C3), - X("i", { + J("i", { class: "fc-icon icon-delete", onClick: (g) => e.toolHandle(p, "delete") }, null, 8, S3) @@ -35521,7 +35528,7 @@ function E3(e, t, i, r, n, a) { e.activeRule._menu.subRender ? { name: "append", fn: N(() => [ - W(s, { + z(s, { fn: () => e.subRender(e.activeRule._menu.subRender, e.activeRule, p) }, null, 8, ["fn"]) ]), @@ -35533,8 +35540,8 @@ function E3(e, t, i, r, n, a) { }, 8, ["onEnd", "list"]) ]); } -const x3 = /* @__PURE__ */ je(_3, [["render", E3]]); -const T3 = Ve({ +const x3 = /* @__PURE__ */ Ve(_3, [["render", E3]]); +const T3 = Be({ name: "ToolsBar", inject: ["designer"], computed: { @@ -35581,10 +35588,10 @@ const T3 = Ve({ class: "_fc-r-tools-bar" }, O3 = { class: "_fc-r-tools" }, $3 = ["onClick"]; function R3(e, t, i, r, n, a) { - const s = ne("el-tooltip"); + const s = ee("el-tooltip"); return e.tools.length > 2 ? (H(), ae("div", k3, [ - X("div", O3, [ - (H(!0), ae(Me, null, We(e.tools, (u) => (H(), he(s, { + J("div", O3, [ + (H(!0), ae(Me, null, ze(e.tools, (u) => (H(), me(s, { key: u.icon, effect: "dark", content: u.label, @@ -35593,28 +35600,28 @@ function R3(e, t, i, r, n, a) { "hide-after": 0 }, { default: N(() => [ - X("div", { + J("div", { class: "_fc-r-tool", onClick: (d) => e.onClick(u.icon) }, [ - X("i", { - class: Xe(["fc-icon", `icon-config-${u.icon}`]) + J("i", { + class: qe(["fc-icon", `icon-config-${u.icon}`]) }, null, 2) ], 8, $3) ]), _: 2 }, 1032, ["content"]))), 128)), - X("div", { + J("div", { class: "_fc-r-tools-close _fc-r-tool", onClick: t[0] || (t[0] = (...u) => e.clearActiveRule && e.clearActiveRule(...u)) }, t[1] || (t[1] = [ - X("i", { class: "fc-icon icon-add2" }, null, -1) + J("i", { class: "fc-icon icon-add2" }, null, -1) ])) ]) - ])) : ke("", !0); + ])) : Te("", !0); } -const D3 = /* @__PURE__ */ je(T3, [["render", R3]]); -const I3 = Ve({ +const D3 = /* @__PURE__ */ Ve(T3, [["render", R3]]); +const I3 = Be({ name: "ConfigTitle" }), F3 = { ref: "cell", @@ -35625,7 +35632,7 @@ function P3(e, t, i, r, n, a) { kt(e.$slots, "default") ], 512); } -const mb = /* @__PURE__ */ je(I3, [["render", P3]]); +const mb = /* @__PURE__ */ Ve(I3, [["render", P3]]); var M3 = { name: "zh-cn", el: { @@ -35804,7 +35811,7 @@ var M3 = { } } }; -const L3 = Ve({ +const L3 = Be({ name: "TypeSelect", inject: ["designer"], computed: { @@ -35861,8 +35868,8 @@ const L3 = Ve({ class: "fc-icon icon-down" }; function B3(e, t, i, r, n, a) { - const s = ne("el-tag"), u = ne("el-dropdown-item"), d = ne("el-dropdown-menu"), p = ne("el-dropdown"); - return H(), he(p, { + const s = ee("el-tag"), u = ee("el-dropdown-item"), d = ee("el-dropdown-menu"), p = ee("el-dropdown"); + return H(), me(p, { class: "_fd-type-select", trigger: "click", size: "default", @@ -35871,16 +35878,16 @@ function B3(e, t, i, r, n, a) { onCommand: e.handleCommand }, { dropdown: N(() => [ - W(d, null, { + z(d, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.menus, (h) => (H(), he(u, { + (H(!0), ae(Me, null, ze(e.menus, (h) => (H(), me(u, { command: h, key: h.name }, { default: N(() => [ - X("div", null, [ - X("i", { - class: Xe(["fc-icon", h.icon || "icon-input"]) + J("div", null, [ + J("i", { + class: qe(["fc-icon", h.icon || "icon-input"]) }, null, 2), be(le(e.t("com." + h.name + ".name") || h.label), 1) ]) @@ -35892,7 +35899,7 @@ function B3(e, t, i, r, n, a) { }) ]), default: N(() => [ - W(s, { + z(s, { type: "success", effect: "plain", "disable-transitions": "" @@ -35900,7 +35907,7 @@ function B3(e, t, i, r, n, a) { default: N(() => [ e.activeRule ? (H(), ae(Me, { key: 0 }, [ be(le(e.t("com." + e.activeRule._menu.name + ".name") || e.activeRule._menu.label) + " ", 1), - e.menus.length ? (H(), ae("i", N3)) : ke("", !0) + e.menus.length ? (H(), ae("i", N3)) : Te("", !0) ], 64)) : (H(), ae(Me, { key: 1 }, [ be(le(e.t("com." + e.customForm.config.name + ".name") || e.customForm.config.label || e.customForm.config.name), 1) ], 64)) @@ -35911,8 +35918,8 @@ function B3(e, t, i, r, n, a) { _: 1 }, 8, ["disabled", "onCommand"]); } -const V3 = /* @__PURE__ */ je(L3, [["render", B3]]); -const j3 = Ve({ +const V3 = /* @__PURE__ */ Ve(L3, [["render", B3]]); +const j3 = Be({ name: "FieldList", inject: ["designer"], props: { @@ -35940,8 +35947,8 @@ const j3 = Ve({ class: "fc-icon icon-folder" }; function Y3(e, t, i, r, n, a) { - const s = ne("fcDraggable"), u = ne("el-tree"); - return H(), he(u, { + const s = ee("fcDraggable"), u = ee("el-tree"); + return H(), me(u, { ref: "treeRef", class: "_fc-field-tree", data: e.field, @@ -35951,7 +35958,7 @@ function Y3(e, t, i, r, n, a) { onNodeClick: e.nodeClick }, { default: N(({ node: d, data: p }) => [ - p.rule || p.item ? (H(), he(s, { + p.rule || p.item ? (H(), me(s, { key: 0, group: { name: "default", pull: "clone", put: !1 }, sort: !1, @@ -35960,31 +35967,31 @@ function Y3(e, t, i, r, n, a) { class: "_fc-field-drag" }, { item: N(() => [ - X("div", U3, [ - X("div", H3, [ + J("div", U3, [ + J("div", H3, [ d.isLeaf ? (H(), ae("i", { key: 0, - class: Xe(["fc-icon", p.icon || "icon-input"]) + class: qe(["fc-icon", p.icon || "icon-input"]) }, null, 2)) : (H(), ae("i", z3)), - X("span", null, le(p.label), 1) + J("span", null, le(p.label), 1) ]) ]) ]), _: 2 }, 1032, ["list"])) : (H(), ae("div", W3, [ - X("div", G3, [ + J("div", G3, [ d.isLeaf ? (H(), ae("i", { key: 0, - class: Xe(["fc-icon", p.icon || "icon-input"]) + class: qe(["fc-icon", p.icon || "icon-input"]) }, null, 2)) : (H(), ae("i", K3)), - X("span", null, le(p.label), 1) + J("span", null, le(p.label), 1) ]) ])) ]), _: 1 }, 8, ["data", "onNodeClick"]); } -const Q3 = /* @__PURE__ */ je(j3, [["render", Y3]]), J3 = ["props"], X3 = ["class", "style", "directives"], Z3 = ["on", "hook"], vb = (e, t = {}, i = {}) => { +const Q3 = /* @__PURE__ */ Ve(j3, [["render", Y3]]), J3 = ["props"], X3 = ["class", "style", "directives"], Z3 = ["on", "hook"], vb = (e, t = {}, i = {}) => { const r = [...J3, ...i.normal || []], n = [...X3, ...i.array || []], a = [...Z3, ...i.functional || []], s = i.props || []; return e.reduce((u, d) => { for (const p in d) @@ -36015,7 +36022,7 @@ const Q3 = /* @__PURE__ */ je(j3, [["render", Y3]]), J3 = ["props"], X3 = ["clas }, q3 = (e, t) => function() { e && e.apply(this, arguments), t && t.apply(this, arguments); }; -const eM = Ve({ +const eM = Be({ name: "FormList", inject: ["designer"], props: { @@ -36076,34 +36083,34 @@ const eM = Ve({ class: "_fc-form-node-info" }, aM = ["onClick"]; function lM(e, t, i, r, n, a) { - const s = ne("el-tree"); - return H(), he(s, { + const s = ee("el-tree"); + return H(), me(s, { ref: "treeRef", class: "_fc-form-tree", data: e.list, indent: 5 }, { default: N(({ node: u, data: d }) => [ - X("div", tM, [ - X("div", nM, [ + J("div", tM, [ + J("div", nM, [ u.isLeaf ? (H(), ae("i", iM)) : (H(), ae("i", rM)), - X("div", null, [ - X("div", null, le(d.label), 1), - d.info ? (H(), ae("span", oM, le(d.info), 1)) : ke("", !0) + J("div", null, [ + J("div", null, le(d.label), 1), + d.info ? (H(), ae("span", oM, le(d.info), 1)) : Te("", !0) ]) ]), u.isLeaf && !d.disabled ? (H(), ae("i", { key: 0, class: "fc-icon icon-edit", onClick: vt((p) => e.nodeClick(d), ["stop"]) - }, null, 8, aM)) : ke("", !0) + }, null, 8, aM)) : Te("", !0) ]) ]), _: 1 }, 8, ["data"]); } -const sM = /* @__PURE__ */ je(eM, [["render", lM]]); -const uM = Ve({ +const sM = /* @__PURE__ */ Ve(eM, [["render", lM]]); +const uM = Be({ name: "GlobalEventConfig", emits: ["update:modelValue"], props: { @@ -36151,7 +36158,7 @@ const uM = Ve({ addCus() { const e = this.cusValue && this.cusValue.trim(); if (e) { - const t = "event_" + it(); + const t = "event_" + rt(); this.event[t] = { label: e, handle: "" @@ -36192,15 +36199,15 @@ const uM = Ve({ class: "_fd-label" }, hM = ["onClick"]; function mM(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-badge"), d = ne("Warning"), p = ne("el-header"), h = ne("el-menu-item"), g = ne("el-input"), _ = ne("el-menu"), S = ne("el-main"), b = ne("el-container"), A = ne("el-aside"), y = ne("FnEditor"), m = ne("el-dialog"); + const s = ee("el-button"), u = ee("el-badge"), d = ee("Warning"), p = ee("el-header"), h = ee("el-menu-item"), g = ee("el-input"), _ = ee("el-menu"), S = ee("el-main"), b = ee("el-container"), A = ee("el-aside"), y = ee("FnEditor"), m = ee("el-dialog"); return H(), ae("div", dM, [ - W(u, { + z(u, { value: e.eventNum, type: "warning", hidden: e.eventNum < 1 }, { default: N(() => [ - W(s, { + z(s, { class: "_fd-plain-button", plain: "", onClick: e.open, @@ -36214,7 +36221,7 @@ function mM(e, t, i, r, n, a) { ]), _: 1 }, 8, ["value", "hidden"]), - W(m, { + z(m, { class: "_fd-gec-dialog _fd-config-dialog", modelValue: e.visible, "onUpdate:modelValue": t[6] || (t[6] = (w) => e.visible = w), @@ -36225,13 +36232,13 @@ function mM(e, t, i, r, n, a) { }, { header: N(() => [ be(le(e.t("form.globalEvent")), 1), - W(d, { + z(d, { tooltip: e.t("warning.globalEvent") }, null, 8, ["tooltip"]) ]), footer: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { size: "default", onClick: t[5] || (t[5] = (w) => e.visible = !1) }, { @@ -36240,7 +36247,7 @@ function mM(e, t, i, r, n, a) { ]), _: 1 }), - W(s, { + z(s, { type: "primary", size: "default", onClick: e.submit @@ -36253,21 +36260,21 @@ function mM(e, t, i, r, n, a) { ]) ]), default: N(() => [ - W(b, { + z(b, { class: "_fd-gec-con", style: { height: "600px" } }, { default: N(() => [ - W(A, { style: { width: "300px" } }, { + z(A, { style: { width: "300px" } }, { default: N(() => [ - W(b, { class: "_fd-gec-l" }, { + z(b, { class: "_fd-gec-l" }, { default: N(() => [ - W(p, { + z(p, { class: "_fd-gec-head", height: "40px" }, { default: N(() => [ - W(s, { + z(s, { link: "", type: "primary", size: "default", @@ -36281,42 +36288,42 @@ function mM(e, t, i, r, n, a) { ]), _: 1 }), - W(S, null, { + z(S, null, { default: N(() => [ - W(_, null, { + z(_, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.event, (w, E) => (H(), he(h, { - class: Xe({ "is-active": E === e.activeIdx }) + (H(!0), ae(Me, null, ze(e.event, (w, E) => (H(), me(h, { + class: qe({ "is-active": E === e.activeIdx }) }, { default: N(() => [ - X("div", { + J("div", { class: "_fd-gec-title", onClick: vt((x) => e.active(E), ["stop"]) }, [ - X("div", cM, [ - X("span", null, le(E), 1), - w.label ? (H(), ae("span", pM, le(w.label), 1)) : ke("", !0) + J("div", cM, [ + J("span", null, le(E), 1), + w.label ? (H(), ae("span", pM, le(w.label), 1)) : Te("", !0) ]), w.deletable !== !1 ? (H(), ae("i", { key: 0, class: "fc-icon icon-delete", onClick: vt((x) => e.rm(E), ["stop"]) - }, null, 8, hM)) : ke("", !0) + }, null, 8, hM)) : Te("", !0) ], 8, fM) ]), _: 2 }, 1032, ["class"]))), 256)), - e.cus ? (H(), he(h, { + e.cus ? (H(), me(h, { key: 0, style: { "padding-left": "10px" } }, { default: N(() => [ - X("div", { + J("div", { class: "_fd-gec-title", onClick: t[3] || (t[3] = vt(() => { }, ["stop"])) }, [ - W(g, { + z(g, { type: "text", modelValue: e.cusValue, "onUpdate:modelValue": t[0] || (t[0] = (w) => e.cusValue = w), @@ -36324,12 +36331,12 @@ function mM(e, t, i, r, n, a) { onKeydown: al(e.addCus, ["enter"]), placeholder: e.t("event.placeholder") }, null, 8, ["modelValue", "onKeydown", "placeholder"]), - X("div", null, [ - X("i", { + J("div", null, [ + J("i", { class: "fc-icon icon-add", onClick: t[1] || (t[1] = vt((...w) => e.addCus && e.addCus(...w), ["stop"])) }), - X("i", { + J("i", { class: "fc-icon icon-delete", onClick: t[2] || (t[2] = vt((...w) => e.closeCus && e.closeCus(...w), ["stop"])) }) @@ -36337,7 +36344,7 @@ function mM(e, t, i, r, n, a) { ]) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ]), _: 1 }) @@ -36350,17 +36357,17 @@ function mM(e, t, i, r, n, a) { ]), _: 1 }), - W(S, null, { + z(S, null, { default: N(() => [ - W(b, { class: "_fd-gec-r" }, { + z(b, { class: "_fd-gec-r" }, { default: N(() => [ - e.activeIdx ? (H(), he(p, { + e.activeIdx ? (H(), me(p, { key: 0, class: "_fd-gec-head", height: "40px" }, { default: N(() => [ - W(s, { + z(s, { size: "small", onClick: e.close }, { @@ -36369,7 +36376,7 @@ function mM(e, t, i, r, n, a) { ]), _: 1 }, 8, ["onClick"]), - W(s, { + z(s, { size: "small", type: "primary", onClick: e.save @@ -36381,10 +36388,10 @@ function mM(e, t, i, r, n, a) { }, 8, ["onClick"]) ]), _: 1 - })) : ke("", !0), - e.activeIdx ? (H(), he(S, { key: e.activeIdx }, { + })) : Te("", !0), + e.activeIdx ? (H(), me(S, { key: e.activeIdx }, { default: N(() => [ - W(y, { + z(y, { modelValue: e.handle, "onUpdate:modelValue": t[4] || (t[4] = (w) => e.handle = w), name: "handle", @@ -36393,7 +36400,7 @@ function mM(e, t, i, r, n, a) { }, null, 8, ["modelValue", "args"]) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ]), _: 1 }) @@ -36408,8 +36415,8 @@ function mM(e, t, i, r, n, a) { }, 8, ["modelValue"]) ]); } -const gb = /* @__PURE__ */ je(uM, [["render", mM]]); -const vM = Ve({ +const gb = /* @__PURE__ */ Ve(uM, [["render", mM]]); +const vM = Be({ name: "StructEditor", props: { modelValue: [Object, Array, Function], @@ -36450,7 +36457,7 @@ const vM = Ve({ }, methods: { toJson(e) { - return this.format ? et.toJson(e, 2) : ai(e); + return this.format ? tt.toJson(e, 2) : ai(e); }, load() { const e = this.modelValue ? this.toJson(this.modelValue) : ""; @@ -36489,10 +36496,10 @@ const vM = Ve({ }), gM = { class: "_fd-struct-editor" }, yM = { ref: "editor" }; function bM(e, t, i, r, n, a) { return H(), ae("div", gM, [ - X("div", yM, null, 512) + J("div", yM, null, 512) ]); } -const Lp = /* @__PURE__ */ je(vM, [["render", bM]]); +const Lp = /* @__PURE__ */ Ve(vM, [["render", bM]]); const _M = (e) => [ { type: "input", @@ -36566,7 +36573,7 @@ const _M = (e) => [ warning: e("warning.fetchData"), value: {} } -], wM = Ve({ +], wM = Be({ name: "GlobalFetchConfig", emits: ["update:modelValue"], props: { @@ -36575,7 +36582,7 @@ const _M = (e) => [ components: { Warning: ki, VariableConfig: ml, - DragForm: et.$form(), + DragForm: tt.$form(), FnEditor: sr, StructEditor: Lp }, @@ -36631,7 +36638,7 @@ const _M = (e) => [ addCus() { const e = this.cusValue && this.cusValue.trim(); if (e) { - const t = "data_" + it(); + const t = "data_" + rt(); this.list[t] = { label: e, type: this.cus, @@ -36653,7 +36660,7 @@ const _M = (e) => [ return this.saveData(); this.form.api.validate().then(() => { const e = { ...this.form.formData }; - this.$refs.parse && !this.$refs.parse.save() || this.$refs.beforeFetch && !this.$refs.beforeFetch.save() || this.$refs.error && !this.$refs.error.save() || (e.parse = et.parseFn(this.form.parse), e.beforeFetch = et.parseFn(this.form.beforeFetch), e.onError = this.form.onError, e.label = this.form.label, e.type = this.form.type, this.list[this.activeIdx] = e, this.activeIdx = ""); + this.$refs.parse && !this.$refs.parse.save() || this.$refs.beforeFetch && !this.$refs.beforeFetch.save() || this.$refs.error && !this.$refs.error.save() || (e.parse = tt.parseFn(this.form.parse), e.beforeFetch = tt.parseFn(this.form.beforeFetch), e.onError = this.form.onError, e.label = this.form.label, e.type = this.form.type, this.list[this.activeIdx] = e, this.activeIdx = ""); }).catch((e) => { console.error(e), In(e[Object.keys(e)[0]][0].message); }); @@ -36675,15 +36682,15 @@ const _M = (e) => [ class: "_fd-label" }, xM = ["onClick"], TM = { class: "_fd-gfc-info" }; function kM(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-badge"), d = ne("Warning"), p = ne("el-dropdown-item"), h = ne("el-dropdown-menu"), g = ne("el-dropdown"), _ = ne("el-header"), S = ne("el-menu-item"), b = ne("el-input"), A = ne("el-menu"), y = ne("el-main"), m = ne("el-container"), w = ne("el-aside"), E = ne("DragForm"), x = ne("el-tab-pane"), k = ne("FnEditor"), $ = ne("el-tabs"), M = ne("StructEditor"), P = ne("el-dialog"); + const s = ee("el-button"), u = ee("el-badge"), d = ee("Warning"), p = ee("el-dropdown-item"), h = ee("el-dropdown-menu"), g = ee("el-dropdown"), _ = ee("el-header"), S = ee("el-menu-item"), b = ee("el-input"), A = ee("el-menu"), y = ee("el-main"), m = ee("el-container"), w = ee("el-aside"), E = ee("DragForm"), x = ee("el-tab-pane"), k = ee("FnEditor"), R = ee("el-tabs"), M = ee("StructEditor"), P = ee("el-dialog"); return H(), ae("div", AM, [ - W(u, { + z(u, { value: e.dataNum, type: "warning", hidden: e.dataNum < 1 }, { default: N(() => [ - W(s, { + z(s, { class: "_fd-plain-button", plain: "", onClick: e.open, @@ -36697,7 +36704,7 @@ function kM(e, t, i, r, n, a) { ]), _: 1 }, 8, ["value", "hidden"]), - W(P, { + z(P, { class: "_fd-gfc-dialog _fd-config-dialog", modelValue: e.visible, "onUpdate:modelValue": t[11] || (t[11] = (B) => e.visible = B), @@ -36708,13 +36715,13 @@ function kM(e, t, i, r, n, a) { }, { header: N(() => [ be(le(e.t("form.globalFetch")) + " ", 1), - W(d, { + z(d, { tooltip: e.t("warning.globalFetch") }, null, 8, ["tooltip"]) ]), footer: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { size: "default", onClick: t[10] || (t[10] = (B) => e.visible = !1) }, { @@ -36723,7 +36730,7 @@ function kM(e, t, i, r, n, a) { ]), _: 1 }), - W(s, { + z(s, { type: "primary", size: "default", onClick: e.submit @@ -36736,33 +36743,33 @@ function kM(e, t, i, r, n, a) { ]) ]), default: N(() => [ - W(m, { + z(m, { class: "_fd-gfc-con", style: { height: "600px" } }, { default: N(() => [ - W(w, { style: { width: "300px" } }, { + z(w, { style: { width: "300px" } }, { default: N(() => [ - W(m, { class: "_fd-gfc-l" }, { + z(m, { class: "_fd-gfc-l" }, { default: N(() => [ - W(_, { + z(_, { class: "_fd-gfc-head", height: "40px" }, { default: N(() => [ - W(g, { + z(g, { trigger: "click", size: "default" }, { dropdown: N(() => [ - W(h, null, { + z(h, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.types, (B, T) => (H(), he(p, { + (H(!0), ae(Me, null, ze(e.types, (B, T) => (H(), me(p, { key: T, onClick: (D) => e.cusEvent(T) }, { default: N(() => [ - X("div", null, le(B), 1) + J("div", null, le(B), 1) ]), _: 2 }, 1032, ["onClick"]))), 128)) @@ -36771,14 +36778,14 @@ function kM(e, t, i, r, n, a) { }) ]), default: N(() => [ - W(s, { + z(s, { link: "", type: "primary", size: "default" }, { default: N(() => [ be(le(e.t("fetch.create")), 1), - t[12] || (t[12] = X("i", { + t[12] || (t[12] = J("i", { class: "fc-icon icon-down", style: { "font-size": "14px" } }, null, -1)) @@ -36791,42 +36798,42 @@ function kM(e, t, i, r, n, a) { ]), _: 1 }), - W(y, null, { + z(y, null, { default: N(() => [ - W(A, null, { + z(A, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.list, (B, T) => (H(), he(S, { - class: Xe({ "is-active": T === e.activeIdx }) + (H(!0), ae(Me, null, ze(e.list, (B, T) => (H(), me(S, { + class: qe({ "is-active": T === e.activeIdx }) }, { default: N(() => [ - X("div", { + J("div", { class: "_fd-gfc-title", onClick: vt((D) => e.active(T), ["stop"]) }, [ - X("div", SM, [ - X("span", null, le(T), 1), - B.label ? (H(), ae("span", EM, le(B.label), 1)) : ke("", !0) + J("div", SM, [ + J("span", null, le(T), 1), + B.label ? (H(), ae("span", EM, le(B.label), 1)) : Te("", !0) ]), B.deletable !== !1 ? (H(), ae("i", { key: 0, class: "fc-icon icon-delete", onClick: vt((D) => e.rm(T), ["stop"]) - }, null, 8, xM)) : ke("", !0) + }, null, 8, xM)) : Te("", !0) ], 8, CM) ]), _: 2 }, 1032, ["class"]))), 256)), - e.cus ? (H(), he(S, { + e.cus ? (H(), me(S, { key: 0, style: { "padding-left": "10px" } }, { default: N(() => [ - X("div", { + J("div", { class: "_fd-gfc-title", onClick: t[3] || (t[3] = vt(() => { }, ["stop"])) }, [ - W(b, { + z(b, { type: "text", modelValue: e.cusValue, "onUpdate:modelValue": t[0] || (t[0] = (B) => e.cusValue = B), @@ -36834,12 +36841,12 @@ function kM(e, t, i, r, n, a) { onKeydown: al(e.addCus, ["enter"]), placeholder: e.t("fetch.placeholder") }, null, 8, ["modelValue", "onKeydown", "placeholder"]), - X("div", null, [ - X("i", { + J("div", null, [ + J("i", { class: "fc-icon icon-add", onClick: t[1] || (t[1] = vt((...B) => e.addCus && e.addCus(...B), ["stop"])) }), - X("i", { + J("i", { class: "fc-icon icon-delete", onClick: t[2] || (t[2] = vt((...B) => e.closeCus && e.closeCus(...B), ["stop"])) }) @@ -36847,7 +36854,7 @@ function kM(e, t, i, r, n, a) { ]) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ]), _: 1 }) @@ -36860,17 +36867,17 @@ function kM(e, t, i, r, n, a) { ]), _: 1 }), - W(y, null, { + z(y, null, { default: N(() => [ - W(m, { class: "_fd-gfc-r" }, { + z(m, { class: "_fd-gfc-r" }, { default: N(() => [ - e.activeIdx ? (H(), he(_, { + e.activeIdx ? (H(), me(_, { key: 0, class: "_fd-gfc-head", height: "40px" }, { default: N(() => [ - W(s, { + z(s, { size: "small", onClick: e.close }, { @@ -36879,7 +36886,7 @@ function kM(e, t, i, r, n, a) { ]), _: 1 }, 8, ["onClick"]), - W(s, { + z(s, { size: "small", type: "primary", onClick: e.save @@ -36891,24 +36898,24 @@ function kM(e, t, i, r, n, a) { }, 8, ["onClick"]) ]), _: 1 - })) : ke("", !0), - e.activeIdx ? (H(), he(y, { key: e.activeIdx }, { + })) : Te("", !0), + e.activeIdx ? (H(), me(y, { key: e.activeIdx }, { default: N(() => [ - e.list[e.activeIdx].type === "fetch" ? (H(), he($, { + e.list[e.activeIdx].type === "fetch" ? (H(), me(R, { key: 0, "model-value": "first", class: "_fc-tabs", style: { width: "100%" } }, { default: N(() => [ - W(x, { + z(x, { label: e.t("fetch.config"), name: "first", style: { "padding-right": "15px" } }, { default: N(() => [ - X("div", TM, le(e.t("fetch.info")), 1), - W(E, { + J("div", TM, le(e.t("fetch.info")), 1), + z(E, { api: e.form.api, "onUpdate:api": t[4] || (t[4] = (B) => e.form.api = B), modelValue: e.form.formData, @@ -36917,7 +36924,7 @@ function kM(e, t, i, r, n, a) { option: e.form.options }, { title: N((B) => [ - B.rule.warning ? (H(), he(d, { + B.rule.warning ? (H(), me(d, { key: 0, tooltip: B.rule.warning }, { @@ -36934,19 +36941,19 @@ function kM(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(x, { + z(x, { lazy: "", label: e.t("fetch.beforeFetch"), name: "second" }, { label: N(() => [ be(le(e.t("fetch.beforeFetch")) + " ", 1), - W(d, { + z(d, { tooltip: e.t("warning.beforeFetch") }, null, 8, ["tooltip"]) ]), default: N(() => [ - W(k, { + z(k, { style: { height: "100%" }, modelValue: e.form.beforeFetch, "onUpdate:modelValue": t[6] || (t[6] = (B) => e.form.beforeFetch = B), @@ -36957,18 +36964,18 @@ function kM(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(x, { + z(x, { lazy: "", name: "third" }, { label: N(() => [ be(le(e.t("fetch.parse")) + " ", 1), - W(d, { + z(d, { tooltip: e.t("warning.fetchParse") }, null, 8, ["tooltip"]) ]), default: N(() => [ - W(k, { + z(k, { style: { height: "100%" }, modelValue: e.form.parse, "onUpdate:modelValue": t[7] || (t[7] = (B) => e.form.parse = B), @@ -36979,13 +36986,13 @@ function kM(e, t, i, r, n, a) { ]), _: 1 }), - W(x, { + z(x, { lazy: "", label: e.t("fetch.onError"), name: "fourth" }, { default: N(() => [ - W(k, { + z(k, { style: { height: "100%" }, modelValue: e.form.onError, "onUpdate:modelValue": t[8] || (t[8] = (B) => e.form.onError = B), @@ -36998,7 +37005,7 @@ function kM(e, t, i, r, n, a) { }, 8, ["label"]) ]), _: 1 - })) : (H(), he(M, { + })) : (H(), me(M, { key: 1, modelValue: e.form.data, "onUpdate:modelValue": t[9] || (t[9] = (B) => e.form.data = B), @@ -37006,7 +37013,7 @@ function kM(e, t, i, r, n, a) { }, null, 8, ["modelValue"])) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ]), _: 1 }) @@ -37021,8 +37028,8 @@ function kM(e, t, i, r, n, a) { }, 8, ["modelValue"]) ]); } -const yb = /* @__PURE__ */ je(wM, [["render", kM]]); -const OM = Ve({ +const yb = /* @__PURE__ */ Ve(wM, [["render", kM]]); +const OM = Be({ name: "SizeInput", inject: ["designer"], emits: ["update:modelValue", "change"], @@ -37074,9 +37081,9 @@ const OM = Ve({ } }), $M = { class: "_fd-size-input" }; function RM(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-inputNumber"), d = ne("el-dropdown-item"), p = ne("el-dropdown-menu"), h = ne("el-dropdown"); + const s = ee("el-button"), u = ee("el-inputNumber"), d = ee("el-dropdown-item"), p = ee("el-dropdown-menu"), h = ee("el-dropdown"); return H(), ae("div", $M, [ - e.unit[e.idx] === "auto" ? (H(), he(s, { + e.unit[e.idx] === "auto" ? (H(), me(s, { key: 0, size: e.size, style: { width: "150px" }, @@ -37087,26 +37094,26 @@ function RM(e, t, i, r, n, a) { ]), _: 1 }, 8, ["size"])) : (H(), ae(Me, { key: 1 }, [ - W(u, { + z(u, { size: e.size, modelValue: e.num, "onUpdate:modelValue": t[1] || (t[1] = (g) => e.num = g), onChange: e.submit, "controls-position": "right" }, null, 8, ["size", "modelValue", "onChange"]), - W(h, { + z(h, { trigger: "click", size: "small" }, { dropdown: N(() => [ - W(p, null, { + z(p, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.unit, (g, _) => (H(), he(d, { + (H(!0), ae(Me, null, ze(e.unit, (g, _) => (H(), me(d, { key: g, onClick: (S) => e.changeType(_) }, { default: N(() => [ - X("div", null, le(g), 1) + J("div", null, le(g), 1) ]), _: 2 }, 1032, ["onClick"]))), 128)) @@ -37115,7 +37122,7 @@ function RM(e, t, i, r, n, a) { }) ]), default: N(() => [ - W(s, { size: e.size }, { + z(s, { size: e.size }, { default: N(() => [ be(le(e.unit[e.idx]), 1) ]), @@ -37127,8 +37134,8 @@ function RM(e, t, i, r, n, a) { ], 64)) ]); } -const ea = /* @__PURE__ */ je(OM, [["render", RM]]); -const DM = Ve({ +const ea = /* @__PURE__ */ Ve(OM, [["render", RM]]); +const DM = Be({ name: "BoxSizeInput", components: { SizeInput: ea, ConfigItem: si }, props: { @@ -37214,24 +37221,24 @@ const DM = Ve({ style: { "font-size": "12px", "line-height": "16px" } }; function PM(e, t, i, r, n, a) { - const s = ne("SizeInput"), u = ne("el-form-item"), d = ne("el-radio-button"), p = ne("el-tooltip"), h = ne("el-radio-group"), g = ne("el-form"), _ = ne("ConfigItem"); + const s = ee("SizeInput"), u = ee("el-form-item"), d = ee("el-radio-button"), p = ee("el-tooltip"), h = ee("el-radio-group"), g = ee("el-form"), _ = ee("ConfigItem"); return H(), ae("div", IM, [ - W(_, { + z(_, { label: e.t("props.size"), info: Object.keys(e.modelValue).length > 0 ? e.t("struct.configured") : "" }, { append: N(() => [ - W(g, { + z(g, { "label-position": "top", size: "small" }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.keys, (S) => (H(), he(u, { + (H(!0), ae(Me, null, ze(e.keys, (S) => (H(), me(u, { label: e.t("style." + S), key: S }, { default: N(() => [ - W(s, { + z(s, { modelValue: e.boxStyle[S], "onUpdate:modelValue": (b) => e.boxStyle[S] = b, onChange: e.onInput @@ -37239,16 +37246,16 @@ function PM(e, t, i, r, n, a) { ]), _: 2 }, 1032, ["label"]))), 128)), - W(u, { + z(u, { label: e.t("style.overflow.name"), style: { "grid-column": "span 2" } }, { default: N(() => [ - W(h, { + z(h, { modelValue: e.boxStyle.overflow }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.overflow, (S) => (H(), he(p, { + (H(!0), ae(Me, null, ze(e.overflow, (S) => (H(), me(p, { effect: "dark", content: e.t("style.overflow." + S.value), placement: "top", @@ -37257,7 +37264,7 @@ function PM(e, t, i, r, n, a) { key: S.value }, { default: N(() => [ - W(d, { + z(d, { label: S.value, value: S.value, onClick: (b) => e.changeOverflow(S.value) @@ -37265,7 +37272,7 @@ function PM(e, t, i, r, n, a) { default: N(() => [ S.text ? (H(), ae("span", FM, "Auto ")) : (H(), ae("i", { key: 1, - class: Xe(["fc-icon", S.icon]) + class: qe(["fc-icon", S.icon]) }, null, 2)) ]), _: 2 @@ -37287,8 +37294,8 @@ function PM(e, t, i, r, n, a) { }, 8, ["label", "info"]) ]); } -const MM = /* @__PURE__ */ je(DM, [["render", PM]]); -const LM = Ve({ +const MM = /* @__PURE__ */ Ve(DM, [["render", PM]]); +const LM = Be({ name: "ColorInput", inject: ["designer"], emits: ["update:modelValue", "change"], @@ -37343,15 +37350,15 @@ const LM = Ve({ } }), NM = { class: "_fd-color-input" }; function BM(e, t, i, r, n, a) { - const s = ne("el-color-picker"), u = ne("el-input"); + const s = ee("el-color-picker"), u = ee("el-input"); return H(), ae("div", NM, [ - W(u, { + z(u, { clearable: "", modelValue: e.value, "onUpdate:modelValue": t[1] || (t[1] = (d) => e.value = d) }, { append: N(() => [ - W(s, { + z(s, { "show-alpha": "", "color-format": "hex", predefine: e.predefine, @@ -37363,8 +37370,8 @@ function BM(e, t, i, r, n, a) { }, 8, ["modelValue"]) ]); } -const ta = /* @__PURE__ */ je(LM, [["render", BM]]); -const VM = Ve({ +const ta = /* @__PURE__ */ Ve(LM, [["render", BM]]); +const VM = Be({ name: "BorderInput", components: { ColorInput: ta, SizeInput: ea, ConfigItem: si }, inject: ["designer"], @@ -37435,56 +37442,56 @@ const VM = Ve({ } }), jM = { class: "_fd-border-input" }, UM = { class: "_fd-bi-left" }, HM = { class: "_fd-bil-row" }, zM = { class: "_fd-bil-row" }, WM = { class: "_fd-bil-row" }, GM = { class: "_fd-bi-right" }, KM = { class: "_fd-bi-opt" }; function YM(e, t, i, r, n, a) { - const s = ne("el-option"), u = ne("el-select"), d = ne("SizeInput"), p = ne("ColorInput"), h = ne("ConfigItem"); - return H(), he(h, { + const s = ee("el-option"), u = ee("el-select"), d = ee("SizeInput"), p = ee("ColorInput"), h = ee("ConfigItem"); + return H(), me(h, { label: e.t("style.border") }, { append: N(() => [ - X("div", jM, [ - X("div", UM, [ - X("div", HM, [ - X("div", { - class: Xe(["_fd-bil-col", e.active === "Top" ? "active" : ""]), + J("div", jM, [ + J("div", UM, [ + J("div", HM, [ + J("div", { + class: qe(["_fd-bil-col", e.active === "Top" ? "active" : ""]), onClick: t[0] || (t[0] = (g) => e.active = "Top") }, "\u2533 ", 2) ]), - X("div", zM, [ - X("div", { - class: Xe(["_fd-bil-col", e.active === "Left" ? "active" : ""]), + J("div", zM, [ + J("div", { + class: qe(["_fd-bil-col", e.active === "Left" ? "active" : ""]), onClick: t[1] || (t[1] = (g) => e.active = "Left") }, "\u2523 ", 2), - X("div", { - class: Xe(["_fd-bil-col", e.active === "" ? "active" : ""]), + J("div", { + class: qe(["_fd-bil-col", e.active === "" ? "active" : ""]), onClick: t[2] || (t[2] = (g) => e.active = "") }, "\u254B", 2), - X("div", { - class: Xe(["_fd-bil-col", e.active === "Right" ? "active" : ""]), + J("div", { + class: qe(["_fd-bil-col", e.active === "Right" ? "active" : ""]), onClick: t[3] || (t[3] = (g) => e.active = "Right") }, " \u252B ", 2) ]), - X("div", WM, [ - X("div", { - class: Xe(["_fd-bil-col", e.active === "Bottom" ? "active" : ""]), + J("div", WM, [ + J("div", { + class: qe(["_fd-bil-col", e.active === "Bottom" ? "active" : ""]), onClick: t[4] || (t[4] = (g) => e.active = "Bottom") }, "\u253B ", 2) ]) ]), - X("div", GM, [ - W(u, { + J("div", GM, [ + z(u, { modelValue: e.curStyle, "onUpdate:modelValue": t[5] || (t[5] = (g) => e.curStyle = g), clearable: "" }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.lineType, (g) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.lineType, (g) => (H(), me(s, { key: g.value, label: g.label, value: g.value }, { default: N(() => [ - X("div", KM, [ - X("div", { - class: Xe(["_line", g.value]) + J("div", KM, [ + J("div", { + class: qe(["_line", g.value]) }, null, 2) ]) ]), @@ -37493,11 +37500,11 @@ function YM(e, t, i, r, n, a) { ]), _: 1 }, 8, ["modelValue"]), - W(d, { + z(d, { modelValue: e.curWidth, "onUpdate:modelValue": t[6] || (t[6] = (g) => e.curWidth = g) }, null, 8, ["modelValue"]), - W(p, { + z(p, { modelValue: e.curColor, "onUpdate:modelValue": t[7] || (t[7] = (g) => e.curColor = g) }, null, 8, ["modelValue"]) @@ -37505,18 +37512,18 @@ function YM(e, t, i, r, n, a) { ]) ]), default: N(() => [ - X("div", { + J("div", { class: "line-box", style: wn(e.borderStyleStr) }, t[8] || (t[8] = [ - X("div", { class: "line-box-con" }, null, -1) + J("div", { class: "line-box-con" }, null, -1) ]), 4) ]), _: 1 }, 8, ["label"]); } -const QM = /* @__PURE__ */ je(VM, [["render", YM]]); -const JM = Ve({ +const QM = /* @__PURE__ */ Ve(VM, [["render", YM]]); +const JM = Be({ name: "RadiusInput", components: { ConfigItem: si, ColorInput: ta, SizeInput: ea }, inject: ["designer"], @@ -37579,60 +37586,60 @@ const JM = Ve({ } }), XM = { class: "_fd-radius-input" }, ZM = { class: "_fd-radius-con" }, qM = { class: "_fd-radius-item" }, eL = { class: "_fd-radius-item" }, tL = { class: "_fd-radius-item" }, nL = { class: "_fd-radius-item" }; function iL(e, t, i, r, n, a) { - const s = ne("SizeInput"), u = ne("ConfigItem"); + const s = ee("SizeInput"), u = ee("ConfigItem"); return H(), ae("div", XM, [ - W(u, { + z(u, { label: e.t("style.borderRadius") }, { append: N(() => [ - X("div", ZM, [ - X("div", qM, [ - t[5] || (t[5] = X("div", { + J("div", ZM, [ + J("div", qM, [ + t[5] || (t[5] = J("div", { class: "_fd-radius-icon", style: { transform: "rotate(180deg)" } }, [ - X("i", { class: "fc-icon icon-radius" }) + J("i", { class: "fc-icon icon-radius" }) ], -1)), - W(s, { + z(s, { unit: e.unit, modelValue: e.style.left, "onUpdate:modelValue": t[1] || (t[1] = (d) => e.style.left = d), onChange: e.onInput }, null, 8, ["unit", "modelValue", "onChange"]) ]), - X("div", eL, [ - t[6] || (t[6] = X("div", { + J("div", eL, [ + t[6] || (t[6] = J("div", { class: "_fd-radius-icon", style: { transform: "rotate(-90deg)" } }, [ - X("i", { class: "fc-icon icon-radius" }) + J("i", { class: "fc-icon icon-radius" }) ], -1)), - W(s, { + z(s, { unit: e.unit, modelValue: e.style.top, "onUpdate:modelValue": t[2] || (t[2] = (d) => e.style.top = d), onChange: e.onInput }, null, 8, ["unit", "modelValue", "onChange"]) ]), - X("div", tL, [ - t[7] || (t[7] = X("div", { + J("div", tL, [ + t[7] || (t[7] = J("div", { class: "_fd-radius-icon", style: { transform: "rotate(90deg)" } }, [ - X("i", { class: "fc-icon icon-radius" }) + J("i", { class: "fc-icon icon-radius" }) ], -1)), - W(s, { + z(s, { unit: e.unit, modelValue: e.style.bottom, "onUpdate:modelValue": t[3] || (t[3] = (d) => e.style.bottom = d), onChange: e.onInput }, null, 8, ["unit", "modelValue", "onChange"]) ]), - X("div", nL, [ - t[8] || (t[8] = X("div", { class: "_fd-radius-icon" }, [ - X("i", { class: "fc-icon icon-radius" }) + J("div", nL, [ + t[8] || (t[8] = J("div", { class: "_fd-radius-icon" }, [ + J("i", { class: "fc-icon icon-radius" }) ], -1)), - W(s, { + z(s, { unit: e.unit, modelValue: e.style.right, "onUpdate:modelValue": t[4] || (t[4] = (d) => e.style.right = d), @@ -37642,7 +37649,7 @@ function iL(e, t, i, r, n, a) { ]) ]), default: N(() => [ - W(s, { + z(s, { unit: e.unit, modelValue: e.style.com, "onUpdate:modelValue": t[0] || (t[0] = (d) => e.style.com = d), @@ -37653,8 +37660,8 @@ function iL(e, t, i, r, n, a) { }, 8, ["label"]) ]); } -const rL = /* @__PURE__ */ je(JM, [["render", iL]]); -const oL = Ve({ +const rL = /* @__PURE__ */ Ve(JM, [["render", iL]]); +const oL = Be({ name: "BorderInput", components: { ColorInput: ta, SizeInput: ea, ConfigItem: si }, inject: ["designer"], @@ -37717,24 +37724,24 @@ const oL = Ve({ } }), aL = { class: "_fd-font-input" }; function lL(e, t, i, r, n, a) { - const s = ne("SizeInput"), u = ne("el-form-item"), d = ne("el-option"), p = ne("el-select"), h = ne("el-form"), g = ne("ConfigItem"); - return H(), he(g, { + const s = ee("SizeInput"), u = ee("el-form-item"), d = ee("el-option"), p = ee("el-select"), h = ee("el-form"), g = ee("ConfigItem"); + return H(), me(g, { label: e.t("style.font.name") }, { append: N(() => [ - X("div", aL, [ - W(h, { + J("div", aL, [ + z(h, { "label-width": "50px", "label-position": "top", inline: "", size: "small" }, { default: N(() => [ - W(u, { + z(u, { label: e.t("style.font.size") }, { default: N(() => [ - W(s, { + z(s, { modelValue: e.fontStyle.fontSize, "onUpdate:modelValue": t[0] || (t[0] = (_) => e.fontStyle.fontSize = _), onChange: e.onInput @@ -37742,24 +37749,24 @@ function lL(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(u, { + z(u, { label: e.t("style.weight.name") }, { default: N(() => [ - W(p, { + z(p, { modelValue: e.fontStyle.fontWeight, "onUpdate:modelValue": t[1] || (t[1] = (_) => e.fontStyle.fontWeight = _), clearable: "", onChange: e.onInput }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.weightType, (_) => (H(), he(d, { + (H(!0), ae(Me, null, ze(e.weightType, (_) => (H(), me(d, { key: _.value, label: _.label, value: _.value }, { default: N(() => [ - X("span", { + J("span", { style: wn({ fontWeight: _.value }) }, le(_.label), 5) ]), @@ -37771,24 +37778,24 @@ function lL(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(u, { + z(u, { label: e.t("style.decoration.name") }, { default: N(() => [ - W(p, { + z(p, { modelValue: e.fontStyle.textDecoration, "onUpdate:modelValue": t[2] || (t[2] = (_) => e.fontStyle.textDecoration = _), clearable: "", onChange: e.onInput }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.decorationType, (_) => (H(), he(d, { + (H(!0), ae(Me, null, ze(e.decorationType, (_) => (H(), me(d, { key: _.value, label: _.label, value: _.value }, { default: N(() => [ - X("span", { + J("span", { style: wn({ textDecoration: _.value }) }, le(_.label), 5) ]), @@ -37800,18 +37807,18 @@ function lL(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(u, { + z(u, { label: e.t("style.font.align") }, { default: N(() => [ - W(p, { + z(p, { modelValue: e.fontStyle.textAlign, "onUpdate:modelValue": t[3] || (t[3] = (_) => e.fontStyle.textAlign = _), clearable: "", onChange: e.onInput }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.alignType, (_) => (H(), he(d, { + (H(!0), ae(Me, null, ze(e.alignType, (_) => (H(), me(d, { key: _.value, label: _.label, value: _.value @@ -37822,11 +37829,11 @@ function lL(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(u, { + z(u, { label: e.t("style.font.height") }, { default: N(() => [ - W(s, { + z(s, { modelValue: e.fontStyle.lineHeight, "onUpdate:modelValue": t[4] || (t[4] = (_) => e.fontStyle.lineHeight = _), onChange: e.onInput @@ -37834,11 +37841,11 @@ function lL(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(u, { + z(u, { label: e.t("style.font.spacing") }, { default: N(() => [ - W(s, { + z(s, { modelValue: e.fontStyle.letterSpacing, "onUpdate:modelValue": t[5] || (t[5] = (_) => e.fontStyle.letterSpacing = _), onChange: e.onInput @@ -37852,7 +37859,7 @@ function lL(e, t, i, r, n, a) { ]) ]), default: N(() => [ - X("div", { + J("div", { class: "_fd-fi-box", style: wn(e.fontStyle) }, le(e.t("style.font.preview")), 5) @@ -37860,8 +37867,8 @@ function lL(e, t, i, r, n, a) { _: 1 }, 8, ["label"]); } -const sL = /* @__PURE__ */ je(oL, [["render", lL]]); -const uL = Ve({ +const sL = /* @__PURE__ */ Ve(oL, [["render", lL]]); +const uL = Be({ name: "DisplayInput", components: { ConfigItem: si }, inject: ["designer"], @@ -37974,25 +37981,25 @@ const uL = Ve({ } }), dL = { class: "_fd-display-input" }, fL = { class: "_fd-display-raw" }, cL = { class: "_label" }; function pL(e, t, i, r, n, a) { - const s = ne("el-radio-button"), u = ne("el-tooltip"), d = ne("el-radio-group"), p = ne("ConfigItem"); + const s = ee("el-radio-button"), u = ee("el-tooltip"), d = ee("el-radio-group"), p = ee("ConfigItem"); return H(), ae("div", dL, [ - W(p, { + z(p, { label: e.t("style.display.name"), arrow: !1, showAppend: e.style.display === "flex" }, { append: N(() => [ - X("div", { - class: Xe(["_fd-display-con", [e.style.flexDirection, ["column", "column-reverse"].indexOf(e.style.flexDirection) > -1 ? "rotate-flag" : ""]]) + J("div", { + class: qe(["_fd-display-con", [e.style.flexDirection, ["column", "column-reverse"].indexOf(e.style.flexDirection) > -1 ? "rotate-flag" : ""]]) }, [ - (H(!0), ae(Me, null, We(e.options, (h) => (H(), ae("div", fL, [ - X("div", cL, le(e.t("style." + h.key + ".name")) + ": ", 1), - W(d, { + (H(!0), ae(Me, null, ze(e.options, (h) => (H(), ae("div", fL, [ + J("div", cL, le(e.t("style." + h.key + ".name")) + ": ", 1), + z(d, { "model-value": e.style[h.key], size: "small" }, { default: N(() => [ - (H(!0), ae(Me, null, We(h.items, (g) => (H(), he(u, { + (H(!0), ae(Me, null, ze(h.items, (g) => (H(), me(u, { effect: "dark", content: e.t("style." + h.key + "." + g.value), placement: "top", @@ -38001,17 +38008,17 @@ function pL(e, t, i, r, n, a) { key: g.value }, { default: N(() => [ - W(s, { + z(s, { label: g.value, value: g.value, onClick: (_) => e.radioClick(h.key, g) }, { default: N(() => [ - X("span", { - class: Xe(g.row ? "rotate" : "") + J("span", { + class: qe(g.row ? "rotate" : "") }, [ - X("i", { - class: Xe(["fc-icon", "icon-" + g.icon]) + J("i", { + class: qe(["fc-icon", "icon-" + g.icon]) }, null, 2) ], 2) ]), @@ -38027,13 +38034,13 @@ function pL(e, t, i, r, n, a) { ], 2) ]), default: N(() => [ - W(d, { + z(d, { "model-value": e.style.display, size: "small", style: { width: "150px" } }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.displayOptions, (h) => (H(), he(u, { + (H(!0), ae(Me, null, ze(e.displayOptions, (h) => (H(), me(u, { effect: "dark", content: e.t("style.display." + h.value), placement: "top", @@ -38042,14 +38049,14 @@ function pL(e, t, i, r, n, a) { key: h.value }, { default: N(() => [ - W(s, { + z(s, { label: h.value, value: h.value, onClick: (g) => e.radioClick("display", h) }, { default: N(() => [ - X("i", { - class: Xe(["fc-icon", "icon-display-" + h.icon]) + J("i", { + class: qe(["fc-icon", "icon-display-" + h.icon]) }, null, 2) ]), _: 2 @@ -38065,8 +38072,8 @@ function pL(e, t, i, r, n, a) { }, 8, ["label", "showAppend"]) ]); } -const hL = /* @__PURE__ */ je(uL, [["render", pL]]); -const mL = Ve({ +const hL = /* @__PURE__ */ Ve(uL, [["render", pL]]); +const mL = Be({ name: "ShadowContent", components: { ColorInput: ta }, inject: ["designer"], @@ -38161,9 +38168,9 @@ const mL = Ve({ } }), vL = { class: "_fd-shadow-content" }, gL = { class: "_fd-sc-right" }; function yL(e, t, i, r, n, a) { - const s = ne("el-radio-button"), u = ne("el-tooltip"), d = ne("el-radio-group"), p = ne("el-form-item"), h = ne("ColorInput"), g = ne("el-option"), _ = ne("el-select"), S = ne("el-input"), b = ne("el-form"); + const s = ee("el-radio-button"), u = ee("el-tooltip"), d = ee("el-radio-group"), p = ee("el-form-item"), h = ee("ColorInput"), g = ee("el-option"), _ = ee("el-select"), S = ee("el-input"), b = ee("el-form"); return H(), ae("div", vL, [ - W(b, { + z(b, { "label-width": "50px", "label-position": "top", inline: "", @@ -38171,11 +38178,11 @@ function yL(e, t, i, r, n, a) { size: "small" }, { default: N(() => [ - W(p, { + z(p, { label: e.t("style.shadow.mode") }, { default: N(() => [ - W(d, { + z(d, { modelValue: e.form.type, "onUpdate:modelValue": t[0] || (t[0] = (A) => e.form.type = A), onChange: e.onInput, @@ -38183,7 +38190,7 @@ function yL(e, t, i, r, n, a) { class: "_fd-sc-radio" }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.options, (A) => (H(), he(u, { + (H(!0), ae(Me, null, ze(e.options, (A) => (H(), me(u, { key: A.key, effect: "dark", content: e.t("style.shadow." + A.key), @@ -38192,13 +38199,13 @@ function yL(e, t, i, r, n, a) { persistent: "" }, { default: N(() => [ - W(s, { + z(s, { label: A.key, value: A.key }, { default: N(() => [ - X("i", { - class: Xe(["fc-icon", "icon-" + A.icon]) + J("i", { + class: qe(["fc-icon", "icon-" + A.icon]) }, null, 2) ]), _: 2 @@ -38212,11 +38219,11 @@ function yL(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(p, { + z(p, { label: e.t("style.color") }, { default: N(() => [ - W(h, { + z(h, { modelValue: e.form.color, "onUpdate:modelValue": t[1] || (t[1] = (A) => e.form.color = A), onChange: e.onInput @@ -38224,24 +38231,24 @@ function yL(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(p, { + z(p, { label: e.t("style.shadow.x") }, { default: N(() => [ - W(S, { + z(S, { modelValue: e.form.x, "onUpdate:modelValue": t[3] || (t[3] = (A) => e.form.x = A), type: "number", onChange: e.onInput }, { append: N(() => [ - W(_, { + z(_, { modelValue: e.form.x_unit, "onUpdate:modelValue": t[2] || (t[2] = (A) => e.form.x_unit = A), onChange: e.onInput }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.units, (A) => (H(), he(g, { + (H(!0), ae(Me, null, ze(e.units, (A) => (H(), me(g, { key: A, label: A, value: A @@ -38255,24 +38262,24 @@ function yL(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(p, { + z(p, { label: e.t("style.shadow.y") }, { default: N(() => [ - W(S, { + z(S, { modelValue: e.form.y, "onUpdate:modelValue": t[5] || (t[5] = (A) => e.form.y = A), type: "number", onChange: e.onInput }, { append: N(() => [ - W(_, { + z(_, { modelValue: e.form.y_unit, "onUpdate:modelValue": t[4] || (t[4] = (A) => e.form.y_unit = A), onChange: e.onInput }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.units, (A) => (H(), he(g, { + (H(!0), ae(Me, null, ze(e.units, (A) => (H(), me(g, { key: A, label: A, value: A @@ -38286,24 +38293,24 @@ function yL(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(p, { + z(p, { label: e.t("style.shadow.vague") }, { default: N(() => [ - W(S, { + z(S, { modelValue: e.form.vague, "onUpdate:modelValue": t[7] || (t[7] = (A) => e.form.vague = A), type: "number", onChange: e.onInput }, { append: N(() => [ - W(_, { + z(_, { modelValue: e.form.vague_unit, "onUpdate:modelValue": t[6] || (t[6] = (A) => e.form.vague_unit = A), onChange: e.onInput }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.units, (A) => (H(), he(g, { + (H(!0), ae(Me, null, ze(e.units, (A) => (H(), me(g, { key: A, label: A, value: A @@ -38317,24 +38324,24 @@ function yL(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(p, { + z(p, { label: e.t("style.shadow.extend") }, { default: N(() => [ - W(S, { + z(S, { modelValue: e.form.extend, "onUpdate:modelValue": t[9] || (t[9] = (A) => e.form.extend = A), type: "number", onChange: e.onInput }, { append: N(() => [ - W(_, { + z(_, { modelValue: e.form.extend_unit, "onUpdate:modelValue": t[8] || (t[8] = (A) => e.form.extend_unit = A), onChange: e.onInput }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.units, (A) => (H(), he(g, { + (H(!0), ae(Me, null, ze(e.units, (A) => (H(), me(g, { key: A, label: A, value: A @@ -38351,30 +38358,30 @@ function yL(e, t, i, r, n, a) { ]), _: 1 }), - X("div", gL, [ - X("div", { + J("div", gL, [ + J("div", { ref: "box", - class: Xe(["_fd-sc-box", e.down ? "down" : ""]), + class: qe(["_fd-sc-box", e.down ? "down" : ""]), onClick: t[10] || (t[10] = (A) => e.getMouseXY(A, 1)), onMousedown: t[11] || (t[11] = (...A) => e.onMousedown && e.onMousedown(...A)), onMouseup: t[12] || (t[12] = (...A) => e.onMouseup && e.onMouseup(...A)), onMousemove: t[13] || (t[13] = (A) => e.getMouseXY(A, 0)) }, [ - X("span", { + J("span", { class: "spot", style: wn(e.spotStyle) }, t[14] || (t[14] = [ - X("i", { class: "spot-id" }, null, -1) + J("i", { class: "spot-id" }, null, -1) ]), 4), - t[15] || (t[15] = X("span", { class: "center-spot" }, null, -1)), - t[16] || (t[16] = X("div", { class: "x-hr" }, null, -1)), - t[17] || (t[17] = X("div", { class: "y-hr" }, null, -1)) + t[15] || (t[15] = J("span", { class: "center-spot" }, null, -1)), + t[16] || (t[16] = J("div", { class: "x-hr" }, null, -1)), + t[17] || (t[17] = J("div", { class: "y-hr" }, null, -1)) ], 34) ]) ]); } -const bL = /* @__PURE__ */ je(mL, [["render", yL]]); -const _L = Ve({ +const bL = /* @__PURE__ */ Ve(mL, [["render", yL]]); +const _L = Be({ name: "ShadowInput", emits: ["update:modelValue", "change"], components: { ConfigItem: si, ShadowContent: bL }, @@ -38411,30 +38418,30 @@ const _L = Ve({ } }), wL = { class: "_fd-shadow-input" }; function AL(e, t, i, r, n, a) { - const s = ne("el-dropdown-item"), u = ne("el-dropdown-menu"), d = ne("el-dropdown"), p = ne("el-input"), h = ne("ShadowContent"), g = ne("ConfigItem"); + const s = ee("el-dropdown-item"), u = ee("el-dropdown-menu"), d = ee("el-dropdown"), p = ee("el-input"), h = ee("ShadowContent"), g = ee("ConfigItem"); return H(), ae("div", wL, [ - W(g, { + z(g, { label: e.t("style.shadow.name") }, { append: N(() => [ - W(h, { + z(h, { modelValue: e.value, "onUpdate:modelValue": t[1] || (t[1] = (_) => e.value = _) }, null, 8, ["modelValue"]) ]), default: N(() => [ - W(p, { + z(p, { clearable: "", modelValue: e.value, "onUpdate:modelValue": t[0] || (t[0] = (_) => e.value = _), class: "_fd-si-input" }, { append: N(() => [ - W(d, null, { + z(d, null, { dropdown: N(() => [ - W(u, null, { + z(u, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.options, (_) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.options, (_) => (H(), me(s, { onClick: (S) => e.changeValue(_.value) }, { default: N(() => [ @@ -38447,7 +38454,7 @@ function AL(e, t, i, r, n, a) { }) ]), default: N(() => [ - t[2] || (t[2] = X("i", { class: "fc-icon icon-setting" }, null, -1)) + t[2] || (t[2] = J("i", { class: "fc-icon icon-setting" }, null, -1)) ]), _: 1 }) @@ -38459,8 +38466,8 @@ function AL(e, t, i, r, n, a) { }, 8, ["label"]) ]); } -const CL = /* @__PURE__ */ je(_L, [["render", AL]]); -const SL = Ve({ +const CL = /* @__PURE__ */ Ve(_L, [["render", AL]]); +const SL = Be({ name: "TableOptions", components: { ValueInput: wu }, emits: ["update:modelValue", "change"], @@ -38555,9 +38562,9 @@ const SL = Ve({ } }), EL = { class: "_td-table-opt" }, xL = ["onClick"], TL = { class: "_td-table-opt-handle" }; function kL(e, t, i, r, n, a) { - const s = ne("ValueInput"), u = ne("el-input"), d = ne("el-table-column"), p = ne("el-table"), h = ne("el-button"), g = ne("el-checkbox"); + const s = ee("ValueInput"), u = ee("el-input"), d = ee("el-table-column"), p = ee("el-table"), h = ee("el-button"), g = ee("el-checkbox"); return H(), ae("div", EL, [ - (H(), he(p, { + (H(), me(p, { data: e.value, key: e.checked ? "2" : "1", border: "", @@ -38565,19 +38572,19 @@ function kL(e, t, i, r, n, a) { style: { width: "100%" } }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.overColumn, (_, S) => (H(), he(d, { + (H(!0), ae(Me, null, ze(e.overColumn, (_, S) => (H(), me(d, { key: _.label + S, label: _.label }, { default: N((b) => [ - _.value ? (H(), he(s, { + _.value ? (H(), me(s, { key: 0, size: e.size || "small", modelValue: b.row[_.key], "onUpdate:modelValue": (A) => b.row[_.key] = A, onBlur: (A) => e.onInput(b.row), onChangeType: (A) => e.onInput(b.row) - }, null, 8, ["size", "modelValue", "onUpdate:modelValue", "onBlur", "onChangeType"])) : (H(), he(u, { + }, null, 8, ["size", "modelValue", "onUpdate:modelValue", "onBlur", "onChangeType"])) : (H(), me(u, { key: 1, size: e.size || "small", modelValue: b.row[_.key], @@ -38587,13 +38594,13 @@ function kL(e, t, i, r, n, a) { ]), _: 2 }, 1032, ["label"]))), 128)), - W(d, { + z(d, { width: "35", align: "center", fixed: "right" }, { default: N((_) => [ - X("i", { + J("i", { class: "fc-icon icon-delete", onClick: (S) => e.del(_.$index) }, null, 8, xL) @@ -38603,30 +38610,30 @@ function kL(e, t, i, r, n, a) { ]), _: 1 }, 8, ["data", "size"])), - X("div", TL, [ - !e.max || e.max > e.value.length ? (H(), he(h, { + J("div", TL, [ + !e.max || e.max > e.value.length ? (H(), me(h, { key: 0, link: "", type: "primary", onClick: e.add }, { default: N(() => [ - t[1] || (t[1] = X("i", { class: "fc-icon icon-add" }, null, -1)), + t[1] || (t[1] = J("i", { class: "fc-icon icon-add" }, null, -1)), be(" " + le(e.t("tableOptions.add")), 1) ]), _: 1 - }, 8, ["onClick"])) : ke("", !0), - e.keyValue ? (H(), he(g, { + }, 8, ["onClick"])) : Te("", !0), + e.keyValue ? (H(), me(g, { key: 1, modelValue: e.checked, "onUpdate:modelValue": t[0] || (t[0] = (_) => e.checked = _), label: e.t("tableOptions.keyValue") - }, null, 8, ["modelValue", "label"])) : ke("", !0) + }, null, 8, ["modelValue", "label"])) : Te("", !0) ]) ]); } -const bb = /* @__PURE__ */ je(SL, [["render", kL]]); -const OL = Ve({ +const bb = /* @__PURE__ */ Ve(SL, [["render", kL]]); +const OL = Be({ name: "BoxSpaceInput", components: { ConfigItem: si }, props: { @@ -38712,9 +38719,9 @@ const OL = Ve({ }), $L = { class: "_fd-box-space-input" }, RL = { class: "_padding" }, DL = { class: "_padding-title" }, IL = ["value"], FL = ["value"], PL = ["value"], ML = ["value"], LL = { class: "_fd-help" }, NL = { class: "_margin" }, BL = { class: "_margin-title" }, VL = { class: "_fd-help" }, jL = ["value"], UL = ["value"], HL = ["value"], zL = ["value"]; function WL(e, t, i, r, n, a) { return H(), ae("div", $L, [ - X("div", RL, [ - X("span", DL, le(e.t("style.margin")), 1), - X("input", { + J("div", RL, [ + J("span", DL, le(e.t("style.margin")), 1), + J("input", { class: "_fd-input _fd-top", placeholder: " ", value: e.boxStyle.marginTop, @@ -38722,7 +38729,7 @@ function WL(e, t, i, r, n, a) { onBlur: t[0] || (t[0] = (s) => e.setValue("margin", "Top", s)), onInput: t[1] || (t[1] = (s) => e.change("marginTop", s)) }, null, 40, IL), - X("input", { + J("input", { class: "_fd-input _fd-right", placeholder: " ", value: e.boxStyle.marginRight, @@ -38730,7 +38737,7 @@ function WL(e, t, i, r, n, a) { onBlur: t[2] || (t[2] = (s) => e.setValue("margin", "Right", s)), onInput: t[3] || (t[3] = (s) => e.change("marginRight", s)) }, null, 40, FL), - X("input", { + J("input", { class: "_fd-input _fd-bottom", placeholder: " ", value: e.boxStyle.marginBottom, @@ -38738,7 +38745,7 @@ function WL(e, t, i, r, n, a) { onBlur: t[4] || (t[4] = (s) => e.setValue("margin", "Bottom", s)), onInput: t[5] || (t[5] = (s) => e.change("marginBottom", s)) }, null, 40, PL), - X("input", { + J("input", { class: "_fd-input _fd-left", placeholder: " ", value: e.boxStyle.marginLeft, @@ -38746,33 +38753,33 @@ function WL(e, t, i, r, n, a) { onBlur: t[6] || (t[6] = (s) => e.setValue("margin", "Left", s)), onInput: t[7] || (t[7] = (s) => e.change("marginLeft", s)) }, null, 40, ML), - X("div", LL, [ - X("i", { - class: Xe(["fc-icon icon-link2", e.marginLock ? "active" : ""]), + J("div", LL, [ + J("i", { + class: qe(["fc-icon icon-link2", e.marginLock ? "active" : ""]), title: "lock", onClick: t[8] || (t[8] = (s) => e.lock("margin")) }, null, 2), - X("i", { + J("i", { class: "fc-icon icon-delete-circle", title: "clear", onClick: t[9] || (t[9] = (s) => e.clear("margin")) }) ]), - X("div", NL, [ - X("span", BL, le(e.t("style.padding")), 1), - X("div", VL, [ - X("i", { - class: Xe(["fc-icon icon-link2", e.paddingLock ? "active" : ""]), + J("div", NL, [ + J("span", BL, le(e.t("style.padding")), 1), + J("div", VL, [ + J("i", { + class: qe(["fc-icon icon-link2", e.paddingLock ? "active" : ""]), title: "lock", onClick: t[10] || (t[10] = (s) => e.lock("padding")) }, null, 2), - X("i", { + J("i", { class: "fc-icon icon-delete-circle", title: "clear", onClick: t[11] || (t[11] = (s) => e.clear("padding")) }) ]), - X("input", { + J("input", { class: "_fd-input _fd-top", placeholder: " ", value: e.boxStyle.paddingTop, @@ -38780,7 +38787,7 @@ function WL(e, t, i, r, n, a) { onBlur: t[12] || (t[12] = (s) => e.setValue("padding", "Top", s)), onInput: t[13] || (t[13] = (s) => e.change("paddingTop", s)) }, null, 40, jL), - X("input", { + J("input", { class: "_fd-input _fd-right", placeholder: " ", value: e.boxStyle.paddingRight, @@ -38788,7 +38795,7 @@ function WL(e, t, i, r, n, a) { onBlur: t[14] || (t[14] = (s) => e.setValue("padding", "Right", s)), onInput: t[15] || (t[15] = (s) => e.change("paddingRight", s)) }, null, 40, UL), - X("input", { + J("input", { class: "_fd-input _fd-bottom", placeholder: " ", value: e.boxStyle.paddingBottom, @@ -38796,7 +38803,7 @@ function WL(e, t, i, r, n, a) { onBlur: t[16] || (t[16] = (s) => e.setValue("padding", "Bottom", s)), onInput: t[17] || (t[17] = (s) => e.change("paddingBottom", s)) }, null, 40, HL), - X("input", { + J("input", { class: "_fd-input _fd-left", placeholder: " ", value: e.boxStyle.paddingLeft, @@ -38804,12 +38811,12 @@ function WL(e, t, i, r, n, a) { onBlur: t[18] || (t[18] = (s) => e.setValue("padding", "Left", s)), onInput: t[19] || (t[19] = (s) => e.change("paddingLeft", s)) }, null, 40, zL), - t[20] || (t[20] = X("div", { class: "_box" }, null, -1)) + t[20] || (t[20] = J("div", { class: "_box" }, null, -1)) ]) ]) ]); } -const GL = /* @__PURE__ */ je(OL, [["render", WL]]); +const GL = /* @__PURE__ */ Ve(OL, [["render", WL]]); const _b = [ "display", "flexDirection", @@ -38868,7 +38875,7 @@ const _b = [ ..._b, ...wb, ...Ab -], KL = Ve({ +], KL = Be({ name: "StyleConfig", inject: ["designer"], emits: ["update:modelValue"], @@ -38980,29 +38987,29 @@ const _b = [ } }), YL = { class: "_fd-style-config" }; function QL(e, t, i, r, n, a) { - const s = ne("BoxSpaceInput"), u = ne("BoxSizeInput"), d = ne("DisplayInput"), p = ne("ColorInput"), h = ne("ConfigItem"), g = ne("BorderInput"), _ = ne("RadiusInput"), S = ne("FontInput"), b = ne("ShadowInput"), A = ne("el-slider"), y = ne("TableOptions"); + const s = ee("BoxSpaceInput"), u = ee("BoxSizeInput"), d = ee("DisplayInput"), p = ee("ColorInput"), h = ee("ConfigItem"), g = ee("BorderInput"), _ = ee("RadiusInput"), S = ee("FontInput"), b = ee("ShadowInput"), A = ee("el-slider"), y = ee("TableOptions"); return H(), ae("div", YL, [ - W(s, { + z(s, { modelValue: e.space, "onUpdate:modelValue": t[0] || (t[0] = (m) => e.space = m), onChange: e.onInput, style: { "margin-bottom": "10px" } }, null, 8, ["modelValue", "onChange"]), - W(u, { + z(u, { modelValue: e.size, "onUpdate:modelValue": t[1] || (t[1] = (m) => e.size = m), onChange: e.onInput }, null, 8, ["modelValue", "onChange"]), - W(d, { + z(d, { modelValue: e.display, "onUpdate:modelValue": t[2] || (t[2] = (m) => e.display = m), onChange: e.onInput }, null, 8, ["modelValue", "onChange"]), - W(h, { + z(h, { label: e.t("style.color") }, { default: N(() => [ - W(p, { + z(p, { modelValue: e.color, "onUpdate:modelValue": t[3] || (t[3] = (m) => e.color = m), onChange: e.onInput @@ -39010,11 +39017,11 @@ function QL(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(h, { + z(h, { label: e.t("style.backgroundColor") }, { default: N(() => [ - W(p, { + z(p, { modelValue: e.backgroundColor, "onUpdate:modelValue": t[4] || (t[4] = (m) => e.backgroundColor = m), onChange: e.onInput @@ -39022,47 +39029,47 @@ function QL(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(g, { + z(g, { modelValue: e.border, "onUpdate:modelValue": t[5] || (t[5] = (m) => e.border = m), onChange: e.onInput }, null, 8, ["modelValue", "onChange"]), - W(_, { + z(_, { modelValue: e.radius, "onUpdate:modelValue": t[6] || (t[6] = (m) => e.radius = m), onChange: e.onInput }, null, 8, ["modelValue", "onChange"]), - W(S, { + z(S, { modelValue: e.font, "onUpdate:modelValue": t[7] || (t[7] = (m) => e.font = m), onChange: e.onInput }, null, 8, ["modelValue", "onChange"]), - W(b, { + z(b, { modelValue: e.boxShadow, "onUpdate:modelValue": t[8] || (t[8] = (m) => e.boxShadow = m), onChange: e.onInput }, null, 8, ["modelValue", "onChange"]), - W(h, { + z(h, { label: e.t("style.opacity"), class: "_fd-opacity-input" }, { default: N(() => [ - W(A, { + z(A, { "show-tooltip": !1, modelValue: e.opacity, "onUpdate:modelValue": t[9] || (t[9] = (m) => e.opacity = m), onChange: e.onInput }, null, 8, ["modelValue", "onChange"]), - X("span", null, le(e.opacity) + "%", 1) + J("span", null, le(e.opacity) + "%", 1) ]), _: 1 }, 8, ["label"]), - W(h, { + z(h, { label: e.t("style.scale"), class: "_fd-opacity-input" }, { default: N(() => [ - W(A, { + z(A, { min: 80, max: 120, "show-tooltip": !1, @@ -39070,16 +39077,16 @@ function QL(e, t, i, r, n, a) { "onUpdate:modelValue": t[10] || (t[10] = (m) => e.scale = m), onChange: e.onInput }, null, 8, ["modelValue", "onChange"]), - X("span", null, le(e.scale) + "%", 1) + J("span", null, le(e.scale) + "%", 1) ]), _: 1 }, 8, ["label"]), - W(h, { + z(h, { label: e.t("props.custom"), info: Object.keys(e.formData).length > 0 ? e.t("struct.configured") : "" }, { append: N(() => [ - W(y, jt({ + z(y, jt({ modelValue: e.formData, "onUpdate:modelValue": t[11] || (t[11] = (m) => e.formData = m), onChange: e.onInput @@ -39092,7 +39099,7 @@ function QL(e, t, i, r, n, a) { }, 8, ["label", "info"]) ]); } -const Cb = /* @__PURE__ */ je(KL, [["render", QL]]); +const Cb = /* @__PURE__ */ Ve(KL, [["render", QL]]); (function(e, t) { (function(i) { i(to.exports); @@ -39100,186 +39107,186 @@ const Cb = /* @__PURE__ */ je(KL, [["render", QL]]); i.defineMode("css", function(T, D) { var V = D.inline; D.propertyKeywords || (D = i.resolveMode("text/css")); - var K = T.indentUnit, G = D.tokenHooks, R = D.documentTypes || {}, z = D.mediaTypes || {}, C = D.mediaFeatures || {}, F = D.mediaValueKeywords || {}, q = D.propertyKeywords || {}, Z = D.nonStandardPropertyKeywords || {}, Y = D.fontProperties || {}, J = D.counterDescriptors || {}, ve = D.colorKeywords || {}, pe = D.valueKeywords || {}, Te = D.allowNested, ge = D.lineComment, me = D.supportsAtComponent === !0, we = T.highlightNonStandardPropertyKeywords !== !1, ce, Se; - function I(Ee, Pe) { - return ce = Pe, Ee; + var W = T.indentUnit, G = D.tokenHooks, I = D.documentTypes || {}, U = D.mediaTypes || {}, F = D.mediaFeatures || {}, C = D.mediaValueKeywords || {}, q = D.propertyKeywords || {}, Z = D.nonStandardPropertyKeywords || {}, Y = D.fontProperties || {}, ue = D.counterDescriptors || {}, te = D.colorKeywords || {}, pe = D.valueKeywords || {}, ke = D.allowNested, ge = D.lineComment, ve = D.supportsAtComponent === !0, we = T.highlightNonStandardPropertyKeywords !== !1, he, Se; + function xe(_e, Le) { + return he = Le, _e; } - function j(Ee, Pe) { - var Oe = Ee.next(); + function $(_e, Le) { + var Oe = _e.next(); if (G[Oe]) { - var nt = G[Oe](Ee, Pe); - if (nt !== !1) - return nt; + var it = G[Oe](_e, Le); + if (it !== !1) + return it; } if (Oe == "@") - return Ee.eatWhile(/[\w\\\-]/), I("def", Ee.current()); - if (Oe == "=" || (Oe == "~" || Oe == "|") && Ee.eat("=")) - return I(null, "compare"); + return _e.eatWhile(/[\w\\\-]/), xe("def", _e.current()); + if (Oe == "=" || (Oe == "~" || Oe == "|") && _e.eat("=")) + return xe(null, "compare"); if (Oe == '"' || Oe == "'") - return Pe.tokenize = ee(Oe), Pe.tokenize(Ee, Pe); + return Le.tokenize = K(Oe), Le.tokenize(_e, Le); if (Oe == "#") - return Ee.eatWhile(/[\w\\\-]/), I("atom", "hash"); + return _e.eatWhile(/[\w\\\-]/), xe("atom", "hash"); if (Oe == "!") - return Ee.match(/^\s*\w*/), I("keyword", "important"); - if (/\d/.test(Oe) || Oe == "." && Ee.eat(/\d/)) - return Ee.eatWhile(/[\w.%]/), I("number", "unit"); + return _e.match(/^\s*\w*/), xe("keyword", "important"); + if (/\d/.test(Oe) || Oe == "." && _e.eat(/\d/)) + return _e.eatWhile(/[\w.%]/), xe("number", "unit"); if (Oe === "-") { - if (/[\d.]/.test(Ee.peek())) - return Ee.eatWhile(/[\w.%]/), I("number", "unit"); - if (Ee.match(/^-[\w\\\-]*/)) - return Ee.eatWhile(/[\w\\\-]/), Ee.match(/^\s*:/, !1) ? I("variable-2", "variable-definition") : I("variable-2", "variable"); - if (Ee.match(/^\w+-/)) - return I("meta", "meta"); + if (/[\d.]/.test(_e.peek())) + return _e.eatWhile(/[\w.%]/), xe("number", "unit"); + if (_e.match(/^-[\w\\\-]*/)) + return _e.eatWhile(/[\w\\\-]/), _e.match(/^\s*:/, !1) ? xe("variable-2", "variable-definition") : xe("variable-2", "variable"); + if (_e.match(/^\w+-/)) + return xe("meta", "meta"); } else - return /[,+>*\/]/.test(Oe) ? I(null, "select-op") : Oe == "." && Ee.match(/^-?[_a-z][_a-z0-9-]*/i) ? I("qualifier", "qualifier") : /[:;{}\[\]\(\)]/.test(Oe) ? I(null, Oe) : Ee.match(/^[\w-.]+(?=\()/) ? (/^(url(-prefix)?|domain|regexp)$/i.test(Ee.current()) && (Pe.tokenize = te), I("variable callee", "variable")) : /[\w\\\-]/.test(Oe) ? (Ee.eatWhile(/[\w\\\-]/), I("property", "word")) : I(null, null); + return /[,+>*\/]/.test(Oe) ? xe(null, "select-op") : Oe == "." && _e.match(/^-?[_a-z][_a-z0-9-]*/i) ? xe("qualifier", "qualifier") : /[:;{}\[\]\(\)]/.test(Oe) ? xe(null, Oe) : _e.match(/^[\w-.]+(?=\()/) ? (/^(url(-prefix)?|domain|regexp)$/i.test(_e.current()) && (Le.tokenize = X), xe("variable callee", "variable")) : /[\w\\\-]/.test(Oe) ? (_e.eatWhile(/[\w\\\-]/), xe("property", "word")) : xe(null, null); } - function ee(Ee) { - return function(Pe, Oe) { - for (var nt = !1, De; (De = Pe.next()) != null; ) { - if (De == Ee && !nt) { - Ee == ")" && Pe.backUp(1); + function K(_e) { + return function(Le, Oe) { + for (var it = !1, pt; (pt = Le.next()) != null; ) { + if (pt == _e && !it) { + _e == ")" && Le.backUp(1); break; } - nt = !nt && De == "\\"; + it = !it && pt == "\\"; } - return (De == Ee || !nt && Ee != ")") && (Oe.tokenize = null), I("string", "string"); + return (pt == _e || !it && _e != ")") && (Oe.tokenize = null), xe("string", "string"); }; } - function te(Ee, Pe) { - return Ee.next(), Ee.match(/^\s*[\"\')]/, !1) ? Pe.tokenize = null : Pe.tokenize = ee(")"), I(null, "("); + function X(_e, Le) { + return _e.next(), _e.match(/^\s*[\"\')]/, !1) ? Le.tokenize = null : Le.tokenize = K(")"), xe(null, "("); } - function se(Ee, Pe, Oe) { - this.type = Ee, this.indent = Pe, this.prev = Oe; + function ie(_e, Le, Oe) { + this.type = _e, this.indent = Le, this.prev = Oe; } - function oe(Ee, Pe, Oe, nt) { - return Ee.context = new se(Oe, Pe.indentation() + (nt === !1 ? 0 : K), Ee.context), Oe; + function re(_e, Le, Oe, it) { + return _e.context = new ie(Oe, Le.indentation() + (it === !1 ? 0 : W), _e.context), Oe; } - function _e(Ee) { - return Ee.context.prev && (Ee.context = Ee.context.prev), Ee.context.type; + function fe(_e) { + return _e.context.prev && (_e.context = _e.context.prev), _e.context.type; } - function Ae(Ee, Pe, Oe) { - return ze[Oe.context.type](Ee, Pe, Oe); + function Ae(_e, Le, Oe) { + return Ze[Oe.context.type](_e, Le, Oe); } - function Be(Ee, Pe, Oe, nt) { - for (var De = nt || 1; De > 0; De--) + function Fe(_e, Le, Oe, it) { + for (var pt = it || 1; pt > 0; pt--) Oe.context = Oe.context.prev; - return Ae(Ee, Pe, Oe); + return Ae(_e, Le, Oe); } - function ct(Ee) { - var Pe = Ee.current().toLowerCase(); - pe.hasOwnProperty(Pe) ? Se = "atom" : ve.hasOwnProperty(Pe) ? Se = "keyword" : Se = "variable"; + function Xe(_e) { + var Le = _e.current().toLowerCase(); + pe.hasOwnProperty(Le) ? Se = "atom" : te.hasOwnProperty(Le) ? Se = "keyword" : Se = "variable"; } - var ze = {}; - return ze.top = function(Ee, Pe, Oe) { - if (Ee == "{") - return oe(Oe, Pe, "block"); - if (Ee == "}" && Oe.context.prev) - return _e(Oe); - if (me && /@component/i.test(Ee)) - return oe(Oe, Pe, "atComponentBlock"); - if (/^@(-moz-)?document$/i.test(Ee)) - return oe(Oe, Pe, "documentTypes"); - if (/^@(media|supports|(-moz-)?document|import)$/i.test(Ee)) - return oe(Oe, Pe, "atBlock"); - if (/^@(font-face|counter-style)/i.test(Ee)) - return Oe.stateArg = Ee, "restricted_atBlock_before"; - if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Ee)) + var Ze = {}; + return Ze.top = function(_e, Le, Oe) { + if (_e == "{") + return re(Oe, Le, "block"); + if (_e == "}" && Oe.context.prev) + return fe(Oe); + if (ve && /@component/i.test(_e)) + return re(Oe, Le, "atComponentBlock"); + if (/^@(-moz-)?document$/i.test(_e)) + return re(Oe, Le, "documentTypes"); + if (/^@(media|supports|(-moz-)?document|import)$/i.test(_e)) + return re(Oe, Le, "atBlock"); + if (/^@(font-face|counter-style)/i.test(_e)) + return Oe.stateArg = _e, "restricted_atBlock_before"; + if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(_e)) return "keyframes"; - if (Ee && Ee.charAt(0) == "@") - return oe(Oe, Pe, "at"); - if (Ee == "hash") + if (_e && _e.charAt(0) == "@") + return re(Oe, Le, "at"); + if (_e == "hash") Se = "builtin"; - else if (Ee == "word") + else if (_e == "word") Se = "tag"; else { - if (Ee == "variable-definition") + if (_e == "variable-definition") return "maybeprop"; - if (Ee == "interpolation") - return oe(Oe, Pe, "interpolation"); - if (Ee == ":") + if (_e == "interpolation") + return re(Oe, Le, "interpolation"); + if (_e == ":") return "pseudo"; - if (Te && Ee == "(") - return oe(Oe, Pe, "parens"); + if (ke && _e == "(") + return re(Oe, Le, "parens"); } return Oe.context.type; - }, ze.block = function(Ee, Pe, Oe) { - if (Ee == "word") { - var nt = Pe.current().toLowerCase(); - return q.hasOwnProperty(nt) ? (Se = "property", "maybeprop") : Z.hasOwnProperty(nt) ? (Se = we ? "string-2" : "property", "maybeprop") : Te ? (Se = Pe.match(/^\s*:(?:\s|$)/, !1) ? "property" : "tag", "block") : (Se += " error", "maybeprop"); + }, Ze.block = function(_e, Le, Oe) { + if (_e == "word") { + var it = Le.current().toLowerCase(); + return q.hasOwnProperty(it) ? (Se = "property", "maybeprop") : Z.hasOwnProperty(it) ? (Se = we ? "string-2" : "property", "maybeprop") : ke ? (Se = Le.match(/^\s*:(?:\s|$)/, !1) ? "property" : "tag", "block") : (Se += " error", "maybeprop"); } else - return Ee == "meta" ? "block" : !Te && (Ee == "hash" || Ee == "qualifier") ? (Se = "error", "block") : ze.top(Ee, Pe, Oe); - }, ze.maybeprop = function(Ee, Pe, Oe) { - return Ee == ":" ? oe(Oe, Pe, "prop") : Ae(Ee, Pe, Oe); - }, ze.prop = function(Ee, Pe, Oe) { - if (Ee == ";") - return _e(Oe); - if (Ee == "{" && Te) - return oe(Oe, Pe, "propBlock"); - if (Ee == "}" || Ee == "{") - return Be(Ee, Pe, Oe); - if (Ee == "(") - return oe(Oe, Pe, "parens"); - if (Ee == "hash" && !/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(Pe.current())) + return _e == "meta" ? "block" : !ke && (_e == "hash" || _e == "qualifier") ? (Se = "error", "block") : Ze.top(_e, Le, Oe); + }, Ze.maybeprop = function(_e, Le, Oe) { + return _e == ":" ? re(Oe, Le, "prop") : Ae(_e, Le, Oe); + }, Ze.prop = function(_e, Le, Oe) { + if (_e == ";") + return fe(Oe); + if (_e == "{" && ke) + return re(Oe, Le, "propBlock"); + if (_e == "}" || _e == "{") + return Fe(_e, Le, Oe); + if (_e == "(") + return re(Oe, Le, "parens"); + if (_e == "hash" && !/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(Le.current())) Se += " error"; - else if (Ee == "word") - ct(Pe); - else if (Ee == "interpolation") - return oe(Oe, Pe, "interpolation"); + else if (_e == "word") + Xe(Le); + else if (_e == "interpolation") + return re(Oe, Le, "interpolation"); return "prop"; - }, ze.propBlock = function(Ee, Pe, Oe) { - return Ee == "}" ? _e(Oe) : Ee == "word" ? (Se = "property", "maybeprop") : Oe.context.type; - }, ze.parens = function(Ee, Pe, Oe) { - return Ee == "{" || Ee == "}" ? Be(Ee, Pe, Oe) : Ee == ")" ? _e(Oe) : Ee == "(" ? oe(Oe, Pe, "parens") : Ee == "interpolation" ? oe(Oe, Pe, "interpolation") : (Ee == "word" && ct(Pe), "parens"); - }, ze.pseudo = function(Ee, Pe, Oe) { - return Ee == "meta" ? "pseudo" : Ee == "word" ? (Se = "variable-3", Oe.context.type) : Ae(Ee, Pe, Oe); - }, ze.documentTypes = function(Ee, Pe, Oe) { - return Ee == "word" && R.hasOwnProperty(Pe.current()) ? (Se = "tag", Oe.context.type) : ze.atBlock(Ee, Pe, Oe); - }, ze.atBlock = function(Ee, Pe, Oe) { - if (Ee == "(") - return oe(Oe, Pe, "atBlock_parens"); - if (Ee == "}" || Ee == ";") - return Be(Ee, Pe, Oe); - if (Ee == "{") - return _e(Oe) && oe(Oe, Pe, Te ? "block" : "top"); - if (Ee == "interpolation") - return oe(Oe, Pe, "interpolation"); - if (Ee == "word") { - var nt = Pe.current().toLowerCase(); - nt == "only" || nt == "not" || nt == "and" || nt == "or" ? Se = "keyword" : z.hasOwnProperty(nt) ? Se = "attribute" : C.hasOwnProperty(nt) ? Se = "property" : F.hasOwnProperty(nt) ? Se = "keyword" : q.hasOwnProperty(nt) ? Se = "property" : Z.hasOwnProperty(nt) ? Se = we ? "string-2" : "property" : pe.hasOwnProperty(nt) ? Se = "atom" : ve.hasOwnProperty(nt) ? Se = "keyword" : Se = "error"; + }, Ze.propBlock = function(_e, Le, Oe) { + return _e == "}" ? fe(Oe) : _e == "word" ? (Se = "property", "maybeprop") : Oe.context.type; + }, Ze.parens = function(_e, Le, Oe) { + return _e == "{" || _e == "}" ? Fe(_e, Le, Oe) : _e == ")" ? fe(Oe) : _e == "(" ? re(Oe, Le, "parens") : _e == "interpolation" ? re(Oe, Le, "interpolation") : (_e == "word" && Xe(Le), "parens"); + }, Ze.pseudo = function(_e, Le, Oe) { + return _e == "meta" ? "pseudo" : _e == "word" ? (Se = "variable-3", Oe.context.type) : Ae(_e, Le, Oe); + }, Ze.documentTypes = function(_e, Le, Oe) { + return _e == "word" && I.hasOwnProperty(Le.current()) ? (Se = "tag", Oe.context.type) : Ze.atBlock(_e, Le, Oe); + }, Ze.atBlock = function(_e, Le, Oe) { + if (_e == "(") + return re(Oe, Le, "atBlock_parens"); + if (_e == "}" || _e == ";") + return Fe(_e, Le, Oe); + if (_e == "{") + return fe(Oe) && re(Oe, Le, ke ? "block" : "top"); + if (_e == "interpolation") + return re(Oe, Le, "interpolation"); + if (_e == "word") { + var it = Le.current().toLowerCase(); + it == "only" || it == "not" || it == "and" || it == "or" ? Se = "keyword" : U.hasOwnProperty(it) ? Se = "attribute" : F.hasOwnProperty(it) ? Se = "property" : C.hasOwnProperty(it) ? Se = "keyword" : q.hasOwnProperty(it) ? Se = "property" : Z.hasOwnProperty(it) ? Se = we ? "string-2" : "property" : pe.hasOwnProperty(it) ? Se = "atom" : te.hasOwnProperty(it) ? Se = "keyword" : Se = "error"; } return Oe.context.type; - }, ze.atComponentBlock = function(Ee, Pe, Oe) { - return Ee == "}" ? Be(Ee, Pe, Oe) : Ee == "{" ? _e(Oe) && oe(Oe, Pe, Te ? "block" : "top", !1) : (Ee == "word" && (Se = "error"), Oe.context.type); - }, ze.atBlock_parens = function(Ee, Pe, Oe) { - return Ee == ")" ? _e(Oe) : Ee == "{" || Ee == "}" ? Be(Ee, Pe, Oe, 2) : ze.atBlock(Ee, Pe, Oe); - }, ze.restricted_atBlock_before = function(Ee, Pe, Oe) { - return Ee == "{" ? oe(Oe, Pe, "restricted_atBlock") : Ee == "word" && Oe.stateArg == "@counter-style" ? (Se = "variable", "restricted_atBlock_before") : Ae(Ee, Pe, Oe); - }, ze.restricted_atBlock = function(Ee, Pe, Oe) { - return Ee == "}" ? (Oe.stateArg = null, _e(Oe)) : Ee == "word" ? (Oe.stateArg == "@font-face" && !Y.hasOwnProperty(Pe.current().toLowerCase()) || Oe.stateArg == "@counter-style" && !J.hasOwnProperty(Pe.current().toLowerCase()) ? Se = "error" : Se = "property", "maybeprop") : "restricted_atBlock"; - }, ze.keyframes = function(Ee, Pe, Oe) { - return Ee == "word" ? (Se = "variable", "keyframes") : Ee == "{" ? oe(Oe, Pe, "top") : Ae(Ee, Pe, Oe); - }, ze.at = function(Ee, Pe, Oe) { - return Ee == ";" ? _e(Oe) : Ee == "{" || Ee == "}" ? Be(Ee, Pe, Oe) : (Ee == "word" ? Se = "tag" : Ee == "hash" && (Se = "builtin"), "at"); - }, ze.interpolation = function(Ee, Pe, Oe) { - return Ee == "}" ? _e(Oe) : Ee == "{" || Ee == ";" ? Be(Ee, Pe, Oe) : (Ee == "word" ? Se = "variable" : Ee != "variable" && Ee != "(" && Ee != ")" && (Se = "error"), "interpolation"); + }, Ze.atComponentBlock = function(_e, Le, Oe) { + return _e == "}" ? Fe(_e, Le, Oe) : _e == "{" ? fe(Oe) && re(Oe, Le, ke ? "block" : "top", !1) : (_e == "word" && (Se = "error"), Oe.context.type); + }, Ze.atBlock_parens = function(_e, Le, Oe) { + return _e == ")" ? fe(Oe) : _e == "{" || _e == "}" ? Fe(_e, Le, Oe, 2) : Ze.atBlock(_e, Le, Oe); + }, Ze.restricted_atBlock_before = function(_e, Le, Oe) { + return _e == "{" ? re(Oe, Le, "restricted_atBlock") : _e == "word" && Oe.stateArg == "@counter-style" ? (Se = "variable", "restricted_atBlock_before") : Ae(_e, Le, Oe); + }, Ze.restricted_atBlock = function(_e, Le, Oe) { + return _e == "}" ? (Oe.stateArg = null, fe(Oe)) : _e == "word" ? (Oe.stateArg == "@font-face" && !Y.hasOwnProperty(Le.current().toLowerCase()) || Oe.stateArg == "@counter-style" && !ue.hasOwnProperty(Le.current().toLowerCase()) ? Se = "error" : Se = "property", "maybeprop") : "restricted_atBlock"; + }, Ze.keyframes = function(_e, Le, Oe) { + return _e == "word" ? (Se = "variable", "keyframes") : _e == "{" ? re(Oe, Le, "top") : Ae(_e, Le, Oe); + }, Ze.at = function(_e, Le, Oe) { + return _e == ";" ? fe(Oe) : _e == "{" || _e == "}" ? Fe(_e, Le, Oe) : (_e == "word" ? Se = "tag" : _e == "hash" && (Se = "builtin"), "at"); + }, Ze.interpolation = function(_e, Le, Oe) { + return _e == "}" ? fe(Oe) : _e == "{" || _e == ";" ? Fe(_e, Le, Oe) : (_e == "word" ? Se = "variable" : _e != "variable" && _e != "(" && _e != ")" && (Se = "error"), "interpolation"); }, { - startState: function(Ee) { + startState: function(_e) { return { tokenize: null, state: V ? "block" : "top", stateArg: null, - context: new se(V ? "block" : "top", Ee || 0, null) + context: new ie(V ? "block" : "top", _e || 0, null) }; }, - token: function(Ee, Pe) { - if (!Pe.tokenize && Ee.eatSpace()) + token: function(_e, Le) { + if (!Le.tokenize && _e.eatSpace()) return null; - var Oe = (Pe.tokenize || j)(Ee, Pe); - return Oe && typeof Oe == "object" && (ce = Oe[1], Oe = Oe[0]), Se = Oe, ce != "comment" && (Pe.state = ze[Pe.state](ce, Ee, Pe)), Se; + var Oe = (Le.tokenize || $)(_e, Le); + return Oe && typeof Oe == "object" && (he = Oe[1], Oe = Oe[0]), Se = Oe, he != "comment" && (Le.state = Ze[Le.state](he, _e, Le)), Se; }, - indent: function(Ee, Pe) { - var Oe = Ee.context, nt = Pe && Pe.charAt(0), De = Oe.indent; - return Oe.type == "prop" && (nt == "}" || nt == ")") && (Oe = Oe.prev), Oe.prev && (nt == "}" && (Oe.type == "block" || Oe.type == "top" || Oe.type == "interpolation" || Oe.type == "restricted_atBlock") ? (Oe = Oe.prev, De = Oe.indent) : (nt == ")" && (Oe.type == "parens" || Oe.type == "atBlock_parens") || nt == "{" && (Oe.type == "at" || Oe.type == "atBlock")) && (De = Math.max(0, Oe.indent - K))), De; + indent: function(_e, Le) { + var Oe = _e.context, it = Le && Le.charAt(0), pt = Oe.indent; + return Oe.type == "prop" && (it == "}" || it == ")") && (Oe = Oe.prev), Oe.prev && (it == "}" && (Oe.type == "block" || Oe.type == "top" || Oe.type == "interpolation" || Oe.type == "restricted_atBlock") ? (Oe = Oe.prev, pt = Oe.indent) : (it == ")" && (Oe.type == "parens" || Oe.type == "atBlock_parens") || it == "{" && (Oe.type == "at" || Oe.type == "atBlock")) && (pt = Math.max(0, Oe.indent - W))), pt; }, electricChars: "}", blockCommentStart: "/*", @@ -40040,7 +40047,7 @@ const Cb = /* @__PURE__ */ je(KL, [["render", QL]]); "whitesmoke", "yellow", "yellowgreen" - ], k = r(x), $ = [ + ], k = r(x), R = [ "above", "absolute", "activeborder", @@ -40560,15 +40567,15 @@ const Cb = /* @__PURE__ */ je(KL, [["render", QL]]); "xor", "xx-large", "xx-small" - ], M = r($), P = n.concat(s).concat(d).concat(h).concat(_).concat(b).concat(x).concat($); + ], M = r(R), P = n.concat(s).concat(d).concat(h).concat(_).concat(b).concat(x).concat(R); i.registerHelper("hintWords", "css", P); function B(T, D) { - for (var V = !1, K; (K = T.next()) != null; ) { - if (V && K == "/") { + for (var V = !1, W; (W = T.next()) != null; ) { + if (V && W == "/") { D.tokenize = null; break; } - V = K == "*"; + V = W == "*"; } return ["comment", "comment"]; } @@ -40661,7 +40668,7 @@ const Cb = /* @__PURE__ */ je(KL, [["render", QL]]); }); }); })(); -const JL = Ve({ +const JL = Be({ name: "StyleEditor", props: { modelValue: String @@ -40704,11 +40711,11 @@ const JL = Ve({ }), XL = { class: "_fd-style-editor" }, ZL = { ref: "editor" }; function qL(e, t, i, r, n, a) { return H(), ae("div", XL, [ - X("div", ZL, null, 512) + J("div", ZL, null, 512) ]); } -const eN = /* @__PURE__ */ je(JL, [["render", qL]]); -const tN = Ve({ +const eN = /* @__PURE__ */ Ve(JL, [["render", qL]]); +const tN = Be({ name: "GlobalClassConfig", emits: ["update:modelValue"], props: { @@ -40771,7 +40778,7 @@ const tN = Ve({ addCus() { const e = this.cusValue && this.cusValue.trim(); if (e) { - const t = "cls_" + it(); + const t = "cls_" + rt(); this.value[t] = { label: e, style: {} @@ -40818,15 +40825,15 @@ const tN = Ve({ class: "_fd-label" }, sN = ["onClick"]; function uN(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-badge"), d = ne("Warning"), p = ne("el-header"), h = ne("el-menu-item"), g = ne("el-input"), _ = ne("el-menu"), S = ne("el-main"), b = ne("el-container"), A = ne("el-aside"), y = ne("StyleEditor"), m = ne("StyleConfig"), w = ne("el-form"), E = ne("el-dialog"); + const s = ee("el-button"), u = ee("el-badge"), d = ee("Warning"), p = ee("el-header"), h = ee("el-menu-item"), g = ee("el-input"), _ = ee("el-menu"), S = ee("el-main"), b = ee("el-container"), A = ee("el-aside"), y = ee("StyleEditor"), m = ee("StyleConfig"), w = ee("el-form"), E = ee("el-dialog"); return H(), ae("div", nN, [ - W(u, { + z(u, { value: e.eventNum, type: "warning", hidden: e.eventNum < 1 }, { default: N(() => [ - W(s, { + z(s, { class: "_fd-plain-button", plain: "", onClick: e.open, @@ -40840,7 +40847,7 @@ function uN(e, t, i, r, n, a) { ]), _: 1 }, 8, ["value", "hidden"]), - W(E, { + z(E, { class: "_fd-gcc-dialog _fd-config-dialog", modelValue: e.visible, "onUpdate:modelValue": t[8] || (t[8] = (x) => e.visible = x), @@ -40851,13 +40858,13 @@ function uN(e, t, i, r, n, a) { }, { header: N(() => [ be(le(e.t("form.globalClass")) + " ", 1), - W(d, { + z(d, { tooltip: e.t("warning.globalClass") }, null, 8, ["tooltip"]) ]), footer: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { size: "default", onClick: t[7] || (t[7] = (x) => e.visible = !1) }, { @@ -40866,7 +40873,7 @@ function uN(e, t, i, r, n, a) { ]), _: 1 }), - W(s, { + z(s, { type: "primary", size: "default", onClick: e.submit @@ -40879,21 +40886,21 @@ function uN(e, t, i, r, n, a) { ]) ]), default: N(() => [ - W(b, { + z(b, { class: "_fd-gcc-con", style: { height: "600px" } }, { default: N(() => [ - W(A, { style: { width: "255px" } }, { + z(A, { style: { width: "255px" } }, { default: N(() => [ - W(b, { class: "_fd-gcc-l" }, { + z(b, { class: "_fd-gcc-l" }, { default: N(() => [ - W(p, { + z(p, { class: "_fd-gcc-head", height: "40px" }, { default: N(() => [ - W(s, { + z(s, { link: "", type: "primary", size: "default", @@ -40907,57 +40914,57 @@ function uN(e, t, i, r, n, a) { ]), _: 1 }), - W(S, null, { + z(S, null, { default: N(() => [ - W(_, null, { + z(_, null, { default: N(() => [ - W(h, { - class: Xe({ "is-active": e.activeStyle, "_fd-gcc-default": !0 }) + z(h, { + class: qe({ "is-active": e.activeStyle, "_fd-gcc-default": !0 }) }, { default: N(() => [ - X("div", { + J("div", { class: "_fd-gcc-title", onClick: t[0] || (t[0] = vt((...x) => e.changeStyle && e.changeStyle(...x), ["stop"])) }, [ - X("div", iN, [ - X("span", rN, le(e.t("form.globalClass")), 1) + J("div", iN, [ + J("span", rN, le(e.t("form.globalClass")), 1) ]) ]) ]), _: 1 }, 8, ["class"]), - (H(!0), ae(Me, null, We(e.value, (x, k) => (H(), he(h, { - class: Xe({ "is-active": k === e.activeIdx }) + (H(!0), ae(Me, null, ze(e.value, (x, k) => (H(), me(h, { + class: qe({ "is-active": k === e.activeIdx }) }, { default: N(() => [ - X("div", { + J("div", { class: "_fd-gcc-title", - onClick: vt(($) => e.active(k), ["stop"]) + onClick: vt((R) => e.active(k), ["stop"]) }, [ - X("div", aN, [ - X("span", null, "." + le(k), 1), - x.label ? (H(), ae("span", lN, le(x.label), 1)) : ke("", !0) + J("div", aN, [ + J("span", null, "." + le(k), 1), + x.label ? (H(), ae("span", lN, le(x.label), 1)) : Te("", !0) ]), x.deletable !== !1 ? (H(), ae("i", { key: 0, class: "fc-icon icon-delete", - onClick: vt(($) => e.rm(k), ["stop"]) - }, null, 8, sN)) : ke("", !0) + onClick: vt((R) => e.rm(k), ["stop"]) + }, null, 8, sN)) : Te("", !0) ], 8, oN) ]), _: 2 }, 1032, ["class"]))), 256)), - e.cus ? (H(), he(h, { + e.cus ? (H(), me(h, { key: 0, style: { "padding-left": "10px" } }, { default: N(() => [ - X("div", { + J("div", { class: "_fd-gcc-title", onClick: t[4] || (t[4] = vt(() => { }, ["stop"])) }, [ - W(g, { + z(g, { type: "text", modelValue: e.cusValue, "onUpdate:modelValue": t[1] || (t[1] = (x) => e.cusValue = x), @@ -40965,12 +40972,12 @@ function uN(e, t, i, r, n, a) { onKeydown: al(e.addCus, ["enter"]), placeholder: e.t("class.placeholder") }, null, 8, ["modelValue", "onKeydown", "placeholder"]), - X("div", null, [ - X("i", { + J("div", null, [ + J("i", { class: "fc-icon icon-add", onClick: t[2] || (t[2] = vt((...x) => e.addCus && e.addCus(...x), ["stop"])) }), - X("i", { + J("i", { class: "fc-icon icon-delete", onClick: t[3] || (t[3] = vt((...x) => e.closeCus && e.closeCus(...x), ["stop"])) }) @@ -40978,7 +40985,7 @@ function uN(e, t, i, r, n, a) { ]) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ]), _: 1 }) @@ -40991,17 +40998,17 @@ function uN(e, t, i, r, n, a) { ]), _: 1 }), - W(S, null, { + z(S, null, { default: N(() => [ - W(b, { class: "_fd-gcc-r" }, { + z(b, { class: "_fd-gcc-r" }, { default: N(() => [ - e.activeIdx || e.activeStyle ? (H(), he(p, { + e.activeIdx || e.activeStyle ? (H(), me(p, { key: 0, class: "_fd-gcc-head", height: "40px" }, { default: N(() => [ - W(s, { + z(s, { size: "small", onClick: e.close }, { @@ -41010,7 +41017,7 @@ function uN(e, t, i, r, n, a) { ]), _: 1 }, 8, ["onClick"]), - W(s, { + z(s, { size: "small", type: "primary", onClick: e.save @@ -41022,23 +41029,23 @@ function uN(e, t, i, r, n, a) { }, 8, ["onClick"]) ]), _: 1 - })) : ke("", !0), - e.activeIdx || e.activeStyle ? (H(), he(S, { + })) : Te("", !0), + e.activeIdx || e.activeStyle ? (H(), me(S, { key: e.activeIdx, - class: Xe(e.activeStyle ? "_fd-gcc-style" : "") + class: qe(e.activeStyle ? "_fd-gcc-style" : "") }, { default: N(() => [ - e.activeStyle ? (H(), he(y, { + e.activeStyle ? (H(), me(y, { key: 0, ref: "editor", modelValue: e.content, "onUpdate:modelValue": t[5] || (t[5] = (x) => e.content = x) - }, null, 8, ["modelValue"])) : (H(), he(w, { + }, null, 8, ["modelValue"])) : (H(), me(w, { key: 1, size: "small" }, { default: N(() => [ - W(m, { + z(m, { modelValue: e.handle, "onUpdate:modelValue": t[6] || (t[6] = (x) => e.handle = x) }, null, 8, ["modelValue"]) @@ -41047,7 +41054,7 @@ function uN(e, t, i, r, n, a) { })) ]), _: 1 - }, 8, ["class"])) : ke("", !0) + }, 8, ["class"])) : Te("", !0) ]), _: 1 }) @@ -41062,8 +41069,8 @@ function uN(e, t, i, r, n, a) { }, 8, ["modelValue"]) ]); } -const Sb = /* @__PURE__ */ je(tN, [["render", uN]]); -const dN = Ve({ +const Sb = /* @__PURE__ */ Ve(tN, [["render", uN]]); +const dN = Be({ name: "GlobalVariableConfig", emits: ["update:modelValue"], props: { @@ -41107,7 +41114,7 @@ const dN = Ve({ addCus() { const e = this.cusValue && this.cusValue.trim(); if (e) { - const t = "var_" + it(); + const t = "var_" + rt(); this.value[t] = { label: e, handle: "" @@ -41140,15 +41147,15 @@ const dN = Ve({ class: "_fd-label" }, mN = ["onClick"]; function vN(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-badge"), d = ne("Warning"), p = ne("el-header"), h = ne("el-menu-item"), g = ne("el-input"), _ = ne("el-menu"), S = ne("el-main"), b = ne("el-container"), A = ne("el-aside"), y = ne("FnEditor"), m = ne("el-dialog"); + const s = ee("el-button"), u = ee("el-badge"), d = ee("Warning"), p = ee("el-header"), h = ee("el-menu-item"), g = ee("el-input"), _ = ee("el-menu"), S = ee("el-main"), b = ee("el-container"), A = ee("el-aside"), y = ee("FnEditor"), m = ee("el-dialog"); return H(), ae("div", fN, [ - W(u, { + z(u, { value: e.eventNum, type: "warning", hidden: e.eventNum < 1 }, { default: N(() => [ - W(s, { + z(s, { class: "_fd-plain-button", plain: "", onClick: e.open, @@ -41162,7 +41169,7 @@ function vN(e, t, i, r, n, a) { ]), _: 1 }, 8, ["value", "hidden"]), - W(m, { + z(m, { class: "_fd-gvc-dialog _fd-config-dialog", modelValue: e.visible, "onUpdate:modelValue": t[6] || (t[6] = (w) => e.visible = w), @@ -41173,13 +41180,13 @@ function vN(e, t, i, r, n, a) { }, { header: N(() => [ be(le(e.t("computed.variable.title")) + " ", 1), - W(d, { + z(d, { tooltip: e.t("warning.globalVariable") }, null, 8, ["tooltip"]) ]), footer: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { size: "default", onClick: t[5] || (t[5] = (w) => e.visible = !1) }, { @@ -41188,7 +41195,7 @@ function vN(e, t, i, r, n, a) { ]), _: 1 }), - W(s, { + z(s, { type: "primary", size: "default", onClick: e.submit @@ -41201,21 +41208,21 @@ function vN(e, t, i, r, n, a) { ]) ]), default: N(() => [ - W(b, { + z(b, { class: "_fd-gvc-con", style: { height: "600px" } }, { default: N(() => [ - W(A, { style: { width: "255px" } }, { + z(A, { style: { width: "255px" } }, { default: N(() => [ - W(b, { class: "_fd-gvc-l" }, { + z(b, { class: "_fd-gvc-l" }, { default: N(() => [ - W(p, { + z(p, { class: "_fd-gvc-head", height: "40px" }, { default: N(() => [ - W(s, { + z(s, { link: "", type: "primary", size: "default", @@ -41229,42 +41236,42 @@ function vN(e, t, i, r, n, a) { ]), _: 1 }), - W(S, null, { + z(S, null, { default: N(() => [ - W(_, null, { + z(_, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.value, (w, E) => (H(), he(h, { - class: Xe({ "is-active": E === e.activeIdx }) + (H(!0), ae(Me, null, ze(e.value, (w, E) => (H(), me(h, { + class: qe({ "is-active": E === e.activeIdx }) }, { default: N(() => [ - X("div", { + J("div", { class: "_fd-gvc-title", onClick: vt((x) => e.active(E), ["stop"]) }, [ - X("div", pN, [ - X("span", null, le(E), 1), - w.label ? (H(), ae("span", hN, le(w.label), 1)) : ke("", !0) + J("div", pN, [ + J("span", null, le(E), 1), + w.label ? (H(), ae("span", hN, le(w.label), 1)) : Te("", !0) ]), w.deletable !== !1 ? (H(), ae("i", { key: 0, class: "fc-icon icon-delete", onClick: vt((x) => e.rm(E), ["stop"]) - }, null, 8, mN)) : ke("", !0) + }, null, 8, mN)) : Te("", !0) ], 8, cN) ]), _: 2 }, 1032, ["class"]))), 256)), - e.cus ? (H(), he(h, { + e.cus ? (H(), me(h, { key: 0, style: { "padding-left": "10px" } }, { default: N(() => [ - X("div", { + J("div", { class: "_fd-gvc-title", onClick: t[3] || (t[3] = vt(() => { }, ["stop"])) }, [ - W(g, { + z(g, { type: "text", modelValue: e.cusValue, "onUpdate:modelValue": t[0] || (t[0] = (w) => e.cusValue = w), @@ -41272,12 +41279,12 @@ function vN(e, t, i, r, n, a) { onKeydown: al(e.addCus, ["enter"]), placeholder: e.t("computed.variable.placeholder") }, null, 8, ["modelValue", "onKeydown", "placeholder"]), - X("div", null, [ - X("i", { + J("div", null, [ + J("i", { class: "fc-icon icon-add", onClick: t[1] || (t[1] = vt((...w) => e.addCus && e.addCus(...w), ["stop"])) }), - X("i", { + J("i", { class: "fc-icon icon-delete", onClick: t[2] || (t[2] = vt((...w) => e.closeCus && e.closeCus(...w), ["stop"])) }) @@ -41285,7 +41292,7 @@ function vN(e, t, i, r, n, a) { ]) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ]), _: 1 }) @@ -41298,17 +41305,17 @@ function vN(e, t, i, r, n, a) { ]), _: 1 }), - W(S, null, { + z(S, null, { default: N(() => [ - W(b, { class: "_fd-gvc-r" }, { + z(b, { class: "_fd-gvc-r" }, { default: N(() => [ - e.activeIdx ? (H(), he(p, { + e.activeIdx ? (H(), me(p, { key: 0, class: "_fd-gvc-head", height: "40px" }, { default: N(() => [ - W(s, { + z(s, { size: "small", onClick: e.close }, { @@ -41317,7 +41324,7 @@ function vN(e, t, i, r, n, a) { ]), _: 1 }, 8, ["onClick"]), - W(s, { + z(s, { size: "small", type: "primary", onClick: e.save @@ -41329,10 +41336,10 @@ function vN(e, t, i, r, n, a) { }, 8, ["onClick"]) ]), _: 1 - })) : ke("", !0), - e.activeIdx ? (H(), he(S, { key: e.activeIdx }, { + })) : Te("", !0), + e.activeIdx ? (H(), me(S, { key: e.activeIdx }, { default: N(() => [ - W(y, { + z(y, { ref: "editor", modelValue: e.handle, "onUpdate:modelValue": t[4] || (t[4] = (w) => e.handle = w), @@ -41341,7 +41348,7 @@ function vN(e, t, i, r, n, a) { }, null, 8, ["modelValue"]) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ]), _: 1 }) @@ -41356,8 +41363,8 @@ function vN(e, t, i, r, n, a) { }, 8, ["modelValue"]) ]); } -const Eb = /* @__PURE__ */ je(dN, [["render", vN]]); -const gN = Ve({ +const Eb = /* @__PURE__ */ Ve(dN, [["render", vN]]); +const gN = Be({ name: "JsonPreview", components: { StructEditor: Lp }, inject: ["designer"], @@ -41386,11 +41393,11 @@ const gN = Ve({ this.active === "rule" ? this.value = this.designer.setupState.getRule() : this.value = this.designer.setupState.getOptions(); }, handleFocus() { - this.oldValue = et.toJson(this.value); + this.oldValue = tt.toJson(this.value); }, handleBlur() { let e; - this.$refs.editor.save() && (e = et.toJson(this.value)) !== this.oldValue && (this.active === "rule" ? this.designer.setupState.setRule(e) : this.designer.setupState.setOptions(this.value || {})); + this.$refs.editor.save() && (e = tt.toJson(this.value)) !== this.oldValue && (this.active === "rule" ? this.designer.setupState.setRule(e) : this.designer.setupState.setOptions(this.value || {})); } }, mounted() { @@ -41400,28 +41407,28 @@ const gN = Ve({ } }); function yN(e, t, i, r, n, a) { - const s = ne("el-header"), u = ne("StructEditor"), d = ne("el-main"), p = ne("el-container"); - return H(), he(p, { class: "_fc-json-preview" }, { + const s = ee("el-header"), u = ee("StructEditor"), d = ee("el-main"), p = ee("el-container"); + return H(), me(p, { class: "_fc-json-preview" }, { default: N(() => [ - W(s, { + z(s, { height: "40px", class: "_fc-l-tabs" }, { default: N(() => [ - X("div", { - class: Xe(["_fc-l-tab", { active: e.active === "rule" }]), + J("div", { + class: qe(["_fc-l-tab", { active: e.active === "rule" }]), onClick: t[0] || (t[0] = (h) => e.active = "rule") }, le(e.t("designer.json")), 3), - X("div", { - class: Xe(["_fc-l-tab", { active: e.active === "options" }]), + J("div", { + class: qe(["_fc-l-tab", { active: e.active === "options" }]), onClick: t[1] || (t[1] = (h) => e.active = "options") }, le(e.t("designer.form")), 3) ]), _: 1 }), - W(d, { style: { padding: "8px" } }, { + z(d, { style: { padding: "8px" } }, { default: N(() => [ - W(u, { + z(u, { ref: "editor", modelValue: e.value, "onUpdate:modelValue": t[2] || (t[2] = (h) => e.value = h), @@ -41437,8 +41444,8 @@ function yN(e, t, i, r, n, a) { _: 1 }); } -const bN = /* @__PURE__ */ je(gN, [["render", yN]]); -const _N = Ve({ +const bN = /* @__PURE__ */ Ve(gN, [["render", yN]]); +const _N = Be({ name: "Struct", emits: ["update:modelValue"], props: { @@ -41509,19 +41516,19 @@ const _N = Ve({ ref: "editor" }; function CN(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-badge"), d = ne("el-dialog"); + const s = ee("el-button"), u = ee("el-badge"), d = ee("el-dialog"); return H(), ae("div", wN, [ - W(u, { + z(u, { type: "warning", "is-dot": "", hidden: !e.configured }, { default: N(() => [ - X("div", { + J("div", { onClick: t[0] || (t[0] = (p) => e.visible = !0) }, [ kt(e.$slots, "default", {}, () => [ - W(s, { + z(s, { class: "_fd-plain-button", plain: "", size: "small" @@ -41536,7 +41543,7 @@ function CN(e, t, i, r, n, a) { ]), _: 3 }, 8, ["hidden"]), - W(d, { + z(d, { class: "_fd-struct-dialog _fd-config-dialog", title: e.title || e.t("struct.title"), modelValue: e.visible, @@ -41547,8 +41554,8 @@ function CN(e, t, i, r, n, a) { width: "800px" }, { footer: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { onClick: t[1] || (t[1] = (p) => e.visible = !1), size: "default" }, { @@ -41557,7 +41564,7 @@ function CN(e, t, i, r, n, a) { ]), _: 1 }), - W(s, { + z(s, { type: "primary", onClick: e.onOk, size: "default" @@ -41570,14 +41577,14 @@ function CN(e, t, i, r, n, a) { ]) ]), default: N(() => [ - e.visible ? (H(), ae("div", AN, null, 512)) : ke("", !0) + e.visible ? (H(), ae("div", AN, null, 512)) : Te("", !0) ]), _: 1 }, 8, ["title", "modelValue"]) ]); } -const xb = /* @__PURE__ */ je(_N, [["render", CN]]); -const SN = Ve({ +const xb = /* @__PURE__ */ Ve(_N, [["render", CN]]); +const SN = Be({ name: "PropsInput", components: { Struct: xb }, inject: ["designer"], @@ -41610,22 +41617,22 @@ const SN = Ve({ } }); function EN(e, t, i, r, n, a) { - const s = ne("el-tooltip"), u = ne("Struct"); - return H(), he(u, { + const s = ee("el-tooltip"), u = ee("Struct"); + return H(), me(u, { class: "_fd-props-input", modelValue: e.props, "onUpdate:modelValue": e.onInput, title: e.t("designer.customProps") }, { default: N(() => [ - W(s, { + z(s, { effect: "dark", content: e.t("designer.customProps"), placement: "top", "hide-after": 0 }, { default: N(() => t[0] || (t[0] = [ - X("i", { class: "fc-icon icon-edit" }, null, -1) + J("i", { class: "fc-icon icon-edit" }, null, -1) ])), _: 1 }, 8, ["content"]) @@ -41633,8 +41640,8 @@ function EN(e, t, i, r, n, a) { _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "title"]); } -const xN = /* @__PURE__ */ je(SN, [["render", EN]]); -const TN = Ve({ +const xN = /* @__PURE__ */ Ve(SN, [["render", EN]]); +const TN = Be({ name: "LanguageConfig", inject: ["designer"], computed: { @@ -41709,12 +41716,12 @@ const TN = Ve({ } }), kN = { class: "_fd-language-config" }, ON = { class: "_fc-l-label" }, $N = { class: "_fc-l-info" }, RN = { class: "_fd-lc-header" }, DN = { class: "_fd-lc-body" }, IN = { class: "_fd-lc-handle" }, FN = ["onClick"], PN = ["onClick"], MN = ["onClick"], LN = ["onClick"]; function NN(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-table-column"), d = ne("el-input"), p = ne("el-table"); + const s = ee("el-button"), u = ee("el-table-column"), d = ee("el-input"), p = ee("el-table"); return H(), ae("div", kN, [ - X("div", ON, le(e.t("language.name")), 1), - X("div", $N, le(e.t("warning.language")), 1), - X("div", RN, [ - W(s, { + J("div", ON, le(e.t("language.name")), 1), + J("div", $N, le(e.t("warning.language")), 1), + J("div", RN, [ + z(s, { size: "small", onClick: e.addColumn }, { @@ -41723,7 +41730,7 @@ function NN(e, t, i, r, n, a) { ]), _: 1 }, 8, ["onClick"]), - W(s, { + z(s, { size: "small", type: "danger", plain: "", @@ -41736,8 +41743,8 @@ function NN(e, t, i, r, n, a) { _: 1 }, 8, ["disabled", "onClick"]) ]), - X("div", DN, [ - W(p, { + J("div", DN, [ + z(p, { data: e.column, size: "small", ref: "table", @@ -41745,23 +41752,23 @@ function NN(e, t, i, r, n, a) { "row-key": "key" }, { default: N(() => [ - W(u, { + z(u, { type: "selection", width: "30px" }), - W(u, { + z(u, { prop: "key", label: "Key", width: "90px" }), - (H(!0), ae(Me, null, We(e.localeOptions, (h) => (H(), he(u, { + (H(!0), ae(Me, null, ze(e.localeOptions, (h) => (H(), me(u, { key: h.value, prop: h.value, label: h.label, "min-width": "100px" }, { default: N((g) => [ - g.row.input ? (H(), he(d, { + g.row.input ? (H(), me(d, { key: 0, size: "small", modelValue: g.row[h.value], @@ -41773,13 +41780,13 @@ function NN(e, t, i, r, n, a) { ]), _: 2 }, 1032, ["prop", "label"]))), 128)), - W(u, { + z(u, { width: "75px", label: e.t("tableOptions.handle"), fixed: "right" }, { default: N((h) => [ - X("div", IN, [ + J("div", IN, [ h.row.input ? (H(), ae("i", { key: 1, class: "fc-icon icon-check", @@ -41789,11 +41796,11 @@ function NN(e, t, i, r, n, a) { class: "fc-icon icon-edit", onClick: (g) => h.row.input = !0 }, null, 8, FN)), - X("i", { + J("i", { class: "fc-icon icon-group", onClick: (g) => e.copy(h.row.key) }, null, 8, MN), - X("i", { + J("i", { class: "fc-icon icon-delete-circle", onClick: (g) => e.rmColumn(h.$index) }, null, 8, LN) @@ -41807,8 +41814,8 @@ function NN(e, t, i, r, n, a) { ]) ]); } -const BN = /* @__PURE__ */ je(TN, [["render", NN]]); -const VN = Ve({ +const BN = /* @__PURE__ */ Ve(TN, [["render", NN]]); +const VN = Be({ name: "SlotsConfig", inject: ["designer"], components: { ConfigItem: si }, @@ -42006,7 +42013,7 @@ const VN = Ve({ const t = {}; Object.keys(this.easySlots).forEach((i) => { this.easySlots[i].value && (t[i] = { ...this.easySlots[i] }, delete t[i].label, delete t[i].only); - }), Object.keys(t).length === 0 ? delete this.designer.setupState.activeRule.$easySlots : this.designer.setupState.activeRule.$easySlots = t, this.designer.setupState.activeRule.key = it(); + }), Object.keys(t).length === 0 ? delete this.designer.setupState.activeRule.$easySlots : this.designer.setupState.activeRule.$easySlots = t, this.designer.setupState.activeRule.key = rt(); } } }, @@ -42014,13 +42021,13 @@ const VN = Ve({ } }), jN = { class: "_fd-slots-config" }, UN = { class: "_fd-slots-icons" }, HN = ["onClick"]; function zN(e, t, i, r, n, a) { - const s = ne("el-option"), u = ne("el-select"), d = ne("el-popover"), p = ne("el-input"), h = ne("ConfigItem"); + const s = ee("el-option"), u = ee("el-select"), d = ee("el-popover"), p = ee("el-input"), h = ee("ConfigItem"); return H(), ae("div", jN, [ - (H(!0), ae(Me, null, We(e.easySlots, (g, _) => (H(), he(h, { + (H(!0), ae(Me, null, ze(e.easySlots, (g, _) => (H(), me(h, { label: g.label }, { default: N(() => [ - W(p, { + z(p, { size: "small", modelValue: g.value, "onUpdate:modelValue": (S) => g.value = S, @@ -42030,14 +42037,14 @@ function zN(e, t, i, r, n, a) { g.only ? void 0 : { name: "prepend", fn: N(() => [ - W(u, { + z(u, { size: "small", modelValue: g.type, "onUpdate:modelValue": (S) => g.type = S, onChange: (S) => e.changeType(g) }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.type, (S) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.type, (S) => (H(), me(s, { label: e.t("props." + S), value: S }, null, 8, ["label", "value"]))), 256)) @@ -42050,7 +42057,7 @@ function zN(e, t, i, r, n, a) { g.type === "icon" ? { name: "append", fn: N(() => [ - W(d, { + z(d, { ref_for: !0, ref: _, placement: "bottom", @@ -42059,16 +42066,16 @@ function zN(e, t, i, r, n, a) { trigger: "click" }, { reference: N(() => t[0] || (t[0] = [ - X("i", { class: "fc-icon icon-menu" }, null, -1) + J("i", { class: "fc-icon icon-menu" }, null, -1) ])), default: N(() => [ - X("div", UN, [ - (H(!0), ae(Me, null, We(e.icons, (S) => (H(), ae("div", { + J("div", UN, [ + (H(!0), ae(Me, null, ze(e.icons, (S) => (H(), ae("div", { class: "_fd-slots-icon", onClick: (b) => e.changeIcon(g, S, _) }, [ - X("i", { - class: Xe(["fc-icon iconfont", S]) + J("i", { + class: qe(["fc-icon iconfont", S]) }, null, 2) ], 8, HN))), 256)) ]) @@ -42084,8 +42091,8 @@ function zN(e, t, i, r, n, a) { }, 1032, ["label"]))), 256)) ]); } -const WN = /* @__PURE__ */ je(VN, [["render", zN]]); -const GN = Ve({ +const WN = /* @__PURE__ */ Ve(VN, [["render", zN]]); +const GN = Be({ name: "QuickLayout", inject: ["designer"], data() { @@ -42136,9 +42143,9 @@ const GN = Ve({ } }), KN = { class: "_fd-quick-layout" }, YN = { class: "_fd-quick-layout-content" }, QN = ["onClick"]; function JN(e, t, i, r, n, a) { - const s = ne("el-tooltip"), u = ne("el-popover"); + const s = ee("el-tooltip"), u = ee("el-popover"); return H(), ae("div", KN, [ - W(u, { + z(u, { ref: "pop", placement: "bottom", width: 240, @@ -42146,29 +42153,29 @@ function JN(e, t, i, r, n, a) { trigger: "click" }, { reference: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { effect: "dark", content: e.t("designer.layout"), placement: "top", "hide-after": 0 }, { default: N(() => t[0] || (t[0] = [ - X("i", { class: "fc-icon icon-layout" }, null, -1) + J("i", { class: "fc-icon icon-layout" }, null, -1) ])), _: 1 }, 8, ["content"]) ]) ]), default: N(() => [ - X("div", YN, [ - (H(!0), ae(Me, null, We(e.layout, (d, p) => (H(), ae("div", { + J("div", YN, [ + (H(!0), ae(Me, null, ze(e.layout, (d, p) => (H(), ae("div", { onClick: (h) => e.change(p) }, [ - X("i", { - class: Xe(["fc-icon", "icon-column" + (p + 1)]) + J("i", { + class: qe(["fc-icon", "icon-column" + (p + 1)]) }, null, 2), - X("span", null, le(d.label), 1) + J("span", null, le(d.label), 1) ], 8, QN))), 256)) ]) ]), @@ -42176,8 +42183,8 @@ function JN(e, t, i, r, n, a) { }, 512) ]); } -const XN = /* @__PURE__ */ je(GN, [["render", JN]]); -const ZN = Ve({ +const XN = /* @__PURE__ */ Ve(GN, [["render", JN]]); +const ZN = Be({ name: "PrintForm", components: { SizeInput: ea, @@ -42303,23 +42310,23 @@ const ZN = Ve({ } }), qN = { class: "_fd-print" }; function eB(e, t, i, r, n, a) { - const s = ne("el-tooltip"), u = ne("el-header"), d = ne("el-radio-button"), p = ne("el-radio-group"), h = ne("el-form-item"), g = ne("el-input-number"), _ = ne("el-form"), S = ne("el-main"), b = ne("el-container"), A = ne("el-aside"), y = ne("ViewForm"), m = ne("el-button"), w = ne("el-dialog"); + const s = ee("el-tooltip"), u = ee("el-header"), d = ee("el-radio-button"), p = ee("el-radio-group"), h = ee("el-form-item"), g = ee("el-input-number"), _ = ee("el-form"), S = ee("el-main"), b = ee("el-container"), A = ee("el-aside"), y = ee("ViewForm"), m = ee("el-button"), w = ee("el-dialog"); return H(), ae("div", qN, [ - W(s, { + z(s, { effect: "dark", content: e.t("designer.print.title"), placement: "top", "hide-after": 0 }, { default: N(() => [ - X("i", { + J("i", { class: "fc-icon icon-print", onClick: t[0] || (t[0] = (...E) => e.open && e.open(...E)) }) ]), _: 1 }, 8, ["content"]), - W(w, { + z(w, { class: "_fd-print-dialog _fd-config-dialog", modelValue: e.visible, "onUpdate:modelValue": t[7] || (t[7] = (E) => e.visible = E), @@ -42330,8 +42337,8 @@ function eB(e, t, i, r, n, a) { width: "1080px" }, { footer: N(() => [ - X("div", null, [ - W(m, { + J("div", null, [ + z(m, { size: "default", onClick: t[4] || (t[4] = (E) => e.visible = !1) }, { @@ -42340,7 +42347,7 @@ function eB(e, t, i, r, n, a) { ]), _: 1 }), - W(m, { + z(m, { size: "default", onClick: t[5] || (t[5] = (E) => e.print(!0)) }, { @@ -42349,7 +42356,7 @@ function eB(e, t, i, r, n, a) { ]), _: 1 }), - W(m, { + z(m, { type: "primary", size: "default", onClick: t[6] || (t[6] = (E) => e.print(!1)), @@ -42363,16 +42370,16 @@ function eB(e, t, i, r, n, a) { ]) ]), default: N(() => [ - W(b, { + z(b, { class: "_fd-print-con", style: { height: "600px" } }, { default: N(() => [ - W(A, { style: { width: "255px" } }, { + z(A, { style: { width: "255px" } }, { default: N(() => [ - W(b, { class: "_fd-print-l" }, { + z(b, { class: "_fd-print-l" }, { default: N(() => [ - W(u, { + z(u, { class: "_fd-print-head", height: "40px" }, { @@ -42381,29 +42388,29 @@ function eB(e, t, i, r, n, a) { ]), _: 1 }), - W(S, null, { + z(S, null, { default: N(() => [ - W(_, { + z(_, { "label-position": "top", size: "small" }, { default: N(() => [ - W(h, { + z(h, { label: e.t("props.mode") }, { default: N(() => [ - W(p, { + z(p, { modelValue: e.formData.type, "onUpdate:modelValue": t[1] || (t[1] = (E) => e.formData.type = E) }, { default: N(() => [ - W(d, { value: "form" }, { + z(d, { value: "form" }, { default: N(() => [ be(le(e.t("form.formMode")), 1) ]), _: 1 }), - W(d, { value: "read" }, { + z(d, { value: "read" }, { default: N(() => [ be(le(e.t("form.previewMode")), 1) ]), @@ -42415,22 +42422,22 @@ function eB(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(h, { + z(h, { label: e.t("props.style") }, { default: N(() => [ - W(p, { + z(p, { modelValue: e.formData.style, "onUpdate:modelValue": t[2] || (t[2] = (E) => e.formData.style = E) }, { default: N(() => [ - W(d, { value: "default" }, { + z(d, { value: "default" }, { default: N(() => [ be(le(e.t("designer.print.defaultStyle")), 1) ]), _: 1 }), - W(d, { value: "word" }, { + z(d, { value: "word" }, { default: N(() => [ be(le(e.t("designer.print.wordStyle")), 1) ]), @@ -42442,11 +42449,11 @@ function eB(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(h, { + z(h, { label: e.t("style.width") }, { default: N(() => [ - W(g, { + z(g, { min: 300, "controls-position": "right", modelValue: e.formData.width, @@ -42455,12 +42462,12 @@ function eB(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - (H(!0), ae(Me, null, We(e.padding, (E) => (H(), he(h, { + (H(!0), ae(Me, null, ze(e.padding, (E) => (H(), me(h, { key: E, label: e.t("designer.print." + E) }, { default: N(() => [ - W(g, { + z(g, { min: 0, "controls-position": "right", modelValue: e.formData[E], @@ -42481,27 +42488,27 @@ function eB(e, t, i, r, n, a) { ]), _: 1 }), - W(S, null, { + z(S, null, { default: N(() => [ - W(b, { class: "_fd-print-r" }, { + z(b, { class: "_fd-print-r" }, { default: N(() => [ - W(S, null, { + z(S, null, { default: N(() => [ - e.visible ? (H(), he(y, { + e.visible ? (H(), me(y, { key: 0, - class: Xe(["_fd-print-form", { "_fd-print-form-word": e.formData.style === "word" }]), + class: qe(["_fd-print-form", { "_fd-print-form-word": e.formData.style === "word" }]), ref: "form", rule: e.rule, option: e.options, style: wn({ width: e.formData.width > 0 ? e.formData.width + "px" : "100%" }) }, Qn({ _: 2 }, [ - We(e.$slots, (E, x) => ({ + ze(e.$slots, (E, x) => ({ name: x, fn: N((k) => [ kt(e.$slots, x, Sr(Er(k != null ? k : {}))) ]) })) - ]), 1032, ["class", "rule", "option", "style"])) : ke("", !0) + ]), 1032, ["class", "rule", "option", "style"])) : Te("", !0) ]), _: 3 }) @@ -42519,8 +42526,8 @@ function eB(e, t, i, r, n, a) { }, 8, ["modelValue", "title"]) ]); } -const tB = /* @__PURE__ */ je(ZN, [["render", eB]]); -const nB = Ve({ +const tB = /* @__PURE__ */ Ve(ZN, [["render", eB]]); +const nB = Be({ name: "AiChat", inject: ["designer"], data() { @@ -42616,73 +42623,73 @@ const nB = Ve({ } }), iB = { class: "_fd-ai-chat" }, rB = { class: "_fd-ai-chat-header" }, oB = { class: "_fc-l-label" }, aB = { class: "_fc-l-info" }, lB = { class: "_fd-ai-chat-prompt" }, sB = ["onClick"], uB = { class: "_fd-ai-chat-history" }, dB = { class: "_fd-ai-chat-history-chat" }, fB = { key: 0 }, cB = { key: 1 }, pB = { key: 2 }, hB = { class: "_fd-ai-chat-input" }, mB = { class: "_fd-ai-chat-clear" }; function vB(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-input"); + const s = ee("el-button"), u = ee("el-input"); return H(), ae("div", iB, [ - X("div", rB, [ - X("div", oB, [ - t[4] || (t[4] = X("i", { class: "fc-icon icon-ai bright" }, null, -1)), + J("div", rB, [ + J("div", oB, [ + t[4] || (t[4] = J("i", { class: "fc-icon icon-ai bright" }, null, -1)), be(" FormCreate " + le(e.t("ai.name")), 1) ]), - X("div", aB, le(e.t("ai.info")), 1), - X("div", lB, [ - X("span", null, le(e.t("ai.try")), 1), - X("span", { + J("div", aB, le(e.t("ai.info")), 1), + J("div", lB, [ + J("span", null, le(e.t("ai.try")), 1), + J("span", { class: "_fd-ai-chat-refresh", onClick: t[0] || (t[0] = (...d) => e.refresh && e.refresh(...d)) }, [ - t[5] || (t[5] = X("i", { class: "fc-icon icon-refresh2" }, null, -1)), + t[5] || (t[5] = J("i", { class: "fc-icon icon-refresh2" }, null, -1)), be(le(e.t("ai.change")), 1) ]) ]), - (H(!0), ae(Me, null, We(e.pageData, (d) => (H(), ae("div", { + (H(!0), ae(Me, null, ze(e.pageData, (d) => (H(), ae("div", { class: "_fd-ai-chat-question", onClick: (p) => e.message = d }, [ - X("span", null, le(d), 1), - t[6] || (t[6] = X("i", { class: "fc-icon icon-down" }, null, -1)) + J("span", null, le(d), 1), + t[6] || (t[6] = J("i", { class: "fc-icon icon-down" }, null, -1)) ], 8, sB))), 256)) ]), - X("div", uB, [ - (H(!0), ae(Me, null, We(e.history, (d, p) => (H(), ae("div", { + J("div", uB, [ + (H(!0), ae(Me, null, ze(e.history, (d, p) => (H(), ae("div", { key: p, class: "_fd-ai-chat-history-item", ref_for: !0, ref: "chat" }, [ - X("div", dB, [ - X("div", null, le(d.message), 1) + J("div", dB, [ + J("div", null, le(d.message), 1) ]), - X("div", { - class: Xe(["_fd-ai-chat-history-status", d.status || "success"]) + J("div", { + class: qe(["_fd-ai-chat-history-status", d.status || "success"]) }, [ - X("div", null, [ + J("div", null, [ d.status === "loading" ? (H(), ae("div", fB, le(e.t("ai.loading")), 1)) : d.status === "fail" ? (H(), ae("div", cB, [ - t[7] || (t[7] = X("i", { class: "fc-icon icon-warning" }, null, -1)), + t[7] || (t[7] = J("i", { class: "fc-icon icon-warning" }, null, -1)), be(le(e.t("ai.fail")), 1) ])) : (H(), ae("div", pB, [ - t[8] || (t[8] = X("i", { class: "fc-icon icon-yes" }, null, -1)), + t[8] || (t[8] = J("i", { class: "fc-icon icon-yes" }, null, -1)), be(le(e.t("ai.success")), 1) ])) ]) ], 2) ], 512))), 128)) ]), - X("div", hB, [ - X("div", mB, [ - W(s, { + J("div", hB, [ + J("div", mB, [ + z(s, { size: "small", text: "", round: "", onClick: e.clear }, { default: N(() => t[9] || (t[9] = [ - X("i", { class: "fc-icon icon-delete2" }, null, -1), + J("i", { class: "fc-icon icon-delete2" }, null, -1), be(" \u6E05\u7A7A") ])), _: 1 }, 8, ["onClick"]) ]), - W(u, { + z(u, { type: "textarea", modelValue: e.message, "onUpdate:modelValue": t[1] || (t[1] = (d) => e.message = d), @@ -42695,13 +42702,13 @@ function vB(e, t, i, r, n, a) { onClick: t[2] || (t[2] = (...d) => e.suspend && e.suspend(...d)) })) : (H(), ae("div", { key: 1, - class: Xe(["fc-icon icon-send", { disabled: !e.message || !e.message.trim() }]), + class: qe(["fc-icon icon-send", { disabled: !e.message || !e.message.trim() }]), onClick: t[3] || (t[3] = (...d) => e.send && e.send(...d)) }, null, 2)) ]) ]); } -const gB = /* @__PURE__ */ je(nB, [["render", vB]]); +const gB = /* @__PURE__ */ Ve(nB, [["render", vB]]); function Tb(e, t) { return function() { return e.apply(t, arguments); @@ -42869,7 +42876,7 @@ const ZB = (e) => { }))(`axios@${Math.random()}`, []) : (i) => setTimeout(i))( typeof setImmediate == "function", Xn(Gr.postMessage) -), t8 = typeof queueMicrotask < "u" ? queueMicrotask.bind(Gr) : typeof process < "u" && process.nextTick || Fb, n8 = (e) => e != null && Xn(e[Su]), Fe = { +), t8 = typeof queueMicrotask < "u" ? queueMicrotask.bind(Gr) : typeof process < "u" && process.nextTick || Fb, n8 = (e) => e != null && Xn(e[Su]), Pe = { isArray: na, isArrayBuffer: Ob, isBuffer: bB, @@ -42930,7 +42937,7 @@ const ZB = (e) => { function Tt(e, t, i, r, n) { Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), i && (this.config = i), r && (this.request = r), n && (this.response = n, this.status = n.status ? n.status : null); } -Fe.inherits(Tt, Error, { +Pe.inherits(Tt, Error, { toJSON: function() { return { message: this.message, @@ -42941,7 +42948,7 @@ Fe.inherits(Tt, Error, { lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, - config: Fe.toJSONObject(this.config), + config: Pe.toJSONObject(this.config), code: this.code, status: this.status }; @@ -42968,16 +42975,16 @@ Object.defineProperties(Tt, Mb); Object.defineProperty(Pb, "isAxiosError", { value: !0 }); Tt.from = (e, t, i, r, n, a) => { const s = Object.create(Pb); - return Fe.toFlatObject(e, s, function(d) { + return Pe.toFlatObject(e, s, function(d) { return d !== Error.prototype; }, (u) => u !== "isAxiosError"), Tt.call(s, e.message, t, i, r, n), s.cause = e, s.name = e.name, a && Object.assign(s, a), s; }; const i8 = null; function Ec(e) { - return Fe.isPlainObject(e) || Fe.isArray(e); + return Pe.isPlainObject(e) || Pe.isArray(e); } function Lb(e) { - return Fe.endsWith(e, "[]") ? e.slice(0, -2) : e; + return Pe.endsWith(e, "[]") ? e.slice(0, -2) : e; } function jg(e, t, i) { return e ? e.concat(t).map(function(n, a) { @@ -42985,41 +42992,41 @@ function jg(e, t, i) { }).join(i ? "." : "") : t; } function r8(e) { - return Fe.isArray(e) && !e.some(Ec); + return Pe.isArray(e) && !e.some(Ec); } -const o8 = Fe.toFlatObject(Fe, {}, null, function(t) { +const o8 = Pe.toFlatObject(Pe, {}, null, function(t) { return /^is[A-Z]/.test(t); }); function ku(e, t, i) { - if (!Fe.isObject(e)) + if (!Pe.isObject(e)) throw new TypeError("target must be an object"); - t = t || new FormData(), i = Fe.toFlatObject(i, { + t = t || new FormData(), i = Pe.toFlatObject(i, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function(A, y) { - return !Fe.isUndefined(y[A]); + return !Pe.isUndefined(y[A]); }); - const r = i.metaTokens, n = i.visitor || h, a = i.dots, s = i.indexes, d = (i.Blob || typeof Blob < "u" && Blob) && Fe.isSpecCompliantForm(t); - if (!Fe.isFunction(n)) + const r = i.metaTokens, n = i.visitor || h, a = i.dots, s = i.indexes, d = (i.Blob || typeof Blob < "u" && Blob) && Pe.isSpecCompliantForm(t); + if (!Pe.isFunction(n)) throw new TypeError("visitor must be a function"); function p(b) { if (b === null) return ""; - if (Fe.isDate(b)) + if (Pe.isDate(b)) return b.toISOString(); - if (!d && Fe.isBlob(b)) + if (!d && Pe.isBlob(b)) throw new Tt("Blob is not supported. Use a Buffer instead."); - return Fe.isArrayBuffer(b) || Fe.isTypedArray(b) ? d && typeof Blob == "function" ? new Blob([b]) : Buffer.from(b) : b; + return Pe.isArrayBuffer(b) || Pe.isTypedArray(b) ? d && typeof Blob == "function" ? new Blob([b]) : Buffer.from(b) : b; } function h(b, A, y) { let m = b; if (b && !y && typeof b == "object") { - if (Fe.endsWith(A, "{}")) + if (Pe.endsWith(A, "{}")) A = r ? A : A.slice(0, -2), b = JSON.stringify(b); - else if (Fe.isArray(b) && r8(b) || (Fe.isFileList(b) || Fe.endsWith(A, "[]")) && (m = Fe.toArray(b))) + else if (Pe.isArray(b) && r8(b) || (Pe.isFileList(b) || Pe.endsWith(A, "[]")) && (m = Pe.toArray(b))) return A = Lb(A), m.forEach(function(E, x) { - !(Fe.isUndefined(E) || E === null) && t.append( + !(Pe.isUndefined(E) || E === null) && t.append( s === !0 ? jg([A], x, a) : s === null ? A : A + "[]", p(E) ); @@ -43033,21 +43040,21 @@ function ku(e, t, i) { isVisitable: Ec }); function S(b, A) { - if (!Fe.isUndefined(b)) { + if (!Pe.isUndefined(b)) { if (g.indexOf(b) !== -1) throw Error("Circular reference detected in " + A.join(".")); - g.push(b), Fe.forEach(b, function(m, w) { - (!(Fe.isUndefined(m) || m === null) && n.call( + g.push(b), Pe.forEach(b, function(m, w) { + (!(Pe.isUndefined(m) || m === null) && n.call( t, m, - Fe.isString(w) ? w.trim() : w, + Pe.isString(w) ? w.trim() : w, A, _ )) === !0 && S(m, A ? A.concat(w) : [w]); }), g.pop(); } } - if (!Fe.isObject(e)) + if (!Pe.isObject(e)) throw new TypeError("data must be an object"); return S(e), t; } @@ -43087,12 +43094,12 @@ function Bb(e, t, i) { if (!t) return e; const r = i && i.encode || a8; - Fe.isFunction(i) && (i = { + Pe.isFunction(i) && (i = { serialize: i }); const n = i && i.serialize; let a; - if (n ? a = n(t, i) : a = Fe.isURLSearchParams(t) ? t.toString() : new Bp(t, i).toString(r), a) { + if (n ? a = n(t, i) : a = Pe.isURLSearchParams(t) ? t.toString() : new Bp(t, i).toString(r), a) { const s = e.indexOf("#"); s !== -1 && (e = e.slice(0, s)), e += (e.indexOf("?") === -1 ? "?" : "&") + a; } @@ -43117,7 +43124,7 @@ class l8 { this.handlers && (this.handlers = []); } forEach(t) { - Fe.forEach(this.handlers, function(r) { + Pe.forEach(this.handlers, function(r) { r !== null && t(r); }); } @@ -43148,12 +43155,12 @@ const Hg = l8, Vb = { function v8(e, t) { return ku(e, new Dn.classes.URLSearchParams(), Object.assign({ visitor: function(i, r, n, a) { - return Dn.isNode && Fe.isBuffer(i) ? (this.append(r, i.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments); + return Dn.isNode && Pe.isBuffer(i) ? (this.append(r, i.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments); } }, t)); } function g8(e) { - return Fe.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]); + return Pe.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]); } function y8(e) { const t = {}, i = Object.keys(e); @@ -43170,20 +43177,20 @@ function jb(e) { if (s === "__proto__") return !0; const u = Number.isFinite(+s), d = a >= i.length; - return s = !s && Fe.isArray(n) ? n.length : s, d ? (Fe.hasOwnProp(n, s) ? n[s] = [n[s], r] : n[s] = r, !u) : ((!n[s] || !Fe.isObject(n[s])) && (n[s] = []), t(i, r, n[s], a) && Fe.isArray(n[s]) && (n[s] = y8(n[s])), !u); + return s = !s && Pe.isArray(n) ? n.length : s, d ? (Pe.hasOwnProp(n, s) ? n[s] = [n[s], r] : n[s] = r, !u) : ((!n[s] || !Pe.isObject(n[s])) && (n[s] = []), t(i, r, n[s], a) && Pe.isArray(n[s]) && (n[s] = y8(n[s])), !u); } - if (Fe.isFormData(e) && Fe.isFunction(e.entries)) { + if (Pe.isFormData(e) && Pe.isFunction(e.entries)) { const i = {}; - return Fe.forEachEntry(e, (r, n) => { + return Pe.forEachEntry(e, (r, n) => { t(g8(r), n, i, 0); }), i; } return null; } function b8(e, t, i) { - if (Fe.isString(e)) + if (Pe.isString(e)) try { - return (t || JSON.parse)(e), Fe.trim(e); + return (t || JSON.parse)(e), Pe.trim(e); } catch (r) { if (r.name !== "SyntaxError") throw r; @@ -43194,20 +43201,20 @@ const jp = { transitional: Vb, adapter: ["xhr", "http", "fetch"], transformRequest: [function(t, i) { - const r = i.getContentType() || "", n = r.indexOf("application/json") > -1, a = Fe.isObject(t); - if (a && Fe.isHTMLForm(t) && (t = new FormData(t)), Fe.isFormData(t)) + const r = i.getContentType() || "", n = r.indexOf("application/json") > -1, a = Pe.isObject(t); + if (a && Pe.isHTMLForm(t) && (t = new FormData(t)), Pe.isFormData(t)) return n ? JSON.stringify(jb(t)) : t; - if (Fe.isArrayBuffer(t) || Fe.isBuffer(t) || Fe.isStream(t) || Fe.isFile(t) || Fe.isBlob(t) || Fe.isReadableStream(t)) + if (Pe.isArrayBuffer(t) || Pe.isBuffer(t) || Pe.isStream(t) || Pe.isFile(t) || Pe.isBlob(t) || Pe.isReadableStream(t)) return t; - if (Fe.isArrayBufferView(t)) + if (Pe.isArrayBufferView(t)) return t.buffer; - if (Fe.isURLSearchParams(t)) + if (Pe.isURLSearchParams(t)) return i.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString(); let u; if (a) { if (r.indexOf("application/x-www-form-urlencoded") > -1) return v8(t, this.formSerializer).toString(); - if ((u = Fe.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { + if ((u = Pe.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { const d = this.env && this.env.FormData; return ku( u ? { "files[]": t } : t, @@ -43220,9 +43227,9 @@ const jp = { }], transformResponse: [function(t) { const i = this.transitional || jp.transitional, r = i && i.forcedJSONParsing, n = this.responseType === "json"; - if (Fe.isResponse(t) || Fe.isReadableStream(t)) + if (Pe.isResponse(t) || Pe.isReadableStream(t)) return t; - if (t && Fe.isString(t) && (r && !this.responseType || n)) { + if (t && Pe.isString(t) && (r && !this.responseType || n)) { const s = !(i && i.silentJSONParsing) && n; try { return JSON.parse(t); @@ -43252,10 +43259,10 @@ const jp = { } } }; -Fe.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => { +Pe.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => { jp.headers[e] = {}; }); -const Up = jp, _8 = Fe.toObjectSet([ +const Up = jp, _8 = Pe.toObjectSet([ "age", "authorization", "content-length", @@ -43285,7 +43292,7 @@ function Ha(e) { return e && String(e).trim().toLowerCase(); } function Ms(e) { - return e === !1 || e == null ? e : Fe.isArray(e) ? e.map(Ms) : String(e); + return e === !1 || e == null ? e : Pe.isArray(e) ? e.map(Ms) : String(e); } function A8(e) { const t = /* @__PURE__ */ Object.create(null), i = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; @@ -43296,12 +43303,12 @@ function A8(e) { } const C8 = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()); function nc(e, t, i, r, n) { - if (Fe.isFunction(r)) + if (Pe.isFunction(r)) return r.call(this, t, i); - if (n && (t = i), !!Fe.isString(t)) { - if (Fe.isString(r)) + if (n && (t = i), !!Pe.isString(t)) { + if (Pe.isString(r)) return t.indexOf(r) !== -1; - if (Fe.isRegExp(r)) + if (Pe.isRegExp(r)) return r.test(t); } } @@ -43309,7 +43316,7 @@ function S8(e) { return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, i, r) => i.toUpperCase() + r); } function E8(e, t) { - const i = Fe.toCamelCase(" " + t); + const i = Pe.toCamelCase(" " + t); ["get", "set", "has"].forEach((r) => { Object.defineProperty(e, r + i, { value: function(n, a, s) { @@ -43329,20 +43336,20 @@ class Ou { const h = Ha(d); if (!h) throw new Error("header name must be a non-empty string"); - const g = Fe.findKey(n, h); + const g = Pe.findKey(n, h); (!g || n[g] === void 0 || p === !0 || p === void 0 && n[g] !== !1) && (n[g || d] = Ms(u)); } - const s = (u, d) => Fe.forEach(u, (p, h) => a(p, h, d)); - if (Fe.isPlainObject(t) || t instanceof this.constructor) + const s = (u, d) => Pe.forEach(u, (p, h) => a(p, h, d)); + if (Pe.isPlainObject(t) || t instanceof this.constructor) s(t, i); - else if (Fe.isString(t) && (t = t.trim()) && !C8(t)) + else if (Pe.isString(t) && (t = t.trim()) && !C8(t)) s(w8(t), i); - else if (Fe.isObject(t) && Fe.isIterable(t)) { + else if (Pe.isObject(t) && Pe.isIterable(t)) { let u = {}, d, p; for (const h of t) { - if (!Fe.isArray(h)) + if (!Pe.isArray(h)) throw TypeError("Object iterator must return a key-value pair"); - u[p = h[0]] = (d = u[p]) ? Fe.isArray(d) ? [...d, h[1]] : [d, h[1]] : h[1]; + u[p = h[0]] = (d = u[p]) ? Pe.isArray(d) ? [...d, h[1]] : [d, h[1]] : h[1]; } s(u, i); } else @@ -43351,16 +43358,16 @@ class Ou { } get(t, i) { if (t = Ha(t), t) { - const r = Fe.findKey(this, t); + const r = Pe.findKey(this, t); if (r) { const n = this[r]; if (!i) return n; if (i === !0) return A8(n); - if (Fe.isFunction(i)) + if (Pe.isFunction(i)) return i.call(this, n, r); - if (Fe.isRegExp(i)) + if (Pe.isRegExp(i)) return i.exec(n); throw new TypeError("parser must be boolean|regexp|function"); } @@ -43368,7 +43375,7 @@ class Ou { } has(t, i) { if (t = Ha(t), t) { - const r = Fe.findKey(this, t); + const r = Pe.findKey(this, t); return !!(r && this[r] !== void 0 && (!i || nc(this, this[r], r, i))); } return !1; @@ -43378,11 +43385,11 @@ class Ou { let n = !1; function a(s) { if (s = Ha(s), s) { - const u = Fe.findKey(r, s); + const u = Pe.findKey(r, s); u && (!i || nc(r, r[u], u, i)) && (delete r[u], n = !0); } } - return Fe.isArray(t) ? t.forEach(a) : a(t), n; + return Pe.isArray(t) ? t.forEach(a) : a(t), n; } clear(t) { const i = Object.keys(this); @@ -43395,8 +43402,8 @@ class Ou { } normalize(t) { const i = this, r = {}; - return Fe.forEach(this, (n, a) => { - const s = Fe.findKey(r, a); + return Pe.forEach(this, (n, a) => { + const s = Pe.findKey(r, a); if (s) { i[s] = Ms(n), delete i[a]; return; @@ -43410,8 +43417,8 @@ class Ou { } toJSON(t) { const i = /* @__PURE__ */ Object.create(null); - return Fe.forEach(this, (r, n) => { - r != null && r !== !1 && (i[n] = t && Fe.isArray(r) ? r.join(", ") : r); + return Pe.forEach(this, (r, n) => { + r != null && r !== !1 && (i[n] = t && Pe.isArray(r) ? r.join(", ") : r); }), i; } [Symbol.iterator]() { @@ -43442,11 +43449,11 @@ class Ou { const u = Ha(s); r[u] || (E8(n, s), r[u] = !0); } - return Fe.isArray(t) ? t.forEach(a) : a(t), this; + return Pe.isArray(t) ? t.forEach(a) : a(t), this; } } Ou.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]); -Fe.reduceDescriptors(Ou.prototype, ({ value: e }, t) => { +Pe.reduceDescriptors(Ou.prototype, ({ value: e }, t) => { let i = t[0].toUpperCase() + t.slice(1); return { get: () => e, @@ -43455,12 +43462,12 @@ Fe.reduceDescriptors(Ou.prototype, ({ value: e }, t) => { } }; }); -Fe.freezeMethods(Ou); +Pe.freezeMethods(Ou); const xi = Ou; function ic(e, t) { const i = this || Up, r = t || i, n = xi.from(r.headers); let a = r.data; - return Fe.forEach(e, function(u) { + return Pe.forEach(e, function(u) { a = u.call(i, a, n.normalize(), t ? t.status : void 0); }), n.normalize(), a; } @@ -43470,7 +43477,7 @@ function Ub(e) { function ia(e, t, i) { Tt.call(this, e == null ? "canceled" : e, Tt.ERR_CANCELED, t, i), this.name = "CanceledError"; } -Fe.inherits(ia, Tt, { +Pe.inherits(ia, Tt, { __CANCEL__: !0 }); function Hb(e, t, i) { @@ -43541,13 +43548,13 @@ const nu = (e, t, i = 3) => { total: e, loaded: r }), t[1]]; -}, Gg = (e) => (...t) => Fe.asap(() => e(...t)), O8 = Dn.hasStandardBrowserEnv ? ((e, t) => (i) => (i = new URL(i, Dn.origin), e.protocol === i.protocol && e.host === i.host && (t || e.port === i.port)))( +}, Gg = (e) => (...t) => Pe.asap(() => e(...t)), O8 = Dn.hasStandardBrowserEnv ? ((e, t) => (i) => (i = new URL(i, Dn.origin), e.protocol === i.protocol && e.host === i.host && (t || e.port === i.port)))( new URL(Dn.origin), Dn.navigator && /(msie|trident)/i.test(Dn.navigator.userAgent) ) : () => !0, $8 = Dn.hasStandardBrowserEnv ? { write(e, t, i, r, n, a) { const s = [e + "=" + encodeURIComponent(t)]; - Fe.isNumber(i) && s.push("expires=" + new Date(i).toGMTString()), Fe.isString(r) && s.push("path=" + r), Fe.isString(n) && s.push("domain=" + n), a === !0 && s.push("secure"), document.cookie = s.join("; "); + Pe.isNumber(i) && s.push("expires=" + new Date(i).toGMTString()), Pe.isString(r) && s.push("path=" + r), Pe.isString(n) && s.push("domain=" + n), a === !0 && s.push("secure"), document.cookie = s.join("; "); }, read(e) { const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)")); @@ -43580,22 +43587,22 @@ function Qr(e, t) { t = t || {}; const i = {}; function r(p, h, g, _) { - return Fe.isPlainObject(p) && Fe.isPlainObject(h) ? Fe.merge.call({ caseless: _ }, p, h) : Fe.isPlainObject(h) ? Fe.merge({}, h) : Fe.isArray(h) ? h.slice() : h; + return Pe.isPlainObject(p) && Pe.isPlainObject(h) ? Pe.merge.call({ caseless: _ }, p, h) : Pe.isPlainObject(h) ? Pe.merge({}, h) : Pe.isArray(h) ? h.slice() : h; } function n(p, h, g, _) { - if (Fe.isUndefined(h)) { - if (!Fe.isUndefined(p)) + if (Pe.isUndefined(h)) { + if (!Pe.isUndefined(p)) return r(void 0, p, g, _); } else return r(p, h, g, _); } function a(p, h) { - if (!Fe.isUndefined(h)) + if (!Pe.isUndefined(h)) return r(void 0, h); } function s(p, h) { - if (Fe.isUndefined(h)) { - if (!Fe.isUndefined(p)) + if (Pe.isUndefined(h)) { + if (!Pe.isUndefined(p)) return r(void 0, p); } else return r(void 0, h); @@ -43637,9 +43644,9 @@ function Qr(e, t) { validateStatus: u, headers: (p, h, g) => n(Kg(p), Kg(h), g, !0) }; - return Fe.forEach(Object.keys(Object.assign({}, e, t)), function(h) { + return Pe.forEach(Object.keys(Object.assign({}, e, t)), function(h) { const g = d[h] || n, _ = g(e[h], t[h], h); - Fe.isUndefined(_) && g !== u || (i[h] = _); + Pe.isUndefined(_) && g !== u || (i[h] = _); }), i; } const Wb = (e) => { @@ -43650,7 +43657,7 @@ const Wb = (e) => { "Basic " + btoa((u.username || "") + ":" + (u.password ? unescape(encodeURIComponent(u.password)) : "")) ); let d; - if (Fe.isFormData(i)) { + if (Pe.isFormData(i)) { if (Dn.hasStandardBrowserEnv || Dn.hasStandardBrowserWebWorkerEnv) s.setContentType(void 0); else if ((d = s.getContentType()) !== !1) { @@ -43658,7 +43665,7 @@ const Wb = (e) => { s.setContentType([p || "multipart/form-data", ...h].join("; ")); } } - if (Dn.hasStandardBrowserEnv && (r && Fe.isFunction(r) && (r = r(t)), r || r !== !1 && O8(t.url))) { + if (Dn.hasStandardBrowserEnv && (r && Pe.isFunction(r) && (r = r(t)), r || r !== !1 && O8(t.url))) { const p = n && a && $8.read(a); p && s.set(n, p); } @@ -43708,9 +43715,9 @@ const Wb = (e) => { e, y )), y = null; - }, a === void 0 && s.setContentType(null), "setRequestHeader" in y && Fe.forEach(s.toJSON(), function(x, k) { + }, a === void 0 && s.setContentType(null), "setRequestHeader" in y && Pe.forEach(s.toJSON(), function(x, k) { y.setRequestHeader(k, x); - }), Fe.isUndefined(n.withCredentials) || (y.withCredentials = !!n.withCredentials), u && u !== "json" && (y.responseType = n.responseType), p && ([_, b] = nu(p, !0), y.addEventListener("progress", _)), d && y.upload && ([g, S] = nu(d), y.upload.addEventListener("progress", g), y.upload.addEventListener("loadend", S)), (n.cancelToken || n.signal) && (h = (E) => { + }), Pe.isUndefined(n.withCredentials) || (y.withCredentials = !!n.withCredentials), u && u !== "json" && (y.responseType = n.responseType), p && ([_, b] = nu(p, !0), y.addEventListener("progress", _)), d && y.upload && ([g, S] = nu(d), y.upload.addEventListener("progress", g), y.upload.addEventListener("loadend", S)), (n.cancelToken || n.signal) && (h = (E) => { !y || (r(!E || E.type ? new ia(null, e, y) : E), y.abort(), y = null); }, n.cancelToken && n.cancelToken.subscribe(h), n.signal && (n.signal.aborted ? h() : n.signal.addEventListener("abort", h))); const w = x8(n.url); @@ -43741,7 +43748,7 @@ const Wb = (e) => { }; e.forEach((p) => p.addEventListener("abort", a)); const { signal: d } = r; - return d.unsubscribe = () => Fe.asap(u), d; + return d.unsubscribe = () => Pe.asap(u), d; } }, M8 = P8, L8 = function* (e, t) { let i = e.byteLength; @@ -43816,12 +43823,12 @@ const Wb = (e) => { } }).headers.has("Content-Type"); return e && !t; -}), Qg = 64 * 1024, Tc = Gb && Kb(() => Fe.isReadableStream(new Response("").body)), iu = { +}), Qg = 64 * 1024, Tc = Gb && Kb(() => Pe.isReadableStream(new Response("").body)), iu = { stream: Tc && ((e) => e.body) }; $u && ((e) => { ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => { - !iu[t] && (iu[t] = Fe.isFunction(e[t]) ? (i) => i[t]() : (i, r) => { + !iu[t] && (iu[t] = Pe.isFunction(e[t]) ? (i) => i[t]() : (i, r) => { throw new Tt(`Response type '${t}' is not supported`, Tt.ERR_NOT_SUPPORT, r); }); }); @@ -43829,19 +43836,19 @@ $u && ((e) => { const U8 = async (e) => { if (e == null) return 0; - if (Fe.isBlob(e)) + if (Pe.isBlob(e)) return e.size; - if (Fe.isSpecCompliantForm(e)) + if (Pe.isSpecCompliantForm(e)) return (await new Request(Dn.origin, { method: "POST", body: e }).arrayBuffer()).byteLength; - if (Fe.isArrayBufferView(e) || Fe.isArrayBuffer(e)) + if (Pe.isArrayBufferView(e) || Pe.isArrayBuffer(e)) return e.byteLength; - if (Fe.isURLSearchParams(e) && (e = e + ""), Fe.isString(e)) + if (Pe.isURLSearchParams(e) && (e = e + ""), Pe.isString(e)) return (await V8(e)).byteLength; }, H8 = async (e, t) => { - const i = Fe.toFiniteNumber(e.getContentLength()); + const i = Pe.toFiniteNumber(e.getContentLength()); return i == null ? U8(t) : i; }, z8 = $u && (async (e) => { let { @@ -43870,8 +43877,8 @@ const U8 = async (e) => { method: "POST", body: r, duplex: "half" - }), $; - if (Fe.isFormData(r) && ($ = k.headers.get("content-type")) && h.setContentType($), k.body) { + }), R; + if (Pe.isFormData(r) && (R = k.headers.get("content-type")) && h.setContentType(R), k.body) { const [M, P] = Wg( y, nu(Gg(d)) @@ -43879,7 +43886,7 @@ const U8 = async (e) => { r = Yg(k.body, Qg, M, P); } } - Fe.isString(g) || (g = g ? "include" : "omit"); + Pe.isString(g) || (g = g ? "include" : "omit"); const m = "credentials" in Request.prototype; b = new Request(t, { ..._, @@ -43897,8 +43904,8 @@ const U8 = async (e) => { ["status", "statusText", "headers"].forEach((B) => { k[B] = w[B]; }); - const $ = Fe.toFiniteNumber(w.headers.get("content-length")), [M, P] = u && Wg( - $, + const R = Pe.toFiniteNumber(w.headers.get("content-length")), [M, P] = u && Wg( + R, nu(Gg(u), !0) ) || []; w = new Response( @@ -43909,9 +43916,9 @@ const U8 = async (e) => { ); } p = p || "text"; - let x = await iu[Fe.findKey(iu, p) || "text"](w, e); - return !E && A && A(), await new Promise((k, $) => { - Hb(k, $, { + let x = await iu[Pe.findKey(iu, p) || "text"](w, e); + return !E && A && A(), await new Promise((k, R) => { + Hb(k, R, { data: x, headers: xi.from(w.headers), status: w.status, @@ -43933,7 +43940,7 @@ const U8 = async (e) => { xhr: F8, fetch: z8 }; -Fe.forEach(kc, (e, t) => { +Pe.forEach(kc, (e, t) => { if (e) { try { Object.defineProperty(e, "name", { value: t }); @@ -43942,9 +43949,9 @@ Fe.forEach(kc, (e, t) => { Object.defineProperty(e, "adapterName", { value: t }); } }); -const Jg = (e) => `- ${e}`, W8 = (e) => Fe.isFunction(e) || e === null || e === !1, Yb = { +const Jg = (e) => `- ${e}`, W8 = (e) => Pe.isFunction(e) || e === null || e === !1, Yb = { getAdapter: (e) => { - e = Fe.isArray(e) ? e : [e]; + e = Pe.isArray(e) ? e : [e]; const { length: t } = e; let i, r; const n = {}; @@ -44075,7 +44082,7 @@ class ru { silentJSONParsing: Li.transitional(Li.boolean), forcedJSONParsing: Li.transitional(Li.boolean), clarifyTimeoutError: Li.transitional(Li.boolean) - }, !1), n != null && (Fe.isFunction(n) ? i.paramsSerializer = { + }, !1), n != null && (Pe.isFunction(n) ? i.paramsSerializer = { serialize: n } : Ls.assertOptions(n, { encode: Li.function, @@ -44084,11 +44091,11 @@ class ru { baseUrl: Li.spelling("baseURL"), withXsrfToken: Li.spelling("withXSRFToken") }, !0), i.method = (i.method || this.defaults.method || "get").toLowerCase(); - let s = a && Fe.merge( + let s = a && Pe.merge( a.common, a[i.method] ); - a && Fe.forEach( + a && Pe.forEach( ["delete", "get", "head", "post", "put", "patch", "common"], (b) => { delete a[b]; @@ -44136,7 +44143,7 @@ class ru { return Bb(i, t.params, t.paramsSerializer); } } -Fe.forEach(["delete", "get", "head", "options"], function(t) { +Pe.forEach(["delete", "get", "head", "options"], function(t) { ru.prototype[t] = function(i, r) { return this.request(Qr(r || {}, { method: t, @@ -44145,7 +44152,7 @@ Fe.forEach(["delete", "get", "head", "options"], function(t) { })); }; }); -Fe.forEach(["post", "put", "patch"], function(t) { +Pe.forEach(["post", "put", "patch"], function(t) { function i(r) { return function(a, s, u) { return this.request(Qr(u || {}, { @@ -44229,7 +44236,7 @@ function Y8(e) { }; } function Q8(e) { - return Fe.isObject(e) && e.isAxiosError === !0; + return Pe.isObject(e) && e.isAxiosError === !0; } const Oc = { Continue: 100, @@ -44302,7 +44309,7 @@ Object.entries(Oc).forEach(([e, t]) => { const J8 = Oc; function Jb(e) { const t = new Ns(e), i = Tb(Ns.prototype.request, t); - return Fe.extend(i, Ns.prototype, t, { allOwnKeys: !0 }), Fe.extend(i, t, null, { allOwnKeys: !0 }), i.create = function(n) { + return Pe.extend(i, Ns.prototype, t, { allOwnKeys: !0 }), Pe.extend(i, t, null, { allOwnKeys: !0 }), i.create = function(n) { return Jb(Qr(e, n)); }, i; } @@ -44322,14 +44329,14 @@ cn.spread = Y8; cn.isAxiosError = Q8; cn.mergeConfig = Qr; cn.AxiosHeaders = xi; -cn.formToJSON = (e) => jb(Fe.isHTMLForm(e) ? new FormData(e) : e); +cn.formToJSON = (e) => jb(Pe.isHTMLForm(e) ? new FormData(e) : e); cn.getAdapter = Yb.getAdapter; cn.HttpStatusCode = J8; cn.default = cn; const qg = cn; jo.registerLanguage("javascript", UP); jo.registerLanguage("xml", jP); -const X8 = Ve({ +const X8 = Be({ name: "FcDesigner", components: { AiChat: gB, @@ -44353,7 +44360,7 @@ const X8 = Ve({ SubList: x3, PageInput: a3, fcDraggable: Yo, - DragForm: et.$form(), + DragForm: tt.$form(), ViewForm: li.$form(), DragFormMobile: qo.$form(), ViewFormMobile: LI.$form(), @@ -44385,39 +44392,39 @@ const X8 = Ve({ }, emits: ["active", "create", "copy", "delete", "drag", "inputData", "inputPageData", "save", "clear", "switchForm", "copyRule", "pasteRule", "sortUp", "sortDown", "changeDevice", "previewSubmit", "previewReset"], setup(e) { - var Te, ge, me, we, ce, Se; + var ge, ve, we, he, Se, xe; let t; t = !1; const { menu: i, height: r, mask: n, locale: a, handle: s } = zm(e), u = lw(), d = vi({ active: null }); Wm("fcx", d), Wm("designer", u); - const p = Ei(e, "config", {}), h = Ei(e, "theme"), g = Ei(e, "field", []), _ = Ei(e, "list", []), S = Ei(p.value, "baseRule", null), b = Ei(p.value, "componentRule", {}), A = Ei(p.value, "updateDefaultRule", {}), y = Ei(p.value, "validateRule", null), m = Ei(p.value, "formRule", null), w = Cn(() => { - const I = r.value; - return I ? St.Number(I) ? `${I}px` : I : "100%"; - }), E = Cn(() => p.value.fieldReadonly !== !1), x = Cn(() => p.value.fieldList || []), k = Cn(() => p.value.varList || []), $ = Cn(() => p.value.hiddenMenu || []), M = Cn(() => p.value.hiddenItem || []), P = Cn(() => p.value.hiddenDragMenu === !0), B = Cn(() => p.value.hiddenDragBtn === !0), T = Cn(() => u.refs.dragCon.clientHeight), D = Cn(() => { - var I; - return (((I = a.value) == null ? void 0 : I.name) || "zh-cn") === "zh-cn" ? M3 : null; - }), V = Cn(() => J.getConfig("showGridLine") !== !1 || J.getConfig("showQuickLayout") !== !1 || J.getConfig("showPrintBtn") !== !1), K = Cn(() => { - const I = ["base", "advanced", "props", "slots", "style", "event", "validate"]; - let j = p.value.configFormOrder ? [...p.value.configFormOrder] : [], ee = []; - return j.length ? [...j, ...I].forEach((te) => { - ee.indexOf(te) === -1 && I.indexOf(te) > -1 && ee.push(te); - }) : ee = I, ee.map((te) => `"${te}"`).join(" "); + const p = e.appUrl, h = Ei(e, "config", {}), g = Ei(e, "theme"), _ = Ei(e, "field", []), S = Ei(e, "list", []), b = Ei(h.value, "baseRule", null), A = Ei(h.value, "componentRule", {}), y = Ei(h.value, "updateDefaultRule", {}), m = Ei(h.value, "validateRule", null), w = Ei(h.value, "formRule", null), E = Cn(() => { + const $ = r.value; + return $ ? St.Number($) ? `${$}px` : $ : "100%"; + }), x = Cn(() => h.value.fieldReadonly !== !1), k = Cn(() => h.value.fieldList || []), R = Cn(() => h.value.varList || []), M = Cn(() => h.value.hiddenMenu || []), P = Cn(() => h.value.hiddenItem || []), B = Cn(() => h.value.hiddenDragMenu === !0), T = Cn(() => h.value.hiddenDragBtn === !0), D = Cn(() => u.refs.dragCon.clientHeight), V = Cn(() => { + var $; + return ((($ = a.value) == null ? void 0 : $.name) || "zh-cn") === "zh-cn" ? M3 : null; + }), W = Cn(() => te.getConfig("showGridLine") !== !1 || te.getConfig("showQuickLayout") !== !1 || te.getConfig("showPrintBtn") !== !1), G = Cn(() => { + const $ = ["base", "advanced", "props", "slots", "style", "event", "validate"]; + let K = h.value.configFormOrder ? [...h.value.configFormOrder] : [], X = []; + return K.length ? [...K, ...$].forEach((ie) => { + X.indexOf(ie) === -1 && $.indexOf(ie) > -1 && X.push(ie); + }) : X = $, X.map((ie) => `"${ie}"`).join(" "); }); - xo(h, (I, j) => { - j && document.body.classList.remove("fd-theme-" + j), I && document.body.classList.add("fd-theme-" + I); + xo(g, ($, K) => { + K && document.body.classList.remove("fd-theme-" + K), $ && document.body.classList.add("fd-theme-" + $); }); - let G = wc; - a.value && (G = oc(a).t); - const R = (...I) => G(...I), z = (I, j, ...ee) => { - if (j) { - if (St.Function(j)) - return j(...ee); - if (j.rule) { - let te = j.rule(...ee); - return j.prepend ? te = [...te, ...I(...ee)] : j.append && (te = [...I(...ee), ...te]), te; + let I = wc; + a.value && (I = oc(a).t); + const U = (...$) => I(...$), F = ($, K, ...X) => { + if (K) { + if (St.Function(K)) + return K(...X); + if (K.rule) { + let ie = K.rule(...X); + return K.prepend ? ie = [...ie, ...$(...X)] : K.append && (ie = [...$(...X), ...ie]), ie; } } - return I(...ee); + return $(...X); }, C = vi({ cacheProps: {}, operation: { @@ -44432,9 +44439,9 @@ const X8 = Ve({ label: "name", children: "children", value: "id", - isLeaf: (I) => { - var j; - return !((j = I.children) != null && j.length); + isLeaf: ($) => { + var K; + return !((K = $.children) != null && K.length); } }, fieldData: [], @@ -44447,7 +44454,7 @@ const X8 = Ve({ addRule: null, added: null, bus: Sw(), - device: ((Te = p.value) == null ? void 0 : Te.device) || "pc", + device: ((ge = h.value) == null ? void 0 : ge.device) || "pc", activeModule: "base", activeTab: "form", activeMenuTab: "menu", @@ -44461,7 +44468,7 @@ const X8 = Ve({ unloadStatus: !1, previewStatus: "form", previewDevice: "pc", - t: R, + t: U, preview: { state: !1, rule: [], @@ -44481,15 +44488,16 @@ const X8 = Ve({ api: {} }), formOptions: { + appUrl: p, datasetInfo: {} }, oldOptionsKeys: [], form: { - rule: z(Xm, m.value, { t: R }), + rule: F(Xm, w.value, { t: U }), api: {}, option: { global: { - input: ((ge = p.value) == null ? void 0 : ge.updateConfigOnBlur) !== !1 ? { + input: ((ve = h.value) == null ? void 0 : ve.updateConfigOnBlur) !== !1 ? { modelEmit: "blur" } : {}, select: { @@ -44511,12 +44519,12 @@ const X8 = Ve({ }, baseForm: { isShow: !1, - rule: z(Fa, S.value, { t: R }), + rule: F(Fa, b.value, { t: U }), api: {}, value: {}, options: { global: { - input: ((me = p.value) == null ? void 0 : me.updateConfigOnBlur) !== !1 ? { + input: ((we = h.value) == null ? void 0 : we.updateConfigOnBlur) !== !1 ? { modelEmit: "blur" } : {}, select: { @@ -44530,19 +44538,19 @@ const X8 = Ve({ size: "small" }, submitBtn: !1, - mounted: (I) => { - I.activeRule = C.activeRule, I.setValue(I.options.formData || {}); + mounted: ($) => { + $.activeRule = C.activeRule, $.setValue($.options.formData || {}); } } }, advancedForm: { isShow: !1, - rule: qm({ t: R }), + rule: qm({ t: U }), api: {}, value: {}, options: { global: { - input: ((we = p.value) == null ? void 0 : we.updateConfigOnBlur) !== !1 ? { + input: ((he = h.value) == null ? void 0 : he.updateConfigOnBlur) !== !1 ? { modelEmit: "blur" } : {}, select: { @@ -44556,14 +44564,14 @@ const X8 = Ve({ size: "small" }, submitBtn: !1, - mounted: (I) => { - I.activeRule = C.activeRule, I.setValue(I.options.formData || {}); + mounted: ($) => { + $.activeRule = C.activeRule, $.setValue($.options.formData || {}); } } }, styleForm: { isShow: !1, - rule: Zm({ t: R }), + rule: Zm({ t: U }), api: {}, value: {}, options: { @@ -44572,14 +44580,14 @@ const X8 = Ve({ size: "small" }, submitBtn: !1, - mounted: (I) => { - I.activeRule = C.activeRule, I.setValue(I.options.formData || {}); + mounted: ($) => { + $.activeRule = C.activeRule, $.setValue($.options.formData || {}); } } }, validateForm: { isShow: !1, - rule: z(ev, y.value, { t: R }), + rule: F(ev, m.value, { t: U }), api: {}, value: [], options: { @@ -44588,8 +44596,8 @@ const X8 = Ve({ size: "small" }, submitBtn: !1, - mounted: (I) => { - I.activeRule = C.activeRule, I.setValue(I.options.formData || {}); + mounted: ($) => { + $.activeRule = C.activeRule, $.setValue($.options.formData || {}); } } }, @@ -44601,7 +44609,7 @@ const X8 = Ve({ value: {}, options: { global: { - input: ((ce = p.value) == null ? void 0 : ce.updateConfigOnBlur) !== !1 ? { + input: ((Se = h.value) == null ? void 0 : Se.updateConfigOnBlur) !== !1 ? { modelEmit: "blur" } : {}, inputNumber: { @@ -44620,8 +44628,8 @@ const X8 = Ve({ size: "small" }, submitBtn: !1, - mounted: (I) => { - I.activeRule = C.activeRule, I.setValue(I.options.formData || {}); + mounted: ($) => { + $.activeRule = C.activeRule, $.setValue($.options.formData || {}); } } }, @@ -44633,7 +44641,7 @@ const X8 = Ve({ api: {}, options: { global: { - input: ((Se = p.value) == null ? void 0 : Se.updateConfigOnBlur) !== !1 ? { + input: ((xe = h.value) == null ? void 0 : xe.updateConfigOnBlur) !== !1 ? { modelEmit: "blur" } : {}, select: { @@ -44649,86 +44657,87 @@ const X8 = Ve({ submitBtn: !1 } } - }), F = Cn(() => { - const I = C.activeRule; - if (!I || !I._menu.children || I._fc_drag_tag === I._menu.children) + }), q = Cn(() => { + const $ = C.activeRule; + if (!$ || !$._menu.children || $._fc_drag_tag === $._menu.children) return null; - const j = C.dragRuleList[I._fc_drag_tag], ee = C.dragRuleList[I._menu.children]; - let te = I.children; - return j.inside && (te = te[0].children), ee.inside || (te = te.map((se) => se.children[0])), te.filter((se) => se._fc_drag_tag === ee.name); + const K = C.dragRuleList[$._fc_drag_tag], X = C.dragRuleList[$._menu.children]; + let ie = $.children; + return K.inside && (ie = ie[0].children), X.inside || (ie = ie.map((re) => re.children[0])), ie.filter((re) => re._fc_drag_tag === X.name); }); - xo(() => C.preview.state, function(I) { - I || Yn(() => { + xo(() => C.preview.state, function($) { + $ || Yn(() => { C.previewStatus = "form", C.preview.rule = C.preview.option = null; }); - }), xo(() => C.previewStatus, (I) => { - C.preview.rule && (C.preview.option.preview = I === "preview"); + }), xo(() => C.previewStatus, ($) => { + C.preview.rule && (C.preview.option.preview = $ === "preview"); }); - let q = null; - const Z = (I, j) => { - if (I[10] !== ">") { - if (I = I.replace("formCreate", ""), !I) + let Z = null; + const Y = ($, K) => { + if ($[10] !== ">") { + if ($ = $.replace("formCreate", ""), !$) return; - I = js(I); + $ = js($); } else - I = I.replace("formCreate>", ""); - const ee = I.split(">"), te = ee.pop(); - let se = C.activeRule; - ee.forEach((oe, _e) => { - _e || (oe = js(oe)), se[oe] || (se[oe] = {}), se = se[oe]; - }), j({ source: se, field: te }); - }, Y = Cn(() => C.pageData.filter((I) => !I.default).length); - xo(() => a.value, (I) => { - G = I ? oc(a).t : wc, J.clearActiveRule(); - const j = C.form.api.formData && C.form.api.formData(), ee = C.baseForm.api.formData && C.baseForm.api.formData(), te = C.validateForm.api.formData && C.validateForm.api.formData(); - C.validateForm.rule = z(ev, y.value, { t: R }), C.baseForm.rule = z(Fa, S.value, { t: R }), C.form.rule = z(Xm, m.value, { t: R }), C.styleForm.rule = Zm({ t: R }), C.advancedForm.rule = qm({ t: R }), C.cacheProps = {}; - const se = C.activeRule; - let oe = null; - se && (oe = C.propsForm.api.formData && C.propsForm.api.formData(), C.propsForm.rule = C.cacheProps[se._fc_id] = J.getPropsRule(se)), Yn(() => { - j && C.form.api.setValue(j), ee && C.baseForm.api.setValue(ee), te && C.validateForm.api.setValue(te), oe && C.propsForm.api.setValue(oe); + $ = $.replace("formCreate>", ""); + const X = $.split(">"), ie = X.pop(); + let re = C.activeRule; + X.forEach((fe, Ae) => { + Ae || (fe = js(fe)), re[fe] || (re[fe] = {}), re = re[fe]; + }), K({ source: re, field: ie }); + }, ue = Cn(() => C.pageData.filter(($) => !$.default).length); + xo(() => a.value, ($) => { + I = $ ? oc(a).t : wc, te.clearActiveRule(); + const K = C.form.api.formData && C.form.api.formData(), X = C.baseForm.api.formData && C.baseForm.api.formData(), ie = C.validateForm.api.formData && C.validateForm.api.formData(); + C.validateForm.rule = F(ev, m.value, { t: U }), C.baseForm.rule = F(Fa, b.value, { t: U }), C.form.rule = F(Xm, w.value, { t: U }), C.styleForm.rule = Zm({ t: U }), C.advancedForm.rule = qm({ t: U }), C.cacheProps = {}; + const re = C.activeRule; + let fe = null; + re && (fe = C.propsForm.api.formData && C.propsForm.api.formData(), C.propsForm.rule = C.cacheProps[re._fc_id] = te.getPropsRule(re)), Yn(() => { + K && C.form.api.setValue(K), X && C.baseForm.api.setValue(X), ie && C.validateForm.api.setValue(ie), fe && C.propsForm.api.setValue(fe); }); - }), xo(() => p.value.license, (I) => { - li.license = I, et.license = I, window && window.formCreate && (window.formCreate.license = I); + }), xo(() => h.value.license, ($) => { + li.license = $, tt.license = $, window && window.formCreate && (window.formCreate.license = $); }, { immediate: !0 }); - const J = { - dsClick(I) { - J.onDatasetChange(I), C.datasetData.forEach((j) => { - j.table_id == I && (C.datasetInfo = j, C.formOptions.datasetInfo = j); + const te = { + dsClick($) { + te.onDatasetChange($), C.datasetData.forEach((K) => { + K.table_id == $ && (C.datasetInfo = K, C.formOptions.datasetInfo = K); }); }, - onDatasetChange(I) { - let j = C.appUrl; - C.appUrl == null && (j = "http://192.168.1.38:8100"), C.fieldData = [], qg.get(j + "/datasetData/getFieldsByTableId", { + onDatasetChange($) { + let K = p; + K == null && (K = ""), C.fieldData = [], qg.get(K + "/datasetData/getFieldsByTableId", { params: { - id: I + id: $ } - }).then((ee) => { - console.log(ee), ee.data.data.forEach((te) => { - te.label = te.name, te.item = "input", te.field = te.origin_name, te.update = { + }).then((X) => { + console.log(X), X.data.data.forEach((ie) => { + ie.label = ie.name, ie.item = "input", ie.fieldtype = ie.type, ie.maxlength = ie.size, ie.field = ie.origin_name, ie.update = { disabled: !1 - }, C.fieldData.push(te); + }, C.fieldData.push(ie); }); - }).catch((ee) => { - console.error(" \u8BF7\u6C42\u51FA\u9519:", ee); + }).catch((X) => { + console.error(" \u8BF7\u6C42\u51FA\u9519:", X); }); }, getInit() { - let I = C.appUrl; - C.appUrl == null && (I = "http://192.168.1.38:8100"), qg.get(I + "/datasetData/getTablesByAppId", { + C.formOptions.appUrl = p; + let $ = p; + $ == null && ($ = ""), qg.get($ + "/datasetData/getTablesByAppId", { params: { - appid: "1907238244651679745" + appid: e.appId } - }).then((j) => { - C.datasetData = j.data.data; - }).catch((j) => { - console.error(" \u8BF7\u6C42\u51FA\u9519:", j); + }).then((K) => { + C.datasetData = K.data.data; + }).catch((K) => { + console.error(" \u8BF7\u6C42\u51FA\u9519:", K); }); }, - setDevice(I) { - C.device = I, u.emit("changeDevice", I); + setDevice($) { + C.device = $, u.emit("changeDevice", $); }, initPage() { - C.children = J.makeChildren([]), C.dragForm.rule = J.makeDragRule(C.children), C.operation = C.pageData[0] ? C.pageData[0].operation : { + C.children = te.makeChildren([]), C.dragForm.rule = te.makeDragRule(C.children), C.operation = C.pageData[0] ? C.pageData[0].operation : { idx: -1, list: [] }, C.pageData = [{ @@ -44737,144 +44746,144 @@ const X8 = Ve({ operation: C.operation }], C.activePage = C.pageData[0]; }, - changePage(I) { - const j = C.pageData[I]; - if (C.activePage !== j) { + changePage($) { + const K = C.pageData[$]; + if (C.activePage !== K) { if (C.activePage) { - const ee = C.activePage; - ee.rule = C.dragForm.rule, ee.operation = C.operation; + const X = C.activePage; + X.rule = C.dragForm.rule, X.operation = C.operation; } - j.operation || (j.operation = { + K.operation || (K.operation = { idx: -1, list: [] - }), C.dragForm.rule = j.rule, j.default ? C.children = j.rule[0].children : C.children = j.rule[0].children[0].children[0].children, C.activePage = j, C.operation = j.operation, C.preview.state = !1, C.inputForm.state = !1, J.clearActiveRule(), J.updateTree(); + }), C.dragForm.rule = K.rule, K.default ? C.children = K.rule[0].children : C.children = K.rule[0].children[0].children[0].children, C.activePage = K, C.operation = K.operation, C.preview.state = !1, C.inputForm.state = !1, te.clearActiveRule(), te.updateTree(); } }, - deletePage(I) { - I && (C.pageData[I] === C.activePage && J.changePage(0), C.pageData.splice(I, 1)); + deletePage($) { + $ && (C.pageData[$] === C.activePage && te.changePage(0), C.pageData.splice($, 1)); }, - copyPage(I) { - if (I) { - const j = C.pageData[I], ee = gt(C.pageData[I].rule)[0], te = ee.type === "DragTool" ? ee.children[0] : ee; - te.name = "ref_" + it(), te._fc_id = "id_" + it(), hg(te, j.config.labelField, Wo(te, j.config.labelField, "") + " Copy"), C.pageData.splice(I + 1, 0, { - config: j.config, - type: j.type, - main: te, - rule: [ee] + copyPage($) { + if ($) { + const K = C.pageData[$], X = gt(C.pageData[$].rule)[0], ie = X.type === "DragTool" ? X.children[0] : X; + ie.name = "ref_" + rt(), ie._fc_id = "id_" + rt(), hg(ie, K.config.labelField, Wo(ie, K.config.labelField, "") + " Copy"), C.pageData.splice($ + 1, 0, { + config: K.config, + type: K.type, + main: ie, + rule: [X] }); } }, - addPage(I) { - const j = J.makeRule(C.dragRuleList[I]); - J.appendPage(I, j); + addPage($) { + const K = te.makeRule(C.dragRuleList[$]); + te.appendPage($, K); }, - appendPage(I, j) { - const ee = j.type === "DragTool" ? j.children[0] : j; + appendPage($, K) { + const X = K.type === "DragTool" ? K.children[0] : K; C.pageData.push({ - config: C.dragRuleList[I].container, - main: ee, - type: I, - rule: [j] + config: C.dragRuleList[$].container, + main: X, + type: $, + rule: [K] }); }, openGlobalFetchDialog() { - const I = u.refs.globalFetch; - I && I.open(); + const $ = u.refs.globalFetch; + $ && $.open(); }, openGlobalClassDialog() { - const I = u.refs.globalClass; - I && I.open(); + const $ = u.refs.globalClass; + $ && $.open(); }, openGlobalEventDialog() { - const I = u.refs.globalEvent; - I && I.open(); + const $ = u.refs.globalEvent; + $ && $.open(); }, openGlobalVariableDialog() { - const I = u.refs.globalVariable; - I && I.open(); + const $ = u.refs.globalVariable; + $ && $.open(); }, unWatchActiveRule() { - q && q(), q = null; + Z && Z(), Z = null; }, watchActiveRule() { - J.unWatchActiveRule(), q = xo(() => C.activeRule, function(I) { - I && J.updateRuleFormData(); + te.unWatchActiveRule(), Z = xo(() => C.activeRule, function($) { + $ && te.updateRuleFormData(); }, { deep: !0, flush: "post" }); }, - makeChildren(I) { - return vi({ children: I }).children; + makeChildren($) { + return vi({ children: $ }).children; }, - addMenu(I) { - if (!I.name) + addMenu($) { + if (!$.name) return; - let j = !0; - C.menuList.forEach((ee, te) => { - ee.name === I.name && (C.menuList[te] = I, j = !1); - }), j && (I.before ? C.menuList.unshift(I) : C.menuList.push(I)); + let K = !0; + C.menuList.forEach((X, ie) => { + X.name === $.name && (C.menuList[ie] = $, K = !1); + }), K && ($.before ? C.menuList.unshift($) : C.menuList.push($)); }, - removeMenu(I) { - [...C.menuList].forEach((j, ee) => { - j.name === I && C.menuList.splice(ee, 1); + removeMenu($) { + [...C.menuList].forEach((K, X) => { + K.name === $ && C.menuList.splice(X, 1); }); }, - setMenuItem(I, j) { - C.menuList.forEach((ee) => { - ee.name === I && (ee.list = j); + setMenuItem($, K) { + C.menuList.forEach((X) => { + X.name === $ && (X.list = K); }); }, - appendMenuItem(I, j) { - C.menuList.forEach((ee) => { - ee.name === I && ee.list.push(...Array.isArray(j) ? j : [j]); + appendMenuItem($, K) { + C.menuList.forEach((X) => { + X.name === $ && X.list.push(...Array.isArray(K) ? K : [K]); }); }, - removeMenuItem(I) { - C.menuList.forEach((j) => { - let ee; - St.String(I) ? [...j.list].forEach((te, se) => { - te.name === I && j.list.splice(se, 1); - }) : (ee = j.list.indexOf(I)) > -1 && j.list.splice(ee, 1); + removeMenuItem($) { + C.menuList.forEach((K) => { + let X; + St.String($) ? [...K.list].forEach((ie, re) => { + ie.name === $ && K.list.splice(re, 1); + }) : (X = K.list.indexOf($)) > -1 && K.list.splice(X, 1); }); }, - addComponent(I) { - Array.isArray(I) ? I.forEach((j) => { - C.dragRuleList[j.name] = j, j.menu && J.appendMenuItem(j.menu, j); - }) : (C.dragRuleList[I.name] = I, I.menu && J.appendMenuItem(I.menu, I)); + addComponent($) { + Array.isArray($) ? $.forEach((K) => { + C.dragRuleList[K.name] = K, K.menu && te.appendMenuItem(K.menu, K); + }) : (C.dragRuleList[$.name] = $, $.menu && te.appendMenuItem($.menu, $)); }, - openInputData(I) { - C.inputForm.state = I === void 0 ? !C.inputForm.state : !!I, C.inputForm.state && (C.inputForm.option = et.parseJson(J.getOptionsJson()), J.inputReset(), C.inputForm.option.appendValue = !1, C.inputForm.option.submitBtn.show = !1, C.inputForm.option.resetBtn.show = !1, J.clearActiveRule()); + openInputData($) { + C.inputForm.state = $ === void 0 ? !C.inputForm.state : !!$, C.inputForm.state && (C.inputForm.option = tt.parseJson(te.getOptionsJson()), te.inputReset(), C.inputForm.option.appendValue = !1, C.inputForm.option.submitBtn.show = !1, C.inputForm.option.resetBtn.show = !1, te.clearActiveRule()); }, inputSave() { - const I = C.inputForm.api.formData(); - Object.keys(I).forEach((ee) => { - ji(I[ee]) && delete I[ee]; + const $ = C.inputForm.api.formData(); + Object.keys($).forEach((X) => { + ji($[X]) && delete $[X]; }); - const j = JSON.stringify(J.getPreviewFormData()) !== JSON.stringify(I); - C.activePage.default ? (C.inputForm.data = I, u.emit("inputData", I)) : (hg(C.activePage.main, C.activePage.config.formDataField, I), u.emit("inputPageData", I)), C.inputForm.state = !1, j && J.addOperationRecord(); + const K = JSON.stringify(te.getPreviewFormData()) !== JSON.stringify($); + C.activePage.default ? (C.inputForm.data = $, u.emit("inputData", $)) : (hg(C.activePage.main, C.activePage.config.formDataField, $), u.emit("inputPageData", $)), C.inputForm.state = !1, K && te.addOperationRecord(); }, inputClear() { - J.inputReset({}); + te.inputReset({}); }, - inputReset(I) { - C.inputForm.rule = et.parseJson(J.getPreviewRule()), C.inputForm.option.formData = I || gt(J.getPreviewFormData()), C.inputForm.key = it(); + inputReset($) { + C.inputForm.rule = tt.parseJson(te.getPreviewRule()), C.inputForm.option.formData = $ || gt(te.getPreviewFormData()), C.inputForm.key = rt(); }, - setFormData(I) { - C.inputForm.data = I || {}; + setFormData($) { + C.inputForm.data = $ || {}; }, getFormData() { return C.inputForm.data; }, - getParent(I) { - let j = I.__fc__.parent.rule; - const ee = j._menu; - return ee && ee.inside && (I = j, j = j.__fc__.parent.rule), { root: j, parent: I }; + getParent($) { + let K = $.__fc__.parent.rule; + const X = K._menu; + return X && X.inside && ($ = K, K = K.__fc__.parent.rule), { root: K, parent: $ }; }, copyName() { tr(C.activeRule.name); }, updateName() { - C.activeRule.name = "ref_" + it(); + C.activeRule.name = "ref_" + rt(); }, - makeDrag(I, j, ee, te, se) { + makeDrag($, K, X, ie, re) { return { type: "DragBox", wrap: { @@ -44889,12 +44898,12 @@ const X8 = Ve({ props: { tag: "el-col", group: { - name: I === !0 ? "default" : I, - put(...oe) { - return J.dragPut(...oe); + name: $ === !0 ? "default" : $, + put(...fe) { + return te.dragPut(...fe); } }, - swapThreshold: j === "draggable" ? 0.25 : 0.8, + swapThreshold: K === "draggable" ? 0.25 : 0.8, ghostClass: "ghost", animation: 150, handle: "._fd-drag-btn", @@ -44903,53 +44912,53 @@ const X8 = Ve({ itemKey: "_fc_id" } }, - tag: j + tag: K }, - children: ee, - slot: se, - on: te + children: X, + slot: re, + on: ie }; }, clearDragRule() { - C.children.length = 0, J.clearActiveRule(), J.addOperationRecord(), J.updateTree(), C.unloadStatus = !1, u.emit("clear"); + C.children.length = 0, te.clearActiveRule(), te.addOperationRecord(), te.updateTree(), C.unloadStatus = !1, u.emit("clear"); }, - makeDragRule(I) { - return J.makeChildren([J.makeDrag(!0, "draggable", I, { - add: (j, ee) => J.dragAdd(I, ee), - end: (j, ee) => J.dragEnd(I, ee), - start: (j, ee) => J.dragStart(I, ee), - unchoose: (j, ee) => J.dragUnchoose(I, ee) + makeDragRule($) { + return te.makeChildren([te.makeDrag(!0, "draggable", $, { + add: (K, X) => te.dragAdd($, X), + end: (K, X) => te.dragEnd($, X), + start: (K, X) => te.dragStart($, X), + unchoose: (K, X) => te.dragUnchoose($, X) })]); }, handleSave() { u.emit("save", { - rule: J.getJson(), - options: J.getOptionsJson() + rule: te.getJson(), + options: te.getOptionsJson() }); }, getPreviewFormData() { return C.activePage.default ? C.inputForm.data : Wo(C.activePage.main, C.activePage.config.formDataField, {}) || {}; }, getPreviewRule() { - return C.activePage.default ? J.getJson() : et.toJson(J.parseRule(gt(C.children))); + return C.activePage.default ? te.getJson() : tt.toJson(te.parseRule(gt(C.children))); }, - previewSubmit(...I) { - u.emit("previewSubmit", ...I); + previewSubmit(...$) { + u.emit("previewSubmit", ...$); }, - previewReset(...I) { - u.emit("previewReset", ...I); + previewReset(...$) { + u.emit("previewReset", ...$); }, openPreview() { C.preview.state = !0, C.previewDevice = C.device === "mobile" ? "mobile" : "pc"; - const I = J.getPreviewRule(), j = J.getOptionsJson(), ee = J.getConfig("useTemplate", !1); - C.preview.option = et.parseJson(j), C.activePage.default || (C.preview.option.formData = gt(J.getPreviewFormData())), C.preview.rule = et.parseJson(I), C.preview.html = jo.highlight( - ee ? hw(I, j) : mw(I, j), + const $ = te.getPreviewRule(), K = te.getOptionsJson(), X = te.getConfig("useTemplate", !1); + C.preview.option = tt.parseJson(K), C.activePage.default || (C.preview.option.formData = gt(te.getPreviewFormData())), C.preview.rule = tt.parseJson($), C.preview.html = jo.highlight( + X ? hw($, K) : mw($, K), { language: "xml" } ).value, C.preview.mobileHtml = jo.highlight( - ee ? vw(I, j) : gw(I, j), + X ? vw($, K) : gw($, K), { language: "xml" } ).value, C.preview.sfc = jo.highlight( - y3(C.children, C.preview.option, C.dragRuleList, ee), + y3(C.children, C.preview.option, C.dragRuleList, X), { language: "xml" } ).value; }, @@ -44957,763 +44966,764 @@ const X8 = Ve({ tr(this.$refs.previewCode.innerText); }, getPageRule() { - return J.parseRule(gt(C.children)); + return te.parseRule(gt(C.children)); }, getPageJson() { - return et.toJson(J.getPageRule()); + return tt.toJson(te.getPageRule()); }, getRule() { - let I; + let $; if (C.pageData.length > 1) { - const j = []; - C.pageData.map((ee) => { - ee.default ? I = J.parseRule(gt(ee.rule)) : j.push(J.parseRule(gt(ee.rule))[0]); - }), I.push(...j); + const K = []; + C.pageData.map((X) => { + X.default ? $ = te.parseRule(gt(X.rule)) : K.push(te.parseRule(gt(X.rule))[0]); + }), $.push(...K); } else - I = J.getPageRule(); - return I; + $ = te.getPageRule(); + return $; }, getJson() { - return et.toJson(J.getRule()); + return tt.toJson(te.getRule()); }, getOption() { - var ee; - const I = gt(C.formOptions); - ["onReset", "onSubmit", "beforeSubmit", "onCreated", "onMounted", "onReload", "onChange", "beforeFetch"].forEach((te) => { - delete I[te]; - }), Object.keys(I._event || {}).forEach((te) => { - I._event[te] && (I[te] = I._event[te]); - }), I.style || delete I.style, delete I._event, I.submitBtn = I._submitBtn, I.resetBtn = I._resetBtn, I.resetBtn.innerText = R("props.reset"), I.submitBtn.innerText = R("props.submit"); - const j = gt(C.inputForm.data); - return Object.keys(j).length > 0 && (I.formData = j), (ee = I == null ? void 0 : I.wrap) != null && ee.style && (I.wrap.style.marginBottom || delete I.wrap.style.marginBottom, Object.keys(I.wrap.style).length || delete I.wrap.style, Object.keys(I.wrap).length || delete I.wrap), I.language && Object.keys(I.language).forEach((te) => { - Object.keys(I.language[te]).forEach((se) => { - I.language[te][se] || delete I.language[te][se]; - }), Object.keys(I.language[te]).length || delete I.language[te]; - }), Object.keys(I).forEach((te) => { - Object.keys(I[te]).length || delete I[te]; - }), delete I._submitBtn, delete I._resetBtn, I; + var X; + const $ = gt(C.formOptions); + ["onReset", "onSubmit", "beforeSubmit", "onCreated", "onMounted", "onReload", "onChange", "beforeFetch"].forEach((ie) => { + delete $[ie]; + }), Object.keys($._event || {}).forEach((ie) => { + $._event[ie] && ($[ie] = $._event[ie]); + }), $.style || delete $.style, delete $._event, $.submitBtn = $._submitBtn, $.resetBtn = $._resetBtn, $.resetBtn.innerText = U("props.reset"), $.submitBtn.innerText = U("props.submit"); + const K = gt(C.inputForm.data); + return Object.keys(K).length > 0 && ($.formData = K), (X = $ == null ? void 0 : $.wrap) != null && X.style && ($.wrap.style.marginBottom || delete $.wrap.style.marginBottom, Object.keys($.wrap.style).length || delete $.wrap.style, Object.keys($.wrap).length || delete $.wrap), $.language && Object.keys($.language).forEach((ie) => { + Object.keys($.language[ie]).forEach((re) => { + $.language[ie][re] || delete $.language[ie][re]; + }), Object.keys($.language[ie]).length || delete $.language[ie]; + }), Object.keys($).forEach((ie) => { + Object.keys($[ie]).length || delete $[ie]; + }), delete $._submitBtn, delete $._resetBtn, $; }, - subRender(I, j, ee) { - const te = I({ h: on, resolveComponent: ne, rule: j, subRule: ee, t: R }); - return Array.isArray(te) ? te.map((se) => on(si, { label: se.label }, () => se.vnode)) : te; + subRender($, K, X) { + const ie = $({ h: on, resolveComponent: ee, rule: K, subRule: X, t: U }); + return Array.isArray(ie) ? ie.map((re) => on(si, { label: re.label }, () => re.vnode)) : ie; }, getOptions() { - return J.getOption(); + return te.getOption(); }, getOptionsJson() { - return et.toJson([J.getOption()]).slice(1).slice(0, -1); + return tt.toJson([te.getOption()]).slice(1).slice(0, -1); }, - setRule(I, j) { - I || (I = []), !j && J.initPage(); - const ee = J.loadRule(St.String(I) ? et.parseJson(I) : gt(I)), te = []; - ee.forEach((se) => { - se._fc_page_tag ? j || J.appendPage(se._fc_page_tag, se) : te.push(se); - }), C.children.length = 0, C.children.push(...te), J.clearActiveRule(), j || (J.addOperationRecord(), !te.length && C.pageData.length > 1 && J.changePage(1)), J.updateTree(); + setRule($, K) { + $ || ($ = []), !K && te.initPage(); + const X = te.loadRule(St.String($) ? tt.parseJson($) : gt($)), ie = []; + X.forEach((re) => { + re._fc_page_tag ? K || te.appendPage(re._fc_page_tag, re) : ie.push(re); + }), C.children.length = 0, C.children.push(...ie), te.clearActiveRule(), K || (te.addOperationRecord(), !ie.length && C.pageData.length > 1 && te.changePage(1)), te.updateTree(); }, - setBaseRuleConfig(I, j) { - S.value = { rule: I, append: j }, C.baseForm.rule = z(Fa, S.value, { t: R }); + setBaseRuleConfig($, K) { + b.value = { rule: $, append: K }, C.baseForm.rule = F(Fa, b.value, { t: U }); }, - setComponentRuleConfig(I, j, ee) { - b.value[I] = { rule: j, append: ee }, C.cacheProps = {}; - const te = C.activeRule; - if (te) { - const se = C.propsForm.api.formData && C.propsForm.api.formData(); - C.propsForm.rule = C.cacheProps[te._fc_id] = z(te._menu.props, b.value && b.value[te._menu.name], te, { - t: R, + setComponentRuleConfig($, K, X) { + A.value[$] = { rule: K, append: X }, C.cacheProps = {}; + const ie = C.activeRule; + if (ie) { + const re = C.propsForm.api.formData && C.propsForm.api.formData(); + C.propsForm.rule = C.cacheProps[ie._fc_id] = F(ie._menu.props, A.value && A.value[ie._menu.name], ie, { + t: U, api: C.dragForm.api }), Yn(() => { - se && C.propsForm.api.setValue(se); + re && C.propsForm.api.setValue(re); }); } }, - setValidateRuleConfig(I, j) { - y.value = { rule: I, append: j }, C.validateForm.rule = z(Fa, y.value, { t: R }); + setValidateRuleConfig($, K) { + m.value = { rule: $, append: K }, C.validateForm.rule = F(Fa, m.value, { t: U }); }, - setFormRuleConfig(I, j) { - m.value = { rule: I, append: j }, C.form.rule = z(Fa, m.value, { t: R }); + setFormRuleConfig($, K) { + w.value = { rule: $, append: K }, C.form.rule = F(Fa, w.value, { t: U }); }, clearActiveRule() { C.activeRule = null, C.customForm.config = null, C.activeTab = "form", d.active = ""; }, - setOption(I) { - const j = gt(J.getConfig("formOptions", {})), ee = j.form || {}; - delete j.form; - let te = { ...j, ...St.String(I) ? JSON.parse(I) : gt(I || {}) }; - te.form = { + setOption($) { + const K = gt(te.getConfig("formOptions", {})), X = K.form || {}; + delete K.form; + let ie = { ...K, ...St.String($) ? JSON.parse($) : gt($ || {}) }; + ie.form = { inline: !1, hideRequiredAsterisk: !1, labelPosition: "right", size: "default", labelWidth: "125px", - ...ee, - ...te.form || {} - }, te._event = { - onReset: te.onReset || "", - onSubmit: te.onSubmit || "", - onCreated: te.onCreated || "", - onMounted: te.onMounted || "", - onReload: te.onReload || "", - beforeSubmit: te.beforeSubmit || "", - onChange: te.onChange || "", - beforeFetch: te.beforeFetch || "" - }, Vi(te, "globalEvent") || (te.globalEvent = {}), Vi(te, "globalData") || (te.globalData = {}), Vi(te, "language") || (te.language = {}), te._resetBtn = typeof te.resetBtn == "object" ? te.resetBtn : { show: te.resetBtn === !0 }, te._submitBtn = typeof te.submitBtn == "object" ? te.submitBtn : { show: te.submitBtn !== !1 }, te.submitBtn = te.resetBtn = !1, C.inputForm.data = te.formData || {}, C.oldOptionsKeys = Object.keys(C.form.value), delete te.formData, C.formOptions = te, J.updateOptionsValue(); + ...X, + ...ie.form || {} + }, ie._event = { + onReset: ie.onReset || "", + onSubmit: ie.onSubmit || "", + onCreated: ie.onCreated || "", + onMounted: ie.onMounted || "", + onReload: ie.onReload || "", + beforeSubmit: ie.beforeSubmit || "", + onChange: ie.onChange || "", + beforeFetch: ie.beforeFetch || "" + }, Vi(ie, "globalEvent") || (ie.globalEvent = {}), ie.appUrl = p || "", Vi(ie, "globalData") || (ie.globalData = {}), Vi(ie, "language") || (ie.language = {}), ie._resetBtn = typeof ie.resetBtn == "object" ? ie.resetBtn : { show: ie.resetBtn === !0 }, ie._submitBtn = typeof ie.submitBtn == "object" ? ie.submitBtn : { show: ie.submitBtn !== !1 }, ie.submitBtn = ie.resetBtn = !1, C.inputForm.data = ie.formData || {}, C.oldOptionsKeys = Object.keys(C.form.value), delete ie.formData, C.formOptions = ie, te.updateOptionsValue(); }, - setOptions(I) { - J.setOption(I); + setOptions($) { + te.setOption($); }, - mergeOptions(I) { - if (["globalEvent", "globalData", "globalClass", "globalVariable", "form"].forEach((j) => { - I[j] && (C.formOptions[j] = { ...C.formOptions[j] || {}, ...I[j] }); - }), I.style && (!C.formOptions.style || C.formOptions.style.indexOf(I.style) === -1) && (C.formOptions.style = (C.formOptions.style || "") + ` -` + I.style), C.formOptions.language || (C.formOptions.language = {}), I.language && Object.keys(I.language).forEach((j) => { - C.formOptions.language[j] = { ...C.formOptions.language[j] || {}, ...I.language[j] }; - }), I.languageKey) { - const j = J.getConfig("localeOptions", [ + mergeOptions($) { + if (["globalEvent", "globalData", "globalClass", "globalVariable", "form"].forEach((K) => { + $[K] && (C.formOptions[K] = { ...C.formOptions[K] || {}, ...$[K] }); + }), $.style && (!C.formOptions.style || C.formOptions.style.indexOf($.style) === -1) && (C.formOptions.style = (C.formOptions.style || "") + ` +` + $.style), C.formOptions.language || (C.formOptions.language = {}), $.language && Object.keys($.language).forEach((K) => { + C.formOptions.language[K] = { ...C.formOptions.language[K] || {}, ...$.language[K] }; + }), $.languageKey) { + const K = te.getConfig("localeOptions", [ { value: "zh-cn", label: "\u7B80\u4F53\u4E2D\u6587" }, { value: "en", label: "English" } ]); - I.languageKey.forEach((ee) => { - j.forEach(({ value: te }) => { - C.formOptions.language[te] || (C.formOptions.language[te] = {}), C.formOptions.language[te][ee] || (C.formOptions.language[te][ee] = ""); + $.languageKey.forEach((X) => { + K.forEach(({ value: ie }) => { + C.formOptions.language[ie] || (C.formOptions.language[ie] = {}), C.formOptions.language[ie][X] || (C.formOptions.language[ie][X] = ""); }); }); } }, updateOptionsValue() { - const I = {}; - C.oldOptionsKeys.forEach((ee) => { - I[ee] = void 0; + const $ = {}; + C.oldOptionsKeys.forEach((X) => { + $[X] = void 0; }); - const j = { ...I, ...C.formOptions.form }; - Object.keys(C.formOptions).forEach((ee) => { - const te = C.formOptions[ee]; - j[">" + ee] = te, typeof te == "object" && Object.keys(te).forEach((se) => { - j[ee + ">" + se] = te[se]; + const K = { ...$, ...C.formOptions.form }; + Object.keys(C.formOptions).forEach((X) => { + const ie = C.formOptions[X]; + K[">" + X] = ie, typeof ie == "object" && Object.keys(ie).forEach((re) => { + K[X + ">" + re] = ie[re]; }); - }), C.form.value = j; + }), C.form.value = K; }, - setGlobalEvent(I) { - C.formOptions.globalEvent = { ...C.formOptions.globalEvent || {}, ...I }, J.updateOptionsValue(); + setGlobalEvent($) { + C.formOptions.globalEvent = { ...C.formOptions.globalEvent || {}, ...$ }, te.updateOptionsValue(); }, - setGlobalData(I) { - C.formOptions.globalData = { ...C.formOptions.globalData || {}, ...I }, J.updateOptionsValue(); + setGlobalData($) { + C.formOptions.globalData = { ...C.formOptions.globalData || {}, ...$ }, te.updateOptionsValue(); }, - setGlobalClass(I) { - C.formOptions.globalClass = { ...C.formOptions.globalClass || {}, ...I }, J.updateOptionsValue(); + setGlobalClass($) { + C.formOptions.globalClass = { ...C.formOptions.globalClass || {}, ...$ }, te.updateOptionsValue(); }, - setGlobalVariable(I) { - C.formOptions.globalVariable = { ...C.formOptions.globalVariable || {}, ...I }, J.updateOptionsValue(); + setGlobalVariable($) { + C.formOptions.globalVariable = { ...C.formOptions.globalVariable || {}, ...$ }, te.updateOptionsValue(); }, - tidyRule(I) { - var ee; - ["control", "computed", "on", "hidden", "display"].forEach((te) => { - I[te] != null && (I["_" + te] = I[te], delete I[te]); - }), (ee = I.effect) != null && ee.loadData && (I._loadData = I.effect.loadData, delete I.effect.loadData), I.$loadData && (I._loadData = I.$loadData, delete I.$loadData); + tidyRule($) { + var X; + ["control", "computed", "on", "hidden", "display"].forEach((ie) => { + $[ie] != null && ($["_" + ie] = $[ie], delete $[ie]); + }), (X = $.effect) != null && X.loadData && ($._loadData = $.effect.loadData, delete $.effect.loadData), $.$loadData && ($._loadData = $.$loadData, delete $.$loadData); }, - loadRule(I, j, ee) { - const te = []; - return I.forEach((se) => { - if (St.String(se)) - return te.push(se); - if (se._fc_drag_skip) + loadRule($, K, X) { + const ie = []; + return $.forEach((re) => { + if (St.String(re)) + return ie.push(re); + if (re._fc_drag_skip) return; - let oe = C.dragRuleList[se._fc_drag_tag] || C.dragRuleList[se.type]; - if (oe || (oe = fE(se), se._fc_drag_tag = "_"), ee && (se._fc_template = ee), oe && oe.loadRule && oe.loadRule(se), se.children = J.loadRule(se.children || [], oe, ee), oe) { - const _e = se.slot; - let Ae; - j && j.slot && _e && _e !== "default" && (Ae = J.getSlotConfig(j, _e, oe)), delete se.slot, se = J.makeRule(Ae || oe, se), _e && (se.slot = _e); + let fe = C.dragRuleList[re._fc_drag_tag] || C.dragRuleList[re.type]; + if (fe || (fe = fE(re), re._fc_drag_tag = "_"), X && (re._fc_template = X), fe && fe.loadRule && fe.loadRule(re), re.children = te.loadRule(re.children || [], fe, X), fe) { + const Ae = re.slot; + let Fe; + K && K.slot && Ae && Ae !== "default" && (Fe = te.getSlotConfig(K, Ae, fe)), delete re.slot, re = te.makeRule(Fe || fe, re), Ae && (re.slot = Ae); } else - J.tidyRule(se); - te.push(se); - }), te; + te.tidyRule(re); + ie.push(re); + }), ie; }, - parseRule(I, j) { - return [...I].reduce((ee, te) => { - let se = j; - if (St.String(te)) - return ee.push(te), ee; - if (te.type === "DragBox") - return ee.push(...J.parseRule(te.children, se || te.slot)), ee; - if (te.type === "DragTool") { - if (se = te.slot || j, te = te.children[0], St.String(te)) - return ee.push(te), ee; - if (te.type === "DragBox") - return ee.push(...J.parseRule(te.children, se || te.slot)), ee; + parseRule($, K) { + return [...$].reduce((X, ie) => { + let re = K; + if (St.String(ie)) + return X.push(ie), X; + if (ie.type === "DragBox") + return X.push(...te.parseRule(ie.children, re || ie.slot)), X; + if (ie.type === "DragTool") { + if (re = ie.slot || K, ie = ie.children[0], St.String(ie)) + return X.push(ie), X; + if (ie.type === "DragBox") + return X.push(...te.parseRule(ie.children, re || ie.slot)), X; } - return !te || te._fc_drag_skip || (te = { ...te }, se && se !== "default" && (te.slot = se), te.children && te.children.length && (te.children = J.parseRule(te.children)), delete te.key, delete te.component, delete te._fc_page_tag, te._menu && (te._menu.parseRule && te._menu.parseRule(te), delete te._menu), te._fc_drag_tag === "_" && delete te._fc_drag_tag, ["control", "computed", "on", "hidden", "display"].forEach((_e) => { - te["_" + _e] != null && te["_" + _e] !== "" && (te[_e] = te["_" + _e]), delete te["_" + _e]; - }), te.slot || delete te.slot, te._loadData && (te.$loadData = te._loadData, delete te._loadData), te.props && Object.keys(te.props).forEach((_e) => { - const Ae = te.props[_e]; - ji(Ae) && delete te.props[_e]; - }), te.props && te.props.key && (te.key = te.props.key), [te.wrap, te.title, te.info, te].forEach((_e) => { - _e && Object.keys(_e).filter((Ae) => Ae.indexOf("__") === 0 || _e[Ae] === "" || Array.isArray(_e[Ae]) && _e[Ae].length === 0 || St.Object(_e[Ae]) && Object.keys(_e[Ae]).length === 0).forEach((Ae) => { - delete _e[Ae]; + return !ie || ie._fc_drag_skip || (ie = { ...ie }, re && re !== "default" && (ie.slot = re), ie.children && ie.children.length && (ie.children = te.parseRule(ie.children)), delete ie.key, delete ie.component, delete ie._fc_page_tag, ie._menu && (ie._menu.parseRule && ie._menu.parseRule(ie), delete ie._menu), ie._fc_drag_tag === "_" && delete ie._fc_drag_tag, ["control", "computed", "on", "hidden", "display"].forEach((Ae) => { + ie["_" + Ae] != null && ie["_" + Ae] !== "" && (ie[Ae] = ie["_" + Ae]), delete ie["_" + Ae]; + }), ie.slot || delete ie.slot, ie._loadData && (ie.$loadData = ie._loadData, delete ie._loadData), ie.props && Object.keys(ie.props).forEach((Ae) => { + const Fe = ie.props[Ae]; + ji(Fe) && delete ie.props[Ae]; + }), ie.props && ie.props.key && (ie.key = ie.props.key), [ie.wrap, ie.title, ie.info, ie].forEach((Ae) => { + Ae && Object.keys(Ae).filter((Fe) => Fe.indexOf("__") === 0 || Ae[Fe] === "" || Array.isArray(Ae[Fe]) && Ae[Fe].length === 0 || St.Object(Ae[Fe]) && Object.keys(Ae[Fe]).length === 0).forEach((Fe) => { + delete Ae[Fe]; }); - }), ee.push(te)), ee; + }), X.push(ie)), X; }, []); }, fields() { - return C.dragForm.api.all().map((I) => I.field).filter((I) => !!I); + return C.dragForm.api.all().map(($) => $.field).filter(($) => !!$); }, - getTitle(I) { - var j, ee, te; - return (((te = (ee = (j = I == null ? void 0 : I.__fc__) == null ? void 0 : j.refRule) == null ? void 0 : ee.__$title) == null ? void 0 : te.value) || I.title || "").trim() || I.props && I.props.label || R("com." + (I._menu && I._menu.name) + ".name") || I._menu && I._menu.label || I.type; + getTitle($) { + var K, X, ie; + return (((ie = (X = (K = $ == null ? void 0 : $.__fc__) == null ? void 0 : K.refRule) == null ? void 0 : X.__$title) == null ? void 0 : ie.value) || $.title || "").trim() || $.props && $.props.label || U("com." + ($._menu && $._menu.name) + ".name") || $._menu && $._menu.label || $.type; }, - baseChange(I, j, ee, te) { - J.handleChange("", I, j, ee, te); + baseChange($, K, X, ie) { + te.handleChange("", $, K, X, ie); }, - formOptChange(I, j) { - C.form.value[I] = j, I.indexOf(">") === -1 && (I = "form>" + I); - let ee = C.formOptions; - const te = I.split(">"), se = te.pop(); - te.forEach((oe) => { - oe && (ee[oe] || (ee[oe] = {}), ee = ee[oe]); - }), ee[se] = j; + formOptChange($, K) { + C.form.value[$] = K, $.indexOf(">") === -1 && ($ = "form>" + $); + let X = C.formOptions; + const ie = $.split(">"), re = ie.pop(); + ie.forEach((fe) => { + fe && (X[fe] || (X[fe] = {}), X = X[fe]); + }), X[re] = K; }, - propRemoveField(I, j, ee) { - var te, se, oe; - if (C.activeRule && ee[C.activeRule._fc_id] === C.activeRule) { - J.unWatchActiveRule(); - const _e = I; - C.dragForm.api.sync(C.activeRule), I.indexOf("__") !== 0 && (I === "formCreateChild" ? delete C.activeRule.children[0] : I.indexOf("formCreate") === 0 || I.indexOf(">") > 0 ? (I.indexOf("formCreate") < 0 && (I = "props>" + I), Z(I, ({ source: Ae, field: Be }) => { - delete Ae[Be]; - })) : delete C.activeRule.props[I]), J.watchActiveRule(), (oe = (se = (te = C.activeRule._menu) == null ? void 0 : te.watch) == null ? void 0 : se[_e]) == null || oe.call(se, { - field: _e, + propRemoveField($, K, X) { + var ie, re, fe; + if (C.activeRule && X[C.activeRule._fc_id] === C.activeRule) { + te.unWatchActiveRule(); + const Ae = $; + C.dragForm.api.sync(C.activeRule), $.indexOf("__") !== 0 && ($ === "formCreateChild" ? delete C.activeRule.children[0] : $.indexOf("formCreate") === 0 || $.indexOf(">") > 0 ? ($.indexOf("formCreate") < 0 && ($ = "props>" + $), Y($, ({ source: Fe, field: Xe }) => { + delete Fe[Xe]; + })) : delete C.activeRule.props[$]), te.watchActiveRule(), (fe = (re = (ie = C.activeRule._menu) == null ? void 0 : ie.watch) == null ? void 0 : re[Ae]) == null || fe.call(re, { + field: Ae, value: void 0, - api: ee, + api: X, rule: C.activeRule, ctx: u }); } }, - propChange(I, j, ee, te) { - J.handleChange("props", I, j, ee, te); + propChange($, K, X, ie) { + te.handleChange("props", $, K, X, ie); }, - computedChange(I, j, ee, te) { - J.handleChange("_computed", I, j, ee, te); + computedChange($, K, X, ie) { + te.handleChange("_computed", $, K, X, ie); }, - styleChange(I, j, ee, te) { + styleChange($, K, X, ie) { if (C.customForm.config) - return C.customForm.config.style.change(I, j); - J.handleChange("", I, j, ee, te); + return C.customForm.config.style.change($, K); + te.handleChange("", $, K, X, ie); }, - handleChange(I, j, ee, te, se) { - var oe, _e, Ae; - if (C.activeRule && se[C.activeRule._fc_id] === C.activeRule) { - J.unWatchActiveRule(); - const Be = j; - j.indexOf("__") !== 0 && (j === "formCreateChild" ? C.activeRule.children[0] = ee : j.indexOf("formCreate") === 0 || j.indexOf(">") > 0 ? (j.indexOf("formCreate") < 0 && (j = (I ? I + ">" : "") + j), Z(j, ({ source: ct, field: ze }) => { - ji(ee) ? delete ct[ze] : ct[ze] = ee; - })) : I && ji(ee) ? delete C.activeRule[I][j] : (I ? C.activeRule[I] : C.activeRule)[j] = ee), J.watchActiveRule(), (Ae = (_e = (oe = C.activeRule._menu) == null ? void 0 : oe.watch) == null ? void 0 : _e[Be]) == null || Ae.call(_e, { - field: Be, - value: ee, - api: se, + handleChange($, K, X, ie, re) { + var fe, Ae, Fe; + if (C.activeRule && re[C.activeRule._fc_id] === C.activeRule) { + te.unWatchActiveRule(); + const Xe = K; + K.indexOf("__") !== 0 && (K === "formCreateChild" ? C.activeRule.children[0] = X : K.indexOf("formCreate") === 0 || K.indexOf(">") > 0 ? (K.indexOf("formCreate") < 0 && (K = ($ ? $ + ">" : "") + K), Y(K, ({ source: Ze, field: _e }) => { + ji(X) ? delete Ze[_e] : Ze[_e] = X; + })) : $ && ji(X) ? delete C.activeRule[$][K] : ($ ? C.activeRule[$] : C.activeRule)[K] = X), te.watchActiveRule(), (Fe = (Ae = (fe = C.activeRule._menu) == null ? void 0 : fe.watch) == null ? void 0 : Ae[Xe]) == null || Fe.call(Ae, { + field: Xe, + value: X, + api: re, rule: C.activeRule, ctx: u }); } }, - validateChange(I, j, ee, te) { - !C.activeRule || C.validateForm.api[C.activeRule._fc_id] !== C.activeRule || (J.handleChange("", I, j, ee, te), C.dragForm.api.refreshValidate(), C.dragForm.api.nextTick(() => { - var se; - C.dragForm.api.clearValidateState((se = C.activeRule) == null ? void 0 : se.__fc__.id); + validateChange($, K, X, ie) { + !C.activeRule || C.validateForm.api[C.activeRule._fc_id] !== C.activeRule || (te.handleChange("", $, K, X, ie), C.dragForm.api.refreshValidate(), C.dragForm.api.nextTick(() => { + var re; + C.dragForm.api.clearValidateState((re = C.activeRule) == null ? void 0 : re.__fc__.id); })); }, - triggerActive(I) { - let j; - if (St.String(I) && (I = J.findRule(I)), !!I && (I._menu.inside ? j = I.children[0] : j = I.__fc__.parent.rule, j && j.type === "DragTool")) { - const ee = C.dragForm.api.el(j.__fc__.id); - ee && (d.active = ee.id, u.emit("active", I), J.toolActive(I)); + triggerActive($) { + let K; + if (St.String($) && ($ = te.findRule($)), !!$ && ($._menu.inside ? K = $.children[0] : K = $.__fc__.parent.rule, K && K.type === "DragTool")) { + const X = C.dragForm.api.el(K.__fc__.id); + X && (d.active = X.id, u.emit("active", $), te.toolActive($)); } }, - customFormChange(I, j) { - C.customForm.config && C.customForm.config.change(I, j); + customFormChange($, K) { + C.customForm.config && C.customForm.config.change($, K); }, - customActive(I) { - C.baseForm.isShow = !1, C.propsForm.isShow = !1, C.propsForm.variable = !1, C.advancedForm.isShow = !1, C.styleForm.isShow = !!I.style && J.getConfig("showStyleForm") !== !1, C.eventShow = !1, C.validateForm.isShow = !1, C.activeRule = null, C.customForm.config = I, C.customForm.isShow = !0, C.customForm.propsShow = I.props && J.getConfig("showPropsForm") !== !1, C.customForm.key = it(), C.customForm.rule = C.customForm.propsShow ? I.props({ t: R }) : [], C.customForm.options.formData = I.formData, I.style && (C.styleForm.value = I.style.formData || {}), Yn(() => { + customActive($) { + C.baseForm.isShow = !1, C.propsForm.isShow = !1, C.propsForm.variable = !1, C.advancedForm.isShow = !1, C.styleForm.isShow = !!$.style && te.getConfig("showStyleForm") !== !1, C.eventShow = !1, C.validateForm.isShow = !1, C.activeRule = null, C.customForm.config = $, C.customForm.isShow = !0, C.customForm.propsShow = $.props && te.getConfig("showPropsForm") !== !1, C.customForm.key = rt(), C.customForm.rule = C.customForm.propsShow ? $.props({ t: U }) : [], C.customForm.options.formData = $.formData, $.style && (C.styleForm.value = $.style.formData || {}), Yn(() => { C.activeTab = "props"; }); }, - getPropsRule(I) { - let j = z(I._menu.props, b.value && b.value[I._menu.name], I, { - t: R, + getPropsRule($) { + let K = F($._menu.props, A.value && A.value[$._menu.name], $, { + t: U, api: C.dragForm.api }); - if (b.value && b.value.default) { - const ee = b.value.default; - j = z(() => j, St.Function(ee) ? { - rule: ee, + if (A.value && A.value.default) { + const X = A.value.default; + K = F(() => K, St.Function(X) ? { + rule: X, append: !0 - } : ee, I, { - t: R, + } : X, $, { + t: U, api: C.dragForm.api }); } - return j; + return K; }, - findRule(I) { - let j; - const ee = (te) => { - te.forEach((se) => { - [se.rule.field, se.rule.name, se.rule._fc_id].indexOf(I) > -1 ? j = se.rule : se.children && ee(se.children); + findRule($) { + let K; + const X = (ie) => { + ie.forEach((re) => { + [re.rule.field, re.rule.name, re.rule._fc_id].indexOf($) > -1 ? K = re.rule : re.children && X(re.children); }); }; - return ee(C.treeInfo), j; + return X(C.treeInfo), K; }, - toolActive(I) { - if (p.value.beforeActiveRule && p.value.beforeActiveRule({ rule: I }) === !1) + toolActive($) { + if (h.value.beforeActiveRule && h.value.beforeActiveRule({ rule: $ }) === !1) return; - J.unWatchActiveRule(), C.customForm.isShow = !1, C.customForm.config = null, C.activeRule && (delete C.propsForm.api[C.activeRule._fc_id], delete C.baseForm.api[C.activeRule._fc_id], delete C.validateForm.api[C.activeRule._fc_id], delete C.styleForm.api[C.activeRule._fc_id], delete C.advancedForm.api[C.activeRule._fc_id], delete C.dragForm.api.activeRule), C.activeRule = I, C.dragForm.api.activeRule = I, Yn(() => { + te.unWatchActiveRule(), C.customForm.isShow = !1, C.customForm.config = null, C.activeRule && (delete C.propsForm.api[C.activeRule._fc_id], delete C.baseForm.api[C.activeRule._fc_id], delete C.validateForm.api[C.activeRule._fc_id], delete C.styleForm.api[C.activeRule._fc_id], delete C.advancedForm.api[C.activeRule._fc_id], delete C.dragForm.api.activeRule), C.activeRule = $, C.dragForm.api.activeRule = $, Yn(() => { C.activeTab = "props", Yn(() => { C.propsForm.api[C.activeRule._fc_id] = C.activeRule, C.baseForm.api[C.activeRule._fc_id] = C.activeRule, C.validateForm.api[C.activeRule._fc_id] = C.activeRule, C.styleForm.api[C.activeRule._fc_id] = C.activeRule, C.advancedForm.api[C.activeRule._fc_id] = C.activeRule; }); - }), C.cacheProps[I._fc_id] || (C.cacheProps[I._fc_id] = J.getPropsRule(I)); - const j = J.getConfig("hiddenItemConfig", {}), ee = J.getConfig("disabledItemConfig", {}), te = Us([...(j == null ? void 0 : j.default) || [], ...(j == null ? void 0 : j[I._menu.name]) || [], ...I._menu.hiddenBaseField || []]), se = Us([...(ee == null ? void 0 : ee.default) || [], ...(ee == null ? void 0 : ee[I._menu.name]) || []]); + }), C.cacheProps[$._fc_id] || (C.cacheProps[$._fc_id] = te.getPropsRule($)); + const K = te.getConfig("hiddenItemConfig", {}), X = te.getConfig("disabledItemConfig", {}), ie = Us([...(K == null ? void 0 : K.default) || [], ...(K == null ? void 0 : K[$._menu.name]) || [], ...$._menu.hiddenBaseField || []]), re = Us([...(X == null ? void 0 : X.default) || [], ...(X == null ? void 0 : X[$._menu.name]) || []]); C.baseForm.api.disabled(!1), C.baseForm.api.hidden(!1), Yn(() => { - C.baseForm.api.all().forEach((Ae) => { - (Ae.name || Ae.field) && (Ae.hidden = te.indexOf(Ae.name) !== -1 || te.indexOf(Ae.field) !== -1); - }), C.propsForm.api.hidden(!0, te); - }), se.length && (C.baseForm.api.disabled(!0, se), Yn(() => { - C.propsForm.api.disabled(!0, se); - })), J.getConfig("showControl", !0) || C.baseForm.api.hidden(!0, "_control"); - const oe = Vi(I, "field"); - C.advancedForm.api.hidden(!oe, ["value", "$required", "props.disabled"]), C.baseForm.isShow = oe && I.input !== !1 && J.getConfig("showBaseForm") !== !1, C.propsForm.isShow = C.cacheProps[I._fc_id].length > 0 && J.getConfig("showPropsForm") !== !1, C.propsForm.variable = I._menu.variable !== !1 && J.getConfig("showVariable") !== !1, C.styleForm.isShow = I._menu.style !== !1 && J.getConfig("showStyleForm") !== !1, C.advancedForm.isShow = I._menu.advanced !== !1 && J.getConfig("showAdvancedForm") !== !1, C.eventShow = I._menu.event && I._menu.event.length > 0 && J.getConfig("showEventForm") !== !1; - const _e = J.getConfig("showValidateForm"); - C.validateForm.isShow = (C.baseForm.isShow && _e !== !1 || _e === !0) && I._menu.validate !== !1, C.propsForm.rule = C.cacheProps[I._fc_id], J.updateRuleFormData(), J.watchActiveRule(); + C.baseForm.api.all().forEach((Fe) => { + (Fe.name || Fe.field) && (Fe.hidden = ie.indexOf(Fe.name) !== -1 || ie.indexOf(Fe.field) !== -1); + }), C.propsForm.api.hidden(!0, ie); + }), re.length && (C.baseForm.api.disabled(!0, re), Yn(() => { + C.propsForm.api.disabled(!0, re); + })), te.getConfig("showControl", !0) || C.baseForm.api.hidden(!0, "_control"); + const fe = Vi($, "field"); + C.advancedForm.api.hidden(!fe, ["value", "$required", "props.disabled"]), C.baseForm.isShow = fe && $.input !== !1 && te.getConfig("showBaseForm") !== !1, C.propsForm.isShow = C.cacheProps[$._fc_id].length > 0 && te.getConfig("showPropsForm") !== !1, C.propsForm.variable = $._menu.variable !== !1 && te.getConfig("showVariable") !== !1, C.styleForm.isShow = $._menu.style !== !1 && te.getConfig("showStyleForm") !== !1, C.advancedForm.isShow = $._menu.advanced !== !1 && te.getConfig("showAdvancedForm") !== !1, C.eventShow = $._menu.event && $._menu.event.length > 0 && te.getConfig("showEventForm") !== !1; + const Ae = te.getConfig("showValidateForm"); + C.validateForm.isShow = (C.baseForm.isShow && Ae !== !1 || Ae === !0) && $._menu.validate !== !1, C.propsForm.rule = C.cacheProps[$._fc_id], te.updateRuleFormData(), te.watchActiveRule(); }, - getConfig(I, j) { - return p.value && Vi(p.value, I) ? p.value[I] : j; + getConfig($, K) { + return h.value && Vi(h.value, $) ? h.value[$] : K; }, - processObj(I, j, ee = "", te = 0, se = 3) { - return te >= se || Object.keys(I).forEach((oe) => { - const _e = I[oe], Ae = ee ? `${ee}>${oe}` : oe; - j[Ae] = gt(_e), St.Object(_e) && J.processObj(_e, j, Ae, te + 1, se); - }), j; + processObj($, K, X = "", ie = 0, re = 3) { + return ie >= re || Object.keys($).forEach((fe) => { + const Ae = $[fe], Fe = X ? `${X}>${fe}` : fe; + K[Fe] = gt(Ae), St.Object(Ae) && te.processObj(Ae, K, Fe, ie + 1, re); + }), K; }, updateRuleFormData() { - const I = C.activeRule; - let j = { - formCreateChild: "" + (I == null ? void 0 : I.children[0]), + const $ = C.activeRule; + let K = { + formCreateChild: "" + ($ == null ? void 0 : $.children[0]), "formCreateWrap>title": !0, "formCreateWrap>labelWidth": "", "formCreateWrap>class": "", "formCreateCol>span": "", "formCreateWrap>style>marginBottom": "" }; - const ee = p.value.appendConfigData; - St.Function(ee) ? j = { ...j, ...ee(I) } : Array.isArray(ee) && ee.forEach((oe) => { - j[oe] = void 0; - }), Object.keys(I).forEach((oe) => { - ["effect", "config", "payload", "id", "type", "_menu"].indexOf(oe) < 0 && (j["formCreate" + zo(oe)] = gt(I[oe])); - }), J.processObj(I.props || {}, j), ["props", "effect", "attrs", "style", "wrap", "col"].forEach((oe) => { - I[oe] && typeof I[oe] == "object" && J.processObj(I[oe] || {}, j, "formCreate" + zo(oe)); + const X = h.value.appendConfigData; + St.Function(X) ? K = { ...K, ...X($) } : Array.isArray(X) && X.forEach((fe) => { + K[fe] = void 0; + }), Object.keys($).forEach((fe) => { + ["effect", "config", "payload", "id", "type", "_menu"].indexOf(fe) < 0 && (K["formCreate" + zo(fe)] = gt($[fe])); + }), te.processObj($.props || {}, K), ["props", "effect", "attrs", "style", "wrap", "col"].forEach((fe) => { + $[fe] && typeof $[fe] == "object" && te.processObj($[fe] || {}, K, "formCreate" + zo(fe)); }); - const te = {}; - ["value", "hidden", "$required", "props.disabled"].forEach((oe) => { - te[oe] = I._computed && I._computed[oe] || ""; + const ie = {}; + ["value", "hidden", "$required", "props.disabled"].forEach((fe) => { + ie[fe] = $._computed && $._computed[fe] || ""; }); - const se = I._menu.attrs || {}; - Object.keys(se).forEach((oe) => { - j["__" + oe] = se[oe]({ rule: I }); - }), C.propsForm.value = j, C.styleForm.value = { - style: I.style, - class: I.class, - id: I.id - }, C.advancedForm.value = te, C.baseForm.isShow && (C.baseForm.value = { - field: I.field, - title: I.title || "", - info: I.info, - ignore: I.ignore || !1, - attributeId: I.attributeId || !1, - _control: I._control, - ...j + const re = $._menu.attrs || {}; + Object.keys(re).forEach((fe) => { + K["__" + fe] = re[fe]({ rule: $ }); + }), C.propsForm.value = K, C.styleForm.value = { + style: $.style, + class: $.class, + id: $.id + }, C.advancedForm.value = ie, C.baseForm.isShow && (C.baseForm.value = { + field: $.field, + title: $.title || "", + fieldtype: $.fieldtype || "", + info: $.info, + ignore: $.ignore || !1, + attributeId: $.attributeId || !1, + _control: $._control, + ...K }, C.validateForm.value = { - validate: I.validate ? [...I.validate] : [], - $required: j.formCreate$required + validate: $.validate ? [...$.validate] : [], + $required: K.formCreate$required }, C.dragForm.api.refreshValidate(), C.dragForm.api.nextTick(() => { - C.dragForm.api.clearValidateState(I.__fc__.id); + C.dragForm.api.clearValidateState($.__fc__.id); })); }, - dragStart(I) { - C.moveRule = I, C.added = !1; + dragStart($) { + C.moveRule = $, C.added = !1; }, - dragUnchoose(I, j) { + dragUnchoose($, K) { C.addRule = { - children: I, - oldIndex: j.oldIndex + children: $, + oldIndex: K.oldIndex }; }, - clickMenu(I) { - J.dragMenu({ menu: I, children: C.children, index: C.children.length }); + clickMenu($) { + te.dragMenu({ menu: $, children: C.children, index: C.children.length }); }, - clickField(I, j, ee, te) { - const se = { ...I.update || {} }; - se.title || (se.title = I.label), I.field && (se.field = I.field), I.rule ? J.dragMenu({ - rule: I.rule, - children: j || C.children, - index: ee == null ? C.children.length : ee, - slot: te, - update: se - }) : I.item && J.dragMenu({ - menu: C.dragRuleList[I.item], - children: j || C.children, - index: ee == null ? C.children.length : ee, - slot: te, - update: se + clickField($, K, X, ie) { + const re = { ...$.update || {} }; + re.title || (re.title = $.label), $.field && (re.field = $.field), $.fieldtype && (re.fieldtype = $.fieldtype), $.rule ? te.dragMenu({ + rule: $.rule, + children: K || C.children, + index: X == null ? C.children.length : X, + slot: ie, + update: re + }) : $.item && te.dragMenu({ + menu: C.dragRuleList[$.item], + children: K || C.children, + index: X == null ? C.children.length : X, + slot: ie, + update: re }); }, - checkOnly(I) { - let j = !1; - return C.dragForm.api.all().forEach((ee) => { - j = j || ee._fc_template === I.name || ee._menu && ee._menu.name === I.name; - }), j && In(C.t("struct.only", { label: R("com." + I.name + ".name") || I.label })), j; + checkOnly($) { + let K = !1; + return C.dragForm.api.all().forEach((X) => { + K = K || X._fc_template === $.name || X._menu && X._menu.name === $.name; + }), K && In(C.t("struct.only", { label: U("com." + $.name + ".name") || $.label })), K; }, - dragMenu({ rule: I, menu: j, children: ee, index: te, slot: se, update: oe }) { - if (C.inputForm.state || j && j.only && J.checkOnly(j)) + dragMenu({ rule: $, menu: K, children: X, index: ie, slot: re, update: fe }) { + if (C.inputForm.state || K && K.only && te.checkOnly(K)) return; - const _e = (ze) => { - const Ee = []; - return ze.forEach((Pe) => { - Pe._fc_page_tag ? J.appendPage(Pe._fc_page_tag, Pe) : Ee.push(Pe); - }), Ee; + const Ae = (_e) => { + const Le = []; + return _e.forEach((Oe) => { + Oe._fc_page_tag ? te.appendPage(Oe._fc_page_tag, Oe) : Le.push(Oe); + }), Le; }; - J.handleAddBefore(); - const Ae = j ? C.dragRuleList[j.name] : null; + te.handleAddBefore(); + const Fe = K ? C.dragRuleList[K.name] : null; u.emit("drag", { - item: j, - dragRule: Ae, - rule: I + item: K, + dragRule: Fe, + rule: $ }); - let Be = []; - if (I) - St.String(I) ? (I = J.batchReplaceUni(I), I = et.parseJson(I)) : I = et.parseJson(J.batchReplaceUni(et.toJson(I))), Array.isArray(I) || (I = [I]), Be = _e(J.loadRule(I)); - else if (Ae.template) { - let ze = ""; - St.Function(Ae.template) ? ze = et.toJson(Ae.template({ t: R })) : Array.isArray(Ae.template) ? ze = et.toJson(Ae.template) : ze = "" + Ae.template, Ae.autoField && (ze = J.replaceTemplateField(ze)), ze = J.batchReplaceUni(ze), Be = _e(J.loadRule(et.parseJson(ze), null, j.name)); + let Xe = []; + if ($) + St.String($) ? ($ = te.batchReplaceUni($), $ = tt.parseJson($)) : $ = tt.parseJson(te.batchReplaceUni(tt.toJson($))), Array.isArray($) || ($ = [$]), Xe = Ae(te.loadRule($)); + else if (Fe.template) { + let _e = ""; + St.Function(Fe.template) ? _e = tt.toJson(Fe.template({ t: U })) : Array.isArray(Fe.template) ? _e = tt.toJson(Fe.template) : _e = "" + Fe.template, Fe.autoField && (_e = te.replaceTemplateField(_e)), _e = te.batchReplaceUni(_e), Xe = Ae(te.loadRule(tt.parseJson(_e), null, K.name)); } else - Be.push(J.makeRule(C.dragRuleList[Ae.name])); - se && Be.forEach((ze) => { - ze && (ze.slot = se); + Xe.push(te.makeRule(C.dragRuleList[Fe.name])); + re && Xe.forEach((_e) => { + _e && (_e.slot = re); }); - const ct = Be[0] && Be[0].type === "DragTool" ? Be[0].children[0] : Be[0]; - oe && J.mergeRule(ct, oe), ee.splice(te, 0, ...Be), Ae && Ae.formOptions && J.mergeOptions(typeof Ae.formOptions == "string" ? et.parseJson(Ae.formOptions) : Ae.formOptions), J.handleAddAfter(Ae && Ae.template ? { template: Be } : { rule: ct }), ct && J.getConfig("autoActive", !0) && Yn(() => { - J.triggerActive(ct); + const Ze = Xe[0] && Xe[0].type === "DragTool" ? Xe[0].children[0] : Xe[0]; + fe && te.mergeRule(Ze, fe), X.splice(ie, 0, ...Xe), Fe && Fe.formOptions && te.mergeOptions(typeof Fe.formOptions == "string" ? tt.parseJson(Fe.formOptions) : Fe.formOptions), te.handleAddAfter(Fe && Fe.template ? { template: Xe } : { rule: Ze }), Ze && te.getConfig("autoActive", !0) && Yn(() => { + te.triggerActive(Ze); }); }, - mergeRule(I, j) { - Object.keys(j).forEach((ee) => { - ee === "required" ? I.$required = !!j.required : ee === "disabled" ? (I.props || (I.props = {}), I.props.disabled = !!j.disabled) : ee === "props" ? I.props = { ...I.props || {}, ...gt(j[ee]) } : I[ee] = gt(j[ee]); + mergeRule($, K) { + Object.keys(K).forEach((X) => { + X === "required" ? $.$required = !!K.required : X === "disabled" ? ($.props || ($.props = {}), $.props.disabled = !!K.disabled) : X === "props" ? $.props = { ...$.props || {}, ...gt(K[X]) } : $[X] = gt(K[X]); }); }, - replaceField(I) { - const j = ["array", "object"].indexOf(I._menu.subForm) > -1; - let ee = J.parseRule(gt([I]))[0]; - const te = J.getConfig("autoResetName") !== !1; - return j && (ee.field = it(), te && (ee.name = "ref_" + it())), ee = et.toJson(ee), j ? ee = J.batchReplaceUni(ee) : (ee = J.batchReplaceField(ee), te && (ee = J.batchReplaceName(ee))), J.loadRule([et.parseJson(ee)])[0]; + replaceField($) { + const K = ["array", "object"].indexOf($._menu.subForm) > -1; + let X = te.parseRule(gt([$]))[0]; + const ie = te.getConfig("autoResetName") !== !1; + return K && (X.field = rt(), ie && (X.name = "ref_" + rt())), X = tt.toJson(X), K ? X = te.batchReplaceUni(X) : (X = te.batchReplaceField(X), ie && (X = te.batchReplaceName(X))), te.loadRule([tt.parseJson(X)])[0]; }, - batchReplaceField(I) { - const j = /"field"\s*:\s*"(\w[\w\d]+)"/g, ee = []; - return I = I.replace(j, (te, se) => { - const oe = it(); - return ee.push({ old: se, key: oe }), `"field":"${oe}"`; - }).replace(/"computed"\s*:\s*(\{\s*(?:"[^"]*"\s*:\s*"(?:\\"|[^"])*"(?:,\s*)?)*\})/g, (te, se) => { - const oe = JSON.parse(se); - return ee.forEach((_e) => { - Object.keys(oe).forEach((Ae) => { - oe[Ae] = `${oe[Ae]}`.replaceAll(_e.old, _e.key); + batchReplaceField($) { + const K = /"field"\s*:\s*"(\w[\w\d]+)"/g, X = []; + return $ = $.replace(K, (ie, re) => { + const fe = rt(); + return X.push({ old: re, key: fe }), `"field":"${fe}"`; + }).replace(/"computed"\s*:\s*(\{\s*(?:"[^"]*"\s*:\s*"(?:\\"|[^"])*"(?:,\s*)?)*\})/g, (ie, re) => { + const fe = JSON.parse(re); + return X.forEach((Ae) => { + Object.keys(fe).forEach((Fe) => { + fe[Fe] = `${fe[Fe]}`.replaceAll(Ae.old, Ae.key); }); - }), `"computed":${JSON.stringify(oe)}`; - }), J.batchReplaceUni(I); + }), `"computed":${JSON.stringify(fe)}`; + }), te.batchReplaceUni($); }, - replaceTemplateField(I) { - const j = /"field"\s*:\s*"(\w[\w\d]+)"/g; - let ee; - const te = []; - for (; (ee = j.exec(I)) !== null; ) - te.push({ old: ee[1], key: it() }); - return te.forEach((se) => { - I = I.replaceAll(se.old, se.key); - }), I; + replaceTemplateField($) { + const K = /"field"\s*:\s*"(\w[\w\d]+)"/g; + let X; + const ie = []; + for (; (X = K.exec($)) !== null; ) + ie.push({ old: X[1], key: rt() }); + return ie.forEach((re) => { + $ = $.replaceAll(re.old, re.key); + }), $; }, - batchReplaceUni(I) { - const j = /"_fc_id"\s*:\s*"(\w[\w\d]+)"/g; - return I = I.replace(j, () => `"_fc_id":"id_${it()}"`), I; + batchReplaceUni($) { + const K = /"_fc_id"\s*:\s*"(\w[\w\d]+)"/g; + return $ = $.replace(K, () => `"_fc_id":"id_${rt()}"`), $; }, - batchReplaceName(I) { - const j = /"name"\s*:\s*"ref_(\w[\w\d]+)"/g; - return I = I.replace(j, () => `"name":"ref_${it()}"`), I; + batchReplaceName($) { + const K = /"name"\s*:\s*"ref_(\w[\w\d]+)"/g; + return $ = $.replace(K, () => `"name":"ref_${rt()}"`), $; }, - getTrueRule(I) { - if (!!I) { - if (I._menu) - return I._menu._get(); - if (I._config) - return I._config._get(); + getTrueRule($) { + if (!!$) { + if ($._menu) + return $._menu._get(); + if ($._config) + return $._config._get(); } }, - dragPut(I, j, ee) { - const te = J.getTrueRule(I.el.__rule__); - if (!te) + dragPut($, K, X) { + const ie = te.getTrueRule($.el.__rule__); + if (!ie) return !0; - const se = te._menu, oe = ee._fc_allow_drag || {}; - if (oe[te._fc_id] === void 0) { - const _e = J.getTrueRule(ee._underlying_vm_), Ae = ee._underlying_vm_.__fc__ ? ee._underlying_vm_._config || ee._underlying_vm_._menu : ee._underlying_vm_; - oe[te._fc_id] = !(Ae && se && !J.checkDrag({ - menu: Ae, - toMenu: se, - rule: _e, - toRule: te - })), ee._fc_allow_drag = oe; + const re = ie._menu, fe = X._fc_allow_drag || {}; + if (fe[ie._fc_id] === void 0) { + const Ae = te.getTrueRule(X._underlying_vm_), Fe = X._underlying_vm_.__fc__ ? X._underlying_vm_._config || X._underlying_vm_._menu : X._underlying_vm_; + fe[ie._fc_id] = !(Fe && re && !te.checkDrag({ + menu: Fe, + toMenu: re, + rule: Ae, + toRule: ie + })), X._fc_allow_drag = fe; } - return ee._id && clearTimeout(ee._id), ee._id = setTimeout(() => { - delete ee._fc_allow_drag; - }, 1500), ee._fc_allow_drag[te._fc_id]; + return X._id && clearTimeout(X._id), X._id = setTimeout(() => { + delete X._fc_allow_drag; + }, 1500), X._fc_allow_drag[ie._fc_id]; }, - checkDrag({ menu: I, toMenu: j, rule: ee, toRule: te }) { - var se, oe; - return !(!J.checkAllowDrag(I, j) || te.children && j.maxChildren && j.maxChildren <= ((oe = (se = te.children[0]) == null ? void 0 : se.children) == null ? void 0 : oe.length) || I.checkDrag && I.checkDrag({ - menu: I, - toMenu: j, - rule: ee, - toRule: te, + checkDrag({ menu: $, toMenu: K, rule: X, toRule: ie }) { + var re, fe; + return !(!te.checkAllowDrag($, K) || ie.children && K.maxChildren && K.maxChildren <= ((fe = (re = ie.children[0]) == null ? void 0 : re.children) == null ? void 0 : fe.length) || $.checkDrag && $.checkDrag({ + menu: $, + toMenu: K, + rule: X, + toRule: ie, designer: u - }) === !1 || j.checkDrag && j.checkDrag({ - menu: I, - toMenu: j, - rule: ee, - toRule: te, + }) === !1 || K.checkDrag && K.checkDrag({ + menu: $, + toMenu: K, + rule: X, + toRule: ie, designer: u - }) === !1 || p.value.checkDrag && p.value.checkDrag({ - menu: I, - toMenu: j, - rule: ee, - toRule: te + }) === !1 || h.value.checkDrag && h.value.checkDrag({ + menu: $, + toMenu: K, + rule: X, + toRule: ie }) === !1); }, - checkAllowDrag(I, j) { - function ee(oe) { - return Array.isArray(oe) && (oe = { item: oe }), pg(oe.item).indexOf(I.name) > -1 ? !0 : pg(oe.menu).indexOf(I.menu) > -1; + checkAllowDrag($, K) { + function X(fe) { + return Array.isArray(fe) && (fe = { item: fe }), pg(fe.item).indexOf($.name) > -1 ? !0 : pg(fe.menu).indexOf($.menu) > -1; } - const te = J.getConfig("allowDrag", {})[j.name], se = J.getConfig("denyDrag", {})[j.name]; - return j.allowDrag && ee(j.allowDrag) || te && ee(te) ? !0 : j.allowDrag || te || j.denyDrag && ee(j.denyDrag) ? !1 : !(se && ee(se)); + const ie = te.getConfig("allowDrag", {})[K.name], re = te.getConfig("denyDrag", {})[K.name]; + return K.allowDrag && X(K.allowDrag) || ie && X(ie) ? !0 : K.allowDrag || ie || K.denyDrag && X(K.denyDrag) ? !1 : !(re && X(re)); }, - dragAdd(I, j, ee) { - delete j.item._fc_allow_drag; - const te = j.newIndex, se = j.item._underlying_vm_ || j.item.__rule__; - if (C.added = !0, !!se) - if (se.__fc__) { + dragAdd($, K, X) { + delete K.item._fc_allow_drag; + const ie = K.newIndex, re = K.item._underlying_vm_ || K.item.__rule__; + if (C.added = !0, !!re) + if (re.__fc__) { if (C.addRule) { - J.handleSortBefore(); - const oe = C.addRule.children.splice(C.addRule.children.indexOf(se), 1)[0]; - ee ? oe.slot = ee : delete oe.slot, I.splice(te, 0, oe), J.handleSortAfter({ rule: oe }); + te.handleSortBefore(); + const fe = C.addRule.children.splice(C.addRule.children.indexOf(re), 1)[0]; + X ? fe.slot = X : delete fe.slot, $.splice(ie, 0, fe), te.handleSortAfter({ rule: fe }); } } else - se._field ? J.clickField(se, I, te, ee) : J.dragMenu({ menu: se, children: I, index: te, slot: ee }); + re._field ? te.clickField(re, $, ie, X) : te.dragMenu({ menu: re, children: $, index: ie, slot: X }); }, - dragEnd(I, { item: j, newIndex: ee, oldIndex: te }, se) { - if (delete j._fc_allow_drag, !C.added && !(C.moveRule === I && ee === te)) { - J.handleSortBefore(); - const oe = C.moveRule.splice(te, 1); - se && (oe[0].slot = se), I.splice(ee, 0, oe[0]), J.handleSortAfter({ rule: oe[0] }); + dragEnd($, { item: K, newIndex: X, oldIndex: ie }, re) { + if (delete K._fc_allow_drag, !C.added && !(C.moveRule === $ && X === ie)) { + te.handleSortBefore(); + const fe = C.moveRule.splice(ie, 1); + re && (fe[0].slot = re), $.splice(X, 0, fe[0]), te.handleSortAfter({ rule: fe[0] }); } C.moveRule = null, C.addRule = null, C.added = !1, C.bus.$emit("dragEnd"); }, - getSlotConfig(I, j, ee) { - let te = {}; - return (I.slot || []).forEach((se) => { - se.name === j && (te = se.config || {}); - }), { ...ee, dragBtn: !1, handleBtn: ee.children ? ["addChild"] : !1, ...te }; + getSlotConfig($, K, X) { + let ie = {}; + return ($.slot || []).forEach((re) => { + re.name === K && (ie = re.config || {}); + }), { ...X, dragBtn: !1, handleBtn: X.children ? ["addChild"] : !1, ...ie }; }, - makeRule(I, j) { - let ee = j || I.rule({ t: R }); - const te = A.value && A.value[I.name]; - if (!j && te) - if (typeof te == "function") + makeRule($, K) { + let X = K || $.rule({ t: U }); + const ie = y.value && y.value[$.name]; + if (!K && ie) + if (typeof ie == "function") try { - te(ee); - } catch (De) { - console.error(De); + ie(X); + } catch (Re) { + console.error(Re); } else { - let De = gt(te); - delete De.children, delete De.component, ee = vb([ee, De]); + let Re = gt(ie); + delete Re.children, delete Re.component, X = vb([X, Re]); } - ee._menu = Gt({ ...I }), ee._menu._get = () => ee, ee._fc_id || (ee._fc_id = "id_" + it()), !ee.name && !I.aide && (ee.name = "ref_" + it()), I.component && (ee.component = Gt(I.component)), ee._computed || (ee._computed = {}), ee.effect || (ee.effect = {}), I.input && !ee.field && (ee.field = it()), ee.$easySlots || (ee.$easySlots = {}), I.languageKey && J.mergeOptions({ - languageKey: I.languageKey - }), J.tidyRule(ee), ee.display = !0, ee.hidden = !1, ee._fc_drag_tag = I.name, I.container && (ee._fc_page_tag = I.name); - let se = I.only === !0; - if (!se && ee._fc_template) { - const De = C.dragRuleList[ee._fc_template]; - se = De && De.only === !0; + X._menu = Gt({ ...$ }), X._menu._get = () => X, X._fc_id || (X._fc_id = "id_" + rt()), !X.name && !$.aide && (X.name = "ref_" + rt()), $.component && (X.component = Gt($.component)), X._computed || (X._computed = {}), X.effect || (X.effect = {}), $.input && !X.field && (X.field = rt()), X.$easySlots || (X.$easySlots = {}), $.languageKey && te.mergeOptions({ + languageKey: $.languageKey + }), te.tidyRule(X), X.display = !0, X.hidden = !1, X._fc_drag_tag = $.name, $.container && (X._fc_page_tag = $.name); + let re = $.only === !0; + if (!re && X._fc_template) { + const Re = C.dragRuleList[X._fc_template]; + re = Re && Re.only === !0; } - const oe = St.trueArray(ee.children), _e = {}, Ae = []; - (I.slot || []).forEach((De) => { - typeof De == "string" ? Ae.push(De) : (_e[De.name] = De, Ae.push(De.name)); + const fe = St.trueArray(X.children), Ae = {}, Fe = []; + ($.slot || []).forEach((Re) => { + typeof Re == "string" ? Fe.push(Re) : (Ae[Re.name] = Re, Fe.push(Re.name)); }); - const Be = { + const Xe = { default: [] }; - Ae.map((De) => { - Be[De] = []; - }), oe && ee.children.forEach((De) => { - De.slot ? (Be[De.slot] || (Be[De.slot] = []), Be[De.slot].push(De)) : Be.default.push(De); + Fe.map((Re) => { + Xe[Re] = []; + }), fe && X.children.forEach((Re) => { + Re.slot ? (Xe[Re.slot] || (Xe[Re.slot] = []), Xe[Re.slot].push(Re)) : Xe.default.push(Re); }); - const ct = (De, Ne, lt, mt) => { - const Ze = J.makeDrag(De, Ne, lt, { - end: (Ot, dt) => J.dragEnd(Ot.self.children, dt), - add: (Ot, dt) => J.dragAdd(Ot.self.children, dt), - start: (Ot, dt) => J.dragStart(Ot.self.children, dt), - unchoose: (Ot, dt) => J.dragUnchoose(Ot.self.children, dt) - }, mt); - return Ze._config = ee._menu, Ze; + const Ze = (Re, He, at, We) => { + const $t = te.makeDrag(Re, He, at, { + end: (ft, je) => te.dragEnd(ft.self.children, je), + add: (ft, je) => te.dragAdd(ft.self.children, je), + start: (ft, je) => te.dragStart(ft.self.children, je), + unchoose: (ft, je) => te.dragUnchoose(ft.self.children, je) + }, We); + return $t._config = X._menu, $t; }; - let ze; - const Ee = ee._menu ? ee._menu.name : ee.type; - if (Object.keys(Be).forEach((De) => { - const Ne = De === "default"; - if (!Ne || I.drag) { - let lt; - if (_e[De] && !Ne) { - if (!j) { - const mt = C.dragRuleList[_e[De].type]; - lt = J.makeRule({ - ...mt, + let _e; + const Le = X._menu ? X._menu.name : X.type; + if (Object.keys(Xe).forEach((Re) => { + const He = Re === "default"; + if (!He || $.drag) { + let at; + if (Ae[Re] && !He) { + if (!K) { + const We = C.dragRuleList[Ae[Re].type]; + at = te.makeRule({ + ...We, dragBtn: !1, - handleBtn: mt.children ? ["addChild"] : !1, - ..._e[De].config || {} - }), lt.slot = De; + handleBtn: We.children ? ["addChild"] : !1, + ...Ae[Re].config || {} + }), at.slot = Re; } } else - lt = ct(!0, Ee + (Ne ? "" : "-slot-" + De), j ? Be[De].map((mt) => (delete mt.slot, mt)) : J.loadRule(Be[De]), De); - lt && (Be[De] = [lt]); + at = Ze(!0, Le + (He ? "" : "-slot-" + Re), K ? Xe[Re].map((We) => (delete We.slot, We)) : te.loadRule(Xe[Re]), Re); + at && (Xe[Re] = [at]); } - Ne && I.drag && (ze = Be[De][0]); - }), I.children && !j && !oe && I.childrenLen !== 0) - for (let De = 0; De < (I.childrenLen || 1); De++) { - const Ne = J.makeRule(C.dragRuleList[I.children]); - (ze ? ze.children : Be.default).push(Ne); + He && $.drag && (_e = Xe[Re][0]); + }), $.children && !K && !fe && $.childrenLen !== 0) + for (let Re = 0; Re < ($.childrenLen || 1); Re++) { + const He = te.makeRule(C.dragRuleList[$.children]); + (_e ? _e.children : Xe.default).push(He); } - const Pe = []; - Ae.indexOf("default") === -1 && (Pe.push(...Be.default), delete Be.default), Ae.forEach((De) => { - Pe.push(...Be[De]), delete Be[De]; - }), Object.keys(Be).forEach((De) => { - Pe.push(...Be[De]); - }), ee.children = Pe; - const Oe = n.value !== void 0 ? n.value !== !1 : I.mask !== !1; - if (I.tool === !1) - return ee; - const nt = { - dragBtn: I.dragBtn !== !1, - inline: I.inline === !0, - actions: I.actions ? I.actions.map((De) => De.label) : [], - children: I.children, - mask: Oe, - inside: I.inside, - hidden: ee._hidden === !0 || ee._display === !1, - handleBtn: I.handleBtn, - only: se + const Oe = []; + Fe.indexOf("default") === -1 && (Oe.push(...Xe.default), delete Xe.default), Fe.forEach((Re) => { + Oe.push(...Xe[Re]), delete Xe[Re]; + }), Object.keys(Xe).forEach((Re) => { + Oe.push(...Xe[Re]); + }), X.children = Oe; + const it = n.value !== void 0 ? n.value !== !1 : $.mask !== !1; + if ($.tool === !1) + return X; + const pt = { + dragBtn: $.dragBtn !== !1, + inline: $.inline === !0, + actions: $.actions ? $.actions.map((Re) => Re.label) : [], + children: $.children, + mask: it, + inside: $.inside, + hidden: X._hidden === !0 || X._display === !1, + handleBtn: $.handleBtn, + only: re }; - return I.inside ? (ee.children = J.makeChildren([{ + return $.inside ? (X.children = te.makeChildren([{ type: "DragTool", - props: nt, + props: pt, inject: !0, on: { - action({ self: De }, Ne) { - const lt = J.getParent(De).parent; - I.actions[Ne].handler(lt), C.activeRule === lt && J.updateRuleFormData(); + action({ self: Re }, He) { + const at = te.getParent(Re).parent; + $.actions[He].handler(at), C.activeRule === at && te.updateRuleFormData(); }, - delete: ({ self: De }) => { - const Ne = J.getParent(De).parent; - J.handleRemoveBefore({ parent: Ne, rule: Ne }) !== !1 && (Ne.__fc__.rm(), u.emit("delete", Ne), C.activeRule === Ne && J.clearActiveRule(), J.handleRemoveAfter({ rule: Ne })); + delete: ({ self: Re }) => { + const He = te.getParent(Re).parent; + te.handleRemoveBefore({ parent: He, rule: He }) !== !1 && (He.__fc__.rm(), u.emit("delete", He), C.activeRule === He && te.clearActiveRule(), te.handleRemoveAfter({ rule: He })); }, - create: ({ self: De }) => { - J.handleAddBefore(); - const Ne = J.getParent(De); - u.emit("create", Ne.parent); - const lt = J.makeRule(Ne.parent._menu); - Ne.parent.slot && (lt.slot = Ne.parent.slot), Ne.root.children.splice(Ne.root.children.indexOf(Ne.parent) + 1, 0, lt), J.handleAddAfter({ rule: Ne.parent }); + create: ({ self: Re }) => { + te.handleAddBefore(); + const He = te.getParent(Re); + u.emit("create", He.parent); + const at = te.makeRule(He.parent._menu); + He.parent.slot && (at.slot = He.parent.slot), He.root.children.splice(He.root.children.indexOf(He.parent) + 1, 0, at), te.handleAddAfter({ rule: He.parent }); }, - addChild: ({ self: De }) => { - J.handleAddBefore(); - const Ne = J.getParent(De), lt = Ne.parent._menu, mt = C.dragRuleList[lt.children]; - if (!mt) + addChild: ({ self: Re }) => { + te.handleAddBefore(); + const He = te.getParent(Re), at = He.parent._menu, We = C.dragRuleList[at.children]; + if (!We) return; - const Ze = J.makeRule(mt); - (lt.drag ? Ne.parent.children[0] : Ne.parent).children[0].children.push(Ze), J.handleAddAfter({ rule: Ze }); + const $t = te.makeRule(We); + (at.drag ? He.parent.children[0] : He.parent).children[0].children.push($t), te.handleAddAfter({ rule: $t }); }, - copy: ({ self: De }) => { - J.handleCopyBefore(); - const Ne = J.getParent(De); - u.emit("copy", Ne.parent); - const lt = J.replaceField(Ne.parent); - Ne.root.children.splice(Ne.root.children.indexOf(Ne.parent) + 1, 0, lt), J.handleCopyAfter({ rule: Ne.parent }); + copy: ({ self: Re }) => { + te.handleCopyBefore(); + const He = te.getParent(Re); + u.emit("copy", He.parent); + const at = te.replaceField(He.parent); + He.root.children.splice(He.root.children.indexOf(He.parent) + 1, 0, at), te.handleCopyAfter({ rule: He.parent }); }, - active: ({ self: De }) => { - const Ne = J.getParent(De); - u.emit("active", Ne.parent), setTimeout(() => { - J.toolActive(Ne.parent); + active: ({ self: Re }) => { + const He = te.getParent(Re); + u.emit("active", He.parent), setTimeout(() => { + te.toolActive(He.parent); }, 10); } }, - _config: ee._menu, - children: ee.children - }]), ee) : { + _config: X._menu, + children: X.children + }]), X) : { type: "DragTool", - props: nt, - _fc_page_tag: ee._fc_page_tag, + props: pt, + _fc_page_tag: X._fc_page_tag, inject: !0, - display: !!ee.display, + display: !!X.display, on: { - action({ self: De }, Ne) { - I.actions[Ne].handler(De.children[0]), C.activeRule === De.children[0] && J.updateRuleFormData(); + action({ self: Re }, He) { + $.actions[He].handler(Re.children[0]), C.activeRule === Re.children[0] && te.updateRuleFormData(); }, - delete: ({ self: De }) => { - J.handleRemoveBefore({ parent: De, rule: De.children[0] }) !== !1 && (u.emit("delete", De.children[0]), De.__fc__.rm(), C.activeRule === De.children[0] && J.clearActiveRule(), J.handleRemoveAfter({ rule: De.children[0] })); + delete: ({ self: Re }) => { + te.handleRemoveBefore({ parent: Re, rule: Re.children[0] }) !== !1 && (u.emit("delete", Re.children[0]), Re.__fc__.rm(), C.activeRule === Re.children[0] && te.clearActiveRule(), te.handleRemoveAfter({ rule: Re.children[0] })); }, - create: ({ self: De }) => { - J.handleAddBefore(), u.emit("create", De.children[0]); - const Ne = J.getParent(De), lt = J.makeRule(De.children[0]._menu); - Ne.parent.slot && (lt.slot = Ne.parent.slot), Ne.root.children.splice(Ne.root.children.indexOf(Ne.parent) + 1, 0, lt), J.handleAddAfter({ rule: lt }); + create: ({ self: Re }) => { + te.handleAddBefore(), u.emit("create", Re.children[0]); + const He = te.getParent(Re), at = te.makeRule(Re.children[0]._menu); + He.parent.slot && (at.slot = He.parent.slot), He.root.children.splice(He.root.children.indexOf(He.parent) + 1, 0, at), te.handleAddAfter({ rule: at }); }, - addChild: ({ self: De }) => { - J.handleAddBefore(); - const Ne = De.children[0]._menu, lt = C.dragRuleList[Ne.children]; - if (!lt) + addChild: ({ self: Re }) => { + te.handleAddBefore(); + const He = Re.children[0]._menu, at = C.dragRuleList[He.children]; + if (!at) return; - const mt = J.makeRule(lt); - (Ne.drag ? De.children[0] : De).children[0].children.push(mt), J.handleAddAfter({ rule: mt }); + const We = te.makeRule(at); + (He.drag ? Re.children[0] : Re).children[0].children.push(We), te.handleAddAfter({ rule: We }); }, - copy: ({ self: De }) => { - J.handleCopyBefore(), u.emit("copy", De.children[0]); - const Ne = J.getParent(De), lt = J.replaceField(De.children[0]); - De.slot && (lt.slot = De.slot), Ne.root.children.splice(Ne.root.children.indexOf(Ne.parent) + 1, 0, lt), J.handleCopyAfter({ rule: De.children[0] }); + copy: ({ self: Re }) => { + te.handleCopyBefore(), u.emit("copy", Re.children[0]); + const He = te.getParent(Re), at = te.replaceField(Re.children[0]); + Re.slot && (at.slot = Re.slot), He.root.children.splice(He.root.children.indexOf(He.parent) + 1, 0, at), te.handleCopyAfter({ rule: Re.children[0] }); }, - active: ({ self: De }) => { - u.emit("active", De.children[0]), setTimeout(() => { - J.toolActive(De.children[0]); + active: ({ self: Re }) => { + u.emit("active", Re.children[0]), setTimeout(() => { + te.toolActive(Re.children[0]); }, 10); } }, - _config: ee._menu, - children: J.makeChildren([ee]) + _config: X._menu, + children: te.makeChildren([X]) }; }, - toolHidden(I) { - const j = !(I._hidden !== void 0 && I._hidden); - I._menu.inside ? I.children[0].props.hidden = j : I.__fc__.parent.rule.props.hidden = j, I._hidden = j, j || (I._display = !0); + toolHidden($) { + const K = !($._hidden !== void 0 && $._hidden); + $._menu.inside ? $.children[0].props.hidden = K : $.__fc__.parent.rule.props.hidden = K, $._hidden = K, K || ($._display = !0); }, - toolHandle(I, j) { - if (!I._fc_drag_tag || I._menu.tool === !1) { - I.__fc__.rm(); + toolHandle($, K) { + if (!$._fc_drag_tag || $._menu.tool === !1) { + $.__fc__.rm(); return; } - let ee; - I._menu.inside ? ee = I.children[0].__fc__.exportEl : ee = I.__fc__.parent.exportEl, ee.$emit(j); + let X; + $._menu.inside ? X = $.children[0].__fc__.exportEl : X = $.__fc__.parent.exportEl, X.$emit(K); }, handleAddBefore() { }, - handleRemoveBefore({ rule: I }) { - if (p.value.beforeRemoveRule && p.value.beforeRemoveRule({ rule: I }) === !1) + handleRemoveBefore({ rule: $ }) { + if (h.value.beforeRemoveRule && h.value.beforeRemoveRule({ rule: $ }) === !1) return !1; }, handleCopyBefore() { @@ -45721,60 +45731,60 @@ const X8 = Ve({ handleSortBefore() { }, addOperationRecord() { - const I = J.getPageJson(), j = gt(C.inputForm.data), ee = C.operation.list.slice(0, C.operation.idx + 1); - ee.push({ rule: I, formData: j }), C.operation.list = ee, C.operation.idx = ee.length - 1, C.unloadStatus = ee.length !== 1; + const $ = te.getPageJson(), K = gt(C.inputForm.data), X = C.operation.list.slice(0, C.operation.idx + 1); + X.push({ rule: $, formData: K }), C.operation.list = X, C.operation.idx = X.length - 1, C.unloadStatus = X.length !== 1; }, prevOperationRecord() { if (!C.operation.list[C.operation.idx - 1]) return; - const I = C.operation.list[--C.operation.idx]; - J.useOperationRecord(I), J.clearActiveRule(); + const $ = C.operation.list[--C.operation.idx]; + te.useOperationRecord($), te.clearActiveRule(); }, nextOperationRecord() { if (!C.operation.list[C.operation.idx + 1]) return; - const I = C.operation.list[++C.operation.idx]; - J.useOperationRecord(I), J.clearActiveRule(); + const $ = C.operation.list[++C.operation.idx]; + te.useOperationRecord($), te.clearActiveRule(); }, - useOperationRecord(I) { - C.inputForm.data = I.formData, J.setRule(I.rule, !0); + useOperationRecord($) { + C.inputForm.data = $.formData, te.setRule($.rule, !0); }, handleAddAfter() { - J.addOperationRecord(), J.updateTree(); + te.addOperationRecord(), te.updateTree(); }, handleRemoveAfter() { - J.addOperationRecord(), J.updateTree(); + te.addOperationRecord(), te.updateTree(); }, handleCopyAfter() { - J.addOperationRecord(), J.updateTree(); + te.addOperationRecord(), te.updateTree(); }, handleSortAfter() { - J.addOperationRecord(), J.updateTree(); + te.addOperationRecord(), te.updateTree(); }, - treeChange(I) { - J.triggerActive(I.rule); + treeChange($) { + te.triggerActive($.rule); }, getFormDescription() { - return Qm(J.getDescription()); + return Qm(te.getDescription()); }, getDescription() { return Jm(C.dragForm.rule[0].children); }, - getSubFormDescription(I) { - let j = I.__fc__ && I.__fc__.parent; - for (; j; ) { - if (j.rule._menu && ["array", "object"].indexOf(j.rule._menu.subForm) > -1) - return Qm(Jm(j.rule.children)); - j = j.parent; + getSubFormDescription($) { + let K = $.__fc__ && $.__fc__.parent; + for (; K; ) { + if (K.rule._menu && ["array", "object"].indexOf(K.rule._menu.subForm) > -1) + return Qm(Jm(K.rule.children)); + K = K.parent; } return null; }, - getSubFormChildren(I) { - let j = I.__fc__ && I.__fc__.parent; - for (; j; ) { - if (j.rule._menu && ["array", "object"].indexOf(j.rule._menu.subForm) > -1) - return j.rule.children || []; - j = j.parent; + getSubFormChildren($) { + let K = $.__fc__ && $.__fc__.parent; + for (; K; ) { + if (K.rule._menu && ["array", "object"].indexOf(K.rule._menu.subForm) > -1) + return K.rule.children || []; + K = K.parent; } return null; }, @@ -45783,125 +45793,125 @@ const X8 = Ve({ C.treeInfo = ac(C.dragForm.rule[0].children); }); }, 300), - findTree(I) { - let j; - const ee = (te) => { - te.forEach((se) => { - se.rule.field === I || se.rule.name === I || se.rule._fc_id === I ? j = se.children : se.children && ee(se.children); + findTree($) { + let K; + const X = (ie) => { + ie.forEach((re) => { + re.rule.field === $ || re.rule.name === $ || re.rule._fc_id === $ ? K = re.children : re.children && X(re.children); }); }; - return ee(C.treeInfo), j || []; + return X(C.treeInfo), K || []; }, - handleDragenter(I) { - C.bus.$emit("dragenter", I); + handleDragenter($) { + C.bus.$emit("dragenter", $); }, - handleDragleave(I) { - C.bus.$emit("dragleave", I); + handleDragleave($) { + C.bus.$emit("dragleave", $); }, - handleDrop(I) { - C.bus.$emit("drop", I); + handleDrop($) { + C.bus.$emit("drop", $); }, - changeEvent(I) { - C.activeRule._on = I; + changeEvent($) { + C.activeRule._on = $; }, - triggerHandle(I) { - I.handle(); + triggerHandle($) { + $.handle(); }, - bindHotkey(I) { - const j = I.ctrlKey || I.metaKey; - if (!getSelection().toString() && j && I.target.tagName === "BODY" && ["ArrowUp", "ArrowDown", "Backspace", "c", "x", "z", "p", "1", "2", "3", "4", "5", "6", "7"].indexOf(I.key) > -1) { - if (I.preventDefault(), C.inputForm.state) + bindHotkey($) { + const K = $.ctrlKey || $.metaKey; + if (!getSelection().toString() && K && $.target.tagName === "BODY" && ["ArrowUp", "ArrowDown", "Backspace", "c", "x", "z", "p", "1", "2", "3", "4", "5", "6", "7"].indexOf($.key) > -1) { + if ($.preventDefault(), C.inputForm.state) return; - ve[I.key] ? ve[I.key](I) : "1234567".indexOf(I.key) > -1 && ve.num(I); + pe[$.key] ? pe[$.key]($) : "1234567".indexOf($.key) > -1 && pe.num($); } }, - bindPaste(I) { + bindPaste($) { if (C.inputForm.state) return; - let j = I.clipboardData.getData("text/plain"); - if (j && j.indexOf("FormCreate:") === 0) { - let ee = C.children; - j = j.slice(11, j.length); - const te = J.loadRule([et.parseJson(j)])[0]; - let se = !0; + let K = $.clipboardData.getData("text/plain"); + if (K && K.indexOf("FormCreate:") === 0) { + let X = C.children; + K = K.slice(11, K.length); + const ie = te.loadRule([tt.parseJson(K)])[0]; + let re = !0; if (C.activeRule && C.activeRule._menu.drag) { - const oe = J.getTrueRule(te); - if (oe && !J.checkDrag({ - rule: oe, - menu: oe._menu, + const fe = te.getTrueRule(ie); + if (fe && !te.checkDrag({ + rule: fe, + menu: fe._menu, toRule: C.activeRule, toMenu: C.activeRule._menu })) return; - C.activeRule._menu.inside ? ee = C.activeRule.children[0].children[0].children : ee = C.activeRule.children[0].children; + C.activeRule._menu.inside ? X = C.activeRule.children[0].children[0].children : X = C.activeRule.children[0].children; } else - C.customForm.config && C.customForm.config.onPaste && (C.customForm.config.onPaste(te), se = !1); - se && ee.push(te), J.updateTree(), J.addOperationRecord(), u.emit("pasteRule", { event: I, copyRule: te }); + C.customForm.config && C.customForm.config.onPaste && (C.customForm.config.onPaste(ie), re = !1); + re && X.push(ie), te.updateTree(), te.addOperationRecord(), u.emit("pasteRule", { event: $, copyRule: ie }); } } - }, ve = { - z(I) { - I.shiftKey ? J.nextOperationRecord() : J.prevOperationRecord(); + }, pe = { + z($) { + $.shiftKey ? te.nextOperationRecord() : te.prevOperationRecord(); }, Backspace() { - !C.activeRule || J.toolHandle(C.activeRule, "delete"); + !C.activeRule || te.toolHandle(C.activeRule, "delete"); }, - c(I) { - const j = C.activeRule; - !j || (tr("FormCreate:" + et.toJson(J.parseRule([j])[0])), u.emit("copyRule", { event: I, rule: j })); + c($) { + const K = C.activeRule; + !K || (tr("FormCreate:" + tt.toJson(te.parseRule([K])[0])), u.emit("copyRule", { event: $, rule: K })); }, - x(I) { - !C.activeRule || (ve.c(I), J.toolHandle(C.activeRule, "delete")); + x($) { + !C.activeRule || (pe.c($), te.toolHandle(C.activeRule, "delete")); }, p() { - u.refs.print ? u.refs.print.visible = !0 : J.openPreview(); + u.refs.print ? u.refs.print.visible = !0 : te.openPreview(); }, - num(I) { - const j = I.key; - I.shiftKey ? C.pageData[j - 1] && J.changePage(j - 1) : I.key === "1" ? (C.activeModule = "base", C.activeMenuTab = "menu") : I.key === "2" ? (C.activeModule = "base", C.activeMenuTab = "field") : I.key === "3" ? (C.activeModule = "base", C.activeMenuTab = "tree") : I.key === "4" ? C.activeModule = "json" : I.key === "5" ? C.activeModule = "language" : I.key === "6" ? C.activeModule = "global" : I.key === "7" && (C.activeModule = "page"); + num($) { + const K = $.key; + $.shiftKey ? C.pageData[K - 1] && te.changePage(K - 1) : $.key === "1" ? (C.activeModule = "base", C.activeMenuTab = "menu") : $.key === "2" ? (C.activeModule = "base", C.activeMenuTab = "field") : $.key === "3" ? (C.activeModule = "base", C.activeMenuTab = "tree") : $.key === "4" ? C.activeModule = "json" : $.key === "5" ? C.activeModule = "language" : $.key === "6" ? C.activeModule = "global" : $.key === "7" && (C.activeModule = "page"); }, - ArrowUp(I) { - let j = C.activeRule; - if (!j) + ArrowUp($) { + let K = C.activeRule; + if (!K) return; - j._menu.inside || (j = j.__fc__.parent.rule); - const ee = j.__fc__.parent.rule, te = ee.children.indexOf(j); - if (ee.children.length > 1 && te >= 0) { - const se = I.key === "ArrowUp" ? -1 : I.key === "ArrowDown" ? 1 : 0; - se && te + se >= 0 && te + se < ee.children.length && (ee.children.splice(te, 1), ee.children.splice(te + se, 0, j), J.updateTree(), J.addOperationRecord(), u.emit("sort" + (I.key === "ArrowUp" ? "Up" : "Down"), { event: I, rule: j })); + K._menu.inside || (K = K.__fc__.parent.rule); + const X = K.__fc__.parent.rule, ie = X.children.indexOf(K); + if (X.children.length > 1 && ie >= 0) { + const re = $.key === "ArrowUp" ? -1 : $.key === "ArrowDown" ? 1 : 0; + re && ie + re >= 0 && ie + re < X.children.length && (X.children.splice(ie, 1), X.children.splice(ie + re, 0, K), te.updateTree(), te.addOperationRecord(), u.emit("sort" + ($.key === "ArrowUp" ? "Up" : "Down"), { event: $, rule: K })); } }, - ArrowDown(I) { - ve.ArrowUp(I); + ArrowDown($) { + pe.ArrowUp($); } }; - J.initPage(), J.setOption({}), i.value ? vv.forEach((I) => { - C.dragRuleList[I.name] = I; - }) : J.addComponent(vv); - const pe = Cn(() => Object.keys(J.getPreviewFormData()).length > 0); + te.initPage(), te.setOption({}), i.value ? vv.forEach(($) => { + C.dragRuleList[$.name] = $; + }) : te.addComponent(vv); + const ke = Cn(() => Object.keys(te.getPreviewFormData()).length > 0); return { ...zm(C), - ...J, - fieldRef: g, - formListRef: _, - dragHeight: w, + ...te, + fieldRef: _, + formListRef: S, + dragHeight: E, onlyPC: t, - t: R, + t: U, handle: s, - inputCheckStatus: pe, - fieldReadonly: E, - fieldList: x, - varList: k, - toolsMenuStatus: V, - hiddenMenu: $, - hiddenItem: M, - hiddenDragMenu: P, - hiddenDragBtn: B, - activeRuleChildren: F, - dragConHeight: T, - pageCount: Y, - elmLocale: D, - configFormOrderStyle: K + inputCheckStatus: ke, + fieldReadonly: x, + fieldList: k, + varList: R, + toolsMenuStatus: W, + hiddenMenu: M, + hiddenItem: P, + hiddenDragMenu: B, + hiddenDragBtn: T, + activeRuleChildren: q, + dragConHeight: D, + pageCount: ue, + elmLocale: V, + configFormOrderStyle: G }; }, created() { @@ -46051,8 +46061,8 @@ const X8 = Ve({ ref: "previewCode" }, B4 = ["innerHTML"]; function V4(e, t, i, r, n, a) { - const s = ne("el-tooltip"), u = ne("el-badge"), d = ne("el-aside"), p = ne("AiChat"), h = ne("LanguageConfig"), g = ne("JsonPreview"), _ = ne("GlobalEventConfig"), S = ne("GlobalFetchConfig"), b = ne("GlobalClassConfig"), A = ne("GlobalVariableConfig"), y = ne("el-main"), m = ne("el-container"), w = ne("FormList"), E = ne("PageInput"), x = ne("el-header"), k = ne("fcDraggable"), $ = ne("el-option"), M = ne("el-select"), P = ne("FieldList"), B = ne("el-dropdown-item"), T = ne("el-dropdown-menu"), D = ne("el-dropdown"), V = ne("el-tree"), K = ne("QuickLayout"), G = ne("PrintForm"), R = ne("el-button"), z = ne("el-popconfirm"), C = ne("el-switch"), F = ne("ViewForm"), q = ne("DragFormMobile"), Z = ne("DragForm"), Y = ne("ToolsBar"), J = ne("Warning"), ve = ne("TypeSelect"), pe = ne("el-input"), Te = ne("SubList"), ge = ne("ConfigTitle"), me = ne("VariableConfig"), we = ne("PropsInput"), ce = ne("SlotsConfig"), Se = ne("EventConfig"), I = ne("el-tab-pane"), j = ne("el-tabs"), ee = ne("ViewFormMobile"), te = ne("el-dialog"), se = ne("el-config-provider"); - return H(), he(m, { + const s = ee("el-tooltip"), u = ee("el-badge"), d = ee("el-aside"), p = ee("AiChat"), h = ee("LanguageConfig"), g = ee("JsonPreview"), _ = ee("GlobalEventConfig"), S = ee("GlobalFetchConfig"), b = ee("GlobalClassConfig"), A = ee("GlobalVariableConfig"), y = ee("el-main"), m = ee("el-container"), w = ee("FormList"), E = ee("PageInput"), x = ee("el-header"), k = ee("fcDraggable"), R = ee("el-option"), M = ee("el-select"), P = ee("FieldList"), B = ee("el-dropdown-item"), T = ee("el-dropdown-menu"), D = ee("el-dropdown"), V = ee("el-tree"), W = ee("QuickLayout"), G = ee("PrintForm"), I = ee("el-button"), U = ee("el-popconfirm"), F = ee("el-switch"), C = ee("ViewForm"), q = ee("DragFormMobile"), Z = ee("DragForm"), Y = ee("ToolsBar"), ue = ee("Warning"), te = ee("TypeSelect"), pe = ee("el-input"), ke = ee("SubList"), ge = ee("ConfigTitle"), ve = ee("VariableConfig"), we = ee("PropsInput"), he = ee("SlotsConfig"), Se = ee("EventConfig"), xe = ee("el-tab-pane"), $ = ee("el-tabs"), K = ee("ViewFormMobile"), X = ee("el-dialog"), ie = ee("el-config-provider"); + return H(), me(m, { class: "_fc-designer", style: wn(e.height ? `height:${e.dragHeight};flex:initial;` : ""), onDragenter: e.handleDragenter, @@ -46060,22 +46070,22 @@ function V4(e, t, i, r, n, a) { onDrop: e.handleDrop }, { default: N(() => [ - W(se, { locale: e.elmLocale }, { + z(ie, { locale: e.elmLocale }, { default: N(() => [ - W(y, null, { + z(y, null, { default: N(() => [ - (H(), he(m, { + (H(), me(m, { style: { height: "100%" }, key: e.locale && e.locale.name }, { default: N(() => [ - e.getConfig("showMenuBar") !== !1 ? bn((H(), he(d, { + e.getConfig("showMenuBar") !== !1 ? bn((H(), me(d, { key: 0, class: "_fc-l-menu", width: "40px" }, { default: N(() => [ - e.formListRef && e.formListRef.length ? (H(), he(s, { + e.formListRef && e.formListRef.length ? (H(), me(s, { key: 0, effect: "dark", content: e.t("designer.formList"), @@ -46083,32 +46093,32 @@ function V4(e, t, i, r, n, a) { "hide-after": 0 }, { default: N(() => [ - X("div", { - class: Xe(["_fc-l-menu-item _fc-l-menu-form", { active: e.activeModule === "form" }]), - onClick: t[0] || (t[0] = (oe) => e.activeModule = "form") + J("div", { + class: qe(["_fc-l-menu-item _fc-l-menu-form", { active: e.activeModule === "form" }]), + onClick: t[0] || (t[0] = (re) => e.activeModule = "form") }, t[50] || (t[50] = [ - X("i", { class: "fc-icon icon-menu2" }, null, -1) + J("i", { class: "fc-icon icon-menu2" }, null, -1) ]), 2) ]), _: 1 - }, 8, ["content"])) : ke("", !0), - W(s, { + }, 8, ["content"])) : Te("", !0), + z(s, { effect: "dark", content: e.t("designer.comList"), placement: "right", "hide-after": 0 }, { default: N(() => [ - X("div", { - class: Xe(["_fc-l-menu-item", { active: e.activeModule === "base" }]), - onClick: t[1] || (t[1] = (oe) => e.activeModule = "base") + J("div", { + class: qe(["_fc-l-menu-item", { active: e.activeModule === "base" }]), + onClick: t[1] || (t[1] = (re) => e.activeModule = "base") }, t[51] || (t[51] = [ - X("i", { class: "fc-icon icon-menu" }, null, -1) + J("i", { class: "fc-icon icon-menu" }, null, -1) ]), 2) ]), _: 1 }, 8, ["content"]), - e.getConfig("showPageManage", !0) ? (H(), he(s, { + e.getConfig("showPageManage", !0) ? (H(), me(s, { key: 1, effect: "dark", content: e.t("designer.pageManage"), @@ -46116,40 +46126,40 @@ function V4(e, t, i, r, n, a) { "hide-after": 0 }, { default: N(() => [ - X("div", { - class: Xe(["_fc-l-menu-item", { active: e.activeModule === "page" }]), - onClick: t[2] || (t[2] = (oe) => e.activeModule = "page") + J("div", { + class: qe(["_fc-l-menu-item", { active: e.activeModule === "page" }]), + onClick: t[2] || (t[2] = (re) => e.activeModule = "page") }, [ - W(u, { + z(u, { value: e.pageCount, hidden: e.pageCount < 1 }, { default: N(() => t[52] || (t[52] = [ - X("i", { class: "fc-icon icon-page" }, null, -1) + J("i", { class: "fc-icon icon-page" }, null, -1) ])), _: 1 }, 8, ["value", "hidden"]) ], 2) ]), _: 1 - }, 8, ["content"])) : ke("", !0), - W(s, { + }, 8, ["content"])) : Te("", !0), + z(s, { effect: "dark", content: e.t("form.globalConfig"), placement: "right", "hide-after": 0 }, { default: N(() => [ - X("div", { - class: Xe(["_fc-l-menu-item", { active: e.activeModule === "global" }]), - onClick: t[3] || (t[3] = (oe) => e.activeModule = "global") + J("div", { + class: qe(["_fc-l-menu-item", { active: e.activeModule === "global" }]), + onClick: t[3] || (t[3] = (re) => e.activeModule = "global") }, t[53] || (t[53] = [ - X("i", { class: "fc-icon icon-data" }, null, -1) + J("i", { class: "fc-icon icon-data" }, null, -1) ]), 2) ]), _: 1 }, 8, ["content"]), - e.getConfig("showLanguage", !0) ? (H(), he(s, { + e.getConfig("showLanguage", !0) ? (H(), me(s, { key: 2, effect: "dark", content: e.t("language.name"), @@ -46157,16 +46167,16 @@ function V4(e, t, i, r, n, a) { "hide-after": 0 }, { default: N(() => [ - X("div", { - class: Xe(["_fc-l-menu-item", { active: e.activeModule === "language" }]), - onClick: t[4] || (t[4] = (oe) => e.activeModule = "language") + J("div", { + class: qe(["_fc-l-menu-item", { active: e.activeModule === "language" }]), + onClick: t[4] || (t[4] = (re) => e.activeModule = "language") }, t[54] || (t[54] = [ - X("i", { class: "fc-icon icon-language" }, null, -1) + J("i", { class: "fc-icon icon-language" }, null, -1) ]), 2) ]), _: 1 - }, 8, ["content"])) : ke("", !0), - e.getConfig("showJsonPreview", !0) ? (H(), he(s, { + }, 8, ["content"])) : Te("", !0), + e.getConfig("showJsonPreview", !0) ? (H(), me(s, { key: 3, effect: "dark", content: "JSON", @@ -46174,16 +46184,16 @@ function V4(e, t, i, r, n, a) { "hide-after": 0 }, { default: N(() => [ - X("div", { - class: Xe(["_fc-l-menu-item", { active: e.activeModule === "json" }]), - onClick: t[5] || (t[5] = (oe) => e.activeModule = "json") + J("div", { + class: qe(["_fc-l-menu-item", { active: e.activeModule === "json" }]), + onClick: t[5] || (t[5] = (re) => e.activeModule = "json") }, t[55] || (t[55] = [ - X("i", { class: "fc-icon icon-script" }, null, -1) + J("i", { class: "fc-icon icon-script" }, null, -1) ]), 2) ]), _: 1 - })) : ke("", !0), - e.getConfig("showAi", !0) ? (H(), he(s, { + })) : Te("", !0), + e.getConfig("showAi", !0) ? (H(), me(s, { key: 4, effect: "dark", content: e.t("ai.name"), @@ -46191,64 +46201,64 @@ function V4(e, t, i, r, n, a) { "hide-after": 0 }, { default: N(() => [ - X("div", { - class: Xe(["_fc-l-menu-item", { active: e.activeModule === "ai" }]), - onClick: t[6] || (t[6] = (oe) => e.activeModule = "ai") + J("div", { + class: qe(["_fc-l-menu-item", { active: e.activeModule === "ai" }]), + onClick: t[6] || (t[6] = (re) => e.activeModule = "ai") }, t[56] || (t[56] = [ - X("i", { class: "fc-icon icon-ai bright" }, null, -1) + J("i", { class: "fc-icon icon-ai bright" }, null, -1) ]), 2) ]), _: 1 - }, 8, ["content"])) : ke("", !0) + }, 8, ["content"])) : Te("", !0) ]), _: 1 }, 512)), [ [Sn, !e.hiddenLeft] - ]) : ke("", !0), - bn(W(d, { + ]) : Te("", !0), + bn(z(d, { class: "_fc-l", width: e.activeModule === "language" ? "450px" : "266px" }, { default: N(() => [ - X("div", { + J("div", { class: "_fc-l-close", - onClick: t[7] || (t[7] = (oe) => e.hiddenLeft = !0) + onClick: t[7] || (t[7] = (re) => e.hiddenLeft = !0) }, t[57] || (t[57] = [ - X("i", { class: "fc-icon icon-arrow" }, null, -1) + J("i", { class: "fc-icon icon-arrow" }, null, -1) ])), - e.activeModule === "ai" ? (H(), he(p, { key: 0 })) : ke("", !0), - e.activeModule === "language" ? (H(), he(h, { key: 1 })) : ke("", !0), - e.activeModule === "json" ? (H(), he(g, { key: 2 })) : ke("", !0), - bn(W(m, null, { + e.activeModule === "ai" ? (H(), me(p, { key: 0 })) : Te("", !0), + e.activeModule === "language" ? (H(), me(h, { key: 1 })) : Te("", !0), + e.activeModule === "json" ? (H(), me(g, { key: 2 })) : Te("", !0), + bn(z(m, null, { default: N(() => [ - W(y, null, { + z(y, null, { default: N(() => [ - X("div", Z8, le(e.t("form.globalConfig")), 1), - X("div", q8, le(e.t("warning.globalConfig")), 1), - X("div", e4, [ - X("div", t4, le(e.t("form.globalEvent")), 1), - W(_, { + J("div", Z8, le(e.t("form.globalConfig")), 1), + J("div", q8, le(e.t("warning.globalConfig")), 1), + J("div", e4, [ + J("div", t4, le(e.t("form.globalEvent")), 1), + z(_, { ref: "globalEvent", modelValue: e.formOptions.globalEvent, - "onUpdate:modelValue": t[8] || (t[8] = (oe) => e.formOptions.globalEvent = oe) + "onUpdate:modelValue": t[8] || (t[8] = (re) => e.formOptions.globalEvent = re) }, null, 8, ["modelValue"]), - X("div", n4, le(e.t("form.globalFetch")), 1), - W(S, { + J("div", n4, le(e.t("form.globalFetch")), 1), + z(S, { ref: "globalFetch", modelValue: e.formOptions.globalData, - "onUpdate:modelValue": t[9] || (t[9] = (oe) => e.formOptions.globalData = oe) + "onUpdate:modelValue": t[9] || (t[9] = (re) => e.formOptions.globalData = re) }, null, 8, ["modelValue"]), - X("div", i4, le(e.t("form.globalClass")), 1), - W(b, { + J("div", i4, le(e.t("form.globalClass")), 1), + z(b, { ref: "globalClass", modelValue: e.formOptions.globalClass, - "onUpdate:modelValue": t[10] || (t[10] = (oe) => e.formOptions.globalClass = oe) + "onUpdate:modelValue": t[10] || (t[10] = (re) => e.formOptions.globalClass = re) }, null, 8, ["modelValue"]), - X("div", r4, le(e.t("computed.variable.title")), 1), - W(A, { + J("div", r4, le(e.t("computed.variable.title")), 1), + z(A, { ref: "globalVariable", modelValue: e.formOptions.globalVariable, - "onUpdate:modelValue": t[11] || (t[11] = (oe) => e.formOptions.globalVariable = oe) + "onUpdate:modelValue": t[11] || (t[11] = (re) => e.formOptions.globalVariable = re) }, null, 8, ["modelValue"]) ]) ]), @@ -46259,14 +46269,14 @@ function V4(e, t, i, r, n, a) { }, 512), [ [Sn, e.activeModule === "global"] ]), - e.formListRef && e.formListRef.length ? bn((H(), he(m, { key: 3 }, { + e.formListRef && e.formListRef.length ? bn((H(), me(m, { key: 3 }, { default: N(() => [ - W(y, null, { + z(y, null, { default: N(() => [ - X("div", o4, le(e.t("designer.formList")), 1), - X("div", a4, le(e.t("warning.formList")), 1), + J("div", o4, le(e.t("designer.formList")), 1), + J("div", a4, le(e.t("warning.formList")), 1), kt(e.$slots, "form-list", {}, () => [ - W(w, { list: e.formListRef }, null, 8, ["list"]) + z(w, { list: e.formListRef }, null, 8, ["list"]) ]) ]), _: 3 @@ -46275,14 +46285,14 @@ function V4(e, t, i, r, n, a) { _: 3 }, 512)), [ [Sn, e.activeModule === "form"] - ]) : ke("", !0), - e.activeModule === "page" ? (H(), he(m, { key: 4 }, { + ]) : Te("", !0), + e.activeModule === "page" ? (H(), me(m, { key: 4 }, { default: N(() => [ - e.getConfig("showPageManage", !0) ? (H(), he(y, { key: 0 }, { + e.getConfig("showPageManage", !0) ? (H(), me(y, { key: 0 }, { default: N(() => [ - X("div", l4, le(e.t("designer.pageManage")), 1), - X("div", s4, le(e.t("warning.pageManage")), 1), - W(E, { + J("div", l4, le(e.t("designer.pageManage")), 1), + J("div", s4, le(e.t("warning.pageManage")), 1), + z(E, { onDelete: e.deletePage, onCopy: e.copyPage, onAdd: e.addPage, @@ -46290,109 +46300,109 @@ function V4(e, t, i, r, n, a) { }, null, 8, ["onDelete", "onCopy", "onAdd", "onChange"]) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ]), _: 1 - })) : ke("", !0), - e.activeModule === "base" ? (H(), he(m, { key: 5 }, { + })) : Te("", !0), + e.activeModule === "base" ? (H(), me(m, { key: 5 }, { default: N(() => [ - W(x, { + z(x, { height: "40px", class: "_fc-l-tabs" }, { default: N(() => [ - X("div", { - class: Xe(["_fc-l-tab", { active: e.activeMenuTab === "menu" }]), - onClick: t[12] || (t[12] = (oe) => e.activeMenuTab = "menu") + J("div", { + class: qe(["_fc-l-tab", { active: e.activeMenuTab === "menu" }]), + onClick: t[12] || (t[12] = (re) => e.activeMenuTab = "menu") }, le(e.t("menu.component")), 3), e.field && e.field.length > 0 ? (H(), ae("div", { key: 0, - class: Xe(["_fc-l-tab", { active: e.activeMenuTab === "field" }]), - onClick: t[13] || (t[13] = (oe) => e.activeMenuTab = "field") - }, le(e.t("props.field")), 3)) : ke("", !0), - X("div", { - class: Xe(["_fc-l-tab", { active: e.activeMenuTab === "tree" }]), - onClick: t[14] || (t[14] = (oe) => e.activeMenuTab = "tree") + class: qe(["_fc-l-tab", { active: e.activeMenuTab === "field" }]), + onClick: t[13] || (t[13] = (re) => e.activeMenuTab = "field") + }, le(e.t("props.field")), 3)) : Te("", !0), + J("div", { + class: qe(["_fc-l-tab", { active: e.activeMenuTab === "tree" }]), + onClick: t[14] || (t[14] = (re) => e.activeMenuTab = "tree") }, le(e.t("menu.tree")), 3) ]), _: 1 }), - bn(W(y, null, { + bn(z(y, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.menuList, (oe, _e) => (H(), ae(Me, { key: _e }, [ - (oe.name === "template" ? e.config.showTemplate !== !1 : !0) && e.hiddenMenu.indexOf(oe.name) === -1 ? (H(), ae("div", { + (H(!0), ae(Me, null, ze(e.menuList, (re, fe) => (H(), ae(Me, { key: fe }, [ + (re.name === "template" ? e.config.showTemplate !== !1 : !0) && e.hiddenMenu.indexOf(re.name) === -1 ? (H(), ae("div", { key: 0, - class: Xe(["_fc-l-group", { "is-template": oe.name === "template" }]) + class: qe(["_fc-l-group", { "is-template": re.name === "template" }]) }, [ - X("h4", { + J("h4", { class: "_fc-l-title", - onClick: (Ae) => oe.hidden = !oe.hidden + onClick: (Ae) => re.hidden = !re.hidden }, [ - be(le(e.t("menu." + oe.name) || oe.title) + " ", 1), - X("i", { - class: Xe(["fc-icon icon-arrow", { down: !oe.hidden }]) + be(le(e.t("menu." + re.name) || re.title) + " ", 1), + J("i", { + class: qe(["fc-icon icon-arrow", { down: !re.hidden }]) }, null, 2) ], 8, u4), - bn(W(k, { + bn(z(k, { group: { name: "default", pull: "clone", put: !1 }, sort: !1, itemKey: "name", class: "_fc-l-list", - list: oe.list + list: re.list }, { item: N(({ element: Ae }) => [ e.hiddenItem.indexOf(Ae.name) === -1 ? (H(), ae("div", { key: 0, - class: Xe(["_fc-l-item", { "is-inline": Ae.inline }]), - onClick: (Be) => e.clickMenu(Ae) + class: qe(["_fc-l-item", { "is-inline": Ae.inline }]), + onClick: (Fe) => e.clickMenu(Ae) }, [ - oe.name !== "template" ? (H(), ae(Me, { key: 0 }, [ - X("div", f4, [ - X("i", { - class: Xe(["fc-icon", Ae.icon || "icon-input"]) + re.name !== "template" ? (H(), ae(Me, { key: 0 }, [ + J("div", f4, [ + J("i", { + class: qe(["fc-icon", Ae.icon || "icon-input"]) }, null, 2) ]), - X("span", c4, le(e.t("com." + Ae.name + ".name") || Ae.label), 1) + J("span", c4, le(e.t("com." + Ae.name + ".name") || Ae.label), 1) ], 64)) : (H(), ae("span", p4, le(e.t("tmp." + Ae.name) || Ae.label), 1)) - ], 10, d4)) : ke("", !0) + ], 10, d4)) : Te("", !0) ]), _: 2 }, 1032, ["list"]), [ - [Sn, !oe.hidden] + [Sn, !re.hidden] ]) - ], 2)) : ke("", !0) + ], 2)) : Te("", !0) ], 64))), 128)) ]), _: 1 }, 512), [ [Sn, e.activeMenuTab === "menu"] ]), - e.activeMenuTab === "field" ? (H(), he(y, { key: 0 }, { + e.activeMenuTab === "field" ? (H(), me(y, { key: 0 }, { default: N(() => [ - W(M, { + z(M, { modelValue: e.datasetId, - "onUpdate:modelValue": t[15] || (t[15] = (oe) => e.datasetId = oe), + "onUpdate:modelValue": t[15] || (t[15] = (re) => e.datasetId = re), clearable: "", filterable: "", style: { width: "240px", margin: "12px" }, onChange: e.dsClick }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.datasetData, (oe) => (H(), he($, { - key: oe.table_id, - label: oe.group_name, - value: oe.table_id + (H(!0), ae(Me, null, ze(e.datasetData, (re) => (H(), me(R, { + key: re.table_id, + label: re.group_name, + value: re.table_id }, null, 8, ["label", "value"]))), 128)) ]), _: 1 }, 8, ["modelValue", "onChange"]), - W(P, { field: e.fieldData }, null, 8, ["field"]) + z(P, { field: e.fieldData }, null, 8, ["field"]) ]), _: 1 - })) : ke("", !0), - e.activeMenuTab === "tree" ? (H(), he(y, { key: 1 }, { + })) : Te("", !0), + e.activeMenuTab === "tree" ? (H(), me(y, { key: 1 }, { default: N(() => [ - W(V, { + z(V, { ref: "treeRef", class: "_fc-struct-tree", data: e.treeInfo, @@ -46401,55 +46411,55 @@ function V4(e, t, i, r, n, a) { indent: 10, onCurrentChange: e.treeChange }, { - default: N(({ node: oe, data: _e }) => [ - X("div", { - class: Xe(["_fc-tree-node", { active: e.activeRule === _e.rule }]) + default: N(({ node: re, data: fe }) => [ + J("div", { + class: qe(["_fc-tree-node", { active: e.activeRule === fe.rule }]) }, [ - X("div", h4, [ - X("i", { - class: Xe(["fc-icon", _e.rule._menu && _e.rule._menu.icon || "icon-cell"]) + J("div", h4, [ + J("i", { + class: qe(["fc-icon", fe.rule._menu && fe.rule._menu.icon || "icon-cell"]) }, null, 2), - X("span", null, le(e.getTitle(_e.rule)), 1) + J("span", null, le(e.getTitle(fe.rule)), 1) ]), - !_e.slot && !_e.rule._fc_page_tag ? (H(), ae("div", { + !fe.slot && !fe.rule._fc_page_tag ? (H(), ae("div", { key: 0, class: "_fc-tree-more", onClick: t[16] || (t[16] = vt(() => { }, ["stop"])) }, [ - X("i", { - class: Xe(["fc-icon", _e.rule._hidden === !0 ? "icon-eye-close" : "icon-eye"]), - onClick: (Ae) => e.toolHidden(_e.rule), + J("i", { + class: qe(["fc-icon", fe.rule._hidden === !0 ? "icon-eye-close" : "icon-eye"]), + onClick: (Ae) => e.toolHidden(fe.rule), style: { "margin-right": "8px" } }, null, 10, m4), - W(D, { + z(D, { trigger: "click", size: "default" }, { dropdown: N(() => [ - W(T, null, { + z(T, null, { default: N(() => [ - _e.rule._fc_drag_tag !== "_" ? (H(), he(B, { + fe.rule._fc_drag_tag !== "_" ? (H(), me(B, { key: "1", - onClick: (Ae) => e.toolHandle(_e.rule, "copy") + onClick: (Ae) => e.toolHandle(fe.rule, "copy") }, { default: N(() => [ be(le(e.t("props.copy")), 1) ]), _: 2 - }, 1032, ["onClick"])) : ke("", !0), - _e.rule._menu && _e.rule._menu.children && _e.rule._fc_drag_tag !== "_" ? (H(), he(B, { + }, 1032, ["onClick"])) : Te("", !0), + fe.rule._menu && fe.rule._menu.children && fe.rule._fc_drag_tag !== "_" ? (H(), me(B, { key: "2", - onClick: (Ae) => e.toolHandle(_e.rule, "addChild") + onClick: (Ae) => e.toolHandle(fe.rule, "addChild") }, { default: N(() => [ be(le(e.t("form.appendChild")), 1) ]), _: 2 - }, 1032, ["onClick"])) : ke("", !0), - W(B, { + }, 1032, ["onClick"])) : Te("", !0), + z(B, { key: "3", - onClick: (Ae) => e.toolHandle(_e.rule, "delete") + onClick: (Ae) => e.toolHandle(fe.rule, "delete") }, { default: N(() => [ be(le(e.t("props.delete")), 1) @@ -46461,54 +46471,54 @@ function V4(e, t, i, r, n, a) { }, 1024) ]), default: N(() => [ - t[58] || (t[58] = X("i", { class: "fc-icon icon-more" }, null, -1)) + t[58] || (t[58] = J("i", { class: "fc-icon icon-more" }, null, -1)) ]), _: 2 }, 1024) - ])) : ke("", !0) + ])) : Te("", !0) ], 2) ]), _: 1 }, 8, ["data", "onCurrentChange"]) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ]), _: 3 }, 8, ["width"]), [ [Sn, !e.hiddenLeft] ]), - W(m, { class: "_fc-m" }, { + z(m, { class: "_fc-m" }, { default: N(() => [ - W(x, { + z(x, { class: "_fc-m-tools", height: "40" }, { default: N(() => [ - X("div", v4, [ - e.inputForm.state ? ke("", !0) : (H(), ae(Me, { key: 0 }, [ + J("div", v4, [ + e.inputForm.state ? Te("", !0) : (H(), ae(Me, { key: 0 }, [ e.getConfig("showDevice") !== !1 ? (H(), ae(Me, { key: 0 }, [ - X("div", g4, [ - X("i", { - class: Xe(["fc-icon icon-pc", { active: e.device === "pc" }]), - onClick: t[17] || (t[17] = (oe) => e.setDevice("pc")) + J("div", g4, [ + J("i", { + class: qe(["fc-icon icon-pc", { active: e.device === "pc" }]), + onClick: t[17] || (t[17] = (re) => e.setDevice("pc")) }, null, 2), - X("i", { - class: Xe(["fc-icon icon-pad", { active: e.device === "pad" }]), - onClick: t[18] || (t[18] = (oe) => e.setDevice("pad")) + J("i", { + class: qe(["fc-icon icon-pad", { active: e.device === "pad" }]), + onClick: t[18] || (t[18] = (re) => e.setDevice("pad")) }, null, 2), - X("i", { - class: Xe(["fc-icon icon-mobile", { active: e.device === "mobile" }]), - onClick: t[19] || (t[19] = (oe) => e.setDevice("mobile")) + J("i", { + class: qe(["fc-icon icon-mobile", { active: e.device === "mobile" }]), + onClick: t[19] || (t[19] = (re) => e.setDevice("mobile")) }, null, 2) ]), - t[59] || (t[59] = X("div", { class: "line" }, null, -1)) - ], 64)) : ke("", !0), + t[59] || (t[59] = J("div", { class: "line" }, null, -1)) + ], 64)) : Te("", !0), e.toolsMenuStatus ? (H(), ae("div", y4, [ - e.getConfig("showGridLine") !== !1 ? (H(), he(s, { + e.getConfig("showGridLine") !== !1 ? (H(), me(s, { key: 0, effect: "dark", content: e.t("designer.gridLine"), @@ -46516,43 +46526,43 @@ function V4(e, t, i, r, n, a) { "hide-after": 0 }, { default: N(() => [ - X("i", { - class: Xe(["fc-icon icon-grid-line", { active: e.gridLine }]), - onClick: t[20] || (t[20] = (oe) => e.gridLine = !e.gridLine) + J("i", { + class: qe(["fc-icon icon-grid-line", { active: e.gridLine }]), + onClick: t[20] || (t[20] = (re) => e.gridLine = !e.gridLine) }, null, 2) ]), _: 1 - }, 8, ["content"])) : ke("", !0), - e.getConfig("showQuickLayout") !== !1 ? (H(), he(K, { key: 1 })) : ke("", !0), - e.getConfig("showPrintBtn") !== !1 ? (H(), he(G, { + }, 8, ["content"])) : Te("", !0), + e.getConfig("showQuickLayout") !== !1 ? (H(), me(W, { key: 1 })) : Te("", !0), + e.getConfig("showPrintBtn") !== !1 ? (H(), me(G, { key: 2, ref: "print" }, Qn({ _: 2 }, [ - We(e.$slots, (oe, _e) => ({ - name: _e, + ze(e.$slots, (re, fe) => ({ + name: fe, fn: N((Ae) => [ - kt(e.$slots, _e, Sr(Er(Ae != null ? Ae : {}))) + kt(e.$slots, fe, Sr(Er(Ae != null ? Ae : {}))) ]) })) - ]), 1536)) : ke("", !0) - ])) : ke("", !0), - e.toolsMenuStatus ? (H(), ae("div", b4)) : ke("", !0), - X("div", null, [ - X("i", { - class: Xe(["fc-icon icon-pre-step", { disabled: !e.operation.list[e.operation.idx - 1] }]), - onClick: t[21] || (t[21] = (...oe) => e.prevOperationRecord && e.prevOperationRecord(...oe)) + ]), 1536)) : Te("", !0) + ])) : Te("", !0), + e.toolsMenuStatus ? (H(), ae("div", b4)) : Te("", !0), + J("div", null, [ + J("i", { + class: qe(["fc-icon icon-pre-step", { disabled: !e.operation.list[e.operation.idx - 1] }]), + onClick: t[21] || (t[21] = (...re) => e.prevOperationRecord && e.prevOperationRecord(...re)) }, null, 2), - X("i", { - class: Xe(["fc-icon icon-next-step", { disabled: !e.operation.list[e.operation.idx + 1] }]), - onClick: t[22] || (t[22] = (...oe) => e.nextOperationRecord && e.nextOperationRecord(...oe)) + J("i", { + class: qe(["fc-icon icon-next-step", { disabled: !e.operation.list[e.operation.idx + 1] }]), + onClick: t[22] || (t[22] = (...re) => e.nextOperationRecord && e.nextOperationRecord(...re)) }, null, 2) ]) ], 64)) ]), - X("div", _4, [ - e.inputForm.state ? ke("", !0) : (H(), ae(Me, { key: 0 }, [ + J("div", _4, [ + e.inputForm.state ? Te("", !0) : (H(), ae(Me, { key: 0 }, [ kt(e.$slots, "handle"), - e.getConfig("showSaveBtn", !1) ? (H(), he(R, { + e.getConfig("showSaveBtn", !1) ? (H(), me(I, { key: 0, type: "success", plain: "", @@ -46560,12 +46570,12 @@ function V4(e, t, i, r, n, a) { onClick: e.handleSave }, { default: N(() => [ - t[60] || (t[60] = X("i", { class: "fc-icon icon-save" }, null, -1)), + t[60] || (t[60] = J("i", { class: "fc-icon icon-save" }, null, -1)), be(" " + le(e.t("props.save")), 1) ]), _: 1 - }, 8, ["onClick"])) : ke("", !0), - e.getConfig("showPreviewBtn") !== !1 ? (H(), he(R, { + }, 8, ["onClick"])) : Te("", !0), + e.getConfig("showPreviewBtn") !== !1 ? (H(), me(I, { key: 1, type: "primary", plain: "", @@ -46573,12 +46583,12 @@ function V4(e, t, i, r, n, a) { onClick: e.openPreview }, { default: N(() => [ - t[61] || (t[61] = X("i", { class: "fc-icon icon-preview" }, null, -1)), + t[61] || (t[61] = J("i", { class: "fc-icon icon-preview" }, null, -1)), be(" " + le(e.t("props.preview")), 1) ]), _: 1 - }, 8, ["onClick"])) : ke("", !0), - W(z, { + }, 8, ["onClick"])) : Te("", !0), + z(U, { title: e.t("designer.clearWarn"), width: "200px", "confirm-button-text": e.t("props.clear"), @@ -46586,13 +46596,13 @@ function V4(e, t, i, r, n, a) { onConfirm: e.clearDragRule }, { reference: N(() => [ - W(R, { + z(I, { type: "danger", plain: "", size: "small" }, { default: N(() => [ - t[62] || (t[62] = X("i", { class: "fc-icon icon-delete" }, null, -1)), + t[62] || (t[62] = J("i", { class: "fc-icon icon-delete" }, null, -1)), be(le(e.t("props.clear")), 1) ]), _: 1 @@ -46600,19 +46610,19 @@ function V4(e, t, i, r, n, a) { ]), _: 1 }, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"]), - e.handle && e.handle.length ? (H(), he(D, { + e.handle && e.handle.length ? (H(), me(D, { key: 2, trigger: "click", size: "default" }, { dropdown: N(() => [ - W(T, null, { + z(T, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.handle, (oe) => (H(), he(B, { - onClick: vt((_e) => e.triggerHandle(oe), ["stop"]) + (H(!0), ae(Me, null, ze(e.handle, (re) => (H(), me(B, { + onClick: vt((fe) => e.triggerHandle(re), ["stop"]) }, { default: N(() => [ - X("div", null, le(oe.label), 1) + J("div", null, le(re.label), 1) ]), _: 2 }, 1032, ["onClick"]))), 256)) @@ -46621,182 +46631,182 @@ function V4(e, t, i, r, n, a) { }) ]), default: N(() => [ - W(R, { + z(I, { class: "_fd-m-extend", plain: "", size: "small" }, { default: N(() => t[63] || (t[63] = [ - X("i", { class: "fc-icon icon-more" }, null, -1) + J("i", { class: "fc-icon icon-more" }, null, -1) ])), _: 1 }) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ], 64)), e.getConfig("showInputData", !0) ? (H(), ae(Me, { key: 1 }, [ - t[64] || (t[64] = X("div", { class: "line" }, null, -1)), - X("div", w4, [ - e.inputCheckStatus ? (H(), ae("i", A4)) : ke("", !0), - X("span", null, le(e.t("props.inputData")) + "\uFF1A", 1), - W(C, { + t[64] || (t[64] = J("div", { class: "line" }, null, -1)), + J("div", w4, [ + e.inputCheckStatus ? (H(), ae("i", A4)) : Te("", !0), + J("span", null, le(e.t("props.inputData")) + "\uFF1A", 1), + z(F, { size: "small", "model-value": e.inputForm.state, "inline-prompt": "", "onUpdate:modelValue": e.openInputData }, null, 8, ["model-value", "onUpdate:modelValue"]) ]) - ], 64)) : ke("", !0) + ], 64)) : Te("", !0) ]) ]), _: 3 }), - W(y, { class: "_fc-m-con" }, { + z(y, { class: "_fc-m-con" }, { default: N(() => [ - X("div", { - class: Xe(["_fc-m-drag", { [e.device]: !0, "_fc-grid-line": e.gridLine }]), + J("div", { + class: qe(["_fc-m-drag", { [e.device]: !0, "_fc-grid-line": e.gridLine }]), ref: "dragCon", style: wn({ "--fc-drag-empty": `'${e.t("designer.dragEmpty")}'`, "--fc-child-empty": `'${e.t("designer.childEmpty")}'` }) }, [ e.inputForm.state ? (H(), ae("div", C4, [ - (H(), he(F, { + (H(), me(C, { key: e.inputForm.key, rule: e.inputForm.rule, option: e.inputForm.option, api: e.inputForm.api, - "onUpdate:api": t[23] || (t[23] = (oe) => e.inputForm.api = oe), + "onUpdate:api": t[23] || (t[23] = (re) => e.inputForm.api = re), disabled: !1 }, Qn({ _: 2 }, [ - We(e.$slots, (oe, _e) => ({ - name: _e, + ze(e.$slots, (re, fe) => ({ + name: fe, fn: N((Ae) => [ - kt(e.$slots, _e, Sr(Er(Ae != null ? Ae : {}))) + kt(e.$slots, fe, Sr(Er(Ae != null ? Ae : {}))) ]) })) ]), 1032, ["rule", "option", "api"])) - ])) : e.device === "mobile" && !e.onlyPC ? (H(), he(q, { + ])) : e.device === "mobile" && !e.onlyPC ? (H(), me(q, { key: 1, driver: "elm", rule: e.dragForm.rule, option: e.formOptions, api: e.dragForm.api, - "onUpdate:api": t[24] || (t[24] = (oe) => e.dragForm.api = oe) + "onUpdate:api": t[24] || (t[24] = (re) => e.dragForm.api = re) }, Qn({ _: 2 }, [ - We(e.$slots, (oe, _e) => ({ - name: _e, + ze(e.$slots, (re, fe) => ({ + name: fe, fn: N((Ae) => [ - kt(e.$slots, _e, Sr(Er(Ae != null ? Ae : {}))) + kt(e.$slots, fe, Sr(Er(Ae != null ? Ae : {}))) ]) })) - ]), 1032, ["rule", "option", "api"])) : (H(), he(Z, { + ]), 1032, ["rule", "option", "api"])) : (H(), me(Z, { key: 2, rule: e.dragForm.rule, option: e.formOptions, api: e.dragForm.api, - "onUpdate:api": t[25] || (t[25] = (oe) => e.dragForm.api = oe) + "onUpdate:api": t[25] || (t[25] = (re) => e.dragForm.api = re) }, Qn({ _: 2 }, [ - We(e.$slots, (oe, _e) => ({ - name: _e, + ze(e.$slots, (re, fe) => ({ + name: fe, fn: N((Ae) => [ - kt(e.$slots, _e, Sr(Er(Ae != null ? Ae : {}))) + kt(e.$slots, fe, Sr(Er(Ae != null ? Ae : {}))) ]) })) ]), 1032, ["rule", "option", "api"])) ], 6), e.inputForm.state ? (H(), ae("div", S4, [ - W(R, { + z(I, { plain: "", - onClick: t[26] || (t[26] = (oe) => e.inputClear()) + onClick: t[26] || (t[26] = (re) => e.inputClear()) }, { default: N(() => [ be(le(e.t("props.clear")), 1) ]), _: 1 }), - W(R, { + z(I, { plain: "", - onClick: t[27] || (t[27] = (oe) => e.inputReset()) + onClick: t[27] || (t[27] = (re) => e.inputReset()) }, { default: N(() => [ be(le(e.t("props.reset")), 1) ]), _: 1 }), - W(R, { + z(I, { type: "primary", plain: "", - onClick: t[28] || (t[28] = (oe) => e.inputSave()) + onClick: t[28] || (t[28] = (re) => e.inputSave()) }, { default: N(() => [ be(le(e.t("props.save")), 1) ]), _: 1 }) - ])) : ke("", !0) + ])) : Te("", !0) ]), _: 3 }) ]), _: 3 }), - !e.config || e.config.showConfig !== !1 ? bn((H(), he(d, { + !e.config || e.config.showConfig !== !1 ? bn((H(), me(d, { key: 1, class: "_fc-r", width: "320px" }, { default: N(() => [ - X("div", { + J("div", { class: "_fc-r-close", - onClick: t[29] || (t[29] = (oe) => e.hiddenRight = !0) + onClick: t[29] || (t[29] = (re) => e.hiddenRight = !0) }, t[65] || (t[65] = [ - X("i", { class: "fc-icon icon-arrow" }, null, -1) + J("i", { class: "fc-icon icon-arrow" }, null, -1) ])), - W(m, { style: { height: "100%" } }, { + z(m, { style: { height: "100%" } }, { default: N(() => [ - W(x, { + z(x, { height: "auto", class: "_fc-r-tabs" }, { default: N(() => [ !!e.activeRule || e.customForm.isShow || e.config && e.config.showFormConfig === !1 ? (H(), ae("div", { key: 0, - class: Xe(["_fc-r-tab", { active: e.activeTab === "props" }]), - onClick: t[30] || (t[30] = (oe) => e.activeTab = "props") - }, le(e.t("designer.component")), 3)) : ke("", !0), + class: qe(["_fc-r-tab", { active: e.activeTab === "props" }]), + onClick: t[30] || (t[30] = (re) => e.activeTab = "props") + }, le(e.t("designer.component")), 3)) : Te("", !0), !e.config || e.config.showFormConfig !== !1 ? (H(), ae("div", { key: 1, - class: Xe(["_fc-r-tab", { active: e.activeTab === "form" }]), - onClick: t[31] || (t[31] = (oe) => e.activeTab = "form") - }, le(e.t("designer.form")), 3)) : ke("", !0), - e.activeTab === "props" ? (H(), he(Y, { key: 2 })) : ke("", !0) + class: qe(["_fc-r-tab", { active: e.activeTab === "form" }]), + onClick: t[31] || (t[31] = (re) => e.activeTab = "form") + }, le(e.t("designer.form")), 3)) : Te("", !0), + e.activeTab === "props" ? (H(), me(Y, { key: 2 })) : Te("", !0) ]), _: 1 }), - !e.config || e.config.showFormConfig !== !1 ? bn((H(), he(y, { + !e.config || e.config.showFormConfig !== !1 ? bn((H(), me(y, { key: 0, class: "_fc-r-tab-form" }, { default: N(() => [ - W(Z, { + z(Z, { rule: e.form.rule, option: e.form.option, modelValue: e.form.value, onChange: e.formOptChange, api: e.form.api, - "onUpdate:api": t[32] || (t[32] = (oe) => e.form.api = oe) + "onUpdate:api": t[32] || (t[32] = (re) => e.form.api = re) }, { - title: N((oe) => [ - oe.rule.warning ? (H(), he(J, { + title: N((re) => [ + re.rule.warning ? (H(), me(ue, { key: 0, - tooltip: oe.rule.warning + tooltip: re.rule.warning }, { default: N(() => [ - be(le(oe.rule.title), 1) + be(le(re.rule.title), 1) ]), _: 2 }, 1032, ["tooltip"])) : (H(), ae(Me, { key: 1 }, [ - be(le(oe.rule.title), 1) + be(le(re.rule.title), 1) ], 64)) ]), _: 1 @@ -46805,20 +46815,20 @@ function V4(e, t, i, r, n, a) { _: 1 }, 512)), [ [Sn, e.activeTab === "form"] - ]) : ke("", !0), - bn((H(), he(y, { + ]) : Te("", !0), + bn((H(), me(y, { class: "_fc-r-tab-props", key: e.activeRule ? e.activeRule._fc_id : e.customForm.config ? e.customForm.key : "" }, { default: N(() => { - var oe; + var re; return [ e.activeRule || e.customForm.config && (e.customForm.config.name || e.customForm.config.label) ? (H(), ae(Me, { key: 0 }, [ - X("p", E4, le(e.t("designer.type")), 1), - W(ve), + J("p", E4, le(e.t("designer.type")), 1), + z(te), e.activeRule && e.activeRule.name && e.config.showComponentName !== !1 ? (H(), ae(Me, { key: 0 }, [ - X("p", x4, [ - W(J, { + J("p", x4, [ + z(ue, { tooltip: e.t("warning.name") }, { default: N(() => [ @@ -46827,35 +46837,35 @@ function V4(e, t, i, r, n, a) { _: 1 }, 8, ["tooltip"]) ]), - W(pe, { + z(pe, { size: "small", class: "_fc-r-name-input", "model-value": e.activeRule.name, readonly: "" }, { suffix: N(() => [ - X("i", { + J("i", { class: "fc-icon icon-group", - onClick: t[33] || (t[33] = (..._e) => e.copyName && e.copyName(..._e)) + onClick: t[33] || (t[33] = (...fe) => e.copyName && e.copyName(...fe)) }) ]), append: N(() => [ - X("i", { + J("i", { class: "fc-icon icon-auto", - onClick: t[34] || (t[34] = (..._e) => e.updateName && e.updateName(..._e)) + onClick: t[34] || (t[34] = (...fe) => e.updateName && e.updateName(...fe)) }) ]), _: 1 }, 8, ["model-value"]) - ], 64)) : ke("", !0) - ], 64)) : ke("", !0), - e.activeRuleChildren ? (H(), he(Te, { key: 1 })) : ke("", !0), - X("div", { + ], 64)) : Te("", !0) + ], 64)) : Te("", !0), + e.activeRuleChildren ? (H(), me(ke, { key: 1 })) : Te("", !0), + J("div", { class: "_fc-r-config", style: wn({ "grid-template-areas": e.configFormOrderStyle }) }, [ - X("div", T4, [ - e.baseForm.isShow ? (H(), he(ge, { + J("div", T4, [ + e.baseForm.isShow ? (H(), me(ge, { key: 0, id: "_fd-config-base" }, { @@ -46863,26 +46873,26 @@ function V4(e, t, i, r, n, a) { be(le(e.t("designer.rule")), 1) ]), _: 1 - })) : ke("", !0), - bn(W(Z, { + })) : Te("", !0), + bn(z(Z, { api: e.baseForm.api, - "onUpdate:api": t[35] || (t[35] = (_e) => e.baseForm.api = _e), + "onUpdate:api": t[35] || (t[35] = (fe) => e.baseForm.api = fe), rule: e.baseForm.rule, option: e.baseForm.options, modelValue: e.baseForm.value, onChange: e.baseChange }, { - title: N((_e) => [ - _e.rule.warning ? (H(), he(J, { + title: N((fe) => [ + fe.rule.warning ? (H(), me(ue, { key: 0, - tooltip: _e.rule.warning + tooltip: fe.rule.warning }, { default: N(() => [ - be(le(_e.rule.title), 1) + be(le(fe.rule.title), 1) ]), _: 2 }, 1032, ["tooltip"])) : (H(), ae(Me, { key: 1 }, [ - be(le(_e.rule.title), 1) + be(le(fe.rule.title), 1) ], 64)) ]), _: 1 @@ -46890,8 +46900,8 @@ function V4(e, t, i, r, n, a) { [Sn, e.baseForm.isShow] ]) ]), - X("div", k4, [ - e.advancedForm.isShow ? (H(), he(ge, { + J("div", k4, [ + e.advancedForm.isShow ? (H(), me(ge, { key: 0, id: "_fd-config-advanced" }, { @@ -46899,10 +46909,10 @@ function V4(e, t, i, r, n, a) { be(le(e.t("designer.advanced")), 1) ]), _: 1 - })) : ke("", !0), - bn(W(Z, { + })) : Te("", !0), + bn(z(Z, { api: e.advancedForm.api, - "onUpdate:api": t[36] || (t[36] = (_e) => e.advancedForm.api = _e), + "onUpdate:api": t[36] || (t[36] = (fe) => e.advancedForm.api = fe), rule: e.advancedForm.rule, option: e.advancedForm.options, modelValue: e.advancedForm.value, @@ -46911,45 +46921,45 @@ function V4(e, t, i, r, n, a) { [Sn, e.advancedForm.isShow] ]) ]), - X("div", O4, [ - e.propsForm.isShow ? (H(), he(ge, { + J("div", O4, [ + e.propsForm.isShow ? (H(), me(ge, { key: 0, id: "_fd-config-props" }, { default: N(() => [ be(le(e.t("designer.props")) + " ", 1), - e.propsForm.variable ? (H(), he(me, { key: 0 })) : ke("", !0), - e.activeRule && e.getConfig("showCustomProps", !0) ? (H(), he(we, { key: 1 })) : ke("", !0) + e.propsForm.variable ? (H(), me(ve, { key: 0 })) : Te("", !0), + e.activeRule && e.getConfig("showCustomProps", !0) ? (H(), me(we, { key: 1 })) : Te("", !0) ]), _: 1 - })) : ke("", !0), - bn(W(Z, { + })) : Te("", !0), + bn(z(Z, { api: e.propsForm.api, - "onUpdate:api": t[37] || (t[37] = (_e) => e.propsForm.api = _e), + "onUpdate:api": t[37] || (t[37] = (fe) => e.propsForm.api = fe), rule: e.propsForm.rule, option: e.propsForm.options, modelValue: e.propsForm.value, onChange: e.propChange, onRemoveField: e.propRemoveField }, { - title: N((_e) => [ - _e.rule.warning ? (H(), he(J, { + title: N((fe) => [ + fe.rule.warning ? (H(), me(ue, { key: 0, - tooltip: _e.rule.warning + tooltip: fe.rule.warning }, { default: N(() => [ - be(le(_e.rule.title), 1) + be(le(fe.rule.title), 1) ]), _: 2 }, 1032, ["tooltip"])) : (H(), ae(Me, { key: 1 }, [ - be(le(_e.rule.title), 1) + be(le(fe.rule.title), 1) ], 64)) ]), _: 1 }, 8, ["api", "rule", "option", "modelValue", "onChange", "onRemoveField"]), [ [Sn, e.propsForm.isShow] ]), - e.customForm.isShow && e.customForm.propsShow ? (H(), he(ge, { + e.customForm.isShow && e.customForm.propsShow ? (H(), me(ge, { key: 1, id: "_fd-config-props" }, { @@ -46957,29 +46967,29 @@ function V4(e, t, i, r, n, a) { be(le(e.t("designer.props")), 1) ]), _: 1 - })) : ke("", !0), - e.customForm.isShow && e.customForm.propsShow ? (H(), he(Z, { + })) : Te("", !0), + e.customForm.isShow && e.customForm.propsShow ? (H(), me(Z, { api: e.customForm.api, - "onUpdate:api": t[38] || (t[38] = (_e) => e.customForm.api = _e), + "onUpdate:api": t[38] || (t[38] = (fe) => e.customForm.api = fe), rule: e.customForm.rule, option: e.customForm.options, key: e.customForm.key, onChange: e.customFormChange - }, null, 8, ["api", "rule", "option", "onChange"])) : ke("", !0) + }, null, 8, ["api", "rule", "option", "onChange"])) : Te("", !0) ]), - X("div", $4, [ - e.activeRule && ((oe = e.config) == null ? void 0 : oe.showSlotsConfig) !== !1 && e.activeRule._menu.easySlots && e.activeRule._menu.easySlots.length ? (H(), ae(Me, { key: 0 }, [ - W(ge, { id: "_fd-config-slots" }, { + J("div", $4, [ + e.activeRule && ((re = e.config) == null ? void 0 : re.showSlotsConfig) !== !1 && e.activeRule._menu.easySlots && e.activeRule._menu.easySlots.length ? (H(), ae(Me, { key: 0 }, [ + z(ge, { id: "_fd-config-slots" }, { default: N(() => [ be(le(e.t("designer.slots")), 1) ]), _: 1 }), - W(ce) - ], 64)) : ke("", !0) + z(he) + ], 64)) : Te("", !0) ]), - X("div", R4, [ - e.styleForm.isShow ? (H(), he(ge, { + J("div", R4, [ + e.styleForm.isShow ? (H(), me(ge, { key: 0, id: "_fd-config-style" }, { @@ -46987,20 +46997,20 @@ function V4(e, t, i, r, n, a) { be(le(e.t("designer.style")), 1) ]), _: 1 - })) : ke("", !0), - bn(W(Z, { + })) : Te("", !0), + bn(z(Z, { rule: e.styleForm.rule, option: e.styleForm.options, modelValue: e.styleForm.value, onChange: e.styleChange, api: e.styleForm.api, - "onUpdate:api": t[39] || (t[39] = (_e) => e.styleForm.api = _e) + "onUpdate:api": t[39] || (t[39] = (fe) => e.styleForm.api = fe) }, null, 8, ["rule", "option", "modelValue", "onChange", "api"]), [ [Sn, e.styleForm.isShow] ]) ]), - X("div", D4, [ - e.eventShow ? (H(), he(ge, { + J("div", D4, [ + e.eventShow ? (H(), me(ge, { key: 0, id: "_fd-config-event" }, { @@ -47008,18 +47018,18 @@ function V4(e, t, i, r, n, a) { be(le(e.t("designer.event")), 1) ]), _: 1 - })) : ke("", !0), - e.eventShow ? (H(), he(Se, { + })) : Te("", !0), + e.eventShow ? (H(), me(Se, { key: 1, "event-name": e.activeRule && e.activeRule._menu.event || [], "component-name": e.activeRule && e.activeRule._menu.name || "", "model-value": e.activeRule && e.activeRule._on || {}, "onUpdate:modelValue": e.changeEvent - }, null, 8, ["event-name", "component-name", "model-value", "onUpdate:modelValue"])) : ke("", !0) + }, null, 8, ["event-name", "component-name", "model-value", "onUpdate:modelValue"])) : Te("", !0) ]), - X("div", I4, [ + J("div", I4, [ e.activeRule ? (H(), ae(Me, { key: 0 }, [ - e.validateForm.isShow ? (H(), he(ge, { + e.validateForm.isShow ? (H(), me(ge, { key: 0, id: "_fd-config-validate" }, { @@ -47027,17 +47037,17 @@ function V4(e, t, i, r, n, a) { be(le(e.t("designer.validate")), 1) ]), _: 1 - })) : ke("", !0), - e.validateForm.isShow ? (H(), he(Z, { + })) : Te("", !0), + e.validateForm.isShow ? (H(), me(Z, { api: e.validateForm.api, - "onUpdate:api": t[40] || (t[40] = (_e) => e.validateForm.api = _e), + "onUpdate:api": t[40] || (t[40] = (fe) => e.validateForm.api = fe), rule: e.validateForm.rule, option: e.validateForm.options, modelValue: e.validateForm.value, onChange: e.validateChange, key: e.activeRule._fc_id - }, null, 8, ["api", "rule", "option", "modelValue", "onChange"])) : ke("", !0) - ], 64)) : ke("", !0) + }, null, 8, ["api", "rule", "option", "modelValue", "onChange"])) : Te("", !0) + ], 64)) : Te("", !0) ]) ], 4) ]; @@ -47053,82 +47063,82 @@ function V4(e, t, i, r, n, a) { _: 1 }, 512)), [ [Sn, !e.hiddenRight] - ]) : ke("", !0), + ]) : Te("", !0), e.hiddenLeft ? (H(), ae("div", { key: 2, class: "_fc-l-open", - onClick: t[41] || (t[41] = (oe) => e.hiddenLeft = !1) + onClick: t[41] || (t[41] = (re) => e.hiddenLeft = !1) }, t[66] || (t[66] = [ - X("i", { class: "fc-icon icon-arrow" }, null, -1) - ]))) : ke("", !0), + J("i", { class: "fc-icon icon-arrow" }, null, -1) + ]))) : Te("", !0), e.hiddenRight ? (H(), ae("div", { key: 3, class: "_fc-r-open", - onClick: t[42] || (t[42] = (oe) => e.hiddenRight = !1) + onClick: t[42] || (t[42] = (re) => e.hiddenRight = !1) }, t[67] || (t[67] = [ - X("i", { class: "fc-icon icon-arrow" }, null, -1) - ]))) : ke("", !0), - W(te, { + J("i", { class: "fc-icon icon-arrow" }, null, -1) + ]))) : Te("", !0), + z(X, { modelValue: e.preview.state, - "onUpdate:modelValue": t[49] || (t[49] = (oe) => e.preview.state = oe), + "onUpdate:modelValue": t[49] || (t[49] = (re) => e.preview.state = re), width: "80%", class: "_fd-preview-dialog", "append-to-body": "" }, { default: N(() => [ - W(j, { + z($, { class: "_fd-preview-tabs", modelValue: e.previewStatus, - "onUpdate:modelValue": t[43] || (t[43] = (oe) => e.previewStatus = oe) + "onUpdate:modelValue": t[43] || (t[43] = (re) => e.previewStatus = re) }, { default: N(() => [ - W(I, { + z(xe, { label: e.t("form.formMode"), name: "form" }, null, 8, ["label"]), - W(I, { + z(xe, { label: e.t("form.previewMode"), name: "preview" }, null, 8, ["label"]), - W(I, { + z(xe, { label: e.t("form.componentMode"), name: "component" }, null, 8, ["label"]), - e.previewDevice !== "mobile" ? (H(), he(I, { + e.previewDevice !== "mobile" ? (H(), me(xe, { key: 0, label: e.t("form.sfcMode"), name: "sfc" - }, null, 8, ["label"])) : ke("", !0) + }, null, 8, ["label"])) : Te("", !0) ]), _: 1 }, 8, ["modelValue"]), e.previewStatus !== "sfc" && !e.onlyPC ? (H(), ae("div", F4, [ - X("div", { - class: Xe({ active: e.previewDevice === "pc" }), - onClick: t[44] || (t[44] = (oe) => e.previewDevice = "pc") + J("div", { + class: qe({ active: e.previewDevice === "pc" }), + onClick: t[44] || (t[44] = (re) => e.previewDevice = "pc") }, [ - t[68] || (t[68] = X("i", { class: "fc-icon icon-pc2" }, null, -1)), + t[68] || (t[68] = J("i", { class: "fc-icon icon-pc2" }, null, -1)), be(le(e.t("props.pc")), 1) ], 2), - X("div", { - class: Xe({ active: e.previewDevice === "mobile" }), - onClick: t[45] || (t[45] = (oe) => e.previewDevice = "mobile") + J("div", { + class: qe({ active: e.previewDevice === "mobile" }), + onClick: t[45] || (t[45] = (re) => e.previewDevice = "mobile") }, [ - t[69] || (t[69] = X("i", { class: "fc-icon icon-mobile2" }, null, -1)), + t[69] || (t[69] = J("i", { class: "fc-icon icon-mobile2" }, null, -1)), be(le(e.t("props.mobile")), 1) ], 2) - ])) : ke("", !0), + ])) : Te("", !0), ["component", "sfc"].indexOf(e.previewStatus) > -1 ? (H(), ae("div", { key: 1, class: "_fd-preview-copy", - onClick: t[46] || (t[46] = (...oe) => e.copyCode && e.copyCode(...oe)) + onClick: t[46] || (t[46] = (...re) => e.copyCode && e.copyCode(...re)) }, t[70] || (t[70] = [ - X("i", { class: "fc-icon icon-copy" }, null, -1) - ]))) : ke("", !0), + J("i", { class: "fc-icon icon-copy" }, null, -1) + ]))) : Te("", !0), e.previewStatus === "form" || e.previewStatus === "preview" ? (H(), ae(Me, { key: 2 }, [ e.previewDevice === "mobile" ? (H(), ae("div", P4, [ - X("div", null, [ - e.preview.state ? (H(), he(ee, { + J("div", null, [ + e.preview.state ? (H(), me(K, { key: 0, driver: "elm", rule: e.preview.rule, @@ -47136,40 +47146,40 @@ function V4(e, t, i, r, n, a) { onSubmit: e.previewSubmit, onReset: e.previewReset, api: e.preview.api, - "onUpdate:api": t[47] || (t[47] = (oe) => e.preview.api = oe) + "onUpdate:api": t[47] || (t[47] = (re) => e.preview.api = re) }, Qn({ _: 2 }, [ - We(e.$slots, (oe, _e) => ({ - name: _e, + ze(e.$slots, (re, fe) => ({ + name: fe, fn: N((Ae) => [ - kt(e.$slots, _e, Sr(Er(Ae != null ? Ae : {}))) + kt(e.$slots, fe, Sr(Er(Ae != null ? Ae : {}))) ]) })) - ]), 1032, ["rule", "option", "onSubmit", "onReset", "api"])) : ke("", !0) + ]), 1032, ["rule", "option", "onSubmit", "onReset", "api"])) : Te("", !0) ]) ])) : (H(), ae(Me, { key: 1 }, [ - e.preview.state ? (H(), he(F, { + e.preview.state ? (H(), me(C, { key: 0, rule: e.preview.rule, option: e.preview.option, onSubmit: e.previewSubmit, onReset: e.previewReset, api: e.preview.api, - "onUpdate:api": t[48] || (t[48] = (oe) => e.preview.api = oe) + "onUpdate:api": t[48] || (t[48] = (re) => e.preview.api = re) }, Qn({ _: 2 }, [ - We(e.$slots, (oe, _e) => ({ - name: _e, + ze(e.$slots, (re, fe) => ({ + name: fe, fn: N((Ae) => [ - kt(e.$slots, _e, Sr(Er(Ae != null ? Ae : {}))) + kt(e.$slots, fe, Sr(Er(Ae != null ? Ae : {}))) ]) })) - ]), 1032, ["rule", "option", "onSubmit", "onReset", "api"])) : ke("", !0) + ]), 1032, ["rule", "option", "onSubmit", "onReset", "api"])) : Te("", !0) ], 64)) ], 64)) : e.previewStatus === "component" ? (H(), ae("pre", M4, [ - X("code", { + J("code", { innerHTML: e.previewDevice === "mobile" ? e.preview.mobileHtml : e.preview.html }, null, 8, L4) ], 512)) : (H(), ae("pre", N4, [ - X("code", { + J("code", { innerHTML: e.preview.sfc }, null, 8, B4) ], 512)) @@ -47189,8 +47199,8 @@ function V4(e, t, i, r, n, a) { _: 3 }, 8, ["style", "onDragenter", "onDragleave", "onDrop"]); } -const an = /* @__PURE__ */ je(X8, [["render", V4]]); -const j4 = Ve({ +const an = /* @__PURE__ */ Ve(X8, [["render", V4]]); +const j4 = Be({ name: "DragTool", emits: ["create", "copy", "addChild", "delete", "active", "action", "fc.el"], props: { @@ -47268,27 +47278,27 @@ const j4 = Ve({ class: "_fd-drag-r" }; function G4(e, t, i, r, n, a) { - const s = ne("el-dropdown-item"), u = ne("el-dropdown-menu"), d = ne("el-dropdown"); + const s = ee("el-dropdown-item"), u = ee("el-dropdown-menu"), d = ee("el-dropdown"); return H(), ae("div", { - class: Xe(["_fd-drag-tool", { active: e.fcx.active === e.id, "is-inside": e.inside, "is-inline": e.inline }]), + class: qe(["_fd-drag-tool", { active: e.fcx.active === e.id, "is-inside": e.inside, "is-inline": e.inline }]), onClick: t[10] || (t[10] = vt((...p) => e.active && e.active(...p), ["stop"])) }, [ - e.mask ? (H(), ae("div", U4)) : ke("", !0), + e.mask ? (H(), ae("div", U4)) : Te("", !0), e.hidden ? (H(), ae("div", H4, [ - t[11] || (t[11] = X("i", { class: "fc-icon icon-eye-close" }, null, -1)), + t[11] || (t[11] = J("i", { class: "fc-icon icon-eye-close" }, null, -1)), be(" " + le(e.t("props.hide")), 1) - ])) : ke("", !0), - e.hiddenBtn ? ke("", !0) : (H(), ae("div", { + ])) : Te("", !0), + e.hiddenBtn ? Te("", !0) : (H(), ae("div", { key: 2, class: "_fd-drag-l", onClick: t[0] || (t[0] = vt(() => { }, ["stop"])) }, [ e.dragBtn !== !1 ? bn((H(), ae("div", z4, t[12] || (t[12] = [ - X("i", { class: "fc-icon icon-move" }, null, -1) + J("i", { class: "fc-icon icon-move" }, null, -1) ]), 512)), [ [Sn, e.fcx.active === e.id] - ]) : ke("", !0) + ]) : Te("", !0) ])), e.btns !== !1 && !e.hiddenMenu ? (H(), ae("div", W4, [ kt(e.$slots, "handle", {}, () => [ @@ -47298,14 +47308,14 @@ function G4(e, t, i, r, n, a) { onClick: t[1] || (t[1] = vt(() => { }, ["stop"])) }, [ - W(d, { + z(d, { trigger: "click", onCommand: e.command }, { dropdown: N(() => [ - W(u, null, { + z(u, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.actions, (p, h) => (H(), he(s, { command: h }, { + (H(!0), ae(Me, null, ze(e.actions, (p, h) => (H(), me(s, { command: h }, { default: N(() => [ be(le(e.t(p) || p), 1) ]), @@ -47316,11 +47326,11 @@ function G4(e, t, i, r, n, a) { }) ]), default: N(() => [ - t[13] || (t[13] = X("i", { class: "fc-icon icon-setting" }, null, -1)) + t[13] || (t[13] = J("i", { class: "fc-icon icon-setting" }, null, -1)) ]), _: 1 }, 8, ["onCommand"]) - ])) : ke("", !0), + ])) : Te("", !0), e.isCreate && (e.btns === !0 || e.btns.indexOf("create") > -1) ? (H(), ae("div", { key: 1, class: "_fd-drag-btn", @@ -47330,8 +47340,8 @@ function G4(e, t, i, r, n, a) { t[3] || (t[3] = (p) => e.$emit("create")) ] }, t[14] || (t[14] = [ - X("i", { class: "fc-icon icon-add" }, null, -1) - ]))) : ke("", !0), + J("i", { class: "fc-icon icon-add" }, null, -1) + ]))) : Te("", !0), !e.only && (e.btns === !0 || e.btns.indexOf("copy") > -1) ? (H(), ae("div", { key: 2, class: "_fd-drag-btn", @@ -47341,8 +47351,8 @@ function G4(e, t, i, r, n, a) { t[5] || (t[5] = (p) => e.$emit("copy")) ] }, t[15] || (t[15] = [ - X("i", { class: "fc-icon icon-copy" }, null, -1) - ]))) : ke("", !0), + J("i", { class: "fc-icon icon-copy" }, null, -1) + ]))) : Te("", !0), e.children && (e.btns === !0 || e.btns.indexOf("addChild") > -1) ? (H(), ae("div", { key: 3, class: "_fd-drag-btn", @@ -47352,8 +47362,8 @@ function G4(e, t, i, r, n, a) { t[7] || (t[7] = (p) => e.$emit("addChild")) ] }, t[16] || (t[16] = [ - X("i", { class: "fc-icon icon-add-child" }, null, -1) - ]))) : ke("", !0), + J("i", { class: "fc-icon icon-add-child" }, null, -1) + ]))) : Te("", !0), e.btns === !0 || e.btns.indexOf("delete") > -1 ? (H(), ae("div", { key: 4, class: "_fd-drag-btn _fd-drag-danger", @@ -47363,15 +47373,15 @@ function G4(e, t, i, r, n, a) { t[9] || (t[9] = (p) => e.$emit("delete")) ] }, t[17] || (t[17] = [ - X("i", { class: "fc-icon icon-delete" }, null, -1) - ]))) : ke("", !0) + J("i", { class: "fc-icon icon-delete" }, null, -1) + ]))) : Te("", !0) ]) - ])) : ke("", !0), + ])) : Te("", !0), kt(e.$slots, "default") ], 2); } -const Xb = /* @__PURE__ */ je(j4, [["render", G4]]); -const K4 = Ve({ +const Xb = /* @__PURE__ */ Ve(j4, [["render", G4]]); +const K4 = Be({ name: "HtmlEditor", emits: ["update:modelValue"], props: { @@ -47433,9 +47443,9 @@ const K4 = Ve({ ref: "editor" }; function J4(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-dialog"); + const s = ee("el-button"), u = ee("el-dialog"); return H(), ae("div", Y4, [ - W(s, { + z(s, { class: "_fd-plain-button", plain: "", onClick: t[0] || (t[0] = (d) => e.visible = !0) @@ -47445,7 +47455,7 @@ function J4(e, t, i, r, n, a) { ]), _: 1 }), - W(u, { + z(u, { class: "_fd-html-editor-con", title: e.title || e.t("struct.title"), modelValue: e.visible, @@ -47455,8 +47465,8 @@ function J4(e, t, i, r, n, a) { width: "800px" }, { footer: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { onClick: t[1] || (t[1] = (d) => e.visible = !1), size: "default" }, { @@ -47465,7 +47475,7 @@ function J4(e, t, i, r, n, a) { ]), _: 1 }), - W(s, { + z(s, { type: "primary", onClick: e.onOk, size: "default" @@ -47478,14 +47488,14 @@ function J4(e, t, i, r, n, a) { ]) ]), default: N(() => [ - e.visible ? (H(), ae("div", Q4, null, 512)) : ke("", !0) + e.visible ? (H(), ae("div", Q4, null, 512)) : Te("", !0) ]), _: 1 }, 8, ["title", "modelValue"]) ]); } -const X4 = /* @__PURE__ */ je(K4, [["render", J4]]); -const Z4 = Ve({ +const X4 = /* @__PURE__ */ Ve(K4, [["render", J4]]); +const Z4 = Be({ name: "FieldInput", inject: ["designer"], emits: ["update:modelValue"], @@ -47612,7 +47622,7 @@ const Z4 = Ve({ this.oldValue = this.value; }, makeField() { - this.oldValue = this.value, this.value = it(), this.onInput(); + this.oldValue = this.value, this.value = rt(), this.onInput(); }, updateRule(e) { const t = { ...e.update || {} }; @@ -47640,13 +47650,13 @@ const Z4 = Ve({ } }), q4 = { class: "_fd-field-input" }; function e5(e, t, i, r, n, a) { - const s = ne("el-input"), u = ne("el-tree-select"); + const s = ee("el-input"), u = ee("el-tree-select"); return H(), ae("div", q4, [ - X("i", { + J("i", { class: "fc-icon icon-group", onClick: t[0] || (t[0] = vt((...d) => e.copy && e.copy(...d), ["stop"])) }), - e.fieldList.length ? (H(), he(u, { + e.fieldList.length ? (H(), me(u, { key: 1, modelValue: e.value, "onUpdate:modelValue": t[3] || (t[3] = (d) => e.value = d), @@ -47662,7 +47672,7 @@ function e5(e, t, i, r, n, a) { onChange: e.onInput, onCurrentChange: e.currentChange, data: e.fieldList - }, null, 8, ["modelValue", "readonly", "disabled", "allow-create", "default-first-option", "checkStrictly", "onFocus", "onChange", "onCurrentChange", "data"])) : (H(), he(s, { + }, null, 8, ["modelValue", "readonly", "disabled", "allow-create", "default-first-option", "checkStrictly", "onFocus", "onChange", "onCurrentChange", "data"])) : (H(), me(s, { key: 0, modelValue: e.value, "onUpdate:modelValue": t[2] || (t[2] = (d) => e.value = d), @@ -47674,7 +47684,7 @@ function e5(e, t, i, r, n, a) { e.fieldReadonly ? void 0 : { name: "append", fn: N(() => [ - X("i", { + J("i", { class: "fc-icon icon-auto", onClick: t[1] || (t[1] = (...d) => e.makeField && e.makeField(...d)) }) @@ -47684,8 +47694,8 @@ function e5(e, t, i, r, n, a) { ]), 1032, ["modelValue", "readonly", "disabled", "onFocus", "onBlur"])) ]); } -const t5 = /* @__PURE__ */ je(Z4, [["render", e5]]); -const n5 = Ve({ +const t5 = /* @__PURE__ */ Ve(Z4, [["render", e5]]); +const n5 = Be({ name: "PromptInput", emits: ["update:modelValue", "change"], props: { @@ -47709,8 +47719,8 @@ const n5 = Ve({ } }); function i5(e, t, i, r, n, a) { - const s = ne("el-dropdown-item"), u = ne("el-dropdown-menu"), d = ne("el-dropdown"), p = ne("el-input"); - return H(), he(p, { + const s = ee("el-dropdown-item"), u = ee("el-dropdown-menu"), d = ee("el-dropdown"), p = ee("el-input"); + return H(), me(p, { size: e.size, modelValue: e.value, "onUpdate:modelValue": t[0] || (t[0] = (h) => e.value = h), @@ -47719,15 +47729,15 @@ function i5(e, t, i, r, n, a) { class: "_fd-list-input" }, { append: N(() => [ - W(d, { + z(d, { size: "default", trigger: "click", "popper-class": e.popperClass }, { dropdown: N(() => [ - W(u, null, { + z(u, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.options, (h) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.options, (h) => (H(), me(s, { key: h.value, onClick: (g) => e.setValue(h.value) }, { @@ -47741,7 +47751,7 @@ function i5(e, t, i, r, n, a) { }) ]), default: N(() => [ - t[1] || (t[1] = X("i", { class: "fc-icon icon-setting" }, null, -1)) + t[1] || (t[1] = J("i", { class: "fc-icon icon-setting" }, null, -1)) ]), _: 1 }, 8, ["popper-class"]) @@ -47749,7 +47759,7 @@ function i5(e, t, i, r, n, a) { _: 1 }, 8, ["size", "modelValue", "onBlur"]); } -const r5 = /* @__PURE__ */ je(n5, [["render", i5]]); +const r5 = /* @__PURE__ */ Ve(n5, [["render", i5]]); const o5 = (e) => [ { type: "input", @@ -47823,7 +47833,7 @@ const o5 = (e) => [ warning: e("warning.fetchData"), value: {} } -], a5 = Ve({ +], a5 = Be({ name: "FetchConfig", emits: ["update:modelValue"], props: { @@ -47832,7 +47842,7 @@ const o5 = (e) => [ }, components: { Warning: ki, - DragForm: et.$form(), + DragForm: tt.$form(), FnEditor: sr, StructEditor: Lp }, @@ -47880,7 +47890,7 @@ const o5 = (e) => [ save() { this.form.api.validate().then(() => { const e = { ...this.form.formData }; - this.$refs.parse && !this.$refs.parse.save() || this.$refs.beforeFetch && !this.$refs.beforeFetch.save() || this.$refs.error && !this.$refs.error.save() || (e.parse = et.parseFn(this.form.parse), e.beforeFetch = et.parseFn(this.form.beforeFetch), e.onError = this.form.onError, e.label = this.form.label, e.type = this.form.type, e.to = this.to || "options", this.$emit("update:modelValue", e), this.visible = !1); + this.$refs.parse && !this.$refs.parse.save() || this.$refs.beforeFetch && !this.$refs.beforeFetch.save() || this.$refs.error && !this.$refs.error.save() || (e.parse = tt.parseFn(this.form.parse), e.beforeFetch = tt.parseFn(this.form.beforeFetch), e.onError = this.form.onError, e.label = this.form.label, e.type = this.form.type, e.to = this.to || "options", this.$emit("update:modelValue", e), this.visible = !1); }).catch((e) => { console.error(e), In(e[Object.keys(e)[0]][0].message); }); @@ -47891,15 +47901,15 @@ const o5 = (e) => [ } }), l5 = { class: "_fd-fetch-config" }, s5 = { class: "_fd-fetch-info" }; function u5(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-badge"), d = ne("Warning"), p = ne("DragForm"), h = ne("el-tab-pane"), g = ne("FnEditor"), _ = ne("el-tabs"), S = ne("el-container"), b = ne("el-dialog"); + const s = ee("el-button"), u = ee("el-badge"), d = ee("Warning"), p = ee("DragForm"), h = ee("el-tab-pane"), g = ee("FnEditor"), _ = ee("el-tabs"), S = ee("el-container"), b = ee("el-dialog"); return H(), ae("div", l5, [ - W(u, { + z(u, { type: "warning", "is-dot": "", hidden: !e.configured }, { default: N(() => [ - W(s, { + z(s, { class: "_fd-plain-button", plain: "", onClick: t[0] || (t[0] = (A) => e.visible = !0), @@ -47913,7 +47923,7 @@ function u5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["hidden"]), - W(b, { + z(b, { class: "_fd-fetch-dialog _fd-config-dialog", modelValue: e.visible, "onUpdate:modelValue": t[7] || (t[7] = (A) => e.visible = A), @@ -47924,13 +47934,13 @@ function u5(e, t, i, r, n, a) { }, { header: N(() => [ be(le(e.t("fetch.optionsType.fetch")) + " ", 1), - W(d, { + z(d, { tooltip: e.t("warning.fetch") }, null, 8, ["tooltip"]) ]), footer: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { size: "default", onClick: t[6] || (t[6] = (A) => e.visible = !1) }, { @@ -47939,7 +47949,7 @@ function u5(e, t, i, r, n, a) { ]), _: 1 }), - W(s, { + z(s, { type: "primary", size: "default", onClick: e.save @@ -47952,25 +47962,25 @@ function u5(e, t, i, r, n, a) { ]) ]), default: N(() => [ - W(S, { + z(S, { class: "_fd-fetch-con", style: { height: "450px" } }, { default: N(() => [ - W(_, { + z(_, { "model-value": "first", class: "_fc-tabs", style: { width: "100%" } }, { default: N(() => [ - W(h, { + z(h, { label: e.t("fetch.config"), name: "first", style: { "padding-right": "15px" } }, { default: N(() => [ - X("div", s5, le(e.t("fetch.info")), 1), - W(p, { + J("div", s5, le(e.t("fetch.info")), 1), + z(p, { api: e.form.api, "onUpdate:api": t[1] || (t[1] = (A) => e.form.api = A), modelValue: e.form.formData, @@ -47979,7 +47989,7 @@ function u5(e, t, i, r, n, a) { option: e.form.options }, { title: N((A) => [ - A.rule.warning ? (H(), he(d, { + A.rule.warning ? (H(), me(d, { key: 0, tooltip: A.rule.warning }, { @@ -47996,19 +48006,19 @@ function u5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(h, { + z(h, { lazy: "", label: e.t("fetch.beforeFetch"), name: "second" }, { label: N(() => [ be(le(e.t("fetch.beforeFetch")) + " ", 1), - W(d, { + z(d, { tooltip: e.t("warning.beforeFetch") }, null, 8, ["tooltip"]) ]), default: N(() => [ - W(g, { + z(g, { style: { height: "100%" }, modelValue: e.form.beforeFetch, "onUpdate:modelValue": t[3] || (t[3] = (A) => e.form.beforeFetch = A), @@ -48019,18 +48029,18 @@ function u5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(h, { + z(h, { lazy: "", name: "third" }, { label: N(() => [ be(le(e.t("fetch.parse")) + " ", 1), - W(d, { + z(d, { tooltip: e.t("warning.fetchParse") }, null, 8, ["tooltip"]) ]), default: N(() => [ - W(g, { + z(g, { style: { height: "100%" }, modelValue: e.form.parse, "onUpdate:modelValue": t[4] || (t[4] = (A) => e.form.parse = A), @@ -48041,13 +48051,13 @@ function u5(e, t, i, r, n, a) { ]), _: 1 }), - W(h, { + z(h, { lazy: "", label: e.t("fetch.onError"), name: "fourth" }, { default: N(() => [ - W(g, { + z(g, { style: { height: "100%" }, modelValue: e.form.onError, "onUpdate:modelValue": t[5] || (t[5] = (A) => e.form.onError = A), @@ -48069,8 +48079,8 @@ function u5(e, t, i, r, n, a) { }, 8, ["modelValue"]) ]); } -const d5 = /* @__PURE__ */ je(a5, [["render", u5]]); -const f5 = Ve({ +const d5 = /* @__PURE__ */ Ve(a5, [["render", u5]]); +const f5 = Be({ name: "TableColumnConfig", components: { FnEditor: sr }, props: { @@ -48127,11 +48137,11 @@ const f5 = Ve({ }), t; }, add(e) { - const t = { format: "default", filter: [], id: it() }; + const t = { format: "default", filter: [], id: rt() }; e != null ? this.column.splice(e + 1, 0, t) : this.column.push(t); }, addChild(e) { - const t = { p: e, format: "default", filter: [], id: it() }; + const t = { p: e, format: "default", filter: [], id: rt() }; e.children || (e.children = []), e.children.push(t); }, remove(e) { @@ -48149,7 +48159,7 @@ const f5 = Ve({ }, fullId(e, t) { return e.map((i) => { - i.id || (i.id = it()), i.p = t, i.children && this.fullId(i.children, i); + i.id || (i.id = rt()), i.p = t, i.children && this.fullId(i.children, i); }), e; }, close() { @@ -48191,15 +48201,15 @@ const f5 = Ve({ } }), c5 = { class: "_fd-table-column-config" }, p5 = { class: "flex" }, h5 = ["onClick"], m5 = ["onClick"], v5 = ["onClick"], g5 = ["onClick"]; function y5(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-badge"), d = ne("FnEditor"), p = ne("el-table-column"), h = ne("el-input"), g = ne("el-option"), _ = ne("el-select"), S = ne("el-switch"), b = ne("el-table"), A = ne("el-dialog"); + const s = ee("el-button"), u = ee("el-badge"), d = ee("FnEditor"), p = ee("el-table-column"), h = ee("el-input"), g = ee("el-option"), _ = ee("el-select"), S = ee("el-switch"), b = ee("el-table"), A = ee("el-dialog"); return H(), ae("div", c5, [ - W(u, { + z(u, { type: "warning", "is-dot": "", hidden: !e.configured }, { default: N(() => [ - W(s, { + z(s, { class: "_fd-plain-button", plain: "", onClick: t[0] || (t[0] = (y) => e.visible = !0), @@ -48213,7 +48223,7 @@ function y5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["hidden"]), - W(A, { + z(A, { class: "_fd-tcc-dialog _fd-config-dialog", title: e.t("com.dataTable.column.title"), modelValue: e.visible, @@ -48224,8 +48234,8 @@ function y5(e, t, i, r, n, a) { width: "980px" }, { footer: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { size: "default", onClick: e.close }, { @@ -48234,7 +48244,7 @@ function y5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["onClick"]), - W(s, { + z(s, { type: "primary", size: "default", onClick: e.submit @@ -48247,36 +48257,36 @@ function y5(e, t, i, r, n, a) { ]) ]), default: N(() => [ - e.activeRow ? (H(), he(d, { + e.activeRow ? (H(), me(d, { key: 0, ref: "fn", modelValue: e.activeRow.render, "onUpdate:modelValue": t[1] || (t[1] = (y) => e.activeRow.render = y), args: ["scope", "h", " resolveComponent", "api"], name: "render" - }, null, 8, ["modelValue"])) : ke("", !0), - bn(W(b, { + }, null, 8, ["modelValue"])) : Te("", !0), + bn(z(b, { data: e.column, size: "small", "row-key": "id", class: "_fd-tcc-table" }, { default: N(() => [ - W(p, { + z(p, { type: "index", width: "50" }), - W(p, { + z(p, { label: e.t("com.dataTable.column.prop"), width: "130" }, { default: N(({ row: y }) => [ !y.children || !y.children.length ? (H(), ae(Me, { key: 0 }, [ - !e.propColumns || !e.propColumns.length ? (H(), he(h, { + !e.propColumns || !e.propColumns.length ? (H(), me(h, { key: 0, modelValue: y.prop, "onUpdate:modelValue": (m) => y.prop = m - }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (H(), he(_, { + }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (H(), me(_, { key: 1, modelValue: y.prop, "onUpdate:modelValue": (m) => y.prop = m, @@ -48286,7 +48296,7 @@ function y5(e, t, i, r, n, a) { filterable: "" }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.propColumns, (m) => (H(), he(g, { + (H(!0), ae(Me, null, ze(e.propColumns, (m) => (H(), me(g, { label: m, value: m }, { @@ -48304,38 +48314,38 @@ function y5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(p, { width: "100" }, { + z(p, { width: "100" }, { default: N(({ row: y }) => [ - W(h, { + z(h, { modelValue: y.label, "onUpdate:modelValue": (m) => y.label = m }, null, 8, ["modelValue", "onUpdate:modelValue"]) ]), header: N(() => [ be(le(e.t("props.title")), 1), - t[4] || (t[4] = X("span", { style: { color: "red" } }, "*", -1)) + t[4] || (t[4] = J("span", { style: { color: "red" } }, "*", -1)) ]), _: 1 }), - W(p, { + z(p, { label: e.t("style.width"), width: "100" }, { default: N(({ row: y }) => [ - !y.children || !y.children.length ? (H(), he(h, { + !y.children || !y.children.length ? (H(), me(h, { key: 0, modelValue: y.width, "onUpdate:modelValue": (m) => y.width = m - }, null, 8, ["modelValue", "onUpdate:modelValue"])) : ke("", !0) + }, null, 8, ["modelValue", "onUpdate:modelValue"])) : Te("", !0) ]), _: 1 }, 8, ["label"]), - W(p, { + z(p, { label: e.t("com.dataTable.filter"), width: "120" }, { default: N(({ row: y }) => [ - !y.children || !y.children.length ? (H(), he(_, { + !y.children || !y.children.length ? (H(), me(_, { key: 0, modelValue: y.filter, "onUpdate:modelValue": (m) => y.filter = m, @@ -48343,7 +48353,7 @@ function y5(e, t, i, r, n, a) { clearable: "" }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.getColumnData(y.prop), (m) => (H(), he(g, { + (H(!0), ae(Me, null, ze(e.getColumnData(y.prop), (m) => (H(), me(g, { label: m, value: m }, { @@ -48354,54 +48364,54 @@ function y5(e, t, i, r, n, a) { }, 1032, ["label", "value"]))), 256)) ]), _: 2 - }, 1032, ["modelValue", "onUpdate:modelValue"])) : ke("", !0) + }, 1032, ["modelValue", "onUpdate:modelValue"])) : Te("", !0) ]), _: 1 }, 8, ["label"]), - W(p, { label: "Class" }, { + z(p, { label: "Class" }, { default: N(({ row: y }) => [ - W(h, { + z(h, { modelValue: y.className, "onUpdate:modelValue": (m) => y.className = m }, null, 8, ["modelValue", "onUpdate:modelValue"]) ]), _: 1 }), - W(p, { + z(p, { label: e.t("com.dataTable.column.sort"), width: "100" }, { default: N(({ row: y }) => [ - !y.children || !y.children.length ? (H(), he(_, { + !y.children || !y.children.length ? (H(), me(_, { key: 0, modelValue: y.sortable, "onUpdate:modelValue": (m) => y.sortable = m, clearable: "" }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.sortable, (m) => (H(), he(g, { + (H(!0), ae(Me, null, ze(e.sortable, (m) => (H(), me(g, { label: m.label, value: m.value, key: m.value }, null, 8, ["label", "value"]))), 128)) ]), _: 2 - }, 1032, ["modelValue", "onUpdate:modelValue"])) : ke("", !0) + }, 1032, ["modelValue", "onUpdate:modelValue"])) : Te("", !0) ]), _: 1 }, 8, ["label"]), - W(p, { + z(p, { label: e.t("props.position"), width: "100" }, { default: N(({ row: y }) => [ - W(_, { + z(_, { modelValue: y.fixed, "onUpdate:modelValue": (m) => y.fixed = m, clearable: "" }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.fixed, (m) => (H(), he(g, { + (H(!0), ae(Me, null, ze(e.fixed, (m) => (H(), me(g, { label: m.label, value: m.value, key: m.value || "default" @@ -48412,18 +48422,18 @@ function y5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(p, { + z(p, { label: e.t("style.font.align"), width: "100" }, { default: N(({ row: y }) => [ - W(_, { + z(_, { modelValue: y.align, "onUpdate:modelValue": (m) => y.align = m, clearable: "" }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.align, (m) => (H(), he(g, { + (H(!0), ae(Me, null, ze(e.align, (m) => (H(), me(g, { label: m.label, value: m.value, key: m.value @@ -48434,16 +48444,16 @@ function y5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(p, { width: "110" }, { + z(p, { width: "110" }, { default: N(({ row: y }) => [ - X("div", p5, [ - W(_, { + J("div", p5, [ + z(_, { modelValue: y.format, "onUpdate:modelValue": (m) => y.format = m, clearable: "" }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.format, (m) => (H(), he(g, { + (H(!0), ae(Me, null, ze(e.format, (m) => (H(), me(g, { label: m.label, value: m.value, key: m.value @@ -48455,44 +48465,44 @@ function y5(e, t, i, r, n, a) { key: 0, class: "fc-icon icon-edit", onClick: (m) => e.editFn(y) - }, null, 8, h5)) : ke("", !0) + }, null, 8, h5)) : Te("", !0) ]) ]), header: N(() => [ be(le(e.t("props.render")), 1), - t[5] || (t[5] = X("span", { style: { color: "red" } }, "*", -1)) + t[5] || (t[5] = J("span", { style: { color: "red" } }, "*", -1)) ]), _: 1 }), - W(p, { + z(p, { label: e.t("props.hide"), width: "50", fixed: "right" }, { default: N(({ row: y }) => [ - !y.children || !y.children.length ? (H(), he(S, { + !y.children || !y.children.length ? (H(), me(S, { key: 0, modelValue: y.hidden, "onUpdate:modelValue": (m) => y.hidden = m - }, null, 8, ["modelValue", "onUpdate:modelValue"])) : ke("", !0) + }, null, 8, ["modelValue", "onUpdate:modelValue"])) : Te("", !0) ]), _: 1 }, 8, ["label"]), - W(p, { + z(p, { label: e.t("tableOptions.handle"), width: "90", fixed: "right" }, { default: N(({ row: y, $index: m }) => [ - X("i", { + J("i", { class: "fc-icon icon-add-circle", onClick: (w) => e.add(m) }, null, 8, m5), - X("i", { + J("i", { class: "fc-icon icon-add-child", onClick: (w) => e.addChild(y) }, null, 8, v5), - X("i", { + J("i", { class: "fc-icon icon-delete-circle", onClick: (w) => e.remove(y) }, null, 8, g5) @@ -48504,13 +48514,13 @@ function y5(e, t, i, r, n, a) { }, 8, ["data"]), [ [Sn, !e.activeRow] ]), - bn(W(s, { + bn(z(s, { link: "", type: "primary", onClick: t[2] || (t[2] = (y) => e.add()) }, { default: N(() => [ - t[6] || (t[6] = X("i", { class: "fc-icon icon-add-circle" }, null, -1)), + t[6] || (t[6] = J("i", { class: "fc-icon icon-add-circle" }, null, -1)), be(" " + le(e.t("tableOptions.add")), 1) ]), _: 1 @@ -48522,8 +48532,8 @@ function y5(e, t, i, r, n, a) { }, 8, ["title", "modelValue"]) ]); } -const b5 = /* @__PURE__ */ je(f5, [["render", y5]]); -const _5 = Ve({ +const b5 = /* @__PURE__ */ Ve(f5, [["render", y5]]); +const _5 = Be({ name: "TableColumnConfig", props: { modelValue: Array @@ -48616,15 +48626,15 @@ const _5 = Ve({ } }), w5 = { class: "_fd-table-button-config" }, A5 = ["onClick"], C5 = ["onClick"], S5 = ["onClick"], E5 = ["onClick"]; function x5(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-badge"), d = ne("FnEditor"), p = ne("el-table-column"), h = ne("el-input"), g = ne("el-option"), _ = ne("el-select"), S = ne("el-switch"), b = ne("el-table"), A = ne("el-dialog"); + const s = ee("el-button"), u = ee("el-badge"), d = ee("FnEditor"), p = ee("el-table-column"), h = ee("el-input"), g = ee("el-option"), _ = ee("el-select"), S = ee("el-switch"), b = ee("el-table"), A = ee("el-dialog"); return H(), ae("div", w5, [ - W(u, { + z(u, { type: "warning", "is-dot": "", hidden: !e.configured }, { default: N(() => [ - W(s, { + z(s, { class: "_fd-plain-button", plain: "", onClick: t[0] || (t[0] = (y) => e.visible = !0), @@ -48638,7 +48648,7 @@ function x5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["hidden"]), - W(A, { + z(A, { class: "_fd-tcb-dialog _fd-config-dialog", title: e.t("com.dataTable.button.title"), modelValue: e.visible, @@ -48649,8 +48659,8 @@ function x5(e, t, i, r, n, a) { width: "980px" }, { footer: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { size: "default", onClick: e.close }, { @@ -48659,7 +48669,7 @@ function x5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["onClick"]), - W(s, { + z(s, { type: "primary", size: "default", onClick: e.submit @@ -48672,7 +48682,7 @@ function x5(e, t, i, r, n, a) { ]) ]), default: N(() => [ - e.activeRow ? (H(), he(d, { + e.activeRow ? (H(), me(d, { key: 0, ref: "fn", modelValue: e.activeRow[e.activeKey], @@ -48680,21 +48690,21 @@ function x5(e, t, i, r, n, a) { args: e.activeArgs, name: e.activeKey }, null, 8, ["modelValue", "args", "name"])) : (H(), ae(Me, { key: 1 }, [ - W(b, { + z(b, { data: e.column, size: "small" }, { default: N(() => [ - W(p, { + z(p, { type: "index", width: "50" }), - W(p, { + z(p, { label: e.t("props.preview"), width: "100" }, { default: N(({ row: y }) => [ - W(s, Sr(Er(e.btnProps(y))), { + z(s, Sr(Er(e.btnProps(y))), { default: N(() => [ be(le(y.name), 1) ]), @@ -48703,43 +48713,43 @@ function x5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(p, { width: "100" }, { + z(p, { width: "100" }, { default: N(({ row: y }) => [ - W(h, { + z(h, { modelValue: y.key, "onUpdate:modelValue": (m) => y.key = m }, null, 8, ["modelValue", "onUpdate:modelValue"]) ]), header: N(() => t[4] || (t[4] = [ be(" ID"), - X("span", { style: { color: "red" } }, "*", -1) + J("span", { style: { color: "red" } }, "*", -1) ])), _: 1 }), - W(p, null, { + z(p, null, { default: N(({ row: y }) => [ - W(h, { + z(h, { modelValue: y.name, "onUpdate:modelValue": (m) => y.name = m }, null, 8, ["modelValue", "onUpdate:modelValue"]) ]), header: N(() => [ be(le(e.t("props.name")), 1), - t[5] || (t[5] = X("span", { style: { color: "red" } }, "*", -1)) + t[5] || (t[5] = J("span", { style: { color: "red" } }, "*", -1)) ]), _: 1 }), - W(p, { + z(p, { label: e.t("event.type"), width: "120" }, { default: N(({ row: y }) => [ - W(_, { + z(_, { modelValue: y.type, "onUpdate:modelValue": (m) => y.type = m }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.type, (m) => (H(), he(g, { + (H(!0), ae(Me, null, ze(e.type, (m) => (H(), me(g, { label: m.label, value: m.value, key: m.value @@ -48750,17 +48760,17 @@ function x5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(p, { + z(p, { label: e.t("style.font.size"), width: "120" }, { default: N(({ row: y }) => [ - W(_, { + z(_, { modelValue: y.size, "onUpdate:modelValue": (m) => y.size = m }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.size, (m) => (H(), he(g, { + (H(!0), ae(Me, null, ze(e.size, (m) => (H(), me(g, { label: m.label, value: m.value, key: m.value @@ -48771,18 +48781,18 @@ function x5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(p, { + z(p, { label: e.t("style.decoration.name"), width: "120" }, { default: N(({ row: y }) => [ - W(_, { + z(_, { multiple: "", modelValue: y.prop, "onUpdate:modelValue": (m) => y.prop = m }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.decoration, (m) => (H(), he(g, { + (H(!0), ae(Me, null, ze(e.decoration, (m) => (H(), me(g, { label: m.label, value: m.value, key: m.value @@ -48793,50 +48803,50 @@ function x5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["label"]), - W(p, { + z(p, { label: e.t("props.hide"), width: "80" }, { default: N(({ row: y }) => [ - W(S, { + z(S, { modelValue: y.hidden, "onUpdate:modelValue": (m) => y.hidden = m }, null, 8, ["modelValue", "onUpdate:modelValue"]) ]), _: 1 }, 8, ["label"]), - W(p, { + z(p, { label: e.t("props.callback"), width: "80" }, { default: N(({ row: y }) => [ - X("div", { + J("div", { class: "_fd-tcb-btn", onClick: (m) => e.handle(y, "handle", ["props", "scope", "api"]) }, [ be(le(e.t("com.dataTable.handle")), 1), - t[6] || (t[6] = X("i", { class: "fc-icon icon-edit" }, null, -1)) + t[6] || (t[6] = J("i", { class: "fc-icon icon-edit" }, null, -1)) ], 8, A5), - X("div", { + J("div", { class: "_fd-tcb-btn", onClick: (m) => e.handle(y, "click", ["scope", "api"]) }, [ be(le(e.t("com.dataTable.click")), 1), - t[7] || (t[7] = X("i", { class: "fc-icon icon-edit" }, null, -1)) + t[7] || (t[7] = J("i", { class: "fc-icon icon-edit" }, null, -1)) ], 8, C5) ]), _: 1 }, 8, ["label"]), - W(p, { + z(p, { label: e.t("tableOptions.handle"), width: "80" }, { default: N(({ $index: y }) => [ - X("i", { + J("i", { class: "fc-icon icon-add-circle", onClick: (m) => e.add(y) }, null, 8, S5), - X("i", { + J("i", { class: "fc-icon icon-delete-circle", onClick: (m) => e.remove(y) }, null, 8, E5) @@ -48846,13 +48856,13 @@ function x5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["data"]), - W(s, { + z(s, { link: "", type: "primary", onClick: t[2] || (t[2] = (y) => e.add()) }, { default: N(() => [ - t[8] || (t[8] = X("i", { class: "fc-icon icon-add-circle" }, null, -1)), + t[8] || (t[8] = J("i", { class: "fc-icon icon-add-circle" }, null, -1)), be(" " + le(e.t("tableOptions.add")), 1) ]), _: 1 @@ -48863,8 +48873,8 @@ function x5(e, t, i, r, n, a) { }, 8, ["title", "modelValue"]) ]); } -const T5 = /* @__PURE__ */ je(_5, [["render", x5]]); -const k5 = "[[FORM-CREATE-PREFIX-", O5 = "-FORM-CREATE-SUFFIX]]", $5 = Ve({ +const T5 = /* @__PURE__ */ Ve(_5, [["render", x5]]); +const k5 = "[[FORM-CREATE-PREFIX-", O5 = "-FORM-CREATE-SUFFIX]]", $5 = Be({ name: "FnConfig", emits: ["update:modelValue"], props: { @@ -48931,7 +48941,7 @@ const k5 = "[[FORM-CREATE-PREFIX-", O5 = "-FORM-CREATE-SUFFIX]]", $5 = Ve({ }), t; }, edit(e) { - e.key = it(), this.activeData = e, this.eventStr = e.fn || k5 + `function ${e.item.name}(${this.getArgs(e.item)}){}` + O5, this.defActive = e.item.name; + e.key = rt(), this.activeData = e, this.eventStr = e.fn || k5 + `function ${e.item.name}(${this.getArgs(e.item)}){}` + O5, this.defActive = e.item.name; }, save() { return this.$refs.fn.save() ? (this.activeData.fn = this.eventStr, this.destroy(), !0) : !1; @@ -48954,15 +48964,15 @@ const k5 = "[[FORM-CREATE-PREFIX-", O5 = "-FORM-CREATE-SUFFIX]]", $5 = Ve({ class: "_fd-dot" }; function P5(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-badge"), d = ne("el-text"), p = ne("el-header"), h = ne("el-menu-item"), g = ne("el-menu"), _ = ne("el-main"), S = ne("el-container"), b = ne("el-aside"), A = ne("FnEditor"), y = ne("el-dialog"); + const s = ee("el-button"), u = ee("el-badge"), d = ee("el-text"), p = ee("el-header"), h = ee("el-menu-item"), g = ee("el-menu"), _ = ee("el-main"), S = ee("el-container"), b = ee("el-aside"), A = ee("FnEditor"), y = ee("el-dialog"); return H(), ae("div", R5, [ - W(u, { + z(u, { value: e.eventNum, type: "warning", hidden: e.eventNum < 1 }, { default: N(() => [ - W(s, { + z(s, { class: "_fd-plain-button", plain: "", onClick: t[0] || (t[0] = (m) => e.visible = !0), @@ -48976,7 +48986,7 @@ function P5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["value", "hidden"]), - W(y, { + z(y, { class: "_fd-fn-list-dialog _fd-config-dialog", title: e.t("event.title"), modelValue: e.visible, @@ -48987,8 +48997,8 @@ function P5(e, t, i, r, n, a) { width: "980px" }, { footer: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { size: "default", onClick: t[3] || (t[3] = (m) => e.visible = !1) }, { @@ -48997,7 +49007,7 @@ function P5(e, t, i, r, n, a) { ]), _: 1 }), - W(s, { + z(s, { type: "primary", size: "default", onClick: e.submit @@ -49010,21 +49020,21 @@ function P5(e, t, i, r, n, a) { ]) ]), default: N(() => [ - W(S, { + z(S, { class: "_fd-fn-list-con", style: { height: "600px" } }, { default: N(() => [ - W(b, { style: { width: "300px" } }, { + z(b, { style: { width: "300px" } }, { default: N(() => [ - W(S, { class: "_fd-fn-list-l" }, { + z(S, { class: "_fd-fn-list-l" }, { default: N(() => [ - W(p, { + z(p, { class: "_fd-fn-list-head", height: "40px" }, { default: N(() => [ - W(d, { + z(d, { type: "primary", size: "default" }, { @@ -49036,29 +49046,29 @@ function P5(e, t, i, r, n, a) { ]), _: 1 }), - W(_, null, { + z(_, null, { default: N(() => [ - W(g, { + z(g, { "default-active": e.defActive, modelValue: e.activeData, "onUpdate:modelValue": t[1] || (t[1] = (m) => e.activeData = m) }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.event, (m, w) => (H(), he(h, { + (H(!0), ae(Me, null, ze(e.event, (m, w) => (H(), me(h, { key: w, index: w }, { default: N(() => [ - X("div", { + J("div", { class: "_fd-fn-list-method", onClick: vt((E) => e.edit(m), ["stop"]) }, [ - X("span", null, [ + J("span", null, [ t[5] || (t[5] = be("function")), - X("span", null, le(w), 1) + J("span", null, le(w), 1) ]), - e.eventInfo[w] ? (H(), ae("span", I5, le(e.eventInfo[w]), 1)) : ke("", !0), - m.fn ? (H(), ae("span", F5)) : ke("", !0) + e.eventInfo[w] ? (H(), ae("span", I5, le(e.eventInfo[w]), 1)) : Te("", !0), + m.fn ? (H(), ae("span", F5)) : Te("", !0) ], 8, D5) ]), _: 2 @@ -49075,17 +49085,17 @@ function P5(e, t, i, r, n, a) { ]), _: 1 }), - W(_, null, { + z(_, null, { default: N(() => [ - W(S, { class: "_fd-fn-list-r" }, { + z(S, { class: "_fd-fn-list-r" }, { default: N(() => [ - e.activeData ? (H(), he(p, { + e.activeData ? (H(), me(p, { key: 0, class: "_fd-fn-list-head", height: "40px" }, { default: N(() => [ - W(s, { + z(s, { size: "small", onClick: e.close }, { @@ -49094,7 +49104,7 @@ function P5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["onClick"]), - W(s, { + z(s, { size: "small", type: "primary", onClick: e.save @@ -49106,10 +49116,10 @@ function P5(e, t, i, r, n, a) { }, 8, ["onClick"]) ]), _: 1 - })) : ke("", !0), - e.activeData ? (H(), he(_, { key: 1 }, { + })) : Te("", !0), + e.activeData ? (H(), me(_, { key: 1 }, { default: N(() => [ - W(A, { + z(A, { ref: "fn", modelValue: e.eventStr, "onUpdate:modelValue": t[2] || (t[2] = (m) => e.eventStr = m), @@ -49118,7 +49128,7 @@ function P5(e, t, i, r, n, a) { }, null, 8, ["modelValue", "name", "args"]) ]), _: 1 - })) : ke("", !0) + })) : Te("", !0) ]), _: 1 }) @@ -49133,8 +49143,8 @@ function P5(e, t, i, r, n, a) { }, 8, ["title", "modelValue"]) ]); } -const M5 = /* @__PURE__ */ je($5, [["render", P5]]); -const L5 = Ve({ +const M5 = /* @__PURE__ */ Ve($5, [["render", P5]]); +const L5 = Be({ name: "FnInput", components: { FnEditor: sr }, emits: ["update:modelValue", "change"], @@ -49177,15 +49187,15 @@ const L5 = Ve({ } }), N5 = { class: "_fd-fn-input" }; function B5(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-badge"), d = ne("FnEditor"), p = ne("el-dialog"); + const s = ee("el-button"), u = ee("el-badge"), d = ee("FnEditor"), p = ee("el-dialog"); return H(), ae("div", N5, [ - W(u, { + z(u, { type: "warning", "is-dot": "", hidden: !e.configured }, { default: N(() => [ - W(s, { + z(s, { class: "_fd-plain-button", plain: "", onClick: t[0] || (t[0] = (h) => e.visible = !0), @@ -49201,7 +49211,7 @@ function B5(e, t, i, r, n, a) { ]), _: 3 }, 8, ["hidden"]), - W(p, { + z(p, { class: "_fd-fn-input-dialog _fd-config-dialog", title: e.title || e.t("struct.title"), modelValue: e.visible, @@ -49212,8 +49222,8 @@ function B5(e, t, i, r, n, a) { width: "800px" }, { footer: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { onClick: t[2] || (t[2] = (h) => e.visible = !1), size: "default" }, { @@ -49222,7 +49232,7 @@ function B5(e, t, i, r, n, a) { ]), _: 1 }), - W(s, { + z(s, { type: "primary", onClick: e.onOk, size: "default" @@ -49235,7 +49245,7 @@ function B5(e, t, i, r, n, a) { ]) ]), default: N(() => [ - W(d, { + z(d, { ref: "editor", modelValue: e.value, "onUpdate:modelValue": t[1] || (t[1] = (h) => e.value = h), @@ -49249,8 +49259,8 @@ function B5(e, t, i, r, n, a) { }, 8, ["title", "modelValue"]) ]); } -const Zb = /* @__PURE__ */ je(L5, [["render", B5]]); -const V5 = Ve({ +const Zb = /* @__PURE__ */ Ve(L5, [["render", B5]]); +const V5 = Be({ name: "GlobalFetchSelect", emits: ["update:modelValue"], props: { @@ -49294,9 +49304,9 @@ const V5 = Ve({ } }), j5 = { class: "_fd-gfs" }, U5 = { class: "_fd-gfs-handle" }; function H5(e, t, i, r, n, a) { - const s = ne("el-option"), u = ne("el-select"); + const s = ee("el-option"), u = ee("el-select"); return H(), ae("div", j5, [ - W(u, { + z(u, { modelValue: e.value, "onUpdate:modelValue": t[0] || (t[0] = (d) => e.value = d), clearable: "", @@ -49304,7 +49314,7 @@ function H5(e, t, i, r, n, a) { onChange: e.input }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.options, (d) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.options, (d) => (H(), me(s, { key: d.value, label: d.label, value: d.value @@ -49312,23 +49322,23 @@ function H5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["modelValue", "onChange"]), - X("div", U5, [ - X("i", { + J("div", U5, [ + J("i", { onClick: t[1] || (t[1] = (...d) => e.refresh && e.refresh(...d)), - class: Xe(["fc-icon icon-refresh", { disabled: !e.value, "_fc-loading": this.loading }]), + class: qe(["fc-icon icon-refresh", { disabled: !e.value, "_fc-loading": this.loading }]), title: "reload" }, null, 2), - X("div", { + J("div", { class: "_fc-manage-text", onClick: t[2] || (t[2] = (...d) => e.openConfig && e.openConfig(...d)) }, t[3] || (t[3] = [ - X("i", { class: "fc-icon icon-setting" }, null, -1) + J("i", { class: "fc-icon icon-setting" }, null, -1) ])) ]) ]); } -const z5 = /* @__PURE__ */ je(V5, [["render", H5]]); -const W5 = Ve({ +const z5 = /* @__PURE__ */ Ve(V5, [["render", H5]]); +const W5 = Be({ name: "GlobalClassSelect", emits: ["update:modelValue"], props: { @@ -49370,9 +49380,9 @@ const W5 = Ve({ } }), G5 = { class: "_fd-gcs" }, K5 = { class: "_fd-gcs-handle" }; function Y5(e, t, i, r, n, a) { - const s = ne("el-option"), u = ne("el-select"); + const s = ee("el-option"), u = ee("el-select"); return H(), ae("div", G5, [ - W(u, { + z(u, { modelValue: e.value, "onUpdate:modelValue": t[0] || (t[0] = (d) => e.value = d), multiple: "", @@ -49384,7 +49394,7 @@ function Y5(e, t, i, r, n, a) { onChange: e.input }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.options, (d) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.options, (d) => (H(), me(s, { key: d.value, label: d.label, value: d.value @@ -49392,18 +49402,18 @@ function Y5(e, t, i, r, n, a) { ]), _: 1 }, 8, ["modelValue", "onChange"]), - X("div", K5, [ - X("div", { + J("div", K5, [ + J("div", { class: "_fc-manage-text", onClick: t[1] || (t[1] = (...d) => e.openConfig && e.openConfig(...d)) }, t[2] || (t[2] = [ - X("i", { class: "fc-icon icon-setting" }, null, -1) + J("i", { class: "fc-icon icon-setting" }, null, -1) ])) ]) ]); } -const Q5 = /* @__PURE__ */ je(W5, [["render", Y5]]); -const J5 = Ve({ +const Q5 = /* @__PURE__ */ Ve(W5, [["render", Y5]]); +const J5 = Be({ name: "FetchTable", components: { VariableConfig: ml }, inject: ["designer"], @@ -49454,34 +49464,34 @@ const J5 = Ve({ } }), X5 = { class: "_fd-fetch-table" }, Z5 = { style: { width: "40%" } }, q5 = { class: "_fd-fetch-table-key" }, eV = ["onClick"]; function tV(e, t, i, r, n, a) { - const s = ne("el-header"), u = ne("VariableConfig"), d = ne("el-input"), p = ne("el-main"), h = ne("el-container"), g = ne("el-button"); + const s = ee("el-header"), u = ee("VariableConfig"), d = ee("el-input"), p = ee("el-main"), h = ee("el-container"), g = ee("el-button"); return H(), ae("div", X5, [ - e.value.length > 0 ? (H(), he(h, { + e.value.length > 0 ? (H(), me(h, { key: 0, class: "_fd-fetch-table-con" }, { default: N(() => [ - W(s, null, { + z(s, null, { default: N(() => [ - X("div", Z5, le(e.t("props.key")), 1), - X("div", null, le(e.t("props.value")), 1) + J("div", Z5, le(e.t("props.key")), 1), + J("div", null, le(e.t("props.value")), 1) ]), _: 1 }), - W(p, null, { + z(p, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.value, (_, S) => (H(), ae("div", { + (H(!0), ae(Me, null, ze(e.value, (_, S) => (H(), ae("div", { key: S, class: "_fd-fetch-table-row" }, [ - X("div", q5, [ - W(d, { + J("div", q5, [ + z(d, { modelValue: _.key, "onUpdate:modelValue": (b) => _.key = b, onBlur: (b) => e.onBlur(_, b) }, { suffix: N(() => [ - W(u, { + z(u, { popover: "", onConfirm: (b) => e.onConfirm(_, "key", b) }, null, 8, ["onConfirm"]) @@ -49489,20 +49499,20 @@ function tV(e, t, i, r, n, a) { _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onBlur"]) ]), - W(d, { + z(d, { modelValue: _.value, "onUpdate:modelValue": (b) => _.value = b, onBlur: (b) => e.onBlur(_, b) }, { suffix: N(() => [ - W(u, { + z(u, { popover: "", onConfirm: (b) => e.onConfirm(_, "value", b) }, null, 8, ["onConfirm"]) ]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onBlur"]), - X("i", { + J("i", { class: "fc-icon icon-delete-circle", onClick: (b) => e.rm(S) }, null, 8, eV) @@ -49512,21 +49522,21 @@ function tV(e, t, i, r, n, a) { }) ]), _: 1 - })) : ke("", !0), - W(g, { + })) : Te("", !0), + z(g, { link: "", type: "primary", onClick: e.add }, { default: N(() => [ - t[0] || (t[0] = X("i", { class: "fc-icon icon-add" }, null, -1)), + t[0] || (t[0] = J("i", { class: "fc-icon icon-add" }, null, -1)), be(" " + le(e.t("tableOptions.add")), 1) ]), _: 1 }, 8, ["onClick"]) ]); } -const nV = /* @__PURE__ */ je(J5, [["render", tV]]), qb = Ve({ +const nV = /* @__PURE__ */ Ve(J5, [["render", tV]]), qb = Be({ name: "DragBox", props: ["rule", "tag", "formCreateInject", "list"], render(e) { @@ -49554,7 +49564,7 @@ const nV = /* @__PURE__ */ je(J5, [["render", tV]]), qb = Ve({ }); } }); -const iV = Ve({ +const iV = Be({ name: "FcTableView", props: { mini: Boolean, @@ -49622,7 +49632,7 @@ const iV = Ve({ }, methods: { getUnique(e) { - return this.unique[e] || (this.unique[e] = it()), this.unique[e]; + return this.unique[e] || (this.unique[e] = rt()), this.unique[e]; }, getSlotChildren(e) { const t = []; @@ -49876,18 +49886,18 @@ const iV = Ve({ } }), rV = { class: "_fd-table-view-cell" }, oV = ["onClick"], aV = ["onClick"]; function lV(e, t, i, r, n, a) { - const s = ne("DragBox"), u = ne("el-dropdown-item"), d = ne("el-dropdown-menu"), p = ne("el-dropdown"), h = ne("DragTool"); + const s = ee("DragBox"), u = ee("el-dropdown-item"), d = ee("el-dropdown-menu"), p = ee("el-dropdown"), h = ee("DragTool"); return H(), ae("div", { - class: Xe(["_fd-table-view", { "is-mini": e.mini }]) + class: qe(["_fd-table-view", { "is-mini": e.mini }]) }, [ - X("table", { + J("table", { border: "1", cellspacing: "0", cellpadding: "0", style: wn(e.tableColor) }, [ - (H(!0), ae(Me, null, We(e.rule.row, (g, _) => (H(), ae("tr", { key: _ }, [ - (H(!0), ae(Me, null, We(e.rule.col, (S, b) => (H(), ae(Me, null, [ + (H(!0), ae(Me, null, ze(e.rule.row, (g, _) => (H(), ae("tr", { key: _ }, [ + (H(!0), ae(Me, null, ze(e.rule.col, (S, b) => (H(), ae(Me, null, [ e.lattice[_][b].show ? (H(), ae("td", jt({ key: `${_}${b}`, ref_for: !0 @@ -49895,42 +49905,42 @@ function lV(e, t, i, r, n, a) { style: [e.tableColor, e.style && e.style[`${_}:${b}`] || {}], class: e.rule.class && e.rule.class[`${_}:${b}`] || "" }), [ - X("div", rV, [ - W(h, { + J("div", rV, [ + z(h, { "drag-btn": !1, "handle-btn": !0, onActive: (A) => e.active({ pid: _, idx: b }), unique: e.lattice[_][b].id }, { handle: N(() => [ - X("div", { + J("div", { class: "_fd-drag-btn _fd-table-view-btn", onClick: vt((A) => e.addRow({ pid: _, idx: b, data: e.lattice[_][b] }, 0), ["stop"]) }, t[3] || (t[3] = [ - X("i", { class: "fc-icon icon-add-col" }, null, -1) + J("i", { class: "fc-icon icon-add-col" }, null, -1) ]), 8, oV), - X("div", { + J("div", { class: "_fd-drag-btn _fd-table-view-btn", onClick: vt((A) => e.addCol({ pid: _, idx: b, data: e.lattice[_][b] }, 0), ["stop"]) }, t[4] || (t[4] = [ - X("i", { + J("i", { class: "fc-icon icon-add-col", style: { transform: "rotate(90deg)" } }, null, -1) ]), 8, aV), - X("div", { + J("div", { class: "_fd-drag-btn _fd-table-view-btn", onClick: t[2] || (t[2] = vt(() => { }, ["stop"])) }, [ - W(p, { + z(p, { trigger: "click", onCommand: e.command }, { dropdown: N(() => [ - W(d, null, { + z(d, null, { default: N(() => [ - W(u, { + z(u, { command: ["addCol", [{ pid: _, idx: b, data: e.lattice[_][b] }, 1]] }, { default: N(() => [ @@ -49938,7 +49948,7 @@ function lV(e, t, i, r, n, a) { ]), _: 2 }, 1032, ["command"]), - W(u, { + z(u, { command: ["addCol", [{ pid: _, idx: b, data: e.lattice[_][b] }, 0]] }, { default: N(() => [ @@ -49946,7 +49956,7 @@ function lV(e, t, i, r, n, a) { ]), _: 2 }, 1032, ["command"]), - W(u, { + z(u, { command: ["addRow", [{ pid: _, idx: b, data: e.lattice[_][b] }, 1]] }, { default: N(() => [ @@ -49954,7 +49964,7 @@ function lV(e, t, i, r, n, a) { ]), _: 2 }, 1032, ["command"]), - W(u, { + z(u, { command: ["addRow", [{ pid: _, idx: b, data: e.lattice[_][b] }, 0]] }, { default: N(() => [ @@ -49962,7 +49972,7 @@ function lV(e, t, i, r, n, a) { ]), _: 2 }, 1032, ["command"]), - W(u, { + z(u, { divided: "", disabled: e.lattice[_][b].right, command: ["mergeRight", [{ pid: _, idx: b, data: e.lattice[_][b] }]] @@ -49972,7 +49982,7 @@ function lV(e, t, i, r, n, a) { ]), _: 2 }, 1032, ["disabled", "command"]), - W(u, { + z(u, { disabled: e.lattice[_][b].bottom, command: ["mergeBottom", [{ pid: _, idx: b, data: e.lattice[_][b] }]] }, { @@ -49981,7 +49991,7 @@ function lV(e, t, i, r, n, a) { ]), _: 2 }, 1032, ["disabled", "command"]), - W(u, { + z(u, { divided: "", disabled: !(e.lattice[_][b].layout && e.lattice[_][b].layout.col > 1), command: ["splitCol", [{ pid: _, idx: b, data: e.lattice[_][b] }]] @@ -49991,7 +50001,7 @@ function lV(e, t, i, r, n, a) { ]), _: 2 }, 1032, ["disabled", "command"]), - W(u, { + z(u, { disabled: !(e.lattice[_][b].layout && e.lattice[_][b].layout.row > 1), command: ["splitRow", [{ pid: _, idx: b, data: e.lattice[_][b] }]] }, { @@ -50000,7 +50010,7 @@ function lV(e, t, i, r, n, a) { ]), _: 2 }, 1032, ["disabled", "command"]), - W(u, { + z(u, { divided: "", disabled: e.rule.col < 2, command: ["rmCol", [{ pid: _, idx: b, data: e.lattice[_][b] }]] @@ -50010,7 +50020,7 @@ function lV(e, t, i, r, n, a) { ]), _: 2 }, 1032, ["disabled", "command"]), - W(u, { + z(u, { disabled: e.rule.row < 2, command: ["rmRow", [{ pid: _, idx: b, data: e.lattice[_][b] }]] }, { @@ -50024,14 +50034,14 @@ function lV(e, t, i, r, n, a) { }, 1024) ]), default: N(() => [ - t[5] || (t[5] = X("i", { class: "fc-icon icon-setting" }, null, -1)) + t[5] || (t[5] = J("i", { class: "fc-icon icon-setting" }, null, -1)) ]), _: 2 }, 1032, ["onCommand"]) ]) ]), default: N(() => [ - W(s, jt({ ref_for: !0 }, e.dragProp, { + z(s, jt({ ref_for: !0 }, e.dragProp, { onAdd: (A) => e.dragAdd(A, { pid: _, idx: b }), ref_for: !0, ref: "drag" + _ + b, @@ -50049,14 +50059,14 @@ function lV(e, t, i, r, n, a) { _: 2 }, 1032, ["onActive", "unique"]) ]) - ], 16)) : ke("", !0) + ], 16)) : Te("", !0) ], 64))), 256)) ]))), 128)) ], 4) ], 2); } -const sV = /* @__PURE__ */ je(iV, [["render", lV]]); -const uV = Ve({ +const sV = /* @__PURE__ */ Ve(iV, [["render", lV]]); +const uV = Be({ name: "FcValue", props: ["modelValue"], inject: ["designer"], @@ -50074,7 +50084,7 @@ const uV = Ve({ function fV(e, t, i, r, n, a) { return H(), ae("div", dV, le(e.t("com.fcValue.empty")), 1); } -const cV = /* @__PURE__ */ je(uV, [["render", fV]]), pV = Ve({ +const cV = /* @__PURE__ */ Ve(uV, [["render", fV]]), pV = Be({ name: "FcSlotView", inheritAttrs: !1, inject: ["parentFC", "designer"], @@ -50099,7 +50109,7 @@ const cV = /* @__PURE__ */ je(uV, [["render", fV]]), pV = Ve({ }, render() { const e = this.getSlot(); - return e ? W(Me, {}, [e(this.slotArg)]) : W("div", { + return e ? z(Me, {}, [e(this.slotArg)]) : z("div", { class: "_fd-slot-empty", innerHTML: this.designer.setupState.t("com.fcSlot.empty", { tag: "<template #" + this.slotName + " />" }) }); @@ -50116,7 +50126,7 @@ const cV = /* @__PURE__ */ je(uV, [["render", fV]]), pV = Ve({ } } }); -const hV = Ve({ +const hV = Be({ name: "FcJsonView", inheritAttrs: !1, inject: ["designer"], @@ -50168,7 +50178,7 @@ const hV = Ve({ var e, t; if (this.rule) { let i = null; - return this.type === "object" ? i = W(this.fcSubForm, { + return this.type === "object" ? i = z(this.fcSubForm, { key: 2, ...this.$attrs, modelValue: this.modelValue, @@ -50179,7 +50189,7 @@ const hV = Ve({ formCreateInject: this.formCreateInject, rule: this.formRule, options: this.formOptions - }) : this.type === "array" ? i = W(this.fcGroup, { + }) : this.type === "array" ? i = z(this.fcGroup, { key: 3, ...this.$attrs, modelValue: this.modelValue, @@ -50193,15 +50203,15 @@ const hV = Ve({ formCreateInject: this.formCreateInject, rule: this.formRule, options: this.formOptions - }) : i = W(Me, { + }) : i = z(Me, { key: 1 - }, [(t = (e = this.$slots) == null ? void 0 : e.default) == null ? void 0 : t.call(e)]), X("div", { + }, [(t = (e = this.$slots) == null ? void 0 : e.default) == null ? void 0 : t.call(e)]), J("div", { key: this.uni, style: { "--fc-json-mask": `'${this.designer.setupState.t("com.fcJson.name")}'` }, class: "_fd-json-container" }, [i]); } else - return X("div", { + return J("div", { class: "_fd-slot-empty", innerHTML: this.designer.setupState.t("com.fcJson.empty", { tag: "JSON" }) }); @@ -50226,7 +50236,7 @@ const hV = Ve({ this.rule && this.loadRule(); } }); -const mV = Ve({ +const mV = Be({ name: "LanguageInput", inject: ["designer"], emits: ["update:modelValue", "blur", "change"], @@ -50282,9 +50292,9 @@ const mV = Ve({ } }), vV = { class: "_fd-language-list" }, gV = { class: "_fd-language-header" }, yV = { class: "_fd-language-title" }, bV = { class: "_fd-language-name" }, _V = ["onClick"]; function wV(e, t, i, r, n, a) { - const s = ne("el-popover"), u = ne("el-input"); - return H(), he(u, { - class: Xe(["_fd-language-input", { "is-variable": e.isVar }]), + const s = ee("el-popover"), u = ee("el-input"); + return H(), me(u, { + class: qe(["_fd-language-input", { "is-variable": e.isVar }]), placeholder: e.placeholder, disabled: e.disabled, modelValue: e.modelValue, @@ -50295,7 +50305,7 @@ function wV(e, t, i, r, n, a) { e.showLanguage !== !1 ? { name: "append", fn: N(() => [ - W(s, { + z(s, { placement: "bottom-end", width: 300, "hide-after": 0, @@ -50304,30 +50314,30 @@ function wV(e, t, i, r, n, a) { "popper-class": "_fd-language-popover" }, { reference: N(() => t[2] || (t[2] = [ - X("i", { class: "fc-icon icon-language" }, null, -1) + J("i", { class: "fc-icon icon-language" }, null, -1) ])), default: N(() => [ - X("div", vV, [ - X("div", gV, [ - X("div", yV, [ + J("div", vV, [ + J("div", gV, [ + J("div", yV, [ be(le(e.t("language.select")), 1), - X("i", { + J("i", { class: "fc-icon icon-setting", onClick: t[0] || (t[0] = (...d) => e.openConfig && e.openConfig(...d)) }) ]), - X("div", bV, [ - (H(!0), ae(Me, null, We(e.localeList, (d) => (H(), ae("div", { + J("div", bV, [ + (H(!0), ae(Me, null, ze(e.localeList, (d) => (H(), ae("div", { key: d.value }, le(d.label), 1))), 128)) ]) ]), - (H(!0), ae(Me, null, We(e.language, (d) => (H(), ae("div", { + (H(!0), ae(Me, null, ze(e.language, (d) => (H(), ae("div", { key: d.key, class: "_fd-language-item", onClick: (p) => e.clickLang(d.key) }, [ - (H(!0), ae(Me, null, We(e.localeList, (p) => (H(), ae("div", { + (H(!0), ae(Me, null, ze(e.localeList, (p) => (H(), ae("div", { key: p.value }, le(d[p.value] || "-"), 1))), 128)) ], 8, _V))), 128)) @@ -50340,8 +50350,8 @@ function wV(e, t, i, r, n, a) { } : void 0 ]), 1032, ["class", "placeholder", "disabled", "modelValue", "onUpdate:modelValue", "size"]); } -const zp = /* @__PURE__ */ je(mV, [["render", wV]]); -const AV = Ve({ +const zp = /* @__PURE__ */ Ve(mV, [["render", wV]]); +const AV = Be({ name: "Validate", inject: ["designer"], emits: ["update:modelValue"], @@ -50416,36 +50426,36 @@ const AV = Ve({ } }), CV = { class: "_fd-validate" }, SV = { class: "_fd-validate-item" }, EV = { class: "_fd-validate-title" }, xV = ["onClick"]; function TV(e, t, i, r, n, a) { - const s = ne("el-option"), u = ne("el-select"), d = ne("el-form-item"), p = ne("el-col"), h = ne("PatternInput"), g = ne("FnInput"), _ = ne("el-input-number"), S = ne("LanguageInput"), b = ne("el-row"), A = ne("el-button"), y = ne("el-dropdown-item"), m = ne("el-dropdown-menu"), w = ne("el-dropdown"); + const s = ee("el-option"), u = ee("el-select"), d = ee("el-form-item"), p = ee("el-col"), h = ee("PatternInput"), g = ee("FnInput"), _ = ee("el-input-number"), S = ee("LanguageInput"), b = ee("el-row"), A = ee("el-button"), y = ee("el-dropdown-item"), m = ee("el-dropdown-menu"), w = ee("el-dropdown"); return H(), ae("div", CV, [ - (H(!0), ae(Me, null, We(e.validate, (E, x) => (H(), ae("div", SV, [ - X("div", EV, [ - X("div", null, [ - X("span", null, le(x + 1), 1), + (H(!0), ae(Me, null, ze(e.validate, (E, x) => (H(), ae("div", SV, [ + J("div", EV, [ + J("div", null, [ + J("span", null, le(x + 1), 1), be(" " + le(e.modes[E.mode]), 1) ]), - X("i", { + J("i", { class: "fc-icon icon-delete-circle", onClick: (k) => e.remove(x) }, null, 8, xV) ]), - W(b, null, { + z(b, null, { default: N(() => [ - W(p, { + z(p, { span: e.getSpan(E) }, { default: N(() => [ - W(d, { + z(d, { label: e.t("validate.mode") }, { default: N(() => [ - W(u, { + z(u, { modelValue: E.trigger, "onUpdate:modelValue": (k) => E.trigger = k, onChange: e.onInput }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.triggers, (k) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.triggers, (k) => (H(), me(s, { key: k.value, label: k.label, value: k.value @@ -50459,20 +50469,20 @@ function TV(e, t, i, r, n, a) { ]), _: 2 }, 1032, ["span"]), - W(p, { + z(p, { span: e.getSpan(E) }, { default: N(() => [ - W(d, { + z(d, { label: e.modes[E.mode] }, { default: N(() => [ - E.mode === "pattern" ? (H(), he(h, { + E.mode === "pattern" ? (H(), me(h, { key: 0, modelValue: E[E.mode], "onUpdate:modelValue": (k) => E[E.mode] = k, onChange: e.onInput - }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : E.mode === "validator" ? (H(), he(g, { + }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : E.mode === "validator" ? (H(), me(g, { key: 1, modelValue: E[E.mode], "onUpdate:modelValue": (k) => E[E.mode] = k, @@ -50484,7 +50494,7 @@ function TV(e, t, i, r, n, a) { be(le(e.t("validate.modes.validator")), 1) ]), _: 2 - }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (H(), he(_, { + }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (H(), me(_, { key: 2, modelValue: E[E.mode], "onUpdate:modelValue": (k) => E[E.mode] = k, @@ -50496,13 +50506,13 @@ function TV(e, t, i, r, n, a) { ]), _: 2 }, 1032, ["span"]), - W(p, { span: 24 }, { + z(p, { span: 24 }, { default: N(() => [ - W(d, { + z(d, { label: e.t("validate.message") }, { default: N(() => [ - W(S, { + z(S, { modelValue: E.message, "onUpdate:modelValue": (k) => E.message = k, placeholder: e.t("validate.requiredPlaceholder"), @@ -50518,21 +50528,21 @@ function TV(e, t, i, r, n, a) { _: 2 }, 1024) ]))), 256)), - W(w, { + z(w, { trigger: "click", size: "default", "popper-class": "_fd-validate-pop", onCommand: e.handleCommand }, { dropdown: N(() => [ - W(m, null, { + z(m, null, { default: N(() => [ - (H(!0), ae(Me, null, We(e.modes, (E, x) => (H(), he(y, { + (H(!0), ae(Me, null, ze(e.modes, (E, x) => (H(), me(y, { command: x, key: x }, { default: N(() => [ - X("div", null, le(E), 1) + J("div", null, le(E), 1) ]), _: 2 }, 1032, ["command"]))), 128)) @@ -50541,7 +50551,7 @@ function TV(e, t, i, r, n, a) { }) ]), default: N(() => [ - W(A, { + z(A, { class: "_fd-validate-btn _fd-plain-button", plain: "", size: "small" @@ -50556,8 +50566,8 @@ function TV(e, t, i, r, n, a) { }, 8, ["onCommand"]) ]); } -const kV = /* @__PURE__ */ je(AV, [["render", TV]]); -const OV = Ve({ +const kV = /* @__PURE__ */ Ve(AV, [["render", TV]]); +const OV = Be({ name: "Required", components: { LanguageInput: zp }, emits: ["update:modelValue"], @@ -50597,22 +50607,22 @@ const OV = Ve({ } }), $V = { class: "_fd-required" }; function RV(e, t, i, r, n, a) { - const s = ne("el-switch"), u = ne("LanguageInput"); + const s = ee("el-switch"), u = ee("LanguageInput"); return H(), ae("div", $V, [ - W(s, { + z(s, { modelValue: e.required, "onUpdate:modelValue": t[0] || (t[0] = (d) => e.required = d) }, null, 8, ["modelValue"]), - e.required ? (H(), he(u, { + e.required ? (H(), me(u, { key: 0, modelValue: e.requiredMsg, "onUpdate:modelValue": t[1] || (t[1] = (d) => e.requiredMsg = d), placeholder: e.t("validate.requiredPlaceholder") - }, null, 8, ["modelValue", "placeholder"])) : ke("", !0) + }, null, 8, ["modelValue", "placeholder"])) : Te("", !0) ]); } -const DV = /* @__PURE__ */ je(OV, [["render", RV]]); -const IV = Ve({ +const DV = /* @__PURE__ */ Ve(OV, [["render", RV]]); +const IV = Be({ name: "TreeOptions", components: { ValueInput: wu }, emits: ["update:modelValue"], @@ -50689,9 +50699,9 @@ const IV = Ve({ } }), FV = { class: "_fd-tree-opt" }, PV = { class: "_fd-tree-opt-node" }, MV = ["onClick"], LV = ["onClick"], NV = ["onClick"], BV = ["onClick"], VV = ["onClick"], jV = ["onClick"]; function UV(e, t, i, r, n, a) { - const s = ne("el-input"), u = ne("ValueInput"), d = ne("el-tree"), p = ne("el-checkbox"); + const s = ee("el-input"), u = ee("ValueInput"), d = ee("el-tree"), p = ee("el-checkbox"); return H(), ae("div", FV, [ - (H(), he(d, { + (H(), me(d, { data: e.value, "node-key": "index", key: e.checked ? "1" : "2", @@ -50699,8 +50709,8 @@ function UV(e, t, i, r, n, a) { "expand-on-click-node": !1 }, { default: N(({ node: h, data: g }) => [ - X("div", PV, [ - e.checked ? (H(), he(s, { + J("div", PV, [ + e.checked ? (H(), me(s, { key: 1, class: "_fd-tree-opt-last _label", modelValue: g[e.keyValue], @@ -50708,34 +50718,34 @@ function UV(e, t, i, r, n, a) { onBlur: e.change }, { append: N(() => [ - X("div", { + J("div", { class: "_fd-tree-opt-btn", onClick: (_) => e.add(h, g) }, t[4] || (t[4] = [ - X("i", { class: "fc-icon icon-add" }, null, -1) + J("i", { class: "fc-icon icon-add" }, null, -1) ]), 8, BV), - X("div", { + J("div", { class: "_fd-tree-opt-btn", onClick: (_) => e.append(g) }, t[5] || (t[5] = [ - X("i", { class: "fc-icon icon-add-child" }, null, -1) + J("i", { class: "fc-icon icon-add-child" }, null, -1) ]), 8, VV), - X("div", { + J("div", { class: "_fd-tree-opt-btn _fd-tree-opt-danger", onClick: (_) => e.remove(h, g) }, t[6] || (t[6] = [ - X("i", { class: "fc-icon icon-delete" }, null, -1) + J("i", { class: "fc-icon icon-delete" }, null, -1) ]), 8, jV) ]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onBlur"])) : (H(), ae(Me, { key: 0 }, [ - W(s, { + z(s, { class: "_fd-tree-opt-first", modelValue: g[e.overColumns.label], "onUpdate:modelValue": (_) => g[e.overColumns.label] = _, onBlur: e.change }, null, 8, ["modelValue", "onUpdate:modelValue", "onBlur"]), - W(u, { + z(u, { class: "_fd-tree-opt-last", modelValue: g[e.overColumns.value], "onUpdate:modelValue": (_) => g[e.overColumns.value] = _, @@ -50743,23 +50753,23 @@ function UV(e, t, i, r, n, a) { onChangeType: e.change }, { append: N(() => [ - X("div", { + J("div", { class: "_fd-tree-opt-btn", onClick: (_) => e.add(h, g) }, t[1] || (t[1] = [ - X("i", { class: "fc-icon icon-add" }, null, -1) + J("i", { class: "fc-icon icon-add" }, null, -1) ]), 8, MV), - X("div", { + J("div", { class: "_fd-tree-opt-btn", onClick: (_) => e.append(g) }, t[2] || (t[2] = [ - X("i", { class: "fc-icon icon-add-child" }, null, -1) + J("i", { class: "fc-icon icon-add-child" }, null, -1) ]), 8, LV), - X("div", { + J("div", { class: "_fd-tree-opt-btn _fd-tree-opt-danger", onClick: (_) => e.remove(h, g) }, t[3] || (t[3] = [ - X("i", { class: "fc-icon icon-delete" }, null, -1) + J("i", { class: "fc-icon icon-delete" }, null, -1) ]), 8, NV) ]), _: 2 @@ -50769,21 +50779,21 @@ function UV(e, t, i, r, n, a) { ]), _: 1 }, 8, ["data"])), - e.keyValue ? (H(), he(p, { + e.keyValue ? (H(), me(p, { key: 0, modelValue: e.checked, "onUpdate:modelValue": t[0] || (t[0] = (h) => e.checked = h), label: e.t("tableOptions.keyValue") - }, null, 8, ["modelValue", "label"])) : ke("", !0) + }, null, 8, ["modelValue", "label"])) : Te("", !0) ]); } -const HV = /* @__PURE__ */ je(IV, [["render", UV]]); +const HV = /* @__PURE__ */ Ve(IV, [["render", UV]]); const e1 = (e) => { const t = []; return e.forEach((i) => { i.field && t.push(i.field), i.children && t.push(...e1(i.children)); }), t; -}, zV = Ve({ +}, zV = Be({ name: "StepForm", props: { stepsProps: Object, @@ -50878,15 +50888,15 @@ const e1 = (e) => { } }), WV = { class: "_fc-step-form" }; function GV(e, t, i, r, n, a) { - const s = ne("el-step"), u = ne("el-steps"), d = ne("el-button"), p = ne("el-col"), h = ne("el-row"); + const s = ee("el-step"), u = ee("el-steps"), d = ee("el-button"), p = ee("el-col"), h = ee("el-row"); return H(), ae("div", WV, [ - W(u, jt({ active: e.active }, e.stepsProps), { + z(u, jt({ active: e.active }, e.stepsProps), { default: N(() => [ - (H(!0), ae(Me, null, We(e.steps, (g) => (H(), he(s, jt({ ref_for: !0 }, g.props), null, 16))), 256)) + (H(!0), ae(Me, null, ze(e.steps, (g) => (H(), me(s, jt({ ref_for: !0 }, g.props), null, 16))), 256)) ]), _: 1 }, 16, ["active"]), - (H(), he(ar(e.Form), { + (H(), me(ar(e.Form), { option: e.options, rule: e.cacheRule, extendOption: !0, @@ -50895,14 +50905,14 @@ function GV(e, t, i, r, n, a) { onEmitEvent: e.$emit, "onUpdate:modelValue": e.formData }, null, 40, ["option", "rule", "modelValue", "onUpdate:api", "onEmitEvent", "onUpdate:modelValue"])), - W(h, null, { + z(h, null, { default: N(() => [ - W(p, { + z(p, { span: 24, style: { display: "flex", "justify-content": "flex-end", "margin-top": "15px" } }, { default: N(() => [ - e.active > 0 ? (H(), he(d, { + e.active > 0 ? (H(), me(d, { key: 0, onClick: e.onPrev }, { @@ -50910,8 +50920,8 @@ function GV(e, t, i, r, n, a) { be(le(e.formCreateInject.t("prevStep") || "\u4E0A\u4E00\u6B65"), 1) ]), _: 1 - }, 8, ["onClick"])) : ke("", !0), - e.active < e.cacheRule.length - 1 ? (H(), he(d, { + }, 8, ["onClick"])) : Te("", !0), + e.active < e.cacheRule.length - 1 ? (H(), me(d, { key: 1, type: "primary", onClick: e.onNext @@ -50920,8 +50930,8 @@ function GV(e, t, i, r, n, a) { be(le(e.formCreateInject.t("nextStep") || "\u4E0B\u4E00\u6B65"), 1) ]), _: 1 - }, 8, ["onClick"])) : ke("", !0), - e.submitBtn !== !1 && e.active === e.cacheRule.length - 1 ? (H(), he(d, { + }, 8, ["onClick"])) : Te("", !0), + e.submitBtn !== !1 && e.active === e.cacheRule.length - 1 ? (H(), me(d, { key: 2, class: "fc-clock", type: "primary", @@ -50931,7 +50941,7 @@ function GV(e, t, i, r, n, a) { be(le(e.formCreateInject.t("submit") || "\u63D0\u4EA4"), 1) ]), _: 1 - }, 8, ["onClick"])) : ke("", !0) + }, 8, ["onClick"])) : Te("", !0) ]), _: 1 }) @@ -50940,8 +50950,8 @@ function GV(e, t, i, r, n, a) { }) ]); } -const KV = /* @__PURE__ */ je(zV, [["render", GV]]); -const YV = Ve({ +const KV = /* @__PURE__ */ Ve(zV, [["render", GV]]); +const YV = Be({ name: "StepFormView", props: { stepsProps: Object, @@ -50992,11 +51002,11 @@ const YV = Ve({ } }), QV = { class: "_fd-step-form" }; function JV(e, t, i, r, n, a) { - const s = ne("el-step"), u = ne("el-steps"), d = ne("el-button"), p = ne("el-col"), h = ne("el-row"); + const s = ee("el-step"), u = ee("el-steps"), d = ee("el-button"), p = ee("el-col"), h = ee("el-row"); return H(), ae("div", QV, [ - W(u, jt({ active: e.active }, e.stepsProps), { + z(u, jt({ active: e.active }, e.stepsProps), { default: N(() => [ - (H(!0), ae(Me, null, We(e.formCreateInject.children, (g, _) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.formCreateInject.children, (g, _) => (H(), me(s, { key: g._fc_id + _, onClick: vt((S) => e.change(_), ["stop"]), title: g.props.title, @@ -51006,14 +51016,14 @@ function JV(e, t, i, r, n, a) { _: 1 }, 16, ["active"]), kt(e.$slots, "default"), - W(h, null, { + z(h, null, { default: N(() => [ - W(p, { + z(p, { span: 24, style: { display: "flex", "justify-content": "flex-end", padding: "15px" } }, { default: N(() => [ - e.active > 0 ? (H(), he(d, { + e.active > 0 ? (H(), me(d, { key: 0, onClick: vt(e.onPrev, ["stop"]) }, { @@ -51021,8 +51031,8 @@ function JV(e, t, i, r, n, a) { be(le(e.formCreateInject.t("prevStep") || "\u4E0A\u4E00\u6B65"), 1) ]), _: 1 - }, 8, ["onClick"])) : ke("", !0), - e.active < e.stepItemRef.length - 1 ? (H(), he(d, { + }, 8, ["onClick"])) : Te("", !0), + e.active < e.stepItemRef.length - 1 ? (H(), me(d, { key: 1, type: "primary", onClick: vt(e.onNext, ["stop"]) @@ -51031,7 +51041,7 @@ function JV(e, t, i, r, n, a) { be(le(e.formCreateInject.t("nextStep") || "\u4E0B\u4E00\u6B65"), 1) ]), _: 1 - }, 8, ["onClick"])) : ke("", !0) + }, 8, ["onClick"])) : Te("", !0) ]), _: 1 }) @@ -51040,8 +51050,8 @@ function JV(e, t, i, r, n, a) { }) ]); } -const XV = /* @__PURE__ */ je(YV, [["render", JV]]); -const ZV = Ve({ +const XV = /* @__PURE__ */ Ve(YV, [["render", JV]]); +const ZV = Be({ name: "TableFormView", data() { return {}; @@ -51060,8 +51070,8 @@ function n6(e, t, i, r, n, a) { ])) : (H(), ae("div", t6)) ]); } -const t1 = /* @__PURE__ */ je(ZV, [["render", n6]]); -const i6 = Ve({ +const t1 = /* @__PURE__ */ Ve(ZV, [["render", n6]]); +const i6 = Be({ name: "NestedTableFormView", inject: ["designer"], data() { @@ -51088,13 +51098,13 @@ function u6(e, t, i, r, n, a) { kt(e.$slots, "default") ])) : (H(), ae("div", a6)), e.$slots.default ? (H(), ae("div", l6, [ - X("div", s6, le(e.t("com.nestedSubTableForm.name")), 1), + J("div", s6, le(e.t("com.nestedSubTableForm.name")), 1), kt(e.$slots, "nested") - ])) : ke("", !0) + ])) : Te("", !0) ]); } -const d6 = /* @__PURE__ */ je(i6, [["render", u6]]); -const f6 = Ve({ +const d6 = /* @__PURE__ */ Ve(i6, [["render", u6]]); +const f6 = Be({ name: "InfiniteTableFormView", inject: ["designer"], data() { @@ -51119,8 +51129,8 @@ function m6(e, t, i, r, n, a) { ])) : (H(), ae("div", h6)) ]); } -const v6 = /* @__PURE__ */ je(f6, [["render", m6]]); -const g6 = Ve({ +const v6 = /* @__PURE__ */ Ve(f6, [["render", m6]]); +const g6 = Be({ name: "TableFormColumnView", props: { label: String, @@ -51146,17 +51156,17 @@ function w6(e, t, i, r, n, a) { class: "_fd-tf-col", style: wn(e.colStyle) }, [ - X("div", y6, [ - e.required ? (H(), ae("span", b6, "*")) : ke("", !0), + J("div", y6, [ + e.required ? (H(), ae("span", b6, "*")) : Te("", !0), be(le(e.label || ""), 1) ]), - X("div", _6, [ + J("div", _6, [ kt(e.$slots, "default") ]) ], 4); } -const n1 = /* @__PURE__ */ je(g6, [["render", w6]]); -const A6 = Ve({ +const n1 = /* @__PURE__ */ Ve(g6, [["render", w6]]); +const A6 = Be({ name: "StepFormItemView", props: { title: String, @@ -51178,15 +51188,15 @@ const A6 = Ve({ }), C6 = { class: "_fd-step-form-item" }; function S6(e, t, i, r, n, a) { return H(), ae("div", C6, [ - bn(X("div", null, [ + bn(J("div", null, [ kt(e.$slots, "default") ], 512), [ [Sn, e.stepForm.activeId === e.formCreateInject.rule._fc_id] ]) ]); } -const E6 = /* @__PURE__ */ je(A6, [["render", S6]]); -const x6 = Ve({ +const E6 = /* @__PURE__ */ Ve(A6, [["render", S6]]); +const x6 = Be({ name: "FcDialog", inject: ["designer"], inheritAttrs: !1, @@ -51213,26 +51223,26 @@ const x6 = Ve({ style: { right: "48px" } }, $6 = { class: "el-dialog__body" }, R6 = { class: "el-dialog__footer" }; function D6(e, t, i, r, n, a) { - const s = ne("el-button"); + const s = ee("el-button"); return H(), ae("div", { class: "_fd-dialog el-dialog", style: wn(`--fc-dialog-height:${e.dragConHeight - 23}px;`) }, [ - X("header", T6, [ - X("span", k6, le(e.title), 1), - e.fullscreen ? ke("", !0) : (H(), ae("button", O6, t[0] || (t[0] = [ - X("i", { class: "fc-icon icon-page-max" }, null, -1) + J("header", T6, [ + J("span", k6, le(e.title), 1), + e.fullscreen ? Te("", !0) : (H(), ae("button", O6, t[0] || (t[0] = [ + J("i", { class: "fc-icon icon-page-max" }, null, -1) ]))), - t[1] || (t[1] = X("button", { + t[1] || (t[1] = J("button", { class: "el-dialog__headerbtn", type: "button" }, [ - X("i", { class: "el-icon el-dialog__close" }, [ - X("svg", { + J("i", { class: "el-icon el-dialog__close" }, [ + J("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ - X("path", { + J("path", { fill: "currentColor", d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z" }) @@ -51240,29 +51250,29 @@ function D6(e, t, i, r, n, a) { ]) ], -1)) ]), - X("div", $6, [ + J("div", $6, [ kt(e.$slots, "default") ]), - X("footer", R6, [ + J("footer", R6, [ e.footer !== !1 ? (H(), ae(Me, { key: 0 }, [ - W(s, null, { + z(s, null, { default: N(() => [ be(le(e.t("props.close")), 1) ]), _: 1 }), - W(s, { type: "primary" }, { + z(s, { type: "primary" }, { default: N(() => [ be(le(e.t("props.ok")), 1) ]), _: 1 }) - ], 64)) : ke("", !0) + ], 64)) : Te("", !0) ]) ], 4); } -const I6 = /* @__PURE__ */ je(x6, [["render", D6]]); -const F6 = Ve({ +const I6 = /* @__PURE__ */ Ve(x6, [["render", D6]]); +const F6 = Be({ name: "FcDialog", inject: ["designer"], inheritAttrs: !1, @@ -51288,30 +51298,30 @@ const F6 = Ve({ type: "button" }, L6 = { class: "el-drawer__body" }, N6 = { class: "el-drawer__footer" }; function B6(e, t, i, r, n, a) { - const s = ne("el-button"); + const s = ee("el-button"); return H(), ae("div", { class: "el-drawer _fd-drawer", style: wn(`--fc-drawer-height:${e.dragConHeight - 23}px;`) }, [ - t[2] || (t[2] = X("span", { + t[2] || (t[2] = J("span", { class: "el-drawer__sr-focus", tabindex: "-1" }, null, -1)), - X("header", P6, [ - X("span", null, le(e.title), 1), + J("header", P6, [ + J("span", null, le(e.title), 1), e.size !== "100%" ? (H(), ae("button", M6, t[0] || (t[0] = [ - X("i", { class: "fc-icon icon-page-max" }, null, -1) - ]))) : ke("", !0), - t[1] || (t[1] = X("button", { + J("i", { class: "fc-icon icon-page-max" }, null, -1) + ]))) : Te("", !0), + t[1] || (t[1] = J("button", { class: "el-drawer__close-btn", type: "button" }, [ - X("i", { class: "el-icon el-drawer__close" }, [ - X("svg", { + J("i", { class: "el-icon el-drawer__close" }, [ + J("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ - X("path", { + J("path", { fill: "currentColor", d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z" }) @@ -51319,29 +51329,29 @@ function B6(e, t, i, r, n, a) { ]) ], -1)) ]), - X("div", L6, [ + J("div", L6, [ kt(e.$slots, "default") ]), - X("div", N6, [ + J("div", N6, [ e.footer !== !1 ? (H(), ae(Me, { key: 0 }, [ - W(s, null, { + z(s, null, { default: N(() => [ be(le(e.t("props.close")), 1) ]), _: 1 }), - W(s, { type: "primary" }, { + z(s, { type: "primary" }, { default: N(() => [ be(le(e.t("props.ok")), 1) ]), _: 1 }) - ], 64)) : ke("", !0) + ], 64)) : Te("", !0) ]) ], 4); } -const V6 = /* @__PURE__ */ je(F6, [["render", B6]]); -const j6 = Ve({ +const V6 = /* @__PURE__ */ Ve(F6, [["render", B6]]); +const j6 = Be({ name: "FcDialog", emits: ["confirm", "submit", "validateFail", "update:modelValue"], props: { @@ -51415,15 +51425,15 @@ const j6 = Ve({ type: "button" }; function z6(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-drawer"); - return H(), he(u, jt({ class: "_fc-drawer" }, e.$attrs, { + const s = ee("el-button"), u = ee("el-drawer"); + return H(), me(u, jt({ class: "_fc-drawer" }, e.$attrs, { size: e.max ? "100%" : e.size, modelValue: e.visible, "onUpdate:modelValue": t[3] || (t[3] = (d) => e.visible = d), destroyOnClose: "" }), { header: N(() => [ - X("span", U6, le(e.title), 1), + J("span", U6, le(e.title), 1), e.size !== "100%" ? (H(), ae("button", H6, [ e.max ? (H(), ae("i", { key: 0, @@ -51434,17 +51444,17 @@ function z6(e, t, i, r, n, a) { class: "fc-icon icon-page-max", onClick: t[1] || (t[1] = (d) => e.max = !0) })) - ])) : ke("", !0) + ])) : Te("", !0) ]), footer: N(() => [ e.footer !== !1 ? (H(), ae(Me, { key: 0 }, [ - W(s, { onClick: e.close }, { + z(s, { onClick: e.close }, { default: N(() => [ be(le(e.formCreateInject.t("close") || "\u5173\u95ED"), 1) ]), _: 1 }, 8, ["onClick"]), - W(s, { + z(s, { type: "primary", onClick: e.handleConfirm }, { @@ -51453,10 +51463,10 @@ function z6(e, t, i, r, n, a) { ]), _: 1 }, 8, ["onClick"]) - ], 64)) : ke("", !0) + ], 64)) : Te("", !0) ]), default: N(() => [ - (H(), he(ar(e.Form), { + (H(), me(ar(e.Form), { option: e.formOptions, rule: e.formRule, extendOption: !0, @@ -51471,8 +51481,8 @@ function z6(e, t, i, r, n, a) { _: 1 }, 16, ["size", "modelValue"]); } -const W6 = /* @__PURE__ */ je(j6, [["render", z6]]); -const G6 = Ve({ +const W6 = /* @__PURE__ */ Ve(j6, [["render", z6]]); +const G6 = Be({ name: "FcCell", inheritAttrs: !1, data() { @@ -51506,25 +51516,25 @@ const G6 = Ve({ function K6(e, t, i, r, n, a) { return H(), ae("div", { ref: "cell", - class: Xe(["_fd-cell", { "is-new": e.isNew }]), + class: qe(["_fd-cell", { "is-new": e.isNew }]), style: wn(e.style) }, [ - X("div", jt(e.$attrs, { style: { height: "100%", width: "100%" } }), [ + J("div", jt(e.$attrs, { style: { height: "100%", width: "100%" } }), [ kt(e.$slots, "default") ], 16) ], 6); } -const Y6 = /* @__PURE__ */ je(G6, [["render", K6]]); -const Q6 = Ve({ +const Y6 = /* @__PURE__ */ Ve(G6, [["render", K6]]); +const Q6 = Be({ name: "fcRow", mounted() { } }); function J6(e, t, i, r, n, a) { - const s = ne("el-col"); - return H(), he(s, { span: 24 }, { + const s = ee("el-col"); + return H(), me(s, { span: 24 }, { default: N(() => [ - X("div", jt({ + J("div", jt({ class: ["_fd-row el-row", { "_fc-child-empty": !e.$slots.default }] }, e.$attrs), [ kt(e.$slots, "default") @@ -51533,8 +51543,8 @@ function J6(e, t, i, r, n, a) { _: 3 }); } -const X6 = /* @__PURE__ */ je(Q6, [["render", J6]]); -const Z6 = Ve({ +const X6 = /* @__PURE__ */ Ve(Q6, [["render", J6]]); +const Z6 = Be({ name: "HideSwitch", props: { modelValue: [String, Boolean, Number], @@ -51563,20 +51573,20 @@ const Z6 = Ve({ }); function q6(e, t, i, r, n, a) { return H(), ae("div", { - class: Xe(["_fd-hide-config", { disabled: !!e.disabled, active: e.modelValue === e.activeValue }]), + class: qe(["_fd-hide-config", { disabled: !!e.disabled, active: e.modelValue === e.activeValue }]), onClick: t[0] || (t[0] = (...s) => e.onInput && e.onInput(...s)) }, [ e.modelValue === e.activeValue ? (H(), ae(Me, { key: 0 }, [ - t[1] || (t[1] = X("i", { class: "fc-icon icon-eye" }, null, -1)), + t[1] || (t[1] = J("i", { class: "fc-icon icon-eye" }, null, -1)), be(" " + le(e.t("props.show")), 1) ], 64)) : (H(), ae(Me, { key: 1 }, [ - t[2] || (t[2] = X("i", { class: "fc-icon icon-eye-close" }, null, -1)), + t[2] || (t[2] = J("i", { class: "fc-icon icon-eye-close" }, null, -1)), be(" " + le(e.t("props.hide")), 1) ], 64)) ], 2); } -const ej = /* @__PURE__ */ je(Z6, [["render", q6]]); -const tj = Ve({ +const ej = /* @__PURE__ */ Ve(Z6, [["render", q6]]); +const tj = Be({ name: "SpanInput", props: { modelValue: [Number, String] @@ -51606,13 +51616,13 @@ const tj = Ve({ } }); function nj(e, t, i, r, n, a) { - const s = ne("el-radio-button"), u = ne("el-radio-group"); - return H(), he(u, { + const s = ee("el-radio-button"), u = ee("el-radio-group"); + return H(), me(u, { modelValue: e.modelValue, class: "_fd-span-input" }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.layout, (d) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.layout, (d) => (H(), me(s, { value: d.value, label: d.value, key: d.value, @@ -51627,8 +51637,8 @@ function nj(e, t, i, r, n, a) { _: 1 }, 8, ["modelValue"]); } -const ij = /* @__PURE__ */ je(tj, [["render", nj]]); -const rj = Ve({ +const ij = /* @__PURE__ */ Ve(tj, [["render", nj]]); +const rj = Be({ name: "FcCity", props: { modelValue: Array, @@ -51718,9 +51728,9 @@ const rj = Ve({ } }), oj = { class: "_fc-city" }; function aj(e, t, i, r, n, a) { - const s = ne("el-option"), u = ne("el-select"); + const s = ee("el-option"), u = ee("el-select"); return H(), ae("div", oj, [ - W(u, { + z(u, { disabled: e.disabled, clearable: e.clearable, modelValue: e.value.p, @@ -51728,14 +51738,14 @@ function aj(e, t, i, r, n, a) { onChange: e.onInput }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.province, (d) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.province, (d) => (H(), me(s, { label: d.n, value: d.n }, null, 8, ["label", "value"]))), 256)) ]), _: 1 }, 8, ["disabled", "clearable", "modelValue", "onUpdate:modelValue", "onChange"]), - e.level > 1 && e.city.length ? (H(), he(u, { + e.level > 1 && e.city.length ? (H(), me(u, { key: 0, disabled: e.disabled, clearable: e.clearable, @@ -51744,14 +51754,14 @@ function aj(e, t, i, r, n, a) { onChange: e.onInput }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.city, (d) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.city, (d) => (H(), me(s, { label: d.n, value: d.n }, null, 8, ["label", "value"]))), 256)) ]), _: 1 - }, 8, ["disabled", "clearable", "modelValue", "onUpdate:modelValue", "onChange"])) : ke("", !0), - e.level > 2 && e.area.length ? (H(), he(u, { + }, 8, ["disabled", "clearable", "modelValue", "onUpdate:modelValue", "onChange"])) : Te("", !0), + e.level > 2 && e.area.length ? (H(), me(u, { key: 1, disabled: e.disabled, clearable: e.clearable, @@ -51760,17 +51770,17 @@ function aj(e, t, i, r, n, a) { onChange: e.onInput }, { default: N(() => [ - (H(!0), ae(Me, null, We(e.area, (d) => (H(), he(s, { + (H(!0), ae(Me, null, ze(e.area, (d) => (H(), me(s, { label: d.n, value: d.n }, null, 8, ["label", "value"]))), 256)) ]), _: 1 - }, 8, ["disabled", "clearable", "modelValue", "onChange"])) : ke("", !0) + }, 8, ["disabled", "clearable", "modelValue", "onChange"])) : Te("", !0) ]); } -const lj = /* @__PURE__ */ je(rj, [["render", aj]]); -const sj = Ve({ +const lj = /* @__PURE__ */ Ve(rj, [["render", aj]]); +const sj = Be({ name: "SignaturePad", emits: ["update:modelValue", "change", "remove"], data() { @@ -51821,14 +51831,14 @@ const sj = Ve({ height: "270px" }; function pj(e, t, i, r, n, a) { - const s = ne("el-button"), u = ne("el-dialog"); + const s = ee("el-button"), u = ee("el-dialog"); return H(), ae("div", uj, [ e.modelValue ? (H(), ae("div", dj, [ - X("i", { + J("i", { class: "fc-icon icon-delete2", onClick: t[0] || (t[0] = (...d) => e.remove && e.remove(...d)) }), - X("img", { + J("img", { src: e.modelValue, alt: "signature" }, null, 8, fj) @@ -51837,10 +51847,10 @@ function pj(e, t, i, r, n, a) { class: "_fc-signature-btn", onClick: t[1] || (t[1] = (d) => e.visible = !0) }, [ - t[4] || (t[4] = X("i", { class: "fc-icon icon-edit2" }, null, -1)), + t[4] || (t[4] = J("i", { class: "fc-icon icon-edit2" }, null, -1)), be(" " + le(e.formCreateInject.t("signaturePadTip") || "\u70B9\u51FB\u6DFB\u52A0\u624B\u5199\u7B7E\u540D"), 1) ])), - W(u, { + z(u, { class: "_fc-signature-dialog", title: e.formCreateInject.t("signaturePadTitle") || "\u8BF7\u5728\u865A\u7EBF\u6846\u5185\u4E66\u5199", modelValue: e.visible, @@ -51851,8 +51861,8 @@ function pj(e, t, i, r, n, a) { width: "640px" }, { footer: N(() => [ - X("div", null, [ - W(s, { + J("div", null, [ + z(s, { size: "default", onClick: t[2] || (t[2] = (d) => e.clear()) }, { @@ -51861,7 +51871,7 @@ function pj(e, t, i, r, n, a) { ]), _: 1 }), - W(s, { + z(s, { type: "primary", disabled: e.isEmpty, onClick: e.submit, @@ -51875,14 +51885,14 @@ function pj(e, t, i, r, n, a) { ]) ]), default: N(() => [ - X("canvas", cj, null, 512) + J("canvas", cj, null, 512) ]), _: 1 }, 8, ["title", "modelValue"]) ]); } -const hj = /* @__PURE__ */ je(sj, [["render", pj]]); -const mj = Ve({ +const hj = /* @__PURE__ */ Ve(sj, [["render", pj]]); +const mj = Be({ name: "FcDataSelectView", components: { FcInlineForm: jc, DataTable: Vc }, inject: ["designer"], @@ -51916,26 +51926,26 @@ const mj = Ve({ class: "el-dialog" }, gj = { class: "el-dialog__header show-close" }, yj = { class: "el-dialog__title" }; function bj(e, t, i, r, n, a) { - const s = ne("el-select"); + const s = ee("el-select"); return H(), ae("div", { class: "_fd-data-select", style: wn({ "--fc-drag-empty": `'${e.t("com.select.emptyText")}'` }) }, [ - W(s, { + z(s, { onClickCapture: e.handleClick, disabled: e.disabled, placeholder: e.placeholder }, null, 8, ["onClickCapture", "disabled", "placeholder"]), e.visible ? (H(), ae("div", vj, [ - X("header", gj, [ - X("span", yj, le(e.title), 1) + J("header", gj, [ + J("span", yj, le(e.title), 1) ]), kt(e.$slots, "search"), kt(e.$slots, "table") - ])) : ke("", !0) + ])) : Te("", !0) ], 4); } -const _j = /* @__PURE__ */ je(mj, [["render", bj]]); +const _j = /* @__PURE__ */ Ve(mj, [["render", bj]]); /*! * @form-create/component-wangeditor v3.2.14 * (c) 2018-2024 xaboy @@ -52059,7 +52069,7 @@ var i1 = { exports: {} }; }), n.d(r, "__await", function() { return k; }), n.d(r, "__asyncGenerator", function() { - return $; + return R; }), n.d(r, "__asyncDelegator", function() { return M; }), n.d(r, "__asyncValues", function() { @@ -52071,7 +52081,7 @@ var i1 = { exports: {} }; }), n.d(r, "__importDefault", function() { return V; }), n.d(r, "__classPrivateFieldGet", function() { - return K; + return W; }), n.d(r, "__classPrivateFieldSet", function() { return G; }); @@ -52089,107 +52099,107 @@ var i1 = { exports: {} }; OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ - var a = function(z, C) { - return a = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(F, q) { - F.__proto__ = q; - } || function(F, q) { + var a = function(U, F) { + return a = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, q) { + C.__proto__ = q; + } || function(C, q) { for (var Z in q) - Object.prototype.hasOwnProperty.call(q, Z) && (F[Z] = q[Z]); - }, a(z, C); + Object.prototype.hasOwnProperty.call(q, Z) && (C[Z] = q[Z]); + }, a(U, F); }; - function s(R, z) { - if (typeof z != "function" && z !== null) - throw new TypeError("Class extends value " + String(z) + " is not a constructor or null"); - a(R, z); - function C() { - this.constructor = R; + function s(I, U) { + if (typeof U != "function" && U !== null) + throw new TypeError("Class extends value " + String(U) + " is not a constructor or null"); + a(I, U); + function F() { + this.constructor = I; } - R.prototype = z === null ? Object.create(z) : (C.prototype = z.prototype, new C()); + I.prototype = U === null ? Object.create(U) : (F.prototype = U.prototype, new F()); } var u = function() { - return u = Object.assign || function(C) { - for (var F, q = 1, Z = arguments.length; q < Z; q++) { - F = arguments[q]; - for (var Y in F) - Object.prototype.hasOwnProperty.call(F, Y) && (C[Y] = F[Y]); + return u = Object.assign || function(F) { + for (var C, q = 1, Z = arguments.length; q < Z; q++) { + C = arguments[q]; + for (var Y in C) + Object.prototype.hasOwnProperty.call(C, Y) && (F[Y] = C[Y]); } - return C; + return F; }, u.apply(this, arguments); }; - function d(R, z) { - var C = {}; - for (var F in R) - Object.prototype.hasOwnProperty.call(R, F) && z.indexOf(F) < 0 && (C[F] = R[F]); - if (R != null && typeof Object.getOwnPropertySymbols == "function") - for (var q = 0, F = Object.getOwnPropertySymbols(R); q < F.length; q++) - z.indexOf(F[q]) < 0 && Object.prototype.propertyIsEnumerable.call(R, F[q]) && (C[F[q]] = R[F[q]]); - return C; + function d(I, U) { + var F = {}; + for (var C in I) + Object.prototype.hasOwnProperty.call(I, C) && U.indexOf(C) < 0 && (F[C] = I[C]); + if (I != null && typeof Object.getOwnPropertySymbols == "function") + for (var q = 0, C = Object.getOwnPropertySymbols(I); q < C.length; q++) + U.indexOf(C[q]) < 0 && Object.prototype.propertyIsEnumerable.call(I, C[q]) && (F[C[q]] = I[C[q]]); + return F; } - function p(R, z, C, F) { - var q = arguments.length, Z = q < 3 ? z : F === null ? F = Object.getOwnPropertyDescriptor(z, C) : F, Y; + function p(I, U, F, C) { + var q = arguments.length, Z = q < 3 ? U : C === null ? C = Object.getOwnPropertyDescriptor(U, F) : C, Y; if ((typeof Reflect > "u" ? "undefined" : yn(Reflect)) === "object" && typeof Reflect.decorate == "function") - Z = Reflect.decorate(R, z, C, F); + Z = Reflect.decorate(I, U, F, C); else - for (var J = R.length - 1; J >= 0; J--) - (Y = R[J]) && (Z = (q < 3 ? Y(Z) : q > 3 ? Y(z, C, Z) : Y(z, C)) || Z); - return q > 3 && Z && Object.defineProperty(z, C, Z), Z; + for (var ue = I.length - 1; ue >= 0; ue--) + (Y = I[ue]) && (Z = (q < 3 ? Y(Z) : q > 3 ? Y(U, F, Z) : Y(U, F)) || Z); + return q > 3 && Z && Object.defineProperty(U, F, Z), Z; } - function h(R, z) { - return function(C, F) { - z(C, F, R); + function h(I, U) { + return function(F, C) { + U(F, C, I); }; } - function g(R, z) { + function g(I, U) { if ((typeof Reflect > "u" ? "undefined" : yn(Reflect)) === "object" && typeof Reflect.metadata == "function") - return Reflect.metadata(R, z); + return Reflect.metadata(I, U); } - function _(R, z, C, F) { + function _(I, U, F, C) { function q(Z) { - return Z instanceof C ? Z : new C(function(Y) { + return Z instanceof F ? Z : new F(function(Y) { Y(Z); }); } - return new (C || (C = Promise))(function(Z, Y) { - function J(Te) { + return new (F || (F = Promise))(function(Z, Y) { + function ue(ke) { try { - pe(F.next(Te)); + pe(C.next(ke)); } catch (ge) { Y(ge); } } - function ve(Te) { + function te(ke) { try { - pe(F.throw(Te)); + pe(C.throw(ke)); } catch (ge) { Y(ge); } } - function pe(Te) { - Te.done ? Z(Te.value) : q(Te.value).then(J, ve); + function pe(ke) { + ke.done ? Z(ke.value) : q(ke.value).then(ue, te); } - pe((F = F.apply(R, z || [])).next()); + pe((C = C.apply(I, U || [])).next()); }); } - function S(R, z) { - var C = { label: 0, sent: function() { + function S(I, U) { + var F = { label: 0, sent: function() { if (Z[0] & 1) throw Z[1]; return Z[1]; - }, trys: [], ops: [] }, F, q, Z, Y; - return Y = { next: J(0), throw: J(1), return: J(2) }, typeof Symbol == "function" && (Y[Symbol.iterator] = function() { + }, trys: [], ops: [] }, C, q, Z, Y; + return Y = { next: ue(0), throw: ue(1), return: ue(2) }, typeof Symbol == "function" && (Y[Symbol.iterator] = function() { return this; }), Y; - function J(pe) { - return function(Te) { - return ve([pe, Te]); + function ue(pe) { + return function(ke) { + return te([pe, ke]); }; } - function ve(pe) { - if (F) + function te(pe) { + if (C) throw new TypeError("Generator is already executing."); - for (; C; ) + for (; F; ) try { - if (F = 1, q && (Z = pe[0] & 2 ? q.return : pe[0] ? q.throw || ((Z = q.return) && Z.call(q), 0) : q.next) && !(Z = Z.call(q, pe[1])).done) + if (C = 1, q && (Z = pe[0] & 2 ? q.return : pe[0] ? q.throw || ((Z = q.return) && Z.call(q), 0) : q.next) && !(Z = Z.call(q, pe[1])).done) return Z; switch (q = 0, Z && (pe = [pe[0] & 2, Z.value]), pe[0]) { case 0: @@ -52197,78 +52207,78 @@ var i1 = { exports: {} }; Z = pe; break; case 4: - return C.label++, { value: pe[1], done: !1 }; + return F.label++, { value: pe[1], done: !1 }; case 5: - C.label++, q = pe[1], pe = [0]; + F.label++, q = pe[1], pe = [0]; continue; case 7: - pe = C.ops.pop(), C.trys.pop(); + pe = F.ops.pop(), F.trys.pop(); continue; default: - if (Z = C.trys, !(Z = Z.length > 0 && Z[Z.length - 1]) && (pe[0] === 6 || pe[0] === 2)) { - C = 0; + if (Z = F.trys, !(Z = Z.length > 0 && Z[Z.length - 1]) && (pe[0] === 6 || pe[0] === 2)) { + F = 0; continue; } if (pe[0] === 3 && (!Z || pe[1] > Z[0] && pe[1] < Z[3])) { - C.label = pe[1]; + F.label = pe[1]; break; } - if (pe[0] === 6 && C.label < Z[1]) { - C.label = Z[1], Z = pe; + if (pe[0] === 6 && F.label < Z[1]) { + F.label = Z[1], Z = pe; break; } - if (Z && C.label < Z[2]) { - C.label = Z[2], C.ops.push(pe); + if (Z && F.label < Z[2]) { + F.label = Z[2], F.ops.push(pe); break; } - Z[2] && C.ops.pop(), C.trys.pop(); + Z[2] && F.ops.pop(), F.trys.pop(); continue; } - pe = z.call(R, C); - } catch (Te) { - pe = [6, Te], q = 0; + pe = U.call(I, F); + } catch (ke) { + pe = [6, ke], q = 0; } finally { - F = Z = 0; + C = Z = 0; } if (pe[0] & 5) throw pe[1]; return { value: pe[0] ? pe[1] : void 0, done: !0 }; } } - var b = Object.create ? function(R, z, C, F) { - F === void 0 && (F = C), Object.defineProperty(R, F, { enumerable: !0, get: function() { - return z[C]; + var b = Object.create ? function(I, U, F, C) { + C === void 0 && (C = F), Object.defineProperty(I, C, { enumerable: !0, get: function() { + return U[F]; } }); - } : function(R, z, C, F) { - F === void 0 && (F = C), R[F] = z[C]; + } : function(I, U, F, C) { + C === void 0 && (C = F), I[C] = U[F]; }; - function A(R, z) { - for (var C in R) - C !== "default" && !Object.prototype.hasOwnProperty.call(z, C) && b(z, R, C); + function A(I, U) { + for (var F in I) + F !== "default" && !Object.prototype.hasOwnProperty.call(U, F) && b(U, I, F); } - function y(R) { - var z = typeof Symbol == "function" && Symbol.iterator, C = z && R[z], F = 0; - if (C) - return C.call(R); - if (R && typeof R.length == "number") + function y(I) { + var U = typeof Symbol == "function" && Symbol.iterator, F = U && I[U], C = 0; + if (F) + return F.call(I); + if (I && typeof I.length == "number") return { next: function() { - return R && F >= R.length && (R = void 0), { value: R && R[F++], done: !R }; + return I && C >= I.length && (I = void 0), { value: I && I[C++], done: !I }; } }; - throw new TypeError(z ? "Object is not iterable." : "Symbol.iterator is not defined."); + throw new TypeError(U ? "Object is not iterable." : "Symbol.iterator is not defined."); } - function m(R, z) { - var C = typeof Symbol == "function" && R[Symbol.iterator]; - if (!C) - return R; - var F = C.call(R), q, Z = [], Y; + function m(I, U) { + var F = typeof Symbol == "function" && I[Symbol.iterator]; + if (!F) + return I; + var C = F.call(I), q, Z = [], Y; try { - for (; (z === void 0 || z-- > 0) && !(q = F.next()).done; ) + for (; (U === void 0 || U-- > 0) && !(q = C.next()).done; ) Z.push(q.value); - } catch (J) { - Y = { error: J }; + } catch (ue) { + Y = { error: ue }; } finally { try { - q && !q.done && (C = F.return) && C.call(F); + q && !q.done && (F = C.return) && F.call(C); } finally { if (Y) throw Y.error; @@ -52277,122 +52287,122 @@ var i1 = { exports: {} }; return Z; } function w() { - for (var R = [], z = 0; z < arguments.length; z++) - R = R.concat(m(arguments[z])); - return R; + for (var I = [], U = 0; U < arguments.length; U++) + I = I.concat(m(arguments[U])); + return I; } function E() { - for (var R = 0, z = 0, C = arguments.length; z < C; z++) - R += arguments[z].length; - for (var F = Array(R), q = 0, z = 0; z < C; z++) - for (var Z = arguments[z], Y = 0, J = Z.length; Y < J; Y++, q++) - F[q] = Z[Y]; - return F; + for (var I = 0, U = 0, F = arguments.length; U < F; U++) + I += arguments[U].length; + for (var C = Array(I), q = 0, U = 0; U < F; U++) + for (var Z = arguments[U], Y = 0, ue = Z.length; Y < ue; Y++, q++) + C[q] = Z[Y]; + return C; } - function x(R, z) { - for (var C = 0, F = z.length, q = R.length; C < F; C++, q++) - R[q] = z[C]; - return R; + function x(I, U) { + for (var F = 0, C = U.length, q = I.length; F < C; F++, q++) + I[q] = U[F]; + return I; } - function k(R) { - return this instanceof k ? (this.v = R, this) : new k(R); + function k(I) { + return this instanceof k ? (this.v = I, this) : new k(I); } - function $(R, z, C) { + function R(I, U, F) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var F = C.apply(R, z || []), q, Z = []; + var C = F.apply(I, U || []), q, Z = []; return q = {}, Y("next"), Y("throw"), Y("return"), q[Symbol.asyncIterator] = function() { return this; }, q; - function Y(me) { - F[me] && (q[me] = function(we) { - return new Promise(function(ce, Se) { - Z.push([me, we, ce, Se]) > 1 || J(me, we); + function Y(ve) { + C[ve] && (q[ve] = function(we) { + return new Promise(function(he, Se) { + Z.push([ve, we, he, Se]) > 1 || ue(ve, we); }); }); } - function J(me, we) { + function ue(ve, we) { try { - ve(F[me](we)); - } catch (ce) { - ge(Z[0][3], ce); + te(C[ve](we)); + } catch (he) { + ge(Z[0][3], he); } } - function ve(me) { - me.value instanceof k ? Promise.resolve(me.value.v).then(pe, Te) : ge(Z[0][2], me); + function te(ve) { + ve.value instanceof k ? Promise.resolve(ve.value.v).then(pe, ke) : ge(Z[0][2], ve); } - function pe(me) { - J("next", me); + function pe(ve) { + ue("next", ve); } - function Te(me) { - J("throw", me); + function ke(ve) { + ue("throw", ve); } - function ge(me, we) { - me(we), Z.shift(), Z.length && J(Z[0][0], Z[0][1]); + function ge(ve, we) { + ve(we), Z.shift(), Z.length && ue(Z[0][0], Z[0][1]); } } - function M(R) { - var z, C; - return z = {}, F("next"), F("throw", function(q) { + function M(I) { + var U, F; + return U = {}, C("next"), C("throw", function(q) { throw q; - }), F("return"), z[Symbol.iterator] = function() { + }), C("return"), U[Symbol.iterator] = function() { return this; - }, z; - function F(q, Z) { - z[q] = R[q] ? function(Y) { - return (C = !C) ? { value: k(R[q](Y)), done: q === "return" } : Z ? Z(Y) : Y; + }, U; + function C(q, Z) { + U[q] = I[q] ? function(Y) { + return (F = !F) ? { value: k(I[q](Y)), done: q === "return" } : Z ? Z(Y) : Y; } : Z; } } - function P(R) { + function P(I) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var z = R[Symbol.asyncIterator], C; - return z ? z.call(R) : (R = typeof y == "function" ? y(R) : R[Symbol.iterator](), C = {}, F("next"), F("throw"), F("return"), C[Symbol.asyncIterator] = function() { + var U = I[Symbol.asyncIterator], F; + return U ? U.call(I) : (I = typeof y == "function" ? y(I) : I[Symbol.iterator](), F = {}, C("next"), C("throw"), C("return"), F[Symbol.asyncIterator] = function() { return this; - }, C); - function F(Z) { - C[Z] = R[Z] && function(Y) { - return new Promise(function(J, ve) { - Y = R[Z](Y), q(J, ve, Y.done, Y.value); + }, F); + function C(Z) { + F[Z] = I[Z] && function(Y) { + return new Promise(function(ue, te) { + Y = I[Z](Y), q(ue, te, Y.done, Y.value); }); }; } - function q(Z, Y, J, ve) { - Promise.resolve(ve).then(function(pe) { - Z({ value: pe, done: J }); + function q(Z, Y, ue, te) { + Promise.resolve(te).then(function(pe) { + Z({ value: pe, done: ue }); }, Y); } } - function B(R, z) { - return Object.defineProperty ? Object.defineProperty(R, "raw", { value: z }) : R.raw = z, R; + function B(I, U) { + return Object.defineProperty ? Object.defineProperty(I, "raw", { value: U }) : I.raw = U, I; } - var T = Object.create ? function(R, z) { - Object.defineProperty(R, "default", { enumerable: !0, value: z }); - } : function(R, z) { - R.default = z; + var T = Object.create ? function(I, U) { + Object.defineProperty(I, "default", { enumerable: !0, value: U }); + } : function(I, U) { + I.default = U; }; - function D(R) { - if (R && R.__esModule) - return R; - var z = {}; - if (R != null) - for (var C in R) - C !== "default" && Object.prototype.hasOwnProperty.call(R, C) && b(z, R, C); - return T(z, R), z; + function D(I) { + if (I && I.__esModule) + return I; + var U = {}; + if (I != null) + for (var F in I) + F !== "default" && Object.prototype.hasOwnProperty.call(I, F) && b(U, I, F); + return T(U, I), U; } - function V(R) { - return R && R.__esModule ? R : { default: R }; + function V(I) { + return I && I.__esModule ? I : { default: I }; } - function K(R, z) { - if (!z.has(R)) + function W(I, U) { + if (!U.has(I)) throw new TypeError("attempted to get private field on non-instance"); - return z.get(R); + return U.get(I); } - function G(R, z, C) { - if (!z.has(R)) + function G(I, U, F) { + if (!U.has(I)) throw new TypeError("attempted to set private field on non-instance"); - return z.set(R, C), C; + return U.set(I, F), F; } }, function(i, r, n) { var a = n(0), s = a(n(1)), u = a(n(89)), d = a(n(4)), p = a(n(26)), h = a(n(17)), g = a(n(121)), _ = a(n(27)), S = a(n(91)), b = a(n(70)), A = a(n(28)), y = a(n(57)); @@ -52407,17 +52417,17 @@ var i1 = { exports: {} }; function k(T) { return T ? T instanceof HTMLCollection || T instanceof NodeList : !1; } - function $(T) { + function R(T) { var D = document.querySelectorAll(T); return w.toArray(D); } function M(T) { var D = [], V = []; - return (0, u.default)(T) ? D = T : D = T.split(";"), (0, d.default)(D).call(D, function(K) { - var G, R = (0, p.default)(G = K.split(":")).call(G, function(z) { - return (0, h.default)(z).call(z); + return (0, u.default)(T) ? D = T : D = T.split(";"), (0, d.default)(D).call(D, function(W) { + var G, I = (0, p.default)(G = W.split(":")).call(G, function(U) { + return (0, h.default)(U).call(U); }); - R.length === 2 && V.push(R[0] + ":" + R[1]); + I.length === 2 && V.push(I[0] + ":" + I[1]); }), V; } var P = function() { @@ -52425,24 +52435,24 @@ var i1 = { exports: {} }; if (this.elems = [], this.length = this.elems.length, this.dataSource = new g.default(), !!D) { if (D instanceof T) return D; - var V = [], K = D instanceof Node ? D.nodeType : -1; - if (this.selector = D, K === 1 || K === 9) + var V = [], W = D instanceof Node ? D.nodeType : -1; + if (this.selector = D, W === 1 || W === 9) V = [D]; else if (k(D)) V = w.toArray(D); else if (D instanceof Array) V = D; else if (typeof D == "string") { - var G, R = (0, h.default)(G = D.replace(`/ + var G, I = (0, h.default)(G = D.replace(`/ /mg`, "")).call(G); - (0, _.default)(R).call(R, "<") === 0 ? V = x(R) : V = $(R); + (0, _.default)(I).call(I, "<") === 0 ? V = x(I) : V = R(I); } - var z = V.length; - if (!z) + var U = V.length; + if (!U) return this; - for (var C = 0; C < z; C++) - this.elems.push(V[C]); - this.length = z; + for (var F = 0; F < U; F++) + this.elems.push(V[F]); + this.length = U; } } return (0, s.default)(T.prototype, "id", { @@ -52453,7 +52463,7 @@ var i1 = { exports: {} }; configurable: !0 }), T.prototype.forEach = function(D) { for (var V = 0; V < this.length; V++) { - var K = this.elems[V], G = D.call(K, K, V); + var W = this.elems[V], G = D.call(W, W, V); if (G === !1) break; } @@ -52461,10 +52471,10 @@ var i1 = { exports: {} }; }, T.prototype.clone = function(D) { var V; D === void 0 && (D = !1); - var K = []; + var W = []; return (0, d.default)(V = this.elems).call(V, function(G) { - K.push(G.cloneNode(!!D)); - }), B(K); + W.push(G.cloneNode(!!D)); + }), B(W); }, T.prototype.get = function(D) { D === void 0 && (D = 0); var V = this.length; @@ -52474,66 +52484,66 @@ var i1 = { exports: {} }; }, T.prototype.last = function() { var D = this.length; return this.get(D - 1); - }, T.prototype.on = function(D, V, K) { + }, T.prototype.on = function(D, V, W) { var G; - return D ? (typeof V == "function" && (K = V, V = ""), (0, d.default)(G = this).call(G, function(R) { + return D ? (typeof V == "function" && (W = V, V = ""), (0, d.default)(G = this).call(G, function(I) { if (!V) { - R.addEventListener(D, K); + I.addEventListener(D, W); return; } - var z = function(F) { - var q = F.target; - q.matches(V) && K.call(q, F); + var U = function(C) { + var q = C.target; + q.matches(V) && W.call(q, C); }; - R.addEventListener(D, z), E.push({ elem: R, selector: V, fn: K, agentFn: z }); + I.addEventListener(D, U), E.push({ elem: I, selector: V, fn: W, agentFn: U }); })) : this; - }, T.prototype.off = function(D, V, K) { + }, T.prototype.off = function(D, V, W) { var G; - return D ? (typeof V == "function" && (K = V, V = ""), (0, d.default)(G = this).call(G, function(R) { + return D ? (typeof V == "function" && (W = V, V = ""), (0, d.default)(G = this).call(G, function(I) { if (V) { - for (var z = -1, C = 0; C < E.length; C++) { - var F = E[C]; - if (F.selector === V && F.fn === K && F.elem === R) { - z = C; + for (var U = -1, F = 0; F < E.length; F++) { + var C = E[F]; + if (C.selector === V && C.fn === W && C.elem === I) { + U = F; break; } } - if (z !== -1) { - var q = (0, S.default)(E).call(E, z, 1)[0].agentFn; - R.removeEventListener(D, q); + if (U !== -1) { + var q = (0, S.default)(E).call(E, U, 1)[0].agentFn; + I.removeEventListener(D, q); } } else - R.removeEventListener(D, K); + I.removeEventListener(D, W); })) : this; }, T.prototype.attr = function(D, V) { - var K; - return V == null ? this.elems[0].getAttribute(D) || "" : (0, d.default)(K = this).call(K, function(G) { + var W; + return V == null ? this.elems[0].getAttribute(D) || "" : (0, d.default)(W = this).call(W, function(G) { G.setAttribute(D, V); }); }, T.prototype.removeAttr = function(D) { var V; - (0, d.default)(V = this).call(V, function(K) { - K.removeAttribute(D); + (0, d.default)(V = this).call(V, function(W) { + W.removeAttribute(D); }); }, T.prototype.addClass = function(D) { var V; - return D ? (0, d.default)(V = this).call(V, function(K) { - if (K.className) { - var G = K.className.split(/\s/); - G = (0, b.default)(G).call(G, function(R) { - return !!(0, h.default)(R).call(R); - }), (0, _.default)(G).call(G, D) < 0 && G.push(D), K.className = G.join(" "); + return D ? (0, d.default)(V = this).call(V, function(W) { + if (W.className) { + var G = W.className.split(/\s/); + G = (0, b.default)(G).call(G, function(I) { + return !!(0, h.default)(I).call(I); + }), (0, _.default)(G).call(G, D) < 0 && G.push(D), W.className = G.join(" "); } else - K.className = D; + W.className = D; }) : this; }, T.prototype.removeClass = function(D) { var V; - return D ? (0, d.default)(V = this).call(V, function(K) { - if (!!K.className) { - var G = K.className.split(/\s/); - G = (0, b.default)(G).call(G, function(R) { - return R = (0, h.default)(R).call(R), !(!R || R === D); - }), K.className = G.join(" "); + return D ? (0, d.default)(V = this).call(V, function(W) { + if (!!W.className) { + var G = W.className.split(/\s/); + G = (0, b.default)(G).call(G, function(I) { + return I = (0, h.default)(I).call(I), !(!I || I === D); + }), W.className = G.join(" "); } }) : this; }, T.prototype.hasClass = function(D) { @@ -52542,19 +52552,19 @@ var i1 = { exports: {} }; var V = this.elems[0]; if (!V.className) return !1; - var K = V.className.split(/\s/); - return (0, A.default)(K).call(K, D); + var W = V.className.split(/\s/); + return (0, A.default)(W).call(W, D); }, T.prototype.css = function(D, V) { - var K, G; - return V == "" ? G = "" : G = D + ":" + V + ";", (0, d.default)(K = this).call(K, function(R) { - var z, C = (0, h.default)(z = R.getAttribute("style") || "").call(z); - if (C) { - var F = M(C); - F = (0, p.default)(F).call(F, function(q) { + var W, G; + return V == "" ? G = "" : G = D + ":" + V + ";", (0, d.default)(W = this).call(W, function(I) { + var U, F = (0, h.default)(U = I.getAttribute("style") || "").call(U); + if (F) { + var C = M(F); + C = (0, p.default)(C).call(C, function(q) { return (0, _.default)(q).call(q, D) === 0 ? G : q; - }), G != "" && (0, _.default)(F).call(F, G) < 0 && F.push(G), G == "" && (F = M(F)), R.setAttribute("style", F.join("; ")); + }), G != "" && (0, _.default)(C).call(C, G) < 0 && C.push(G), G == "" && (C = M(C)), I.setAttribute("style", C.join("; ")); } else - R.setAttribute("style", G); + I.setAttribute("style", G); }); }, T.prototype.getBoundingClientRect = function() { var D = this.elems[0]; @@ -52570,14 +52580,14 @@ var i1 = { exports: {} }; var D = this.elems[0]; return D ? B(D.childNodes) : null; }, T.prototype.replaceChildAll = function(D) { - for (var V = this.getNode(), K = this.elems[0]; K.hasChildNodes(); ) - V.firstChild && K.removeChild(V.firstChild); + for (var V = this.getNode(), W = this.elems[0]; W.hasChildNodes(); ) + V.firstChild && W.removeChild(V.firstChild); this.append(D); }, T.prototype.append = function(D) { var V; - return (0, d.default)(V = this).call(V, function(K) { + return (0, d.default)(V = this).call(V, function(W) { (0, d.default)(D).call(D, function(G) { - K.appendChild(G); + W.appendChild(G); }); }); }, T.prototype.remove = function() { @@ -52586,13 +52596,13 @@ var i1 = { exports: {} }; if (V.remove) V.remove(); else { - var K = V.parentElement; - K && K.removeChild(V); + var W = V.parentElement; + W && W.removeChild(V); } }); }, T.prototype.isContain = function(D) { - var V = this.elems[0], K = D.elems[0]; - return V.contains(K); + var V = this.elems[0], W = D.elems[0]; + return V.contains(W); }, T.prototype.getNodeName = function() { var D = this.elems[0]; return D.nodeName; @@ -52605,8 +52615,8 @@ var i1 = { exports: {} }; return B(V.querySelectorAll(D)); }, T.prototype.text = function(D) { if (D) { - var K; - return (0, d.default)(K = this).call(K, function(G) { + var W; + return (0, d.default)(W = this).call(W, function(G) { G.innerHTML = D; }); } else { @@ -52639,30 +52649,30 @@ var i1 = { exports: {} }; var D = this.elems[0]; return B(D.parentElement); }, T.prototype.parentUntil = function(D, V) { - var K = V || this.elems[0]; - if (K.nodeName === "BODY") + var W = V || this.elems[0]; + if (W.nodeName === "BODY") return null; - var G = K.parentElement; + var G = W.parentElement; return G === null ? null : G.matches(D) ? B(G) : this.parentUntil(D, G); - }, T.prototype.parentUntilEditor = function(D, V, K) { - var G = K || this.elems[0]; + }, T.prototype.parentUntilEditor = function(D, V, W) { + var G = W || this.elems[0]; if (B(G).equal(V.$textContainerElem) || B(G).equal(V.$toolbarElem)) return null; - var R = G.parentElement; - return R === null ? null : R.matches(D) ? B(R) : this.parentUntilEditor(D, V, R); + var I = G.parentElement; + return I === null ? null : I.matches(D) ? B(I) : this.parentUntilEditor(D, V, I); }, T.prototype.equal = function(D) { return D instanceof T ? this.elems[0] === D.elems[0] : D instanceof HTMLElement ? this.elems[0] === D : !1; }, T.prototype.insertBefore = function(D) { - var V, K = B(D), G = K.elems[0]; - return G ? (0, d.default)(V = this).call(V, function(R) { - var z = G.parentNode; - z == null || z.insertBefore(R, G); + var V, W = B(D), G = W.elems[0]; + return G ? (0, d.default)(V = this).call(V, function(I) { + var U = G.parentNode; + U == null || U.insertBefore(I, G); }) : this; }, T.prototype.insertAfter = function(D) { - var V, K = B(D), G = K.elems[0], R = G && G.nextSibling; - return G ? (0, d.default)(V = this).call(V, function(z) { - var C = G.parentNode; - R ? C.insertBefore(z, R) : C.appendChild(z); + var V, W = B(D), G = W.elems[0], I = G && G.nextSibling; + return G ? (0, d.default)(V = this).call(V, function(U) { + var F = G.parentNode; + I ? F.insertBefore(U, I) : F.appendChild(U); }) : this; }, T.prototype.data = function(D, V) { if (V != null) @@ -52710,9 +52720,9 @@ var i1 = { exports: {} }; return A.prototype = b.prototype, A; }; i.exports = function(S, b) { - var A = S.target, y = S.global, m = S.stat, w = S.proto, E = y ? a : m ? a[A] : (a[A] || {}).prototype, x = y ? d : d[A] || (d[A] = {}), k = x.prototype, $, M, P, B, T, D, V, K, G; + var A = S.target, y = S.global, m = S.stat, w = S.proto, E = y ? a : m ? a[A] : (a[A] || {}).prototype, x = y ? d : d[A] || (d[A] = {}), k = x.prototype, R, M, P, B, T, D, V, W, G; for (B in b) - $ = u(y ? B : A + (m ? "." : "#") + B, S.forced), M = !$ && E && g(E, B), D = x[B], M && (S.noTargetGet ? (G = s(E, B), V = G && G.value) : V = E[B]), T = M && V ? V : b[B], !(M && yn(D) === yn(T)) && (S.bind && M ? K = p(T, a) : S.wrap && M ? K = _(T) : w && typeof T == "function" ? K = p(Function.call, T) : K = T, (S.sham || T && T.sham || D && D.sham) && h(K, "sham", !0), x[B] = K, w && (P = A + "Prototype", g(d, P) || h(d, P, {}), d[P][B] = T, S.real && k && !k[B] && h(k, B, T))); + R = u(y ? B : A + (m ? "." : "#") + B, S.forced), M = !R && E && g(E, B), D = x[B], M && (S.noTargetGet ? (G = s(E, B), V = G && G.value) : V = E[B]), T = M && V ? V : b[B], !(M && yn(D) === yn(T)) && (S.bind && M ? W = p(T, a) : S.wrap && M ? W = _(T) : w && typeof T == "function" ? W = p(Function.call, T) : W = T, (S.sham || T && T.sham || D && D.sham) && h(W, "sham", !0), x[B] = W, w && (P = A + "Prototype", g(d, P) || h(d, P, {}), d[P][B] = T, S.real && k && !k[B] && h(k, B, T))); }; }, function(i, r, n) { var a = n(0), s = a(n(92)), u = a(n(1)), d = a(n(256)), p = a(n(45)), h = a(n(46)), g = a(n(89)), _ = a(n(26)); @@ -52744,55 +52754,55 @@ var i1 = { exports: {} }; } r.replaceSpecialSymbol = m; function w(D, V) { - for (var K in D) - if (Object.prototype.hasOwnProperty.call(D, K)) { - var G = V(K, D[K]); + for (var W in D) + if (Object.prototype.hasOwnProperty.call(D, W)) { + var G = V(W, D[W]); if (G === !1) break; } } r.forEach = w; function E(D, V) { - var K, G, R, z = D.length || 0; - for (K = 0; K < z && (G = D[K], R = V.call(D, G, K), R !== !1); K++) + var W, G, I, U = D.length || 0; + for (W = 0; W < U && (G = D[W], I = V.call(D, G, W), I !== !1); W++) ; } r.arrForEach = E; function x(D, V) { V === void 0 && (V = 200); - var K = !1; + var W = !1; return function() { - for (var G = this, R = [], z = 0; z < arguments.length; z++) - R[z] = arguments[z]; - K || (K = !0, (0, h.default)(function() { - K = !1, D.call.apply(D, S.__spreadArrays([G], R)); + for (var G = this, I = [], U = 0; U < arguments.length; U++) + I[U] = arguments[U]; + W || (W = !0, (0, h.default)(function() { + W = !1, D.call.apply(D, S.__spreadArrays([G], I)); }, V)); }; } r.throttle = x; function k(D, V) { V === void 0 && (V = 200); - var K = 0; + var W = 0; return function() { - for (var G = this, R = [], z = 0; z < arguments.length; z++) - R[z] = arguments[z]; - K && window.clearTimeout(K), K = (0, h.default)(function() { - K = 0, D.call.apply(D, S.__spreadArrays([G], R)); + for (var G = this, I = [], U = 0; U < arguments.length; U++) + I[U] = arguments[U]; + W && window.clearTimeout(W), W = (0, h.default)(function() { + W = 0, D.call.apply(D, S.__spreadArrays([G], I)); }, V); }; } r.debounce = k; - function $(D) { + function R(D) { return typeof D == "function"; } - r.isFunction = $; + r.isFunction = R; function M(D) { if ((0, s.default)(D) !== "object" || typeof D == "function" || D === null) return D; var V; (0, g.default)(D) && (V = []), (0, g.default)(D) || (V = {}); - for (var K in D) - Object.prototype.hasOwnProperty.call(D, K) && (V[K] = M(D[K])); + for (var W in D) + Object.prototype.hasOwnProperty.call(D, W) && (V[W] = M(D[W])); return V; } r.deepClone = M; @@ -52809,10 +52819,10 @@ var i1 = { exports: {} }; var V = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(D); if (V == null) return null; - var K = (0, _.default)(V).call(V, function(C) { - return (0, d.default)(C, 16); - }), G = K[1], R = K[2], z = K[3]; - return "rgb(" + G + ", " + R + ", " + z + ")"; + var W = (0, _.default)(V).call(V, function(F) { + return (0, d.default)(F, 16); + }), G = W[1], I = W[2], U = W[3]; + return "rgb(" + G + ", " + I + ", " + U + ")"; } r.hexToRgb = T; }, function(i, r, n) { @@ -52901,14 +52911,14 @@ var i1 = { exports: {} }; var E = {}; return function(k) { if (typeof E[k] > "u") { - var $ = document.querySelector(k); - if (window.HTMLIFrameElement && $ instanceof window.HTMLIFrameElement) + var R = document.querySelector(k); + if (window.HTMLIFrameElement && R instanceof window.HTMLIFrameElement) try { - $ = $.contentDocument.head; + R = R.contentDocument.head; } catch { - $ = null; + R = null; } - E[k] = $; + E[k] = R; } return E[k]; }; @@ -52922,8 +52932,8 @@ var i1 = { exports: {} }; return E; } function p(w, E) { - for (var x = {}, k = [], $ = 0; $ < w.length; $++) { - var M = w[$], P = E.base ? M[0] + E.base : M[0], B = x[P] || 0, T = "".concat(P, " ").concat(B); + for (var x = {}, k = [], R = 0; R < w.length; R++) { + var M = w[R], P = E.base ? M[0] + E.base : M[0], B = x[P] || 0, T = "".concat(P, " ").concat(B); x[P] = B + 1; var D = d(T), V = { css: M[1], media: M[2], sourceMap: M[3] }; D !== -1 ? (u[D].references++, u[D].updater(V)) : u.push({ identifier: T, updater: m(V, E), references: 1 }), k.push(T); @@ -52941,10 +52951,10 @@ var i1 = { exports: {} }; }), typeof w.insert == "function") w.insert(E); else { - var $ = s(w.insert || "head"); - if (!$) + var R = s(w.insert || "head"); + if (!R) throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); - $.appendChild(E); + R.appendChild(E); } return E; } @@ -52955,23 +52965,23 @@ var i1 = { exports: {} }; } var _ = function() { var E = []; - return function(k, $) { - return E[k] = $, E.filter(Boolean).join(` + return function(k, R) { + return E[k] = R, E.filter(Boolean).join(` `); }; }(); function S(w, E, x, k) { - var $ = x ? "" : k.media ? "@media ".concat(k.media, " {").concat(k.css, "}") : k.css; + var R = x ? "" : k.media ? "@media ".concat(k.media, " {").concat(k.css, "}") : k.css; if (w.styleSheet) - w.styleSheet.cssText = _(E, $); + w.styleSheet.cssText = _(E, R); else { - var M = document.createTextNode($), P = w.childNodes; + var M = document.createTextNode(R), P = w.childNodes; P[E] && w.removeChild(P[E]), P.length ? w.insertBefore(M, P[E]) : w.appendChild(M); } } function b(w, E, x) { - var k = x.css, $ = x.media, M = x.sourceMap; - if ($ ? w.setAttribute("media", $) : w.removeAttribute("media"), M && typeof btoa < "u" && (k += ` + var k = x.css, R = x.media, M = x.sourceMap; + if (R ? w.setAttribute("media", R) : w.removeAttribute("media"), M && typeof btoa < "u" && (k += ` /*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(M)))), " */")), w.styleSheet) w.styleSheet.cssText = k; else { @@ -52982,12 +52992,12 @@ var i1 = { exports: {} }; } var A = null, y = 0; function m(w, E) { - var x, k, $; + var x, k, R; if (E.singleton) { var M = y++; - x = A || (A = h(E)), k = S.bind(null, x, M, !1), $ = S.bind(null, x, M, !0); + x = A || (A = h(E)), k = S.bind(null, x, M, !1), R = S.bind(null, x, M, !0); } else - x = h(E), k = b.bind(null, x, E), $ = function() { + x = h(E), k = b.bind(null, x, E), R = function() { g(x); }; return k(w), function(B) { @@ -52996,21 +53006,21 @@ var i1 = { exports: {} }; return; k(w = B); } else - $(); + R(); }; } i.exports = function(w, E) { E = E || {}, !E.singleton && typeof E.singleton != "boolean" && (E.singleton = a()), w = w || []; var x = p(w, E); - return function($) { - if ($ = $ || [], Object.prototype.toString.call($) === "[object Array]") { + return function(R) { + if (R = R || [], Object.prototype.toString.call(R) === "[object Array]") { for (var M = 0; M < x.length; M++) { var P = x[M], B = d(P); u[B].references--; } - for (var T = p($, E), D = 0; D < x.length; D++) { - var V = x[D], K = d(V); - u[K].references === 0 && (u[K].updater(), u.splice(K, 1)); + for (var T = p(R, E), D = 0; D < x.length; D++) { + var V = x[D], W = d(V); + u[W].references === 0 && (u[W].updater(), u.splice(W, 1)); } x = T; } @@ -53102,15 +53112,15 @@ var i1 = { exports: {} }; } }); } - var $ = new _.default(E, w); - return E.dropList = $, y.on("click", function() { + var R = new _.default(E, w); + return E.dropList = R, y.on("click", function() { var M; m.selection.getRange() != null && (y.css("z-index", m.zIndex.get("menu")), (0, u.default)(M = m.txt.eventHooks.dropListMenuHoverEvents).call(M, function(P) { return P(); - }), $.show()); + }), R.show()); }).on("mouseleave", function() { - y.css("z-index", "auto"), $.hideTimeoutId = (0, d.default)(function() { - $.hide(); + y.css("z-index", "auto"), R.hideTimeoutId = (0, d.default)(function() { + R.hide(); }); }), E; } @@ -53145,21 +53155,21 @@ var i1 = { exports: {} }; }, function(i, r, n) { var a = n(40), s = n(72), u = n(31), d = n(35), p = n(88), h = [].push, g = function(S) { var b = S == 1, A = S == 2, y = S == 3, m = S == 4, w = S == 6, E = S == 5 || w; - return function(x, k, $, M) { - for (var P = u(x), B = s(P), T = a(k, $, 3), D = d(B.length), V = 0, K = M || p, G = b ? K(x, D) : A ? K(x, 0) : void 0, R, z; D > V; V++) - if ((E || V in B) && (R = B[V], z = T(R, V, P), S)) { + return function(x, k, R, M) { + for (var P = u(x), B = s(P), T = a(k, R, 3), D = d(B.length), V = 0, W = M || p, G = b ? W(x, D) : A ? W(x, 0) : void 0, I, U; D > V; V++) + if ((E || V in B) && (I = B[V], U = T(I, V, P), S)) { if (b) - G[V] = z; - else if (z) + G[V] = U; + else if (U) switch (S) { case 3: return !0; case 5: - return R; + return I; case 6: return V; case 2: - h.call(G, R); + h.call(G, I); } else if (m) return !1; @@ -53188,8 +53198,8 @@ var i1 = { exports: {} }; return b.prototype.create = function() { var A = this, y = this.menu; if (!b.createdMenus.has(y)) { - var m = this.conf, w = this.$container, E = m.width || 300, x = y.editor.$toolbarElem.getBoundingClientRect(), k = y.$elem.getBoundingClientRect(), $ = x.height + x.top - k.top, M = (x.width - E) / 2 + x.left - k.left, P = 300; - Math.abs(M) > P && (k.left < document.documentElement.clientWidth / 2 ? M = -k.width / 2 : M = -E + k.width / 2), w.css("width", E + "px").css("margin-top", $ + "px").css("margin-left", M + "px").css("z-index", y.editor.zIndex.get("panel")); + var m = this.conf, w = this.$container, E = m.width || 300, x = y.editor.$toolbarElem.getBoundingClientRect(), k = y.$elem.getBoundingClientRect(), R = x.height + x.top - k.top, M = (x.width - E) / 2 + x.left - k.left, P = 300; + Math.abs(M) > P && (k.left < document.documentElement.clientWidth / 2 ? M = -k.width / 2 : M = -E + k.width / 2), w.css("width", E + "px").css("margin-top", R + "px").css("margin-left", M + "px").css("z-index", y.editor.zIndex.get("panel")); var B = g.default(''); w.append(B), B.on("click", function() { A.remove(); @@ -53198,50 +53208,50 @@ var i1 = { exports: {} }; w.append(T).append(D); var V = m.height; V && D.css("height", V + "px").css("overflow-y", "auto"); - var K = m.tabs || [], G = [], R = []; - (0, u.default)(K).call(K, function(C, F) { - if (!!C) { - var q = C.title || "", Z = C.tpl || "", Y = g.default('
  • ' + q + "
  • "); + var W = m.tabs || [], G = [], I = []; + (0, u.default)(W).call(W, function(F, C) { + if (!!F) { + var q = F.title || "", Z = F.tpl || "", Y = g.default('
  • ' + q + "
  • "); T.append(Y); - var J = g.default(Z); - D.append(J), G.push(Y), R.push(J), F === 0 ? (Y.data("active", !0), Y.addClass("w-e-active")) : J.hide(), Y.on("click", function() { - Y.data("active") || ((0, u.default)(G).call(G, function(ve) { - ve.data("active", !1), ve.removeClass("w-e-active"); - }), (0, u.default)(R).call(R, function(ve) { - ve.hide(); - }), Y.data("active", !0), Y.addClass("w-e-active"), J.show()); + var ue = g.default(Z); + D.append(ue), G.push(Y), I.push(ue), C === 0 ? (Y.data("active", !0), Y.addClass("w-e-active")) : ue.hide(), Y.on("click", function() { + Y.data("active") || ((0, u.default)(G).call(G, function(te) { + te.data("active", !1), te.removeClass("w-e-active"); + }), (0, u.default)(I).call(I, function(te) { + te.hide(); + }), Y.data("active", !0), Y.addClass("w-e-active"), ue.show()); }); } - }), w.on("click", function(C) { - C.stopPropagation(); - }), y.$elem.append(w), m.setLinkValue && m.setLinkValue(w, "text"), m.setLinkValue && m.setLinkValue(w, "link"), (0, u.default)(K).call(K, function(C, F) { - if (!!C) { - var q = C.events || []; + }), w.on("click", function(F) { + F.stopPropagation(); + }), y.$elem.append(w), m.setLinkValue && m.setLinkValue(w, "text"), m.setLinkValue && m.setLinkValue(w, "link"), (0, u.default)(W).call(W, function(F, C) { + if (!!F) { + var q = F.events || []; (0, u.default)(q).call(q, function(Z) { - var Y, J = Z.selector, ve = Z.type, pe = Z.fn || _.EMPTY_FN, Te = R[F], ge = (Y = Z.bindEnter) !== null && Y !== void 0 ? Y : !1, me = function(ce) { + var Y, ue = Z.selector, te = Z.type, pe = Z.fn || _.EMPTY_FN, ke = I[C], ge = (Y = Z.bindEnter) !== null && Y !== void 0 ? Y : !1, ve = function(he) { return h.__awaiter(A, void 0, void 0, function() { var Se; - return h.__generator(this, function(I) { - switch (I.label) { + return h.__generator(this, function(xe) { + switch (xe.label) { case 0: - return ce.stopPropagation(), [ + return he.stopPropagation(), [ 4, - pe(ce) + pe(he) ]; case 1: - return Se = I.sent(), Se && this.remove(), [2]; + return Se = xe.sent(), Se && this.remove(), [2]; } }); }); }; - (0, d.default)(Te).call(Te, J).on(ve, me), ge && ve === "click" && Te.on("keyup", function(we) { - we.keyCode == 13 && me(we); + (0, d.default)(ke).call(ke, ue).on(te, ve), ge && te === "click" && ke.on("keyup", function(we) { + we.keyCode == 13 && ve(we); }); }); } }); - var z = (0, d.default)(w).call(w, "input[type=text],textarea"); - z.length && z.get(0).focus(), b.hideCurAllPanels(), y.setPanel(this), b.createdMenus.add(y); + var U = (0, d.default)(w).call(w, "input[type=text],textarea"); + U.length && U.get(0).focus(), b.hideCurAllPanels(), y.setPanel(this), b.createdMenus.add(y); } }, b.prototype.remove = function() { var A = this.menu, y = this.$container; @@ -53303,9 +53313,9 @@ var i1 = { exports: {} }; y.addClass("w-e-tooltip"), this.$container = y; } return _.prototype.getPositionData = function() { - var S = this.$container, b = 0, A = 0, y = 20, m = document.documentElement.scrollTop, w = this.$targetElem.getBoundingClientRect(), E = this.editor.$textElem.getBoundingClientRect(), x = this.$targetElem.getOffsetData(), k = h.default(x.parent), $ = this.editor.$textElem.elems[0].scrollTop; + var S = this.$container, b = 0, A = 0, y = 20, m = document.documentElement.scrollTop, w = this.$targetElem.getBoundingClientRect(), E = this.editor.$textElem.getBoundingClientRect(), x = this.$targetElem.getOffsetData(), k = h.default(x.parent), R = this.editor.$textElem.elems[0].scrollTop; if (this._isInsertTextContainer = k.equal(this.editor.$textContainerElem), this._isInsertTextContainer) { - var M = k.getBoundingClientRect().height, P = x.top, B = x.left, T = x.height, D = P - $; + var M = k.getBoundingClientRect().height, P = x.top, B = x.left, T = x.height, D = P - R; D > y + 5 ? (b = D - y - 15, S.addClass("w-e-tooltip-up")) : D + T + y < M ? (b = D + T + 10, S.addClass("w-e-tooltip-down")) : (b = (D > 0 ? D : 0) + y + 10, S.addClass("w-e-tooltip-down")), B < 0 ? A = 0 : A = B; } else w.top < y || w.top - E.top < y ? (b = w.bottom + m + 5, S.addClass("w-e-tooltip-down")) : (b = w.top + m - y - 15, S.addClass("w-e-tooltip-up")), w.left < 0 ? A = 0 : A = w.left; @@ -53314,8 +53324,8 @@ var i1 = { exports: {} }; var S = this, b = this.conf, A = this.editor, y = this.$targetElem, m = this.$container; (0, u.default)(b).call(b, function(w, E) { var x = w.$elem, k = h.default("
    "); - k.addClass("w-e-tooltip-item-wrapper "), k.append(x), m.append(k), x.on("click", function($) { - $.preventDefault(); + k.addClass("w-e-tooltip-item-wrapper "), k.append(x), m.append(k), x.on("click", function(R) { + R.preventDefault(); var M = w.onClick(A, y); M && S.remove(); }); @@ -53390,13 +53400,13 @@ var i1 = { exports: {} }; return x.call(w, P); }; } else { - var $ = h("state"); - g[$] = !0, S = function(P, B) { - return d(P, $, B), B; + var R = h("state"); + g[R] = !0, S = function(P, B) { + return d(P, R, B), B; }, b = function(P) { - return p(P, $) ? P[$] : {}; + return p(P, R) ? P[R] : {}; }, A = function(P) { - return p(P, $); + return p(P, R); }; } i.exports = { set: S, get: b, has: A, enforce: y, getterFor: m }; @@ -53415,8 +53425,8 @@ var i1 = { exports: {} }; function g(E) { var x = []; return (0, u.default)(E).call(E, function(k) { - var $ = k.getNodeName(); - if ($ !== p.ListType.OrderedList && $ !== p.ListType.UnorderedList) + var R = k.getNodeName(); + if (R !== p.ListType.OrderedList && R !== p.ListType.UnorderedList) x.push(k); else if (k.prior) x.push(k.prior); @@ -53430,8 +53440,8 @@ var i1 = { exports: {} }; } r.filterSelectionNodes = g; function _(E, x, k) { - var $ = E.selection, M = document.createRange(); - x.length > 1 ? (M.setStart(x.elems[0], 0), M.setEnd(x.elems[x.length - 1], x.elems[x.length - 1].childNodes.length)) : M.selectNodeContents(x.elems[0]), k && M.collapse(!1), $.saveRange(M), $.restoreSelection(); + var R = E.selection, M = document.createRange(); + x.length > 1 ? (M.setStart(x.elems[0], 0), M.setEnd(x.elems[x.length - 1], x.elems[x.length - 1].childNodes.length)) : M.selectNodeContents(x.elems[0]), k && M.collapse(!1), R.saveRange(M), R.restoreSelection(); } r.updateRange = _; function S(E) { @@ -53457,9 +53467,9 @@ var i1 = { exports: {} }; } r.createDocumentFragment = m; function w(E, x, k) { - return k === void 0 && (k = "li"), (0, u.default)(E).call(E, function($) { + return k === void 0 && (k = "li"), (0, u.default)(E).call(E, function(R) { var M = y(k); - M.innerHTML = $.html(), x.appendChild(M), $.remove(); + M.innerHTML = R.html(), x.appendChild(M), R.remove(); }), x; } r.createElementFragment = w; @@ -53576,14 +53586,14 @@ var i1 = { exports: {} }; var a = n(25), s = n(112), u = n(35), d = n(40), p = n(113), h = n(114), g = function(b, A) { this.stopped = b, this.result = A; }, _ = i.exports = function(S, b, A, y, m) { - var w = d(b, A, y ? 2 : 1), E, x, k, $, M, P, B; + var w = d(b, A, y ? 2 : 1), E, x, k, R, M, P, B; if (m) E = S; else { if (x = p(S), typeof x != "function") throw TypeError("Target is not iterable"); if (s(x)) { - for (k = 0, $ = u(S.length); $ > k; k++) + for (k = 0, R = u(S.length); R > k; k++) if (M = y ? w(a(B = S[k])[0], B[1]) : w(S[k]), M && M instanceof g) return M; return new g(!1); @@ -53648,43 +53658,43 @@ var i1 = { exports: {} }; return s[u] || (s[u] = d !== void 0 ? d : {}); })("versions", []).push({ version: "3.6.4", mode: a ? "pure" : "global", copyright: "\xA9 2020 Denis Pushkarev (zloirock.ru)" }); }, function(i, r, n) { - var a = n(5), s = n(167), u = n(105), d = n(171), p = n(37), h = n(19), g = n(53), _ = n(10), S = n(43), b = n(44), A = n(104), y = A.IteratorPrototype, m = A.BUGGY_SAFARI_ITERATORS, w = _("iterator"), E = "keys", x = "values", k = "entries", $ = function() { + var a = n(5), s = n(167), u = n(105), d = n(171), p = n(37), h = n(19), g = n(53), _ = n(10), S = n(43), b = n(44), A = n(104), y = A.IteratorPrototype, m = A.BUGGY_SAFARI_ITERATORS, w = _("iterator"), E = "keys", x = "values", k = "entries", R = function() { return this; }; - i.exports = function(M, P, B, T, D, V, K) { + i.exports = function(M, P, B, T, D, V, W) { s(B, P, T); - var G = function(Te) { - if (Te === D && q) + var G = function(ke) { + if (ke === D && q) return q; - if (!m && Te in C) - return C[Te]; - switch (Te) { + if (!m && ke in F) + return F[ke]; + switch (ke) { case E: return function() { - return new B(this, Te); + return new B(this, ke); }; case x: return function() { - return new B(this, Te); + return new B(this, ke); }; case k: return function() { - return new B(this, Te); + return new B(this, ke); }; } return function() { return new B(this); }; - }, R = P + " Iterator", z = !1, C = M.prototype, F = C[w] || C["@@iterator"] || D && C[D], q = !m && F || G(D), Z = P == "Array" && C.entries || F, Y, J, ve; - if (Z && (Y = u(Z.call(new M())), y !== Object.prototype && Y.next && (!S && u(Y) !== y && (d ? d(Y, y) : typeof Y[w] != "function" && h(Y, w, $)), p(Y, R, !0, !0), S && (b[R] = $))), D == x && F && F.name !== x && (z = !0, q = function() { - return F.call(this); - }), (!S || K) && C[w] !== q && h(C, w, q), b[P] = q, D) - if (J = { values: G(x), keys: V ? q : G(E), entries: G(k) }, K) - for (ve in J) - (m || z || !(ve in C)) && g(C, ve, J[ve]); + }, I = P + " Iterator", U = !1, F = M.prototype, C = F[w] || F["@@iterator"] || D && F[D], q = !m && C || G(D), Z = P == "Array" && F.entries || C, Y, ue, te; + if (Z && (Y = u(Z.call(new M())), y !== Object.prototype && Y.next && (!S && u(Y) !== y && (d ? d(Y, y) : typeof Y[w] != "function" && h(Y, w, R)), p(Y, I, !0, !0), S && (b[I] = R))), D == x && C && C.name !== x && (U = !0, q = function() { + return C.call(this); + }), (!S || W) && F[w] !== q && h(F, w, q), b[P] = q, D) + if (ue = { values: G(x), keys: V ? q : G(E), entries: G(k) }, W) + for (te in ue) + (m || U || !(te in F)) && g(F, te, ue[te]); else - a({ target: P, proto: !0, forced: m || z }, J); - return J; + a({ target: P, proto: !0, forced: m || U }, ue); + return ue; }; }, function(i, r, n) { var a = n(11); @@ -53702,19 +53712,19 @@ var i1 = { exports: {} }; }, x = function() { var P = h("iframe"), B = "java" + A + ":", T; return P.style.display = "none", p.appendChild(P), P.src = String(B), T = P.contentWindow.document, T.open(), T.write(w("document.F=Object")), T.close(), T.F; - }, k, $ = function() { + }, k, R = function() { try { k = document.domain && new ActiveXObject("htmlfile"); } catch { } - $ = k ? E(k) : x(); + R = k ? E(k) : x(); for (var P = u.length; P--; ) - delete $[b][u[P]]; - return $(); + delete R[b][u[P]]; + return R(); }; d[y] = !0, i.exports = Object.create || function(P, B) { var T; - return P !== null ? (m[b] = a(P), T = new m(), m[b] = null, T[y] = P) : T = $(), B === void 0 ? T : s(T, B); + return P !== null ? (m[b] = a(P), T = new m(), m[b] = null, T[y] = P) : T = R(), B === void 0 ? T : s(T, B); }; }, function(i, r, n) { var a = n(30), s = n(35), u = n(79), d = function(h) { @@ -53776,11 +53786,11 @@ var i1 = { exports: {} }; }, function(i, r, n) { var a = n(0), s = a(n(1)), u = a(n(4)); (0, s.default)(r, "__esModule", { value: !0 }); - var d = n(2), p = d.__importDefault(n(3)), h = n(6), g = d.__importDefault(n(267)), _ = d.__importDefault(n(280)), S = d.__importDefault(n(281)), b = d.__importDefault(n(282)), A = d.__importDefault(n(301)), y = d.__importStar(n(416)), m = d.__importDefault(n(417)), w = d.__importDefault(n(418)), E = d.__importDefault(n(419)), x = d.__importStar(n(420)), k = d.__importDefault(n(423)), $ = d.__importDefault(n(424)), M = d.__importDefault(n(425)), P = d.__importDefault(n(427)), B = d.__importDefault(n(437)), T = d.__importDefault(n(440)), D = d.__importStar(n(441)), V = d.__importDefault(n(23)), K = d.__importDefault(n(134)), G = d.__importDefault(n(24)), R = d.__importDefault(n(33)), z = d.__importDefault(n(38)), C = d.__importDefault(n(39)), F = 1, q = function() { - function Z(Y, J) { - this.pluginsFunctionList = {}, this.beforeDestroyHooks = [], this.id = "wangEditor-" + F++, this.toolbarSelector = Y, this.textSelector = J, y.selectorValidator(this), this.config = h.deepClone(g.default), this.$toolbarElem = p.default("
    "), this.$textContainerElem = p.default("
    "), this.$textElem = p.default("
    "), this.toolbarElemId = "", this.textElemId = "", this.isFocus = !1, this.isComposing = !1, this.isCompatibleMode = !1, this.selection = new _.default(this), this.cmd = new S.default(this), this.txt = new b.default(this), this.menus = new A.default(this), this.zIndex = new $.default(), this.change = new M.default(this), this.history = new P.default(this), this.onSelectionChange = new T.default(this); - var ve = B.default(this), pe = ve.disable, Te = ve.enable; - this.disable = pe, this.enable = Te, this.isEnable = !0; + var d = n(2), p = d.__importDefault(n(3)), h = n(6), g = d.__importDefault(n(267)), _ = d.__importDefault(n(280)), S = d.__importDefault(n(281)), b = d.__importDefault(n(282)), A = d.__importDefault(n(301)), y = d.__importStar(n(416)), m = d.__importDefault(n(417)), w = d.__importDefault(n(418)), E = d.__importDefault(n(419)), x = d.__importStar(n(420)), k = d.__importDefault(n(423)), R = d.__importDefault(n(424)), M = d.__importDefault(n(425)), P = d.__importDefault(n(427)), B = d.__importDefault(n(437)), T = d.__importDefault(n(440)), D = d.__importStar(n(441)), V = d.__importDefault(n(23)), W = d.__importDefault(n(134)), G = d.__importDefault(n(24)), I = d.__importDefault(n(33)), U = d.__importDefault(n(38)), F = d.__importDefault(n(39)), C = 1, q = function() { + function Z(Y, ue) { + this.pluginsFunctionList = {}, this.beforeDestroyHooks = [], this.id = "wangEditor-" + C++, this.toolbarSelector = Y, this.textSelector = ue, y.selectorValidator(this), this.config = h.deepClone(g.default), this.$toolbarElem = p.default("
    "), this.$textContainerElem = p.default("
    "), this.$textElem = p.default("
    "), this.toolbarElemId = "", this.textElemId = "", this.isFocus = !1, this.isComposing = !1, this.isCompatibleMode = !1, this.selection = new _.default(this), this.cmd = new S.default(this), this.txt = new b.default(this), this.menus = new A.default(this), this.zIndex = new R.default(), this.change = new M.default(this), this.history = new P.default(this), this.onSelectionChange = new T.default(this); + var te = B.default(this), pe = te.disable, ke = te.enable; + this.disable = pe, this.enable = ke, this.isEnable = !0; } return Z.prototype.initSelection = function(Y) { m.default(this, Y); @@ -53789,9 +53799,9 @@ var i1 = { exports: {} }; }, Z.prototype.beforeDestroy = function(Y) { return this.beforeDestroyHooks.push(Y), this; }, Z.prototype.destroy = function() { - var Y, J = this; - (0, u.default)(Y = this.beforeDestroyHooks).call(Y, function(ve) { - return ve.call(J); + var Y, ue = this; + (0, u.default)(Y = this.beforeDestroyHooks).call(Y, function(te) { + return te.call(ue); }), this.$toolbarElem.remove(), this.$textContainerElem.remove(); }, Z.prototype.fullScreen = function() { x.setFullScreen(this); @@ -53799,13 +53809,13 @@ var i1 = { exports: {} }; x.setUnFullScreen(this); }, Z.prototype.scrollToHead = function(Y) { k.default(this, Y); - }, Z.registerMenu = function(Y, J) { - !J || typeof J != "function" || (Z.globalCustomMenuConstructorList[Y] = J); - }, Z.prototype.registerPlugin = function(Y, J) { - D.registerPlugin(Y, J, this.pluginsFunctionList); - }, Z.registerPlugin = function(Y, J) { - D.registerPlugin(Y, J, Z.globalPluginsFunctionList); - }, Z.$ = p.default, Z.BtnMenu = V.default, Z.DropList = K.default, Z.DropListMenu = G.default, Z.Panel = R.default, Z.PanelMenu = z.default, Z.Tooltip = C.default, Z.globalCustomMenuConstructorList = {}, Z.globalPluginsFunctionList = {}, Z; + }, Z.registerMenu = function(Y, ue) { + !ue || typeof ue != "function" || (Z.globalCustomMenuConstructorList[Y] = ue); + }, Z.prototype.registerPlugin = function(Y, ue) { + D.registerPlugin(Y, ue, this.pluginsFunctionList); + }, Z.registerPlugin = function(Y, ue) { + D.registerPlugin(Y, ue, Z.globalPluginsFunctionList); + }, Z.$ = p.default, Z.BtnMenu = V.default, Z.DropList = W.default, Z.DropListMenu = G.default, Z.Panel = I.default, Z.PanelMenu = U.default, Z.Tooltip = F.default, Z.globalCustomMenuConstructorList = {}, Z.globalPluginsFunctionList = {}, Z; }(); r.default = q; }, function(i, r, n) { @@ -53901,8 +53911,8 @@ var i1 = { exports: {} }; this.editor = y; } return A.prototype.insertImg = function(y, m, w) { - var E = this.editor, x = E.config, k = "validate.", $ = function(V, K) { - return K === void 0 && (K = k), E.i18next.t(K + V); + var E = this.editor, x = E.config, k = "validate.", R = function(V, W) { + return W === void 0 && (W = k), E.i18next.t(W + V); }, M = y.replace(//g, ">"); M = M.replace("'", '"'); var P = ""; @@ -53913,29 +53923,29 @@ var i1 = { exports: {} }; T.onload = function() { T = null; }, T.onerror = function() { - x.customAlert($("\u63D2\u5165\u56FE\u7247\u9519\u8BEF"), "error", "wangEditor: " + $("\u63D2\u5165\u56FE\u7247\u9519\u8BEF") + "\uFF0C" + $("\u56FE\u7247\u94FE\u63A5") + ' "' + y + '"\uFF0C' + $("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")), T = null; + x.customAlert(R("\u63D2\u5165\u56FE\u7247\u9519\u8BEF"), "error", "wangEditor: " + R("\u63D2\u5165\u56FE\u7247\u9519\u8BEF") + "\uFF0C" + R("\u56FE\u7247\u94FE\u63A5") + ' "' + y + '"\uFF0C' + R("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")), T = null; }, T.onabort = function() { return T = null; }, T.src = y; }, A.prototype.uploadImg = function(y) { var m = this; if (!!y.length) { - var w = this.editor, E = w.config, x = "validate.", k = function(me) { - return w.i18next.t(x + me); - }, $ = E.uploadImgServer, M = E.uploadImgShowBase64, P = E.uploadImgMaxSize, B = P / 1024 / 1024, T = E.uploadImgMaxLength, D = E.uploadFileName, V = E.uploadImgParams, K = E.uploadImgParamsWithUrl, G = E.uploadImgHeaders, R = E.uploadImgHooks, z = E.uploadImgTimeout, C = E.withCredentials, F = E.customUploadImg; - if (!(!F && !$ && !M)) { + var w = this.editor, E = w.config, x = "validate.", k = function(ve) { + return w.i18next.t(x + ve); + }, R = E.uploadImgServer, M = E.uploadImgShowBase64, P = E.uploadImgMaxSize, B = P / 1024 / 1024, T = E.uploadImgMaxLength, D = E.uploadFileName, V = E.uploadImgParams, W = E.uploadImgParamsWithUrl, G = E.uploadImgHeaders, I = E.uploadImgHooks, U = E.uploadImgTimeout, F = E.withCredentials, C = E.customUploadImg; + if (!(!C && !R && !M)) { var q = [], Z = []; if (g.arrForEach(y, function(ge) { if (!!ge) { - var me = ge.name || ge.type.replace("/", "."), we = ge.size; - if (!(!me || !we)) { - var ce = w.config.uploadImgAccept.join("|"), Se = ".(" + ce + ")$", I = new RegExp(Se, "i"); - if (I.test(me) === !1) { - Z.push("\u3010" + me + "\u3011" + k("\u4E0D\u662F\u56FE\u7247")); + var ve = ge.name || ge.type.replace("/", "."), we = ge.size; + if (!(!ve || !we)) { + var he = w.config.uploadImgAccept.join("|"), Se = ".(" + he + ")$", xe = new RegExp(Se, "i"); + if (xe.test(ve) === !1) { + Z.push("\u3010" + ve + "\u3011" + k("\u4E0D\u662F\u56FE\u7247")); return; } if (P < we) { - Z.push("\u3010" + me + "\u3011" + k("\u5927\u4E8E") + " " + B + "M"); + Z.push("\u3010" + ve + "\u3011" + k("\u5927\u4E8E") + " " + B + "M"); return; } q.push(ge); @@ -53955,58 +53965,58 @@ var i1 = { exports: {} }; E.customAlert(k("\u4E00\u6B21\u6700\u591A\u4E0A\u4F20") + T + k("\u5F20\u56FE\u7247"), "warning"); return; } - if (F && typeof F == "function") { + if (C && typeof C == "function") { var Y; - F(q, (0, u.default)(Y = this.insertImg).call(Y, this)); + C(q, (0, u.default)(Y = this.insertImg).call(Y, this)); return; } - var J = new FormData(); - if ((0, d.default)(q).call(q, function(ge, me) { + var ue = new FormData(); + if ((0, d.default)(q).call(q, function(ge, ve) { var we = D || ge.name; - q.length > 1 && (we = we + (me + 1)), J.append(we, ge); - }), $) { - var ve = $.split("#"); - $ = ve[0]; - var pe = ve[1] || ""; - (0, d.default)(g).call(g, V, function(ge, me) { - K && ((0, p.default)($).call($, "?") > 0 ? $ += "&" : $ += "?", $ = $ + ge + "=" + me), J.append(ge, me); - }), pe && ($ += "#" + pe); - var Te = _.default($, { timeout: z, formData: J, headers: G, withCredentials: !!C, beforeSend: function(me) { - if (R.before) - return R.before(me, w, q); - }, onTimeout: function(me) { - E.customAlert(k("\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6"), "error"), R.timeout && R.timeout(me, w); - }, onProgress: function(me, we) { - var ce = new S.default(w); - we.lengthComputable && (me = we.loaded / we.total, ce.show(me)); - }, onError: function(me) { - E.customAlert(k("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF"), "error", k("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF") + "\uFF0C" + k("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001") + ": " + me.status), R.error && R.error(me, w); - }, onFail: function(me, we) { - E.customAlert(k("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"), "error", k("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF") + ("\uFF0C" + k("\u8FD4\u56DE\u7ED3\u679C") + ": ") + we), R.fail && R.fail(me, w, we); - }, onSuccess: function(me, we) { - if (R.customInsert) { - var ce; - R.customInsert((0, u.default)(ce = m.insertImg).call(ce, m), we, w); + q.length > 1 && (we = we + (ve + 1)), ue.append(we, ge); + }), R) { + var te = R.split("#"); + R = te[0]; + var pe = te[1] || ""; + (0, d.default)(g).call(g, V, function(ge, ve) { + W && ((0, p.default)(R).call(R, "?") > 0 ? R += "&" : R += "?", R = R + ge + "=" + ve), ue.append(ge, ve); + }), pe && (R += "#" + pe); + var ke = _.default(R, { timeout: U, formData: ue, headers: G, withCredentials: !!F, beforeSend: function(ve) { + if (I.before) + return I.before(ve, w, q); + }, onTimeout: function(ve) { + E.customAlert(k("\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6"), "error"), I.timeout && I.timeout(ve, w); + }, onProgress: function(ve, we) { + var he = new S.default(w); + we.lengthComputable && (ve = we.loaded / we.total, he.show(ve)); + }, onError: function(ve) { + E.customAlert(k("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF"), "error", k("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF") + "\uFF0C" + k("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001") + ": " + ve.status), I.error && I.error(ve, w); + }, onFail: function(ve, we) { + E.customAlert(k("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"), "error", k("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF") + ("\uFF0C" + k("\u8FD4\u56DE\u7ED3\u679C") + ": ") + we), I.fail && I.fail(ve, w, we); + }, onSuccess: function(ve, we) { + if (I.customInsert) { + var he; + I.customInsert((0, u.default)(he = m.insertImg).call(he, m), we, w); return; } if (we.errno != "0") { - E.customAlert(k("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"), "error", k("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF") + "\uFF0C" + k("\u8FD4\u56DE\u7ED3\u679C") + " errno=" + we.errno), R.fail && R.fail(me, w, we); + E.customAlert(k("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"), "error", k("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF") + "\uFF0C" + k("\u8FD4\u56DE\u7ED3\u679C") + " errno=" + we.errno), I.fail && I.fail(ve, w, we); return; } var Se = we.data; - (0, d.default)(Se).call(Se, function(I) { - typeof I == "string" ? m.insertImg(I) : m.insertImg(I.url, I.alt, I.href); - }), R.success && R.success(me, w, we); + (0, d.default)(Se).call(Se, function(xe) { + typeof xe == "string" ? m.insertImg(xe) : m.insertImg(xe.url, xe.alt, xe.href); + }), I.success && I.success(ve, w, we); } }); - typeof Te == "string" && E.customAlert(Te, "error"); + typeof ke == "string" && E.customAlert(ke, "error"); return; } M && g.arrForEach(y, function(ge) { - var me = m, we = new FileReader(); + var ve = m, we = new FileReader(); we.readAsDataURL(ge), we.onload = function() { if (!!this.result) { - var ce = this.result.toString(); - me.insertImg(ce, ce); + var he = this.result.toString(); + ve.insertImg(he, he); } }; }); @@ -54036,20 +54046,20 @@ var i1 = { exports: {} }; var E = A.cloneNode(), x = !1; y.nodeValue === "" && (x = !0); var k = []; - return (0, d.default)(w = A.childNodes).call(w, function($) { - if (!S($, y) && x && (E.appendChild($.cloneNode(!0)), $.nodeName !== "BR" && k.push($)), S($, y)) { - if ($.nodeType === 1) { - var M = _($, y, m); + return (0, d.default)(w = A.childNodes).call(w, function(R) { + if (!S(R, y) && x && (E.appendChild(R.cloneNode(!0)), R.nodeName !== "BR" && k.push(R)), S(R, y)) { + if (R.nodeType === 1) { + var M = _(R, y, m); M && M.textContent !== "" && (E == null || E.appendChild(M)); } - if ($.nodeType === 3 && y.isEqualNode($)) { - var P = b($, m); + if (R.nodeType === 3 && y.isEqualNode(R)) { + var P = b(R, m); E.textContent = P; } x = !0; } - }), (0, d.default)(k).call(k, function($) { - var M = $; + }), (0, d.default)(k).call(k, function(R) { + var M = R; M.remove(); }), E; } @@ -54221,38 +54231,38 @@ var i1 = { exports: {} }; return g === void 0 || (_ = a(g)[d]) == null ? h : s(_); }; }, function(i, r, n) { - var a = n(8), s = n(11), u = n(34), d = n(40), p = n(108), h = n(73), g = n(118), _ = a.location, S = a.setImmediate, b = a.clearImmediate, A = a.process, y = a.MessageChannel, m = a.Dispatch, w = 0, E = {}, x = "onreadystatechange", k, $, M, P = function(K) { - if (E.hasOwnProperty(K)) { - var G = E[K]; - delete E[K], G(); + var a = n(8), s = n(11), u = n(34), d = n(40), p = n(108), h = n(73), g = n(118), _ = a.location, S = a.setImmediate, b = a.clearImmediate, A = a.process, y = a.MessageChannel, m = a.Dispatch, w = 0, E = {}, x = "onreadystatechange", k, R, M, P = function(W) { + if (E.hasOwnProperty(W)) { + var G = E[W]; + delete E[W], G(); } - }, B = function(K) { + }, B = function(W) { return function() { - P(K); + P(W); }; - }, T = function(K) { - P(K.data); - }, D = function(K) { - a.postMessage(K + "", _.protocol + "//" + _.host); + }, T = function(W) { + P(W.data); + }, D = function(W) { + a.postMessage(W + "", _.protocol + "//" + _.host); }; - (!S || !b) && (S = function(K) { - for (var G = [], R = 1; arguments.length > R; ) - G.push(arguments[R++]); + (!S || !b) && (S = function(W) { + for (var G = [], I = 1; arguments.length > I; ) + G.push(arguments[I++]); return E[++w] = function() { - (typeof K == "function" ? K : Function(K)).apply(void 0, G); + (typeof W == "function" ? W : Function(W)).apply(void 0, G); }, k(w), w; - }, b = function(K) { - delete E[K]; - }, u(A) == "process" ? k = function(K) { - A.nextTick(B(K)); - } : m && m.now ? k = function(K) { - m.now(B(K)); - } : y && !g ? ($ = new y(), M = $.port2, $.port1.onmessage = T, k = d(M.postMessage, M, 1)) : a.addEventListener && typeof postMessage == "function" && !a.importScripts && !s(D) && _.protocol !== "file:" ? (k = D, a.addEventListener("message", T, !1)) : x in h("script") ? k = function(K) { + }, b = function(W) { + delete E[W]; + }, u(A) == "process" ? k = function(W) { + A.nextTick(B(W)); + } : m && m.now ? k = function(W) { + m.now(B(W)); + } : y && !g ? (R = new y(), M = R.port2, R.port1.onmessage = T, k = d(M.postMessage, M, 1)) : a.addEventListener && typeof postMessage == "function" && !a.importScripts && !s(D) && _.protocol !== "file:" ? (k = D, a.addEventListener("message", T, !1)) : x in h("script") ? k = function(W) { p.appendChild(h("script"))[x] = function() { - p.removeChild(this), P(K); + p.removeChild(this), P(W); }; - } : k = function(K) { - setTimeout(B(K), 0); + } : k = function(W) { + setTimeout(B(W), 0); }), i.exports = { set: S, clear: b }; }, function(i, r, n) { var a = n(84); @@ -54277,31 +54287,31 @@ var i1 = { exports: {} }; i.exports = n(197); }, function(i, r, n) { var a = n(5), s = n(8), u = n(123), d = n(11), p = n(19), h = n(66), g = n(83), _ = n(13), S = n(37), b = n(18).f, A = n(32).forEach, y = n(14), m = n(42), w = m.set, E = m.getterFor; - i.exports = function(x, k, $) { - var M = x.indexOf("Map") !== -1, P = x.indexOf("Weak") !== -1, B = M ? "set" : "add", T = s[x], D = T && T.prototype, V = {}, K; + i.exports = function(x, k, R) { + var M = x.indexOf("Map") !== -1, P = x.indexOf("Weak") !== -1, B = M ? "set" : "add", T = s[x], D = T && T.prototype, V = {}, W; if (!y || typeof T != "function" || !(P || D.forEach && !d(function() { new T().entries().next(); }))) - K = $.getConstructor(k, x, M, B), u.REQUIRED = !0; + W = R.getConstructor(k, x, M, B), u.REQUIRED = !0; else { - K = k(function(R, z) { - w(g(R, K, x), { type: x, collection: new T() }), z != null && h(z, R[B], R, M); + W = k(function(I, U) { + w(g(I, W, x), { type: x, collection: new T() }), U != null && h(U, I[B], I, M); }); var G = E(x); - A(["add", "clear", "delete", "forEach", "get", "has", "set", "keys", "values", "entries"], function(R) { - var z = R == "add" || R == "set"; - R in D && !(P && R == "clear") && p(K.prototype, R, function(C, F) { + A(["add", "clear", "delete", "forEach", "get", "has", "set", "keys", "values", "entries"], function(I) { + var U = I == "add" || I == "set"; + I in D && !(P && I == "clear") && p(W.prototype, I, function(F, C) { var q = G(this).collection; - if (!z && P && !_(C)) - return R == "get" ? void 0 : !1; - var Z = q[R](C === 0 ? 0 : C, F); - return z ? this : Z; + if (!U && P && !_(F)) + return I == "get" ? void 0 : !1; + var Z = q[I](F === 0 ? 0 : F, C); + return U ? this : Z; }); - }), P || b(K.prototype, "size", { configurable: !0, get: function() { + }), P || b(W.prototype, "size", { configurable: !0, get: function() { return G(this).collection.size; } }); } - return S(K, x, !1, !0), V[x] = K, a({ global: !0, forced: !0 }, V), P || $.setStrong(K, x, M), K; + return S(W, x, !1, !0), V[x] = W, a({ global: !0, forced: !0 }, V), P || R.setStrong(W, x, M), W; }; }, function(i, r, n) { var a = n(51), s = n(13), u = n(16), d = n(18).f, p = n(64), h = n(200), g = p("meta"), _ = 0, S = Object.isExtensible || function() { @@ -54337,49 +54347,49 @@ var i1 = { exports: {} }; a[g] = !0; }, function(i, r, n) { var a = n(18).f, s = n(77), u = n(110), d = n(40), p = n(83), h = n(66), g = n(75), _ = n(111), S = n(14), b = n(123).fastKey, A = n(42), y = A.set, m = A.getterFor; - i.exports = { getConstructor: function(E, x, k, $) { + i.exports = { getConstructor: function(E, x, k, R) { var M = E(function(D, V) { - p(D, M, x), y(D, { type: x, index: s(null), first: void 0, last: void 0, size: 0 }), S || (D.size = 0), V != null && h(V, D[$], D, k); - }), P = m(x), B = function(V, K, G) { - var R = P(V), z = T(V, K), C, F; - return z ? z.value = G : (R.last = z = { index: F = b(K, !0), key: K, value: G, previous: C = R.last, next: void 0, removed: !1 }, R.first || (R.first = z), C && (C.next = z), S ? R.size++ : V.size++, F !== "F" && (R.index[F] = z)), V; - }, T = function(V, K) { - var G = P(V), R = b(K), z; - if (R !== "F") - return G.index[R]; - for (z = G.first; z; z = z.next) - if (z.key == K) - return z; + p(D, M, x), y(D, { type: x, index: s(null), first: void 0, last: void 0, size: 0 }), S || (D.size = 0), V != null && h(V, D[R], D, k); + }), P = m(x), B = function(V, W, G) { + var I = P(V), U = T(V, W), F, C; + return U ? U.value = G : (I.last = U = { index: C = b(W, !0), key: W, value: G, previous: F = I.last, next: void 0, removed: !1 }, I.first || (I.first = U), F && (F.next = U), S ? I.size++ : V.size++, C !== "F" && (I.index[C] = U)), V; + }, T = function(V, W) { + var G = P(V), I = b(W), U; + if (I !== "F") + return G.index[I]; + for (U = G.first; U; U = U.next) + if (U.key == W) + return U; }; return u(M.prototype, { clear: function() { - for (var V = this, K = P(V), G = K.index, R = K.first; R; ) - R.removed = !0, R.previous && (R.previous = R.previous.next = void 0), delete G[R.index], R = R.next; - K.first = K.last = void 0, S ? K.size = 0 : V.size = 0; + for (var V = this, W = P(V), G = W.index, I = W.first; I; ) + I.removed = !0, I.previous && (I.previous = I.previous.next = void 0), delete G[I.index], I = I.next; + W.first = W.last = void 0, S ? W.size = 0 : V.size = 0; }, delete: function(V) { - var K = this, G = P(K), R = T(K, V); - if (R) { - var z = R.next, C = R.previous; - delete G.index[R.index], R.removed = !0, C && (C.next = z), z && (z.previous = C), G.first == R && (G.first = z), G.last == R && (G.last = C), S ? G.size-- : K.size--; + var W = this, G = P(W), I = T(W, V); + if (I) { + var U = I.next, F = I.previous; + delete G.index[I.index], I.removed = !0, F && (F.next = U), U && (U.previous = F), G.first == I && (G.first = U), G.last == I && (G.last = F), S ? G.size-- : W.size--; } - return !!R; + return !!I; }, forEach: function(V) { - for (var K = P(this), G = d(V, arguments.length > 1 ? arguments[1] : void 0, 3), R; R = R ? R.next : K.first; ) - for (G(R.value, R.key, this); R && R.removed; ) - R = R.previous; + for (var W = P(this), G = d(V, arguments.length > 1 ? arguments[1] : void 0, 3), I; I = I ? I.next : W.first; ) + for (G(I.value, I.key, this); I && I.removed; ) + I = I.previous; }, has: function(V) { return !!T(this, V); } }), u(M.prototype, k ? { get: function(V) { - var K = T(this, V); - return K && K.value; + var W = T(this, V); + return W && W.value; }, - set: function(V, K) { - return B(this, V === 0 ? 0 : V, K); + set: function(V, W) { + return B(this, V === 0 ? 0 : V, W); } } : { add: function(V) { @@ -54389,9 +54399,9 @@ var i1 = { exports: {} }; return P(this).size; } }), M; }, setStrong: function(E, x, k) { - var $ = x + " Iterator", M = m(x), P = m($); + var R = x + " Iterator", M = m(x), P = m(R); g(E, x, function(B, T) { - y(this, { type: $, target: B, state: M(B), kind: T, last: void 0 }); + y(this, { type: R, target: B, state: M(B), kind: T, last: void 0 }); }, function() { for (var B = P(this), T = B.kind, D = B.last; D && D.removed; ) D = D.previous; @@ -54463,15 +54473,15 @@ var i1 = { exports: {} }; this.hideTimeoutId = 0, this.menu = b, this.conf = A; var m = h.default('
    '), w = h.default("

    " + A.title + "

    "); w.addClass("w-e-dp-title"), m.append(w); - var E = A.list || [], x = A.type || "list", k = A.clickHandler || g.EMPTY_FN, $ = h.default(''); + var E = A.list || [], x = A.type || "list", k = A.clickHandler || g.EMPTY_FN, R = h.default(''); (0, u.default)(E).call(E, function(M) { var P = M.$elem, B = M.value, T = h.default('
  • '); - P && (T.append(P), $.append(T), T.on("click", function(D) { + P && (T.append(P), R.append(T), T.on("click", function(D) { k(B), D.stopPropagation(), y.hideTimeoutId = (0, d.default)(function() { y.hide(); }); })); - }), m.append($), m.on("mouseleave", function() { + }), m.append(R), m.on("mouseleave", function() { y.hideTimeoutId = (0, d.default)(function() { y.hide(); }); @@ -54593,12 +54603,12 @@ var i1 = { exports: {} }; }, A.prototype.validator = function(y, m, w) { return !(!y.length || !m.length || w.equal(y) || w.equal(m)); }, A.prototype.handleSelectionRangeNodes = function(y) { - var m = this.editor, w = m.selection, E = y.toLowerCase(), x = w.getSelectionContainerElem(), k = w.getSelectionStartElem().getNodeTop(m), $ = w.getSelectionEndElem().getNodeTop(m); - if (!!this.validator(k, $, m.$textElem)) { + var m = this.editor, w = m.selection, E = y.toLowerCase(), x = w.getSelectionContainerElem(), k = w.getSelectionStartElem().getNodeTop(m), R = w.getSelectionEndElem().getNodeTop(m); + if (!!this.validator(k, R, m.$textElem)) { var M = w.getRange(), P = M == null ? void 0 : M.collapsed; m.$textElem.equal(x) || (x = x.getNodeTop(m)); - var B = { editor: m, listType: y, listTarget: E, $selectionElem: x, $startElem: k, $endElem: $ }, T; - this.isOrderElem(x) ? T = g.ClassType.Wrap : this.isOrderElem(k) && this.isOrderElem($) ? T = g.ClassType.Join : this.isOrderElem(k) ? T = g.ClassType.StartJoin : this.isOrderElem($) ? T = g.ClassType.EndJoin : T = g.ClassType.Other; + var B = { editor: m, listType: y, listTarget: E, $selectionElem: x, $startElem: k, $endElem: R }, T; + this.isOrderElem(x) ? T = g.ClassType.Wrap : this.isOrderElem(k) && this.isOrderElem(R) ? T = g.ClassType.Join : this.isOrderElem(k) ? T = g.ClassType.StartJoin : this.isOrderElem(R) ? T = g.ClassType.EndJoin : T = g.ClassType.Other; var D = new g.default(g.createListHandle(T, B, M)); h.updateRange(m, D.getSelectionRangeElem(), !!P); } @@ -55443,150 +55453,150 @@ var i1 = { exports: {} }; }, function(i, r) { i.exports = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }; }, function(i, r, n) { - var a = n(5), s = n(43), u = n(8), d = n(36), p = n(109), h = n(53), g = n(110), _ = n(37), S = n(111), b = n(13), A = n(41), y = n(83), m = n(34), w = n(102), E = n(66), x = n(115), k = n(116), $ = n(117).set, M = n(176), P = n(119), B = n(177), T = n(85), D = n(120), V = n(42), K = n(101), G = n(10), R = n(86), z = G("species"), C = "Promise", F = V.get, q = V.set, Z = V.getterFor(C), Y = p, J = u.TypeError, ve = u.document, pe = u.process, Te = d("fetch"), ge = T.f, me = ge, we = m(pe) == "process", ce = !!(ve && ve.createEvent && u.dispatchEvent), Se = "unhandledrejection", I = "rejectionhandled", j = 0, ee = 1, te = 2, se = 1, oe = 2, _e, Ae, Be, ct, ze = K(C, function() { - var dt = w(Y) !== String(Y); - if (!dt && (R === 66 || !we && typeof PromiseRejectionEvent != "function") || s && !Y.prototype.finally) + var a = n(5), s = n(43), u = n(8), d = n(36), p = n(109), h = n(53), g = n(110), _ = n(37), S = n(111), b = n(13), A = n(41), y = n(83), m = n(34), w = n(102), E = n(66), x = n(115), k = n(116), R = n(117).set, M = n(176), P = n(119), B = n(177), T = n(85), D = n(120), V = n(42), W = n(101), G = n(10), I = n(86), U = G("species"), F = "Promise", C = V.get, q = V.set, Z = V.getterFor(F), Y = p, ue = u.TypeError, te = u.document, pe = u.process, ke = d("fetch"), ge = T.f, ve = ge, we = m(pe) == "process", he = !!(te && te.createEvent && u.dispatchEvent), Se = "unhandledrejection", xe = "rejectionhandled", $ = 0, K = 1, X = 2, ie = 1, re = 2, fe, Ae, Fe, Xe, Ze = W(F, function() { + var ft = w(Y) !== String(Y); + if (!ft && (I === 66 || !we && typeof PromiseRejectionEvent != "function") || s && !Y.prototype.finally) return !0; - if (R >= 51 && /native code/.test(Y)) + if (I >= 51 && /native code/.test(Y)) return !1; - var He = Y.resolve(1), Je = function($e) { + var je = Y.resolve(1), Je = function($e) { $e(function() { }, function() { }); - }, pt = He.constructor = {}; - return pt[z] = Je, !(He.then(function() { + }, ht = je.constructor = {}; + return ht[U] = Je, !(je.then(function() { }) instanceof Je); - }), Ee = ze || !x(function(dt) { - Y.all(dt).catch(function() { + }), _e = Ze || !x(function(ft) { + Y.all(ft).catch(function() { }); - }), Pe = function(He) { + }), Le = function(je) { var Je; - return b(He) && typeof (Je = He.then) == "function" ? Je : !1; - }, Oe = function(He, Je, pt) { + return b(je) && typeof (Je = je.then) == "function" ? Je : !1; + }, Oe = function(je, Je, ht) { if (!Je.notified) { Je.notified = !0; var Ge = Je.reactions; M(function() { - for (var $e = Je.value, ut = Je.state == ee, ot = 0; Ge.length > ot; ) { - var at = Ge[ot++], Ct = ut ? at.ok : at.fail, Pn = at.resolve, Qt = at.reject, zt = at.domain, It, ui, ur; + for (var $e = Je.value, dt = Je.state == K, lt = 0; Ge.length > lt; ) { + var st = Ge[lt++], Ct = dt ? st.ok : st.fail, Pn = st.resolve, Qt = st.reject, zt = st.domain, It, ui, ur; try { - Ct ? (ut || (Je.rejection === oe && lt(He, Je), Je.rejection = se), Ct === !0 ? It = $e : (zt && zt.enter(), It = Ct($e), zt && (zt.exit(), ur = !0)), It === at.promise ? Qt(J("Promise-chain cycle")) : (ui = Pe(It)) ? ui.call(It, Pn, Qt) : Pn(It)) : Qt($e); + Ct ? (dt || (Je.rejection === re && He(je, Je), Je.rejection = ie), Ct === !0 ? It = $e : (zt && zt.enter(), It = Ct($e), zt && (zt.exit(), ur = !0)), It === st.promise ? Qt(ue("Promise-chain cycle")) : (ui = Le(It)) ? ui.call(It, Pn, Qt) : Pn(It)) : Qt($e); } catch (yi) { zt && !ur && zt.exit(), Qt(yi); } } - Je.reactions = [], Je.notified = !1, pt && !Je.rejection && De(He, Je); + Je.reactions = [], Je.notified = !1, ht && !Je.rejection && pt(je, Je); }); } - }, nt = function(He, Je, pt) { + }, it = function(je, Je, ht) { var Ge, $e; - ce ? (Ge = ve.createEvent("Event"), Ge.promise = Je, Ge.reason = pt, Ge.initEvent(He, !1, !0), u.dispatchEvent(Ge)) : Ge = { promise: Je, reason: pt }, ($e = u["on" + He]) ? $e(Ge) : He === Se && B("Unhandled promise rejection", pt); - }, De = function(He, Je) { - $.call(u, function() { - var pt = Je.value, Ge = Ne(Je), $e; + he ? (Ge = te.createEvent("Event"), Ge.promise = Je, Ge.reason = ht, Ge.initEvent(je, !1, !0), u.dispatchEvent(Ge)) : Ge = { promise: Je, reason: ht }, ($e = u["on" + je]) ? $e(Ge) : je === Se && B("Unhandled promise rejection", ht); + }, pt = function(je, Je) { + R.call(u, function() { + var ht = Je.value, Ge = Re(Je), $e; if (Ge && ($e = D(function() { - we ? pe.emit("unhandledRejection", pt, He) : nt(Se, He, pt); - }), Je.rejection = we || Ne(Je) ? oe : se, $e.error)) + we ? pe.emit("unhandledRejection", ht, je) : it(Se, je, ht); + }), Je.rejection = we || Re(Je) ? re : ie, $e.error)) throw $e.value; }); - }, Ne = function(He) { - return He.rejection !== se && !He.parent; - }, lt = function(He, Je) { - $.call(u, function() { - we ? pe.emit("rejectionHandled", He) : nt(I, He, Je.value); + }, Re = function(je) { + return je.rejection !== ie && !je.parent; + }, He = function(je, Je) { + R.call(u, function() { + we ? pe.emit("rejectionHandled", je) : it(xe, je, Je.value); }); - }, mt = function(He, Je, pt, Ge) { + }, at = function(je, Je, ht, Ge) { return function($e) { - He(Je, pt, $e, Ge); + je(Je, ht, $e, Ge); }; - }, Ze = function(He, Je, pt, Ge) { - Je.done || (Je.done = !0, Ge && (Je = Ge), Je.value = pt, Je.state = te, Oe(He, Je, !0)); - }, Ot = function dt(He, Je, pt, Ge) { + }, We = function(je, Je, ht, Ge) { + Je.done || (Je.done = !0, Ge && (Je = Ge), Je.value = ht, Je.state = X, Oe(je, Je, !0)); + }, $t = function ft(je, Je, ht, Ge) { if (!Je.done) { Je.done = !0, Ge && (Je = Ge); try { - if (He === pt) - throw J("Promise can't be resolved itself"); - var $e = Pe(pt); + if (je === ht) + throw ue("Promise can't be resolved itself"); + var $e = Le(ht); $e ? M(function() { - var ut = { done: !1 }; + var dt = { done: !1 }; try { - $e.call(pt, mt(dt, He, ut, Je), mt(Ze, He, ut, Je)); - } catch (ot) { - Ze(He, ut, ot, Je); + $e.call(ht, at(ft, je, dt, Je), at(We, je, dt, Je)); + } catch (lt) { + We(je, dt, lt, Je); } - }) : (Je.value = pt, Je.state = ee, Oe(He, Je, !1)); - } catch (ut) { - Ze(He, { done: !1 }, ut, Je); + }) : (Je.value = ht, Je.state = K, Oe(je, Je, !1)); + } catch (dt) { + We(je, { done: !1 }, dt, Je); } } }; - ze && (Y = function(He) { - y(this, Y, C), A(He), _e.call(this); - var Je = F(this); + Ze && (Y = function(je) { + y(this, Y, F), A(je), fe.call(this); + var Je = C(this); try { - He(mt(Ot, this, Je), mt(Ze, this, Je)); - } catch (pt) { - Ze(this, Je, pt); + je(at($t, this, Je), at(We, this, Je)); + } catch (ht) { + We(this, Je, ht); } - }, _e = function(He) { - q(this, { type: C, done: !1, notified: !1, parent: !1, reactions: [], rejection: !1, state: j, value: void 0 }); - }, _e.prototype = g(Y.prototype, { - then: function(He, Je) { - var pt = Z(this), Ge = ge(k(this, Y)); - return Ge.ok = typeof He == "function" ? He : !0, Ge.fail = typeof Je == "function" && Je, Ge.domain = we ? pe.domain : void 0, pt.parent = !0, pt.reactions.push(Ge), pt.state != j && Oe(this, pt, !1), Ge.promise; + }, fe = function(je) { + q(this, { type: F, done: !1, notified: !1, parent: !1, reactions: [], rejection: !1, state: $, value: void 0 }); + }, fe.prototype = g(Y.prototype, { + then: function(je, Je) { + var ht = Z(this), Ge = ge(k(this, Y)); + return Ge.ok = typeof je == "function" ? je : !0, Ge.fail = typeof Je == "function" && Je, Ge.domain = we ? pe.domain : void 0, ht.parent = !0, ht.reactions.push(Ge), ht.state != $ && Oe(this, ht, !1), Ge.promise; }, - catch: function(He) { - return this.then(void 0, He); + catch: function(je) { + return this.then(void 0, je); } }), Ae = function() { - var He = new _e(), Je = F(He); - this.promise = He, this.resolve = mt(Ot, He, Je), this.reject = mt(Ze, He, Je); - }, T.f = ge = function(He) { - return He === Y || He === Be ? new Ae(He) : me(He); - }, !s && typeof p == "function" && (ct = p.prototype.then, h(p.prototype, "then", function(He, Je) { - var pt = this; + var je = new fe(), Je = C(je); + this.promise = je, this.resolve = at($t, je, Je), this.reject = at(We, je, Je); + }, T.f = ge = function(je) { + return je === Y || je === Fe ? new Ae(je) : ve(je); + }, !s && typeof p == "function" && (Xe = p.prototype.then, h(p.prototype, "then", function(je, Je) { + var ht = this; return new Y(function(Ge, $e) { - ct.call(pt, Ge, $e); - }).then(He, Je); - }, { unsafe: !0 }), typeof Te == "function" && a({ global: !0, enumerable: !0, forced: !0 }, { - fetch: function(He) { - return P(Y, Te.apply(u, arguments)); + Xe.call(ht, Ge, $e); + }).then(je, Je); + }, { unsafe: !0 }), typeof ke == "function" && a({ global: !0, enumerable: !0, forced: !0 }, { + fetch: function(je) { + return P(Y, ke.apply(u, arguments)); } - }))), a({ global: !0, wrap: !0, forced: ze }, { Promise: Y }), _(Y, C, !1, !0), S(C), Be = d(C), a({ target: C, stat: !0, forced: ze }, { - reject: function(He) { + }))), a({ global: !0, wrap: !0, forced: Ze }, { Promise: Y }), _(Y, F, !1, !0), S(F), Fe = d(F), a({ target: F, stat: !0, forced: Ze }, { + reject: function(je) { var Je = ge(this); - return Je.reject.call(void 0, He), Je.promise; + return Je.reject.call(void 0, je), Je.promise; } - }), a({ target: C, stat: !0, forced: s || ze }, { - resolve: function(He) { - return P(s && this === Be ? Y : this, He); + }), a({ target: F, stat: !0, forced: s || Ze }, { + resolve: function(je) { + return P(s && this === Fe ? Y : this, je); } - }), a({ target: C, stat: !0, forced: Ee }, { - all: function(He) { - var Je = this, pt = ge(Je), Ge = pt.resolve, $e = pt.reject, ut = D(function() { - var ot = A(Je.resolve), at = [], Ct = 0, Pn = 1; - E(He, function(Qt) { + }), a({ target: F, stat: !0, forced: _e }, { + all: function(je) { + var Je = this, ht = ge(Je), Ge = ht.resolve, $e = ht.reject, dt = D(function() { + var lt = A(Je.resolve), st = [], Ct = 0, Pn = 1; + E(je, function(Qt) { var zt = Ct++, It = !1; - at.push(void 0), Pn++, ot.call(Je, Qt).then(function(ui) { - It || (It = !0, at[zt] = ui, --Pn || Ge(at)); + st.push(void 0), Pn++, lt.call(Je, Qt).then(function(ui) { + It || (It = !0, st[zt] = ui, --Pn || Ge(st)); }, $e); - }), --Pn || Ge(at); + }), --Pn || Ge(st); }); - return ut.error && $e(ut.value), pt.promise; + return dt.error && $e(dt.value), ht.promise; }, - race: function(He) { - var Je = this, pt = ge(Je), Ge = pt.reject, $e = D(function() { - var ut = A(Je.resolve); - E(He, function(ot) { - ut.call(Je, ot).then(pt.resolve, Ge); + race: function(je) { + var Je = this, ht = ge(Je), Ge = ht.reject, $e = D(function() { + var dt = A(Je.resolve); + E(je, function(lt) { + dt.call(Je, lt).then(ht.resolve, Ge); }); }); - return $e.error && Ge($e.value), pt.promise; + return $e.error && Ge($e.value), ht.promise; } }); }, function(i, r, n) { - var a = n(8), s = n(71).f, u = n(34), d = n(117).set, p = n(118), h = a.MutationObserver || a.WebKitMutationObserver, g = a.process, _ = a.Promise, S = u(g) == "process", b = s(a, "queueMicrotask"), A = b && b.value, y, m, w, E, x, k, $, M; + var a = n(8), s = n(71).f, u = n(34), d = n(117).set, p = n(118), h = a.MutationObserver || a.WebKitMutationObserver, g = a.process, _ = a.Promise, S = u(g) == "process", b = s(a, "queueMicrotask"), A = b && b.value, y, m, w, E, x, k, R, M; A || (y = function() { var B, T; for (S && (B = g.domain) && B.exit(); m; ) { @@ -55602,8 +55612,8 @@ var i1 = { exports: {} }; g.nextTick(y); } : h && !p ? (x = !0, k = document.createTextNode(""), new h(y).observe(k, { characterData: !0 }), E = function() { k.data = x = !x; - }) : _ && _.resolve ? ($ = _.resolve(void 0), M = $.then, E = function() { - M.call($, y); + }) : _ && _.resolve ? (R = _.resolve(void 0), M = R.then, E = function() { + M.call(R, y); }) : E = function() { d.call(a, y); }), i.exports = A || function(P) { @@ -55622,11 +55632,11 @@ var i1 = { exports: {} }; var _ = this, S = u.f(_), b = S.resolve, A = S.reject, y = d(function() { var m = s(_.resolve), w = [], E = 0, x = 1; p(g, function(k) { - var $ = E++, M = !1; + var R = E++, M = !1; w.push(void 0), x++, m.call(_, k).then(function(P) { - M || (M = !0, w[$] = { status: "fulfilled", value: P }, --x || b(w)); + M || (M = !0, w[R] = { status: "fulfilled", value: P }, --x || b(w)); }, function(P) { - M || (M = !0, w[$] = { status: "rejected", reason: P }, --x || b(w)); + M || (M = !0, w[R] = { status: "rejected", reason: P }, --x || b(w)); }); }), --x || b(w); }); @@ -55777,23 +55787,23 @@ var i1 = { exports: {} }; i.exports = a("Array").splice; }, function(i, r, n) { var a = n(5), s = n(79), u = n(62), d = n(35), p = n(31), h = n(88), g = n(69), _ = n(56), S = n(22), b = _("splice"), A = S("splice", { ACCESSORS: !0, 0: 0, 1: 2 }), y = Math.max, m = Math.min, w = 9007199254740991, E = "Maximum allowed length exceeded"; - a({ target: "Array", proto: !0, forced: !b || !A }, { splice: function(k, $) { - var M = p(this), P = d(M.length), B = s(k, P), T = arguments.length, D, V, K, G, R, z; - if (T === 0 ? D = V = 0 : T === 1 ? (D = 0, V = P - B) : (D = T - 2, V = m(y(u($), 0), P - B)), P + D - V > w) + a({ target: "Array", proto: !0, forced: !b || !A }, { splice: function(k, R) { + var M = p(this), P = d(M.length), B = s(k, P), T = arguments.length, D, V, W, G, I, U; + if (T === 0 ? D = V = 0 : T === 1 ? (D = 0, V = P - B) : (D = T - 2, V = m(y(u(R), 0), P - B)), P + D - V > w) throw TypeError(E); - for (K = h(M, V), G = 0; G < V; G++) - R = B + G, R in M && g(K, G, M[R]); - if (K.length = V, D < V) { + for (W = h(M, V), G = 0; G < V; G++) + I = B + G, I in M && g(W, G, M[I]); + if (W.length = V, D < V) { for (G = B; G < P - V; G++) - R = G + V, z = G + D, R in M ? M[z] = M[R] : delete M[z]; + I = G + V, U = G + D, I in M ? M[U] = M[I] : delete M[U]; for (G = P; G > P - V + D; G--) delete M[G - 1]; } else if (D > V) for (G = P - V; G > B; G--) - R = G + V - 1, z = G + D - 1, R in M ? M[z] = M[R] : delete M[z]; + I = G + V - 1, U = G + D - 1, I in M ? M[U] = M[I] : delete M[U]; for (G = 0; G < D; G++) M[G + B] = arguments[G + 2]; - return M.length = P - V + D, K; + return M.length = P - V + D, W; } }); }, function(i, r, n) { var a = n(210); @@ -55926,99 +55936,99 @@ var i1 = { exports: {} }; return !1; var B = P[y]; return B !== void 0 ? !!B : u(P); - }, $ = !E || !x; - a({ target: "Array", proto: !0, forced: $ }, { concat: function(P) { - var B = p(this), T = _(B, 0), D = 0, V, K, G, R, z; + }, R = !E || !x; + a({ target: "Array", proto: !0, forced: R }, { concat: function(P) { + var B = p(this), T = _(B, 0), D = 0, V, W, G, I, U; for (V = -1, G = arguments.length; V < G; V++) - if (z = V === -1 ? B : arguments[V], k(z)) { - if (R = h(z.length), D + R > m) + if (U = V === -1 ? B : arguments[V], k(U)) { + if (I = h(U.length), D + I > m) throw TypeError(w); - for (K = 0; K < R; K++, D++) - K in z && g(T, D, z[K]); + for (W = 0; W < I; W++, D++) + W in U && g(T, D, U[W]); } else { if (D >= m) throw TypeError(w); - g(T, D++, z); + g(T, D++, U); } return T.length = D, T; } }); }, function(i, r, n) { - var a = n(5), s = n(8), u = n(36), d = n(43), p = n(14), h = n(76), g = n(106), _ = n(11), S = n(16), b = n(55), A = n(13), y = n(25), m = n(31), w = n(30), E = n(60), x = n(48), k = n(77), $ = n(52), M = n(126), P = n(235), B = n(127), T = n(71), D = n(18), V = n(59), K = n(19), G = n(53), R = n(74), z = n(63), C = n(51), F = n(64), q = n(10), Z = n(93), Y = n(12), J = n(37), ve = n(42), pe = n(32).forEach, Te = z("hidden"), ge = "Symbol", me = "prototype", we = q("toPrimitive"), ce = ve.set, Se = ve.getterFor(ge), I = Object[me], j = s.Symbol, ee = u("JSON", "stringify"), te = T.f, se = D.f, oe = P.f, _e = V.f, Ae = R("symbols"), Be = R("op-symbols"), ct = R("string-to-symbol-registry"), ze = R("symbol-to-string-registry"), Ee = R("wks"), Pe = s.QObject, Oe = !Pe || !Pe[me] || !Pe[me].findChild, nt = p && _(function() { - return k(se({}, "a", { get: function() { - return se(this, "a", { value: 7 }).a; + var a = n(5), s = n(8), u = n(36), d = n(43), p = n(14), h = n(76), g = n(106), _ = n(11), S = n(16), b = n(55), A = n(13), y = n(25), m = n(31), w = n(30), E = n(60), x = n(48), k = n(77), R = n(52), M = n(126), P = n(235), B = n(127), T = n(71), D = n(18), V = n(59), W = n(19), G = n(53), I = n(74), U = n(63), F = n(51), C = n(64), q = n(10), Z = n(93), Y = n(12), ue = n(37), te = n(42), pe = n(32).forEach, ke = U("hidden"), ge = "Symbol", ve = "prototype", we = q("toPrimitive"), he = te.set, Se = te.getterFor(ge), xe = Object[ve], $ = s.Symbol, K = u("JSON", "stringify"), X = T.f, ie = D.f, re = P.f, fe = V.f, Ae = I("symbols"), Fe = I("op-symbols"), Xe = I("string-to-symbol-registry"), Ze = I("symbol-to-string-registry"), _e = I("wks"), Le = s.QObject, Oe = !Le || !Le[ve] || !Le[ve].findChild, it = p && _(function() { + return k(ie({}, "a", { get: function() { + return ie(this, "a", { value: 7 }).a; } })).a != 7; - }) ? function(Ge, $e, ut) { - var ot = te(I, $e); - ot && delete I[$e], se(Ge, $e, ut), ot && Ge !== I && se(I, $e, ot); - } : se, De = function($e, ut) { - var ot = Ae[$e] = k(j[me]); - return ce(ot, { type: ge, tag: $e, description: ut }), p || (ot.description = ut), ot; - }, Ne = g ? function(Ge) { + }) ? function(Ge, $e, dt) { + var lt = X(xe, $e); + lt && delete xe[$e], ie(Ge, $e, dt), lt && Ge !== xe && ie(xe, $e, lt); + } : ie, pt = function($e, dt) { + var lt = Ae[$e] = k($[ve]); + return he(lt, { type: ge, tag: $e, description: dt }), p || (lt.description = dt), lt; + }, Re = g ? function(Ge) { return yn(Ge) == "symbol"; } : function(Ge) { - return Object(Ge) instanceof j; - }, lt = function($e, ut, ot) { - $e === I && lt(Be, ut, ot), y($e); - var at = E(ut, !0); - return y(ot), S(Ae, at) ? (ot.enumerable ? (S($e, Te) && $e[Te][at] && ($e[Te][at] = !1), ot = k(ot, { enumerable: x(0, !1) })) : (S($e, Te) || se($e, Te, x(1, {})), $e[Te][at] = !0), nt($e, at, ot)) : se($e, at, ot); - }, mt = function($e, ut) { + return Object(Ge) instanceof $; + }, He = function($e, dt, lt) { + $e === xe && He(Fe, dt, lt), y($e); + var st = E(dt, !0); + return y(lt), S(Ae, st) ? (lt.enumerable ? (S($e, ke) && $e[ke][st] && ($e[ke][st] = !1), lt = k(lt, { enumerable: x(0, !1) })) : (S($e, ke) || ie($e, ke, x(1, {})), $e[ke][st] = !0), it($e, st, lt)) : ie($e, st, lt); + }, at = function($e, dt) { y($e); - var ot = w(ut), at = $(ot).concat(Je(ot)); - return pe(at, function(Ct) { - (!p || Ot.call(ot, Ct)) && lt($e, Ct, ot[Ct]); + var lt = w(dt), st = R(lt).concat(Je(lt)); + return pe(st, function(Ct) { + (!p || $t.call(lt, Ct)) && He($e, Ct, lt[Ct]); }), $e; - }, Ze = function($e, ut) { - return ut === void 0 ? k($e) : mt(k($e), ut); - }, Ot = function($e) { - var ut = E($e, !0), ot = _e.call(this, ut); - return this === I && S(Ae, ut) && !S(Be, ut) ? !1 : ot || !S(this, ut) || !S(Ae, ut) || S(this, Te) && this[Te][ut] ? ot : !0; - }, dt = function($e, ut) { - var ot = w($e), at = E(ut, !0); - if (!(ot === I && S(Ae, at) && !S(Be, at))) { - var Ct = te(ot, at); - return Ct && S(Ae, at) && !(S(ot, Te) && ot[Te][at]) && (Ct.enumerable = !0), Ct; + }, We = function($e, dt) { + return dt === void 0 ? k($e) : at(k($e), dt); + }, $t = function($e) { + var dt = E($e, !0), lt = fe.call(this, dt); + return this === xe && S(Ae, dt) && !S(Fe, dt) ? !1 : lt || !S(this, dt) || !S(Ae, dt) || S(this, ke) && this[ke][dt] ? lt : !0; + }, ft = function($e, dt) { + var lt = w($e), st = E(dt, !0); + if (!(lt === xe && S(Ae, st) && !S(Fe, st))) { + var Ct = X(lt, st); + return Ct && S(Ae, st) && !(S(lt, ke) && lt[ke][st]) && (Ct.enumerable = !0), Ct; } - }, He = function($e) { - var ut = oe(w($e)), ot = []; - return pe(ut, function(at) { - !S(Ae, at) && !S(C, at) && ot.push(at); - }), ot; + }, je = function($e) { + var dt = re(w($e)), lt = []; + return pe(dt, function(st) { + !S(Ae, st) && !S(F, st) && lt.push(st); + }), lt; }, Je = function($e) { - var ut = $e === I, ot = oe(ut ? Be : w($e)), at = []; - return pe(ot, function(Ct) { - S(Ae, Ct) && (!ut || S(I, Ct)) && at.push(Ae[Ct]); - }), at; + var dt = $e === xe, lt = re(dt ? Fe : w($e)), st = []; + return pe(lt, function(Ct) { + S(Ae, Ct) && (!dt || S(xe, Ct)) && st.push(Ae[Ct]); + }), st; }; - if (h || (j = function() { - if (this instanceof j) + if (h || ($ = function() { + if (this instanceof $) throw TypeError("Symbol is not a constructor"); - var $e = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), ut = F($e), ot = function at(Ct) { - this === I && at.call(Be, Ct), S(this, Te) && S(this[Te], ut) && (this[Te][ut] = !1), nt(this, ut, x(1, Ct)); + var $e = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), dt = C($e), lt = function st(Ct) { + this === xe && st.call(Fe, Ct), S(this, ke) && S(this[ke], dt) && (this[ke][dt] = !1), it(this, dt, x(1, Ct)); }; - return p && Oe && nt(I, ut, { configurable: !0, set: ot }), De(ut, $e); - }, G(j[me], "toString", function() { + return p && Oe && it(xe, dt, { configurable: !0, set: lt }), pt(dt, $e); + }, G($[ve], "toString", function() { return Se(this).tag; - }), G(j, "withoutSetter", function(Ge) { - return De(F(Ge), Ge); - }), V.f = Ot, D.f = lt, T.f = dt, M.f = P.f = He, B.f = Je, Z.f = function(Ge) { - return De(q(Ge), Ge); - }, p && (se(j[me], "description", { configurable: !0, get: function() { + }), G($, "withoutSetter", function(Ge) { + return pt(C(Ge), Ge); + }), V.f = $t, D.f = He, T.f = ft, M.f = P.f = je, B.f = Je, Z.f = function(Ge) { + return pt(q(Ge), Ge); + }, p && (ie($[ve], "description", { configurable: !0, get: function() { return Se(this).description; - } }), d || G(I, "propertyIsEnumerable", Ot, { unsafe: !0 }))), a({ global: !0, wrap: !0, forced: !h, sham: !h }, { Symbol: j }), pe($(Ee), function(Ge) { + } }), d || G(xe, "propertyIsEnumerable", $t, { unsafe: !0 }))), a({ global: !0, wrap: !0, forced: !h, sham: !h }, { Symbol: $ }), pe(R(_e), function(Ge) { Y(Ge); }), a({ target: ge, stat: !0, forced: !h }, { for: function($e) { - var ut = String($e); - if (S(ct, ut)) - return ct[ut]; - var ot = j(ut); - return ct[ut] = ot, ze[ot] = ut, ot; + var dt = String($e); + if (S(Xe, dt)) + return Xe[dt]; + var lt = $(dt); + return Xe[dt] = lt, Ze[lt] = dt, lt; }, keyFor: function($e) { - if (!Ne($e)) + if (!Re($e)) throw TypeError($e + " is not a symbol"); - if (S(ze, $e)) - return ze[$e]; + if (S(Ze, $e)) + return Ze[$e]; }, useSetter: function() { Oe = !0; @@ -56027,35 +56037,35 @@ var i1 = { exports: {} }; Oe = !1; } }), a({ target: "Object", stat: !0, forced: !h, sham: !p }, { - create: Ze, - defineProperty: lt, - defineProperties: mt, - getOwnPropertyDescriptor: dt + create: We, + defineProperty: He, + defineProperties: at, + getOwnPropertyDescriptor: ft }), a({ target: "Object", stat: !0, forced: !h }, { - getOwnPropertyNames: He, + getOwnPropertyNames: je, getOwnPropertySymbols: Je }), a({ target: "Object", stat: !0, forced: _(function() { B.f(1); }) }, { getOwnPropertySymbols: function($e) { return B.f(m($e)); - } }), ee) { - var pt = !h || _(function() { - var Ge = j(); - return ee([Ge]) != "[null]" || ee({ a: Ge }) != "{}" || ee(Object(Ge)) != "{}"; + } }), K) { + var ht = !h || _(function() { + var Ge = $(); + return K([Ge]) != "[null]" || K({ a: Ge }) != "{}" || K(Object(Ge)) != "{}"; }); - a({ target: "JSON", stat: !0, forced: pt }, { - stringify: function($e, ut, ot) { - for (var at = [$e], Ct = 1, Pn; arguments.length > Ct; ) - at.push(arguments[Ct++]); - if (Pn = ut, !(!A(ut) && $e === void 0 || Ne($e))) - return b(ut) || (ut = function(zt, It) { - if (typeof Pn == "function" && (It = Pn.call(this, zt, It)), !Ne(It)) + a({ target: "JSON", stat: !0, forced: ht }, { + stringify: function($e, dt, lt) { + for (var st = [$e], Ct = 1, Pn; arguments.length > Ct; ) + st.push(arguments[Ct++]); + if (Pn = dt, !(!A(dt) && $e === void 0 || Re($e))) + return b(dt) || (dt = function(zt, It) { + if (typeof Pn == "function" && (It = Pn.call(this, zt, It)), !Re(It)) return It; - }), at[1] = ut, ee.apply(null, at); + }), st[1] = dt, K.apply(null, st); } }); } - j[me][we] || K(j[me], we, j[me].valueOf), J(j, ge), C[Te] = !0; + $[ve][we] || W($[ve], we, $[ve].valueOf), ue($, ge), F[ke] = !0; }, function(i, r, n) { var a = n(30), s = n(126).f, u = {}.toString, d = (typeof window > "u" ? "undefined" : yn(window)) == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], p = function(g) { try { @@ -56158,13 +56168,13 @@ var i1 = { exports: {} }; i.exports = a("Array").slice; }, function(i, r, n) { var a = n(5), s = n(13), u = n(55), d = n(79), p = n(35), h = n(30), g = n(69), _ = n(10), S = n(56), b = n(22), A = S("slice"), y = b("slice", { ACCESSORS: !0, 0: 0, 1: 2 }), m = _("species"), w = [].slice, E = Math.max; - a({ target: "Array", proto: !0, forced: !A || !y }, { slice: function(k, $) { - var M = h(this), P = p(M.length), B = d(k, P), T = d($ === void 0 ? P : $, P), D, V, K; + a({ target: "Array", proto: !0, forced: !A || !y }, { slice: function(k, R) { + var M = h(this), P = p(M.length), B = d(k, P), T = d(R === void 0 ? P : R, P), D, V, W; if (u(M) && (D = M.constructor, typeof D == "function" && (D === Array || u(D.prototype)) ? D = void 0 : s(D) && (D = D[m], D === null && (D = void 0)), D === Array || D === void 0)) return w.call(M, B, T); - for (V = new (D === void 0 ? Array : D)(E(T - B, 0)), K = 0; B < T; B++, K++) - B in M && g(V, K, M[B]); - return V.length = K, V; + for (V = new (D === void 0 ? Array : D)(E(T - B, 0)), W = 0; B < T; B++, W++) + B in M && g(V, W, M[B]); + return V.length = W, V; } }); }, function(i, r, n) { n(266); @@ -56198,7 +56208,7 @@ var i1 = { exports: {} }; y.default, m.default, w.default, - { linkCheck: function(k, $) { + { linkCheck: function(k, R) { return !0; } } ); @@ -56226,8 +56236,8 @@ var i1 = { exports: {} }; }), _({}, b)[y] != 7 || u(_({}, A)).join("") != m; }) ? function(A, y) { for (var m = h(A), w = arguments.length, E = 1, x = d.f, k = p.f; w > E; ) - for (var $ = g(arguments[E++]), M = x ? u($).concat(x($)) : u($), P = M.length, B = 0, T; P > B; ) - T = M[B++], (!a || k.call($, T)) && (m[T] = $[T]); + for (var R = g(arguments[E++]), M = x ? u(R).concat(x(R)) : u(R), P = M.length, B = 0, T; P > B; ) + T = M[B++], (!a || k.call(R, T)) && (m[T] = R[T]); return m; } : _; }, function(i, r, n) { @@ -56383,8 +56393,8 @@ var i1 = { exports: {} }; if (E.elems[0] === m.elems[0]) { var x; if ((0, u.default)(x = E.html()).call(x) === g.EMPTY_P) { - var k = E.children(), $ = k == null ? void 0 : k.last(); - w.selection.createRangeByElem($, !0, !0), w.selection.restoreSelection(); + var k = E.children(), R = k == null ? void 0 : k.last(); + w.selection.createRangeByElem(R, !0, !0), w.selection.restoreSelection(); } } this._currentRange = y; @@ -56534,12 +56544,12 @@ var i1 = { exports: {} }; return x.prototype.init = function() { this._saveRange(), this._bindEventHooks(), b.default(this); }, x.prototype.togglePlaceholder = function() { - var k, $ = this.html(), M = (0, u.default)(k = this.editor.$textContainerElem).call(k, ".placeholder"); - M.hide(), !this.editor.isComposing && (!$ || $ === " ") && M.show(); + var k, R = this.html(), M = (0, u.default)(k = this.editor.$textContainerElem).call(k, ".placeholder"); + M.hide(), !this.editor.isComposing && (!R || R === " ") && M.show(); }, x.prototype.clear = function() { this.html(w.EMPTY_P); }, x.prototype.html = function(k) { - var $ = this.editor, M = $.$textElem; + var R = this.editor, M = R.$textElem; if (k == null) { var P = M.html(); P = P.replace(/\u200b/gm, ""), P = P.replace(/

    <\/p>/gim, ""), P = P.replace(w.EMPTY_P_LAST_REGEX, ""), P = P.replace(w.EMPTY_P_REGEX, "

    "); @@ -56548,86 +56558,86 @@ var i1 = { exports: {} }; T.match(/\/>/) || (P = P.replace(T, T.substring(0, T.length - 1) + "/>")); }), P; } - k = (0, p.default)(k).call(k), k === "" && (k = w.EMPTY_P), (0, h.default)(k).call(k, "<") !== 0 && (k = "

    " + k + "

    "), M.html(k), $.initSelection(); + k = (0, p.default)(k).call(k), k === "" && (k = w.EMPTY_P), (0, h.default)(k).call(k, "<") !== 0 && (k = "

    " + k + "

    "), M.html(k), R.initSelection(); }, x.prototype.setJSON = function(k) { - var $ = m.default(k).children(), M = this.editor, P = M.$textElem; - !$ || P.replaceChildAll($); + var R = m.default(k).children(), M = this.editor, P = M.$textElem; + !R || P.replaceChildAll(R); }, x.prototype.getJSON = function() { - var k = this.editor, $ = k.$textElem; - return y.default($); + var k = this.editor, R = k.$textElem; + return y.default(R); }, x.prototype.text = function(k) { - var $ = this.editor, M = $.$textElem; + var R = this.editor, M = R.$textElem; if (k == null) { var P = M.text(); return P = P.replace(/\u200b/gm, ""), P; } - M.text("

    " + k + "

    "), $.initSelection(); + M.text("

    " + k + "

    "), R.initSelection(); }, x.prototype.append = function(k) { - var $ = this.editor; - (0, h.default)(k).call(k, "<") !== 0 && (k = "

    " + k + "

    "), this.html(this.html() + k), $.initSelection(); + var R = this.editor; + (0, h.default)(k).call(k, "<") !== 0 && (k = "

    " + k + "

    "), this.html(this.html() + k), R.initSelection(); }, x.prototype._saveRange = function() { - var k = this.editor, $ = k.$textElem, M = S.default(document); + var k = this.editor, R = k.$textElem, M = S.default(document); function P() { k.selection.saveRange(), k.menus.changeActive(); } - $.on("keyup", P); + R.on("keyup", P); function B() { - P(), $.off("click", B); + P(), R.off("click", B); } - $.on("click", B); + R.on("click", B); function T() { P(), M.off("mouseup", T); } function D() { - M.on("mouseup", T), $.off("mouseleave", D); + M.on("mouseup", T), R.off("mouseleave", D); } - $.on("mousedown", function() { - $.on("mouseleave", D); - }), $.on("mouseup", function(V) { - $.off("mouseleave", D), (0, g.default)(function() { - var K = k.selection, G = K.getRange(); + R.on("mousedown", function() { + R.on("mouseleave", D); + }), R.on("mouseup", function(V) { + R.off("mouseleave", D), (0, g.default)(function() { + var W = k.selection, G = W.getRange(); G !== null && P(); }, 0); }); }, x.prototype._bindEventHooks = function() { - var k = this.editor, $ = k.$textElem, M = this.eventHooks; - $.on("click", function(B) { + var k = this.editor, R = k.$textElem, M = this.eventHooks; + R.on("click", function(B) { var T = M.clickEvents; (0, d.default)(T).call(T, function(D) { return D(B); }); - }), $.on("keyup", function(B) { + }), R.on("keyup", function(B) { if (B.keyCode === 13) { var T = M.enterUpEvents; (0, d.default)(T).call(T, function(D) { return D(B); }); } - }), $.on("keyup", function(B) { + }), R.on("keyup", function(B) { var T = M.keyupEvents; (0, d.default)(T).call(T, function(D) { return D(B); }); - }), $.on("keydown", function(B) { + }), R.on("keydown", function(B) { var T = M.keydownEvents; (0, d.default)(T).call(T, function(D) { return D(B); }); - }), $.on("keyup", function(B) { + }), R.on("keyup", function(B) { if (!(B.keyCode !== 8 && B.keyCode !== 46)) { var T = M.deleteUpEvents; (0, d.default)(T).call(T, function(D) { return D(B); }); } - }), $.on("keydown", function(B) { + }), R.on("keydown", function(B) { if (!(B.keyCode !== 8 && B.keyCode !== 46)) { var T = M.deleteDownEvents; (0, d.default)(T).call(T, function(D) { return D(B); }); } - }), $.on("paste", function(B) { + }), R.on("paste", function(B) { if (!A.UA.isIE()) { B.preventDefault(); var T = M.pasteEvents; @@ -56635,9 +56645,9 @@ var i1 = { exports: {} }; return D(B); }); } - }), $.on("keydown", function(B) { + }), R.on("keydown", function(B) { (k.isFocus || k.isCompatibleMode) && (B.ctrlKey || B.metaKey) && B.keyCode === 90 && (B.preventDefault(), B.shiftKey ? k.history.restore() : k.history.revoke()); - }), $.on("keyup", function(B) { + }), R.on("keyup", function(B) { if (B.keyCode === 9) { B.preventDefault(); var T = M.tabUpEvents; @@ -56645,7 +56655,7 @@ var i1 = { exports: {} }; return D(B); }); } - }), $.on("keydown", function(B) { + }), R.on("keydown", function(B) { if (B.keyCode === 9) { B.preventDefault(); var T = M.tabDownEvents; @@ -56653,7 +56663,7 @@ var i1 = { exports: {} }; return D(B); }); } - }), $.on( + }), R.on( "scroll", A.throttle(function(B) { var T = M.textScrollEvents; @@ -56667,54 +56677,54 @@ var i1 = { exports: {} }; } S.default(document).on("dragleave", P).on("drop", P).on("dragenter", P).on("dragover", P), k.beforeDestroy(function() { S.default(document).off("dragleave", P).off("drop", P).off("dragenter", P).off("dragover", P); - }), $.on("drop", function(B) { + }), R.on("drop", function(B) { B.preventDefault(); var T = M.dropEvents; (0, d.default)(T).call(T, function(D) { return D(B); }); - }), $.on("click", function(B) { + }), R.on("click", function(B) { var T = null, D = B.target, V = S.default(D); if (V.getNodeName() === "A") T = V; else { - var K = V.parentUntil("a"); - K != null && (T = K); + var W = V.parentUntil("a"); + W != null && (T = W); } if (!!T) { var G = M.linkClickEvents; - (0, d.default)(G).call(G, function(R) { - return R(T); + (0, d.default)(G).call(G, function(I) { + return I(T); }); } - }), $.on("click", function(B) { + }), R.on("click", function(B) { var T = null, D = B.target, V = S.default(D); if (V.getNodeName() === "IMG" && !V.elems[0].getAttribute("data-emoji") && (B.stopPropagation(), T = V), !!T) { - var K = M.imgClickEvents; - (0, d.default)(K).call(K, function(G) { + var W = M.imgClickEvents; + (0, d.default)(W).call(W, function(G) { return G(T); }); } - }), $.on("click", function(B) { + }), R.on("click", function(B) { var T = null, D = B.target, V = S.default(D); if (V.getNodeName() === "PRE") T = V; else { - var K = V.parentUntil("pre"); - K !== null && (T = K); + var W = V.parentUntil("pre"); + W !== null && (T = W); } if (!!T) { var G = M.codeClickEvents; - (0, d.default)(G).call(G, function(R) { - return R(T); + (0, d.default)(G).call(G, function(I) { + return I(T); }); } - }), $.on("click", function(B) { + }), R.on("click", function(B) { var T = null, D = B.target, V = S.default(D); if (V.getNodeName() === "HR" && (T = V), !!T) { k.selection.createRangeByElem(T), k.selection.restoreSelection(); - var K = M.splitLineEvents; - (0, d.default)(K).call(K, function(G) { + var W = M.splitLineEvents; + (0, d.default)(W).call(W, function(G) { return G(T); }); } @@ -56727,30 +56737,30 @@ var i1 = { exports: {} }; var T = B.target, D = S.default(T); if (D.hasClass("w-e-img-drag-rb")) { var V = M.imgDragBarMouseDownEvents; - (0, d.default)(V).call(V, function(K) { - return K(); + (0, d.default)(V).call(V, function(W) { + return W(); }); } - }), $.on("click", function(B) { + }), R.on("click", function(B) { var T = null, D = B.target; if (T = S.default(D).parentUntilEditor("TABLE", k, D), !!T) { var V = M.tableClickEvents; - (0, d.default)(V).call(V, function(K) { - return K(T, B); + (0, d.default)(V).call(V, function(W) { + return W(T, B); }); } - }), $.on("keydown", function(B) { + }), R.on("keydown", function(B) { if (B.keyCode === 13) { var T = M.enterDownEvents; (0, d.default)(T).call(T, function(D) { return D(B); }); } - }), $.on("click", function(B) { + }), R.on("click", function(B) { var T = null, D = B.target, V = S.default(D); if (V.getNodeName() === "VIDEO" && (B.stopPropagation(), T = V), !!T) { - var K = M.videoClickEvents; - (0, d.default)(K).call(K, function(G) { + var W = M.videoClickEvents; + (0, d.default)(W).call(W, function(G) { return G(T); }); } @@ -56831,8 +56841,8 @@ var i1 = { exports: {} }; var p = n(2), h = n(7), g = p.__importDefault(n(3)); function _(b, A, y) { function m() { - var E = b.$textElem, x = b.$textElem.html(), k = b.$textElem.text(), $ = (0, u.default)(x).call(x), M = ["


    ", "
    ", '

    ', h.EMPTY_P]; - if (/^\s*$/.test(k) && (!$ || (0, d.default)(M).call(M, $))) { + var E = b.$textElem, x = b.$textElem.html(), k = b.$textElem.text(), R = (0, u.default)(x).call(x), M = ["


    ", "
    ", '

    ', h.EMPTY_P]; + if (/^\s*$/.test(k) && (!R || (0, d.default)(M).call(M, R))) { E.html(h.EMPTY_P); var P = E.getNode(); b.selection.createRangeByElems(P.childNodes[0], P.childNodes[0]); @@ -56842,8 +56852,8 @@ var i1 = { exports: {} }; } A.push(m); function w(E) { - var x, k = b.$textElem, $ = (0, u.default)(x = k.html().toLowerCase()).call(x); - if ($ === h.EMPTY_P) { + var x, k = b.$textElem, R = (0, u.default)(x = k.html().toLowerCase()).call(x); + if (R === h.EMPTY_P) { E.preventDefault(); return; } @@ -56908,45 +56918,45 @@ var i1 = { exports: {} }; } function y(m, w) { function E(x) { - var k = m.config, $ = k.pasteFilterStyle, M = k.pasteIgnoreImg, P = k.pasteTextHandle, B = p.getPasteHtml(x, $, M), T = p.getPasteText(x); + var k = m.config, R = k.pasteFilterStyle, M = k.pasteIgnoreImg, P = k.pasteTextHandle, B = p.getPasteHtml(x, R, M), T = p.getPasteText(x); T = T.replace(/\n/gm, "
    "); var D = m.selection.getSelectionContainerElem(); if (!!D) { - var V = D == null ? void 0 : D.getNodeName(), K = D == null ? void 0 : D.getNodeTop(m), G = ""; - if (K.elems[0] && (G = K == null ? void 0 : K.getNodeName()), V === "CODE" || G === "PRE") { + var V = D == null ? void 0 : D.getNodeName(), W = D == null ? void 0 : D.getNodeTop(m), G = ""; + if (W.elems[0] && (G = W == null ? void 0 : W.getNodeName()), V === "CODE" || G === "PRE") { P && h.isFunction(P) && (T = "" + (P(T) || "")), m.cmd.do("insertHTML", S(T)); return; } - if (g.urlRegex.test(T) && $) { + if (g.urlRegex.test(T) && R) { P && h.isFunction(P) && (T = "" + (P(T) || "")); - var R = T.replace(g.urlRegex, function(ve) { - return '' + ve + ""; - }), z = m.selection.getRange(), C = document.createElement("div"), F = document.createDocumentFragment(); - if (C.innerHTML = R, z == null) + var I = T.replace(g.urlRegex, function(te) { + return '' + te + ""; + }), U = m.selection.getRange(), F = document.createElement("div"), C = document.createDocumentFragment(); + if (F.innerHTML = I, U == null) return; - for (; C.childNodes.length; ) - F.append(C.childNodes[0]); - var q = F.querySelectorAll("a"); - (0, d.default)(q).call(q, function(ve) { - ve.innerText = ve.href; - }), z.insertNode && (z.deleteContents(), z.insertNode(F)), m.selection.clearWindowSelectionRange(); + for (; F.childNodes.length; ) + C.append(F.childNodes[0]); + var q = C.querySelectorAll("a"); + (0, d.default)(q).call(q, function(te) { + te.innerText = te.href; + }), U.insertNode && (U.deleteContents(), U.insertNode(C)), m.selection.clearWindowSelectionRange(); return; } if (!!B) try { P && h.isFunction(P) && (B = "" + (P(B) || "")); var Z = /[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(B); - if (Z && $) + if (Z && R) m.cmd.do("insertHTML", "" + _(T)); else { var Y = _(B); if (b(Y)) { - var J = m.$textElem; - if (m.cmd.do("insertHTML", Y), J.equal(D)) { + var ue = m.$textElem; + if (m.cmd.do("insertHTML", Y), ue.equal(D)) { m.selection.createEmptyRange(); return; } - A(K) && K.remove(); + A(W) && W.remove(); } else m.cmd.do("insertHTML", Y); } @@ -56965,8 +56975,8 @@ var i1 = { exports: {} }; function S(w) { var E = /.*?<\/span>/gi, x = /(.*?)<\/span>/; return w.replace(E, function(k) { - var $ = k.match(x); - return $ == null ? "" : $[1]; + var R = k.match(x); + return R == null ? "" : R[1]; }); } function b(w, E) { @@ -56980,42 +56990,42 @@ var i1 = { exports: {} }; (0, d.default)(E).call(E, function(M) { k.push(M.name + '="' + M.value + '"'); }), k.length > 0 && (x = x + " " + k.join(" ")); - var $ = g.EMPTY_TAGS.has(w); - return x = x + ($ ? "/" : "") + ">", x; + var R = g.EMPTY_TAGS.has(w); + return x = x + (R ? "/" : "") + ">", x; } function y(w) { return ""; } function m(w, E, x) { E === void 0 && (E = !0), x === void 0 && (x = !1); - var k = [], $ = ""; + var k = [], R = ""; function M(D) { - D = (0, u.default)(D).call(D), D && (g.EMPTY_TAGS.has(D) || ($ = D)); + D = (0, u.default)(D).call(D), D && (g.EMPTY_TAGS.has(D) || (R = D)); } function P() { - $ = ""; + R = ""; } var B = new _.default(); - B.parse(w, { startElement: function(V, K) { + B.parse(w, { startElement: function(V, W) { if (M(V), !b(V, x)) { - var G = g.NECESSARY_ATTRS.get(V) || [], R = []; - (0, d.default)(K).call(K, function(C) { - var F = C.name; - if (F === "style") { - E || R.push(C); + var G = g.NECESSARY_ATTRS.get(V) || [], I = []; + (0, d.default)(W).call(W, function(F) { + var C = F.name; + if (C === "style") { + E || I.push(F); return; } - (0, p.default)(G).call(G, F) !== !1 && R.push(C); + (0, p.default)(G).call(G, C) !== !1 && I.push(F); }); - var z = A(V, R); - k.push(z); + var U = A(V, I); + k.push(U); } }, characters: function(V) { - !V || b($, x) || k.push(V); + !V || b(R, x) || k.push(V); }, endElement: function(V) { if (!b(V, x)) { - var K = y(V); - k.push(K), P(); + var W = y(V); + k.push(W), P(); } }, comment: function(V) { M(V); @@ -57099,8 +57109,8 @@ var i1 = { exports: {} }; if (m === 3 && (y = A.textContent || "", y = p.replaceHtmlSymbol(y)), m === 1) { y = {}, y = y, y.tag = A.nodeName.toLowerCase(); for (var w = [], E = A.attributes, x = E.length || 0, k = 0; k < x; k++) { - var $ = E[k]; - w.push({ name: $.name, value: $.value }); + var R = E[k]; + w.push({ name: R.name, value: R.value }); } y.attrs = w, y.children = g(h.default(A)); } @@ -57131,96 +57141,96 @@ var i1 = { exports: {} }; var a = n(0), s = a(n(1)), u = a(n(89)), d = a(n(70)), p = a(n(28)), h = a(n(302)), g = a(n(4)), _ = a(n(94)), S = a(n(133)), b = a(n(46)), A = a(n(57)); (0, s.default)(r, "__esModule", { value: !0 }); var y = n(2), m = y.__importDefault(n(87)), w = y.__importDefault(n(314)), E = y.__importDefault(n(3)), x = function() { - function k($) { - this.editor = $, this.menuList = [], this.constructorList = w.default; + function k(R) { + this.editor = R, this.menuList = [], this.constructorList = w.default; } - return k.prototype.extend = function($, M) { - !M || typeof M != "function" || (this.constructorList[$] = M); + return k.prototype.extend = function(R, M) { + !M || typeof M != "function" || (this.constructorList[R] = M); }, k.prototype.init = function() { - var $, M, P = this, B = this.editor.config, T = B.excludeMenus; - (0, u.default)(T) === !1 && (T = []), B.menus = (0, d.default)($ = B.menus).call($, function(F) { - return (0, p.default)(T).call(T, F) === !1; + var R, M, P = this, B = this.editor.config, T = B.excludeMenus; + (0, u.default)(T) === !1 && (T = []), B.menus = (0, d.default)(R = B.menus).call(R, function(C) { + return (0, p.default)(T).call(T, C) === !1; }); var D = (0, h.default)(m.default.globalCustomMenuConstructorList); - D = (0, d.default)(D).call(D, function(F) { - return (0, p.default)(T).call(T, F); - }), (0, g.default)(D).call(D, function(F) { - delete m.default.globalCustomMenuConstructorList[F]; - }), (0, g.default)(M = B.menus).call(M, function(F) { - var q = P.constructorList[F]; - P._initMenuList(F, q); + D = (0, d.default)(D).call(D, function(C) { + return (0, p.default)(T).call(T, C); + }), (0, g.default)(D).call(D, function(C) { + delete m.default.globalCustomMenuConstructorList[C]; + }), (0, g.default)(M = B.menus).call(M, function(C) { + var q = P.constructorList[C]; + P._initMenuList(C, q); }); - for (var V = 0, K = (0, _.default)(m.default.globalCustomMenuConstructorList); V < K.length; V++) { - var G = K[V], R = G[0], z = G[1], C = z; - this._initMenuList(R, C); + for (var V = 0, W = (0, _.default)(m.default.globalCustomMenuConstructorList); V < W.length; V++) { + var G = W[V], I = G[0], U = G[1], F = U; + this._initMenuList(I, F); } this._addToToolbar(), B.showMenuTooltips && this._bindMenuTooltips(); - }, k.prototype._initMenuList = function($, M) { + }, k.prototype._initMenuList = function(R, M) { var P; if (!(M == null || typeof M != "function")) if ((0, S.default)(P = this.menuList).call(P, function(T) { - return T.key === $; + return T.key === R; })) - console.warn("\u83DC\u5355\u540D\u79F0\u91CD\u590D:" + $); + console.warn("\u83DC\u5355\u540D\u79F0\u91CD\u590D:" + R); else { var B = new M(this.editor); - B.key = $, this.menuList.push(B); + B.key = R, this.menuList.push(B); } }, k.prototype._bindMenuTooltips = function() { - var $ = this.editor, M = $.$toolbarElem, P = $.config, B = P.menuTooltipPosition, T = E.default('
    + var R = this.editor, M = R.$toolbarElem, P = R.config, B = P.menuTooltipPosition, T = E.default('
    `); - T.css("visibility", "hidden"), M.append(T), T.css("z-index", $.zIndex.get("tooltip")); + T.css("visibility", "hidden"), M.append(T), T.css("z-index", R.zIndex.get("tooltip")); var D = 0; function V() { D && clearTimeout(D); } - function K() { + function W() { V(), T.css("visibility", "hidden"); } M.on("mouseover", function(G) { - var R = G.target, z = E.default(R), C, F; - if (z.isContain(M)) { - K(); + var I = G.target, U = E.default(I), F, C; + if (U.isContain(M)) { + W(); return; } - if (z.parentUntil(".w-e-droplist") != null) - K(); - else if (z.attr("data-title")) - C = z.attr("data-title"), F = z; + if (U.parentUntil(".w-e-droplist") != null) + W(); + else if (U.attr("data-title")) + F = U.attr("data-title"), C = U; else { - var q = z.parentUntil(".w-e-menu"); - q != null && (C = q.attr("data-title"), F = q); + var q = U.parentUntil(".w-e-menu"); + q != null && (F = q.attr("data-title"), C = q); } - if (C && F) { + if (F && C) { V(); - var Z = F.getOffsetData(); - T.text($.i18next.t("menus.title." + C)); - var Y = T.getOffsetData(), J = Z.left + Z.width / 2 - Y.width / 2; - T.css("left", J + "px"), B === "up" ? T.css("top", Z.top - Y.height - 8 + "px") : B === "down" && T.css("top", Z.top + Z.height + 8 + "px"), D = (0, b.default)(function() { + var Z = C.getOffsetData(); + T.text(R.i18next.t("menus.title." + F)); + var Y = T.getOffsetData(), ue = Z.left + Z.width / 2 - Y.width / 2; + T.css("left", ue + "px"), B === "up" ? T.css("top", Z.top - Y.height - 8 + "px") : B === "down" && T.css("top", Z.top + Z.height + 8 + "px"), D = (0, b.default)(function() { T.css("visibility", "visible"); }, 200); } else - K(); + W(); }).on("mouseleave", function() { - K(); + W(); }); }, k.prototype._addToToolbar = function() { - var $, M = this.editor, P = M.$toolbarElem; - (0, g.default)($ = this.menuList).call($, function(B) { + var R, M = this.editor, P = M.$toolbarElem; + (0, g.default)(R = this.menuList).call(R, function(B) { var T = B.$elem; T && P.append(T); }); - }, k.prototype.menuFind = function($) { + }, k.prototype.menuFind = function(R) { for (var M = this.menuList, P = 0, B = M.length; P < B; P++) - if (M[P].key === $) + if (M[P].key === R) return M[P]; return M[0]; }, k.prototype.changeActive = function() { - var $; - (0, g.default)($ = this.menuList).call($, function(M) { + var R; + (0, g.default)(R = this.menuList).call(R, function(M) { var P; (0, b.default)((0, A.default)(P = M.tryChangeActive).call(P, M), 100); }); @@ -57288,8 +57298,8 @@ var i1 = { exports: {} }; }, function(i, r, n) { var a = n(0), s = a(n(1)); (0, s.default)(r, "__esModule", { value: !0 }); - var u = n(2), d = u.__importDefault(n(315)), p = u.__importDefault(n(316)), h = u.__importDefault(n(321)), g = u.__importDefault(n(326)), _ = u.__importDefault(n(327)), S = u.__importDefault(n(328)), b = u.__importDefault(n(329)), A = u.__importDefault(n(331)), y = u.__importDefault(n(333)), m = u.__importDefault(n(334)), w = u.__importDefault(n(337)), E = u.__importDefault(n(338)), x = u.__importDefault(n(339)), k = u.__importDefault(n(350)), $ = u.__importDefault(n(365)), M = u.__importDefault(n(369)), P = u.__importDefault(n(137)), B = u.__importDefault(n(378)), T = u.__importDefault(n(380)), D = u.__importDefault(n(381)), V = u.__importDefault(n(382)), K = u.__importDefault(n(401)), G = u.__importDefault(n(406)), R = u.__importDefault(n(409)); - r.default = { bold: d.default, head: p.default, italic: g.default, link: h.default, underline: _.default, strikeThrough: S.default, fontName: b.default, fontSize: A.default, justify: y.default, quote: m.default, backColor: w.default, foreColor: E.default, video: x.default, image: k.default, indent: $.default, emoticon: M.default, list: P.default, lineHeight: B.default, undo: T.default, redo: D.default, table: V.default, code: K.default, splitLine: G.default, todo: R.default }; + var u = n(2), d = u.__importDefault(n(315)), p = u.__importDefault(n(316)), h = u.__importDefault(n(321)), g = u.__importDefault(n(326)), _ = u.__importDefault(n(327)), S = u.__importDefault(n(328)), b = u.__importDefault(n(329)), A = u.__importDefault(n(331)), y = u.__importDefault(n(333)), m = u.__importDefault(n(334)), w = u.__importDefault(n(337)), E = u.__importDefault(n(338)), x = u.__importDefault(n(339)), k = u.__importDefault(n(350)), R = u.__importDefault(n(365)), M = u.__importDefault(n(369)), P = u.__importDefault(n(137)), B = u.__importDefault(n(378)), T = u.__importDefault(n(380)), D = u.__importDefault(n(381)), V = u.__importDefault(n(382)), W = u.__importDefault(n(401)), G = u.__importDefault(n(406)), I = u.__importDefault(n(409)); + r.default = { bold: d.default, head: p.default, italic: g.default, link: h.default, underline: _.default, strikeThrough: S.default, fontName: b.default, fontSize: A.default, justify: y.default, quote: m.default, backColor: w.default, foreColor: E.default, video: x.default, image: k.default, indent: R.default, emoticon: M.default, list: P.default, lineHeight: B.default, undo: T.default, redo: D.default, table: V.default, code: W.default, splitLine: G.default, todo: I.default }; }, function(i, r, n) { var a = n(0), s = a(n(1)); (0, s.default)(r, "__esModule", { value: !0 }); @@ -57316,72 +57326,72 @@ var i1 = { exports: {} }; var _ = n(2), S = _.__importDefault(n(24)), b = _.__importDefault(n(3)), A = n(6), y = n(7), m = function(w) { _.__extends(E, w); function E(x) { - var k = this, $ = b.default('
    '), M = { width: 100, title: "\u8BBE\u7F6E\u6807\u9898", type: "list", list: [{ $elem: b.default("

    H1

    "), value: "

    " }, { $elem: b.default("

    H2

    "), value: "

    " }, { $elem: b.default("

    H3

    "), value: "

    " }, { $elem: b.default("

    H4

    "), value: "

    " }, { $elem: b.default("

    H5
    "), value: "
    " }, { $elem: b.default("

    " + x.i18next.t("menus.dropListMenu.head.\u6B63\u6587") + "

    "), value: "

    " }], clickHandler: function(T) { + var k = this, R = b.default('

    '), M = { width: 100, title: "\u8BBE\u7F6E\u6807\u9898", type: "list", list: [{ $elem: b.default("

    H1

    "), value: "

    " }, { $elem: b.default("

    H2

    "), value: "

    " }, { $elem: b.default("

    H3

    "), value: "

    " }, { $elem: b.default("

    H4

    "), value: "

    " }, { $elem: b.default("

    H5
    "), value: "
    " }, { $elem: b.default("

    " + x.i18next.t("menus.dropListMenu.head.\u6B63\u6587") + "

    "), value: "

    " }], clickHandler: function(T) { k.command(T); } }; - k = w.call(this, $, x, M) || this; + k = w.call(this, R, x, M) || this; var P = x.config.onCatalogChange; return P && (k.oldCatalogs = [], k.addListenerCatalog(), k.getCatalogs()), k; } return E.prototype.command = function(x) { - var k = this.editor, $ = k.selection.getSelectionContainerElem(); - if ($ && k.$textElem.equal($)) + var k = this.editor, R = k.selection.getSelectionContainerElem(); + if (R && k.$textElem.equal(R)) this.setMultilineHead(x); else { var M; - if ((0, u.default)(M = ["OL", "UL", "LI", "TABLE", "TH", "TR", "CODE", "HR"]).call(M, b.default($).getNodeName()) > -1) + if ((0, u.default)(M = ["OL", "UL", "LI", "TABLE", "TH", "TR", "CODE", "HR"]).call(M, b.default(R).getNodeName()) > -1) return; k.cmd.do("formatBlock", x); } x !== "

    " && this.addUidForSelectionElem(); }, E.prototype.addUidForSelectionElem = function() { - var x = this.editor, k = x.selection.getSelectionContainerElem(), $ = A.getRandomCode(); - b.default(k).attr("id", $); + var x = this.editor, k = x.selection.getSelectionContainerElem(), R = A.getRandomCode(); + b.default(k).attr("id", R); }, E.prototype.addListenerCatalog = function() { var x = this, k = this.editor; k.txt.eventHooks.changeEvents.push(function() { x.getCatalogs(); }); }, E.prototype.getCatalogs = function() { - var x = this.editor, k = this.editor.$textElem, $ = x.config.onCatalogChange, M = (0, d.default)(k).call(k, "h1,h2,h3,h4,h5"), P = []; + var x = this.editor, k = this.editor.$textElem, R = x.config.onCatalogChange, M = (0, d.default)(k).call(k, "h1,h2,h3,h4,h5"), P = []; (0, p.default)(M).call(M, function(B, T) { - var D = b.default(B), V = D.attr("id"), K = D.getNodeName(), G = D.text(); - V || (V = A.getRandomCode(), D.attr("id", V)), G && P.push({ tag: K, id: V, text: G }); - }), (0, h.default)(this.oldCatalogs) !== (0, h.default)(P) && (this.oldCatalogs = P, $ && $(P)); + var D = b.default(B), V = D.attr("id"), W = D.getNodeName(), G = D.text(); + V || (V = A.getRandomCode(), D.attr("id", V)), G && P.push({ tag: W, id: V, text: G }); + }), (0, h.default)(this.oldCatalogs) !== (0, h.default)(P) && (this.oldCatalogs = P, R && R(P)); }, E.prototype.setMultilineHead = function(x) { - var k = this, $, M, P = this.editor, B = P.selection, T = ($ = B.getSelectionContainerElem()) === null || $ === void 0 ? void 0 : $.elems[0], D = ["IMG", "VIDEO", "TABLE", "TH", "TR", "UL", "OL", "PRE", "HR", "BLOCKQUOTE"], V = b.default(B.getSelectionStartElem()), K = b.default(B.getSelectionEndElem()); - K.elems[0].outerHTML === b.default(y.EMPTY_P).elems[0].outerHTML && !K.elems[0].nextSibling && (K = K.prev()); + var k = this, R, M, P = this.editor, B = P.selection, T = (R = B.getSelectionContainerElem()) === null || R === void 0 ? void 0 : R.elems[0], D = ["IMG", "VIDEO", "TABLE", "TH", "TR", "UL", "OL", "PRE", "HR", "BLOCKQUOTE"], V = b.default(B.getSelectionStartElem()), W = b.default(B.getSelectionEndElem()); + W.elems[0].outerHTML === b.default(y.EMPTY_P).elems[0].outerHTML && !W.elems[0].nextSibling && (W = W.prev()); var G = []; G.push(V.getNodeTop(P)); - var R = [], z = (M = B.getRange()) === null || M === void 0 ? void 0 : M.commonAncestorContainer.childNodes; - z == null || (0, p.default)(z).call(z, function(q, Z) { - q === G[0].getNode() && R.push(Z), q === K.getNodeTop(P).getNode() && R.push(Z); + var I = [], U = (M = B.getRange()) === null || M === void 0 ? void 0 : M.commonAncestorContainer.childNodes; + U == null || (0, p.default)(U).call(U, function(q, Z) { + q === G[0].getNode() && I.push(Z), q === W.getNodeTop(P).getNode() && I.push(Z); }); - for (var C = 0; G[C].getNode() !== K.getNodeTop(P).getNode(); ) { - if (!G[C].elems[0]) + for (var F = 0; G[F].getNode() !== W.getNodeTop(P).getNode(); ) { + if (!G[F].elems[0]) return; - var F = b.default(G[C].next().getNode()); - G.push(F), C++; + var C = b.default(G[F].next().getNode()); + G.push(C), F++; } G == null || (0, p.default)(G).call(G, function(q, Z) { if (!k.hasTag(q, D)) { - var Y = b.default(x), J = q.parent().getNode(); - Y.html("" + q.html()), J.insertBefore(Y.getNode(), q.getNode()), q.remove(); + var Y = b.default(x), ue = q.parent().getNode(); + Y.html("" + q.html()), ue.insertBefore(Y.getNode(), q.getNode()), q.remove(); } - }), B.createRangeByElems(T.children[R[0]], T.children[R[1]]); + }), B.createRangeByElems(T.children[I[0]], T.children[I[1]]); }, E.prototype.hasTag = function(x, k) { - var $ = this, M; + var R = this, M; if (!x) return !1; if ((0, g.default)(k).call(k, x == null ? void 0 : x.getNodeName())) return !0; var P = !1; return (M = x.children()) === null || M === void 0 || (0, p.default)(M).call(M, function(B) { - P = $.hasTag(b.default(B), k); + P = R.hasTag(b.default(B), k); }), P; }, E.prototype.tryChangeActive = function() { - var x = this.editor, k = /^h/i, $ = x.cmd.queryCommandValue("formatBlock"); - k.test($) ? this.active() : this.unActive(); + var x = this.editor, k = /^h/i, R = x.cmd.queryCommandValue("formatBlock"); + k.test(R) ? this.active() : this.unActive(); }, E; }(S.default); r.default = m; @@ -57419,9 +57429,9 @@ var i1 = { exports: {} }; return x = m.call(this, k, E) || this, b.default(E), x; } return w.prototype.clickHandler = function() { - var E = this.editor, x, k = E.selection.getSelectionContainerElem(), $ = E.$textElem, M = $.html(), P = (0, u.default)(M).call(M); + var E = this.editor, x, k = E.selection.getSelectionContainerElem(), R = E.$textElem, M = R.html(), P = (0, u.default)(M).call(M); if (P === A.EMPTY_P) { - var B = $.children(); + var B = R.children(); E.selection.createRangeByElem(B, !0, !0), k = E.selection.getSelectionContainerElem(); } if (!(k && E.$textElem.equal(k))) @@ -57437,8 +57447,8 @@ var i1 = { exports: {} }; } else E.selection.isSelectionEmpty() ? this.createPanel("", "") : this.createPanel(E.selection.getSelectionText(), ""); }, w.prototype.createPanel = function(E, x) { - var k = g.default(this.editor, E, x), $ = new S.default(this, k); - $.create(); + var k = g.default(this.editor, E, x), R = new S.default(this, k); + R.create(); }, w.prototype.tryChangeActive = function() { var E = this.editor; _.default(E) ? this.active() : this.unActive(); @@ -57450,37 +57460,37 @@ var i1 = { exports: {} }; (0, s.default)(r, "__esModule", { value: !0 }); var h = n(2), g = n(6), _ = h.__importDefault(n(3)), S = h.__importStar(n(96)), b = n(323); function A(y, m, w) { - var E = g.getRandom("input-link"), x = g.getRandom("input-text"), k = g.getRandom("btn-ok"), $ = g.getRandom("btn-del"), M = S.default(y) ? "inline-block" : "none", P; + var E = g.getRandom("input-link"), x = g.getRandom("input-text"), k = g.getRandom("btn-ok"), R = g.getRandom("btn-del"), M = S.default(y) ? "inline-block" : "none", P; function B() { if (!!S.default(y)) { var G = y.selection.getSelectionContainerElem(); !G || (y.selection.createRangeByElem(G), y.selection.restoreSelection(), P = G); } } - function T(G, R) { - var z = G.replace(//g, ">"), C = _.default('' + z + ""), F = C.elems[0]; - F.innerText = G, F.href = R, S.default(y) && B(), y.cmd.do("insertElem", C); + function T(G, I) { + var U = G.replace(//g, ">"), F = _.default('' + U + ""), C = F.elems[0]; + C.innerText = G, C.href = I, S.default(y) && B(), y.cmd.do("insertElem", F); } function D() { if (!!S.default(y)) if (B(), P.getNodeName() === "A") { - var G, R = P.elems[0], z = R.parentElement; - z && (0, u.default)(G = S.EXTRA_TAG).call(G, z.nodeName) ? z.innerHTML = R.innerHTML : y.cmd.do("insertHTML", "" + R.innerHTML + ""); + var G, I = P.elems[0], U = I.parentElement; + U && (0, u.default)(G = S.EXTRA_TAG).call(G, U.nodeName) ? U.innerHTML = I.innerHTML : y.cmd.do("insertHTML", "" + I.innerHTML + ""); } else { - var C = S.getParentNodeA(P), F = C.innerHTML; - y.cmd.do("insertHTML", "" + F + ""); + var F = S.getParentNodeA(P), C = F.innerHTML; + y.cmd.do("insertHTML", "" + C + ""); } } - function V(G, R) { - var z = y.config.linkCheck(G, R); - if (z !== void 0) { - if (z === !0) + function V(G, I) { + var U = y.config.linkCheck(G, I); + if (U !== void 0) { + if (U === !0) return !0; - y.config.customAlert(z, "warning"); + y.config.customAlert(U, "warning"); } return !1; } - var K = { + var W = { width: 300, height: 0, tabs: [{ @@ -57502,44 +57512,44 @@ var i1 = { exports: {} }; -

    `, events: [ { selector: "#" + k, type: "click", fn: function() { - var R, z, C, F, q, Z = y.selection.getSelectionContainerElem(), Y = Z == null ? void 0 : Z.elems[0]; + var I, U, F, C, q, Z = y.selection.getSelectionContainerElem(), Y = Z == null ? void 0 : Z.elems[0]; y.selection.restoreSelection(); - var J = y.selection.getSelectionRangeTopNodes()[0].getNode(), ve = window.getSelection(), pe = _.default("#" + E), Te = _.default("#" + x), ge = (0, d.default)(R = pe.val()).call(R), me = (0, d.default)(z = Te.val()).call(z), we = ""; - ve && !(ve != null && ve.isCollapsed) && (we = (F = b.insertHtml(ve, J)) === null || F === void 0 ? void 0 : (0, d.default)(F).call(F)); - var ce = we == null ? void 0 : we.replace(/<.*?>/g, ""), Se = (q = ce == null ? void 0 : ce.length) !== null && q !== void 0 ? q : 0; - if (Se <= me.length) { - var I = me.substring(0, Se), j = me.substring(Se); - ce === I && (me = ce + j); + var ue = y.selection.getSelectionRangeTopNodes()[0].getNode(), te = window.getSelection(), pe = _.default("#" + E), ke = _.default("#" + x), ge = (0, d.default)(I = pe.val()).call(I), ve = (0, d.default)(U = ke.val()).call(U), we = ""; + te && !(te != null && te.isCollapsed) && (we = (C = b.insertHtml(te, ue)) === null || C === void 0 ? void 0 : (0, d.default)(C).call(C)); + var he = we == null ? void 0 : we.replace(/<.*?>/g, ""), Se = (q = he == null ? void 0 : he.length) !== null && q !== void 0 ? q : 0; + if (Se <= ve.length) { + var xe = ve.substring(0, Se), $ = ve.substring(Se); + he === xe && (ve = he + $); } - if (!!ge && (me || (me = ge), !!V(me, ge))) { + if (!!ge && (ve || (ve = ge), !!V(ve, ge))) { if ((Y == null ? void 0 : Y.nodeName) === "A") - return Y.setAttribute("href", ge), Y.innerText = me, !0; - if ((Y == null ? void 0 : Y.nodeName) !== "A" && (0, u.default)(C = S.EXTRA_TAG).call(C, Y.nodeName)) { - var ee = S.getParentNodeA(Z); - if (ee) - return ee.setAttribute("href", ge), Y.innerText = me, !0; + return Y.setAttribute("href", ge), Y.innerText = ve, !0; + if ((Y == null ? void 0 : Y.nodeName) !== "A" && (0, u.default)(F = S.EXTRA_TAG).call(F, Y.nodeName)) { + var K = S.getParentNodeA(Z); + if (K) + return K.setAttribute("href", ge), Y.innerText = ve, !0; } - return T(me, ge), !0; + return T(ve, ge), !0; } }, bindEnter: !0 }, - { selector: "#" + $, type: "click", fn: function() { + { selector: "#" + R, type: "click", fn: function() { return D(), !0; } } ] }], - setLinkValue: function(R, z) { - var C = "", F = "", q; - z === "text" && (C = "#" + x, F = m), z === "link" && (C = "#" + E, F = w), q = (0, p.default)(R).call(R, C).elems[0], q.value = F; + setLinkValue: function(I, U) { + var F = "", C = "", q; + U === "text" && (F = "#" + x, C = m), U === "link" && (F = "#" + E, C = w), q = (0, p.default)(I).call(I, F).elems[0], q.value = C; } }; - return K; + return W; } r.default = A; }, function(i, r, n) { @@ -57575,25 +57585,25 @@ var i1 = { exports: {} }; } r.createPartHtml = h; function g(b, A) { - var y, m, w, E, x, k = b.anchorNode, $ = b.focusNode, M = b.anchorOffset, P = b.focusOffset, B = (y = A.textContent) !== null && y !== void 0 ? y : "", T = _(A), D = "", V = "", K = "", G = "", R = k, z = $, C = k; - if (k != null && k.isEqualNode($ != null ? $ : null)) { - var F = h(B, k, M, P); - return F = S(T, F), F; + var y, m, w, E, x, k = b.anchorNode, R = b.focusNode, M = b.anchorOffset, P = b.focusOffset, B = (y = A.textContent) !== null && y !== void 0 ? y : "", T = _(A), D = "", V = "", W = "", G = "", I = k, U = R, F = k; + if (k != null && k.isEqualNode(R != null ? R : null)) { + var C = h(B, k, M, P); + return C = S(T, C), C; } - for (k && (V = h(B, k, M != null ? M : 0)), $ && (G = h(B, $, 0, P)), k && (R = d(k, B)), $ && (z = d($, B)), C = (m = R == null ? void 0 : R.nextSibling) !== null && m !== void 0 ? m : k; !(C != null && C.isEqualNode(z != null ? z : null)); ) { - var q = C == null ? void 0 : C.nodeName; + for (k && (V = h(B, k, M != null ? M : 0)), R && (G = h(B, R, 0, P)), k && (I = d(k, B)), R && (U = d(R, B)), F = (m = I == null ? void 0 : I.nextSibling) !== null && m !== void 0 ? m : k; !(F != null && F.isEqualNode(U != null ? U : null)); ) { + var q = F == null ? void 0 : F.nodeName; if (q === "#text") - K = K + (C == null ? void 0 : C.textContent); + W = W + (F == null ? void 0 : F.textContent); else { - var Z = (E = (w = C == null ? void 0 : C.firstChild) === null || w === void 0 ? void 0 : w.parentElement) === null || E === void 0 ? void 0 : E.innerHTML; - C && (K = K + p(C, Z != null ? Z : "")); + var Z = (E = (w = F == null ? void 0 : F.firstChild) === null || w === void 0 ? void 0 : w.parentElement) === null || E === void 0 ? void 0 : E.innerHTML; + F && (W = W + p(F, Z != null ? Z : "")); } - var Y = (x = C == null ? void 0 : C.nextSibling) !== null && x !== void 0 ? x : C; - if (Y === C) + var Y = (x = F == null ? void 0 : F.nextSibling) !== null && x !== void 0 ? x : F; + if (Y === F) break; - C = Y; + F = Y; } - return D = "" + V + K + G, D = S(T, D), D; + return D = "" + V + W + G, D = S(T, D), D; } r.insertHtml = g; function _(b) { @@ -57621,21 +57631,21 @@ var i1 = { exports: {} }; function _(b) { var A; function y(w) { - var E = [{ $elem: p.default("" + b.i18next.t("menus.panelMenus.link.\u67E5\u770B\u94FE\u63A5") + ""), onClick: function(k, $) { - var M = $.attr("href"); + var E = [{ $elem: p.default("" + b.i18next.t("menus.panelMenus.link.\u67E5\u770B\u94FE\u63A5") + ""), onClick: function(k, R) { + var M = R.attr("href"); return window.open(M, "_target"), !0; - } }, { $elem: p.default("" + b.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5") + ""), onClick: function(k, $) { + } }, { $elem: p.default("" + b.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5") + ""), onClick: function(k, R) { var M, P; - k.selection.createRangeByElem($), k.selection.restoreSelection(); - var B = $.childNodes(); + k.selection.createRangeByElem(R), k.selection.restoreSelection(); + var B = R.childNodes(); if ((B == null ? void 0 : B.getNodeName()) === "IMG") { var T = (P = (M = k.selection.getSelectionContainerElem()) === null || M === void 0 ? void 0 : M.children()) === null || P === void 0 ? void 0 : P.elems[0].children[0]; k.cmd.do("insertHTML", `"); } else { - var D, V = $.elems[0], K = V.innerHTML, G = V.parentElement; - G && (0, u.default)(D = g.EXTRA_TAG).call(D, G.nodeName) ? G.innerHTML = K : k.cmd.do("insertHTML", "" + K + ""); + var D, V = R.elems[0], W = V.innerHTML, G = V.parentElement; + G && (0, u.default)(D = g.EXTRA_TAG).call(D, G.nodeName) ? G.innerHTML = W : k.cmd.do("insertHTML", "" + W + ""); } return !0; } }]; @@ -57811,8 +57821,8 @@ var i1 = { exports: {} };

    `), value: "right" }, { $elem: g.default(`

    ` + m.i18next.t("menus.dropListMenu.justify.\u4E24\u7AEF") + ` -

    `), value: "justify" }], clickHandler: function($) { - w.command($); +

    `), value: "justify" }], clickHandler: function(R) { + w.command(R); } }; return w = A.call(this, E, m, x) || this, w; } @@ -57822,10 +57832,10 @@ var i1 = { exports: {} }; var k = w.selection.getSelectionRangeTopNodes(); if (x != null && x.length) if (this.isSpecialNode(x, k[0]) || this.isSpecialTopNode(k[0])) { - var $ = this.getSpecialNodeUntilTop(x, k[0]); - if ($ == null) + var R = this.getSpecialNodeUntilTop(x, k[0]); + if (R == null) return; - g.default($).css("text-align", m); + g.default(R).css("text-align", m); } else (0, u.default)(k).call(k, function(M) { M.css("text-align", m); @@ -57860,25 +57870,25 @@ var i1 = { exports: {} }; return w = A.call(this, E, m) || this, g.default(m), w; } return y.prototype.clickHandler = function() { - var m, w, E = this.editor, x = E.selection.isSelectionEmpty(), k = E.selection.getSelectionRangeTopNodes(), $ = k[k.length - 1], M = this.getTopNodeName(); + var m, w, E = this.editor, x = E.selection.isSelectionEmpty(), k = E.selection.getSelectionRangeTopNodes(), R = k[k.length - 1], M = this.getTopNodeName(); if (M === "BLOCKQUOTE") { - var P = p.default($.childNodes()), B = P.length, T = $; + var P = p.default(R.childNodes()), B = P.length, T = R; (0, u.default)(P).call(P, function(G) { - var R = p.default(G); - R.insertAfter(T), T = R; - }), $.remove(), E.selection.moveCursor(P.elems[B - 1]), this.tryChangeActive(); + var I = p.default(G); + I.insertAfter(T), T = I; + }), R.remove(), E.selection.moveCursor(P.elems[B - 1]), this.tryChangeActive(); } else { var D = _.default(k); - if (E.$textElem.equal($)) { + if (E.$textElem.equal(R)) { var V = (m = E.selection.getSelectionContainerElem()) === null || m === void 0 ? void 0 : m.elems[0]; - E.selection.createRangeByElems(V.children[0], V.children[0]), k = E.selection.getSelectionRangeTopNodes(), D = _.default(k), $.append(D); + E.selection.createRangeByElems(V.children[0], V.children[0]), k = E.selection.getSelectionRangeTopNodes(), D = _.default(k), R.append(D); } else - D.insertAfter($); + D.insertAfter(R); this.delSelectNode(k); - var K = (w = D.childNodes()) === null || w === void 0 ? void 0 : w.last().getNode(); - if (K == null) + var W = (w = D.childNodes()) === null || w === void 0 ? void 0 : w.last().getNode(); + if (W == null) return; - K.textContent ? E.selection.moveCursor(K) : E.selection.moveCursor(K, 0), this.tryChangeActive(), p.default(S.EMPTY_P).insertAfter(D); + W.textContent ? E.selection.moveCursor(W) : E.selection.moveCursor(W, 0), this.tryChangeActive(), p.default(S.EMPTY_P).insertAfter(D); return; } x && (E.selection.collapseRange(), E.selection.restoreSelection()); @@ -57953,9 +57963,9 @@ var i1 = { exports: {} }; return b.prototype.command = function(A) { var y, m = this.editor, w = m.selection.isSelectionEmpty(), E = (y = m.selection.getSelectionContainerElem()) === null || y === void 0 ? void 0 : y.elems[0]; if (E != null) { - var x = (E == null ? void 0 : E.nodeName.toLowerCase()) !== "p", k = E == null ? void 0 : E.style.backgroundColor, $ = g.hexToRgb(A) === k; + var x = (E == null ? void 0 : E.nodeName.toLowerCase()) !== "p", k = E == null ? void 0 : E.style.backgroundColor, R = g.hexToRgb(A) === k; if (w) { - if (x && !$) { + if (x && !R) { var M = m.selection.getSelectionRangeTopNodes(); m.selection.createRangeByElem(M[0]), m.selection.moveCursor(M[0].elems[0]); } @@ -58028,7 +58038,7 @@ var i1 = { exports: {} }; var d = n(2), p = n(6), h = d.__importDefault(n(3)), g = d.__importDefault(n(341)), _ = n(7); function S(b, A) { var y = b.config, m = new g.default(b), w = p.getRandom("input-iframe"), E = p.getRandom("btn-ok"), x = p.getRandom("input-upload"), k = p.getRandom("btn-local-ok"); - function $(T) { + function R(T) { b.cmd.do("insertHTML", T + _.EMPTY_P), b.config.onlineVideoCallback(T); } function M(T) { @@ -58057,8 +58067,8 @@ var i1 = { exports: {} }; var D = h.default("#" + x), V = D.elems[0]; if (!V) return !0; - var K = V.files; - return K.length && m.uploadVideo(K), !0; + var W = V.files; + return W.length && m.uploadVideo(W), !0; } } ] }, { @@ -58078,9 +58088,9 @@ var i1 = { exports: {} }; `, events: [ { selector: "#" + E, type: "click", fn: function() { - var D, V = h.default("#" + w), K = (0, u.default)(D = V.val()).call(D); - if (!!K && !!M(K)) - return $(K), !0; + var D, V = h.default("#" + w), W = (0, u.default)(D = V.val()).call(D); + if (!!W && !!M(W)) + return R(W), !0; }, bindEnter: !0 } ] }], B = { @@ -58101,85 +58111,85 @@ var i1 = { exports: {} }; return w.prototype.uploadVideo = function(E) { var x = this; if (!!E.length) { - var k = this.editor, $ = k.config, M = "validate.", P = function(ce) { - return k.i18next.t(M + ce); - }, B = $.uploadVideoServer, T = $.uploadVideoMaxSize, D = T / 1024, V = $.uploadVideoName, K = $.uploadVideoParams, G = $.uploadVideoParamsWithUrl, R = $.uploadVideoHeaders, z = $.uploadVideoHooks, C = $.uploadVideoTimeout, F = $.withVideoCredentials, q = $.customUploadVideo, Z = $.uploadVideoAccept, Y = [], J = []; + var k = this.editor, R = k.config, M = "validate.", P = function(he) { + return k.i18next.t(M + he); + }, B = R.uploadVideoServer, T = R.uploadVideoMaxSize, D = T / 1024, V = R.uploadVideoName, W = R.uploadVideoParams, G = R.uploadVideoParamsWithUrl, I = R.uploadVideoHeaders, U = R.uploadVideoHooks, F = R.uploadVideoTimeout, C = R.withVideoCredentials, q = R.customUploadVideo, Z = R.uploadVideoAccept, Y = [], ue = []; if (_.arrForEach(E, function(we) { - var ce = we.name, Se = we.size / 1024 / 1024; - if (!(!ce || !Se)) { + var he = we.name, Se = we.size / 1024 / 1024; + if (!(!he || !Se)) { if (!(Z instanceof Array)) { - J.push("\u3010" + Z + "\u3011" + P("uploadVideoAccept \u4E0D\u662FArray")); + ue.push("\u3010" + Z + "\u3011" + P("uploadVideoAccept \u4E0D\u662FArray")); return; } - if (!(0, u.default)(Z).call(Z, function(I) { - return I === ce.split(".")[ce.split(".").length - 1]; + if (!(0, u.default)(Z).call(Z, function(xe) { + return xe === he.split(".")[he.split(".").length - 1]; })) { - J.push("\u3010" + ce + "\u3011" + P("\u4E0D\u662F\u89C6\u9891")); + ue.push("\u3010" + he + "\u3011" + P("\u4E0D\u662F\u89C6\u9891")); return; } if (D < Se) { - J.push("\u3010" + ce + "\u3011" + P("\u5927\u4E8E") + " " + D + "M"); + ue.push("\u3010" + he + "\u3011" + P("\u5927\u4E8E") + " " + D + "M"); return; } Y.push(we); } - }), J.length) { - $.customAlert(P("\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7") + `: -` + J.join(` + }), ue.length) { + R.customAlert(P("\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7") + `: +` + ue.join(` `), "warning"); return; } if (Y.length === 0) { - $.customAlert(P("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"), "warning"); + R.customAlert(P("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"), "warning"); return; } if (q && typeof q == "function") { - var ve; - q(Y, (0, d.default)(ve = this.insertVideo).call(ve, this)); + var te; + q(Y, (0, d.default)(te = this.insertVideo).call(te, this)); return; } var pe = new FormData(); - if ((0, p.default)(Y).call(Y, function(we, ce) { + if ((0, p.default)(Y).call(Y, function(we, he) { var Se = V || we.name; - Y.length > 1 && (Se = Se + (ce + 1)), pe.append(Se, we); + Y.length > 1 && (Se = Se + (he + 1)), pe.append(Se, we); }), B) { - var Te = B.split("#"); - B = Te[0]; - var ge = Te[1] || ""; - (0, p.default)(_).call(_, K, function(we, ce) { - G && ((0, h.default)(B).call(B, "?") > 0 ? B += "&" : B += "?", B = B + we + "=" + ce), pe.append(we, ce); + var ke = B.split("#"); + B = ke[0]; + var ge = ke[1] || ""; + (0, p.default)(_).call(_, W, function(we, he) { + G && ((0, h.default)(B).call(B, "?") > 0 ? B += "&" : B += "?", B = B + we + "=" + he), pe.append(we, he); }), ge && (B += "#" + ge); - var me = S.default(B, { timeout: C, formData: pe, headers: R, withCredentials: !!F, beforeSend: function(ce) { - if (z.before) - return z.before(ce, k, Y); - }, onTimeout: function(ce) { - $.customAlert(P("\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6"), "error"), z.timeout && z.timeout(ce, k); - }, onProgress: function(ce, Se) { - var I = new b.default(k); - Se.lengthComputable && (ce = Se.loaded / Se.total, I.show(ce)); - }, onError: function(ce) { - $.customAlert(P("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF"), "error", P("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF") + "\uFF0C" + P("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001") + ": " + ce.status), z.error && z.error(ce, k); - }, onFail: function(ce, Se) { - $.customAlert(P("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"), "error", P("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF") + ("\uFF0C" + P("\u8FD4\u56DE\u7ED3\u679C") + ": ") + Se), z.fail && z.fail(ce, k, Se); - }, onSuccess: function(ce, Se) { - if (z.customInsert) { - var I; - z.customInsert((0, d.default)(I = x.insertVideo).call(I, x), Se, k); + var ve = S.default(B, { timeout: F, formData: pe, headers: I, withCredentials: !!C, beforeSend: function(he) { + if (U.before) + return U.before(he, k, Y); + }, onTimeout: function(he) { + R.customAlert(P("\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6"), "error"), U.timeout && U.timeout(he, k); + }, onProgress: function(he, Se) { + var xe = new b.default(k); + Se.lengthComputable && (he = Se.loaded / Se.total, xe.show(he)); + }, onError: function(he) { + R.customAlert(P("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF"), "error", P("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF") + "\uFF0C" + P("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001") + ": " + he.status), U.error && U.error(he, k); + }, onFail: function(he, Se) { + R.customAlert(P("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"), "error", P("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF") + ("\uFF0C" + P("\u8FD4\u56DE\u7ED3\u679C") + ": ") + Se), U.fail && U.fail(he, k, Se); + }, onSuccess: function(he, Se) { + if (U.customInsert) { + var xe; + U.customInsert((0, d.default)(xe = x.insertVideo).call(xe, x), Se, k); return; } if (Se.errno != "0") { - $.customAlert(P("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"), "error", P("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF") + "\uFF0C" + P("\u8FD4\u56DE\u7ED3\u679C") + " errno=" + Se.errno), z.fail && z.fail(ce, k, Se); + R.customAlert(P("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"), "error", P("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF") + "\uFF0C" + P("\u8FD4\u56DE\u7ED3\u679C") + " errno=" + Se.errno), U.fail && U.fail(he, k, Se); return; } - var j = Se.data; - x.insertVideo(j.url), z.success && z.success(ce, k, Se); + var $ = Se.data; + x.insertVideo($.url), U.success && U.success(he, k, Se); } }); - typeof me == "string" && $.customAlert(me, "error"); + typeof ve == "string" && R.customAlert(ve, "error"); } } }, w.prototype.insertVideo = function(E) { - var x = this.editor, k = x.config, $ = "validate.", M = function(T, D) { - return D === void 0 && (D = $), x.i18next.t(D + T); + var x = this.editor, k = x.config, R = "validate.", M = function(T, D) { + return D === void 0 && (D = R), x.i18next.t(D + T); }; if (!k.customInsertVideo) y.UA.isFirefox ? x.cmd.do("insertHTML", '

    ') : x.cmd.do("insertHTML", '' + A.EMPTY_P); @@ -58229,22 +58239,22 @@ var i1 = { exports: {} }; return x === void 0 && (x = ""), S.i18next.t(x + E); }; function y(w) { - var E = [{ $elem: d.default(""), onClick: function(k, $) { - return $.remove(), !0; - } }, { $elem: d.default("100%"), onClick: function(k, $) { - return $.attr("width", "100%"), $.removeAttr("height"), !0; - } }, { $elem: d.default("50%"), onClick: function(k, $) { - return $.attr("width", "50%"), $.removeAttr("height"), !0; - } }, { $elem: d.default("30%"), onClick: function(k, $) { - return $.attr("width", "30%"), $.removeAttr("height"), !0; - } }, { $elem: d.default("" + A("\u91CD\u7F6E") + ""), onClick: function(k, $) { - return $.removeAttr("width"), $.removeAttr("height"), !0; - } }, { $elem: d.default("" + A("menus.justify.\u9760\u5DE6") + ""), onClick: function(k, $) { - return h.default($, "left"), !0; - } }, { $elem: d.default("" + A("menus.justify.\u5C45\u4E2D") + ""), onClick: function(k, $) { - return h.default($, "center"), !0; - } }, { $elem: d.default("" + A("menus.justify.\u9760\u53F3") + ""), onClick: function(k, $) { - return h.default($, "right"), !0; + var E = [{ $elem: d.default(""), onClick: function(k, R) { + return R.remove(), !0; + } }, { $elem: d.default("100%"), onClick: function(k, R) { + return R.attr("width", "100%"), R.removeAttr("height"), !0; + } }, { $elem: d.default("50%"), onClick: function(k, R) { + return R.attr("width", "50%"), R.removeAttr("height"), !0; + } }, { $elem: d.default("30%"), onClick: function(k, R) { + return R.attr("width", "30%"), R.removeAttr("height"), !0; + } }, { $elem: d.default("" + A("\u91CD\u7F6E") + ""), onClick: function(k, R) { + return R.removeAttr("width"), R.removeAttr("height"), !0; + } }, { $elem: d.default("" + A("menus.justify.\u9760\u5DE6") + ""), onClick: function(k, R) { + return h.default(R, "left"), !0; + } }, { $elem: d.default("" + A("menus.justify.\u5C45\u4E2D") + ""), onClick: function(k, R) { + return h.default(R, "center"), !0; + } }, { $elem: d.default("" + A("menus.justify.\u9760\u53F3") + ""), onClick: function(k, R) { + return h.default(R, "right"), !0; } }]; b = new p.default(S, w, E), b.create(); } @@ -58303,8 +58313,8 @@ var i1 = { exports: {} }; function m(w) { var E = this, x = h.default('
    '), k = b.default(w); if (k.onlyUploadConf) { - var $; - x = k.onlyUploadConf.$elem, (0, u.default)($ = k.onlyUploadConf.events).call($, function(M) { + var R; + x = k.onlyUploadConf.$elem, (0, u.default)(R = k.onlyUploadConf.events).call(R, function(M) { var P = M.type, B = M.fn || p.EMPTY_FN; x.on(P, function(T) { T.stopPropagation(), B(T); @@ -58396,8 +58406,8 @@ var i1 = { exports: {} }; return E.hide(), w.append(E), E; } function b(m, w, E) { - var x = m.getBoundingClientRect(), k = E.getBoundingClientRect(), $ = k.width.toFixed(2), M = k.height.toFixed(2); - (0, u.default)(w).call(w, ".w-e-img-drag-show-size").text($ + "px * " + M + "px"), _(w, (0, d.default)($), (0, d.default)(M), k.left - x.left, k.top - x.top), w.show(); + var x = m.getBoundingClientRect(), k = E.getBoundingClientRect(), R = k.width.toFixed(2), M = k.height.toFixed(2); + (0, u.default)(w).call(w, ".w-e-img-drag-show-size").text(R + "px * " + M + "px"), _(w, (0, d.default)(R), (0, d.default)(M), k.left - x.left, k.top - x.top), w.show(); } function A(m) { var w = m.$textContainerElem, E, x = S(m, w); @@ -58407,23 +58417,23 @@ var i1 = { exports: {} }; }), P.on("mousedown", ".w-e-img-drag-rb", function(T) { if (T.preventDefault(), !E) return; - var D = T.clientX, V = T.clientY, K = B.getBoundingClientRect(), G = E.getBoundingClientRect(), R = G.width, z = G.height, C = G.left - K.left, F = G.top - K.top, q = R / z, Z = R, Y = z, J = h.default(document); - function ve() { - J.off("mousemove", pe), J.off("mouseup", Te); + var D = T.clientX, V = T.clientY, W = B.getBoundingClientRect(), G = E.getBoundingClientRect(), I = G.width, U = G.height, F = G.left - W.left, C = G.top - W.top, q = I / U, Z = I, Y = U, ue = h.default(document); + function te() { + ue.off("mousemove", pe), ue.off("mouseup", ke); } function pe(ge) { - ge.stopPropagation(), ge.preventDefault(), Z = R + (ge.clientX - D), Y = z + (ge.clientY - V), Z / Y != q && (Y = Z / q), Z = (0, d.default)(Z.toFixed(2)), Y = (0, d.default)(Y.toFixed(2)), (0, u.default)(P).call(P, ".w-e-img-drag-show-size").text(Z.toFixed(2).replace(".00", "") + "px * " + Y.toFixed(2).replace(".00", "") + "px"), _(P, Z, Y, C, F); + ge.stopPropagation(), ge.preventDefault(), Z = I + (ge.clientX - D), Y = U + (ge.clientY - V), Z / Y != q && (Y = Z / q), Z = (0, d.default)(Z.toFixed(2)), Y = (0, d.default)(Y.toFixed(2)), (0, u.default)(P).call(P, ".w-e-img-drag-show-size").text(Z.toFixed(2).replace(".00", "") + "px * " + Y.toFixed(2).replace(".00", "") + "px"), _(P, Z, Y, F, C); } - J.on("mousemove", pe); - function Te() { + ue.on("mousemove", pe); + function ke() { E.attr("width", Z + ""), E.attr("height", Y + ""); var ge = E.getBoundingClientRect(); - _(P, Z, Y, ge.left - K.left, ge.top - K.top), ve(); + _(P, Z, Y, ge.left - W.left, ge.top - W.top), te(); } - J.on("mouseup", Te), J.on("mouseleave", ve); + ue.on("mouseup", ke), ue.on("mouseleave", te); }); } - function $(P) { + function R(P) { if (g.UA.isIE()) return !1; P && (E = P, b(w, x, E)); @@ -58433,7 +58443,7 @@ var i1 = { exports: {} }; } return k(x, w), h.default(document).on("click", M), m.beforeDestroy(function() { h.default(document).off("click", M); - }), { showDrag: $, hideDrag: M }; + }), { showDrag: R, hideDrag: M }; } r.createShowHideFn = A; function y(m) { @@ -58521,8 +58531,8 @@ var i1 = { exports: {} }; w.push({ $elem: d.default("" + b("\u91CD\u7F6E") + ""), onClick: function(x, k) { return k.removeAttr("width"), k.removeAttr("height"), !0; } }), m.attr("data-href") && w.push({ $elem: d.default("" + b("\u67E5\u770B\u94FE\u63A5") + ""), onClick: function(x, k) { - var $ = k.attr("data-href"); - return $ && ($ = decodeURIComponent($), window.open($, "_target")), !0; + var R = k.attr("data-href"); + return R && (R = decodeURIComponent(R), window.open(R, "_target")), !0; } }), S = new p.default(_, m, w), S.create(); } function y() { @@ -58569,16 +58579,16 @@ var i1 = { exports: {} }; (0, s.default)(r, "__esModule", { value: !0 }); var p = n(2), h = p.__importDefault(n(3)), g = n(6), _ = p.__importDefault(n(97)); function S(b) { - var A, y = b.config, m = new _.default(b), w = g.getRandom("up-trigger-id"), E = g.getRandom("up-file-id"), x = g.getRandom("input-link-url"), k = g.getRandom("input-link-url-alt"), $ = g.getRandom("input-link-url-href"), M = g.getRandom("btn-link"), P = "menus.panelMenus.image.", B = function(q, Z) { + var A, y = b.config, m = new _.default(b), w = g.getRandom("up-trigger-id"), E = g.getRandom("up-file-id"), x = g.getRandom("input-link-url"), k = g.getRandom("input-link-url-alt"), R = g.getRandom("input-link-url-href"), M = g.getRandom("btn-link"), P = "menus.panelMenus.image.", B = function(q, Z) { return Z === void 0 && (Z = P), b.i18next.t(Z + q); }; - function T(F, q, Z) { - var Y = y.linkImgCheck(F); + function T(C, q, Z) { + var Y = y.linkImgCheck(C); return Y === !0 ? !0 : (typeof Y == "string" && y.customAlert(Y, "error"), !1); } - var D = y.uploadImgMaxLength === 1 ? "" : 'multiple="multiple"', V = (0, u.default)(A = y.uploadImgAccept).call(A, function(F) { - return "image/" + F; - }).join(","), K = function(q, Z, Y) { + var D = y.uploadImgMaxLength === 1 ? "" : 'multiple="multiple"', V = (0, u.default)(A = y.uploadImgAccept).call(A, function(C) { + return "image/" + C; + }).join(","), W = function(q, Z, Y) { return '
    @@ -58605,52 +58615,52 @@ var i1 = { exports: {} }; var Y = Z.files; return Y != null && Y.length && m.uploadImg(Y), Z && (Z.value = ""), !0; } } - ], R = [`']; - y.showLinkImgAlt && R.push(` + y.showLinkImgAlt && I.push(` '), y.showLinkImgHref && R.push(` + placeholder="` + B("\u56FE\u7247\u6587\u5B57\u8BF4\u660E") + '"/>'), y.showLinkImgHref && I.push(` '); - var z = [ + var U = [ { title: B("\u4E0A\u4F20\u56FE\u7247"), - tpl: K("w-e-up-img-container", "w-e-icon-upload2", ""), + tpl: W("w-e-up-img-container", "w-e-icon-upload2", ""), events: G }, { title: B("\u7F51\u7EDC\u56FE\u7247"), tpl: `
    - ` + R.join("") + ` + ` + I.join("") + `
    `, events: [{ selector: "#" + M, type: "click", fn: function() { var q, Z = h.default("#" + x), Y = (0, d.default)(q = Z.val()).call(q); if (!!Y) { - var J; + var ue; if (y.showLinkImgAlt) { - var ve; - J = (0, d.default)(ve = h.default("#" + k).val()).call(ve); + var te; + ue = (0, d.default)(te = h.default("#" + k).val()).call(te); } var pe; if (y.showLinkImgHref) { - var Te; - pe = (0, d.default)(Te = h.default("#" + $).val()).call(Te); + var ke; + pe = (0, d.default)(ke = h.default("#" + R).val()).call(ke); } if (!!T(Y)) - return m.insertImg(Y, J, pe), !0; + return m.insertImg(Y, ue, pe), !0; } }, bindEnter: !0 }] } - ], C = { width: 300, height: 0, tabs: [], onlyUploadConf: { $elem: h.default(K("w-e-menu", "w-e-icon-image", "\u56FE\u7247")), events: G } }; - return window.FileReader && (y.uploadImgShowBase64 || y.uploadImgServer || y.customUploadImg || y.uploadImgFromMedia) && C.tabs.push(z[0]), y.showLinkImg && (C.tabs.push(z[1]), C.onlyUploadConf = void 0), C; + ], F = { width: 300, height: 0, tabs: [], onlyUploadConf: { $elem: h.default(W("w-e-menu", "w-e-icon-image", "\u56FE\u7247")), events: G } }; + return window.FileReader && (y.uploadImgShowBase64 || y.uploadImgServer || y.customUploadImg || y.uploadImgFromMedia) && F.tabs.push(U[0]), y.showLinkImg && (F.tabs.push(U[1]), F.onlyUploadConf = void 0), F; } r.default = S; }, function(i, r, n) { @@ -58765,17 +58775,17 @@ var i1 = { exports: {} }; var E = []; if (w.type == "image") { var x; - E = (0, u.default)(x = w.content).call(x, function($) { - return typeof $ == "string" ? "" : ' - [' + $.alt + `] + E = (0, u.default)(x = w.content).call(x, function(R) { + return typeof R == "string" ? "" : ' + [' + R.alt + `] `; - }), E = (0, d.default)(E).call(E, function($) { - return $ !== ""; + }), E = (0, d.default)(E).call(E, function(R) { + return R !== ""; }); } else { var k; - E = (0, u.default)(k = w.content).call(k, function($) { - return '' + $ + ""; + E = (0, u.default)(k = w.content).call(k, function(R) { + return '' + R + ""; }); } return E.join("").replace(/ /g, ""); @@ -58785,8 +58795,8 @@ var i1 = { exports: {} }; title: S.i18next.t("menus.panelMenus.emoticon." + w.title), tpl: "
    " + A(w) + "
    ", events: [{ selector: ".eleImg", type: "click", fn: function(x) { - var k = g.default(x.target), $ = k.getNodeName(), M; - if ($ === "IMG") { + var k = g.default(x.target), R = k.getNodeName(), M; + if (R === "IMG") { var P; M = (0, p.default)(P = k.parent().html()).call(P); } else @@ -58830,43 +58840,43 @@ var i1 = { exports: {} }; return S.call(this, A) || this; } return b.prototype.exec = function() { - var A = this.options, y = A.listType, m = A.listTarget, w = A.$selectionElem, E = A.$startElem, x = A.$endElem, k, $ = [], M = w == null ? void 0 : w.getNodeName(), P = E.prior, B = x.prior; + var A = this.options, y = A.listType, m = A.listTarget, w = A.$selectionElem, E = A.$startElem, x = A.$endElem, k, R = [], M = w == null ? void 0 : w.getNodeName(), P = E.prior, B = x.prior; if (!E.prior && !x.prior || !(P != null && P.prev().length) && !(B != null && B.next().length)) { var T; - (0, u.default)(T = w == null ? void 0 : w.children()).call(T, function(C) { - $.push(p.default(C)); + (0, u.default)(T = w == null ? void 0 : w.children()).call(T, function(F) { + R.push(p.default(F)); }), M === y ? k = g.createElementFragment( - $, + R, g.createDocumentFragment(), "p" - ) : (k = g.createElement(m), (0, u.default)($).call($, function(C) { - k.appendChild(C.elems[0]); + ) : (k = g.createElement(m), (0, u.default)(R).call(R, function(F) { + k.appendChild(F.elems[0]); })), this.selectionRangeElem.set(k), g.insertBefore(w, k, w.elems[0]), w.remove(); } else { for (var D = P; D.length; ) - $.push(D), B != null && B.equal(D) ? D = p.default(void 0) : D = D.next(); - var V = P.prev(), K = B.next(); + R.push(D), B != null && B.equal(D) ? D = p.default(void 0) : D = D.next(); + var V = P.prev(), W = B.next(); if (M === y ? k = g.createElementFragment( - $, + R, g.createDocumentFragment(), "p" - ) : (k = g.createElement(m), (0, u.default)($).call($, function(C) { - k.append(C.elems[0]); - })), V.length && K.length) { - for (var G = []; K.length; ) - G.push(K), K = K.next(); - var R = g.createElement(M); - (0, u.default)(G).call(G, function(C) { - R.append(C.elems[0]); - }), p.default(R).insertAfter(w), this.selectionRangeElem.set(k); - var z = w.next(); - z.length ? g.insertBefore(w, k, z.elems[0]) : w.parent().elems[0].append(k); + ) : (k = g.createElement(m), (0, u.default)(R).call(R, function(F) { + k.append(F.elems[0]); + })), V.length && W.length) { + for (var G = []; W.length; ) + G.push(W), W = W.next(); + var I = g.createElement(M); + (0, u.default)(G).call(G, function(F) { + I.append(F.elems[0]); + }), p.default(I).insertAfter(w), this.selectionRangeElem.set(k); + var U = w.next(); + U.length ? g.insertBefore(w, k, U.elems[0]) : w.parent().elems[0].append(k); } else if (!V.length) this.selectionRangeElem.set(k), g.insertBefore(w, k, w.elems[0]); else { this.selectionRangeElem.set(k); - var z = w.next(); - z.length ? g.insertBefore(w, k, z.elems[0]) : w.parent().elems[0].append(k); + var U = w.next(); + U.length ? g.insertBefore(w, k, U.elems[0]) : w.parent().elems[0].append(k); } } }, b; @@ -58903,56 +58913,56 @@ var i1 = { exports: {} }; return S.call(this, A) || this; } return b.prototype.exec = function() { - var A, y, m, w, E, x, k, $ = this.options, M = $.editor, P = $.listType, B = $.listTarget, T = $.$startElem, D = $.$endElem, V, K = M.selection.getSelectionRangeTopNodes(), G = T == null ? void 0 : T.getNodeName(), R = D == null ? void 0 : D.getNodeName(); - if (G === R) - if (K.length > 2) - if (K.shift(), K.pop(), V = g.createElementFragment( - g.filterSelectionNodes(K), + var A, y, m, w, E, x, k, R = this.options, M = R.editor, P = R.listType, B = R.listTarget, T = R.$startElem, D = R.$endElem, V, W = M.selection.getSelectionRangeTopNodes(), G = T == null ? void 0 : T.getNodeName(), I = D == null ? void 0 : D.getNodeName(); + if (G === I) + if (W.length > 2) + if (W.shift(), W.pop(), V = g.createElementFragment( + g.filterSelectionNodes(W), g.createDocumentFragment() ), G === P) (A = D.children()) === null || A === void 0 || (0, u.default)(A).call(A, function(ge) { V.append(ge); }), D.remove(), this.selectionRangeElem.set(V), T.elems[0].append(V); else { - for (var z = document.createDocumentFragment(), C = document.createDocumentFragment(), F = g.getStartPoint(T); F.length; ) { - var q = F.elems[0]; - F = F.next(), z.append(q); + for (var U = document.createDocumentFragment(), F = document.createDocumentFragment(), C = g.getStartPoint(T); C.length; ) { + var q = C.elems[0]; + C = C.next(), U.append(q); } for (var Z = g.getEndPoint(D), Y = []; Z.length; ) Y.unshift(Z.elems[0]), Z = Z.prev(); (0, u.default)(Y).call(Y, function(ge) { - C.append(ge); + F.append(ge); }); - var J = g.createElement(B); - J.append(z), J.append(V), J.append(C), V = J, this.selectionRangeElem.set(V), p.default(J).insertAfter(T), !(!((y = T.children()) === null || y === void 0) && y.length) && T.remove(), !(!((m = D.children()) === null || m === void 0) && m.length) && D.remove(); + var ue = g.createElement(B); + ue.append(U), ue.append(V), ue.append(F), V = ue, this.selectionRangeElem.set(V), p.default(ue).insertAfter(T), !(!((y = T.children()) === null || y === void 0) && y.length) && T.remove(), !(!((m = D.children()) === null || m === void 0) && m.length) && D.remove(); } else { - K.length = 0; - for (var F = g.getStartPoint(T); F.length; ) - K.push(F), F = F.next(); + W.length = 0; + for (var C = g.getStartPoint(T); C.length; ) + W.push(C), C = C.next(); for (var Z = g.getEndPoint(D), Y = []; Z.length; ) Y.unshift(Z), Z = Z.prev(); - K.push.apply(K, Y), G === P ? (V = g.createElementFragment(K, g.createDocumentFragment(), "p"), this.selectionRangeElem.set(V), g.insertBefore(T, V, D.elems[0])) : (V = g.createElement(B), (0, u.default)(K).call(K, function(ce) { - V.append(ce.elems[0]); + W.push.apply(W, Y), G === P ? (V = g.createElementFragment(W, g.createDocumentFragment(), "p"), this.selectionRangeElem.set(V), g.insertBefore(T, V, D.elems[0])) : (V = g.createElement(B), (0, u.default)(W).call(W, function(he) { + V.append(he.elems[0]); }), this.selectionRangeElem.set(V), p.default(V).insertAfter(T)), !(!((w = T.children()) === null || w === void 0) && w.length) && D.remove(), !(!((E = D.children()) === null || E === void 0) && E.length) && D.remove(); } else { - for (var ve = [], Z = g.getEndPoint(D); Z.length; ) - ve.unshift(Z), Z = Z.prev(); - for (var pe = [], F = g.getStartPoint(T); F.length; ) - pe.push(F), F = F.next(); - if (V = g.createDocumentFragment(), K.shift(), K.pop(), (0, u.default)(pe).call(pe, function(we) { + for (var te = [], Z = g.getEndPoint(D); Z.length; ) + te.unshift(Z), Z = Z.prev(); + for (var pe = [], C = g.getStartPoint(T); C.length; ) + pe.push(C), C = C.next(); + if (V = g.createDocumentFragment(), W.shift(), W.pop(), (0, u.default)(pe).call(pe, function(we) { return V.append(we.elems[0]); }), V = g.createElementFragment( - g.filterSelectionNodes(K), + g.filterSelectionNodes(W), V - ), (0, u.default)(ve).call(ve, function(we) { + ), (0, u.default)(te).call(te, function(we) { return V.append(we.elems[0]); }), this.selectionRangeElem.set(V), G === P) T.elems[0].append(V), !(!((x = D.children()) === null || x === void 0) && x.length) && D.remove(); else if (!((k = D.children()) === null || k === void 0) && k.length) { - var Te = D.children(); - g.insertBefore(Te, V, Te.elems[0]); + var ke = D.children(); + g.insertBefore(ke, V, ke.elems[0]); } else D.elems[0].append(V); } @@ -58968,19 +58978,19 @@ var i1 = { exports: {} }; return S.call(this, A) || this; } return b.prototype.exec = function() { - var A, y = this.options, m = y.editor, w = y.listType, E = y.listTarget, x = y.$startElem, k, $ = m.selection.getSelectionRangeTopNodes(), M = x == null ? void 0 : x.getNodeName(); - $.shift(); + var A, y = this.options, m = y.editor, w = y.listType, E = y.listTarget, x = y.$startElem, k, R = m.selection.getSelectionRangeTopNodes(), M = x == null ? void 0 : x.getNodeName(); + R.shift(); for (var P = [], B = g.getStartPoint(x); B.length; ) P.push(B), B = B.next(); M === w ? (k = g.createDocumentFragment(), (0, u.default)(P).call(P, function(T) { return k.append(T.elems[0]); }), k = g.createElementFragment( - g.filterSelectionNodes($), + g.filterSelectionNodes(R), k ), this.selectionRangeElem.set(k), x.elems[0].append(k)) : (k = g.createElement(E), (0, u.default)(P).call(P, function(T) { return k.append(T.elems[0]); }), k = g.createElementFragment( - g.filterSelectionNodes($), + g.filterSelectionNodes(R), k ), this.selectionRangeElem.set(k), p.default(k).insertAfter(x), !(!((A = x.children()) === null || A === void 0) && A.length) && x.remove()); }, b; @@ -58995,27 +59005,27 @@ var i1 = { exports: {} }; return S.call(this, A) || this; } return b.prototype.exec = function() { - var A, y, m = this.options, w = m.editor, E = m.listType, x = m.listTarget, k = m.$endElem, $, M = w.selection.getSelectionRangeTopNodes(), P = k == null ? void 0 : k.getNodeName(); + var A, y, m = this.options, w = m.editor, E = m.listType, x = m.listTarget, k = m.$endElem, R, M = w.selection.getSelectionRangeTopNodes(), P = k == null ? void 0 : k.getNodeName(); M.pop(); for (var B = [], T = g.getEndPoint(k); T.length; ) B.unshift(T), T = T.prev(); if (P === E) - if ($ = g.createElementFragment( + if (R = g.createElementFragment( g.filterSelectionNodes(M), g.createDocumentFragment() - ), (0, u.default)(B).call(B, function(K) { - return $.append(K.elems[0]); - }), this.selectionRangeElem.set($), !((A = k.children()) === null || A === void 0) && A.length) { + ), (0, u.default)(B).call(B, function(W) { + return R.append(W.elems[0]); + }), this.selectionRangeElem.set(R), !((A = k.children()) === null || A === void 0) && A.length) { var D = k.children(); - g.insertBefore(D, $, D.elems[0]); + g.insertBefore(D, R, D.elems[0]); } else - k.elems[0].append($); + k.elems[0].append(R); else { var V = g.filterSelectionNodes(M); - V.push.apply(V, B), $ = g.createElementFragment( + V.push.apply(V, B), R = g.createElementFragment( V, g.createElement(x) - ), this.selectionRangeElem.set($), p.default($).insertBefore(k), !(!((y = k.children()) === null || y === void 0) && y.length) && k.remove(); + ), this.selectionRangeElem.set(R), p.default(R).insertBefore(k), !(!((y = k.children()) === null || y === void 0) && y.length) && k.remove(); } }, b; }(h.ListHandle); @@ -59046,8 +59056,8 @@ var i1 = { exports: {} }; function A(y) { var m = this, w = g.default(`
    -
    `), E = new _.default(y, y.config.lineHeights), x = { width: 100, title: "\u8BBE\u7F6E\u884C\u9AD8", type: "list", list: E.getItemList(), clickHandler: function($) { - y.selection.saveRange(), m.command($); +
    `), E = new _.default(y, y.config.lineHeights), x = { width: 100, title: "\u8BBE\u7F6E\u884C\u9AD8", type: "list", list: E.getItemList(), clickHandler: function(R) { + y.selection.saveRange(), m.command(R); } }; return m = b.call(this, w, y, x) || this, m; } @@ -59057,9 +59067,9 @@ var i1 = { exports: {} }; var w = g.default(m.selection.getSelectionContainerElem()); if (!!w.elems.length) { if (w && m.$textElem.equal(w)) { - for (var E = !1, x = g.default(m.selection.getSelectionStartElem()).elems[0], k = g.default(m.selection.getSelectionEndElem()).elems[0], $ = this.getDom(x), M = this.getDom(k), P = w.elems[0].children, B = 0; B < P.length; B++) { + for (var E = !1, x = g.default(m.selection.getSelectionStartElem()).elems[0], k = g.default(m.selection.getSelectionEndElem()).elems[0], R = this.getDom(x), M = this.getDom(k), P = w.elems[0].children, B = 0; B < P.length; B++) { var T = P[B]; - if (g.default(T).getNodeName() === "P" && (T === $ && (E = !0), E && (g.default(T).css("line-height", y), T === M))) { + if (g.default(T).getNodeName() === "P" && (T === R && (E = !0), E && (g.default(T).css("line-height", y), T === M))) { E = !1; return; } @@ -59087,8 +59097,8 @@ var i1 = { exports: {} }; }, A.prototype.setRange = function(y, m) { var w = this.editor, E = window.getSelection ? window.getSelection() : document.getSelection(); E == null || E.removeAllRanges(); - var x = document.createRange(), k = y, $ = m; - x.setStart(k, 0), x.setEnd($, 1), E == null || E.addRange(x), w.selection.saveRange(), E == null || E.removeAllRanges(), w.selection.restoreSelection(); + var x = document.createRange(), k = y, R = m; + x.setStart(k, 0), x.setEnd(R, 1), E == null || E.addRange(x), w.selection.saveRange(), E == null || E.removeAllRanges(), w.selection.restoreSelection(); }, A.prototype.tryChangeActive = function() { var y = this.editor, m = y.selection.getSelectionContainerElem(); if (!(m && y.$textElem.equal(m))) { @@ -59209,8 +59219,8 @@ var i1 = { exports: {} };
    `, events: [{ selector: "#" + w, type: "click", fn: function() { var P = Number(h.default("#" + y).val()), B = Number(h.default("#" + m).val()); return _(B) && _(P) ? (A.createAction(B, P), !0) : (b.config.customAlert("\u8868\u683C\u884C\u5217\u8BF7\u8F93\u5165\u6B63\u6574\u6570", "warning"), !1); - }, bindEnter: !0 }] }], $ = { width: 330, height: 0, tabs: [] }; - return $.tabs.push(k[0]), $; + }, bindEnter: !0 }] }], R = { width: 330, height: 0, tabs: [] }; + return R.tabs.push(k[0]), R; } r.default = S; }, function(i, r, n) { @@ -59286,7 +59296,7 @@ var i1 = { exports: {} }; function S(m) { var w; function E(k) { - var $ = new g.default(m), M = "menus.panelMenus.table.", P = function(D, V) { + var R = new g.default(m), M = "menus.panelMenus.table.", P = function(D, V) { return V === void 0 && (V = M), m.i18next.t(V + D); }, B = [{ $elem: d.default("" + P("\u5220\u9664\u8868\u683C") + ""), @@ -59294,54 +59304,54 @@ var i1 = { exports: {} }; return D.selection.createRangeByElem(V), D.selection.restoreSelection(), D.cmd.do("insertHTML", _.EMPTY_P), !0; } }, { $elem: d.default("" + P("\u6DFB\u52A0\u884C") + ""), onClick: function(D, V) { - var K = b(D); - if (K) + var W = b(D); + if (W) return !0; - var G = d.default(D.selection.getSelectionStartElem()), R = $.getRowNode(G.elems[0]); - if (!R) + var G = d.default(D.selection.getSelectionStartElem()), I = R.getRowNode(G.elems[0]); + if (!I) return !0; - var z = Number($.getCurrentRowIndex(V.elems[0], R)), C = $.getTableHtml(V.elems[0]), F = $.getTableHtml(h.default.ProcessingRow(d.default(C), z).elems[0]); - return F = y(V, F), D.selection.createRangeByElem(V), D.selection.restoreSelection(), D.cmd.do("insertHTML", F), !0; - } }, { $elem: d.default("" + P("\u5220\u9664\u884C") + ""), onClick: function(D, V) { - var K = b(D); - if (K) - return !0; - var G = d.default(D.selection.getSelectionStartElem()), R = $.getRowNode(G.elems[0]); - if (!R) - return !0; - var z = Number($.getCurrentRowIndex(V.elems[0], R)), C = $.getTableHtml(V.elems[0]), F = h.default.DeleteRow(d.default(C), z).elems[0].children[0].children.length, q = ""; - return D.selection.createRangeByElem(V), D.selection.restoreSelection(), F === 0 ? q = _.EMPTY_P : q = $.getTableHtml(h.default.DeleteRow(d.default(C), z).elems[0]), q = y(V, q), D.cmd.do("insertHTML", q), !0; - } }, { $elem: d.default("" + P("\u6DFB\u52A0\u5217") + ""), onClick: function(D, V) { - var K = b(D); - if (K) - return !0; - var G = d.default(D.selection.getSelectionStartElem()), R = $.getCurrentColIndex(G.elems[0]), z = $.getTableHtml(V.elems[0]), C = $.getTableHtml(h.default.ProcessingCol(d.default(z), R).elems[0]); + var U = Number(R.getCurrentRowIndex(V.elems[0], I)), F = R.getTableHtml(V.elems[0]), C = R.getTableHtml(h.default.ProcessingRow(d.default(F), U).elems[0]); return C = y(V, C), D.selection.createRangeByElem(V), D.selection.restoreSelection(), D.cmd.do("insertHTML", C), !0; - } }, { $elem: d.default("" + P("\u5220\u9664\u5217") + ""), onClick: function(D, V) { - var K = b(D); - if (K) + } }, { $elem: d.default("" + P("\u5220\u9664\u884C") + ""), onClick: function(D, V) { + var W = b(D); + if (W) return !0; - var G = d.default(D.selection.getSelectionStartElem()), R = $.getCurrentColIndex(G.elems[0]), z = $.getTableHtml(V.elems[0]), C = h.default.DeleteCol(d.default(z), R), F = C.elems[0].children[0].children[0].children.length, q = ""; - return D.selection.createRangeByElem(V), D.selection.restoreSelection(), F === 0 ? q = _.EMPTY_P : q = $.getTableHtml(C.elems[0]), q = y(V, q), D.cmd.do("insertHTML", q), !0; - } }, { $elem: d.default("" + P("\u8BBE\u7F6E\u8868\u5934") + ""), onClick: function(D, V) { - var K = b(D); - if (K) + var G = d.default(D.selection.getSelectionStartElem()), I = R.getRowNode(G.elems[0]); + if (!I) return !0; - var G = d.default(D.selection.getSelectionStartElem()), R = $.getRowNode(G.elems[0]); - if (!R) + var U = Number(R.getCurrentRowIndex(V.elems[0], I)), F = R.getTableHtml(V.elems[0]), C = h.default.DeleteRow(d.default(F), U).elems[0].children[0].children.length, q = ""; + return D.selection.createRangeByElem(V), D.selection.restoreSelection(), C === 0 ? q = _.EMPTY_P : q = R.getTableHtml(h.default.DeleteRow(d.default(F), U).elems[0]), q = y(V, q), D.cmd.do("insertHTML", q), !0; + } }, { $elem: d.default("" + P("\u6DFB\u52A0\u5217") + ""), onClick: function(D, V) { + var W = b(D); + if (W) return !0; - var z = Number($.getCurrentRowIndex(V.elems[0], R)); - z !== 0 && (z = 0); - var C = $.getTableHtml(V.elems[0]), F = $.getTableHtml(h.default.setTheHeader(d.default(C), z, "th").elems[0]); + var G = d.default(D.selection.getSelectionStartElem()), I = R.getCurrentColIndex(G.elems[0]), U = R.getTableHtml(V.elems[0]), F = R.getTableHtml(h.default.ProcessingCol(d.default(U), I).elems[0]); return F = y(V, F), D.selection.createRangeByElem(V), D.selection.restoreSelection(), D.cmd.do("insertHTML", F), !0; + } }, { $elem: d.default("" + P("\u5220\u9664\u5217") + ""), onClick: function(D, V) { + var W = b(D); + if (W) + return !0; + var G = d.default(D.selection.getSelectionStartElem()), I = R.getCurrentColIndex(G.elems[0]), U = R.getTableHtml(V.elems[0]), F = h.default.DeleteCol(d.default(U), I), C = F.elems[0].children[0].children[0].children.length, q = ""; + return D.selection.createRangeByElem(V), D.selection.restoreSelection(), C === 0 ? q = _.EMPTY_P : q = R.getTableHtml(F.elems[0]), q = y(V, q), D.cmd.do("insertHTML", q), !0; + } }, { $elem: d.default("" + P("\u8BBE\u7F6E\u8868\u5934") + ""), onClick: function(D, V) { + var W = b(D); + if (W) + return !0; + var G = d.default(D.selection.getSelectionStartElem()), I = R.getRowNode(G.elems[0]); + if (!I) + return !0; + var U = Number(R.getCurrentRowIndex(V.elems[0], I)); + U !== 0 && (U = 0); + var F = R.getTableHtml(V.elems[0]), C = R.getTableHtml(h.default.setTheHeader(d.default(F), U, "th").elems[0]); + return C = y(V, C), D.selection.createRangeByElem(V), D.selection.restoreSelection(), D.cmd.do("insertHTML", C), !0; } }, { $elem: d.default("" + P("\u53D6\u6D88\u8868\u5934") + ""), onClick: function(D, V) { - var K = d.default(D.selection.getSelectionStartElem()), G = $.getRowNode(K.elems[0]); + var W = d.default(D.selection.getSelectionStartElem()), G = R.getRowNode(W.elems[0]); if (!G) return !0; - var R = Number($.getCurrentRowIndex(V.elems[0], G)); - R !== 0 && (R = 0); - var z = $.getTableHtml(V.elems[0]), C = $.getTableHtml(h.default.setTheHeader(d.default(z), R, "td").elems[0]); - return C = y(V, C), D.selection.createRangeByElem(V), D.selection.restoreSelection(), D.cmd.do("insertHTML", C), !0; + var I = Number(R.getCurrentRowIndex(V.elems[0], G)); + I !== 0 && (I = 0); + var U = R.getTableHtml(V.elems[0]), F = R.getTableHtml(h.default.setTheHeader(d.default(U), I, "td").elems[0]); + return F = y(V, F), D.selection.createRangeByElem(V), D.selection.restoreSelection(), D.cmd.do("insertHTML", F), !0; } }]; w = new p.default(m, k, B), w.create(); } @@ -59368,51 +59378,51 @@ var i1 = { exports: {} }; (0, s.default)(r, "__esModule", { value: !0 }); var g = n(2), _ = g.__importDefault(n(3)); function S(x, k) { - for (var $ = E(x), M = (0, u.default)(Array.prototype).apply($.children), P = M[0].children.length, B = document.createElement("tr"), T = 0; T < P; T++) { + for (var R = E(x), M = (0, u.default)(Array.prototype).apply(R.children), P = M[0].children.length, B = document.createElement("tr"), T = 0; T < P; T++) { var D = document.createElement("td"); B.appendChild(D); } - return (0, d.default)(M).call(M, k + 1, 0, B), w($, M), _.default($.parentNode); + return (0, d.default)(M).call(M, k + 1, 0, B), w(R, M), _.default(R.parentNode); } function b(x, k) { - for (var $ = E(x), M = (0, u.default)(Array.prototype).apply($.children), P = function(D) { - var V, K = []; - for ((0, p.default)(V = (0, h.default)(M[D].children)).call(V, function(z) { - K.push(z); + for (var R = E(x), M = (0, u.default)(Array.prototype).apply(R.children), P = function(D) { + var V, W = []; + for ((0, p.default)(V = (0, h.default)(M[D].children)).call(V, function(U) { + W.push(U); }); M[D].children.length !== 0; ) M[D].removeChild(M[D].children[0]); - var G = _.default(K[0]).getNodeName() !== "TH" ? document.createElement("td") : document.createElement("th"); - (0, d.default)(K).call(K, k + 1, 0, G); - for (var R = 0; R < K.length; R++) - M[D].appendChild(K[R]); + var G = _.default(W[0]).getNodeName() !== "TH" ? document.createElement("td") : document.createElement("th"); + (0, d.default)(W).call(W, k + 1, 0, G); + for (var I = 0; I < W.length; I++) + M[D].appendChild(W[I]); }, B = 0; B < M.length; B++) P(B); - return w($, M), _.default($.parentNode); + return w(R, M), _.default(R.parentNode); } function A(x, k) { - var $ = E(x), M = (0, u.default)(Array.prototype).apply($.children); - return (0, d.default)(M).call(M, k, 1), w($, M), _.default($.parentNode); + var R = E(x), M = (0, u.default)(Array.prototype).apply(R.children); + return (0, d.default)(M).call(M, k, 1), w(R, M), _.default(R.parentNode); } function y(x, k) { - for (var $ = E(x), M = (0, u.default)(Array.prototype).apply($.children), P = function(D) { - var V, K = []; - for ((0, p.default)(V = (0, h.default)(M[D].children)).call(V, function(R) { - K.push(R); + for (var R = E(x), M = (0, u.default)(Array.prototype).apply(R.children), P = function(D) { + var V, W = []; + for ((0, p.default)(V = (0, h.default)(M[D].children)).call(V, function(I) { + W.push(I); }); M[D].children.length !== 0; ) M[D].removeChild(M[D].children[0]); - (0, d.default)(K).call(K, k, 1); - for (var G = 0; G < K.length; G++) - M[D].appendChild(K[G]); + (0, d.default)(W).call(W, k, 1); + for (var G = 0; G < W.length; G++) + M[D].appendChild(W[G]); }, B = 0; B < M.length; B++) P(B); - return w($, M), _.default($.parentNode); + return w(R, M), _.default(R.parentNode); } - function m(x, k, $) { + function m(x, k, R) { for (var M = E(x), P = (0, u.default)(Array.prototype).apply(M.children), B = P[k].children, T = document.createElement("tr"), D = function(G) { - var R, z = document.createElement($), C = B[G]; - (0, p.default)(R = (0, h.default)(C.childNodes)).call(R, function(F) { - z.appendChild(F); - }), T.appendChild(z); + var I, U = document.createElement(R), F = B[G]; + (0, p.default)(I = (0, h.default)(F.childNodes)).call(I, function(C) { + U.appendChild(C); + }), T.appendChild(U); }, V = 0; V < B.length; V++) D(V); return (0, d.default)(P).call(P, k, 1, T), w(M, P), _.default(M.parentNode); @@ -59420,8 +59430,8 @@ var i1 = { exports: {} }; function w(x, k) { for (; x.children.length !== 0; ) x.removeChild(x.children[0]); - for (var $ = 0; $ < k.length; $++) - x.appendChild(k[$]); + for (var R = 0; R < k.length; R++) + x.appendChild(k[R]); } function E(x) { var k = x.elems[0].children[0]; @@ -59443,14 +59453,14 @@ var i1 = { exports: {} }; }, function(i, r, n) { var a = n(40), s = n(31), u = n(114), d = n(112), p = n(35), h = n(69), g = n(113); i.exports = function(S) { - var b = s(S), A = typeof this == "function" ? this : Array, y = arguments.length, m = y > 1 ? arguments[1] : void 0, w = m !== void 0, E = g(b), x = 0, k, $, M, P, B, T; + var b = s(S), A = typeof this == "function" ? this : Array, y = arguments.length, m = y > 1 ? arguments[1] : void 0, w = m !== void 0, E = g(b), x = 0, k, R, M, P, B, T; if (w && (m = a(m, y > 2 ? arguments[2] : void 0, 2)), E != null && !(A == Array && d(E))) - for (P = E.call(b), B = P.next, $ = new A(); !(M = B.call(P)).done; x++) - T = w ? u(P, m, [M.value, x], !0) : M.value, h($, x, T); + for (P = E.call(b), B = P.next, R = new A(); !(M = B.call(P)).done; x++) + T = w ? u(P, m, [M.value, x], !0) : M.value, h(R, x, T); else - for (k = p(b.length), $ = new A(k); k > x; x++) - T = w ? m(b[x], x) : b[x], h($, x, T); - return $.length = x, $; + for (k = p(b.length), R = new A(k); k > x; x++) + T = w ? m(b[x], x) : b[x], h(R, x, T); + return R.length = x, R; }; }, function(i, r, n) { var a = n(0), s = a(n(1)), u = a(n(4)), d = a(n(138)); @@ -59530,39 +59540,39 @@ var i1 = { exports: {} }; if (!E) return E; return E = k(E), E = x(E), E = g.replaceSpecialSymbol(E), E; - function x($) { - var M = $.match(//g); + function x(R) { + var M = R.match(//g); return M === null || (0, u.default)(M).call(M, function(P) { - $ = $.replace(P, P.replace(/<\/code>/g, ` + R = R.replace(P, P.replace(/<\/code>/g, ` `).replace(/
    /g, "")); - }), $; + }), R; } - function k($) { - var M, P = $.match(//gm); + function k(R) { + var M, P = R.match(//gm); if (!P || !P.length) - return $; + return R; for (var B = (0, u.default)(M = g.deepClone(P)).call(M, function(D) { return D = D.replace(/]+>/, ""), D.replace(/<\/span>/, ""); }), T = 0; T < P.length; T++) - $ = $.replace(P[T], B[T]); - return k($); + R = R.replace(P[T], B[T]); + return k(R); } } r.formatCodeHtml = y; var m = function(w) { d.__extends(E, w); function E(x) { - var k = this, $ = h.default('
    '); - return k = w.call(this, $, x) || this, A.default(x), k; + var k = this, R = h.default('
    '); + return k = w.call(this, R, x) || this, A.default(x), k; } return E.prototype.insertLineCode = function(x) { - var k = this.editor, $ = h.default("" + x + ""); - k.cmd.do("insertElem", $), k.selection.createRangeByElem($, !1), k.selection.restoreSelection(); + var k = this.editor, R = h.default("" + x + ""); + k.cmd.do("insertElem", R), k.selection.createRangeByElem(R, !1), k.selection.restoreSelection(); }, E.prototype.clickHandler = function() { var x = this.editor, k = x.selection.getSelectionText(); this.isActive || (x.selection.isSelectionEmpty() ? this.createPanel("", "") : this.insertLineCode(k)); }, E.prototype.createPanel = function(x, k) { - var $ = _.default(this.editor, x, k), M = new b.default(this, $); + var R = _.default(this.editor, x, k), M = new b.default(this, R); M.create(); }, E.prototype.tryChangeActive = function() { var x = this.editor; @@ -59578,15 +59588,15 @@ var i1 = { exports: {} }; var m, w = p.getRandom("input-iframe"), E = p.getRandom("select"), x = p.getRandom("btn-ok"); function k(B, T) { var D, V = g.default(b); - V && $(); - var K = (D = b.selection.getSelectionStartElem()) === null || D === void 0 ? void 0 : D.elems[0].innerHTML; - K && b.cmd.do("insertHTML", _.EMPTY_P); + V && R(); + var W = (D = b.selection.getSelectionStartElem()) === null || D === void 0 ? void 0 : D.elems[0].innerHTML; + W && b.cmd.do("insertHTML", _.EMPTY_P); var G = T.replace(//g, ">"); b.highlight && (G = b.highlight.highlightAuto(G).value), b.cmd.do("insertHTML", '
    ' + G + "
    "); - var R = b.selection.getSelectionStartElem(), z = R == null ? void 0 : R.getNodeTop(b); - (z == null ? void 0 : z.getNextSibling().elems.length) === 0 && h.default(_.EMPTY_P).insertAfter(z); + var I = b.selection.getSelectionStartElem(), U = I == null ? void 0 : I.getNodeTop(b); + (U == null ? void 0 : U.getNextSibling().elems.length) === 0 && h.default(_.EMPTY_P).insertAfter(U); } - function $() { + function R() { if (!!g.default(b)) { var B = b.selection.getSelectionStartElem(), T = B == null ? void 0 : B.getNodeTop(b); !T || (b.selection.createRangeByElem(T), b.selection.restoreSelection()); @@ -59612,9 +59622,9 @@ var i1 = { exports: {} }; `, events: [ { selector: "#" + x, type: "click", fn: function() { - var T = document.getElementById(w), D = h.default("#" + E), V = D.val(), K = T.value; - if (!!K) - return g.default(b) ? !1 : (k(V, K), !0); + var T = document.getElementById(w), D = h.default("#" + E), V = D.val(), W = T.value; + if (!!W) + return g.default(b) ? !1 : (k(V, W), !0); } } ] }] @@ -59637,10 +59647,10 @@ var i1 = { exports: {} }; function h(_) { var S; function b(y) { - var m = "menus.panelMenus.code.", w = function(k, $) { - return $ === void 0 && ($ = m), _.i18next.t($ + k); - }, E = [{ $elem: d.default("" + w("\u5220\u9664\u4EE3\u7801") + ""), onClick: function(k, $) { - return $.remove(), !0; + var m = "menus.panelMenus.code.", w = function(k, R) { + return R === void 0 && (R = m), _.i18next.t(R + k); + }, E = [{ $elem: d.default("" + w("\u5220\u9664\u4EE3\u7801") + ""), onClick: function(k, R) { + return R.remove(), !0; } }]; S = new p.default(_, y, E), S.create(); } @@ -59756,15 +59766,15 @@ var i1 = { exports: {} }; (0, u.default)(w).call(w, function(E) { var x, k = E == null ? void 0 : E.getNodeName(); if (k === "P") { - var $ = S.default(E), M = $.getTodo(), P = (x = M.children()) === null || x === void 0 ? void 0 : x.getNode(); + var R = S.default(E), M = R.getTodo(), P = (x = M.children()) === null || x === void 0 ? void 0 : x.getNode(); M.insertAfter(E), m.selection.moveCursor(P), E.remove(); } }), this.tryChangeActive(); }, y.prototype.cancelTodo = function() { var m = this.editor, w = m.selection.getSelectionRangeTopNodes(); (0, u.default)(w).call(w, function(E) { - var x, k, $, M = (k = (x = E.childNodes()) === null || x === void 0 ? void 0 : x.childNodes()) === null || k === void 0 ? void 0 : k.clone(!0), P = p.default("

    "); - P.append(M), P.insertAfter(E), ($ = P.childNodes()) === null || $ === void 0 || $.get(0).remove(), m.selection.moveCursor(P.getNode()), E.remove(); + var x, k, R, M = (k = (x = E.childNodes()) === null || x === void 0 ? void 0 : x.childNodes()) === null || k === void 0 ? void 0 : k.clone(!0), P = p.default("

    "); + P.append(M), P.insertAfter(E), (R = P.childNodes()) === null || R === void 0 || R.get(0).remove(), m.selection.moveCursor(P.getNode()), E.remove(); }); }, y; }(h.default); @@ -59795,50 +59805,50 @@ var i1 = { exports: {} }; var d = n(2), p = d.__importDefault(n(3)), h = n(98), g = d.__importDefault(n(140)), _ = n(98), S = n(7); function b(A) { function y(x) { - var k, $; + var k, R; if (h.isAllTodo(A)) { x.preventDefault(); - var M = A.selection, P = M.getSelectionRangeTopNodes()[0], B = (k = P.childNodes()) === null || k === void 0 ? void 0 : k.get(0), T = ($ = window.getSelection()) === null || $ === void 0 ? void 0 : $.anchorNode, D = M.getRange(); + var M = A.selection, P = M.getSelectionRangeTopNodes()[0], B = (k = P.childNodes()) === null || k === void 0 ? void 0 : k.get(0), T = (R = window.getSelection()) === null || R === void 0 ? void 0 : R.anchorNode, D = M.getRange(); if (!(D != null && D.collapsed)) { - var V = D == null ? void 0 : D.commonAncestorContainer.childNodes, K = D == null ? void 0 : D.startContainer, G = D == null ? void 0 : D.endContainer, R = D == null ? void 0 : D.startOffset, z = D == null ? void 0 : D.endOffset, C = 0, F = 0, q = []; - V == null || (0, u.default)(V).call(V, function(ce, Se) { - ce.contains(K) && (C = Se), ce.contains(G) && (F = Se); - }), F - C > 1 && (V == null || (0, u.default)(V).call(V, function(ce, Se) { - Se <= C || Se >= F || q.push(ce); - }), (0, u.default)(q).call(q, function(ce) { - ce.remove(); - })), _.dealTextNode(K, R), _.dealTextNode(G, z, !1), A.selection.moveCursor(G, 0); + var V = D == null ? void 0 : D.commonAncestorContainer.childNodes, W = D == null ? void 0 : D.startContainer, G = D == null ? void 0 : D.endContainer, I = D == null ? void 0 : D.startOffset, U = D == null ? void 0 : D.endOffset, F = 0, C = 0, q = []; + V == null || (0, u.default)(V).call(V, function(he, Se) { + he.contains(W) && (F = Se), he.contains(G) && (C = Se); + }), C - F > 1 && (V == null || (0, u.default)(V).call(V, function(he, Se) { + Se <= F || Se >= C || q.push(he); + }), (0, u.default)(q).call(q, function(he) { + he.remove(); + })), _.dealTextNode(W, I), _.dealTextNode(G, U, !1), A.selection.moveCursor(G, 0); } if (P.text() === "") { var Z = p.default(S.EMPTY_P); Z.insertAfter(P), M.moveCursor(Z.getNode()), P.remove(); return; } - var Y = M.getCursorPos(), J = h.getCursorNextNode(B == null ? void 0 : B.getNode(), T, Y), ve = g.default(p.default(J)), pe = ve.getInputContainer(), Te = pe.parent().getNode(), ge = ve.getTodo(), me = pe.getNode().nextSibling; - if ((B == null ? void 0 : B.text()) === "" && (B == null || B.append(p.default("
    "))), ge.insertAfter(P), !me || (me == null ? void 0 : me.textContent) === "") { - if ((me == null ? void 0 : me.nodeName) !== "BR") { + var Y = M.getCursorPos(), ue = h.getCursorNextNode(B == null ? void 0 : B.getNode(), T, Y), te = g.default(p.default(ue)), pe = te.getInputContainer(), ke = pe.parent().getNode(), ge = te.getTodo(), ve = pe.getNode().nextSibling; + if ((B == null ? void 0 : B.text()) === "" && (B == null || B.append(p.default("
    "))), ge.insertAfter(P), !ve || (ve == null ? void 0 : ve.textContent) === "") { + if ((ve == null ? void 0 : ve.nodeName) !== "BR") { var we = p.default("
    "); we.insertAfter(pe); } - M.moveCursor(Te, 1); + M.moveCursor(ke, 1); } else - M.moveCursor(Te); + M.moveCursor(ke); } } function m(x) { - var k, $; + var k, R; if (h.isAllTodo(A)) { - var M = A.selection, P = M.getSelectionRangeTopNodes()[0], B = (k = P.childNodes()) === null || k === void 0 ? void 0 : k.getNode(), T = p.default("

    "), D = T.getNode(), V = ($ = window.getSelection()) === null || $ === void 0 ? void 0 : $.anchorNode, K = M.getCursorPos(), G = V.previousSibling; + var M = A.selection, P = M.getSelectionRangeTopNodes()[0], B = (k = P.childNodes()) === null || k === void 0 ? void 0 : k.getNode(), T = p.default("

    "), D = T.getNode(), V = (R = window.getSelection()) === null || R === void 0 ? void 0 : R.anchorNode, W = M.getCursorPos(), G = V.previousSibling; if (P.text() === "") { x.preventDefault(); - var R = p.default(S.EMPTY_P); - R.insertAfter(P), P.remove(), M.moveCursor(R.getNode(), 0); + var I = p.default(S.EMPTY_P); + I.insertAfter(P), P.remove(), M.moveCursor(I.getNode(), 0); return; } - if ((G == null ? void 0 : G.nodeName) === "SPAN" && G.childNodes[0].nodeName === "INPUT" && K === 0) { - var z; - x.preventDefault(), B == null || (0, u.default)(z = B.childNodes).call(z, function(C, F) { - F !== 0 && D.appendChild(C.cloneNode(!0)); + if ((G == null ? void 0 : G.nodeName) === "SPAN" && G.childNodes[0].nodeName === "INPUT" && W === 0) { + var U; + x.preventDefault(), B == null || (0, u.default)(U = B.childNodes).call(U, function(F, C) { + C !== 0 && D.appendChild(F.cloneNode(!0)); }), T.insertAfter(P), P.remove(); } } @@ -59858,16 +59868,16 @@ var i1 = { exports: {} }; (0, s.default)(r, "__esModule", { value: !0 }), r.selectorValidator = void 0; var u = n(2), d = u.__importDefault(n(3)), p = n(6), h = n(7), g = u.__importDefault(n(130)), _ = { border: "1px solid #c9d8db", toolbarBgColor: "#FFF", toolbarBottomBorder: "1px solid #EEE" }; function S(A) { - var y = A.toolbarSelector, m = d.default(y), w = A.textSelector, E = A.config, x = E.height, k = A.i18next, $ = d.default("
    "), M = d.default("
    "), P, B, T = null; - w == null ? (B = m.children(), m.append($).append(M), $.css("background-color", _.toolbarBgColor).css("border", _.border).css("border-bottom", _.toolbarBottomBorder), M.css("border", _.border).css("border-top", "none").css("height", x + "px")) : (m.append($), T = d.default(w).children(), d.default(w).append(M), B = M.children()), P = d.default("
    "), P.attr("contenteditable", "true").css("width", "100%").css("height", "100%"); + var y = A.toolbarSelector, m = d.default(y), w = A.textSelector, E = A.config, x = E.height, k = A.i18next, R = d.default("
    "), M = d.default("
    "), P, B, T = null; + w == null ? (B = m.children(), m.append(R).append(M), R.css("background-color", _.toolbarBgColor).css("border", _.border).css("border-bottom", _.toolbarBottomBorder), M.css("border", _.border).css("border-top", "none").css("height", x + "px")) : (m.append(R), T = d.default(w).children(), d.default(w).append(M), B = M.children()), P = d.default("
    "), P.attr("contenteditable", "true").css("width", "100%").css("height", "100%"); var D, V = A.config.placeholder; - V !== g.default.placeholder ? D = d.default("
    " + V + "
    ") : D = d.default("
    " + k.t(V) + "
    "), D.addClass("placeholder"), B && B.length ? (P.append(B), D.hide()) : P.append(d.default(h.EMPTY_P)), T && T.length && (P.append(T), D.hide()), M.append(P), M.append(D), $.addClass("w-e-toolbar").css("z-index", A.zIndex.get("toolbar")), M.addClass("w-e-text-container"), M.css("z-index", A.zIndex.get()), P.addClass("w-e-text"); - var K = p.getRandom("toolbar-elem"); - $.attr("id", K); + V !== g.default.placeholder ? D = d.default("
    " + V + "
    ") : D = d.default("
    " + k.t(V) + "
    "), D.addClass("placeholder"), B && B.length ? (P.append(B), D.hide()) : P.append(d.default(h.EMPTY_P)), T && T.length && (P.append(T), D.hide()), M.append(P), M.append(D), R.addClass("w-e-toolbar").css("z-index", A.zIndex.get("toolbar")), M.addClass("w-e-text-container"), M.css("z-index", A.zIndex.get()), P.addClass("w-e-text"); + var W = p.getRandom("toolbar-elem"); + R.attr("id", W); var G = p.getRandom("text-elem"); P.attr("id", G); - var R = M.getBoundingClientRect().height, z = P.getBoundingClientRect().height; - R !== z && P.css("min-height", R + "px"), A.$toolbarElem = $, A.$textContainerElem = M, A.$textElem = P, A.toolbarElemId = K, A.textElemId = G; + var I = M.getBoundingClientRect().height, U = P.getBoundingClientRect().height; + I !== U && P.css("min-height", I + "px"), A.$toolbarElem = R, A.$textContainerElem = M, A.$textElem = P, A.toolbarElemId = W, A.textElemId = G; } r.default = S; function b(A) { @@ -59930,7 +59940,7 @@ var i1 = { exports: {} }; function _(y) { y.isFocus = !1; function m(w) { - var E = w.target, x = p.default(E), k = y.$textElem, $ = y.$toolbarElem, M = k.isContain(x), P = $.isContain(x), B = $.elems[0] == w.target; + var E = w.target, x = p.default(E), k = y.$textElem, R = y.$toolbarElem, M = k.isContain(x), P = R.isContain(x), B = R.elems[0] == w.target; if (M) y.isFocus || A(y), y.isFocus = !0; else { @@ -60244,7 +60254,7 @@ var i1 = { exports: {} }; var b = ["UL", "OL", "H1", "H2", "H3", "H4", "H5", "H6"]; function A(m) { var w = [], E = !1, x = []; - return (0, u.default)(m).call(m, function(k, $) { + return (0, u.default)(m).call(m, function(k, R) { var M = { type: h(k.type), target: k.target, attr: k.attributeName || "", value: g(k) || "", oldValue: k.oldValue || "", nodes: _(k), position: S(k) }; if (w.push(M), !!p.UA.isFirefox) { if (E && k.addedNodes.length && k.addedNodes[0].nodeType == 1) { @@ -60265,30 +60275,30 @@ var i1 = { exports: {} }; var a = n(0), s = a(n(1)), u = a(n(4)), d = a(n(94)); (0, s.default)(r, "__esModule", { value: !0 }), r.restore = r.revoke = void 0; function p(x, k) { - var $ = x.position.target; + var R = x.position.target; switch (x.position.type) { case "before": - $.nextSibling ? ($ = $.nextSibling, (0, u.default)(k).call(k, function(M) { - x.target.insertBefore(M, $); + R.nextSibling ? (R = R.nextSibling, (0, u.default)(k).call(k, function(M) { + x.target.insertBefore(M, R); })) : (0, u.default)(k).call(k, function(M) { x.target.appendChild(M); }); break; case "after": (0, u.default)(k).call(k, function(M) { - x.target.insertBefore(M, $); + x.target.insertBefore(M, R); }); break; default: (0, u.default)(k).call(k, function(M) { - $.appendChild(M); + R.appendChild(M); }); break; } } function h(x) { - for (var k = 0, $ = (0, d.default)(x.nodes); k < $.length; k++) { - var M = $[k], P = M[0], B = M[1]; + for (var k = 0, R = (0, d.default)(x.nodes); k < R.length; k++) { + var M = R[k], P = M[0], B = M[1]; switch (P) { case "add": (0, u.default)(B).call(B, function(T) { @@ -60312,14 +60322,14 @@ var i1 = { exports: {} }; var S = { node: h, text: _, attr: g }; function b(x) { for (var k = x.length - 1; k > -1; k--) { - var $ = x[k]; - S[$.type]($); + var R = x[k]; + S[R.type](R); } } r.revoke = b; function A(x) { - for (var k = 0, $ = (0, d.default)(x.nodes); k < $.length; k++) { - var M = $[k], P = M[0], B = M[1]; + for (var k = 0, R = (0, d.default)(x.nodes); k < R.length; k++) { + var M = R[k], P = M[0], B = M[1]; switch (P) { case "add": { p(x, B); @@ -60342,8 +60352,8 @@ var i1 = { exports: {} }; } var w = { node: A, text: y, attr: m }; function E(x) { - for (var k = 0, $ = x; k < $.length; k++) { - var M = $[k]; + for (var k = 0, R = x; k < R.length; k++) { + var M = R[k]; w[M.type](M); } } @@ -60606,8 +60616,8 @@ var i1 = { exports: {} }; (0, p.default)(m).call(m, function(w) { var E = w[0], x = w[1]; console.info("plugin " + E + " initializing"); - var k = x.intention, $ = x.config; - k(A, $), console.info("plugin " + E + " initialization complete"); + var k = x.intention, R = x.config; + k(A, R), console.info("plugin " + E + " initialization complete"); }); } r.default = b; @@ -60622,7 +60632,7 @@ var Sj = /* @__PURE__ */ Cj(i1.exports), Ej = "fcEditor", xj = 1, Tj = Object.as for (var r in t = arguments[i], t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]); return e; -}, kj = Ve({ +}, kj = Be({ name: Ej, props: { modelValue: String, @@ -60662,7 +60672,7 @@ var Sj = /* @__PURE__ */ Cj(i1.exports), Ej = "fcEditor", xj = 1, Tj = Object.as }, render: function() { var t = wj({}, this.$attrs); - return delete t.id, W("div", jt(t, { + return delete t.id, z("div", jt(t, { onInput: this.result, id: "editor".concat(this.uni), style: "line-height: normal;" @@ -60689,7 +60699,7 @@ var Sj = /* @__PURE__ */ Cj(i1.exports), Ej = "fcEditor", xj = 1, Tj = Object.as var k = E[x]; w.push(new s(k, S)), (k.indent || k.dedent) && (y = !0); } - var $ = { + var R = { startState: function() { return { state: "start", @@ -60725,8 +60735,8 @@ var Sj = /* @__PURE__ */ Cj(i1.exports), Ej = "fcEditor", xj = 1, Tj = Object.as }; if (A) for (var M in A) - A.hasOwnProperty(M) && ($[M] = A[M]); - return $; + A.hasOwnProperty(M) && (R[M] = A[M]); + return R; }; function r(_, S) { if (!_.hasOwnProperty(S)) @@ -60767,14 +60777,14 @@ var Sj = /* @__PURE__ */ Cj(i1.exports), Ej = "fcEditor", xj = 1, Tj = Object.as return A.local.endScan && (w = A.local.endScan.exec(b.current())) && (b.pos = b.start + w.index), m; } for (var E = _[A.state], x = 0; x < E.length; x++) { - var k = E[x], $ = (!k.data.sol || b.sol()) && b.match(k.regex); - if ($) { + var k = E[x], R = (!k.data.sol || b.sol()) && b.match(k.regex); + if (R) { k.data.next ? A.state = k.data.next : k.data.push ? ((A.stack || (A.stack = [])).push(A.state), A.state = k.data.push) : k.data.pop && A.stack && A.stack.length && (A.state = A.stack.pop()), k.data.mode && p(S, A, k.data.mode, k.token), k.data.indent && A.indent.push(b.indentation() + S.indentUnit), k.data.dedent && A.indent.pop(); var M = k.token; - if (M && M.apply && (M = M($)), $.length > 2 && k.token && typeof k.token != "string") { - for (var P = 2; P < $.length; P++) - $[P] && (A.pending || (A.pending = [])).push({ text: $[P], token: k.token[P - 1] }); - return b.backUp($[0].length - ($[1] ? $[1].length : 0)), M[0]; + if (M && M.apply && (M = M(R)), R.length > 2 && k.token && typeof k.token != "string") { + for (var P = 2; P < R.length; P++) + R[P] && (A.pending || (A.pending = [])).push({ text: R[P], token: k.token[P - 1] }); + return b.backUp(R[0].length - (R[1] ? R[1].length : 0)), M[0]; } else return M && M.join ? M[0] : M; } @@ -60863,50 +60873,50 @@ rr.defineSimpleMode("fcComputedMode", { ] }); const Ht = (e, t, i) => { - et.component(e, i || t), li.component(e, t); + tt.component(e, i || t), li.component(e, t); }; -et.component("draggable", Yo); -et.component("DragTool", Xb); -et.component("DragBox", qb); -et.component("Validate", kV); -et.component("Struct", xb); -et.component("HtmlEditor", X4); -et.component("FnEditor", sr); -et.component("ComputedConfig", Z0); -et.component("Required", DV); -et.component("TableOptions", bb); -et.component("TreeOptions", HV); -et.component("TableFormColumn", n1); -et.component("TableFormColumn2", n1); -et.component("EventConfig", q0); -et.component("FetchConfig", d5); -et.component("TableColumnConfig", b5); -et.component("TableButtonConfig", T5); -et.component("SizeInput", ea); -et.component("PatternInput", Op); -et.component("StyleConfig", Cb); -et.component("GlobalFetchConfig", yb); -et.component("GlobalFetchSelect", z5); -et.component("GlobalEventConfig", gb); -et.component("GlobalClassConfig", Sb); -et.component("GlobalClassSelect", Q5); -et.component("GlobalVariableConfig", Eb); -et.component("FetchTable", nV); -et.component("VariableConfig", ml); -et.component("ColorInput", ta); -et.component("ConfigItem", si); -et.component("ConfigTitle", mb); -et.component("FieldInput", t5); -et.component("PromptInput", r5); -et.component("ValueInput", wu); -et.component("StepFormItem", E6); -et.component("FcRow", X6); -et.component("FnConfig", M5); -et.component("FnInput", Zb); -et.component("RuleSelect", $p); -et.component("HideConfig", ej); -et.component("SpanInput", ij); -et.component("LanguageInput", zp); +tt.component("draggable", Yo); +tt.component("DragTool", Xb); +tt.component("DragBox", qb); +tt.component("Validate", kV); +tt.component("Struct", xb); +tt.component("HtmlEditor", X4); +tt.component("FnEditor", sr); +tt.component("ComputedConfig", Z0); +tt.component("Required", DV); +tt.component("TableOptions", bb); +tt.component("TreeOptions", HV); +tt.component("TableFormColumn", n1); +tt.component("TableFormColumn2", n1); +tt.component("EventConfig", q0); +tt.component("FetchConfig", d5); +tt.component("TableColumnConfig", b5); +tt.component("TableButtonConfig", T5); +tt.component("SizeInput", ea); +tt.component("PatternInput", Op); +tt.component("StyleConfig", Cb); +tt.component("GlobalFetchConfig", yb); +tt.component("GlobalFetchSelect", z5); +tt.component("GlobalEventConfig", gb); +tt.component("GlobalClassConfig", Sb); +tt.component("GlobalClassSelect", Q5); +tt.component("GlobalVariableConfig", Eb); +tt.component("FetchTable", nV); +tt.component("VariableConfig", ml); +tt.component("ColorInput", ta); +tt.component("ConfigItem", si); +tt.component("ConfigTitle", mb); +tt.component("FieldInput", t5); +tt.component("PromptInput", r5); +tt.component("ValueInput", wu); +tt.component("StepFormItem", E6); +tt.component("FcRow", X6); +tt.component("FnConfig", M5); +tt.component("FnInput", Zb); +tt.component("RuleSelect", $p); +tt.component("HideConfig", ej); +tt.component("SpanInput", ij); +tt.component("LanguageInput", zp); Ht("FcSlot", Yy, pV); Ht("FcJson", Qy, hV); Ht("DataTable", Vc); @@ -60937,7 +60947,7 @@ Ht("fcDataSelect", p0, _j); const Oj = function(e) { (Array.isArray(e) ? e : [e]).forEach((i) => { rn[i.name] = i.handle, cc[i.name] = i.example, eu.value.formula[i.name] = i.info, Fy.forEach((r) => { - r.key === i.menu && r.children.push(i.name), li.setFormula(i.name, i.handle), et.setFormula(i.name, i.handle); + r.key === i.menu && r.children.push(i.name), li.setFormula(i.name, i.handle), tt.setFormula(i.name, i.handle); }); }); }, $j = function(e) { @@ -60955,7 +60965,7 @@ const Oj = function(e) { an.install = Rj; an.makeOptionsRule = Jr; an.formCreate = li; -an.designerForm = et; +an.designerForm = tt; an.component = Ht; an.setFormula = Oj; an.setBehavior = $j; @@ -60990,7 +61000,7 @@ ww(ty, li.version) === 1 && console.error("Please use FormCreate version " + ty export { tr as copyTextToClipboard, an as default, - et as designerForm, + tt as designerForm, li as formCreate, Fn as getInjectArg, Rj as install, diff --git a/core/core-frontend/src/fcDesignerPro/index.umd.js b/core/core-frontend/src/fcDesignerPro/index.umd.js index 2cdc33e..073b203 100644 --- a/core/core-frontend/src/fcDesignerPro/index.umd.js +++ b/core/core-frontend/src/fcDesignerPro/index.umd.js @@ -9,7 +9,7 @@ rule: `+JSON.stringify(r.getRule?r.getRule():r):"")}function kb(e,t){console.error(xb("err",e,t))}const mp="[[FORM-CREATE-PREFIX-",gp="-FORM-CREATE-SUFFIX]]";function nd(e){return new Function("return "+e)()}function Vr(e,t){if(e&&dt.String(e)&&e.length>4){let r=e.trim(),o=!1;try{if(r.indexOf(gp)>0&&r.indexOf(mp)===0)r=r.replace(gp,"").replace(mp,""),o=!0;else if(r.indexOf("$FN:")===0)r=r.substring(4),o=!0;else if(r.indexOf("$EXEC:")===0)r=r.substring(6),o=!0;else if(r.indexOf("$GLOBAL:")===0){const l=r.substring(8);return r=function(...d){const c=d[0].api.getGlobalEvent(l);if(c)return c.call(this,...d)},r.__json=e,r.__inject=!0,r}else{if(r.indexOf("$FNX:")===0)return r=nd("function($inject){"+r.substring(5)+"}"),r.__json=e,r.__inject=!0,r;(!t&&r.indexOf("function ")===0&&r!=="function "||!t&&r.indexOf("function(")===0&&r!=="function(")&&(o=!0)}if(!o)return e;let i;try{i=nd(r)}catch{i=nd("function "+r)}return i.__json=e,i}catch(i){kb(`\u89E3\u6790\u5931\u8D25:${r} -err: ${i}`);return}}return e}function id(e){const t=e.replace(/(-[a-z])/g,function(r){return r.replace("-","").toLocaleUpperCase()});return Ha(t)}function Ha(e){return e.replace(e[0],e[0].toLowerCase())}const vp={name:"zh-cn",form:{field:"\u5B57\u6BB5 ID",title:"\u5B57\u6BB5\u540D\u79F0",attributeId:"\u662F\u5426\u4E3B\u952E",info:"\u63D0\u793A\u4FE1\u606F",ignore:"\u5FFD\u7565\u5B57\u6BB5",native:"\u662F\u5426\u663E\u793A\u6807\u9898",control:"\u7EC4\u4EF6\u8054\u52A8",labelShow:"\u662F\u5426\u663E\u793A",labelPosition:"\u6807\u7B7E\u7684\u4F4D\u7F6E",tableName:"\u81EA\u5B9A\u4E49\u540D\u79F0",labelStyle:"\u6807\u7B7E\u7684\u6837\u5F0F",labelSuffix:"\u6807\u7B7E\u7684\u540E\u7F00",formItem:"\u914D\u7F6E\u8868\u5355\u9879",formItemSpan:"\u7EC4\u4EF6\u5BBD\u5EA6",row:"\u6574\u884C",globalEvent:"\u5168\u5C40\u4E8B\u4EF6",globalFetch:"\u5168\u5C40\u6570\u636E\u6E90",globalClass:"\u5168\u5C40\u6837\u5F0F",globalConfig:"\u5168\u5C40\u914D\u7F6E",size:"\u8868\u5355\u7684\u5C3A\u5BF8",event:"\u8868\u5355\u4E8B\u4EF6",labelWidth:"\u6807\u7B7E\u7684\u5BBD\u5EA6",hideRequiredAsterisk:"\u9690\u85CF\u5FC5\u586B\u5B57\u6BB5\u7684\u6807\u7B7E\u65C1\u8FB9\u7684\u7EA2\u8272\u661F\u53F7",formItemMarginBottom:"\u8868\u5355\u9879\u7684\u4E0B\u8FB9\u8DDD",showMessage:"\u663E\u793A\u6821\u9A8C\u9519\u8BEF\u4FE1\u606F",inlineMessage:"\u4EE5\u884C\u5185\u5F62\u5F0F\u5C55\u793A\u6821\u9A8C\u4FE1\u606F",submitBtn:"\u662F\u5426\u663E\u793A\u8868\u5355\u63D0\u4EA4\u6309\u94AE",resetBtn:"\u662F\u5426\u663E\u793A\u8868\u5355\u91CD\u7F6E\u6309\u94AE",appendChild:"\u6DFB\u52A0\u5B50\u7EA7",formMode:"\u8868\u5355\u6A21\u5F0F",formName:"\u8868\u5355\u540D\u79F0",ignoreHiddenFields:"\u63D0\u4EA4\u8868\u5355\u65F6\u5FFD\u7565\u88AB\u9690\u85CF\u7684\u5B57\u6BB5",previewMode:"\u9605\u8BFB\u6A21\u5F0F",componentMode:"\u751F\u6210\u7EC4\u4EF6",sfcMode:"\u751F\u6210SFC",document:"\u5E2E\u52A9\u6587\u6863",controlDocument:"\u9700\u8981\u66F4\u8BE6\u7EC6\u7684\u914D\u7F6E\u65B9\u6CD5\uFF1F\u8BF7\u67E5\u770B{doc}",onSubmit:"\u8868\u5355\u63D0\u4EA4\u65F6\u89E6\u53D1",onReset:"\u8868\u5355\u91CD\u7F6E\u540E\u89E6\u53D1",onCreated:"\u8868\u5355\u7EC4\u4EF6\u521D\u59CB\u5316\u5B8C\u6BD5\u540E\u89E6\u53D1",onMounted:"\u8868\u5355\u7EC4\u4EF6\u6E32\u67D3\u5B8C\u6BD5\u540E\u89E6\u53D1",onReload:"\u8868\u5355\u6E32\u67D3\u89C4\u5219\u91CD\u8F7D\u540E\u89E6\u53D1",onChange:"\u8868\u5355\u7EC4\u4EF6\u7684\u503C\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1",beforeSubmit:"\u8868\u5355\u9A8C\u8BC1\u901A\u8FC7\u65F6\u89E6\u53D1",beforeFetch:"\u8FDC\u7A0B\u6570\u636E\u8BF7\u6C42\u53D1\u9001\u524D\u89E6\u53D1"},ai:{name:"\u667A\u80FD\u8868\u5355\u52A9\u7406",info:"\u60A8\u597D\uFF0C\u6211\u662F\u60A8\u7684\u667A\u80FD\u8868\u5355\u52A9\u624B\uFF01\u6211\u53EF\u4EE5\u5E2E\u52A9\u60A8\u5FEB\u901F\u751F\u6210\u548C\u4FEE\u6539\u8868\u5355\uFF0C\u5E2E\u52A9\u60A8\u8F7B\u677E\u9AD8\u6548\u5730\u5B8C\u6210\u8868\u5355\u8BBE\u8BA1\u3002",try:"\u4F60\u53EF\u4EE5\u8BD5\u7740\u95EE\u6211",change:"\u6362\u4E00\u6362",loading:"\u6B63\u5728\u6839\u636E\u60A8\u7684\u9700\u6C42\u5236\u4F5C\u8868\u5355\uFF0C\u8BF7\u7A0D\u5019...",fail:"\u5236\u4F5C\u8868\u5355\u65F6\u9047\u5230\u95EE\u9898\uFF0C\u8BF7\u5C1D\u8BD5\u8C03\u6574\u5185\u5BB9\u3002",success:"\u5DF2\u5904\u7406\u5B8C\u6BD5\uFF01",placeholder:"\u8BF7\u63CF\u8FF0\u60A8\u7684\u9700\u6C42"},warning:{name:"\u7EC4\u4EF6\u7684\u552F\u4E00\u6807\u8BC6\uFF0C\u7528\u4E8E\u83B7\u53D6\u548C\u4FEE\u6539\u8BE5\u7EC4\u4EF6\u7684\u914D\u7F6E\u89C4\u5219\u3002\u901A\u8FC7\u8BE5\u6807\u8BC6\u53EF\u4EE5\u7CBE\u786E\u5B9A\u4F4D\u7EC4\u4EF6\uFF0C\u5B9E\u73B0\u5BF9\u7EC4\u4EF6\u5C5E\u6027\u548C\u884C\u4E3A\u7684\u63A7\u5236\u3002",field:"\u7EC4\u4EF6\u5BF9\u5E94\u7684\u5B57\u6BB5\u540D\u7528\u4E8E\u4E0E\u7EC4\u4EF6\u7684\u6570\u636E\u8FDB\u884C\u7ED1\u5B9A\u3002\u5B57\u6BB5\u540D\u9700\u4EE5\u5B57\u6BCD\u5F00\u5934\uFF0C\u4EE5\u786E\u4FDD\u80FD\u591F\u6B63\u786E\u8BC6\u522B\u3002",formList:"\u7528\u4E8E\u7BA1\u7406\u548C\u5207\u6362\u8868\u5355\u6A21\u677F\uFF0C\u65B9\u4FBF\u5728\u4E0D\u540C\u4E1A\u52A1\u573A\u666F\u4E2D\u5FEB\u901F\u5207\u6362\u548C\u914D\u7F6E\u8868\u5355\u3002",fetch:"\u8FDC\u7A0B\u6570\u636E\u901A\u8FC7\u8FDC\u7A0B\u8BF7\u6C42\u52A0\u8F7D\u7EC4\u4EF6\u7684\u914D\u7F6E\u9879\u3002\u914D\u7F6E\u8BF7\u6C42\u53C2\u6570\u540E\uFF0C\u7EC4\u4EF6\u4F1A\u81EA\u52A8\u53D1\u8D77\u8BF7\u6C42\uFF0C\u83B7\u53D6\u8FDC\u7A0B\u6570\u636E\u5E76\u6839\u636E\u8FD4\u56DE\u7684\u7ED3\u679C\u66F4\u65B0\u7EC4\u4EF6\u3002",fetchQuery:"\u5B9A\u4E49\u8BF7\u6C42\u7684 GET \u53C2\u6570\uFF0C\u901A\u8FC7 URL \u4F20\u9012\u6570\u636E\u3002",fetchData:"\u5B9A\u4E49\u8BF7\u6C42\u7684 POST \u53C2\u6570\uFF0C\u901A\u8FC7\u8BF7\u6C42\u4F53\u4F20\u9012\u6570\u636E\u3002",fetchDataType:"\u9009\u62E9\u8BF7\u6C42\u4F53\u7684\u6570\u636E\u7C7B\u578B\uFF0C\u786E\u4FDD\u6570\u636E\u683C\u5F0F\u6B63\u786E\u3002",beforeFetch:"\u5728\u8BF7\u6C42\u53D1\u9001\u524D\uFF0C\u53EF\u901A\u8FC7\u5904\u7406\u51FD\u6570\u4FEE\u6539\u8BF7\u6C42\u53C2\u6570\uFF1B\u82E5\u9700\u7EC8\u6B62\u8BF7\u6C42\uFF0C\u76F4\u63A5\u8FD4\u56DE false \u6216\u4E00\u4E2A\u62D2\u7EDD\u7684 Promise\u3002",fetchParse:"\u8BF7\u6C42\u8FD4\u56DE\u540E\uFF0C\u53EF\u4EE5\u901A\u8FC7\u5904\u7406\u51FD\u6570\u5BF9\u8FD4\u56DE\u7684\u7ED3\u679C\u8FDB\u884C\u5904\u7406\uFF0C\u5C06\u7ED3\u679C\u8F6C\u6362\u4E3A\u7EC4\u4EF6\u6240\u9700\u7684\u6570\u636E\u548C\u7ED3\u6784\u3002",language:"\u7BA1\u7406\u9875\u9762\u7684\u591A\u8BED\u8A00\u6570\u636E\uFF0C\u5728\u7EC4\u4EF6\u4E2D\u914D\u7F6E\u4E0D\u540C\u8BED\u8A00\u7684\u6587\u672C\uFF0C\u652F\u6301\u4E00\u952E\u5207\u6362\u8BED\u8A00\u4F53\u7CFB\uFF0C\u4FBF\u4E8E\u5728\u591A\u8BED\u8A00\u73AF\u5883\u4E0B\u4F7F\u7528\u548C\u5C55\u793A\u5185\u5BB9\u3002",variable:"\u4ECE\u53D8\u91CF\u8BFB\u53D6\u914D\u7F6E\u9879\u7684\u503C\uFF0C\u652F\u6301\u901A\u8FC7\u53D8\u91CF\uFF08\u5982 Cookie\u3001localStorage\u3001\u5168\u5C40\u53D8\u91CF\u548C\u5916\u90E8\u6570\u636E\u6E90\u7B49\uFF09\u8BBE\u7F6E\u914D\u7F6E\u9879\u3002\u5F53\u5173\u8054\u7684\u53D8\u91CF\u53D8\u5316\u65F6\uFF0C\u914D\u7F6E\u9879\u4F1A\u540C\u6B65\u66F4\u65B0\u3002",variableInfo:"\u8BF7\u5728\u53D8\u91CF\u5217\u8868\u4E2D\u9009\u62E9\u53D8\u91CF\u3002\u5982\u679C\u53D8\u91CF\u7684\u503C\u662F\u5BF9\u8C61\uFF0C\u60A8\u53EF\u4EE5\u901A\u8FC7 {{variableName.attributeName}} \u683C\u5F0F\u8BBF\u95EE\u5BF9\u8C61\u4E2D\u7684\u5C5E\u6027\u503C\u3002",pageManage:"\u8BBE\u8BA1\u8868\u5355\u4E2D\u7684\u5B50\u5F39\u7A97\uFF0C\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u5F39\u7A97\u663E\u793A\uFF0C\u4FBF\u4E8E\u5728\u8868\u5355\u4E2D\u52A8\u6001\u5C55\u793A\u4FE1\u606F\u6216\u8FDB\u884C\u4EA4\u4E92\u64CD\u4F5C\u3002",globalConfig:"\u7BA1\u7406\u5168\u5C40\u4E8B\u4EF6\u3001\u6837\u5F0F\u3001\u6570\u636E\u548C\u53D8\u91CF\uFF0C\u7528\u4E8E\u5728\u4E0D\u540C\u7EC4\u4EF6\u95F4\u8FDB\u884C\u6570\u636E\u5171\u4EAB\u548C\u4E8B\u4EF6\u5904\u7406\u3002",globalClass:"\u63D0\u4F9B\u5B9A\u4E49\u5168\u5C40\u6837\u5F0F\u548C Class \u7684\u529F\u80FD\uFF0C\u7528\u6237\u53EF\u4EE5\u5728\u7EC4\u4EF6\u914D\u7F6E\u4E2D\u9009\u62E9\u5E76\u5E94\u7528\u8FD9\u4E9B\u9884\u5B9A\u4E49\u7684 Class\uFF0C\u4EE5\u5B9E\u73B0\u7EDF\u4E00\u7684\u6837\u5F0F\u7BA1\u7406\u3002",globalEvent:"\u5168\u5C40\u4E8B\u4EF6\u7528\u4E8E\u5B9A\u4E49\u7EC4\u4EF6\u4E8B\u4EF6\uFF0C\u4F9B\u7EC4\u4EF6\u8FDB\u884C\u914D\u7F6E\u548C\u9009\u62E9\uFF0C\u65B9\u4FBF\u5728\u4E0D\u540C\u7EC4\u4EF6\u4E2D\u7EDF\u4E00\u4F7F\u7528\u9884\u8BBE\u4E8B\u4EF6\uFF0C\u7B80\u5316\u4E8B\u4EF6\u7684\u7BA1\u7406\u548C\u5206\u53D1\u3002",globalFetch:"\u5168\u5C40\u6570\u636E\u6E90\u7528\u4E8E\u5B9A\u4E49\u5E38\u7528\u7684\u6570\u636E\u6E90\uFF0C\u652F\u6301\u9759\u6001\u6570\u636E\u548C\u8FDC\u7A0B\u6570\u636E\u3002\u8BE5\u6570\u636E\u6E90\u53EF\u5728\u5404\u79CD\u7EC4\u4EF6\u914D\u7F6E\u4E2D\u4F7F\u7528\uFF0C\u65B9\u4FBF\u7EDF\u4E00\u7BA1\u7406\u548C\u8C03\u7528\u6570\u636E\u3002",globalVariable:"\u5168\u5C40\u53D8\u91CF\u4E2D\u53EF\u4EE5\u5B9A\u4E49\u8BA1\u7B97\u5C5E\u6027\uFF0C\u901A\u8FC7\u8868\u5355\u6570\u636E\u548C\u5916\u90E8\u6570\u636E\u8FD4\u56DE\u7EC4\u4EF6\u6240\u9700\u7684\u6570\u636E\u3002\u5173\u8054\u6570\u636E\u53D8\u5316\u65F6\uFF0C\u8BA1\u7B97\u5C5E\u6027\u4F1A\u81EA\u52A8\u66F4\u65B0\uFF0C\u53EF\u4EE5\u5728\u7ED1\u5B9A\u53D8\u91CF\u6A21\u5757\u548C\u4E8B\u4EF6\u4E2D\u4F7F\u7528\u3002",ignore:"\u5F00\u542F\u540E\uFF0C\u8868\u5355\u63D0\u4EA4\u65F6\u4F1A\u81EA\u52A8\u6392\u9664\u8BE5\u7EC4\u4EF6\u7684\u5B57\u6BB5\uFF0C\u4E0D\u4F1A\u5C06\u5176\u5305\u542B\u5728\u63D0\u4EA4\u7684\u6570\u636E\u4E2D\u3002",ignoreHiddenFields:"\u5F00\u542F\u540E\uFF0C\u8868\u5355\u63D0\u4EA4\u65F6\u4F1A\u81EA\u52A8\u8FC7\u6EE4\u6389\u88AB\u9690\u85CF\u7684\u7EC4\u4EF6\u5B57\u6BB5\uFF0C\u786E\u4FDD\u4EC5\u63D0\u4EA4\u53EF\u89C1\u7684\u5B57\u6BB5\u6570\u636E\u3002",behaviorIgnoreError:"\u5982\u679C\u52A8\u4F5C\u6267\u884C\u8FC7\u7A0B\u4E2D\u53D1\u751F\u9519\u8BEF\uFF0C\u662F\u5426\u7EE7\u7EED\u6267\u884C\u540E\u7EED\u7684\u52A8\u4F5C\u3002",behaviorExpression:"\u5F53\u6761\u4EF6\u8FBE\u6210\u65F6\uFF0C\u52A8\u4F5C\u624D\u4F1A\u88AB\u6267\u884C\u3002",behaviorStopPropagation:"\u5F53\u6761\u4EF6\u8FBE\u6210\u65F6\uFF0C\u4F1A\u963B\u6B62\u540E\u7EED\u52A8\u4F5C\u7684\u6267\u884C\u3002",computedCondition:"\u901A\u8FC7\u5B9A\u4E49\u6761\u4EF6\uFF0C\u7EC4\u4EF6\u7684\u72B6\u6001\u548C\u6570\u636E\u503C\u4F1A\u6839\u636E\u6761\u4EF6\u662F\u5426\u6210\u7ACB\u81EA\u52A8\u8C03\u6574\u3002",computedFormula:"\u901A\u8FC7\u516C\u5F0F\u548C\u8868\u5355\u6570\u636E\uFF0C\u52A8\u6001\u8BA1\u7B97\u7EC4\u4EF6\u7684\u72B6\u6001\u548C\u6570\u636E\u503C\u3002"},computed:{value:{title:"\u6570\u636E\u8054\u52A8",btn:"\u8BBE\u7F6E\u6570\u636E\u8054\u52A8",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u503C"},hidden:{title:"\u9690\u85CF\u6761\u4EF6",btn:"\u8BBE\u7F6E\u9690\u85CF\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u9690\u85CF\u6761\u4EF6"},required:{title:"\u5FC5\u586B\u6761\u4EF6",btn:"\u8BBE\u7F6E\u5FC5\u586B\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u5FC5\u586B\u6761\u4EF6"},disabled:{title:"\u7981\u7528\u6761\u4EF6",btn:"\u8BBE\u7F6E\u7981\u7528\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u7981\u7528\u6761\u4EF6"},formulas:{"==":"\u7B49\u4E8E","!=":"\u4E0D\u7B49\u4E8E",on:"\u5305\u542B",notOn:"\u4E0D\u5305\u542B",empty:"\u4E3A\u7A7A",notEmpty:"\u4E0D\u4E3A\u7A7A",pattern:"\u6B63\u5219\u8868\u8FBE\u5F0F",">":"\u5927\u4E8E",">=":"\u5927\u4E8E\u7B49\u4E8E","<":"\u5C0F\u4E8E","<=":"\u5C0F\u4E8E\u7B49\u4E8E"},variable:{attr:"\u5C5E\u6027\u5217\u8868",bind:"\u7ED1\u5B9A\u53D8\u91CF",list:"\u53D8\u91CF\u5217\u8868",btn:"\u8BBE\u7F6E\u53D8\u91CF",title:"\u5168\u5C40\u53D8\u91CF",create:"\u521B\u5EFA\u53D8\u91CF",placeholder:"\u8BF7\u8F93\u5165\u53D8\u91CF\u7684\u63CF\u8FF0\u4FE1\u606F"},linkage:{trigger:"\u89E6\u53D1\u4EE5\u4E0B\u8054\u52A8",info:["\u5F53\u524D\u7EC4\u4EF6\u8054\u52A8\u663E\u793A","\u7684\u503C"]},name:"\u8BA1\u7B97\u516C\u5F0F",setting:"\u8BBE\u7F6E\u6761\u4EF6",invert:"\u6761\u4EF6\u6210\u7ACB\u540E\u7EC4\u4EF6\u72B6\u6001",condition:"\u903B\u8F91\u6761\u4EF6",addCondition:"\u6DFB\u52A0\u6761\u4EF6",addGroup:"\u6DFB\u52A0\u6761\u4EF6\u7EC4",form:"\u5F53\u524D\u8868\u5355",subform:"\u5B50\u8868\u5355",formula:"\u51FD\u6570\u516C\u5F0F",formulaInfo:"\u51FD\u6570\u8BF4\u660E",formulaExample:"\u51FD\u6570\u793A\u4F8B",fieldUsed:"\u3010{label}\u3011\u5728\u8BA1\u7B97\u516C\u5F0F\u4E2D\u88AB\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u5BF9\u5E94\u516C\u5F0F",fieldExist:"\u3010{label}\u3011\u5B57\u6BB5\u5DF2\u5B58\u5728",fieldEmpty:"\u5B57\u6BB5\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",fieldChar:"\u5B57\u6BB5\u540D\u79F0\u5FC5\u987B\u4EE5\u5B57\u6BCD\u5F00\u5934"},validate:{type:"\u5B57\u6BB5\u7C7B\u578B",typePlaceholder:"\u8BF7\u9009\u62E9",trigger:"\u89E6\u53D1\u65B9\u5F0F",mode:"\u9A8C\u8BC1\u65B9\u5F0F",modes:{required:"\u5FC5\u586B",notRequired:"\u975E\u5FC5\u586B",pattern:"\u6B63\u5219\u8868\u8FBE\u5F0F",validator:"\u81EA\u5B9A\u4E49\u9A8C\u8BC1",min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",len:"\u957F\u5EA6"},types:{string:"\u6587\u672C",boolean:"\u5E03\u5C14",array:"\u591A\u9009",number:"\u6570\u5B57",integer:"\u6574\u6570",float:"\u5C0F\u6570",object:"\u5408\u96C6",date:"\u65E5\u671F",url:"URL\u94FE\u63A5",email:"\u90AE\u7BB1\u5730\u5740"},message:"\u9519\u8BEF\u4FE1\u606F",auto:"\u81EA\u52A8\u83B7\u53D6",autoRequired:"\u8BF7\u8F93\u5165{title}",autoMode:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684{title}",requiredPlaceholder:"\u8BF7\u8F93\u5165\u63D0\u793A\u8BED",required:"\u662F\u5426\u5FC5\u586B",rule:"\u9A8C\u8BC1\u89C4\u5219"},tableOptions:{handle:"\u64CD\u4F5C",add:"\u6DFB\u52A0",empty1:"\u70B9\u51FB\u53F3\u4E0B\u89D2",empty2:"\u6309\u94AE\u6DFB\u52A0\u4E00\u5217",rmCol:"\u5220\u9664\u5F53\u524D\u5217",rmRow:"\u5220\u9664\u5F53\u524D\u884C",splitRow:"\u62C6\u5206\u6210\u884C",splitCol:"\u62C6\u5206\u6210\u5217",mergeBottom:"\u5411\u4E0B\u5408\u5E76",mergeRight:"\u5411\u53F3\u5408\u5E76",addTop:"\u6DFB\u52A0\u4E0A\u5217",addBottom:"\u6DFB\u52A0\u4E0B\u5217",addLeft:"\u6DFB\u52A0\u5DE6\u5217",addRight:"\u6DFB\u52A0\u53F3\u5217",keyValue:"\u952E\u503C\u5BF9"},struct:{title:"\u7F16\u8F91\u6570\u636E",only:"\u3010{label}\u3011\u53EA\u5141\u8BB8\u6DFB\u52A0\u4E00\u4E2A",errorMsg:"\u8F93\u5165\u7684\u5185\u5BB9\u8BED\u6CD5\u9519\u8BEF",configured:"\u5DF2\u914D\u7F6E",configuredData:"\u5DF2\u914D\u7F6E {num} \u4E2A\u6570\u636E\u6E90",configuredEvent:"\u5DF2\u914D\u7F6E {num} \u4E2A\u4E8B\u4EF6"},class:{title:"\u8BBE\u7F6E\u6837\u5F0F",create:"\u521B\u5EFA\u6837\u5F0F",placeholder:"\u8BF7\u8F93\u5165\u6837\u5F0F\u7684\u63CF\u8FF0\u4FE1\u606F",saveMsg:"\u8BF7\u5148\u4FDD\u5B58\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u6837\u5F0F",configured:"\u5DF2\u914D\u7F6E {num} \u4E2A\u6837\u5F0F"},event:{title:"\u8BBE\u7F6E\u4E8B\u4EF6",create:"\u521B\u5EFA\u4E8B\u4EF6",list:"\u4E8B\u4EF6\u5217\u8868",placeholder:"\u8BF7\u8F93\u5165\u4E8B\u4EF6\u7684\u540D\u79F0",saveMsg:"\u8BF7\u5148\u4FDD\u5B58\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u4E8B\u4EF6",type:"\u7C7B\u578B",info:"\u8BF4\u660E",action:"\u7F16\u8F91\u884C\u4E3A",inject:{api:"\u5F53\u524D\u8868\u5355\u7684api",rule:"\u5F53\u524D\u8868\u5355\u7684\u751F\u6210\u89C4\u5219",self:"\u7EC4\u4EF6\u7684\u751F\u6210\u89C4\u5219",option:"\u8868\u5355\u7684\u914D\u7F6E",args:"\u4E8B\u4EF6\u7684\u539F\u59CB\u53C2\u6570"}},eventInfo:{blur:"\u5931\u53BB\u7126\u70B9\u65F6\u89E6\u53D1",focus:"\u83B7\u5F97\u7126\u70B9\u65F6\u89E6\u53D1",change:"\u5F53\u7ED1\u5B9A\u503C\u53D8\u5316\u65F6\u89E6\u53D1",input:"\u5728\u503C\u6539\u53D8\u65F6\u89E6\u53D1",clear:"\u5728\u70B9\u51FB\u6E05\u7A7A\u6309\u94AE\u65F6\u89E6\u53D1",close:"\u5173\u95ED\u7EC4\u4EF6\u65F6\u89E6\u53D1",click:"\u70B9\u51FB\u7EC4\u4EF6\u65F6\u89E6\u53D1",add:"\u589E\u52A0\u65F6\u89E6\u53D1",delete:"\u5220\u9664\u65F6\u89E6\u53D1",remove:"\u5220\u9664\u65F6\u89E6\u53D1",visibleChange:"\u4E0B\u62C9\u6846\u51FA\u73B0/\u9690\u85CF\u65F6\u89E6\u53D1",calendarChange:"\u5728\u65E5\u5386\u6240\u9009\u65E5\u671F\u66F4\u6539\u65F6\u89E6\u53D1",panelChange:"\u5F53\u65E5\u671F\u9762\u677F\u6539\u53D8\u65F6\u89E6\u53D1",open:"\u6253\u5F00\u7684\u56DE\u8C03",opened:"\u6253\u5F00\u52A8\u753B\u7ED3\u675F\u65F6\u7684\u56DE\u8C03",closed:"\u5173\u95ED\u52A8\u753B\u7ED3\u675F\u65F6\u7684\u56DE\u8C03",openAutoFocus:"\u8F93\u5165\u7126\u70B9\u805A\u7126\u5728\u5185\u5BB9\u65F6\u7684\u56DE\u8C03",closeAutoFocus:"\u8F93\u5165\u7126\u70B9\u4ECE\u5185\u5BB9\u5931\u7126\u65F6\u7684\u56DE\u8C03",submit:"\u8868\u5355\u63D0\u4EA4\u65F6\u89E6\u53D1",confirm:"\u70B9\u51FB\u786E\u8BA4\u6309\u94AE\u65F6\u89E6\u53D1",validateFail:"\u8868\u5355\u9A8C\u8BC1\u5931\u8D25\u65F6\u89E6\u53D1",beforeLoad:"\u521D\u59CB\u5316\u4E4B\u524D\u89E6\u53D1",loaded:"\u521D\u59CB\u5316\u5B8C\u6210\u4E4B\u540E\u89E6\u53D1",hook_load:"\u7EC4\u4EF6\u89C4\u5219\u52A0\u8F7D\u540E\u89E6\u53D1",hook_mounted:"\u7EC4\u4EF6\u6302\u8F7D\u540E\u89E6\u53D1",hook_deleted:"\u7EC4\u4EF6\u89C4\u5219\u88AB\u79FB\u9664\u540E\u89E6\u53D1",hook_watch:"\u7EC4\u4EF6\u89C4\u5219\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1",hook_value:"\u7EC4\u4EF6\u7684\u503C\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1",hook_hidden:"\u7EC4\u4EF6\u663E\u793A\u72B6\u6001\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1"},fetch:{info:"\u5B9A\u4E49\u8BF7\u6C42\u65F6\uFF0C\u652F\u6301\u901A\u8FC7\u53CC\u5927\u62EC\u53F7\u8BED\u6CD5\uFF08\u5982 {{token}}\uFF09\u4F7F\u7528\u53D8\u91CF\u3002\u5728\u63A5\u53E3\u8BF7\u6C42\u65F6\u4F1A\u81EA\u52A8\u8BFB\u53D6\u8FD9\u4E9B\u53D8\u91CF\u3002\u5982\u679C\u53D8\u91CF\u7684\u503C\u662F\u5BF9\u8C61\uFF0C\u53EF\u4EE5\u901A\u8FC7 {{variableName.attributeName}} \u8BBF\u95EE\u5BF9\u8C61\u7684\u5C5E\u6027\u503C\u3002",title:"\u8BBE\u7F6E\u6570\u636E\u6E90",create:"\u521B\u5EFA\u6570\u636E\u6E90",config:"\u8BF7\u6C42\u914D\u7F6E",action:"\u8BF7\u6C42\u94FE\u63A5",actionRequired:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5",placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u6E90\u7684\u63CF\u8FF0\u4FE1\u606F",method:"\u8BF7\u6C42\u65B9\u5F0F",data:"\u9644\u5E26\u6570\u636E",dataType:"\u6570\u636E\u7C7B\u578B",headers:"\u8BF7\u6C42\u5934\u90E8",query:"\u8BF7\u6C42\u53C2\u6570",parse:"\u6570\u636E\u5904\u7406",response:"\u63A5\u53E3\u8FD4\u56DE\u7684\u6570\u636E",onError:"\u9519\u8BEF\u5904\u7406",beforeFetch:"\u524D\u7F6E\u5904\u7406",remote:"\u8FDC\u7A0B\u6570\u636E",static:"\u9759\u6001\u6570\u636E",optionsType:{fetch:"\u8FDC\u7A0B\u6570\u636E",global:"\u5168\u5C40\u6570\u636E\u6E90",struct:"\u9759\u6001\u6570\u636E"}},style:{width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6",minWidth:"\u6700\u5C0F\u5BBD",minHeight:"\u6700\u5C0F\u9AD8",maxWidth:"\u6700\u5927\u5BBD",maxHeight:"\u6700\u5927\u9AD8",color:"\u989C\u8272",backgroundColor:"\u80CC\u666F\u8272",margin:"\u5916\u8FB9\u8DDD",padding:"\u5185\u8FB9\u8DDD",borderRadius:"\u5706\u89D2",border:"\u8FB9\u6846",solid:"\u5B9E\u7EBF",dashed:"\u865A\u7EBF",dotted:"\u70B9\u72B6\u865A\u7EBF",double:"\u53CC\u5B9E\u7EBF",opacity:"\u900F\u660E\u5EA6",scale:"\u7F29\u653E",overflow:{name:"\u6EA2\u51FA",visible:"\u53EF\u89C1",hidden:"\u9690\u85CF",scroll:"\u6EDA\u52A8",auto:"\u6EA2\u51FA\u540E\u81EA\u52A8\u6EDA\u52A8"},shadow:{name:"\u9634\u5F71",x:"x\u8F74\u504F\u79FB\u91CF",y:"y\u8F74\u504F\u79FB\u91CF",vague:"\u6A21\u7CCA\u534A\u5F84",extend:"\u6269\u6563\u534A\u5F84",inset:"\u5411\u5185",external:"\u5411\u5916",mode:"\u6A21\u5F0F",classic:"\u7ECF\u5178",flat:"\u6241\u5E73",solid:"\u7ACB\u4F53"},display:{name:"\u5E03\u5C40",block:"\u533A\u5757","inline-block":"\u884C\u5185\u533A\u5757",inline:"\u884C\u5185\u6587\u672C",flex:"\u5F39\u6027\u76D2\u5B50"},flexDirection:{name:"\u4E3B\u8F74\u7684\u65B9\u5411",row:"\u4E3B\u8F74\u4E3A\u6C34\u5E73\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u5DE6\u7AEF","row-reverse":"\u4E3B\u8F74\u4E3A\u6C34\u5E73\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u53F3\u7AEF",column:"\u4E3B\u8F74\u4E3A\u5782\u76F4\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u4E0A\u6CBF","column-reverse":"\u4E3B\u8F74\u4E3A\u5782\u76F4\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u4E0B\u6CBF"},flexWrap:{name:"\u662F\u5426\u6362\u884C",nowrap:"\u4E0D\u6362\u884C",wrap:"\u6362\u884C"},justifyContent:{name:"\u4E3B\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u5DE6\u5BF9\u9F50","flex-end":"\u53F3\u5BF9\u9F50",center:"\u5C45\u4E2D","space-between":"\u4E24\u7AEF\u5BF9\u9F50","space-around":"\u5B50\u5143\u7D20\u4E24\u4FA7\u7684\u95F4\u9694\u76F8\u7B49","space-evenly":"\u5B50\u5143\u7D20\u5E73\u5747\u5206\u5E03\u5728\u4E3B\u8F74\u4E0A"},alignItems:{name:"\u5B50\u5143\u7D20\u4EA4\u53C9\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u4EA4\u53C9\u8F74\u7684\u8D77\u70B9\u5BF9\u9F50","flex-end":"\u4EA4\u53C9\u8F74\u7684\u7EC8\u70B9\u5BF9\u9F50",center:"\u4EA4\u53C9\u8F74\u7684\u4E2D\u70B9\u5BF9\u9F50",baseline:"\u6CBF\u7B2C\u4E00\u884C\u6587\u5B57\u7684\u57FA\u7EBF\u5BF9\u9F50",stretch:"\u6EE1\u6574\u4E2A\u5BB9\u5668\u7684\u9AD8\u5EA6"},alignContent:{name:"\u591A\u884C\u5B50\u5143\u7D20\u5728\u4EA4\u53C9\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u4E0E\u4EA4\u53C9\u8F74\u7684\u8D77\u70B9\u5BF9\u9F50","flex-end":"\u4E0E\u4EA4\u53C9\u8F74\u7684\u7EC8\u70B9\u5BF9\u9F50",center:"\u4E0E\u4EA4\u53C9\u8F74\u7684\u4E2D\u70B9\u5BF9\u9F50","space-between":"\u4E0E\u4EA4\u53C9\u8F74\u4E24\u7AEF\u5BF9\u9F50","space-around":"\u591A\u884C\u5B50\u5143\u7D20\u5E73\u5747\u5206\u5E03\u5728\u4EA4\u53C9\u8F74",stretch:"\u8F74\u7EBF\u5360\u6EE1\u6574\u4E2A\u4EA4\u53C9\u8F74"},font:{name:"\u5B57\u4F53",size:"\u5927\u5C0F",align:"\u5BF9\u9F50\u65B9\u5F0F",height:"\u884C\u9AD8",spacing:"\u5B57\u95F4\u8DDD",preview:"\u6837\u5F0F\u9884\u89C8"},decoration:{name:"\u4FEE\u9970",underline:"\u4E0B\u5212\u7EBF","line-through":"\u5220\u9664\u7EBF",overline:"\u4E0A\u5212\u7EBF"},weight:{name:"\u7C97\u7EC6",300:"\u7EC6\u4F53",400:"\u5E38\u89C4\u4F53",500:"\u4E2D\u9ED1\u4F53",700:"\u4E2D\u7C97\u4F53"}},designer:{component:"\u7EC4\u4EF6\u914D\u7F6E",id:"\u552F\u4E00\u503C",name:"\u7F16\u53F7",type:"\u7EC4\u4EF6\u7C7B\u578B",form:"\u8868\u5355\u914D\u7F6E",json:"\u6E32\u67D3\u89C4\u5219",style:"\u6837\u5F0F\u914D\u7F6E",rule:"\u57FA\u7840\u914D\u7F6E",advanced:"\u9AD8\u7EA7\u914D\u7F6E",props:"\u5C5E\u6027\u914D\u7F6E",slots:"\u63D2\u69FD\u914D\u7F6E",customProps:"\u81EA\u5B9A\u4E49\u5C5E\u6027\u914D\u7F6E",validate:"\u9A8C\u8BC1\u914D\u7F6E",event:"\u4E8B\u4EF6\u914D\u7F6E",clearWarn:"\u6E05\u7A7A\u540E\u5C06\u4E0D\u80FD\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u6E05\u7A7A\u5417\uFF1F",childEmpty:"\u70B9\u51FB\u53F3\u4E0B\u89D2 \\e789 \u6309\u94AE\u6DFB\u52A0\u4E00\u5217",dragEmpty:"\u62D6\u62FD\u5DE6\u4FA7\u5217\u8868\u4E2D\u7684\u7EC4\u4EF6\u5230\u6B64\u5904",unload:"\u786E\u5B9A\u79BB\u5F00\u5F53\u524D\u9875\u9762\u5417?",sublist:"\u5B50\u8282\u70B9\u5217\u8868",formList:"\u8868\u5355\u5217\u8868",comList:"\u7EC4\u4EF6\u5217\u8868",addPage:"\u6DFB\u52A0\u6A21\u5757",pageManage:"\u6A21\u5757\u7BA1\u7406",gridLine:"\u8F85\u52A9\u7EBF",main:"\u4E3B\u4F53",layout:"\u5FEB\u901F\u5E03\u5C40",col1:"\u4E00\u5217",col2:"\u4E24\u5217",col3:"\u4E09\u5217",col4:"\u56DB\u5217",print:{title:"\u6253\u5370\u8868\u5355",config:"\u8BBE\u7F6E\u6253\u5370",left:"\u5DE6\u8FB9\u8DDD",right:"\u53F3\u8FB9\u8DDD",top:"\u4E0A\u8FB9\u8DDD",bottom:"\u4E0B\u8FB9\u8DDD",defaultStyle:"\u9ED8\u8BA4\u6837\u5F0F",wordStyle:"\u6587\u6863\u6837\u5F0F",export:"\u5BFC\u51FA PDF"}},menu:{template:"\u6A21\u677F",main:"\u57FA\u7840\u7EC4\u4EF6",aide:"\u8F85\u52A9\u7EC4\u4EF6",layout:"\u5E03\u5C40\u7EC4\u4EF6",component:"\u7EC4\u4EF6",subform:"\u5B50\u8868\u5355\u7EC4\u4EF6",container:"\u5BB9\u5668\u7EC4\u4EF6",chart:"\u56FE\u8868\u7EC4\u4EF6",tree:"\u5927\u7EB2"},formula:{math:"\u6570\u5B57\u5904\u7406",string:"\u6587\u672C\u5904\u7406",date:"\u65F6\u95F4\u5904\u7406",collection:"\u5408\u96C6\u5904\u7406",condition:"\u903B\u8F91\u5904\u7406",ADD:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u52A0\u7684\u503C",SUB:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u51CF\u7684\u503C",MUL:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u4E58\u7684\u503C",DIV:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u9664\u7684\u503C",SUM:"\u83B7\u53D6\u5408\u96C6\u4E2D\u6570\u503C\u7684\u603B\u548C",MAX:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u4E2D\u7684\u6700\u5927\u503C",MIN:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u4E2D\u7684\u6700\u5C0F\u503C",ABS:"\u83B7\u53D6\u6570\u5B57\u7684\u7EDD\u5BF9\u503C",AVG:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u7684\u5E73\u5747\u503C",POWER:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u7684\u4E58\u5E42",RAND:"\u83B7\u53D6\u4E00\u4E2A\u5927\u4E8E\u7B49\u4E8E0\u4E14\u5C0F\u4E8E1\u7684\u968F\u673A\u6570",PI:"\u83B7\u53D6\u5706\u5468\u7387",ROUND:"\u5C06\u4E00\u4E2A\u5C0F\u6570\u56DB\u820D\u4E94\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6570",SQRT:"\u83B7\u53D6\u4E00\u4E2A\u6570\u5B57\u7684\u6B63\u5E73\u65B9\u6839",NOW:"\u83B7\u53D6\u5F53\u524D\u7684\u65F6\u95F4",TODAY:"\u83B7\u53D6\u4ECA\u5929\u7684\u65E5\u671F",YEAR:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5E74\u4EFD",MONTH:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u6708\u4EFD",DAY:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5929\u6570",HOUR:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5C0F\u65F6\u6570",MINUTE:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5206\u949F\u6570",SECOND:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u79D2\u6570",DIFFDAYS:"\u83B7\u53D6\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u5929\u6570",DIFFHOURS:"\u83B7\u53D6\u4E24\u4E2A\u65F6\u95F4\u4E4B\u95F4\u7684\u5C0F\u65F6\u6570,\u4FDD\u7559\u4E24\u4F4D\u5C0F\u6570",DIFFMINUTES:"\u83B7\u53D6\u4E24\u4E2A\u65F6\u95F4\u4E4B\u95F4\u7684\u5206\u949F\u6570",ADDYEAR:"\u589E\u52A0\u6307\u5B9A\u65E5\u671F\u7684\u5E74\u4EFD",ADDMONTH:"\u589E\u52A0\u6307\u5B9A\u65E5\u671F\u7684\u6708\u4EFD",ADDDAY:"\u589E\u52A0\u6307\u5B9A\u65E5\u671F\u7684\u5929\u6570",ADDWEEK:"\u589E\u52A0\u6307\u5B9A\u65E5\u671F\u7684\u5468\u6570",ADDHOUR:"\u589E\u52A0\u6307\u5B9A\u65F6\u95F4\u7684\u5C0F\u65F6\u6570",ADDMINUTE:"\u589E\u52A0\u6307\u5B9A\u65F6\u95F4\u7684\u5206\u949F\u6570",ADDSECOND:"\u589E\u52A0\u6307\u5B9A\u65F6\u95F4\u7684\u79D2\u6570",SUBYEAR:"\u51CF\u5C11\u6307\u5B9A\u65E5\u671F\u7684\u5E74\u4EFD",SUBMONTH:"\u51CF\u5C11\u6307\u5B9A\u65E5\u671F\u7684\u6708\u4EFD",SUBDAY:"\u51CF\u5C11\u6307\u5B9A\u65E5\u671F\u7684\u5929\u6570",SUBWEEK:"\u51CF\u5C11\u6307\u5B9A\u65E5\u671F\u7684\u5468\u6570",SUBHOUR:"\u51CF\u5C11\u6307\u5B9A\u65F6\u95F4\u7684\u5C0F\u65F6\u6570",SUBMINUTE:"\u51CF\u5C11\u6307\u5B9A\u65F6\u95F4\u7684\u5206\u949F\u6570",SUBSECOND:"\u51CF\u5C11\u6307\u5B9A\u65F6\u95F4\u7684\u79D2\u6570",TIMESTAMP:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u65F6\u95F4\u6233",STARTSWITH:"\u68C0\u67E5\u5B57\u7B26\u4E32\u662F\u5426\u4EE5\u6307\u5B9A\u5B57\u7B26\u4E32\u5F00\u5934",EMPTY:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E3A\u7A7A",NOTEMPTY:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E0D\u4E3A\u7A7A",LEN:"\u83B7\u53D6\u6307\u5B9A\u5408\u96C6\u7684\u957F\u5EA6",MOD:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u7684\u4F59\u6570",FLOOR:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u5411\u4E0B\u53D6\u6574\u7684\u503C",CEIL:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u5411\u4E0A\u53D6\u6574\u7684\u503C",FIXED:"\u5C06\u4E00\u4E2A\u5C0F\u6570\u4FDD\u7559\u6307\u5B9A\u4F4D\u6570\u7684\u5C0F\u6570",ISNUMBER:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E3A\u6570\u5B57",TONUMBER:"\u5C06\u53C2\u6570\u8F6C\u6362\u4E3A\u6570\u5B57",SLICELEFT:"\u83B7\u53D6\u4E00\u4E2A\u5B57\u7B26\u4E32\u4ECE\u5F00\u5934\u5F00\u59CB\u6307\u5B9A\u957F\u5EA6\u7684\u5B57\u7B26\u4E32",SLICERIGHT:"\u83B7\u53D6\u4E00\u4E2A\u5B57\u7B26\u4E32\u4ECE\u7ED3\u5C3E\u5F00\u59CB\u6307\u5B9A\u957F\u5EA6\u7684\u5B57\u7B26\u4E32",TOLOWER:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u6240\u6709\u5927\u5199\u5B57\u6BCD\u8F6C\u6362\u4E3A\u5C0F\u5199\u5B57\u6BCD",TOUPPER:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u6240\u6709\u5C0F\u5199\u5B57\u6BCD\u8F6C\u6362\u4E3A\u5927\u5199\u5B57\u6BCD",INCLUDES:"\u68C0\u67E5\u5B57\u7B26\u4E32\u4E2D\u662F\u5426\u5305\u542B\u6307\u5B9A\u5B57\u7B26\u4E32",REPLACE:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u7684\u90E8\u5206\u6587\u672C\u66FF\u6362\u4E3A\u4E0D\u540C\u7684\u6587\u672C,\u53EA\u66FF\u6362\u5339\u914D\u5230\u7684\u7B2C\u4E00\u4E2A",REPLACEALL:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u7684\u90E8\u5206\u6587\u672C\u66FF\u6362\u4E3A\u4E0D\u540C\u7684\u6587\u672C,\u66FF\u6362\u6240\u6709\u5339\u914D\u5230\u7684",TRIM:"\u5C06\u5B57\u7B26\u4E32\u524D\u540E\u7684\u7A7A\u683C\u5220\u9664",TOCHINSESAMOUNT:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u7684\u4E2D\u6587\u5927\u5199\u91D1\u989D",UNION:"\u5C06\u5408\u96C6/\u53C2\u6570\u4E2D\u7684\u503C\u53BB\u91CD,\u8FD4\u56DE\u53BB\u91CD\u540E\u7684\u5408\u96C6",INTERSECTIONSET:"\u83B7\u53D6\u4E24\u4E2A\u96C6\u5408\u7684\u4EA4\u96C6",LIST:"\u83B7\u53D6\u6240\u6709\u53C2\u6570\u7EC4\u6210\u7684\u96C6\u5408",AND:'\u5C06\u8868\u8FBE\u5F0F\u7528"\u5E76\u4E14"\u94FE\u63A5,\u5F53\u6240\u6709\u8868\u8FBE\u5F0F\u5747\u4E3Atrue\u65F6\u8FD4\u56DEtrue\uFF0C\u5426\u5219\u8FD4\u56DEfalse',OR:'\u5C06\u8868\u8FBE\u5F0F\u7528"\u6216"\u94FE\u63A5,\u5F53\u6709\u4E00\u4E2A\u8868\u8FBE\u5F0F\u4E3Atrue\u65F6\u8FD4\u56DEtrue\uFF0C\u5426\u5219\u8FD4\u56DEfalse',IF:"\u68C0\u67E5\u4E00\u4E2A\u6761\u4EF6\u80FD\u5426\u6EE1\u8DB3,\u5982\u679C\u6EE1\u8DB3\u8FD4\u56DE\u7B2C\u4E8C\u4E2A\u53C2\u6570\uFF0C\u5426\u5219\u8FD4\u56DE\u7B2C\u4E09\u4E2A\u53C2\u6570",IN:"\u68C0\u67E5\u7B2C\u4E8C\u4E2A\u53C2\u6570\u662F\u5426\u5728\u5408\u96C6\u4E2D",DEFAULT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u53C2\u6570,\u5982\u679C\u4E3A\u7A7A\u8FD4\u56DE\u7B2C\u4E8C\u4E2A\u53C2\u6570,\u5426\u5219\u8FD4\u56DE\u7B2C\u4E00\u4E2A\u53C2\u6570",CASE:"\u68C0\u67E5\u662F\u5426\u6EE1\u8DB3\u4E00\u4E2A\u6216\u591A\u4E2A\u6761\u4EF6\uFF0C\u8FD4\u56DE\u7B2C\u4E00\u4E2A\u6EE1\u8DB3\u6761\u4EF6\u7684\u503C",COLUMN:"\u83B7\u53D6\u5B50\u8868\u5355\u4E2D\u6307\u5B9A\u5B57\u6BB5\u5E76\u8FD4\u56DE\u5408\u96C6",VALUE:"\u83B7\u53D6\u5206\u7EC4\u8868\u5355\u4E2D\u6307\u5B9A\u5B57\u6BB5",CONCAT:"\u5C06\u6240\u6709\u53C2\u6570\u62FC\u63A5,\u8FD4\u56DE\u62FC\u63A5\u540E\u7684\u5B57\u7B26\u4E32",FALSE:"\u8FD4\u56DE\u903B\u8F91\u503C false",TRUE:"\u8FD4\u56DE\u903B\u8F91\u503C true",NOT:"\u83B7\u53D6\u67D0\u4E2A\u903B\u8F91\u503C\u7684\u76F8\u53CD\u503C",EQ:"\u68C0\u67E5\u4E24\u4E2A\u503C\u662F\u5426\u76F8\u7B49",NE:"\u68C0\u67E5\u4E24\u4E2A\u503C\u662F\u5426\u4E0D\u76F8\u7B49",GE:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5927\u4E8E\u7B49\u4E8E\u53E6\u4E00\u4E2A\u503C",GT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5927\u4E8E\u53E6\u4E00\u4E2A\u503C",LE:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5C0F\u4E8E\u7B49\u4E8E\u53E6\u4E00\u4E2A\u503C",LT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5C0F\u4E8E\u53E6\u4E00\u4E2A\u503C"},language:{name:"\u56FD\u9645\u5316\u914D\u7F6E",add:"\u65B0\u589E\u8BCD\u6761",batchRemove:"\u6279\u91CF\u5220\u9664",select:"\u9009\u62E9\u591A\u8BED\u8A00"},props:{circle:"\u5706\u5F62",square:"\u6B63\u65B9\u5F62",image:"\u56FE\u7247",video:"\u89C6\u9891",audio:"\u97F3\u9891",document:"\u6587\u6863",size:"\u5C3A\u5BF8",info:"\u63D0\u793A",success:"\u6210\u529F",error:"\u5931\u8D25",warning:"\u8B66\u544A",primary:"\u91CD\u8981",danger:"\u5371\u9669",form:"\u8868\u5355",subform:"\u5B50\u8868\u5355",other:"\u5176\u4ED6",model:"\u5F39\u7A97",field:"\u6570\u636E\u96C6",variable:"\u53D8\u91CF",disabled:"\u7981\u7528",enable:"\u542F\u7528",time:"\u65F6\u95F4",email:"\u90AE\u7BB1",number:"\u6570\u5B57",globalData:"\u5168\u5C40\u6570\u636E",mobile:"\u79FB\u52A8\u7AEF",reactive:"\u54CD\u5E94\u5F0F",pc:"\u7535\u8111\u7AEF",title:"\u6807\u9898",content:"\u5185\u5BB9",collection:"\u5408\u96C6",group:"\u5206\u7EC4",custom:"\u81EA\u5B9A\u4E49",change:"\u6539\u53D8",blur:"\u5931\u53BB\u7126\u70B9",preview:"\u9884\u89C8",clear:"\u6E05\u7A7A",cancel:"\u53D6\u6D88",close:"\u5173\u95ED",ok:"\u786E\u5B9A",save:"\u4FDD\u5B58",refresh:"\u5237\u65B0",submit:"\u63D0\u4EA4",reset:"\u91CD\u7F6E",copy:"\u590D\u5236",delete:"\u5220\u9664",hide:"\u9690\u85CF",show:"\u663E\u793A",position:"\u4F4D\u7F6E",render:"\u6E32\u67D3",large:"\u5927",default:"\u9ED8\u8BA4",small:"\u5C0F",always:"\u5E38\u663E",never:"\u4E0D\u663E\u793A",hover:"\u60AC\u6D6E",click:"\u70B9\u51FB",button:"\u6309\u94AE",year:"\u5E74\u4EFD",month:"\u6708\u4EFD",date:"\u65E5\u671F",dates:"\u65E5\u671F\u591A\u9009",week:"\u4E00\u5468",datetime:"\u65E5\u671F\u65F6\u95F4","datetime-local":"\u65E5\u671F\u65F6\u95F4",datetimerange:"\u65E5\u671F\u65F6\u95F4\u533A\u95F4",daterange:"\u65E5\u671F\u533A\u95F4",monthrange:"\u6708\u4EFD\u533A\u95F4",left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",top:"\u9876\u90E8",bottom:"\u5E95\u90E8",text:"\u6587\u5B57",icon:"\u56FE\u6807",picture:"\u56FE\u7247","picture-card":"\u5361\u7247",center:"\u5C45\u4E2D",vertical:"\u7AD6\u5411",horizontal:"\u6A2A\u5411",manage:"\u7BA1\u7406",key:"\u952E\u540D",name:"\u540D\u79F0",value:"\u503C",inputData:"\u9ED8\u8BA4\u503C",append:"\u63D2\u5165",options:"\u9009\u9879\u6570\u636E",option:"\u9009\u9879",callback:"\u56DE\u8C03",mode:"\u6A21\u5F0F",style:"\u6837\u5F0F",print:"\u6253\u5370",_self:"\u5F53\u524D\u7A97\u53E3",_blank:"\u65B0\u7684\u7A97\u53E3",_parent:"\u7236\u7EA7\u7A97\u53E3",_top:"\u9876\u7EA7\u7A97\u53E3"},slots:{prefix:"\u5934\u90E8\u5185\u5BB9",suffix:"\u5C3E\u90E8\u5185\u5BB9",prepend:"\u524D\u7F6E\u5185\u5BB9",append:"\u540E\u7F6E\u5185\u5BB9"},behavior:{add:"\u6DFB\u52A0\u52A8\u4F5C",props:{id:"\u9009\u62E9\u7EC4\u4EF6",status:"\u72B6\u6001",compute:"\u6761\u4EF6",static:"\u9759\u6001",formula:"\u8868\u8FBE\u5F0F",setFormula:"\u914D\u7F6E\u8868\u8FBE\u5F0F",continue:"\u7EE7\u7EED\u6267\u884C\u52A8\u4F5C",stop:"\u4E2D\u65AD\u6267\u884C\u52A8\u4F5C",break:"\u8DF3\u8FC7\u5F53\u524D\u52A8\u4F5C",model:"\u9009\u62E9\u5F39\u7A97",fetch:"\u914D\u7F6E\u8BF7\u6C42",response:"\u8BF7\u6C42\u7ED3\u679C",callback:"\u81EA\u5B9A\u4E49JS",ignoreError:"\u6267\u884C\u5F02\u5E38",expression:"\u6267\u884C\u6761\u4EF6",stopPropagation:"\u963B\u65AD\u6761\u4EF6",execute:"\u6267\u884C\u52A8\u4F5C",info:"\u52A8\u4F5C\u8BF4\u660E"},openModel:{name:"\u6253\u5F00\u5F39\u7A97",info:"\u6253\u5F00\u6240\u9009\u7684\u5F39\u7A97"},closeModel:{name:"\u5173\u95ED\u5F39\u7A97",info:"\u5173\u95ED\u5F53\u524D\u5F39\u7A97"},hidden:{name:"\u7EC4\u4EF6\u53EF\u89C1\u6027",info:"\u63A7\u5236\u6240\u9009\u7684\u7EC4\u4EF6\u7684\u663E\u793A/\u9690\u85CF"},disabled:{name:"\u7EC4\u4EF6\u53EF\u7528\u6027",info:"\u63A7\u5236\u6240\u9009\u7684\u7EC4\u4EF6\u7684\u542F\u7528/\u7981\u7528"},resetFields:{name:"\u91CD\u7F6E\u8868\u5355",info:"\u91CD\u7F6E\u8868\u5355\u6570\u636E"},clearFields:{name:"\u6E05\u7A7A\u8868\u5355",info:"\u6E05\u7A7A\u8868\u5355\u6570\u636E"},validate:{name:"\u6821\u9A8C\u8868\u5355",info:"\u5BF9\u6574\u4E2A\u8868\u5355\u7684\u5185\u5BB9\u8FDB\u884C\u6821\u9A8C"},validateFields:{name:"\u6821\u9A8C\u8868\u5355\u9879",info:"\u6821\u9A8C\u6240\u9009\u7684\u7684\u8868\u5355\u9879"},setValue:{name:"\u8868\u5355\u8D4B\u503C",info:"\u4FEE\u6539\u8868\u5355\u7684\u6570\u636E"},fetch:{name:"\u53D1\u9001\u8BF7\u6C42",info:"\u914D\u7F6E\u5E76\u53D1\u9001API\u8BF7\u6C42",props:{append:"\u8FFD\u52A0\u8868\u5355\u6570\u636E"},warning:{append:"\u5F00\u542F\u540E\uFF0C\u8FDC\u7A0B\u8BF7\u6C42\u8FD4\u56DE\u7684\u6570\u636E\u5C06\u81EA\u52A8\u8FFD\u52A0\u5230\u8868\u5355\u7684\u6570\u636E\u4E2D\u3002",response:"\u8FDC\u7A0B\u8BF7\u6C42\u8FD4\u56DE\u7684\u6570\u636E\u5C06\u6682\u5B58\u5230\u6307\u5B9A\u7684\u53D8\u91CF\u4E2D\u3002"}},copy:{name:"\u590D\u5236\u5185\u5BB9",info:"\u590D\u5236\u6587\u672C\u5185\u5BB9\u81F3\u7C98\u8D34\u677F"},callback:{name:"\u81EA\u5B9A\u4E49\u64CD\u4F5C",info:"\u901A\u8FC7JavaScript\u81EA\u5B9A\u4E49\u52A8\u4F5C\u903B\u8F91"},message:{name:"\u6D88\u606F\u63D0\u9192",info:"\u5F39\u51FA\u6D88\u606F\u63D0\u9192",props:{type:"\u7C7B\u578B",message:"\u63D0\u793A\u4FE1\u606F",duration:"\u6301\u7EED\u65F6\u95F4(ms)",showClose:"\u663E\u793A\u5173\u95ED\u6309\u94AE"}},submit:{name:"\u63D0\u4EA4\u8868\u5355",info:"\u624B\u52A8\u63D0\u4EA4\u8868\u5355\u5E76\u89E6\u53D1\u8868\u5355\u63D0\u4EA4\u4E8B\u4EF6"}},com:{cascader:{name:"\u7EA7\u8054\u9009\u62E9\u5668",event:{expandChange:"\u5F53\u5C55\u5F00\u8282\u70B9\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1",removeTag:"\u5728\u591A\u9009\u6A21\u5F0F\u4E0B\uFF0C\u79FB\u9664Tag\u65F6\u89E6\u53D1"},props:{props:"\u914D\u7F6E\u9009\u9879",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",disabled:"\u662F\u5426\u7981\u7528",clearable:"\u662F\u5426\u652F\u6301\u6E05\u7A7A\u9009\u9879",showAllLevels:"\u8F93\u5165\u6846\u4E2D\u662F\u5426\u663E\u793A\u9009\u4E2D\u503C\u7684\u5B8C\u6574\u8DEF\u5F84",collapseTags:"\u591A\u9009\u6A21\u5F0F\u4E0B\u662F\u5426\u6298\u53E0Tag",collapseTagsTooltip:"\u5F53\u9F20\u6807\u60AC\u505C\u4E8E\u6298\u53E0\u6807\u7B7E\u7684\u6587\u672C\u65F6\uFF0C\u662F\u5426\u663E\u793A\u6240\u6709\u9009\u4E2D\u7684\u6807\u7B7E",separator:"\u9009\u9879\u5206\u9694\u7B26",filterable:"\u8BE5\u9009\u9879\u662F\u5426\u53EF\u4EE5\u88AB\u641C\u7D22",tagType:"\u6807\u7B7E\u7C7B\u578B"},propsOpt:{multiple:"\u662F\u5426\u591A\u9009",expandTrigger:"\u6B21\u7EA7\u83DC\u5355\u7684\u5C55\u5F00\u65B9\u5F0F",checkStrictly:"\u662F\u5426\u4E25\u683C\u7684\u9075\u5B88\u7236\u5B50\u8282\u70B9\u4E0D\u4E92\u76F8\u5173\u8054",emitPath:"\u5728\u9009\u4E2D\u8282\u70B9\u6539\u53D8\u65F6\uFF0C\u662F\u5426\u8FD4\u56DE\u7531\u8BE5\u8282\u70B9\u6240\u5728\u7684\u5404\u7EA7\u83DC\u5355\u7684\u503C\u6240\u7EC4\u6210\u7684\u6570\u7EC4",value:"\u6307\u5B9A\u9009\u9879\u7684\u503C\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",label:"\u6307\u5B9A\u9009\u9879\u6807\u7B7E\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",children:"\u6307\u5B9A\u9009\u9879\u7684\u5B50\u9009\u9879\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",disabled:"\u6307\u5B9A\u9009\u9879\u7684\u7981\u7528\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",leaf:"\u6307\u5B9A\u9009\u9879\u7684\u53F6\u5B50\u8282\u70B9\u7684\u6807\u5FD7\u4F4D\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C"}},checkbox:{name:"\u591A\u9009\u6846",props:{input:"\u662F\u5426\u53EF\u4EE5\u586B\u5199",type:"\u6309\u94AE\u7C7B\u578B",disabled:"\u662F\u5426\u7981\u7528",min:"\u53EF\u88AB\u52FE\u9009\u7684\u6700\u5C0F\u6570\u91CF",max:"\u53EF\u88AB\u52FE\u9009\u7684\u6700\u5927\u6570\u91CF",textColor:"\u5F53\u6309\u94AE\u4E3A\u6D3B\u8DC3\u72B6\u6001\u65F6\u7684\u5B57\u4F53\u989C\u8272",fill:"\u5F53\u6309\u94AE\u4E3A\u6D3B\u8DC3\u72B6\u6001\u65F6\u7684\u8FB9\u6846\u548C\u80CC\u666F\u989C\u8272"}},col:{name:"\u5E03\u5C40\u683C\u5B50",info:"\u901A\u8FC7\u54CD\u5E94\u5F0F\u914D\u7F6E\u591A\u7AEF\u5E03\u5C40\uFF0C\u79FB\u52A8\u7AEF\u4F1A\u81EA\u52A8\u5E94\u7528\u7B2C\u4E00\u4E2A",props:{span:"\u6805\u683C\u5360\u636E\u7684\u5217\u6570",offset:"\u6805\u683C\u5DE6\u4FA7\u7684\u95F4\u9694\u683C\u6570",push:"\u6805\u683C\u5411\u53F3\u79FB\u52A8\u683C\u6570",pull:"\u6805\u683C\u5411\u5DE6\u79FB\u52A8\u683C\u6570"}},colorPicker:{name:"\u989C\u8272\u9009\u62E9\u5668",event:{activeChange:"\u9762\u677F\u4E2D\u5F53\u524D\u663E\u793A\u7684\u989C\u8272\u53D1\u751F\u6539\u53D8\u65F6\u89E6\u53D1"},props:{disabled:"\u662F\u5426\u7981\u7528",showAlpha:"\u662F\u5426\u652F\u6301\u900F\u660E\u5EA6\u9009\u62E9",colorFormat:"\u989C\u8272\u7684\u683C\u5F0F",predefine:"\u9884\u5B9A\u4E49\u989C\u8272"}},datePicker:{name:"\u65E5\u671F",props:{pickerOptions:"\u5F53\u524D\u65F6\u95F4\u65E5\u671F\u9009\u62E9\u5668\u7279\u6709\u7684\u9009\u9879",readonly:"\u5B8C\u5168\u53EA\u8BFB",disabled:"\u7981\u7528",type:"\u663E\u793A\u7C7B\u578B",editable:"\u6587\u672C\u6846\u53EF\u8F93\u5165",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",placeholder:"\u975E\u8303\u56F4\u9009\u62E9\u65F6\u7684\u5360\u4F4D\u5185\u5BB9",startPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",endPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u7ED3\u675F\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",format:"\u663E\u793A\u5728\u8F93\u5165\u6846\u4E2D\u7684\u683C\u5F0F",align:"\u5BF9\u9F50\u65B9\u5F0F",rangeSeparator:"\u9009\u62E9\u8303\u56F4\u65F6\u7684\u5206\u9694\u7B26",unlinkPanels:"\u5728\u8303\u56F4\u9009\u62E9\u5668\u91CC\u53D6\u6D88\u4E24\u4E2A\u65E5\u671F\u9762\u677F\u4E4B\u95F4\u7684\u8054\u52A8"}},dateRange:{name:"\u65E5\u671F\u533A\u95F4"},timeRange:{name:"\u65F6\u95F4\u533A\u95F4"},elAlert:{name:"\u63D0\u793A",description:"\u8BF4\u660E\u6587\u5B57",props:{title:"\u6807\u9898",type:"\u4E3B\u9898",description:"\u8F85\u52A9\u6027\u6587\u5B57",closable:"\u662F\u5426\u53EF\u5173\u95ED",center:"\u6587\u5B57\u662F\u5426\u5C45\u4E2D",closeText:"\u5173\u95ED\u6309\u94AE\u81EA\u5B9A\u4E49\u6587\u672C",showIcon:"\u662F\u5426\u663E\u793A\u56FE\u6807",effect:"\u9009\u62E9\u63D0\u4F9B\u7684\u4E3B\u9898"}},elButton:{name:"\u6309\u94AE",props:{formCreateChild:"\u5185\u5BB9",size:"\u5C3A\u5BF8",type:"\u7C7B\u578B",plain:"\u662F\u5426\u6734\u7D20\u6309\u94AE",round:"\u662F\u5426\u5706\u89D2\u6309\u94AE",circle:"\u662F\u5426\u5706\u5F62\u6309\u94AE",loading:"\u662F\u5426\u52A0\u8F7D\u4E2D\u72B6\u6001",disabled:"\u662F\u5426\u7981\u7528\u72B6\u6001"}},elCard:{name:"\u5361\u7247",props:{header:"\u6807\u9898",shadow:"\u9634\u5F71\u663E\u793A\u65F6\u673A"}},elCollapse:{name:"\u6298\u53E0\u9762\u677F",event:{change:"\u5207\u6362\u5F53\u524D\u6D3B\u52A8\u9762\u677F\uFF0C\u5728\u624B\u98CE\u7434\u6A21\u5F0F\u4E0B\u5176\u7C7B\u578B\u662Fstring\uFF0C\u5728\u5176\u4ED6\u6A21\u5F0F\u4E0B\u662Farray"},props:{accordion:"\u662F\u5426\u624B\u98CE\u7434\u6A21\u5F0F"}},elCollapseItem:{name:"\u9762\u677F",props:{title:"\u9762\u677F\u6807\u9898",name:"\u552F\u4E00\u6807\u5FD7\u7B26",disabled:"\u662F\u5426\u7981\u7528"}},elDescriptions:{name:"\u63CF\u8FF0\u5217\u8868",props:{title:"\u6807\u9898\u6587\u672C\uFF0C\u663E\u793A\u5728\u5DE6\u4E0A\u65B9",extra:"\u64CD\u4F5C\u533A\u6587\u672C\uFF0C\u663E\u793A\u5728\u53F3\u4E0A\u65B9",column:"\u4E00\u884C\u4E2D\u8868\u683C\u7684\u6570\u91CF",border:"\u662F\u5426\u5E26\u6709\u8FB9\u6846",direction:"\u6392\u5217\u7684\u65B9\u5411",size:"\u5217\u8868\u7684\u5C3A\u5BF8"}},elDescriptionsItem:{name:"\u63CF\u8FF0\u683C\u5B50",props:{label:"\u6807\u7B7E\u6587\u672C",__child:"\u5185\u5BB9",span:"\u5217\u7684\u6570\u91CF",width:"\u5217\u7684\u5BBD\u5EA6\uFF0C\u4E0D\u540C\u884C\u76F8\u540C\u5217\u7684\u5BBD\u5EA6\u6309\u6700\u5927\u503C\u8BBE\u5B9A\uFF08\u5982\u65E0 border \uFF0C\u5BBD\u5EA6\u5305\u542B\u6807\u7B7E\u4E0E\u5185\u5BB9",minWidth:"\u5217\u7684\u6700\u5C0F\u5BBD\u5EA6",align:"\u5217\u7684\u5185\u5BB9\u5BF9\u9F50\u65B9\u5F0F\uFF08\u5982\u65E0 border\uFF0C\u5BF9\u6807\u7B7E\u548C\u5185\u5BB9\u5747\u751F\u6548\uFF09",labelAlign:"\u5217\u7684\u6807\u7B7E\u5BF9\u9F50\u65B9\u5F0F\uFF0C\u82E5\u4E0D\u8BBE\u7F6E\u8BE5\u9879\uFF0C\u5219\u4F7F\u7528\u5185\u5BB9\u7684\u5BF9\u9F50\u65B9\u5F0F\uFF08\u5982\u65E0 border\uFF0C\u8BF7\u4F7F\u7528 align \u53C2\u6570\uFF09",className:"\u5217\u7684\u5185\u5BB9\u81EA\u5B9A\u4E49\u7C7B\u540D"}},elDivider:{name:"\u5206\u5272\u7EBF",props:{direction:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u65B9\u5411",formCreateChild:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848",contentPosition:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848\u7684\u4F4D\u7F6E"}},elTabPane:{name:"\u9009\u9879\u5361",props:{label:"\u9009\u9879\u5361\u6807\u9898",disabled:"\u662F\u5426\u7981\u7528",name:"\u9009\u9879\u5361\u7684\u6807\u8BC6\u7B26",lazy:"\u6807\u7B7E\u662F\u5426\u5EF6\u8FDF\u6E32\u67D3"}},elTabs:{name:"\u6807\u7B7E\u9875",event:{tabClick:"tab \u88AB\u9009\u4E2D\u65F6\u89E6\u53D1",tabChange:"activeName \u6539\u53D8\u65F6\u89E6\u53D1",tabRemove:"\u70B9\u51FB tab \u79FB\u9664\u6309\u94AE\u65F6\u89E6\u53D1",tabAdd:"\u70B9\u51FB tab \u65B0\u589E\u6309\u94AE\u65F6\u89E6\u53D1",edit:"\u70B9\u51FB tab \u7684\u65B0\u589E\u6216\u79FB\u9664\u6309\u94AE\u540E\u89E6\u53D1"},props:{type:"\u98CE\u683C\u7C7B\u578B",closable:"\u6807\u7B7E\u662F\u5426\u53EF\u5173\u95ED",tabPosition:"\u9009\u9879\u5361\u6240\u5728\u4F4D\u7F6E",stretch:"\u6807\u7B7E\u7684\u5BBD\u5EA6\u662F\u5426\u81EA\u6491\u5F00"}},elTag:{name:"\u6807\u7B7E",props:{formCreateChild:"\u6807\u7B7E\u5185\u5BB9",type:"\u6807\u7B7E\u7684\u7C7B\u578B",size:"\u6807\u7B7E\u7684\u5C3A\u5BF8",effect:"\u6807\u7B7E\u7684\u4E3B\u9898",closable:"\u662F\u5426\u53EF\u5173\u95ED",disableTransitions:"\u662F\u5426\u7981\u7528\u6E10\u53D8\u52A8\u753B",hit:"\u662F\u5426\u6709\u8FB9\u6846\u63CF\u8FB9",round:"\u662F\u5426\u4E3A\u5706\u5F62",color:"\u80CC\u666F\u8272"}},elTransfer:{name:"\u7A7F\u68AD\u6846",event:{leftCheckChange:"\u5DE6\u4FA7\u5217\u8868\u5143\u7D20\u88AB\u7528\u6237\u9009\u4E2D / \u53D6\u6D88\u9009\u4E2D\u65F6\u89E6\u53D1",rightCheckChange:"\u53F3\u4FA7\u5217\u8868\u5143\u7D20\u88AB\u7528\u6237\u9009\u4E2D / \u53D6\u6D88\u9009\u4E2D\u65F6\u89E6\u53D1"},props:{filterable:"\u662F\u5426\u53EF\u641C\u7D22",filterPlaceholder:"\u641C\u7D22\u6846\u5360\u4F4D\u7B26",targetOrder:"\u53F3\u4FA7\u5217\u8868\u5143\u7D20\u7684\u6392\u5E8F\u7B56\u7565",targetOrderInfo:"\u82E5\u4E3A original\uFF0C\u5219\u4FDD\u6301\u4E0E\u6570\u636E\u76F8\u540C\u7684\u987A\u5E8F\uFF1B\u82E5\u4E3A push\uFF0C\u5219\u65B0\u52A0\u5165\u7684\u5143\u7D20\u6392\u5728\u6700\u540E\uFF1B\u82E5\u4E3A unshift\uFF0C\u5219\u65B0\u52A0\u5165\u7684\u5143\u7D20\u6392\u5728\u6700\u524D",titles:"\u81EA\u5B9A\u4E49\u5217\u8868\u6807\u9898",buttonTexts:"\u81EA\u5B9A\u4E49\u6309\u94AE\u6587\u6848",props:"\u6570\u636E\u6E90\u7684\u5B57\u6BB5\u522B\u540D"}},elTreeSelect:{name:"\u6811\u5F62\u9009\u62E9",event:{removeTag:"\u591A\u9009\u6A21\u5F0F\u4E0B\u79FB\u9664tag\u65F6\u89E6\u53D1"},props:{multiple:"\u662F\u5426\u591A\u9009",disabled:"\u662F\u5426\u7981\u7528",clearable:"\u662F\u5426\u53EF\u4EE5\u6E05\u7A7A\u9009\u9879",collapseTags:"\u591A\u9009\u65F6\u662F\u5426\u5C06\u9009\u4E2D\u503C\u6309\u6587\u5B57\u7684\u5F62\u5F0F\u5C55\u793A",multipleLimit:"\u591A\u9009\u65F6\u7528\u6237\u6700\u591A\u53EF\u4EE5\u9009\u62E9\u7684\u9879\u76EE\u6570\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",placeholder:"\u5360\u4F4D\u7B26",props:"\u914D\u7F6E\u9009\u9879",checkStrictly:"\u5728\u663E\u793A\u590D\u9009\u6846\u7684\u60C5\u51B5\u4E0B\uFF0C\u662F\u5426\u4E25\u683C\u7684\u9075\u5FAA\u7236\u5B50\u4E0D\u4E92\u76F8\u5173\u8054\u7684\u505A\u6CD5",renderAfterExpand:"\u662F\u5426\u5728\u7B2C\u4E00\u6B21\u5C55\u5F00\u67D0\u4E2A\u6811\u8282\u70B9\u540E\u624D\u6E32\u67D3\u5176\u5B50\u8282\u70B9",defaultExpandAll:"\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u8282\u70B9",expandOnClickNode:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u5C55\u5F00\u6216\u8005\u6536\u7F29\u8282\u70B9",checkOnClickNode:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u9009\u4E2D\u8282\u70B9",nodeKey:"\u6BCF\u4E2A\u6811\u8282\u70B9\u7528\u6765\u4F5C\u4E3A\u552F\u4E00\u6807\u8BC6\u7684\u5C5E\u6027\uFF0C\u6574\u68F5\u6811\u5E94\u8BE5\u662F\u552F\u4E00\u7684"}},elLink:{name:"\u94FE\u63A5",props:{formCreateChild:"\u5185\u5BB9",href:"\u8DF3\u8F6C\u94FE\u63A5",type:"\u7C7B\u578B",underline:"\u662F\u5426\u663E\u793A\u4E0B\u5212\u7EBF",disabled:"\u662F\u5426\u7981\u7528",target:"\u6253\u5F00\u65B9\u5F0F"}},elWatermark:{name:"\u6C34\u5370",props:{content:"\u6C34\u5370\u6587\u672C\u5185\u5BB9",image:"\u6C34\u5370\u56FE\u7247\uFF0C\u5EFA\u8BAE\u4F7F\u7528 2x \u6216 3x \u56FE\u50CF",width:"\u6C34\u5370\u7684\u5BBD\u5EA6\uFF0C content \u7684\u9ED8\u8BA4\u503C\u662F\u5B83\u81EA\u5DF1\u7684\u5BBD\u5EA6",height:"\u6C34\u5370\u7684\u9AD8\u5EA6\uFF0C content \u7684\u9ED8\u8BA4\u503C\u662F\u5B83\u81EA\u5DF1\u7684\u9AD8\u5EA6",rotate:"\u6C34\u5370\u7684\u65CB\u8F6C\u89D2\u5EA6, \u5355\u4F4D \xB0",zIndex:"\u6C34\u5370\u5143\u7D20\u7684z-index\u503C",gap:"\u6C34\u5370\u4E4B\u95F4\u7684\u95F4\u8DDD"}},elTooltip:{name:"\u6587\u5B57\u63D0\u793A",props:{content:"\u663E\u793A\u7684\u5185\u5BB9",disabled:"\u662F\u5426\u7981\u7528",rawContent:"\u5185\u5BB9\u662F\u5426\u4F5C\u4E3A HTML \u5B57\u7B26\u4E32\u5904\u7406",enterable:"\u9F20\u6807\u662F\u5426\u53EF\u8FDB\u5165\u5230 Tooltip \u4E2D",effect:"\u4E3B\u9898",placement:"Tooltip \u7EC4\u4EF6\u51FA\u73B0\u7684\u4F4D\u7F6E",trigger:"\u5982\u4F55\u89E6\u53D1 Tooltip",offset:"\u51FA\u73B0\u4F4D\u7F6E\u7684\u504F\u79FB\u91CF",showAfter:"\u5728\u89E6\u53D1\u540E\u591A\u4E45\u663E\u793A\u5185\u5BB9\uFF0C\u5355\u4F4D\u6BEB\u79D2",hideAfter:"\u5EF6\u8FDF\u5173\u95ED\uFF0C\u5355\u4F4D\u6BEB\u79D2",autoClose:"\u51FA\u73B0\u540E\u81EA\u52A8\u9690\u85CF\u5EF6\u65F6\uFF0C\u5355\u4F4D\u6BEB\u79D2"}},elImage:{name:"\u56FE\u7247",props:{src:"\u56FE\u7247\u94FE\u63A5",previewSrcList:"\u9884\u89C8\u56FE\u7247\u5217\u8868"}},elAvatar:{name:"\u5934\u50CF\u6846",props:{src:"\u56FE\u7247\u94FE\u63A5",shape:"\u5F62\u72B6",size:"\u5C3A\u5BF8"}},elMention:{name:"\u63D0\u53CA",event:{search:"\u6309\u4E0B\u89E6\u53D1\u5B57\u6BB5\u65F6\u89E6\u53D1",select:"\u5F53\u7528\u6237\u9009\u62E9\u9009\u9879\u65F6\u89E6\u53D1"},props:{type:"\u7C7B\u578B",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",disabled:"\u662F\u5426\u7981\u7528",whole:"\u5F53\u9000\u683C\u952E\u88AB\u6309\u4E0B\u505A\u5220\u9664\u64CD\u4F5C\u65F6\uFF0C\u662F\u5426\u5C06\u63D0\u53CA\u90E8\u5206\u4F5C\u4E3A\u6574\u4F53\u5220\u9664",checkIsWhole:"\u5F53\u9000\u683C\u952E\u88AB\u6309\u4E0B\u505A\u5220\u9664\u64CD\u4F5C\u65F6\uFF0C\u68C0\u67E5\u662F\u5426\u5C06\u63D0\u53CA\u90E8\u5206\u4F5C\u4E3A\u6574\u4F53\u5220\u9664",filterOption:"\u7B5B\u9009\u5668\u9009\u9879\u903B\u8F91"}},elSegmented:{name:"\u5206\u6BB5\u63A7\u5236\u5668",props:{size:"\u5C3A\u5BF8",block:"\u6491\u6EE1\u7236\u5143\u7D20\u5BBD\u5EA6",disabled:"\u662F\u5426\u7981\u7528"}},elFormItem:{name:"\u8868\u5355\u9879",props:{label:"\u6807\u7B7E\u6587\u672C",labelWidth:"\u6807\u7B7E\u5BBD\u5EA6",size:"\u5C3A\u5BF8"}},elStatistic:{name:"\u7EDF\u8BA1\u680F",props:{value:"\u6570\u503C",title:"\u6807\u9898",prefix:"\u6570\u503C\u7684\u524D\u7F00",suffix:"\u6570\u503C\u7684\u540E\u7F00"}},fcTitle:{name:"\u6807\u9898",props:{title:"\u6807\u9898",size:"\u5C3A\u5BF8",align:"\u5BF9\u9F50\u65B9\u5F0F"}},fcId:{name:"\u552F\u4E00\u503C",props:{prefix:"\u524D\u7F00"}},fcCity:{name:"\u7701\u5E02\u533A\u9009\u62E9\u5668",props:{api:"\u6570\u636E\u94FE\u63A5 URI",level:"\u7C7B\u578B",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",disabled:"\u662F\u5426\u7981\u7528",filter:"\u6570\u636E\u8FC7\u6EE4,\u8FD4\u56DE\u53EF\u9009\u62E9\u6570\u636E"}},fcCell:{name:"\u683C\u5B50"},fcEditor:{name:"\u5BCC\u6587\u672C\u6846",props:{disabled:"\u662F\u5426\u7981\u7528"}},fcFlex:{name:"\u76D2\u5B50\u5E03\u5C40"},fcFlex2:{name:"\u76D2\u5B50\u5E03\u5C40",horizontal:"\u6C34\u5E73\u5C45\u4E2D",vertical:"\u5782\u76F4\u5C45\u4E2D",left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",reset:"\u91CD\u7F6E\u5E03\u5C40"},fcRow:{name:"\u6805\u683C\u5E03\u5C40",props:{gutter:"\u6805\u683C\u95F4\u9694",type:"flex\u5E03\u5C40\u6A21\u5F0F",justify:"flex\u5E03\u5C40\u4E0B\u7684\u6C34\u5E73\u6392\u5217\u65B9\u5F0F",align:"flex\u5E03\u5C40\u4E0B\u7684\u5782\u76F4\u6392\u5217\u65B9\u5F0F"}},fcDialog:{name:"\u5F39\u51FA\u6846",props:{title:"\u6807\u9898",width:"\u5BF9\u8BDD\u6846\u7684\u5BBD\u5EA6",fullscreen:"\u662F\u5426\u4E3A\u5168\u5C4F",modal:"\u662F\u5426\u9700\u8981\u906E\u7F69\u5C42",autoClose:"\u63D0\u4EA4\u8868\u5355\u540E\u81EA\u52A8\u5173\u95ED\u5F39\u51FA\u6846",footer:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE",beforeClose:"\u5173\u95ED\u524D\u7684\u56DE\u8C03"}},fcDrawer:{name:"\u62BD\u5C49",props:{title:"\u6807\u9898",size:"\u5BF9\u8BDD\u6846\u7684\u5BBD\u5EA6",direction:"\u6253\u5F00\u7684\u65B9\u5411",modal:"\u662F\u5426\u9700\u8981\u906E\u7F69\u5C42",autoClose:"\u63D0\u4EA4\u8868\u5355\u540E\u81EA\u52A8\u5173\u95ED\u5F39\u51FA\u6846",footer:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE",beforeClose:"\u5173\u95ED\u524D\u7684\u56DE\u8C03"},directionType:{ltr:"\u5DE6\u4FA7",rtl:"\u53F3\u4FA7"}},fcTable:{name:"\u8868\u683C\u5E03\u5C40",props:{mini:"\u7D27\u51D1\u6A21\u5F0F",border:"\u662F\u5426\u663E\u793A\u8FB9\u6846",borderColor:"\u8FB9\u6846\u989C\u8272",borderWidth:"\u8FB9\u6846\u5BBD\u5EA6"}},fcTableGrid:{name:"\u683C\u5B50"},fcValue:{name:"\u8BA1\u7B97\u516C\u5F0F",empty:"\u5728\u53F3\u4FA7\u914D\u7F6E\u4E2D\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F"},fcSlot:{name:"\u63D2\u69FD\u533A\u57DF",empty:"\u901A\u8FC7\u5B9A\u4E49\u63D2\u69FD {tag} \u586B\u5145\u533A\u57DF",props:{name:"\u63D2\u69FD\u540D\u79F0"}},fcJson:{name:"\u52A8\u6001\u533A\u57DF",empty:"\u901A\u8FC7\u52A0\u8F7D {tag} \u89C4\u5219\u586B\u5145\u533A\u57DF",props:{_loadType:"JSON \u89C4\u5219",type:"\u7C7B\u578B"}},lineChart:{name:"\u6298\u7EBF\u56FE",data:"\u56FE\u8868\u6570\u636E",pieTypeOpt:{pie:"\u5706\u5F62",doughnut:"\u73AF\u5F62","half-doughnut":"\u534A\u73AF\u5F62"},funnelSortOpt:{descending:"\u5012\u5E8F",ascending:"\u6B63\u5E8F"},props:{title:"\u56FE\u8868\u7684\u540D\u79F0",subtitle:"\u56FE\u8868\u7684\u7B80\u4ECB",valueFormat:"\u683C\u5F0F\u5316\u6570\u503C\u663E\u793A",stack:"\u591A\u5217\u6570\u636E\u65F6\u662F\u5426\u5806\u53E0",smooth:"\u7EBF\u6761\u662F\u5426\u5E73\u6ED1\u8FC7\u6E21",showLegend:"\u662F\u5426\u663E\u793A\u6807\u8BB0",showSeriesLabel:"\u662F\u5426\u663E\u793A\u6570\u503C",barBackgroundColor:"\u67F1\u72B6\u7684\u80CC\u666F\u8272",funnelSort:"\u6392\u5E8F\u65B9\u5F0F",pieType:"\u5F62\u72B6",min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",value:"\u6570\u503C",indicator:"\u6307\u793A\u5668",loadOptions:"\u521D\u59CB\u5316"}},areaChart:{name:"\u4F53\u79EF\u56FE"},barChart:{name:"\u67F1\u72B6\u56FE"},customChart:{name:"\u81EA\u5B9A\u4E49\u56FE\u8868"},funnelChart:{name:"\u6F0F\u6597\u56FE"},gaugeChart:{name:"\u4EEA\u8868\u76D8"},pieChart:{name:"\u997C\u56FE"},radarChart:{name:"\u96F7\u8FBE\u56FE"},scatterChart:{name:"\u6563\u70B9\u56FE"},stripeChart:{name:"\u6761\u5F62\u56FE"},fcInlineForm:{name:"\u884C\u5185\u5E03\u5C40"},group:{name:"\u5B50\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",syncDisabled:"\u662F\u5426\u4E0E\u5B50\u8868\u5355\u5F3A\u5236\u540C\u6B65\u7981\u7528\u72B6\u6001",expand:"\u8BBE\u7F6E\u9ED8\u8BA4\u5C55\u5F00\u51E0\u9879",button:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE",sortBtn:"\u662F\u5426\u663E\u793A\u6392\u5E8F\u6309\u94AE",min:"\u8BBE\u7F6E\u6700\u5C0F\u6DFB\u52A0\u51E0\u9879",max:"\u8BBE\u7F6E\u6700\u591A\u6DFB\u52A0\u51E0\u9879"}},html:{name:"HTML",props:{formCreateChild:"\u5185\u5BB9"}},input:{name:"\u8F93\u5165\u6846",event:{change:"\u5F53\u503C\u6539\u53D8\u65F6\uFF0C\u5F53\u7EC4\u4EF6\u5931\u53BB\u7126\u70B9\u6216\u7528\u6237\u6309Enter\u65F6\u89E6\u53D1"},props:{type:"\u7C7B\u578B",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",disabled:"\u662F\u5426\u7981\u7528",readonly:"\u662F\u5426\u53EA\u8BFB"}},inputNumber:{name:"\u6570\u5B57\u8F93\u5165\u6846",props:{precision:"\u6570\u503C\u7CBE\u5EA6",min:"\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5C0F\u503C",max:"\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5927\u503C",step:"\u8BA1\u6570\u5668\u6B65\u957F",stepStrictly:"\u662F\u5426\u53EA\u80FD\u8F93\u5165 step \u7684\u500D\u6570",disabled:"\u662F\u5426\u7981\u7528\u8BA1\u6570\u5668",controls:"\u662F\u5426\u4F7F\u7528\u63A7\u5236\u6309\u94AE",controlsPosition:"\u63A7\u5236\u6309\u94AE\u4F4D\u7F6E",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C"}},password:{name:"\u5BC6\u7801\u8F93\u5165\u6846",event:{change:"\u5F53\u503C\u6539\u53D8\u65F6\uFF0C\u5F53\u7EC4\u4EF6\u5931\u53BB\u7126\u70B9\u6216\u7528\u6237\u6309Enter\u65F6\u89E6\u53D1"},props:{disabled:"\u662F\u5426\u7981\u7528",readonly:"\u662F\u5426\u53EA\u8BFB",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE"}},radio:{name:"\u5355\u9009\u6846",props:{input:"\u662F\u5426\u53EF\u4EE5\u586B\u5199",disabled:"\u662F\u5426\u7981\u7528",type:"\u6309\u94AE\u5F62\u5F0F",textColor:"\u6309\u94AE\u5F62\u5F0F\u6FC0\u6D3B\u65F6\u7684\u6587\u672C\u989C\u8272",fill:"\u6309\u94AE\u5F62\u5F0F\u6FC0\u6D3B\u65F6\u7684\u586B\u5145\u8272\u548C\u8FB9\u6846\u8272"}},rate:{name:"\u8BC4\u5206",props:{max:"\u6700\u5927\u5206\u503C",disabled:"\u662F\u5426\u7981\u7528",allowHalf:"\u662F\u5426\u5141\u8BB8\u534A\u9009",voidColor:"\u672A\u9009\u4E2D\u65F6\u56FE\u6807\u7684\u989C\u8272",disabledVoidColor:"\u53EA\u8BFB\u65F6\u672A\u9009\u4E2D\u65F6\u56FE\u6807\u7684\u989C\u8272",voidIconClass:"\u672A\u9009\u4E2D\u65F6\u56FE\u6807\u7684\u7C7B\u540D",disabledVoidIconClass:"\u53EA\u8BFB\u65F6\u672A\u9009\u4E2D\u65F6\u56FE\u6807\u7684\u7C7B\u540D",showScore:"\u662F\u5426\u663E\u793A\u5F53\u524D\u5206\u6570",textColor:"\u8F85\u52A9\u6587\u5B57\u7684\u989C\u8272",scoreTemplate:"\u5206\u6570\u663E\u793A\u6A21\u677F"}},fcDataSelect:{name:"\u5B50\u8868\u5355\u9009\u62E9\u5668"},select:{name:"\u9009\u62E9\u5668",title:"\u8BF7\u9009\u62E9",emptyText:"\u62D6\u62FD\u7EC4\u4EF6\u914D\u7F6E\u641C\u7D22\u6761\u4EF6",event:{removeTag:"\u591A\u9009\u6A21\u5F0F\u4E0B\u79FB\u9664tag\u65F6\u89E6\u53D1"},props:{title:"\u6807\u9898",valueKey:"\u6307\u5B9A\u9009\u9879\u7684\u503C\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",labelKey:"\u6307\u5B9A\u9009\u9879\u6807\u7B7E\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",autoLoad:"\u81EA\u52A8\u89E6\u53D1\u641C\u7D22",multiple:"\u662F\u5426\u591A\u9009",disabled:"\u662F\u5426\u7981\u7528",clearable:"\u662F\u5426\u53EF\u4EE5\u6E05\u7A7A\u9009\u9879",collapseTags:"\u591A\u9009\u65F6\u662F\u5426\u5C06\u9009\u4E2D\u503C\u6309\u6587\u5B57\u7684\u5F62\u5F0F\u5C55\u793A",multipleLimit:"\u591A\u9009\u65F6\u7528\u6237\u6700\u591A\u53EF\u4EE5\u9009\u62E9\u7684\u9879\u76EE\u6570\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",placeholder:"\u5360\u4F4D\u7B26",filterable:"\u662F\u5426\u53EF\u641C\u7D22",allowCreate:"\u662F\u5426\u5141\u8BB8\u7528\u6237\u521B\u5EFA\u65B0\u6761\u76EE",noMatchText:"\u641C\u7D22\u6761\u4EF6\u65E0\u5339\u914D\u65F6\u663E\u793A\u7684\u6587\u5B57",noDataText:"\u9009\u9879\u4E3A\u7A7A\u65F6\u663E\u793A\u7684\u6587\u5B57",reserveKeyword:"\u591A\u9009\u4E14\u53EF\u641C\u7D22\u65F6\uFF0C\u662F\u5426\u5728\u9009\u4E2D\u4E00\u4E2A\u9009\u9879\u540E\u4FDD\u7559\u5F53\u524D\u7684\u641C\u7D22\u5173\u952E\u8BCD",defaultFirstOption:"\u5728\u8F93\u5165\u6846\u6309\u4E0B\u56DE\u8F66\uFF0C\u9009\u62E9\u7B2C\u4E00\u4E2A\u5339\u914D\u9879",remote:"\u5176\u4E2D\u7684\u9009\u9879\u662F\u5426\u4ECE\u670D\u52A1\u5668\u8FDC\u7A0B\u52A0\u8F7D",remoteMethod:"\u81EA\u5B9A\u4E49\u8FDC\u7A0B\u641C\u7D22\u65B9\u6CD5"}},slider:{name:"\u6ED1\u5757",props:{min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",disabled:"\u662F\u5426\u7981\u7528",step:"\u6B65\u957F",showInput:"\u662F\u5426\u663E\u793A\u8F93\u5165\u6846\uFF0C\u4EC5\u5728\u975E\u8303\u56F4\u9009\u62E9\u65F6\u6709\u6548",showInputControls:"\u5728\u663E\u793A\u8F93\u5165\u6846\u7684\u60C5\u51B5\u4E0B\uFF0C\u662F\u5426\u663E\u793A\u8F93\u5165\u6846\u7684\u63A7\u5236\u6309\u94AE",showStops:"\u662F\u5426\u663E\u793A\u95F4\u65AD\u70B9",range:"\u662F\u5426\u4E3A\u8303\u56F4\u9009\u62E9",vertical:"\u662F\u5426\u7AD6\u5411\u6A21\u5F0F",height:"Slider \u9AD8\u5EA6\uFF0C\u7AD6\u5411\u6A21\u5F0F\u65F6\u5FC5\u586B"}},space:{name:"\u95F4\u8DDD"},stepForm:{name:"\u5206\u6B65\u8868\u5355",event:{next:"\u70B9\u51FB\u4E0B\u4E00\u6B65\u6309\u94AE\u65F6\u89E6\u53D1"},props:{submitBtn:"\u663E\u793A\u63D0\u4EA4\u6309\u94AE",autoValidate:"\u8FDB\u5165\u4E0B\u4E00\u6B65\u524D\u81EA\u52A8\u9A8C\u8BC1\u8868\u5355","stepsProps>alignCenter":"\u8FDB\u884C\u5C45\u4E2D\u5BF9\u9F50","stepsProps>simple":"\u662F\u5426\u5E94\u7528\u7B80\u6D01\u98CE\u683C"}},stepFormItem:{name:"\u6B65\u9AA4\u6761",props:{title:"\u6807\u9898",description:"\u63CF\u8FF0\u6587\u6848"}},subForm:{name:"\u5206\u7EC4",props:{disabled:"\u662F\u5426\u7981\u7528",syncDisabled:"\u662F\u5426\u4E0E\u5B50\u8868\u5355\u5F3A\u5236\u540C\u6B65\u7981\u7528\u72B6\u6001"}},switch:{name:"\u5F00\u5173",slots:{"active-action":"\u6253\u5F00\u65F6\u7684\u5185\u5BB9","inactive-action":"\u5173\u95ED\u65F6\u7684\u5185\u5BB9"},props:{disabled:"\u662F\u5426\u7981\u7528",width:"\u5BBD\u5EA6\uFF08px\uFF09",activeText:"\u6253\u5F00\u65F6\u7684\u6587\u5B57\u63CF\u8FF0",inactiveText:"\u5173\u95ED\u65F6\u7684\u6587\u5B57\u63CF\u8FF0",activeValue:"\u6253\u5F00\u65F6\u7684\u503C",inactiveValue:"\u5173\u95ED\u65F6\u7684\u503C",activeColor:"\u6253\u5F00\u65F6\u7684\u80CC\u666F\u8272",inactiveColor:"\u5173\u95ED\u65F6\u7684\u80CC\u666F\u8272"}},tableForm:{name:"\u8868\u683C\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",filterEmptyColumn:"\u662F\u5426\u8FC7\u6EE4\u7A7A\u884C\u7684\u6570\u636E",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",min:"\u6700\u5C11\u6DFB\u52A0\u51E0\u884C",size:"\u5C3A\u5BF8",emptyText:"\u7A7A\u6570\u636E\u65F6\u663E\u793A\u7684\u6587\u672C\u5185\u5BB9",height:"\u9AD8\u5EA6",showIndex:"\u663E\u793A\u884C\u53F7",stripe:"\u663E\u793A\u6591\u9A6C\u7EB9",border:"\u8FB9\u6846",button:"\u64CD\u4F5C\u6309\u94AE",page:"\u5206\u9875",addable:"\u5141\u8BB8\u65B0\u589E",deletable:"\u5141\u8BB8\u5220\u9664",newColumn:"\u9ED8\u8BA4\u663E\u793A\u65B0\u884C","button>column":"\u6309\u94AE\u7BA1\u7406","button>label":"\u64CD\u4F5C","button>fixed":"\u4F4D\u7F6E","button>width":"\u5217\u7684\u5BBD\u5EA6","page>props>pageSize":"\u6BCF\u9875\u663E\u793A\u6761\u76EE\u4E2A\u6570","page>props>small":"\u4F7F\u7528\u5C0F\u578B\u5206\u9875\u6837\u5F0F","page>props>background":"\u4E3A\u5206\u9875\u6309\u94AE\u6DFB\u52A0\u80CC\u666F\u8272"}},tableFormPro:{name:"\u8868\u683C\u8868\u5355Pro",event:{handleClick:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6"}},nestedTableForm:{name:"\u5D4C\u5957\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",nestedMax:"\u5B50\u8868\u5355\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236"}},infiniteTableForm:{name:"\u65E0\u9650\u7EA7\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",childrenField:"\u8BBE\u7F6E\u5B50\u7EA7\u7684\u5B57\u6BB5\u540D",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",layerMax:"\u6700\u591A\u6DFB\u52A0\u51E0\u5C42\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236"}},nestedSubTableForm:{name:"\u5B50\u8868\u683C\u8868\u5355"},tableFormColumn:{name:"\u8868\u683C\u683C\u5B50",label:"\u81EA\u5B9A\u4E49\u540D\u79F0",props:{label:"\u6807\u9898",header:"\u8868\u5934",fixed:"\u4F4D\u7F6E",width:"\u5BBD\u5EA6",color:"\u989C\u8272",hidden:"\u662F\u5426\u9690\u85CF",required:"\u662F\u5426\u663E\u793A\u5FC5\u586B\u661F\u53F7"}},tableFormColumn2:{name:"\u8868\u683C\u683C\u5B50",header:"\u914D\u7F6E\u5F53\u524D\u5217\u7684\u8868\u5934\u540D\u79F0\uFF0C\u91CD\u590D\u7684\u8868\u5934\u5C06\u81EA\u52A8\u5408\u5E76\u3002"},dataTable:{name:"\u6570\u636E\u8868\u683C",handle:"\u7981\u7528\u903B\u8F91",click:"\u70B9\u51FB\u4E8B\u4EF6",filter:"\u7B5B\u9009",header:"\u8868\u5934",event:{cellMouseEnter:"\u5F53\u5355\u5143\u683C hover \u8FDB\u5165\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",cellMouseLeave:"\u5F53\u5355\u5143\u683C hover \u9000\u51FA\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",handleClick:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",rowClick:"\u5F53\u67D0\u4E00\u884C\u88AB\u70B9\u51FB\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",rowDblclick:"\u5F53\u67D0\u4E00\u884C\u88AB\u53CC\u51FB\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",headerClick:"\u5F53\u67D0\u4E00\u5217\u7684\u8868\u5934\u88AB\u70B9\u51FB\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",filterChange:"\u7B5B\u9009\u6761\u4EF6\u53D8\u5316\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",expandChange:"\u5F53\u7528\u6237\u5BF9\u67D0\u4E00\u884C\u5C55\u5F00\u6216\u8005\u5173\u95ED\u7684\u65F6\u5019\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",sortChange:"\u5F53\u8868\u683C\u7684\u6392\u5E8F\u6761\u4EF6\u53D1\u751F\u53D8\u5316\u7684\u65F6\u5019\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",selectionChange:"\u5F53\u9009\u62E9\u9879\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1"},button:{title:"\u64CD\u4F5C\u6309\u94AE",btn:"\u914D\u7F6E\u64CD\u4F5C\u6309\u94AE",link:"\u6587\u5B57",round:"\u5706\u89D2",plain:"\u6734\u7D20",disabled:"\u7981\u7528"},column:{title:"\u5217\u8868\u7BA1\u7406",btn:"\u914D\u7F6E\u8868\u683C\u5217\u8868",prop:"\u5B57\u6BB5\u540D\u79F0",sort:"\u6392\u5E8F"},format:{default:"\u5E38\u89C4",tag:"\u6807\u7B7E",image:"\u56FE\u7247",custom:"\u81EA\u5B9A\u4E49"},fixed:{default:"\u5E38\u89C4",left:"\u5DE6\u60AC\u6D6E",right:"\u53F3\u60AC\u6D6E"},sortable:{disabled:"\u4E0D\u6392\u5E8F",default:"\u5E38\u89C4\u6392\u5E8F",custom:"\u63A5\u53E3\u6392\u5E8F"},props:{_optionType:"\u8868\u683C\u6570\u636E","page>totalField":"\u63A5\u53E3\u54CD\u5E94\u6570\u636E\u4E2D\u603B\u6761\u76EE\u6570\u7684\u5B57\u6BB5\u540D\u79F0","page>dataField":"\u63A5\u53E3\u54CD\u5E94\u6570\u636E\u4E2D\u5217\u8868\u6570\u636E\u7684\u5B57\u6BB5\u540D\u79F0","page>orderField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6392\u5E8F\u7684\u53C2\u6570\u540D\u79F0","page>orderByField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6392\u5E8F\u65B9\u5F0F\u7684\u53C2\u6570\u540D\u79F0","page>pageField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u9875\u7801\u7684\u53C2\u6570\u540D\u79F0(\u5206\u9875)","page>pageSizeField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6761\u76EE\u6570\u7684\u53C2\u6570\u540D\u79F0(\u5206\u9875)",column:"\u8868\u683C\u7BA1\u7406",showSummary:"\u662F\u5426\u5728\u8868\u5C3E\u663E\u793A\u5408\u8BA1\u884C",selection:"\u662F\u5426\u663E\u793A\u591A\u9009\u6846",size:"\u5C3A\u5BF8",rowKey:"\u884C\u6570\u636E\u7684Key",emptyText:"\u7A7A\u6570\u636E\u65F6\u663E\u793A\u7684\u6587\u672C\u5185\u5BB9",height:"\u9AD8\u5EA6",index:"\u663E\u793A\u884C\u53F7",stripe:"\u663E\u793A\u6591\u9A6C\u7EB9",border:"\u8FB9\u6846",defaultExpandAll:"\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u884C",button:"\u64CD\u4F5C\u6309\u94AE",page:"\u5206\u9875","button>column":"\u6309\u94AE\u7BA1\u7406","button>label":"\u64CD\u4F5C","button>fixed":"\u4F4D\u7F6E","button>width":"\u5217\u7684\u5BBD\u5EA6","page>position":"\u4F4D\u7F6E","page>props>pageSize":"\u6BCF\u9875\u663E\u793A\u6761\u76EE\u4E2A\u6570","page>props>small":"\u4F7F\u7528\u5C0F\u578B\u5206\u9875\u6837\u5F0F","page>props>background":"\u4E3A\u5206\u9875\u6309\u94AE\u6DFB\u52A0\u80CC\u666F\u8272"},requiredName:"\u8BF7\u8F93\u5165\u6309\u94AE\u540D\u79F0",requiredKey:"\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u8BC6",requiredLabel:"\u8BF7\u8F93\u5165\u6807\u9898",requiredRender:"\u8BF7\u8F93\u5165\u6E32\u67D3\u51FD\u6570"},text:{name:"\u6587\u5B57",props:{formCreateChild:"\u5185\u5BB9"}},textarea:{name:"\u591A\u884C\u8F93\u5165\u6846",event:{change:"\u5F53\u503C\u6539\u53D8\u65F6\uFF0C\u5F53\u7EC4\u4EF6\u5931\u53BB\u7126\u70B9\u6216\u7528\u6237\u6309Enter\u65F6\u89E6\u53D1"},props:{disabled:"\u662F\u5426\u7981\u7528",readonly:"\u662F\u5426\u53EA\u8BFB",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",showWordLimit:"\u662F\u5426\u663E\u793A\u7EDF\u8BA1\u5B57\u6570",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",rows:"\u8F93\u5165\u6846\u884C\u6570",autosize:"\u9AD8\u5EA6\u662F\u5426\u81EA\u9002\u5E94"}},timePicker:{name:"\u65F6\u95F4","HH:mm:ss":"\u65F6:\u5206:\u79D2","HH:mm":"\u65F6:\u5206",props:{__format:"\u8F93\u5165\u6846\u4E2D\u7684\u683C\u5F0F",pickerOptions:"\u5F53\u524D\u65F6\u95F4\u65E5\u671F\u9009\u62E9\u5668\u7279\u6709\u7684\u9009\u9879",readonly:"\u5B8C\u5168\u53EA\u8BFB",disabled:"\u7981\u7528",editable:"\u6587\u672C\u6846\u53EF\u8F93\u5165",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",placeholder:"\u975E\u8303\u56F4\u9009\u62E9\u65F6\u7684\u5360\u4F4D\u5185\u5BB9",startPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",endPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u7ED3\u675F\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",isRange:"\u662F\u5426\u4E3A\u65F6\u95F4\u8303\u56F4\u9009\u62E9",arrowControl:"\u662F\u5426\u4F7F\u7528\u7BAD\u5934\u8FDB\u884C\u65F6\u95F4\u9009\u62E9",align:"\u5BF9\u9F50\u65B9\u5F0F"}},tree:{name:"\u6811\u5F62\u63A7\u4EF6",event:{nodeClick:"\u5F53\u8282\u70B9\u88AB\u70B9\u51FB\u7684\u65F6\u5019\u89E6\u53D1",nodeContextmenu:"\u5F53\u67D0\u4E00\u8282\u70B9\u88AB\u9F20\u6807\u53F3\u952E\u70B9\u51FB\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",checkChange:"\u5F53\u590D\u9009\u6846\u88AB\u70B9\u51FB\u7684\u65F6\u5019\u89E6\u53D1",check:"\u70B9\u51FB\u8282\u70B9\u590D\u9009\u6846\u4E4B\u540E\u89E6\u53D1",currentChange:"\u5F53\u524D\u9009\u4E2D\u8282\u70B9\u53D8\u5316\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeExpand:"\u8282\u70B9\u88AB\u5C55\u5F00\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeCollapse:"\u8282\u70B9\u88AB\u5173\u95ED\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDragStart:"\u8282\u70B9\u5F00\u59CB\u62D6\u62FD\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDragEnter:"\u62D6\u62FD\u8FDB\u5165\u5176\u4ED6\u8282\u70B9\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDragLeave:"\u62D6\u62FD\u79BB\u5F00\u67D0\u4E2A\u8282\u70B9\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDragOver:"\u5728\u62D6\u62FD\u8282\u70B9\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6\uFF08\u7C7B\u4F3C\u6D4F\u89C8\u5668\u7684 mouseover \u4E8B\u4EF6\uFF09",nodeDragEnd:"\u62D6\u62FD\u7ED3\u675F\u65F6\uFF08\u53EF\u80FD\u672A\u6210\u529F\uFF09\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDrop:"\u62D6\u62FD\u6210\u529F\u5B8C\u6210\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6"},props:{emptyText:"\u5185\u5BB9\u4E3A\u7A7A\u7684\u65F6\u5019\u5C55\u793A\u7684\u6587\u672C",props:"\u914D\u7F6E\u9009\u9879",renderAfterExpand:"\u662F\u5426\u5728\u7B2C\u4E00\u6B21\u5C55\u5F00\u67D0\u4E2A\u6811\u8282\u70B9\u540E\u624D\u6E32\u67D3\u5176\u5B50\u8282\u70B9",defaultExpandAll:"\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u8282\u70B9",expandOnClickNode:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u5C55\u5F00\u6216\u8005\u6536\u7F29\u8282\u70B9\uFF0C\u5982\u679C\u4E3A false\uFF0C\u5219\u53EA\u6709\u70B9\u7BAD\u5934\u56FE\u6807\u7684\u65F6\u5019\u624D\u4F1A\u5C55\u5F00\u6216\u8005\u6536\u7F29\u8282\u70B9\u3002",checkOnClickNode:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u9009\u4E2D\u8282\u70B9",autoExpandParent:"\u5C55\u5F00\u5B50\u8282\u70B9\u7684\u65F6\u5019\u662F\u5426\u81EA\u52A8\u5C55\u5F00\u7236\u8282\u70B9",checkStrictly:"\u5728\u663E\u793A\u590D\u9009\u6846\u7684\u60C5\u51B5\u4E0B\uFF0C\u662F\u5426\u4E25\u683C\u7684\u9075\u5FAA\u7236\u5B50\u4E0D\u4E92\u76F8\u5173\u8054\u7684\u505A\u6CD5",accordion:"\u662F\u5426\u6BCF\u6B21\u53EA\u6253\u5F00\u4E00\u4E2A\u540C\u7EA7\u6811\u8282\u70B9\u5C55\u5F00",indent:"\u76F8\u90BB\u7EA7\u8282\u70B9\u95F4\u7684\u6C34\u5E73\u7F29\u8FDB(px)",nodeKey:"\u6BCF\u4E2A\u6811\u8282\u70B9\u7528\u6765\u4F5C\u4E3A\u552F\u4E00\u6807\u8BC6\u7684\u5C5E\u6027\uFF0C\u6574\u68F5\u6811\u5E94\u8BE5\u662F\u552F\u4E00\u7684"}},upload:{name:"\u4E0A\u4F20",info:"\u4E0A\u4F20\u6210\u529F\u540E\uFF0C\u5C06\u63A5\u53E3\u8FD4\u56DE\u7684 URL \u8D4B\u503C\u7ED9 file.url\uFF0C\u6216\u5C06\u8FD4\u56DE\u7ED3\u679C\u8D4B\u503C\u7ED9 file.value\uFF0C\u4EE5\u4FBF\u5728\u540E\u7EED\u7684\u8868\u5355\u63D0\u4EA4\u65F6\u83B7\u53D6\u8FD9\u4E9B\u6570\u636E\u3002",event:{remove:"\u6587\u4EF6\u5217\u8868\u79FB\u9664\u6587\u4EF6\u65F6\u89E6\u53D1",preview:"\u70B9\u51FB\u6587\u4EF6\u5217\u8868\u4E2D\u5DF2\u4E0A\u4F20\u7684\u6587\u4EF6\u65F6\u89E6\u53D1",error:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\u65F6\u89E6\u53D1",progress:"\u6587\u4EF6\u4E0A\u4F20\u65F6\u89E6\u53D1",exceed:"\u5F53\u8D85\u51FA\u9650\u5236\u65F6\u89E6\u53D1"},slots:{tip:"\u8BF4\u660E"},props:{listType:"\u4E0A\u4F20\u7C7B\u578B",multiple:"\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6",action:"\u4E0A\u4F20\u7684\u5730\u5740(\u5FC5\u586B)",beforeUpload:"\u4E0A\u4F20\u6587\u4EF6\u4E4B\u524D\u89E6\u53D1",onSuccess:"\u4E0A\u4F20\u6210\u529F\u65F6\u89E6\u53D1",beforeRemove:"\u5220\u9664\u6587\u4EF6\u4E4B\u524D\u89E6\u53D1",headers:"\u8BBE\u7F6E\u4E0A\u4F20\u7684\u8BF7\u6C42\u5934\u90E8",data:"\u4E0A\u4F20\u65F6\u9644\u5E26\u7684\u989D\u5916\u53C2\u6570",name:"\u4E0A\u4F20\u7684\u6587\u4EF6\u5B57\u6BB5\u540D",withCredentials:"\u652F\u6301\u53D1\u9001 cookie \u51ED\u8BC1\u4FE1\u606F",accept:"\u63A5\u53D7\u4E0A\u4F20\u7684\u6587\u4EF6\u7C7B\u578B",autoUpload:"\u662F\u5426\u5728\u9009\u53D6\u6587\u4EF6\u540E\u7ACB\u5373\u8FDB\u884C\u4E0A\u4F20",disabled:"\u662F\u5426\u7981\u7528",limit:"\u6700\u5927\u5141\u8BB8\u4E0A\u4F20\u4E2A\u6570"}},audioBox:{name:"\u97F3\u9891\u64AD\u653E\u5668",preloadOpt:{auto:"\u81EA\u52A8",metadata:"\u5143\u6570\u636E",none:"\u7981\u6B62"},event:{pause:"\u97F3\u9891\u64AD\u653E\u6682\u505C\u65F6\u89E6\u53D1",play:"\u97F3\u9891\u5F00\u59CB\u64AD\u653E\u65F6\u89E6\u53D1",ended:"\u97F3\u9891\u64AD\u653E\u7ED3\u675F\u540E\u89E6\u53D1"},props:{src:"\u97F3\u9891\u5730\u5740",type:"\u97F3\u9891\u7C7B\u578B",autoplay:"\u662F\u5426\u81EA\u52A8\u64AD\u653E",loop:"\u662F\u5426\u5FAA\u73AF\u64AD\u653E",muted:"\u662F\u5426\u9759\u97F3",controls:"\u662F\u5426\u663E\u793A\u63A7\u5236\u6761",preload:"\u9884\u52A0\u8F7D"}},barCodeBox:{name:"\u6761\u5F62\u7801",props:{value:"\u5185\u5BB9",format:"\u6761\u5F62\u7801\u7684\u7C7B\u578B",width:"\u5355\u4E2A\u6761\u5F62\u7684\u5BBD\u5EA6",height:"\u6761\u5F62\u7801\u7684\u9AD8\u5EA6",displayValue:"\u662F\u5426\u663E\u793A\u5185\u5BB9",fontSize:"\u8BBE\u7F6E\u6587\u5B57\u7684\u5927\u5C0F",textPosition:"\u8BBE\u7F6E\u6587\u5B57\u7684\u4F4D\u7F6E",textAlign:"\u8BBE\u7F6E\u6587\u5B57\u7684\u5BF9\u9F50\u65B9\u5F0F",textMargin:"\u8BBE\u7F6E\u6587\u5B57\u7684\u8FB9\u8DDD",background:"\u6761\u5F62\u7801\u7684\u80CC\u666F\u8272",lineColor:"\u7EBF\u6761\u7684\u989C\u8272"}},iframeBox:{name:"\u5185\u5D4C\u9875\u9762",event:{load:"\u9875\u9762\u52A0\u8F7D\u5B8C\u6210\u540E\u89E6\u53D1"},loadingOpt:{eager:"\u7ACB\u5373\u52A0\u8F7D",lazy:"\u5EF6\u8FDF\u52A0\u8F7D"},props:{src:"\u9875\u9762\u94FE\u63A5",loading:"\u52A0\u8F7D\u65B9\u5F0F"}},qrCodeBox:{name:"\u4E8C\u7EF4\u7801",circleTypeOpt:{square:"\u6B63\u65B9\u5F62",dots:"\u70B9\u72B6",rounded:"\u5706\u5F62",classy:"\u7ECF\u5178"},props:{data:"\u5185\u5BB9",image:"\u4E2D\u5FC3\u7684\u56FE\u7247\u94FE\u63A5",width:"\u4E8C\u7EF4\u7801\u7684\u5BBD\u5EA6",height:"\u4E8C\u7EF4\u7801\u7684\u9AD8\u5EA6",circleType:"\u70B9\u7684\u7C7B\u578B",circleColor:"\u70B9\u7684\u989C\u8272"}},signaturePad:{name:"\u624B\u5199\u7B7E\u540D",props:{penColor:"\u7EBF\u6761\u7684\u989C\u8272"}},videoBox:{name:"\u89C6\u9891\u64AD\u653E\u5668",event:{error:"\u89C6\u9891\u52A0\u8F7D\u5931\u8D25\u65F6\u89E6\u53D1",pause:"\u89C6\u9891\u64AD\u653E\u6682\u505C\u65F6\u89E6\u53D1",play:"\u89C6\u9891\u5F00\u59CB\u64AD\u653E\u65F6\u89E6\u53D1",ended:"\u89C6\u9891\u64AD\u653E\u7ED3\u675F\u540E\u89E6\u53D1"},props:{src:"\u89C6\u9891\u5730\u5740",type:"\u89C6\u9891\u7C7B\u578B",autoplay:"\u662F\u5426\u81EA\u52A8\u64AD\u653E",loop:"\u662F\u5426\u5FAA\u73AF\u64AD\u653E",isLive:"\u662F\u5426\u662F\u76F4\u64AD",controls:"\u662F\u5426\u663E\u793A\u63A7\u5236\u6761",withCredentials:"\u662F\u5426\u643A\u5E26\u51ED\u8BC1"}}},tmp:{duration:"\u65F6\u957F",chineseAmount:"\u91D1\u989D",col3:"\u4E09\u5217\u6805\u683C",col4:"\u56DB\u5217\u6805\u683C",table43:"4x3\u8868\u683C"}},rd=(e,t)=>ai.ElMessage({message:e,type:t||"info",customClass:"_fc-message-tip"}),dn=e=>rd(e,"error"),Wa=function(e,t,r,o){const i=o||{};return t.forEach(l=>{e.indexOf(l[r||"id"])>-1&&e.splice(e.indexOf(l[r||"id"]),1,l[i.label||"label"]),dt.trueArray(l[i.children||"children"])&&Wa(e,l[i.children||"children"],r,o)}),e},Nb=function(e,t){return t.forEach(r=>{e.indexOf(r.value)>-1&&(e[e.indexOf(r.value)]=r.label)}),e};function Or(e){if(e){if(!Array.isArray(e))return[e]}else return[];return e}function Tb(e,t){let r=t.rule.value;const o=t.$render.vNode.h,i=t.type,l=t.$handle.subForm[t.id],d=t.prop.readMode;if(t.prop.title.title&&t.prop.title.title.trim()&&(t.prop.title.title+="\uFF1A"),d===!1||d==="custom"||!t.input||t.rule.subForm||(Array.isArray(l)?l.length:l)||["fcGroup","fcSubForm","tableForm","tableFormPro","fcJson","stepForm","nestedTableForm","infiniteTableForm","fcUpload","fcDialog","fcDrawer","fcPopup"].indexOf(t.trueType)>-1)return t.trueType==="fcUpload"&&(t.prop.props.disabled=!0),t.parser.render(e,t);if(["radio","select","checkbox"].indexOf(i)>-1)r=Nb([...Or(r)],t.prop.props.options||t.prop.props.formCreateInject.options||[]).join(", ");else if(["timePicker","datePicker","slider"].indexOf(i)>-1)r=Array.isArray(r)?r.join(" - "):r;else if(i==="cascader")r=[...Or(r)],Array.isArray(r[0])||(r=[r]),r=r.map(c=>Wa(c,t.prop.props.options||t.prop.props.formCreateInject.options||[],"value",t.prop.props.props).join("/")).join(", ");else if(i==="elTransfer"){const c=[...Or(r)];r=Wa(c,t.prop.props.data||t.prop.props.formCreateInject.options||[],"key").join(", ")}else if(i==="fcDataSelect")r=[...Or(r)].map(u=>u[t.prop.props.labelKey||"label"]).join(", ");else if(["tree","elTreeSelect"].indexOf(i)>-1){const c=t.prop.props.data||t.prop.props.formCreateInject.options||[];r=Wa([...Or(r)],c,i==="elTreeSelect"?"value":"id").join(", ")}else{if(i==="fcEditor"||d==="html")return o("div",{innerHTML:r});if(d==="image")return r=Or(r),o("div",{class:"_fc-upload"},r.map(function(c){return o("div",{class:"_fc-upload-preview"},[o("el-image",{src:(c==null?void 0:c.url)||c,previewSrcList:r.map(u=>(u==null?void 0:u.url)||u),previewTeleported:!0,fit:"cover"})])}));if((i==="switch"||i==="el-switch")&&(t.prop.props.activeValue!=null||t.prop.props.inactiveValue!=null))r=t.prop.props.activeValue===r?"\u662F":"\u5426";else{if(i==="signaturePad"&&r)return o("el-image",{src:r,previewTeleported:!0,fit:"cover",style:{height:"90px"}});typeof r=="boolean"&&(r=r?"\u662F":"\u5426")}}return o("span",{class:"_fc-read-view"},[""+(r==null?"":r)])}function Db(e,t){return`