yh-report 2.0.9 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import { ElMessage as Ln, ElEmpty as Dm, ElDialog as Zf, ElFormItem as he, ElInp
3
3
  import { useRoute as Af, onBeforeRouteLeave as Im } from "vue-router";
4
4
  import { useFullscreen as Gm } from "@vueuse/core";
5
5
  import { defineStore as jm, storeToRefs as Dt } from "pinia";
6
- import { b as Fm, s as Hm, C as ee, F as Re, r as Km, e as Jm, f as eg, _ as tg, D as Ei, p as ig, h as Vf, i as ng, j as sg, T as rg, k as og, I as lg, l as ag, v as hg } from "./index-f102cf35.mjs";
6
+ import { b as Fm, s as Hm, C as te, F as Re, r as Km, e as Jm, f as eg, _ as tg, D as Ei, p as ig, h as Vf, i as ng, j as sg, T as rg, k as og, I as lg, l as ag, v as hg } from "./index-b93c655c.mjs";
7
7
  import { cloneDeep as Ol, set as ni, get as ug } from "lodash-es";
8
8
  import "@/libs/api.request.js";
9
9
  import "echarts";
@@ -136,16 +136,16 @@ const Lt = function() {
136
136
  return z.some((V) => O(V, A, v, q));
137
137
  if (z === null || typeof z != "object")
138
138
  return !1;
139
- const { type: Y, col: W, row: ne, index: ie } = z;
140
- if (ie !== t.index || !Y)
139
+ const { type: Y, col: W, row: J, index: ne } = z;
140
+ if (ne !== t.index || !Y)
141
141
  return !1;
142
142
  switch (A) {
143
- case ee.COL:
144
- return [ee.CELL, ee.COL].includes(Y) && W === v - 1;
145
- case ee.ROW:
146
- return [ee.ROW, ee.CELL].includes(Y) && ne === v;
147
- case ee.CELL:
148
- return Y === ee.ROW && ne === q || Y === ee.COL && W === v || Y === ee.CELL && W === v && ne === q;
143
+ case te.COL:
144
+ return [te.CELL, te.COL].includes(Y) && W === v - 1;
145
+ case te.ROW:
146
+ return [te.ROW, te.CELL].includes(Y) && J === v;
147
+ case te.CELL:
148
+ return Y === te.ROW && J === q || Y === te.COL && W === v || Y === te.CELL && W === v && J === q;
149
149
  default:
150
150
  return !1;
151
151
  }
@@ -177,20 +177,20 @@ const Lt = function() {
177
177
  { deep: !0, immediate: !0 }
178
178
  );
179
179
  function $() {
180
- var W, ne;
181
- let z = ((W = f.value.rowConfig) == null ? void 0 : W.length) ?? 5, A = ((ne = f.value.colConfig) == null ? void 0 : ne.length) ?? 10, v = t.index === s.value && Array.isArray(l.value) ? [...l.value] : [], q = [], Y = [];
182
- for (let ie = 0; ie < A + 1; ie++) {
183
- const V = O(v, ee.COL, ie), { bindData: _e, bindDataLoop: de } = R(ie - 1), Ce = V || !1;
180
+ var W, J;
181
+ let z = ((W = f.value.rowConfig) == null ? void 0 : W.length) ?? 5, A = ((J = f.value.colConfig) == null ? void 0 : J.length) ?? 10, v = t.index === s.value && Array.isArray(l.value) ? [...l.value] : [], q = [], Y = [];
182
+ for (let ne = 0; ne < A + 1; ne++) {
183
+ const V = O(v, te.COL, ne), { bindData: _e, bindDataLoop: de } = R(ne - 1), Ce = V || !1;
184
184
  let _s = {
185
- text: m(ie),
185
+ text: m(ne),
186
186
  styleAttr: "",
187
187
  class: "mouse-down-target head",
188
188
  active: Ce,
189
189
  bind: _e,
190
190
  loop: de,
191
- type: ee.HEAD,
191
+ type: te.HEAD,
192
192
  row: -1,
193
- col: ie - 1,
193
+ col: ne - 1,
194
194
  colSpan: 1,
195
195
  rowSpan: 1
196
196
  };
@@ -202,43 +202,43 @@ const Lt = function() {
202
202
  loop: !1,
203
203
  cols: Y
204
204
  });
205
- for (let ie = 0; ie < z; ie++) {
206
- const V = O(v, ee.ROW, ie), _e = [], de = {
207
- type: ee.HEAD,
205
+ for (let ne = 0; ne < z; ne++) {
206
+ const V = O(v, te.ROW, ne), _e = [], de = {
207
+ type: te.HEAD,
208
208
  active: V,
209
209
  styleAttr: "",
210
210
  class: "mouse-down-target head",
211
211
  bind: !1,
212
212
  loop: !1,
213
- text: (ie + 1).toString(),
213
+ text: (ne + 1).toString(),
214
214
  col: -1,
215
- row: ie,
215
+ row: ne,
216
216
  colSpan: 1,
217
217
  rowSpan: 1
218
218
  };
219
219
  V && (de.class += " active"), _e.push(de);
220
220
  for (let Vi = 0; Vi < A; Vi++) {
221
- const _h = O(v, ee.CELL, Vi, ie);
222
- let { bindData: Am, bindDataLoop: ck } = R(Vi), Qe = f.value.config && f.value.config[ie] ? f.value.config[ie][Vi] : null;
221
+ const _h = O(v, te.CELL, Vi, ne);
222
+ let { bindData: Am, bindDataLoop: ck } = R(Vi), Qe = f.value.config && f.value.config[ne] ? f.value.config[ne][Vi] : null;
223
223
  if (Qe) {
224
- let Qi = "", Qh = "", ao = ee.TEXT;
224
+ let Qi = "", Qh = "", ao = te.TEXT;
225
225
  if (Qe && Qe.type) {
226
226
  ao = Qe.type;
227
227
  let ho = Qe.format && Qe.format !== Re.TEXT ? ` | ${Qe.format}` : "";
228
228
  switch (Qe.type) {
229
- case ee.TEXT:
229
+ case te.TEXT:
230
230
  Qe.text && (Qi = Qe.text + ho || "");
231
231
  break;
232
- case ee.FIELD:
232
+ case te.FIELD:
233
233
  Qe.data ? Qi = `\${${Qe.data}}${ho}` : Qe.format === Re.STRING && Qe.fun && (Qi = Qe.fun);
234
234
  break;
235
- case ee.FUN:
235
+ case te.FUN:
236
236
  Qe.fun && (Qi = `=${Qe.fun}${ho}`);
237
237
  break;
238
- case ee.ICON:
238
+ case te.ICON:
239
239
  Qe.text && (Qi = `Icon: ${Qe.text}`);
240
240
  break;
241
- case ee.IMAGE:
241
+ case te.IMAGE:
242
242
  Qe.text && (Qi = `image: ${Qe.text}`);
243
243
  break;
244
244
  }
@@ -253,16 +253,16 @@ const Lt = function() {
253
253
  loop: !1,
254
254
  type: ao,
255
255
  col: Vi,
256
- row: ie,
256
+ row: ne,
257
257
  colSpan: Qe.colSpan !== void 0 && !isNaN(Qe.colSpan) ? Qe.colSpan : 1,
258
258
  rowSpan: Qe.rowSpan !== void 0 && !isNaN(Qe.rowSpan) ? Qe.rowSpan : 1
259
259
  };
260
260
  _h && (bh.class += " active"), _e.push(bh);
261
261
  }
262
262
  }
263
- const { bindData: Ce, bindDataLoop: _s } = y(ie);
263
+ const { bindData: Ce, bindDataLoop: _s } = y(ne);
264
264
  q.push({
265
- size: f.value.rowConfig[ie].size || 80,
265
+ size: f.value.rowConfig[ne].size || 80,
266
266
  bind: Ce,
267
267
  loop: _s,
268
268
  cols: _e
@@ -327,14 +327,14 @@ const Lt = function() {
327
327
  function I(z) {
328
328
  var A, v;
329
329
  if ((A = z.target) != null && A.closest(".report-desinger-table-content")) {
330
- let { pageX: q, pageY: Y } = z, { x: W = 0, y: ne = 0 } = ((v = g.value) == null ? void 0 : v.getBoundingClientRect()) || {};
331
- L = {}, L.x = q, L.y = Y, L.tableX = W, L.tableY = ne, E.left = q - W + "px", E.top = Y - ne + "px";
330
+ let { pageX: q, pageY: Y } = z, { x: W = 0, y: J = 0 } = ((v = g.value) == null ? void 0 : v.getBoundingClientRect()) || {};
331
+ L = {}, L.x = q, L.y = Y, L.tableX = W, L.tableY = J, E.left = q - W + "px", E.top = Y - J + "px";
332
332
  }
333
333
  }
334
334
  function N(z) {
335
335
  if (L !== null) {
336
- let { pageX: A, pageY: v } = z, { tableX: q, tableY: Y, x: W, y: ne } = L;
337
- A > W ? E.width = A - W - 1 + "px" : (E.left = A - q + "px", E.width = W - A + "px"), v > ne ? E.height = v - ne - 1 + "px" : (E.top = v - Y + "px", E.height = ne - v + "px");
336
+ let { pageX: A, pageY: v } = z, { tableX: q, tableY: Y, x: W, y: J } = L;
337
+ A > W ? E.width = A - W - 1 + "px" : (E.left = A - q + "px", E.width = W - A + "px"), v > J ? E.height = v - J - 1 + "px" : (E.top = v - Y + "px", E.height = J - v + "px");
338
338
  }
339
339
  }
340
340
  function se(z) {
@@ -380,14 +380,14 @@ const Lt = function() {
380
380
  M("div", dg, [
381
381
  Q(q, { inline: "" }, {
382
382
  default: x(() => [
383
- (U(!0), K(re, null, Fe(b(w), (W, ne) => (U(), oe(v, {
383
+ (U(!0), K(re, null, Fe(b(w), (W, J) => (U(), oe(v, {
384
384
  class: "params-desinger-item report-drag-source report-drop-target",
385
385
  draggable: "true",
386
386
  "data-drag": "params",
387
387
  "data-source": "column",
388
388
  "data-target": "params",
389
- onClick: (ie) => o.value = ne,
390
- "data-index": ne,
389
+ onClick: (ne) => o.value = J,
390
+ "data-index": J,
391
391
  label: W.name
392
392
  }, {
393
393
  default: x(() => [
@@ -398,7 +398,7 @@ const Lt = function() {
398
398
  M("div", {
399
399
  class: "del",
400
400
  "data-type": "params",
401
- "data-index": ne,
401
+ "data-index": J,
402
402
  onClick: P
403
403
  }, mg, 8, Og)
404
404
  ]),
@@ -421,13 +421,13 @@ const Lt = function() {
421
421
  width: W == null ? void 0 : W.size
422
422
  }, null, 8, yg))), 256))
423
423
  ]),
424
- (U(!0), K(re, null, Fe(b(X), ({ size: W, cols: ne, bind: ie, loop: V }, _e) => (U(), K("tr", {
424
+ (U(!0), K(re, null, Fe(b(X), ({ size: W, cols: J, bind: ne, loop: V }, _e) => (U(), K("tr", {
425
425
  style: Ct(`height: ${W}px;`)
426
426
  }, [
427
- (U(!0), K(re, null, Fe(ne, (de, Ce) => (U(), K("td", {
427
+ (U(!0), K(re, null, Fe(J, (de, Ce) => (U(), K("td", {
428
428
  class: cr(de.class),
429
429
  style: Ct(de.styleAttr),
430
- title: `${(ie || de.bind) && de.type === "head" ? "随数据循环" : de.text}`,
430
+ title: `${(ne || de.bind) && de.type === "head" ? "随数据循环" : de.text}`,
431
431
  "data-source": "column",
432
432
  "data-target": "column",
433
433
  "data-area": de.type === "head" ? "head" : "cell",
@@ -687,7 +687,7 @@ const Lt = function() {
687
687
  if (R) {
688
688
  let { area: k, index: X, col: $, row: C } = R.dataset, w = $ ? parseInt($) : -1, P = C ? parseInt(C) : -1;
689
689
  const g = Number(X), Z = isNaN(g) ? -1 : g;
690
- k && Z > -1 && (k === ee.HEAD && (w > -1 ? k = ee.COL : P > -1 && (k = ee.ROW)), c = {
690
+ k && Z > -1 && (k === te.HEAD && (w > -1 ? k = te.COL : P > -1 && (k = te.ROW)), c = {
691
691
  droparea: k,
692
692
  index: Z,
693
693
  rindex: P,
@@ -739,30 +739,30 @@ const Lt = function() {
739
739
  for (let A = N; A <= se; A++)
740
740
  for (let v = L; v <= I; v++)
741
741
  z.push({
742
- type: ee.CELL,
742
+ type: te.CELL,
743
743
  index: C,
744
744
  col: v,
745
745
  row: A
746
746
  });
747
747
  r.value = z;
748
- } else if ([ee.COL, ee.ROW].includes(g) && (E !== void 0 && E > -1 || T !== void 0 && T > -1)) {
748
+ } else if ([te.COL, te.ROW].includes(g) && (E !== void 0 && E > -1 || T !== void 0 && T > -1)) {
749
749
  let L = [], [I, N] = [E, w].sort(), [se, z] = [T, P].sort();
750
750
  switch (g) {
751
- case ee.COL:
751
+ case te.COL:
752
752
  if (I !== void 0 && N !== void 0 && N > -1)
753
753
  for (let A = I; A <= N; A++)
754
754
  L.push({
755
- type: ee.COL,
755
+ type: te.COL,
756
756
  index: C,
757
757
  col: A,
758
758
  row: -1
759
759
  });
760
760
  break;
761
- case ee.ROW:
761
+ case te.ROW:
762
762
  if (se !== void 0 && z !== void 0 && z > -1)
763
763
  for (let A = se; A <= z; A++)
764
764
  L.push({
765
- type: ee.ROW,
765
+ type: te.ROW,
766
766
  index: C,
767
767
  col: -1,
768
768
  row: A
@@ -4965,7 +4965,7 @@ class ti {
4965
4965
  var He = /* @__PURE__ */ function(n) {
4966
4966
  return n[n.Text = 0] = "Text", n[n.WidgetBefore = 1] = "WidgetBefore", n[n.WidgetAfter = 2] = "WidgetAfter", n[n.WidgetRange = 3] = "WidgetRange", n;
4967
4967
  }(He || (He = {}));
4968
- class te extends ki {
4968
+ class ie extends ki {
4969
4969
  constructor(e, t, i, s) {
4970
4970
  super(), this.startSide = e, this.endSide = t, this.widget = i, this.spec = s;
4971
4971
  }
@@ -5031,8 +5031,8 @@ class te extends ki {
5031
5031
  return this.widget ? this.widget.estimatedHeight > -1 : !1;
5032
5032
  }
5033
5033
  }
5034
- te.none = ge.empty;
5035
- class hs extends te {
5034
+ ie.none = ge.empty;
5035
+ class hs extends ie {
5036
5036
  constructor(e) {
5037
5037
  let { start: t, end: i } = pd(e);
5038
5038
  super(t ? -1 : 5e8, i ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null;
@@ -5048,7 +5048,7 @@ class hs extends te {
5048
5048
  }
5049
5049
  }
5050
5050
  hs.prototype.point = !1;
5051
- class us extends te {
5051
+ class us extends ie {
5052
5052
  constructor(e) {
5053
5053
  super(-2e8, -2e8, null, e);
5054
5054
  }
@@ -5063,7 +5063,7 @@ class us extends te {
5063
5063
  }
5064
5064
  us.prototype.mapMode = We.TrackBefore;
5065
5065
  us.prototype.point = !0;
5066
- class di extends te {
5066
+ class di extends ie {
5067
5067
  constructor(e, t, i, s, r, o) {
5068
5068
  super(t, i, r, e), this.block = s, this.isReplace = o, this.mapMode = s ? t <= 0 ? We.TrackBefore : We.TrackAfter : We.TrackDel;
5069
5069
  }
@@ -5700,7 +5700,7 @@ class Ee {
5700
5700
  let a = [Tn.of(l)];
5701
5701
  return o && a.push(In.of((u) => {
5702
5702
  let h = u.plugin(l);
5703
- return h ? o(h) : te.none;
5703
+ return h ? o(h) : ie.none;
5704
5704
  })), r && a.push(r(l)), a;
5705
5705
  });
5706
5706
  }
@@ -5898,7 +5898,7 @@ class Uh extends xe {
5898
5898
  return this.view.state.doc.length;
5899
5899
  }
5900
5900
  constructor(e) {
5901
- super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = te.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new Ve()], this.children[0].setParent(this), this.updateDeco(), this.updateInner([new pt(0, 0, 0, e.state.doc.length)], 0, null);
5901
+ super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = ie.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new Ve()], this.children[0].setParent(this), this.updateDeco(), this.updateInner([new pt(0, 0, 0, e.state.doc.length)], 0, null);
5902
5902
  }
5903
5903
  // Update the document view to a given state.
5904
5904
  update(e) {
@@ -6181,7 +6181,7 @@ class Uh extends xe {
6181
6181
  let r = s == t.viewports.length ? null : t.viewports[s], o = r ? r.from - 1 : this.length;
6182
6182
  if (o > i) {
6183
6183
  let l = (t.lineBlockAt(o).bottom - t.lineBlockAt(i).top) / this.view.scaleY;
6184
- e.push(te.replace({
6184
+ e.push(ie.replace({
6185
6185
  widget: new Yl(l),
6186
6186
  block: !0,
6187
6187
  inclusive: !0,
@@ -6192,7 +6192,7 @@ class Uh extends xe {
6192
6192
  break;
6193
6193
  i = r.to + 1;
6194
6194
  }
6195
- return te.set(e);
6195
+ return ie.set(e);
6196
6196
  }
6197
6197
  updateDeco() {
6198
6198
  let e = 1, t = this.view.state.facet(In).map((r) => (this.dynamicDecorationMap[e++] = typeof r == "function") ? r(this.view) : r), i = !1, s = this.view.state.facet(Xd).map((r, o) => {
@@ -7780,7 +7780,7 @@ class Qo {
7780
7780
  return !0;
7781
7781
  }
7782
7782
  draw(e, t) {
7783
- return te.replace({
7783
+ return ie.replace({
7784
7784
  widget: new q0(this.displaySize * (t ? e.scaleY : e.scaleX), t)
7785
7785
  }).range(this.from, this.to);
7786
7786
  }
@@ -7807,7 +7807,7 @@ class lu {
7807
7807
  this.heightOracle = new T0(t), this.stateDeco = e.facet(In).filter((i) => typeof i != "function"), this.heightMap = Ke.empty().applyChanges(this.stateDeco, Oe.empty, this.heightOracle.setDoc(e.doc), [new pt(0, 0, 0, e.doc.length)]);
7808
7808
  for (let i = 0; i < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); i++)
7809
7809
  ;
7810
- this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = te.set(this.lineGaps.map((i) => i.draw(this, !1))), this.computeVisibleRanges();
7810
+ this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = ie.set(this.lineGaps.map((i) => i.draw(this, !1))), this.computeVisibleRanges();
7811
7811
  }
7812
7812
  updateForViewport() {
7813
7813
  let e = [this.viewport], { main: t } = this.state.selection;
@@ -7991,7 +7991,7 @@ class lu {
7991
7991
  return this.heightOracle.lineWrapping ? e.height * r : s.total * this.heightOracle.charWidth * r;
7992
7992
  }
7993
7993
  updateLineGaps(e) {
7994
- Qo.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = te.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
7994
+ Qo.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = ie.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
7995
7995
  }
7996
7996
  computeVisibleRanges(e) {
7997
7997
  let t = this.stateDeco;
@@ -8684,11 +8684,11 @@ class B0 {
8684
8684
  let a = this.toEditorPos(r.rangeStart), u = this.toEditorPos(r.rangeEnd);
8685
8685
  if (a < u) {
8686
8686
  let h = `text-decoration: underline ${o == "Dashed" ? "dashed " : o == "Squiggle" ? "wavy " : ""}${l == "Thin" ? 1 : 2}px`;
8687
- s.push(te.mark({ attributes: { style: h } }).range(a, u));
8687
+ s.push(ie.mark({ attributes: { style: h } }).range(a, u));
8688
8688
  }
8689
8689
  }
8690
8690
  }
8691
- e.dispatch({ effects: Cd.of(te.set(s)) });
8691
+ e.dispatch({ effects: Cd.of(ie.set(s)) });
8692
8692
  }, this.handlers.compositionstart = () => {
8693
8693
  e.inputState.composing < 0 && (e.inputState.composing = 0, e.inputState.compositionFirstChange = !0);
8694
8694
  }, this.handlers.compositionend = () => {
@@ -10078,7 +10078,7 @@ let gu = null;
10078
10078
  function OQ() {
10079
10079
  return gu || (gu = Ee.fromClass(class {
10080
10080
  constructor(n) {
10081
- this.view = n, this.decorations = te.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(n.state.facet(sr)), this.decorations = this.decorator.createDeco(n);
10081
+ this.view = n, this.decorations = ie.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(n.state.facet(sr)), this.decorations = this.decorator.createDeco(n);
10082
10082
  }
10083
10083
  makeDecorator(n) {
10084
10084
  return new hQ({
@@ -10087,11 +10087,11 @@ function OQ() {
10087
10087
  let { doc: s } = t.state, r = et(e[0], 0);
10088
10088
  if (r == 9) {
10089
10089
  let o = s.lineAt(i), l = t.state.tabSize, a = cn(o.text, l, i - o.from);
10090
- return te.replace({
10090
+ return ie.replace({
10091
10091
  widget: new _Q((l - a % l) * this.view.defaultCharacterWidth / this.view.scaleX)
10092
10092
  });
10093
10093
  }
10094
- return this.decorationCache[r] || (this.decorationCache[r] = te.replace({ widget: new gQ(n, r) }));
10094
+ return this.decorationCache[r] || (this.decorationCache[r] = ie.replace({ widget: new gQ(n, r) }));
10095
10095
  },
10096
10096
  boundary: n.replaceTabs ? void 0 : /[^]/
10097
10097
  });
@@ -10144,7 +10144,7 @@ class _Q extends ti {
10144
10144
  function QQ() {
10145
10145
  return yQ;
10146
10146
  }
10147
- const bQ = /* @__PURE__ */ te.line({ class: "cm-activeLine" }), yQ = /* @__PURE__ */ Ee.fromClass(class {
10147
+ const bQ = /* @__PURE__ */ ie.line({ class: "cm-activeLine" }), yQ = /* @__PURE__ */ Ee.fromClass(class {
10148
10148
  constructor(n) {
10149
10149
  this.decorations = this.getDeco(n);
10150
10150
  }
@@ -10157,7 +10157,7 @@ const bQ = /* @__PURE__ */ te.line({ class: "cm-activeLine" }), yQ = /* @__PURE_
10157
10157
  let s = n.lineBlockAt(i.head);
10158
10158
  s.from > e && (t.push(bQ.range(s.from)), e = s.from);
10159
10159
  }
10160
- return te.set(t);
10160
+ return ie.set(t);
10161
10161
  }
10162
10162
  }, {
10163
10163
  decorations: (n) => n.decorations
@@ -12241,10 +12241,10 @@ function i1(n) {
12241
12241
  } else {
12242
12242
  let q = l.pos - L;
12243
12243
  l.next();
12244
- let Y = [], W = [], ne = Z >= o ? Z : -1, ie = 0, V = E;
12244
+ let Y = [], W = [], J = Z >= o ? Z : -1, ne = 0, V = E;
12245
12245
  for (; l.pos > q; )
12246
- ne >= 0 && l.id == ne && l.size >= 0 ? (l.end <= V - s && (p(Y, W, T, ie, l.end, V, ne, I, N), ie = Y.length, V = l.end), l.next()) : g > 2500 ? f(T, q, Y, W) : c(T, q, Y, W, ne, g + 1);
12247
- if (ne >= 0 && ie > 0 && ie < Y.length && p(Y, W, T, ie, T, V, ne, I, N), Y.reverse(), W.reverse(), ne > -1 && ie > 0) {
12246
+ J >= 0 && l.id == J && l.size >= 0 ? (l.end <= V - s && (p(Y, W, T, ne, l.end, V, J, I, N), ne = Y.length, V = l.end), l.next()) : g > 2500 ? f(T, q, Y, W) : c(T, q, Y, W, J, g + 1);
12247
+ if (J >= 0 && ne > 0 && ne < Y.length && p(Y, W, T, ne, T, V, J, I, N), Y.reverse(), W.reverse(), J > -1 && ne > 0) {
12248
12248
  let _e = d(se, N);
12249
12249
  z = qa(se, Y, W, 0, Y.length, 0, E - T, _e, _e);
12250
12250
  } else
@@ -14139,13 +14139,13 @@ function _O(n) {
14139
14139
  }
14140
14140
  const Xi = /* @__PURE__ */ Le.define({
14141
14141
  create() {
14142
- return te.none;
14142
+ return ie.none;
14143
14143
  },
14144
14144
  update(n, e) {
14145
14145
  n = n.map(e.changes);
14146
14146
  for (let t of e.effects)
14147
14147
  if (t.is(eo) && !Z1(n, t.value.from, t.value.to)) {
14148
- let { preparePlaceholder: i } = e.state.facet(Ba), s = i ? te.replace({ widget: new D1(i(e.state, t.value)) }) : Mu;
14148
+ let { preparePlaceholder: i } = e.state.facet(Ba), s = i ? ie.replace({ widget: new D1(i(e.state, t.value)) }) : Mu;
14149
14149
  n = n.update({ add: [s.range(t.value.from, t.value.to)] });
14150
14150
  } else
14151
14151
  t.is(ds) && (n = n.update({
@@ -14182,7 +14182,7 @@ const Xi = /* @__PURE__ */ Le.define({
14182
14182
  throw new RangeError("Invalid JSON for fold state");
14183
14183
  e.push(Mu.range(i, s));
14184
14184
  }
14185
- return te.set(e, !0);
14185
+ return ie.set(e, !0);
14186
14186
  }
14187
14187
  });
14188
14188
  function Pr(n, e, t) {
@@ -14265,7 +14265,7 @@ function SO(n, e) {
14265
14265
  let r = document.createElement("span");
14266
14266
  return r.textContent = i.placeholderText, r.setAttribute("aria-label", t.phrase("folded code")), r.title = t.phrase("unfold"), r.className = "cm-foldPlaceholder", r.onclick = s, r;
14267
14267
  }
14268
- const Mu = /* @__PURE__ */ te.replace({ widget: /* @__PURE__ */ new class extends ti {
14268
+ const Mu = /* @__PURE__ */ ie.replace({ widget: /* @__PURE__ */ new class extends ti {
14269
14269
  toDOM(n) {
14270
14270
  return SO(n, null);
14271
14271
  }
@@ -14416,11 +14416,11 @@ class W1 {
14416
14416
  }
14417
14417
  buildDeco(e, t) {
14418
14418
  if (!t || !this.tree.length)
14419
- return te.none;
14419
+ return ie.none;
14420
14420
  let i = new Ft();
14421
14421
  for (let { from: s, to: r } of e.visibleRanges)
14422
14422
  m1(this.tree, t, (o, l, a) => {
14423
- i.add(o, l, this.markCache[a] || (this.markCache[a] = te.mark({ class: a })));
14423
+ i.add(o, l, this.markCache[a] || (this.markCache[a] = ie.mark({ class: a })));
14424
14424
  }, s, r);
14425
14425
  return i.finish();
14426
14426
  }
@@ -14517,14 +14517,14 @@ const B1 = /* @__PURE__ */ gi.high(/* @__PURE__ */ Ee.fromClass(W1, {
14517
14517
  renderMatch: F1
14518
14518
  });
14519
14519
  }
14520
- }), G1 = /* @__PURE__ */ te.mark({ class: "cm-matchingBracket" }), j1 = /* @__PURE__ */ te.mark({ class: "cm-nonmatchingBracket" });
14520
+ }), G1 = /* @__PURE__ */ ie.mark({ class: "cm-matchingBracket" }), j1 = /* @__PURE__ */ ie.mark({ class: "cm-nonmatchingBracket" });
14521
14521
  function F1(n) {
14522
14522
  let e = [], t = n.matched ? G1 : j1;
14523
14523
  return e.push(t.range(n.start.from, n.start.to)), n.end && e.push(t.range(n.end.from, n.end.to)), e;
14524
14524
  }
14525
14525
  const H1 = /* @__PURE__ */ Le.define({
14526
14526
  create() {
14527
- return te.none;
14527
+ return ie.none;
14528
14528
  },
14529
14529
  update(n, e) {
14530
14530
  if (!e.docChanged && !e.selection)
@@ -14536,7 +14536,7 @@ const H1 = /* @__PURE__ */ Le.define({
14536
14536
  let r = Vt(e.state, s.head, -1, i) || s.head > 0 && Vt(e.state, s.head - 1, 1, i) || i.afterCursor && (Vt(e.state, s.head, 1, i) || s.head < e.state.doc.length && Vt(e.state, s.head + 1, -1, i));
14537
14537
  r && (t = t.concat(i.renderMatch(r, e.state)));
14538
14538
  }
14539
- return te.set(t, !0);
14539
+ return ie.set(t, !0);
14540
14540
  },
14541
14541
  provide: (n) => j.decorations.from(n)
14542
14542
  }), K1 = [
@@ -15686,7 +15686,7 @@ function yy(n) {
15686
15686
  let e = [Py, $y];
15687
15687
  return n && e.push(hp.of(n)), e;
15688
15688
  }
15689
- const Sy = /* @__PURE__ */ te.mark({ class: "cm-selectionMatch" }), vy = /* @__PURE__ */ te.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
15689
+ const Sy = /* @__PURE__ */ ie.mark({ class: "cm-selectionMatch" }), vy = /* @__PURE__ */ ie.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
15690
15690
  function Ju(n, e, t, i) {
15691
15691
  return (t == 0 || n(e.sliceDoc(t - 1, t)) != Xe.Word) && (i == e.doc.length || n(e.sliceDoc(i, i + 1)) != Xe.Word);
15692
15692
  }
@@ -15703,24 +15703,24 @@ const $y = /* @__PURE__ */ Ee.fromClass(class {
15703
15703
  getDeco(n) {
15704
15704
  let e = n.state.facet(hp), { state: t } = n, i = t.selection;
15705
15705
  if (i.ranges.length > 1)
15706
- return te.none;
15706
+ return ie.none;
15707
15707
  let s = i.main, r, o = null;
15708
15708
  if (s.empty) {
15709
15709
  if (!e.highlightWordAroundCursor)
15710
- return te.none;
15710
+ return ie.none;
15711
15711
  let a = t.wordAt(s.head);
15712
15712
  if (!a)
15713
- return te.none;
15713
+ return ie.none;
15714
15714
  o = t.charCategorizer(s.head), r = t.sliceDoc(a.from, a.to);
15715
15715
  } else {
15716
15716
  let a = s.to - s.from;
15717
15717
  if (a < e.minSelectionLength || a > 200)
15718
- return te.none;
15718
+ return ie.none;
15719
15719
  if (e.wholeWords) {
15720
15720
  if (r = t.sliceDoc(s.from, s.to), o = t.charCategorizer(s.head), !(Ju(o, t, s.from, s.to) && xy(o, t, s.from, s.to)))
15721
- return te.none;
15721
+ return ie.none;
15722
15722
  } else if (r = t.sliceDoc(s.from, s.to), !r)
15723
- return te.none;
15723
+ return ie.none;
15724
15724
  }
15725
15725
  let l = [];
15726
15726
  for (let a of n.visibleRanges) {
@@ -15728,10 +15728,10 @@ const $y = /* @__PURE__ */ Ee.fromClass(class {
15728
15728
  for (; !u.next().done; ) {
15729
15729
  let { from: h, to: c } = u.value;
15730
15730
  if ((!o || Ju(o, t, h, c)) && (s.empty && h <= s.from && c >= s.to ? l.push(vy.range(h, c)) : (h >= s.to || c <= s.from) && l.push(Sy.range(h, c)), l.length > e.maxMatches))
15731
- return te.none;
15731
+ return ie.none;
15732
15732
  }
15733
15733
  }
15734
- return te.set(l);
15734
+ return ie.set(l);
15735
15735
  }
15736
15736
  }, {
15737
15737
  decorations: (n) => n.decorations
@@ -15966,7 +15966,7 @@ class Zo {
15966
15966
  this.query = e, this.panel = t;
15967
15967
  }
15968
15968
  }
15969
- const Ay = /* @__PURE__ */ te.mark({ class: "cm-searchMatch" }), Vy = /* @__PURE__ */ te.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Yy = /* @__PURE__ */ Ee.fromClass(class {
15969
+ const Ay = /* @__PURE__ */ ie.mark({ class: "cm-searchMatch" }), Vy = /* @__PURE__ */ ie.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Yy = /* @__PURE__ */ Ee.fromClass(class {
15970
15970
  constructor(n) {
15971
15971
  this.view = n, this.decorations = this.highlight(n.state.field(ui));
15972
15972
  }
@@ -15976,7 +15976,7 @@ const Ay = /* @__PURE__ */ te.mark({ class: "cm-searchMatch" }), Vy = /* @__PURE
15976
15976
  }
15977
15977
  highlight({ query: n, panel: e }) {
15978
15978
  if (!e || !n.spec.valid)
15979
- return te.none;
15979
+ return ie.none;
15980
15980
  let { view: t } = this, i = new Ft();
15981
15981
  for (let s = 0, r = t.visibleRanges, o = r.length; s < o; s++) {
15982
15982
  let { from: l, to: a } = r[s];
@@ -17290,7 +17290,7 @@ class sh {
17290
17290
  return new sh(i, s);
17291
17291
  }
17292
17292
  }
17293
- let mS = /* @__PURE__ */ te.widget({ widget: /* @__PURE__ */ new class extends ti {
17293
+ let mS = /* @__PURE__ */ ie.widget({ widget: /* @__PURE__ */ new class extends ti {
17294
17294
  toDOM() {
17295
17295
  let n = document.createElement("span");
17296
17296
  return n.className = "cm-snippetFieldPosition", n;
@@ -17298,10 +17298,10 @@ let mS = /* @__PURE__ */ te.widget({ widget: /* @__PURE__ */ new class extends t
17298
17298
  ignoreEvent() {
17299
17299
  return !1;
17300
17300
  }
17301
- }() }), gS = /* @__PURE__ */ te.mark({ class: "cm-snippetField" });
17301
+ }() }), gS = /* @__PURE__ */ ie.mark({ class: "cm-snippetField" });
17302
17302
  class mn {
17303
17303
  constructor(e, t) {
17304
- this.ranges = e, this.active = t, this.deco = te.set(e.map((i) => (i.from == i.to ? mS : gS).range(i.from, i.to)));
17304
+ this.ranges = e, this.active = t, this.deco = ie.set(e.map((i) => (i.from == i.to ? mS : gS).range(i.from, i.to)));
17305
17305
  }
17306
17306
  map(e) {
17307
17307
  let t = [];
@@ -17334,7 +17334,7 @@ const gs = /* @__PURE__ */ le.define({
17334
17334
  }
17335
17335
  return n && e.docChanged && (n = n.map(e.changes)), n && e.selection && !n.selectionInsideField(e.selection) && (n = null), n;
17336
17336
  },
17337
- provide: (n) => j.decorations.from(n, (e) => e ? e.deco : te.none)
17337
+ provide: (n) => j.decorations.from(n, (e) => e ? e.deco : ie.none)
17338
17338
  });
17339
17339
  function rh(n, e) {
17340
17340
  return D.create(n.filter((t) => t.field == e).map((t) => D.range(t.from, t.to)));
@@ -17640,13 +17640,13 @@ class xi {
17640
17640
  }
17641
17641
  let p = HS(l);
17642
17642
  if (l.some((_) => _.from == _.to || _.from == _.to - 1 && i.doc.lineAt(_.from).to == _.from))
17643
- o.add(f, f, te.widget({
17643
+ o.add(f, f, ie.widget({
17644
17644
  widget: new IS(p),
17645
17645
  diagnostics: l.slice()
17646
17646
  }));
17647
17647
  else {
17648
17648
  let _ = l.reduce((m, O) => O.markClass ? m + " " + O.markClass : m, "");
17649
- o.add(f, d, te.mark({
17649
+ o.add(f, d, ie.mark({
17650
17650
  class: "cm-lintRange cm-lintRange-" + p + _,
17651
17651
  diagnostics: l.slice(),
17652
17652
  inclusiveEnd: l.some((m) => m.to > d)
@@ -17685,7 +17685,7 @@ function DS(n, e) {
17685
17685
  }
17686
17686
  const wp = /* @__PURE__ */ le.define(), lh = /* @__PURE__ */ le.define(), kp = /* @__PURE__ */ le.define(), ht = /* @__PURE__ */ Le.define({
17687
17687
  create() {
17688
- return new xi(te.none, null, null);
17688
+ return new xi(ie.none, null, null);
17689
17689
  },
17690
17690
  update(n, e) {
17691
17691
  if (e.docChanged && n.diagnostics.size) {
@@ -17708,7 +17708,7 @@ const wp = /* @__PURE__ */ le.define(), lh = /* @__PURE__ */ le.define(), kp = /
17708
17708
  Fn.from(n, (e) => e.panel),
17709
17709
  j.decorations.from(n, (e) => e.diagnostics)
17710
17710
  ]
17711
- }), LS = /* @__PURE__ */ te.mark({ class: "cm-lintRange cm-lintRange-active" });
17711
+ }), LS = /* @__PURE__ */ ie.mark({ class: "cm-lintRange cm-lintRange-active" });
17712
17712
  function US(n, e, t) {
17713
17713
  let { diagnostics: i } = n.state.field(ht), s, r = -1, o = -1;
17714
17714
  i.between(e - (t < 0 ? 1 : 0), e + (t > 0 ? 1 : 0), (a, u, { spec: h }) => {
@@ -18039,7 +18039,7 @@ const KS = [
18039
18039
  ht,
18040
18040
  /* @__PURE__ */ j.decorations.compute([ht], (n) => {
18041
18041
  let { selected: e, panel: t } = n.field(ht);
18042
- return !e || !t || e.from == e.to ? te.none : te.set([
18042
+ return !e || !t || e.from == e.to ? ie.none : ie.set([
18043
18043
  LS.range(e.from, e.to)
18044
18044
  ]);
18045
18045
  }),
@@ -22042,7 +22042,7 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22042
22042
  r,
22043
22043
  o.update(l, { userEvent: "input.complete", scrollIntoView: !0 })
22044
22044
  ]), !0);
22045
- }), Pn = ["_blank", "_self", "_top", "_parent"], Fo = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], Ho = ["get", "post", "put", "delete"], Ko = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], lt = ["true", "false"], J = {}, bP = {
22045
+ }), Pn = ["_blank", "_self", "_top", "_parent"], Fo = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], Ho = ["get", "post", "put", "delete"], Ko = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], lt = ["true", "false"], ee = {}, bP = {
22046
22046
  a: {
22047
22047
  attrs: {
22048
22048
  href: null,
@@ -22053,8 +22053,8 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22053
22053
  hreflang: null
22054
22054
  }
22055
22055
  },
22056
- abbr: J,
22057
- address: J,
22056
+ abbr: ee,
22057
+ address: ee,
22058
22058
  area: {
22059
22059
  attrs: {
22060
22060
  alt: null,
@@ -22068,8 +22068,8 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22068
22068
  shape: ["default", "rect", "circle", "poly"]
22069
22069
  }
22070
22070
  },
22071
- article: J,
22072
- aside: J,
22071
+ article: ee,
22072
+ aside: ee,
22073
22073
  audio: {
22074
22074
  attrs: {
22075
22075
  src: null,
@@ -22081,13 +22081,13 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22081
22081
  controls: ["controls"]
22082
22082
  }
22083
22083
  },
22084
- b: J,
22084
+ b: ee,
22085
22085
  base: { attrs: { href: null, target: Pn } },
22086
- bdi: J,
22087
- bdo: J,
22086
+ bdi: ee,
22087
+ bdo: ee,
22088
22088
  blockquote: { attrs: { cite: null } },
22089
- body: J,
22090
- br: J,
22089
+ body: ee,
22090
+ br: ee,
22091
22091
  button: {
22092
22092
  attrs: {
22093
22093
  form: null,
@@ -22104,10 +22104,10 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22104
22104
  }
22105
22105
  },
22106
22106
  canvas: { attrs: { width: null, height: null } },
22107
- caption: J,
22108
- center: J,
22109
- cite: J,
22110
- code: J,
22107
+ caption: ee,
22108
+ center: ee,
22109
+ cite: ee,
22110
+ code: ee,
22111
22111
  col: { attrs: { span: null } },
22112
22112
  colgroup: { attrs: { span: null } },
22113
22113
  command: {
@@ -22125,20 +22125,20 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22125
22125
  data: { attrs: { value: null } },
22126
22126
  datagrid: { attrs: { disabled: ["disabled"], multiple: ["multiple"] } },
22127
22127
  datalist: { attrs: { data: null } },
22128
- dd: J,
22128
+ dd: ee,
22129
22129
  del: { attrs: { cite: null, datetime: null } },
22130
22130
  details: { attrs: { open: ["open"] } },
22131
- dfn: J,
22132
- div: J,
22133
- dl: J,
22134
- dt: J,
22135
- em: J,
22131
+ dfn: ee,
22132
+ div: ee,
22133
+ dl: ee,
22134
+ dt: ee,
22135
+ em: ee,
22136
22136
  embed: { attrs: { src: null, type: null, width: null, height: null } },
22137
22137
  eventsource: { attrs: { src: null } },
22138
22138
  fieldset: { attrs: { disabled: ["disabled"], form: null, name: null } },
22139
- figcaption: J,
22140
- figure: J,
22141
- footer: J,
22139
+ figcaption: ee,
22140
+ figure: ee,
22141
+ footer: ee,
22142
22142
  form: {
22143
22143
  attrs: {
22144
22144
  action: null,
@@ -22151,22 +22151,22 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22151
22151
  target: Pn
22152
22152
  }
22153
22153
  },
22154
- h1: J,
22155
- h2: J,
22156
- h3: J,
22157
- h4: J,
22158
- h5: J,
22159
- h6: J,
22154
+ h1: ee,
22155
+ h2: ee,
22156
+ h3: ee,
22157
+ h4: ee,
22158
+ h5: ee,
22159
+ h6: ee,
22160
22160
  head: {
22161
22161
  children: ["title", "base", "link", "style", "meta", "script", "noscript", "command"]
22162
22162
  },
22163
- header: J,
22164
- hgroup: J,
22165
- hr: J,
22163
+ header: ee,
22164
+ hgroup: ee,
22165
+ hr: ee,
22166
22166
  html: {
22167
22167
  attrs: { manifest: null }
22168
22168
  },
22169
- i: J,
22169
+ i: ee,
22170
22170
  iframe: {
22171
22171
  attrs: {
22172
22172
  src: null,
@@ -22248,7 +22248,7 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22248
22248
  }
22249
22249
  },
22250
22250
  ins: { attrs: { cite: null, datetime: null } },
22251
- kbd: J,
22251
+ kbd: ee,
22252
22252
  keygen: {
22253
22253
  attrs: {
22254
22254
  challenge: null,
@@ -22260,7 +22260,7 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22260
22260
  }
22261
22261
  },
22262
22262
  label: { attrs: { for: null, form: null } },
22263
- legend: J,
22263
+ legend: ee,
22264
22264
  li: { attrs: { value: null } },
22265
22265
  link: {
22266
22266
  attrs: {
@@ -22272,7 +22272,7 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22272
22272
  }
22273
22273
  },
22274
22274
  map: { attrs: { name: null } },
22275
- mark: J,
22275
+ mark: ee,
22276
22276
  menu: { attrs: { label: null, type: ["list", "context", "toolbar"] } },
22277
22277
  meta: {
22278
22278
  attrs: {
@@ -22283,8 +22283,8 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22283
22283
  }
22284
22284
  },
22285
22285
  meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },
22286
- nav: J,
22287
- noscript: J,
22286
+ nav: ee,
22287
+ noscript: ee,
22288
22288
  object: {
22289
22289
  attrs: {
22290
22290
  data: null,
@@ -22304,15 +22304,15 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22304
22304
  optgroup: { attrs: { disabled: ["disabled"], label: null } },
22305
22305
  option: { attrs: { disabled: ["disabled"], label: null, selected: ["selected"], value: null } },
22306
22306
  output: { attrs: { for: null, form: null, name: null } },
22307
- p: J,
22307
+ p: ee,
22308
22308
  param: { attrs: { name: null, value: null } },
22309
- pre: J,
22309
+ pre: ee,
22310
22310
  progress: { attrs: { value: null, max: null } },
22311
22311
  q: { attrs: { cite: null } },
22312
- rp: J,
22313
- rt: J,
22314
- ruby: J,
22315
- samp: J,
22312
+ rp: ee,
22313
+ rt: ee,
22314
+ ruby: ee,
22315
+ samp: ee,
22316
22316
  script: {
22317
22317
  attrs: {
22318
22318
  type: ["text/javascript"],
@@ -22322,7 +22322,7 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22322
22322
  charset: Fo
22323
22323
  }
22324
22324
  },
22325
- section: J,
22325
+ section: ee,
22326
22326
  select: {
22327
22327
  attrs: {
22328
22328
  form: null,
@@ -22334,10 +22334,10 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22334
22334
  }
22335
22335
  },
22336
22336
  slot: { attrs: { name: null } },
22337
- small: J,
22337
+ small: ee,
22338
22338
  source: { attrs: { src: null, type: null, media: null } },
22339
- span: J,
22340
- strong: J,
22339
+ span: ee,
22340
+ strong: ee,
22341
22341
  style: {
22342
22342
  attrs: {
22343
22343
  type: ["text/css"],
@@ -22345,13 +22345,13 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22345
22345
  scoped: null
22346
22346
  }
22347
22347
  },
22348
- sub: J,
22349
- summary: J,
22350
- sup: J,
22351
- table: J,
22352
- tbody: J,
22348
+ sub: ee,
22349
+ summary: ee,
22350
+ sup: ee,
22351
+ table: ee,
22352
+ tbody: ee,
22353
22353
  td: { attrs: { colspan: null, rowspan: null, headers: null } },
22354
- template: J,
22354
+ template: ee,
22355
22355
  textarea: {
22356
22356
  attrs: {
22357
22357
  dirname: null,
@@ -22368,12 +22368,12 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22368
22368
  wrap: ["soft", "hard"]
22369
22369
  }
22370
22370
  },
22371
- tfoot: J,
22371
+ tfoot: ee,
22372
22372
  th: { attrs: { colspan: null, rowspan: null, headers: null, scope: ["row", "col", "rowgroup", "colgroup"] } },
22373
- thead: J,
22373
+ thead: ee,
22374
22374
  time: { attrs: { datetime: null } },
22375
- title: J,
22376
- tr: J,
22375
+ title: ee,
22376
+ tr: ee,
22377
22377
  track: {
22378
22378
  attrs: {
22379
22379
  src: null,
@@ -22384,7 +22384,7 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22384
22384
  }
22385
22385
  },
22386
22386
  ul: { children: ["li", "script", "template", "ul", "ol"] },
22387
- var: J,
22387
+ var: ee,
22388
22388
  video: {
22389
22389
  attrs: {
22390
22390
  src: null,
@@ -22399,7 +22399,7 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22399
22399
  controls: ["controls"]
22400
22400
  }
22401
22401
  },
22402
- wbr: J
22402
+ wbr: ee
22403
22403
  }, bm = {
22404
22404
  accesskey: null,
22405
22405
  class: null,
@@ -24729,7 +24729,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24729
24729
  colFixed: !1,
24730
24730
  rowSize: 40,
24731
24731
  rowFixed: !1
24732
- }), m = be(() => r.value && o.value && o.value.type ? [ee.TEXT, ee.FIELD, ee.FUN].includes(o.value.type) : [ee.TEXT, ee.FIELD, ee.FUN].includes(_.type));
24732
+ }), m = be(() => r.value && o.value && o.value.type ? [te.TEXT, te.FIELD, te.FUN].includes(o.value.type) : [te.TEXT, te.FIELD, te.FUN].includes(_.type));
24733
24733
  let O = ue(null);
24734
24734
  function y() {
24735
24735
  if (s.value && t.value && s.value.length) {
@@ -24745,15 +24745,15 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24745
24745
  let de = (Ce = t.value) == null ? void 0 : Ce.colConfig[_e];
24746
24746
  de && de.isFixed;
24747
24747
  });
24748
- const q = Math.min(...A), Y = Math.min(...v), W = Math.max(...A), ne = Math.max(...v), ie = W - q + 1, V = ne - Y + 1;
24749
- for (let _e = Y; _e <= ne; _e++)
24748
+ const q = Math.min(...A), Y = Math.min(...v), W = Math.max(...A), J = Math.max(...v), ne = W - q + 1, V = J - Y + 1;
24749
+ for (let _e = Y; _e <= J; _e++)
24750
24750
  for (let de = q; de <= W; de++) {
24751
24751
  const Ce = t.value.config[_e][de];
24752
- _e === Y && de === q ? (Ce.colSpan = ie, Ce.rowSpan = V) : (Ce.colSpan = 0, Ce.rowSpan = 0, Ce.mergeTarget = [Y, q]);
24752
+ _e === Y && de === q ? (Ce.colSpan = ne, Ce.rowSpan = V) : (Ce.colSpan = 0, Ce.rowSpan = 0, Ce.mergeTarget = [Y, q]);
24753
24753
  }
24754
24754
  s.value = [
24755
24755
  {
24756
- type: ee.CELL,
24756
+ type: te.CELL,
24757
24757
  row: Y,
24758
24758
  col: q,
24759
24759
  index: i.value
@@ -24773,8 +24773,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24773
24773
  colSpan: q.colSpan
24774
24774
  });
24775
24775
  }), A.forEach((v) => {
24776
- const { row: q, col: Y, rowSpan: W, colSpan: ne } = v, ie = q + W - 1, V = Y + ne - 1;
24777
- for (let _e = q; _e <= ie; _e++)
24776
+ const { row: q, col: Y, rowSpan: W, colSpan: J } = v, ne = q + W - 1, V = Y + J - 1;
24777
+ for (let _e = q; _e <= ne; _e++)
24778
24778
  for (let de = Y; de <= V; de++) {
24779
24779
  const Ce = t.value.config[_e][de];
24780
24780
  Ce.colSpan = 1, Ce.rowSpan = 1, Ce.mergeTarget = void 0;
@@ -24805,7 +24805,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24805
24805
  function C() {
24806
24806
  s.value && t.value && s.value.length && s.value.forEach((A) => {
24807
24807
  let v = t.value.config[A.row][A.col];
24808
- v.type = ee.TEXT, v.format = void 0, v.text = "", v.formatType = { numberDecimal: 0, numberUseGrouping: !1, currencySymbol: "¥", scientificNotation: "e", digits: 0, date: "YYYY-MM-DD HH:mm:ss" }, v.data = "", v.style = {
24808
+ v.type = te.TEXT, v.format = void 0, v.text = "", v.formatType = { numberDecimal: 0, numberUseGrouping: !1, currencySymbol: "¥", scientificNotation: "e", digits: 0, date: "YYYY-MM-DD HH:mm:ss" }, v.data = "", v.style = {
24809
24809
  backgroundColor: "",
24810
24810
  color: "",
24811
24811
  textAlign: "center",
@@ -24822,26 +24822,26 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24822
24822
  if (A && A.length && t.value)
24823
24823
  if (r.value = A.length === 1, r.value) {
24824
24824
  let q = A[0];
24825
- o.value = t.value.config[q.row][q.col], a.value = [q.col], u.value = [q.row], c.value = t.value.rowConfig[q.row], d.value = t.value.colConfig[q.col], h.value = !0, f.value = !0, o.value && o.value.type && (l.value = [ee.TEXT, ee.FIELD].includes(o.value.type)), Object.entries(p).forEach(([Y, W]) => {
24825
+ o.value = t.value.config[q.row][q.col], a.value = [q.col], u.value = [q.row], c.value = t.value.rowConfig[q.row], d.value = t.value.colConfig[q.col], h.value = !0, f.value = !0, o.value && o.value.type && (l.value = [te.TEXT, te.FIELD].includes(o.value.type)), Object.entries(p).forEach(([Y, W]) => {
24826
24826
  _[Y] = W;
24827
24827
  }), o.value && Object.entries(o.value).forEach(([Y, W]) => {
24828
- Y === "formatType" ? (_.formatType || (_.formatType = {}), Object.entries(W).forEach(([ne, ie]) => {
24829
- _.formatType[ne] = ie;
24830
- })) : Y === "style" ? Object.entries(W).forEach(([ne, ie]) => {
24831
- _[ne] = ie;
24828
+ Y === "formatType" ? (_.formatType || (_.formatType = {}), Object.entries(W).forEach(([J, ne]) => {
24829
+ _.formatType[J] = ne;
24830
+ })) : Y === "style" ? Object.entries(W).forEach(([J, ne]) => {
24831
+ _[J] = ne;
24832
24832
  }) : _[Y] = W;
24833
24833
  });
24834
24834
  } else {
24835
24835
  o.value = null;
24836
24836
  const q = /* @__PURE__ */ new Set(), Y = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map();
24837
- l.value = !0, A.forEach((ne) => {
24838
- q.add(ne.col), Y.add(ne.row);
24839
- const ie = t.value.config[ne.row][ne.col];
24840
- ie.type && ![ee.TEXT, ee.FIELD].includes(ie.type) && (l.value = !1), Object.entries(ie).forEach(([V, _e]) => {
24837
+ l.value = !0, A.forEach((J) => {
24838
+ q.add(J.col), Y.add(J.row);
24839
+ const ne = t.value.config[J.row][J.col];
24840
+ ne.type && ![te.TEXT, te.FIELD].includes(ne.type) && (l.value = !1), Object.entries(ne).forEach(([V, _e]) => {
24841
24841
  W.get(V) || W.set(V, /* @__PURE__ */ new Set()), W.get(V).add(_e);
24842
24842
  });
24843
- }), l.value && Object.entries(p).forEach(([ne, ie]) => {
24844
- _[ne] = ie;
24843
+ }), l.value && Object.entries(p).forEach(([J, ne]) => {
24844
+ _[J] = ne;
24845
24845
  }), a.value = [...q], u.value = [...Y], f.value = q.size === 1, h.value = Y.size === 1, f ? d.value = t.value.colConfig[a.value[0]] : d.value = null, h ? c.value = t.value.rowConfig[u.value[0]] : c.value = null;
24846
24846
  }
24847
24847
  A && A.length === 0 && t.value && (r.value = !1, o.value = null, l.value = !1, a.value = [], u.value = [], h.value = !1, c.value = null, f.value = !1, d.value = null);
@@ -24855,12 +24855,12 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24855
24855
  function P(A, v, q) {
24856
24856
  v === "cell" && s.value.forEach((Y) => {
24857
24857
  if (ni(t.value.config[Y.row][Y.col], q, A), q === "data" && !A && o.value && (o.value.isGroup = !1, o.value.isRowColCombine = !1), q === "fun") {
24858
- const { isError: W, result: ne } = ig(A, !1);
24859
- W ? w.value = ne : w.value = "";
24858
+ const { isError: W, result: J } = ig(A, !1);
24859
+ W ? w.value = J : w.value = "";
24860
24860
  }
24861
24861
  if (q === "type" && t.value)
24862
24862
  switch (A) {
24863
- case ee.TEXT:
24863
+ case te.TEXT:
24864
24864
  ni(t.value.config[Y.row][Y.col], "data", ""), ni(t.value.config[Y.row][Y.col], "fun", ""), ni(t.value.config[Y.row][Y.col], "format", Re.TEXT), _.format = Re.TEXT;
24865
24865
  }
24866
24866
  }), v === "row" && u.value.forEach((Y) => {
@@ -24914,7 +24914,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24914
24914
  size: 80
24915
24915
  }), (v = t.value) == null || v.config.forEach((Y) => {
24916
24916
  Y.splice(q, 0, {
24917
- type: ee.TEXT,
24917
+ type: te.TEXT,
24918
24918
  colSpan: 1,
24919
24919
  rowSpan: 1
24920
24920
  });
@@ -24937,7 +24937,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24937
24937
  size: 80
24938
24938
  }), (v = t.value) == null || v.config.forEach((Y) => {
24939
24939
  Y.splice(q, 0, {
24940
- type: ee.TEXT,
24940
+ type: te.TEXT,
24941
24941
  colSpan: 1,
24942
24942
  rowSpan: 1
24943
24943
  });
@@ -24954,7 +24954,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24954
24954
  q,
24955
24955
  0,
24956
24956
  t.value.colConfig.map(() => ({
24957
- type: ee.TEXT,
24957
+ type: te.TEXT,
24958
24958
  colSpan: 1,
24959
24959
  rowSpan: 1
24960
24960
  }))
@@ -24977,7 +24977,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24977
24977
  q,
24978
24978
  0,
24979
24979
  t.value.colConfig.map(() => ({
24980
- type: ee.TEXT,
24980
+ type: te.TEXT,
24981
24981
  colSpan: 1,
24982
24982
  rowSpan: 1
24983
24983
  }))
@@ -24985,7 +24985,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24985
24985
  }
24986
24986
  }
24987
24987
  return (A, v) => {
24988
- const q = fe("el-button-group"), Y = fe("el-col"), W = fe("el-option"), ne = fe("el-select"), ie = fe("el-input-number");
24988
+ const q = fe("el-button-group"), Y = fe("el-col"), W = fe("el-option"), J = fe("el-select"), ne = fe("el-input-number");
24989
24989
  return U(), K(re, null, [
24990
24990
  b(s) && b(s).length ? (U(), K(re, { key: 0 }, [
24991
24991
  zP,
@@ -25116,7 +25116,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25116
25116
  ]),
25117
25117
  _: 1
25118
25118
  }, 512), [
25119
- [Tt, o.value.type === b(ee).TEXT]
25119
+ [Tt, o.value.type === b(te).TEXT]
25120
25120
  ]),
25121
25121
  kt(Q(Y, { span: 24 }, {
25122
25122
  default: x(() => [
@@ -25125,7 +25125,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25125
25125
  label: "数据字段"
25126
25126
  }, {
25127
25127
  default: x(() => [
25128
- Q(ne, {
25128
+ Q(J, {
25129
25129
  modelValue: o.value.data,
25130
25130
  "onUpdate:modelValue": v[4] || (v[4] = (V) => o.value.data = V),
25131
25131
  clearable: "",
@@ -25158,7 +25158,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25158
25158
  ]),
25159
25159
  _: 1
25160
25160
  }, 512), [
25161
- [Tt, o.value.type === b(ee).FIELD]
25161
+ [Tt, o.value.type === b(te).FIELD]
25162
25162
  ]),
25163
25163
  kt(Q(Y, { span: 24 }, {
25164
25164
  default: x(() => [
@@ -25178,7 +25178,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25178
25178
  ]),
25179
25179
  _: 1
25180
25180
  }, 512), [
25181
- [Tt, o.value.type === b(ee).FUN]
25181
+ [Tt, o.value.type === b(te).FUN]
25182
25182
  ]),
25183
25183
  kt(Q(Y, { span: 24 }, {
25184
25184
  default: x(() => [
@@ -25208,7 +25208,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25208
25208
  ]),
25209
25209
  _: 1
25210
25210
  }, 512), [
25211
- [Tt, o.value.type === b(ee).FIELD && _.format !== b(Re).STRING]
25211
+ [Tt, o.value.type === b(te).FIELD && _.format !== b(Re).STRING]
25212
25212
  ])
25213
25213
  ], 64)) : ae("", !0),
25214
25214
  b(m) ? (U(), K(re, { key: 1 }, [
@@ -25266,7 +25266,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25266
25266
  default: x(() => [
25267
25267
  Q(b(he), { label: "字体大小" }, {
25268
25268
  default: x(() => [
25269
- Q(ie, {
25269
+ Q(ne, {
25270
25270
  modelValue: _.fontSize,
25271
25271
  "onUpdate:modelValue": v[17] || (v[17] = (V) => _.fontSize = V),
25272
25272
  "controls-position": "right",
@@ -25284,7 +25284,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25284
25284
  default: x(() => [
25285
25285
  Q(b(he), { label: "字体类型" }, {
25286
25286
  default: x(() => [
25287
- Q(ne, {
25287
+ Q(J, {
25288
25288
  modelValue: _.fontFamily,
25289
25289
  "onUpdate:modelValue": v[19] || (v[19] = (V) => _.fontFamily = V),
25290
25290
  onChange: v[20] || (v[20] = (V) => P(V, "cell", "style.fontFamily")),
@@ -25519,7 +25519,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25519
25519
  ]),
25520
25520
  _: 1
25521
25521
  }, 8, ["label"]),
25522
- _.type === b(ee).FIELD ? (U(), oe(b(we), {
25522
+ _.type === b(te).FIELD ? (U(), oe(b(we), {
25523
25523
  key: 0,
25524
25524
  label: b(Re).STRING,
25525
25525
  title: "自定义格式化"
@@ -25543,7 +25543,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25543
25543
  default: x(() => [
25544
25544
  Q(b(he), { label: "小数位数" }, {
25545
25545
  default: x(() => [
25546
- Q(ie, {
25546
+ Q(ne, {
25547
25547
  modelValue: _.formatType.numberDecimal,
25548
25548
  "onUpdate:modelValue": v[27] || (v[27] = (V) => _.formatType.numberDecimal = V),
25549
25549
  onInput: v[28] || (v[28] = (V) => P(V, "cell", "formatType.numberDecimal")),
@@ -25657,7 +25657,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25657
25657
  default: x(() => [
25658
25658
  Q(b(he), { label: "指数精度" }, {
25659
25659
  default: x(() => [
25660
- Q(ie, {
25660
+ Q(ne, {
25661
25661
  min: 0,
25662
25662
  max: 20,
25663
25663
  "controls-position": "right",
@@ -25676,7 +25676,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25676
25676
  default: x(() => [
25677
25677
  Q(b(he), { label: "日期格式" }, {
25678
25678
  default: x(() => [
25679
- Q(ne, {
25679
+ Q(J, {
25680
25680
  filterable: "",
25681
25681
  modelValue: _.formatType.date,
25682
25682
  "onUpdate:modelValue": v[37] || (v[37] = (V) => _.formatType.date = V),
@@ -25775,7 +25775,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25775
25775
  default: x(() => [
25776
25776
  Q(b(he), { label: "行高" }, {
25777
25777
  default: x(() => [
25778
- Q(ie, {
25778
+ Q(ne, {
25779
25779
  "controls-position": "right",
25780
25780
  modelValue: _.rowSize,
25781
25781
  "onUpdate:modelValue": v[40] || (v[40] = (V) => _.rowSize = V),
@@ -25815,7 +25815,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25815
25815
  default: x(() => [
25816
25816
  Q(b(he), { label: "数据源" }, {
25817
25817
  default: x(() => [
25818
- Q(ne, {
25818
+ Q(J, {
25819
25819
  modelValue: c.value.data,
25820
25820
  "onUpdate:modelValue": v[45] || (v[45] = (V) => c.value.data = V),
25821
25821
  onChange: v[46] || (v[46] = (V) => P(V, "row", "data")),
@@ -25859,7 +25859,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25859
25859
  default: x(() => [
25860
25860
  Q(b(he), { label: "数据下标" }, {
25861
25861
  default: x(() => [
25862
- Q(ie, {
25862
+ Q(ne, {
25863
25863
  min: 0,
25864
25864
  modelValue: c.value.dataIndex,
25865
25865
  "onUpdate:modelValue": v[49] || (v[49] = (V) => c.value.dataIndex = V),
@@ -25914,7 +25914,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25914
25914
  default: x(() => [
25915
25915
  Q(b(he), { label: "列宽" }, {
25916
25916
  default: x(() => [
25917
- Q(ie, {
25917
+ Q(ne, {
25918
25918
  "controls-position": "right",
25919
25919
  modelValue: _.colSize,
25920
25920
  "onUpdate:modelValue": v[51] || (v[51] = (V) => _.colSize = V)
@@ -25953,7 +25953,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25953
25953
  default: x(() => [
25954
25954
  Q(b(he), { label: "数据源" }, {
25955
25955
  default: x(() => [
25956
- Q(ne, {
25956
+ Q(J, {
25957
25957
  modelValue: d.value.data,
25958
25958
  "onUpdate:modelValue": v[55] || (v[55] = (V) => d.value.data = V),
25959
25959
  onChange: v[56] || (v[56] = (V) => P(V, "col", "data")),
@@ -25996,7 +25996,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25996
25996
  default: x(() => [
25997
25997
  Q(b(he), { label: "数据下标" }, {
25998
25998
  default: x(() => [
25999
- Q(ie, {
25999
+ Q(ne, {
26000
26000
  min: 0,
26001
26001
  modelValue: d.value.dataIndex,
26002
26002
  "onUpdate:modelValue": v[59] || (v[59] = (V) => d.value.dataIndex = V),
@@ -27466,13 +27466,13 @@ const Fw = { class: "statement-design-top" }, Hw = { class: "statement-name" },
27466
27466
  if (se) {
27467
27467
  let { columnIndex: z, dataSource: A } = JSON.parse(se);
27468
27468
  if (z && A && s.value) {
27469
- let { key: v } = A, { columnName: q } = A.columns[z], { col: Y, row: W } = E.dataset;
27470
- s.value.config[W][Y].type = ee.FIELD, T.shiftKey ? (s.value.colConfig[Y].data = v, s.value.colConfig[Y].loop = !0, s.value.config[W][Y].data = `col:${q}`) : (s.value.rowConfig[W].data = v, s.value.rowConfig[W].loop = !0, s.value.config[W][Y].data = `row:${q}`), r.value = [
27469
+ let { key: v } = A, { columnName: q, name: Y } = A.columns[z], { col: W, row: J } = E.dataset;
27470
+ T.ctrlKey ? (s.value.config[J][W].type = te.TEXT, s.value.config[J][W].text = Y) : (s.value.config[J][W].type = te.FIELD, T.shiftKey ? (s.value.colConfig[W].data = v, s.value.colConfig[W].loop = !0, s.value.config[J][W].data = `col:${q}`) : (s.value.rowConfig[J].data = v, s.value.rowConfig[J].loop = !0, s.value.config[J][W].data = `row:${q}`)), r.value = [
27471
27471
  {
27472
- type: ee.CELL,
27472
+ type: te.CELL,
27473
27473
  index: parseInt(N),
27474
- row: parseInt(W),
27475
- col: parseInt(Y)
27474
+ row: parseInt(J),
27475
+ col: parseInt(W)
27476
27476
  }
27477
27477
  ];
27478
27478
  }
@@ -27658,4 +27658,4 @@ const Fw = { class: "statement-design-top" }, Hw = { class: "statement-name" },
27658
27658
  export {
27659
27659
  xk as default
27660
27660
  };
27661
- //# sourceMappingURL=StatementDesign-d556a432.mjs.map
27661
+ //# sourceMappingURL=StatementDesign-c631779a.mjs.map