alit-layout 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as Z, openBlock as s, createElementBlock as d, Fragment as M, renderList as V, createElementVNode as g, normalizeStyle as G, unref as x, toDisplayString as X, createCommentVNode as P, ref as Q, watch as De, normalizeClass as te, computed as A, createBlock as U, createTextVNode as Ke, createVNode as K, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Ve, nextTick as Ze, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as mt, normalizeProps as yt, guardReactiveProps as _t, withCtx as Tt, inject as Rt, withDirectives as ft, provide as Wt } from "vue";
1
+ import { defineComponent as Z, openBlock as s, createElementBlock as d, Fragment as M, renderList as V, createElementVNode as g, normalizeStyle as W, unref as x, toDisplayString as X, createCommentVNode as P, ref as Q, watch as De, normalizeClass as te, computed as A, createBlock as U, createTextVNode as Ke, createVNode as K, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Ve, nextTick as Ze, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as mt, normalizeProps as yt, guardReactiveProps as _t, withCtx as Tt, inject as Rt, withDirectives as ft, provide as Gt } from "vue";
2
2
  const Lt = {
3
3
  // 选择题
4
4
  choice: "MULTIPLE_RADIO_QUESTION",
@@ -36,7 +36,7 @@ const Lt = {
36
36
  another: "ADDITIONAL_QUESTION",
37
37
  // 附加选做题
38
38
  another_choice: "ADDITIONAL_CHOOSE_QUESTION"
39
- }, Gt = {
39
+ }, Wt = {
40
40
  // 文本
41
41
  __text: "TXT",
42
42
  // 文案
@@ -1347,7 +1347,7 @@ const Lt = {
1347
1347
  ]
1348
1348
  }
1349
1349
  }, no = {
1350
- [Gt.__cdest]: [
1350
+ [Wt.__cdest]: [
1351
1351
  {
1352
1352
  type: "radio",
1353
1353
  label: "边框显示控制",
@@ -1613,26 +1613,26 @@ const Lt = {
1613
1613
  (s(), d(M, null, V(["lt", "rt", "lb", "rb"], (u) => g("span", {
1614
1614
  key: u,
1615
1615
  class: "absolute w-8 bg-black point_item",
1616
- style: G(o(u)),
1616
+ style: W(o(u)),
1617
1617
  "data-xine": x(C).point + u
1618
1618
  }, null, 12, yo)), 64)),
1619
1619
  (s(!0), d(M, null, V((l.currentPage % 2 ? l.layout.backColumn : l.layout.column) - 1, (u) => (s(), d(M, { key: u }, [
1620
1620
  (s(), d(M, null, V(["t", "b"], (y) => g("span", {
1621
1621
  key: y,
1622
1622
  class: "absolute bg-black w-8 point_item",
1623
- style: G(n(u, y)),
1623
+ style: W(n(u, y)),
1624
1624
  "data-xine": x(C).point + y
1625
1625
  }, null, 12, _o)), 64))
1626
1626
  ], 64))), 128)),
1627
1627
  (s(), d(M, null, V(["l", "r"], (u) => g("span", {
1628
1628
  key: u,
1629
1629
  class: "absolute bg-black h-8",
1630
- style: G(r(u)),
1630
+ style: W(r(u)),
1631
1631
  "data-xine": x(C).point + u
1632
1632
  }, null, 12, fo)), 64)),
1633
1633
  g("p", {
1634
1634
  class: "absolute leading-none text-0",
1635
- style: G(a()),
1635
+ style: W(a()),
1636
1636
  "data-xine": x(C).page
1637
1637
  }, [
1638
1638
  (s(!0), d(M, null, V(l.currentPage + 1, (u, y) => (s(), d("span", {
@@ -1644,22 +1644,22 @@ const Lt = {
1644
1644
  l.currentPage % 2 ? P("", !0) : (s(), d("span", {
1645
1645
  key: 0,
1646
1646
  class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
1647
- style: G({ right: `${l.padding.right - 12}px` })
1647
+ style: W({ right: `${l.padding.right - 12}px` })
1648
1648
  }, "提示:本卷" + X((c = x(Oe).find((u) => u.code === l.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
1649
1649
  g("span", {
1650
1650
  class: "absolute text-sm red_sheet",
1651
- style: G({ right: `${l.padding.bottom - 20 + 75}px`, bottom: `${l.padding.bottom - 20 - 3}px` })
1651
+ style: W({ right: `${l.padding.bottom - 20 + 75}px`, bottom: `${l.padding.bottom - 20 - 3}px` })
1652
1652
  }, X(l.currentPage + 1) + "/" + X(l.totalPage), 5)
1653
1653
  ], 64);
1654
1654
  };
1655
1655
  }
1656
1656
  });
1657
- const re = (e, t) => {
1657
+ const ce = (e, t) => {
1658
1658
  const o = e.__vccOpts || e;
1659
1659
  for (const [a, n] of t)
1660
1660
  o[a] = n;
1661
1661
  return o;
1662
- }, wo = /* @__PURE__ */ re(vo, [["__scopeId", "data-v-44fe37c1"]]), xo = { class: "flex-1" }, ko = ["type", "placeholder", "maxlength", "value"], Co = {
1662
+ }, wo = /* @__PURE__ */ ce(vo, [["__scopeId", "data-v-44fe37c1"]]), xo = { class: "flex-1" }, ko = ["type", "placeholder", "maxlength", "value"], Co = {
1663
1663
  key: 0,
1664
1664
  class: "flex-shrink-0 ml-2 text-text3"
1665
1665
  }, et = /* @__PURE__ */ Z({
@@ -1731,7 +1731,7 @@ const re = (e, t) => {
1731
1731
  size: "small",
1732
1732
  autoLine: "",
1733
1733
  dir: "right",
1734
- style: G(n.value),
1734
+ style: W(n.value),
1735
1735
  onChange: l[0] || (l[0] = (i) => t("change", { slogin: i }))
1736
1736
  }, null, 8, ["value", "style"]));
1737
1737
  }
@@ -1758,7 +1758,7 @@ const re = (e, t) => {
1758
1758
  ]));
1759
1759
  }
1760
1760
  });
1761
- const _e = /* @__PURE__ */ re(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { class: "flex items-center text-black text-sm h-6 mb-2" }, Fo = {
1761
+ const _e = /* @__PURE__ */ ce(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { class: "flex items-center text-black text-sm h-6 mb-2" }, Fo = {
1762
1762
  key: 0,
1763
1763
  class: "flex items-center"
1764
1764
  }, Eo = { class: "px-2 ml-2 border leading-none" }, Mo = /* @__PURE__ */ Z({
@@ -1805,7 +1805,7 @@ const _e = /* @__PURE__ */ re(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1805
1805
  }, zo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "范围:", -1), Ho = {
1806
1806
  key: 1,
1807
1807
  class: "flex items-center w-40 mx-4"
1808
- }, Ro = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "时间:", -1), Wo = /* @__PURE__ */ g("span", null, "分钟", -1), Go = {
1808
+ }, Ro = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "时间:", -1), Go = /* @__PURE__ */ g("span", null, "分钟", -1), Wo = {
1809
1809
  key: 2,
1810
1810
  class: "flex mx-4 min-w-[80px]"
1811
1811
  }, Yo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "命题人:", -1), qo = {
@@ -1836,14 +1836,14 @@ const _e = /* @__PURE__ */ re(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1836
1836
  K(Be, {
1837
1837
  class: "w-full text-center border-2 border-transparent focus:border-current",
1838
1838
  value: l.info.title,
1839
- style: G(l.fontConfig.titleStyle),
1839
+ style: W(l.fontConfig.titleStyle),
1840
1840
  onChange: i[0] || (i[0] = (c) => t("change", { title: c }))
1841
1841
  }, null, 8, ["value", "style"]),
1842
1842
  l.layout.secTitleFlag ? (s(), U(Be, {
1843
1843
  key: 0,
1844
1844
  class: "w-full text-center border-2 border-transparent focus:border-current",
1845
1845
  value: l.info.secTitle,
1846
- style: G(l.fontConfig.halfTitleStyle),
1846
+ style: W(l.fontConfig.halfTitleStyle),
1847
1847
  onChange: i[1] || (i[1] = (c) => t("change", { secTitle: c }))
1848
1848
  }, null, 8, ["value", "style"])) : P("", !0),
1849
1849
  g("div", Bo, [
@@ -1866,9 +1866,9 @@ const _e = /* @__PURE__ */ re(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1866
1866
  placeholder: "",
1867
1867
  onChange: i[3] || (i[3] = (c) => t("change", { time: c }))
1868
1868
  }, null, 8, ["value"]),
1869
- Wo
1869
+ Go
1870
1870
  ])) : P("", !0),
1871
- l.layout.authorFlag ? (s(), d("p", Go, [
1871
+ l.layout.authorFlag ? (s(), d("p", Wo, [
1872
1872
  Yo,
1873
1873
  K(Be, {
1874
1874
  class: "flex-1",
@@ -1981,7 +1981,7 @@ const _e = /* @__PURE__ */ re(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1981
1981
  ], 8, aa));
1982
1982
  }
1983
1983
  });
1984
- const bt = /* @__PURE__ */ re(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["data-xine"], da = { class: "flex items-center border-r tracking-[5px] text_dir" }, ua = ["data-xine"], ha = ["data-xine"], pa = ["data-xine"], ma = /* @__PURE__ */ Z({
1984
+ const bt = /* @__PURE__ */ ce(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["data-xine"], da = { class: "flex items-center border-r tracking-[5px] text_dir" }, ua = ["data-xine"], ha = ["data-xine"], pa = ["data-xine"], ma = /* @__PURE__ */ Z({
1985
1985
  __name: "examInfoShort",
1986
1986
  setup(e) {
1987
1987
  return (t, o) => (s(), d("div", {
@@ -2014,7 +2014,7 @@ const bt = /* @__PURE__ */ re(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["da
2014
2014
  ], 8, ca));
2015
2015
  }
2016
2016
  });
2017
- const vt = /* @__PURE__ */ re(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { class: "flex-1 flex flex-col" }, _a = /* @__PURE__ */ Z({
2017
+ const vt = /* @__PURE__ */ ce(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { class: "flex-1 flex flex-col" }, _a = /* @__PURE__ */ Z({
2018
2018
  __name: "examInfoBase",
2019
2019
  props: {
2020
2020
  extent: {}
@@ -2078,7 +2078,7 @@ const vt = /* @__PURE__ */ re(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2078
2078
  ]));
2079
2079
  }
2080
2080
  });
2081
- const ka = /* @__PURE__ */ re(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e) => (He("data-v-936c144e"), e = e(), Re(), e), Ca = {
2081
+ const ka = /* @__PURE__ */ ce(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e) => (He("data-v-936c144e"), e = e(), Re(), e), Ca = {
2082
2082
  key: 0,
2083
2083
  class: "flex border mt-2 red_sheet"
2084
2084
  }, $a = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ia = { class: "flex items-center flex-1 pl-2" }, Ta = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g("span", null, "[", -1)), Ma = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g("span", { class: "ml-4" }, "]", -1)), Pa = [
@@ -2137,7 +2137,7 @@ const ka = /* @__PURE__ */ re(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
2137
2137
  ], 64));
2138
2138
  }
2139
2139
  });
2140
- const Ba = /* @__PURE__ */ re(Na, [["__scopeId", "data-v-936c144e"]]), wt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Oa = (e, t = "", o = !0, a = "children") => {
2140
+ const Ba = /* @__PURE__ */ ce(Na, [["__scopeId", "data-v-936c144e"]]), wt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Oa = (e, t = "", o = !0, a = "children") => {
2141
2141
  let n = [];
2142
2142
  const r = (l) => {
2143
2143
  (l[a] || []).length ? (o && n.push(t ? l[t] : l[a]), l[a].forEach((i) => r(i))) : n.push(t ? l[t] : l);
@@ -2162,7 +2162,7 @@ const za = {
2162
2162
  }, Ha = /* @__PURE__ */ g("li", { class: "flex-1 flex flex-col" }, [
2163
2163
  /* @__PURE__ */ g("p", { class: "flex-1" }, "题号"),
2164
2164
  /* @__PURE__ */ g("p", { class: "flex-1 border-t" }, "得分")
2165
- ], -1), Ra = { class: "flex-1" }, Wa = /* @__PURE__ */ g("p", { class: "flex-1 border-t" }, null, -1), Ga = /* @__PURE__ */ g("li", { class: "flex-1 flex flex-col border-l" }, [
2165
+ ], -1), Ra = { class: "flex-1" }, Ga = /* @__PURE__ */ g("p", { class: "flex-1 border-t" }, null, -1), Wa = /* @__PURE__ */ g("li", { class: "flex-1 flex flex-col border-l" }, [
2166
2166
  /* @__PURE__ */ g("p", { class: "flex-1" }, "总分"),
2167
2167
  /* @__PURE__ */ g("p", { class: "flex-1 border-t" })
2168
2168
  ], -1), Ya = /* @__PURE__ */ Z({
@@ -2180,9 +2180,9 @@ const za = {
2180
2180
  class: "flex-1 flex flex-col border-l"
2181
2181
  }, [
2182
2182
  g("p", Ra, X(x(Pt)(l)), 1),
2183
- Wa
2183
+ Ga
2184
2184
  ]))), 128)),
2185
- Ga
2185
+ Wa
2186
2186
  ])) : P("", !0);
2187
2187
  }
2188
2188
  }), qa = /* @__PURE__ */ Z({
@@ -2214,24 +2214,24 @@ const za = {
2214
2214
  c.showColBorder ? (s(), d("div", {
2215
2215
  key: 0,
2216
2216
  class: te(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", i.value && "tips"]),
2217
- style: G(r.value)
2217
+ style: W(r.value)
2218
2218
  }, [
2219
2219
  g("span", {
2220
2220
  class: "absolute border border-black",
2221
- style: G(l.value)
2221
+ style: W(l.value)
2222
2222
  }, null, 4)
2223
2223
  ], 6)) : P("", !0),
2224
2224
  g("div", {
2225
2225
  class: "absolute overflow-hidden",
2226
2226
  ref_key: "colView",
2227
2227
  ref: n,
2228
- style: G(c.styleInfo)
2228
+ style: W(c.styleInfo)
2229
2229
  }, [
2230
2230
  g("div", {
2231
2231
  ref_key: "col",
2232
2232
  ref: a,
2233
2233
  class: "overflow-hidden __col__",
2234
- style: G({ height: c.styleInfo.contentHeight })
2234
+ style: W({ height: c.styleInfo.contentHeight })
2235
2235
  }, [
2236
2236
  it(c.$slots, "default", {}, void 0, !0)
2237
2237
  ], 4)
@@ -2239,7 +2239,7 @@ const za = {
2239
2239
  ], 64));
2240
2240
  }
2241
2241
  });
2242
- const Qa = /* @__PURE__ */ re(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (He("data-v-4dff340b"), e = e(), Re(), e), Ua = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", { class: "flex-1 border-b" }, null, -1)), Ka = ["data-xine"], ja = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", null, "贴条码区域", -1)), Xa = [
2242
+ const Qa = /* @__PURE__ */ ce(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (He("data-v-3f588317"), e = e(), Re(), e), Ua = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", { class: "flex-1 border-b" }, null, -1)), Ka = ["data-xine"], ja = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", null, "贴条码区域", -1)), Xa = [
2243
2243
  ja
2244
2244
  ], Va = ["data-xine"], Za = /* @__PURE__ */ Z({
2245
2245
  __name: "bind",
@@ -2253,7 +2253,7 @@ const Qa = /* @__PURE__ */ re(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
2253
2253
  const t = Q(), o = ["学校", "班级", "准考证号", "姓名"];
2254
2254
  return (a, n) => a.isBindFlag ? (s(), d("div", {
2255
2255
  key: 0,
2256
- style: G({ width: `${a.currentPage % 2 ? 0 : a.width}px`, height: `${a.height - 20}px` }),
2256
+ style: W({ width: `${a.currentPage % 2 ? 0 : a.width}px`, height: `${a.height - 20}px` }),
2257
2257
  class: te([a.currentPage % 2 && "right_view"]),
2258
2258
  ref_key: "view",
2259
2259
  ref: t
@@ -2261,11 +2261,11 @@ const Qa = /* @__PURE__ */ re(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
2261
2261
  a.currentPage % 2 ? (s(), d("div", {
2262
2262
  key: 0,
2263
2263
  class: "flex items-center justify-center origin-top-left border-b end_view",
2264
- style: G({ width: `${a.height - 20}px`, height: `${a.width}px` })
2264
+ style: W({ width: `${a.height - 20}px`, height: `${a.width}px` })
2265
2265
  }, "当前位置为密封线位置,请勿在此处作答", 4)) : (s(), d("div", {
2266
2266
  key: 1,
2267
2267
  class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
2268
- style: G({ width: `${a.height - 20}px` })
2268
+ style: W({ width: `${a.height - 20}px` })
2269
2269
  }, [
2270
2270
  (s(), d(M, null, V(o, (r) => g("p", {
2271
2271
  key: r,
@@ -2285,7 +2285,7 @@ const Qa = /* @__PURE__ */ re(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
2285
2285
  ], 6)) : P("", !0);
2286
2286
  }
2287
2287
  });
2288
- const Ja = /* @__PURE__ */ re(Za, [["__scopeId", "data-v-4dff340b"]]), we = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm", Ee = "MC4wYWx1ZXJvcWhm", kt = "MC5sZGN2NzJ0ZXE0bw", dt = "MC5yYjk3NGY2OTcyOA", ut = "MC42cWRzbGM0c21jbw", tl = "MC45amVuM25vajRk", ol = "MC44YjJkb212djRu", al = ["img", "table", "svg"], ll = ["data-block", "data-xine"], nl = ["data-xine"], sl = ["data-xine"], il = { class: "absolute opacity-0 pointer-events-none" }, rl = /* @__PURE__ */ Z({
2288
+ const Ja = /* @__PURE__ */ ce(Za, [["__scopeId", "data-v-3f588317"]]), we = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm", Ee = "MC4wYWx1ZXJvcWhm", kt = "MC5sZGN2NzJ0ZXE0bw", dt = "MC5yYjk3NGY2OTcyOA", ut = "MC42cWRzbGM0c21jbw", tl = "MC45amVuM25vajRk", ol = "MC44YjJkb212djRu", al = ["img", "table", "svg"], ll = ["data-block", "data-xine"], nl = ["data-xine"], sl = ["data-xine"], il = { class: "absolute opacity-0 pointer-events-none" }, rl = /* @__PURE__ */ Z({
2289
2289
  __name: "simple",
2290
2290
  props: {
2291
2291
  item: {},
@@ -2307,7 +2307,7 @@ const Ja = /* @__PURE__ */ re(Za, [["__scopeId", "data-v-4dff340b"]]), we = "MC5
2307
2307
  }, [
2308
2308
  (s(!0), d(M, null, V(a.value, (l, i) => (s(), d("li", {
2309
2309
  class: "flex items-center justify-center relative score_line",
2310
- style: G({ width: `${x(je)[n.layout.scoreLineSize].value}px` }),
2310
+ style: W({ width: `${x(je)[n.layout.scoreLineSize].value}px` }),
2311
2311
  "data-xine": x(C).score_item
2312
2312
  }, [
2313
2313
  g("span", il, X(l), 1),
@@ -2362,7 +2362,7 @@ const Ja = /* @__PURE__ */ re(Za, [["__scopeId", "data-v-4dff340b"]]), we = "MC5
2362
2362
  }, [
2363
2363
  (s(!0), d(M, null, V(h, (Y) => (s(), d("li", {
2364
2364
  class: "flex items-center justify-center flex-shrink-0 score_line",
2365
- style: G({ width: `${x(je)[y.layout.scoreLineSize].value}px` }),
2365
+ style: W({ width: `${x(je)[y.layout.scoreLineSize].value}px` }),
2366
2366
  "data-xine": Y.toString() ? x(C).score_item : ""
2367
2367
  }, [
2368
2368
  g("span", {
@@ -2400,7 +2400,7 @@ const Ja = /* @__PURE__ */ re(Za, [["__scopeId", "data-v-4dff340b"]]), we = "MC5
2400
2400
  ], 8, hl));
2401
2401
  }
2402
2402
  });
2403
- const _l = /* @__PURE__ */ re(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["innerHTML"], gl = /* @__PURE__ */ Z({
2403
+ const _l = /* @__PURE__ */ ce(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["innerHTML"], gl = /* @__PURE__ */ Z({
2404
2404
  __name: "index",
2405
2405
  props: {
2406
2406
  data: {}
@@ -2413,7 +2413,7 @@ const _l = /* @__PURE__ */ re(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["in
2413
2413
  }, null, 8, fl));
2414
2414
  }
2415
2415
  });
2416
- const Ae = /* @__PURE__ */ re(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["data-tag", "data-block"], vl = /* @__PURE__ */ Z({
2416
+ const Ae = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["data-tag", "data-block"], vl = /* @__PURE__ */ Z({
2417
2417
  __name: "notArea",
2418
2418
  props: {
2419
2419
  item: {}
@@ -2490,11 +2490,11 @@ const Ae = /* @__PURE__ */ re(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2490
2490
  }, null, 8, ["class", "item"]));
2491
2491
  }
2492
2492
  });
2493
- const Ct = /* @__PURE__ */ re(Dl, [["__scopeId", "data-v-7092617e"]]), Al = {};
2493
+ const Ct = /* @__PURE__ */ ce(Dl, [["__scopeId", "data-v-7092617e"]]), Al = {};
2494
2494
  function Nl(e, t) {
2495
2495
  return null;
2496
2496
  }
2497
- const Bl = /* @__PURE__ */ re(Al, [["render", Nl]]), Ol = ["data-block"], zl = ["data-xine"], Hl = /* @__PURE__ */ Z({
2497
+ const Bl = /* @__PURE__ */ ce(Al, [["render", Nl]]), Ol = ["data-block"], zl = ["data-xine"], Hl = /* @__PURE__ */ Z({
2498
2498
  __name: "sheet",
2499
2499
  props: {
2500
2500
  item: {},
@@ -2507,7 +2507,7 @@ const Bl = /* @__PURE__ */ re(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
2507
2507
  }, [
2508
2508
  (s(!0), d(M, null, V(t.item.optList, (a, n) => (s(), d("span", {
2509
2509
  class: te(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(wt)[n]) && "bg-success border-success"]),
2510
- style: G({ width: `${x(Ie)[t.layout.fillSize].value + 1}px`, height: `${x(Ie)[t.layout.fillSize].height + 1}px` }),
2510
+ style: W({ width: `${x(Ie)[t.layout.fillSize].value + 1}px`, height: `${x(Ie)[t.layout.fillSize].height + 1}px` }),
2511
2511
  "data-xine": x(C).fill + n
2512
2512
  }, [
2513
2513
  K(_e, {
@@ -2518,10 +2518,10 @@ const Bl = /* @__PURE__ */ re(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
2518
2518
  ], 8, Ol));
2519
2519
  }
2520
2520
  }), Rl = {};
2521
- function Wl(e, t) {
2521
+ function Gl(e, t) {
2522
2522
  return null;
2523
2523
  }
2524
- const Gl = /* @__PURE__ */ re(Rl, [["render", Wl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], Kl = /* @__PURE__ */ g("span", { class: "text-sm scale-75" }, "T", -1), jl = [
2524
+ const Wl = /* @__PURE__ */ ce(Rl, [["render", Gl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], Kl = /* @__PURE__ */ g("span", { class: "text-sm scale-75" }, "T", -1), jl = [
2525
2525
  Kl
2526
2526
  ], Xl = ["data-xine"], Vl = /* @__PURE__ */ g("span", { class: "text-sm scale-75" }, "F", -1), Zl = [
2527
2527
  Vl
@@ -2543,7 +2543,7 @@ const Gl = /* @__PURE__ */ re(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2543
2543
  a.item.style[x(m)[a.layout.mode].decide_a] === x(I).decide_1 ? (s(), d(M, { key: 0 }, [
2544
2544
  g("span", {
2545
2545
  class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
2546
- style: G(o.value),
2546
+ style: W(o.value),
2547
2547
  "data-xine": x(C).fill + "0"
2548
2548
  }, [
2549
2549
  K(_e, {
@@ -2553,7 +2553,7 @@ const Gl = /* @__PURE__ */ re(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2553
2553
  ], 14, ql),
2554
2554
  g("span", {
2555
2555
  class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
2556
- style: G(o.value),
2556
+ style: W(o.value),
2557
2557
  "data-xine": x(C).fill + "1"
2558
2558
  }, [
2559
2559
  K(_e, {
@@ -2564,12 +2564,12 @@ const Gl = /* @__PURE__ */ re(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2564
2564
  ], 64)) : (s(), d(M, { key: 1 }, [
2565
2565
  g("span", {
2566
2566
  class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
2567
- style: G(o.value),
2567
+ style: W(o.value),
2568
2568
  "data-xine": x(C).fill + "0"
2569
2569
  }, jl, 14, Ul),
2570
2570
  g("span", {
2571
2571
  class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
2572
- style: G(o.value),
2572
+ style: W(o.value),
2573
2573
  "data-xine": x(C).fill + "1"
2574
2574
  }, Zl, 14, Xl)
2575
2575
  ], 64))
@@ -2579,7 +2579,7 @@ const Gl = /* @__PURE__ */ re(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2579
2579
  function tn(e, t) {
2580
2580
  return null;
2581
2581
  }
2582
- const on = /* @__PURE__ */ re(en, [["render", tn]]), an = ["data-block", "data-xine"], ln = {
2582
+ const on = /* @__PURE__ */ ce(en, [["render", tn]]), an = ["data-block", "data-xine"], ln = {
2583
2583
  key: 0,
2584
2584
  class: "flex items-center justify-center whitespace-nowrap text-sm scale-75"
2585
2585
  }, nn = { key: 1 }, sn = /* @__PURE__ */ Z({
@@ -2619,7 +2619,7 @@ const on = /* @__PURE__ */ re(en, [["render", tn]]), an = ["data-block", "data-x
2619
2619
  return (o, a) => (s(), d(M, null, [
2620
2620
  g("div", {
2621
2621
  class: "flex-1 border-b self-stretch red_sheet",
2622
- style: G({ height: `${20 + o.item.style[x(m)[t.layout.mode].fill_e]}px` }),
2622
+ style: W({ height: `${20 + o.item.style[x(m)[t.layout.mode].fill_e]}px` }),
2623
2623
  "data-xine": x(C).fill_line
2624
2624
  }, null, 12, rn),
2625
2625
  o.layout.handReadFlag ? (s(), U(sn, {
@@ -2634,7 +2634,7 @@ const on = /* @__PURE__ */ re(en, [["render", tn]]), an = ["data-block", "data-x
2634
2634
  function un(e, t) {
2635
2635
  return null;
2636
2636
  }
2637
- const hn = /* @__PURE__ */ re(dn, [["render", un]]), pn = ["data-block"], mn = { class: "flex-1 flex justify-end overflow-hidden" }, yn = /* @__PURE__ */ Z({
2637
+ const hn = /* @__PURE__ */ ce(dn, [["render", un]]), pn = ["data-block"], mn = { class: "flex-1 flex justify-end overflow-hidden" }, yn = /* @__PURE__ */ Z({
2638
2638
  __name: "sheet",
2639
2639
  props: {
2640
2640
  item: {},
@@ -2668,7 +2668,7 @@ const hn = /* @__PURE__ */ re(dn, [["render", un]]), pn = ["data-block"], mn = {
2668
2668
  function fn(e, t) {
2669
2669
  return null;
2670
2670
  }
2671
- const gn = /* @__PURE__ */ re(_n, [["render", fn]]), bn = /* @__PURE__ */ g("div", { class: "flex-1 border-b self-end mr-2" }, null, -1), vn = /* @__PURE__ */ Z({
2671
+ const gn = /* @__PURE__ */ ce(_n, [["render", fn]]), bn = /* @__PURE__ */ g("div", { class: "flex-1 border-b self-end mr-2" }, null, -1), vn = /* @__PURE__ */ Z({
2672
2672
  __name: "sheet",
2673
2673
  props: {
2674
2674
  item: {},
@@ -2687,23 +2687,23 @@ const gn = /* @__PURE__ */ re(_n, [["render", fn]]), bn = /* @__PURE__ */ g("div
2687
2687
  function xn(e, t) {
2688
2688
  return null;
2689
2689
  }
2690
- const kn = /* @__PURE__ */ re(wn, [["render", xn]]), Cn = {};
2690
+ const kn = /* @__PURE__ */ ce(wn, [["render", xn]]), Cn = {};
2691
2691
  function $n(e, t) {
2692
2692
  return null;
2693
2693
  }
2694
- const Sn = /* @__PURE__ */ re(Cn, [["render", $n]]), In = {};
2694
+ const Sn = /* @__PURE__ */ ce(Cn, [["render", $n]]), In = {};
2695
2695
  function Tn(e, t) {
2696
2696
  return null;
2697
2697
  }
2698
- const Ln = /* @__PURE__ */ re(In, [["render", Tn]]), Fn = {};
2698
+ const Ln = /* @__PURE__ */ ce(In, [["render", Tn]]), Fn = {};
2699
2699
  function En(e, t) {
2700
2700
  return null;
2701
2701
  }
2702
- const Mn = /* @__PURE__ */ re(Fn, [["render", En]]), Pn = {};
2702
+ const Mn = /* @__PURE__ */ ce(Fn, [["render", En]]), Pn = {};
2703
2703
  function Dn(e, t) {
2704
2704
  return null;
2705
2705
  }
2706
- const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = { class: "flex-1 flex justify-end overflow-hidden" }, On = ["data-block", "data-guide"], zn = ["data-block", "data-size"], Hn = ["data-block"], Rn = /* @__PURE__ */ Z({
2706
+ const An = /* @__PURE__ */ ce(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = { class: "flex-1 flex justify-end overflow-hidden" }, On = ["data-block", "data-guide"], zn = ["data-block", "data-size"], Hn = ["data-block"], Rn = /* @__PURE__ */ Z({
2707
2707
  __name: "sheet",
2708
2708
  props: {
2709
2709
  item: {},
@@ -2762,7 +2762,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2762
2762
  "data-block": x(Ee),
2763
2763
  "data-guide": h.item.id,
2764
2764
  class: te(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
2765
- style: G({ ...a.value, width: u.value.width, lineHeight: `${c.value + 7}px` })
2765
+ style: W({ ...a.value, width: u.value.width, lineHeight: `${c.value + 7}px` })
2766
2766
  }, X(h.item.beforeGuide), 15, On)) : P("", !0),
2767
2767
  (s(!0), d(M, null, V(i.value, (Y, J) => (s(), d("p", {
2768
2768
  ref_for: !0,
@@ -2771,17 +2771,17 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2771
2771
  class: te(["flex mx-auto mt-3 mb-1 relative red_sheet", h.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
2772
2772
  "data-block": x(we),
2773
2773
  "data-size": h.item.startAnswerLen + (J + 1) * o.value,
2774
- style: G(u.value)
2774
+ style: W(u.value)
2775
2775
  }, [
2776
2776
  h.item.artBlock ? (s(!0), d(M, { key: 0 }, V(o.value, (E, D) => (s(), d("span", {
2777
2777
  class: te([O.value[J * o.value + D] && "flex items-center justify-center"]),
2778
- style: G(y.value)
2778
+ style: W(y.value)
2779
2779
  }, X(O.value[J * o.value + D]), 7))), 256)) : P("", !0),
2780
2780
  (s(!0), d(M, null, V(l.value, (E) => (s(), d(M, null, [
2781
2781
  h.item.startAnswerLen + J * o.value < E && h.item.startAnswerLen + (J + 1) * o.value >= E ? (s(), d("span", {
2782
2782
  key: 0,
2783
2783
  class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
2784
- style: G({ left: `${(E - h.item.startAnswerLen) % o.value * c.value}px` }),
2784
+ style: W({ left: `${(E - h.item.startAnswerLen) % o.value * c.value}px` }),
2785
2785
  "data-block": x(Ee)
2786
2786
  }, X(E), 13, Hn)) : P("", !0)
2787
2787
  ], 64))), 256))
@@ -2794,7 +2794,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2794
2794
  }, null, 8, ["data", "data-aart"])) : P("", !0)
2795
2795
  ], 512));
2796
2796
  }
2797
- }), Wn = ["data-block"], Gn = /* @__PURE__ */ Z({
2797
+ }), Gn = ["data-block"], Wn = /* @__PURE__ */ Z({
2798
2798
  __name: "index",
2799
2799
  props: {
2800
2800
  item: {},
@@ -2810,7 +2810,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2810
2810
  "data-content": o.item.id,
2811
2811
  data: o.item.content
2812
2812
  }, null, 8, ["data-content", "data"])
2813
- ], 8, Wn));
2813
+ ], 8, Gn));
2814
2814
  }
2815
2815
  }), Yn = ["data-block"], qn = { key: 0 }, Qn = { key: 1 }, Un = { key: 2 }, Kn = {
2816
2816
  key: 3,
@@ -2826,7 +2826,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2826
2826
  const t = e, o = A(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((r) => r.split(".")).map((r) => t.isFull ? r : r.map((l, i) => i === r.length - 1 ? l : ""))), a = A(() => t.width ? `${t.width}em` : "");
2827
2827
  return (n, r) => (s(), d("span", {
2828
2828
  class: te(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", n.isFull && "justify-end"]),
2829
- style: G({ width: a.value }),
2829
+ style: W({ width: a.value }),
2830
2830
  "data-block": x(Ee)
2831
2831
  }, [
2832
2832
  (s(!0), d(M, null, V(o.value, (l, i) => (s(), d(M, null, [
@@ -2841,7 +2841,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2841
2841
  components: {
2842
2842
  choice: Bl,
2843
2843
  choiceSheet: Hl,
2844
- decide: Gl,
2844
+ decide: Wl,
2845
2845
  decideSheet: Jl,
2846
2846
  fill: on,
2847
2847
  fillSheet: cn,
@@ -2855,7 +2855,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2855
2855
  synthesisSheet: Mn,
2856
2856
  art: An,
2857
2857
  artSheet: Rn,
2858
- notArea: Gn,
2858
+ notArea: Wn,
2859
2859
  Sub: jn
2860
2860
  },
2861
2861
  props: {
@@ -2893,7 +2893,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2893
2893
  choice: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
2894
2894
  fill: [p.fill, p.fill_english]
2895
2895
  };
2896
- return Object.keys(p).reduce((k, w) => ({ ...k, [p[w]]: Object.keys(_).find((H) => _[H].includes(p[w])) || `${w}${o}` }), {});
2896
+ return Object.keys(p).reduce((k, w) => ({ ...k, [p[w]]: Object.keys(_).find((R) => _[R].includes(p[w])) || `${w}${o}` }), {});
2897
2897
  }), l = A(() => [be.one_choice, be.another_choice].includes(e.data.problemType)), i = A(() => {
2898
2898
  let _ = [];
2899
2899
  return e.data.children.forEach((k) => {
@@ -2912,13 +2912,13 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2912
2912
  }), _ = _.map((k) => {
2913
2913
  var w;
2914
2914
  if (k.type === "polymer" && k.styleInfo[m[e.layout.mode].choice_a] === I.choice_3) {
2915
- const H = Math.floor(e.width / (Math.max(...k.children.map((B) => B.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((w = k.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
2916
- if (k.children.length > H * 5) {
2915
+ const R = Math.floor(e.width / (Math.max(...k.children.map((B) => B.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((w = k.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
2916
+ if (k.children.length > R * 5) {
2917
2917
  const B = k.children.length % 4 > 4 ? 5 : 4;
2918
- return [...Array(Math.ceil(k.children.length / (H * B))).keys()].map((ue, he) => ({
2918
+ return [...Array(Math.ceil(k.children.length / (R * B))).keys()].map((ue, he) => ({
2919
2919
  ...k,
2920
2920
  groupIndex: he,
2921
- children: k.children.slice(he * H * B, (he + 1) * H * B)
2921
+ children: k.children.slice(he * R * B, (he + 1) * R * B)
2922
2922
  }));
2923
2923
  } else
2924
2924
  return k;
@@ -2954,9 +2954,9 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2954
2954
  ComputAbs: (_) => o && [p.slove, p.art].includes(_.problemType),
2955
2955
  ComputPolymerCls: (_) => [p.decide].includes(_.problemType) ? [] : _.styleInfo[m[e.layout.mode].choice_a] === I.choice_2 ? ["port_view"] : ["grid", _.groupIndex && "mt-8"],
2956
2956
  ComputPolymerStyle: (_) => {
2957
- var he, ce;
2957
+ var he, se;
2958
2958
  let k = {};
2959
- const w = Math.max(...(_.rawChildren || _.children).map((L) => L.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((he = e.data.children[0]) == null ? void 0 : he.polymerId) || ""]) * 14 + 20, H = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((L) => L.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((ce = _.children[0]) == null ? void 0 : ce.polymerId) || ""]) * 14 + 20)), B = Math.min(H, e.data.style[m[e.layout.mode].choice_d] || 10), ue = (e.width - w * B) / (B - 1) - 10;
2959
+ const w = Math.max(...(_.rawChildren || _.children).map((L) => L.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((he = e.data.children[0]) == null ? void 0 : he.polymerId) || ""]) * 14 + 20, R = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((L) => L.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((se = _.children[0]) == null ? void 0 : se.polymerId) || ""]) * 14 + 20)), B = Math.min(R, e.data.style[m[e.layout.mode].choice_d] || 10), ue = (e.width - w * B) / (B - 1) - 10;
2960
2960
  switch (_.styleInfo[m[e.layout.mode].choice_a]) {
2961
2961
  case I.choice_1:
2962
2962
  _.styleInfo[m[e.layout.mode].choice_b] === I.portrait && (k = {
@@ -2982,7 +2982,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2982
2982
  ComputPolymerItemStyle: (_, k) => {
2983
2983
  var w;
2984
2984
  if (a.includes(_.problemType) && _.style[m[e.layout.mode].choice_a] === I.choice_2) {
2985
- const H = Math.max(Ie[e.layout.fillSize].value + 4, (u.value[`h${e.data.id}`] || u.value[((w = _.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 8), B = Math.floor(e.width / (H * _.style[m[e.layout.mode].choice_c] + 10)), ue = (e.width - H * B * _.style[m[e.layout.mode].choice_c]) / (B - 1 || 1);
2985
+ const R = Math.max(Ie[e.layout.fillSize].value + 4, (u.value[`h${e.data.id}`] || u.value[((w = _.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 8), B = Math.floor(e.width / (R * _.style[m[e.layout.mode].choice_c] + 10)), ue = (e.width - R * B * _.style[m[e.layout.mode].choice_c]) / (B - 1 || 1);
2986
2986
  if (!((k + 1) % _.style[m[e.layout.mode].choice_c]) && ((k + 1) % (_.style[m[e.layout.mode].choice_c] * B) || B < 2))
2987
2987
  return {
2988
2988
  "margin-right": `${ue}px`
@@ -2991,14 +2991,14 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2991
2991
  return {};
2992
2992
  },
2993
2993
  ComputStyle: (_, k) => {
2994
- var H;
2994
+ var R;
2995
2995
  let w = {};
2996
2996
  if (!o)
2997
2997
  return w;
2998
2998
  if (a.includes(_.problemType)) {
2999
2999
  let B = {};
3000
3000
  if (Object.values(Lt).includes(e.data.problemType)) {
3001
- const ue = Math.max(...(e.data.rawChildren || e.data.children).map((ce) => ce.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((H = e.data.children[0]) == null ? void 0 : H.polymerId) || ""]) * 14 + 20, he = Math.min(Math.floor(e.width / (ue + 10)), e.data.style[m[e.layout.mode].choice_d] || 10);
3001
+ const ue = Math.max(...(e.data.rawChildren || e.data.children).map((se) => se.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((R = e.data.children[0]) == null ? void 0 : R.polymerId) || ""]) * 14 + 20, he = Math.min(Math.floor(e.width / (ue + 10)), e.data.style[m[e.layout.mode].choice_d] || 10);
3002
3002
  B = k % he ? { minWidth: `${ue}px`, marginLeft: `${(e.width - ue * he) / (he - 1) - 5}px` } : { minWidth: `${ue}px` };
3003
3003
  }
3004
3004
  w = {
@@ -3050,13 +3050,13 @@ function ts(e, t, o, a, n, r) {
3050
3050
  key: 0,
3051
3051
  "data-block": a.ComputBlock(i),
3052
3052
  class: te([...a.ComputPolymerCls(i)]),
3053
- style: G(a.ComputPolymerStyle(i))
3053
+ style: W(a.ComputPolymerStyle(i))
3054
3054
  }, [
3055
3055
  (s(!0), d(M, null, V(i.children, (c, u) => {
3056
3056
  var y;
3057
3057
  return s(), d("div", {
3058
3058
  class: te(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((y = o.target.value) == null ? void 0 : y.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3059
- style: G(a.ComputPolymerItemStyle(c, u)),
3059
+ style: W(a.ComputPolymerItemStyle(c, u)),
3060
3060
  "data-tag": c.__tag__,
3061
3061
  "data-block": a.ComputBlock(c),
3062
3062
  "data-xine": a.Gps_cls.item + c._sub,
@@ -3078,7 +3078,7 @@ function ts(e, t, o, a, n, r) {
3078
3078
  return s(), d(M, null, [
3079
3079
  g("div", {
3080
3080
  class: te(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((y = o.target.value) == null ? void 0 : y.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3081
- style: G(a.ComputStyle(c, u)),
3081
+ style: W(a.ComputStyle(c, u)),
3082
3082
  "data-tag": c.__tag__,
3083
3083
  "data-block": a.ComputBlock(c),
3084
3084
  "data-xine": a.Gps_cls.item + c._sub,
@@ -3109,10 +3109,10 @@ function ts(e, t, o, a, n, r) {
3109
3109
  }), 256))
3110
3110
  ], 64))), 256);
3111
3111
  }
3112
- const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os = 10, N = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, le = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), $e = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), as = (e, t, o) => {
3112
+ const We = /* @__PURE__ */ ce(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os = 10, N = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, le = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), $e = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), as = (e, t, o) => {
3113
3113
  const a = N(le(`${C.item}${e._sub}`, t));
3114
3114
  return !(a.top >= o.top + o.height || a.top + a.height < o.top);
3115
- }, ie = (e, t, o = !1) => !e || !t ? null : {
3115
+ }, re = (e, t, o = !1) => !e || !t ? null : {
3116
3116
  x: e.x - t.x,
3117
3117
  y: e.y - t.y + (o ? 1 : 0),
3118
3118
  width: e.width,
@@ -3148,8 +3148,8 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3148
3148
  return null;
3149
3149
  const a = {
3150
3150
  // area: GetPosition(el, config.pageDom[0]),
3151
- area: ie(N(o), N(e.pageDom[0])),
3152
- list: $e(C.en_num_group, o).map((n) => $e(C.en_num_item, n).map((r) => ie(N(r), N(e.pageDom[0]), !0)))
3151
+ area: re(N(o), N(e.pageDom[0])),
3152
+ list: $e(C.en_num_group, o).map((n) => $e(C.en_num_item, n).map((r) => re(N(r), N(e.pageDom[0]), !0)))
3153
3153
  };
3154
3154
  return {
3155
3155
  choiceGridSequenceNOList: [...Array(10).keys()],
@@ -3172,29 +3172,29 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3172
3172
  const t = N(e.pageDom[0]), o = N(e.pageDom[1]), a = (n) => {
3173
3173
  var l;
3174
3174
  const r = e.layout.backColumn > 2 ? {
3175
- trdLeftTopPos: ae(ie(N($e(`${C.point}t`, e.pageDom[n])[1]), N(e.pageDom[n]))),
3176
- trdLeftBottomPos: ae(ie(N($e(`${C.point}b`, e.pageDom[n])[1]), N(e.pageDom[n])))
3175
+ trdLeftTopPos: ae(re(N($e(`${C.point}t`, e.pageDom[n])[1]), N(e.pageDom[n]))),
3176
+ trdLeftBottomPos: ae(re(N($e(`${C.point}b`, e.pageDom[n])[1]), N(e.pageDom[n])))
3177
3177
  } : {};
3178
3178
  return (l = Oe.find((i) => i.code === e.layout.paper)) != null && l.isMultCol ? {
3179
- secLeftTopPos: ae(ie(N($e(`${C.point}t`, e.pageDom[n])[0]), N(e.pageDom[n]))),
3180
- secLeftBottomPos: ae(ie(N($e(`${C.point}b`, e.pageDom[n])[0]), N(e.pageDom[n]))),
3179
+ secLeftTopPos: ae(re(N($e(`${C.point}t`, e.pageDom[n])[0]), N(e.pageDom[n]))),
3180
+ secLeftBottomPos: ae(re(N($e(`${C.point}b`, e.pageDom[n])[0]), N(e.pageDom[n]))),
3181
3181
  ...r
3182
3182
  } : null;
3183
3183
  };
3184
3184
  return {
3185
3185
  // 取第一/二页定位点信息
3186
- leftTopPos: ae(ie(N(le(`${C.point}lt`, e.pageDom[0])), t)),
3187
- rightTopPos: ae(ie(N(le(`${C.point}rt`, e.pageDom[0])), t)),
3188
- leftBottomPos: ae(ie(N(le(`${C.point}lb`, e.pageDom[0])), t)),
3189
- rightBottomPos: ae(ie(N(le(`${C.point}rb`, e.pageDom[0])), t)),
3186
+ leftTopPos: ae(re(N(le(`${C.point}lt`, e.pageDom[0])), t)),
3187
+ rightTopPos: ae(re(N(le(`${C.point}rt`, e.pageDom[0])), t)),
3188
+ leftBottomPos: ae(re(N(le(`${C.point}lb`, e.pageDom[0])), t)),
3189
+ rightBottomPos: ae(re(N(le(`${C.point}rb`, e.pageDom[0])), t)),
3190
3190
  // waistAuxAnchorInfo: getAuxInfo(0, true),
3191
3191
  verticalAuxInfo: [
3192
- ae(ie(N(le(`${C.point}l`, e.pageDom[0])), t)),
3193
- ae(ie(N(le(`${C.point}r`, e.pageDom[0])), t))
3192
+ ae(re(N(le(`${C.point}l`, e.pageDom[0])), t)),
3193
+ ae(re(N(le(`${C.point}r`, e.pageDom[0])), t))
3194
3194
  ],
3195
3195
  verticalAuxInfo2: e.bindWidth && e.pageDom[1] ? [
3196
- ae(ie(N(le(`${C.point}l`, e.pageDom[1])), o)),
3197
- ae(ie(N(le(`${C.point}r`, e.pageDom[1])), o))
3196
+ ae(re(N(le(`${C.point}l`, e.pageDom[1])), o)),
3197
+ ae(re(N(le(`${C.point}r`, e.pageDom[1])), o))
3198
3198
  ] : null,
3199
3199
  auxAnchorInfo: a(0),
3200
3200
  auxAnchorInfo2: e.pageDom[1] ? a(1) : null
@@ -3205,7 +3205,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3205
3205
  const a = le(`${C.page_item}0`, e.pageDom[1]).getBoundingClientRect();
3206
3206
  t = le(`${C.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - a.left - a.width;
3207
3207
  }
3208
- let o = ie(N(le(C.page, e.pageDom[e.pageTotal - 1])), N(e.pageDom[e.pageTotal - 1]));
3208
+ let o = re(N(le(C.page, e.pageDom[e.pageTotal - 1])), N(e.pageDom[e.pageTotal - 1]));
3209
3209
  return o = { ...o, y: o.y % (b[e.layout.paper].height + (e.pageMargin || 0)) }, [
3210
3210
  {
3211
3211
  // 固定值
@@ -3215,7 +3215,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3215
3215
  // 页码区块位置,部分需动态获取 x y width height
3216
3216
  choiceQuestionPosition: ae(o, !0),
3217
3217
  // 页码点区块第一个页码点的位置,部分需动态获取
3218
- firstChoicePosition: ae(ie(N(le(`${C.page_item}0`, e.pageDom[e.pageTotal - 1])), N(e.pageDom[e.pageTotal - 1]))),
3218
+ firstChoicePosition: ae(re(N(le(`${C.page_item}0`, e.pageDom[e.pageTotal - 1])), N(e.pageDom[e.pageTotal - 1]))),
3219
3219
  // 页码点最大值,展开为数组
3220
3220
  choiceGridSequenceNOList: ct.filter((a, n) => n < e.pageTotal),
3221
3221
  // 排列方向
@@ -3234,9 +3234,9 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3234
3234
  // 固定值
3235
3235
  questionNOList: [1],
3236
3236
  // 方框业务坐标
3237
- choiceQuestionPosition: ae(ie(N(t), N(e.pageDom[0])), !0),
3237
+ choiceQuestionPosition: ae(re(N(t), N(e.pageDom[0])), !0),
3238
3238
  // 数据坐标
3239
- firstChoicePosition: ae(ie(N(t), N(e.pageDom[0]))),
3239
+ firstChoicePosition: ae(re(N(t), N(e.pageDom[0]))),
3240
3240
  // 固定值
3241
3241
  choiceGridSequenceNOList: [
3242
3242
  "true"
@@ -3247,7 +3247,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3247
3247
  xColOffset: 0
3248
3248
  } : null;
3249
3249
  }, rs = (e) => {
3250
- let t = ie(N(le(C.en_code, e.pageDom[0])), N(e.pageDom[0]));
3250
+ let t = re(N(le(C.en_code, e.pageDom[0])), N(e.pageDom[0]));
3251
3251
  return ae(t);
3252
3252
  }, cs = (e) => {
3253
3253
  const t = le(C.write_view, e.pageDom[0]);
@@ -3257,9 +3257,9 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3257
3257
  return {
3258
3258
  id: "0",
3259
3259
  problemType: p.slove,
3260
- position: ie(N(t), N(e.pageDom[0])),
3260
+ position: re(N(t), N(e.pageDom[0])),
3261
3261
  scoreList: o.map((a, n) => ({
3262
- position: ie(N(o[n]), N(e.pageDom[0])),
3262
+ position: re(N(o[n]), N(e.pageDom[0])),
3263
3263
  itemPosition: {
3264
3264
  width: o[n].offsetWidth
3265
3265
  },
@@ -3325,12 +3325,12 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3325
3325
  return D ? {
3326
3326
  id: `${++o}`,
3327
3327
  baseIndex: parseInt(E.children[0]._sub),
3328
- position: ie(N(D), u),
3328
+ position: re(N(D), u),
3329
3329
  problemType: E.problemType,
3330
3330
  isOneChoice: !0,
3331
3331
  optList: $e(C.fill, D).map((v, z) => ({
3332
3332
  id: `${o}.${z + 1}`,
3333
- position: ie(N(v), u)
3333
+ position: re(N(v), u)
3334
3334
  })).filter((v) => v.position)
3335
3335
  } : {};
3336
3336
  }).filter((E) => E.position);
@@ -3346,32 +3346,32 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3346
3346
  z = {
3347
3347
  score: E.score,
3348
3348
  isColumn: E.style[m[e.layout.mode].choice_a] !== I.choice_2,
3349
- optList: E.optList.map((w, H) => ({
3350
- id: `${E._sub}.${H + 1}`,
3351
- position: Pe(le(`${C.fill}${H}`, ne), F, u)
3349
+ optList: E.optList.map((w, R) => ({
3350
+ id: `${E._sub}.${R + 1}`,
3351
+ position: Pe(le(`${C.fill}${R}`, ne), F, u)
3352
3352
  })).filter((w) => w.position)
3353
3353
  };
3354
3354
  break;
3355
3355
  case p.decide:
3356
3356
  z = {
3357
- optList: [0, 1].map((w, H) => ({
3358
- id: `${E._sub}.${H}`,
3359
- position: Pe(le(`${C.fill}${H}`, ne), F, u)
3357
+ optList: [0, 1].map((w, R) => ({
3358
+ id: `${E._sub}.${R}`,
3359
+ position: Pe(le(`${C.fill}${R}`, ne), F, u)
3360
3360
  })).filter((w) => w.position)
3361
3361
  };
3362
3362
  break;
3363
3363
  case p.fill:
3364
3364
  case p.fill_english:
3365
- const R = $e(C.fill, ne), _ = $e(C.fill_line, ne);
3365
+ const H = $e(C.fill, ne), _ = $e(C.fill_line, ne);
3366
3366
  z = {
3367
- children: [E.score].flat().map((w, H, B) => ({
3368
- id: B.length > 1 ? `${E._sub}.${H + 1}` : E._sub,
3367
+ children: [E.score].flat().map((w, R, B) => ({
3368
+ id: B.length > 1 ? `${E._sub}.${R + 1}` : E._sub,
3369
3369
  score: w,
3370
3370
  problemType: E.problemType,
3371
3371
  isHiddenContent: !E.style[m[e.layout.mode].fill_b],
3372
3372
  position: Pe(ne, F, u),
3373
- scorePosition: Pe(R[H], F, u),
3374
- answerPosition: Pe(_[H], F, u)
3373
+ scorePosition: Pe(H[R], F, u),
3374
+ answerPosition: Pe(_[R], F, u)
3375
3375
  })).filter((w) => w.position)
3376
3376
  };
3377
3377
  break;
@@ -3380,7 +3380,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3380
3380
  case p.art:
3381
3381
  const k = le(C.score, ne);
3382
3382
  z = {
3383
- scoreList: k ? [le(C.score_tenbit, k), le(C.score_base, k), le(C.score_half, k)].map((w, H) => {
3383
+ scoreList: k ? [le(C.score_tenbit, k), le(C.score_base, k), le(C.score_half, k)].map((w, R) => {
3384
3384
  if (!w)
3385
3385
  return {};
3386
3386
  const B = $e(C.score_item, w);
@@ -3389,7 +3389,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3389
3389
  itemPosition: {
3390
3390
  width: B[0].offsetWidth
3391
3391
  },
3392
- score: B.map((ue) => Math.abs(parseFloat(ue.innerText)) * (H ? 1 : 10))
3392
+ score: B.map((ue) => Math.abs(parseFloat(ue.innerText)) * (R ? 1 : 10))
3393
3393
  };
3394
3394
  }).filter((w) => w.position) : null
3395
3395
  };
@@ -3551,8 +3551,8 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3551
3551
  // 试卷二维码
3552
3552
  cardSerialNumber: {
3553
3553
  // 条形码虚线框位置, x, y, width, height
3554
- encodePictureArea: ae(ie(N(le(C.art_code, e.pageDom[0])), o), !0),
3555
- qrCodePosition: ae(ie(N(le(C.art_code, e.pageDom[0])), o)),
3554
+ encodePictureArea: ae(re(N(le(C.art_code, e.pageDom[0])), o), !0),
3555
+ qrCodePosition: ae(re(N(le(C.art_code, e.pageDom[0])), o)),
3556
3556
  // 条形码或二维码,不确定,固定此值
3557
3557
  pictureType: "TYPE_QRCODE"
3558
3558
  },
@@ -3583,7 +3583,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3583
3583
  layerType: ls(e),
3584
3584
  // 定位点信息
3585
3585
  ...ns(e),
3586
- pottedLineXPos: e.bindWidth ? (a = ae(ie(N(le(C.bind_line, e.pageDom[0])), o))) == null ? void 0 : a.x : 0,
3586
+ pottedLineXPos: e.bindWidth ? (a = ae(re(N(le(C.bind_line, e.pageDom[0])), o))) == null ? void 0 : a.x : 0,
3587
3587
  // 页码点信息
3588
3588
  pageSideAnchorsList: ss(e),
3589
3589
  // 缺考标记
@@ -3681,7 +3681,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3681
3681
  ]));
3682
3682
  }
3683
3683
  });
3684
- const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e) => e == null ? void 0 : e.getBoundingClientRect(), $t = (e, t) => t.querySelector(`*[data-tag="${e}"]`), nt = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, ut].includes(t.dataset.block || "")), Xe = (e) => e.previousElementSibling ? [Ee, ut].includes(e.previousElementSibling.dataset.block || "") ? Xe(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Xe(e.parentElement) : document.body, $s = (e) => {
3684
+ const Cs = /* @__PURE__ */ ce(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e) => e == null ? void 0 : e.getBoundingClientRect(), $t = (e, t) => t.querySelector(`*[data-tag="${e}"]`), nt = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, ut].includes(t.dataset.block || "")), Xe = (e) => e.previousElementSibling ? [Ee, ut].includes(e.previousElementSibling.dataset.block || "") ? Xe(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Xe(e.parentElement) : document.body, $s = (e) => {
3685
3685
  const t = e.parentElement, o = document.createElement("span");
3686
3686
  return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = ut, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
3687
3687
  }, Ss = (e, t, o, a) => {
@@ -3754,11 +3754,11 @@ const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3754
3754
  const i = de(t).top;
3755
3755
  let c = {}, u = 0, y = 0;
3756
3756
  const O = (v) => {
3757
- const z = v % (a + n), ne = Math.floor(v / (a + n)) * 2 + (z >= a ? 1 : 0), R = r(v, ne);
3757
+ const z = v % (a + n), ne = Math.floor(v / (a + n)) * 2 + (z >= a ? 1 : 0), H = r(v, ne);
3758
3758
  c = {
3759
3759
  top: i,
3760
- width: parseFloat(R.width),
3761
- height: parseFloat(R.height)
3760
+ width: parseFloat(H.width),
3761
+ height: parseFloat(H.height)
3762
3762
  };
3763
3763
  };
3764
3764
  let h = [], F = 0;
@@ -3784,7 +3784,7 @@ const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3784
3784
  }
3785
3785
  h[h.length - 1].data.push(v), l([...h]), window.requestAnimationFrame(() => {
3786
3786
  const z = $t(v.__tag__, t), ne = !v.isHidden && de(z);
3787
- let R = null;
3787
+ let H = null;
3788
3788
  if (y) {
3789
3789
  const _ = z.querySelector(`*[data-hutkey="${y}"]`), k = de(_);
3790
3790
  h[h.length - 1].top = c.top - k.top, h[h.length - 1].height = c.height - h[h.length - 1].top, y = 0;
@@ -3797,63 +3797,64 @@ const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3797
3797
  else if (J(z))
3798
3798
  h[h.length - 1].data.pop(), Y(), D(v);
3799
3799
  else {
3800
- R = It(z, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
3800
+ H = It(z, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
3801
3801
  const _ = z.querySelector(`*[data-content="${v.id}"]`);
3802
- h[h.length - 1].height = de(R.cut).top - c.top, Y(), _ != null && _.contains(R.cut) ? (y = Date.now(), R.cut.dataset.hutkey = y, D({ ...v, content: _.innerHTML })) : (h[h.length - 1].data.pop(), D(v));
3802
+ h[h.length - 1].height = de(H.cut).top - c.top, Y(), _ != null && _.contains(H.cut) ? (y = Date.now(), H.cut.dataset.hutkey = y, D({ ...v, content: _.innerHTML })) : (h[h.length - 1].data.pop(), D(v));
3803
3803
  }
3804
3804
  else {
3805
3805
  let _ = [], k = [];
3806
- v.children.some((w, H) => {
3806
+ v.children.some((w, R) => {
3807
3807
  const B = $t(w.__tag__, t), ue = de(B);
3808
3808
  if (u) {
3809
- const he = B.querySelector(`*[data-cutkey="${u}"]`), ce = de(he);
3810
- h[h.length - 1].top = c.top - ce.top, h[h.length - 1].height = c.height - h[h.length - 1].top, u = 0;
3809
+ const he = B.querySelector(`*[data-cutkey="${u}"]`), se = de(he);
3810
+ h[h.length - 1].top = c.top - se.top, h[h.length - 1].height = c.height - h[h.length - 1].top, u = 0;
3811
3811
  }
3812
3812
  if (ue.height + ue.top - c.top > h[h.length - 1].height) {
3813
3813
  if (E(B))
3814
- _.push(w), k = H < v.children.length - 1 ? v.children.slice(H + 1) : [];
3814
+ _.push(w), k = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
3815
3815
  else if (J(B))
3816
- k = v.children.slice(H);
3816
+ k = v.children.slice(R);
3817
3817
  else {
3818
- R = It(B, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
3818
+ H = It(B, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
3819
3819
  const he = B.querySelector(`*[data-content="${w.id}"]`);
3820
- if (B === R.targetEl)
3821
- _.push(w), k = H < v.children.length - 1 ? v.children.slice(H + 1) : [];
3822
- else if (he && he.contains(R.cut))
3823
- u = Date.now(), R.cut.dataset.cutkey = u, w.content = he.innerHTML, _.push(w), k = [{ ...w, content: he.innerHTML }, ...H < v.children.length - 1 ? v.children.slice(H + 1) : []], h[h.length - 1].height = de(R.cut).top - c.top;
3820
+ if (B === H.targetEl)
3821
+ _.push(w), k = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
3822
+ else if (he && he.contains(H.cut))
3823
+ u = Date.now(), H.cut.dataset.cutkey = u, w.content = he.innerHTML, _.push(w), k = [{ ...w, content: he.innerHTML }, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []], h[h.length - 1].height = de(H.cut).top - c.top;
3824
3824
  else {
3825
3825
  if (!k.length) {
3826
- let ce = { ...w };
3826
+ let se = { ...w };
3827
3827
  switch (w.problemType) {
3828
3828
  case at.slove:
3829
3829
  const L = B.querySelector(`*[data-area="${w.id}"]`);
3830
- L != null && L.contains(R.cut) && (u = Date.now(), R.cut.dataset.cutkey = u, w.answerArea = L.innerHTML), w.chunk += 1;
3830
+ L != null && L.contains(H.cut) && (u = Date.now(), H.cut.dataset.cutkey = u, w.answerArea = L.innerHTML), w.chunk += 1;
3831
3831
  break;
3832
3832
  case at.art:
3833
- const $ = B.querySelector(`*[data-bart="${w.id}"]`), T = R.targetEl.dataset.block === we && R.targetEl.dataset.size ? R.targetEl : null, ee = B.querySelector(`*[data-aart="${w.id}"]`);
3834
- if ($ != null && $.contains(R.cut))
3835
- u = Date.now(), R.cut.dataset.cutkey = u, w.beforeArt = $ == null ? void 0 : $.innerHTML, ce.beforeGuide = "", ce.afterArt = "", ce.endAnswerLen = -1, w.chunk += 1;
3833
+ const $ = B.querySelector(`*[data-bart="${w.id}"]`), T = H.targetEl.dataset.block === we && H.targetEl.dataset.size ? H.targetEl : null, ee = B.querySelector(`*[data-aart="${w.id}"]`);
3834
+ if ($ != null && $.contains(H.cut))
3835
+ u = Date.now(), H.cut.dataset.cutkey = u, w.beforeArt = $ == null ? void 0 : $.innerHTML, se.beforeGuide = "", se.afterArt = "", se.endAnswerLen = -1;
3836
3836
  else if (T) {
3837
3837
  const pe = parseInt(T.dataset.size);
3838
3838
  if (!w.artBlock)
3839
3839
  if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > pe) {
3840
- const W = B.querySelector(`*[data-guide="${w.id}"]`), oe = de(W);
3841
- if (console.log(W, oe, c), oe.height + oe.top - c.top > c.height) {
3842
- W.innerHTML = w.beforeGuide.split("").map((ge) => `<span>${ge}</span>`).join("");
3843
- const Te = de(T).top + T.offsetHeight, Se = [...Array.from(W.children)].findIndex((ge) => de(ge).top > Te);
3844
- ce.beforeGuide = w.beforeGuide.substring(0, Se), w.beforeGuide = w.beforeGuide.substring(Se);
3840
+ const G = B.querySelector(`*[data-guide="${w.id}"]`), oe = de(G);
3841
+ if (console.log(G, oe, c), oe.height + oe.top - c.top > c.height) {
3842
+ G.innerHTML = w.beforeGuide.split("").map((ge) => `<span>${ge}</span>`).join("");
3843
+ const Te = de(T).top + T.offsetHeight, Se = [...Array.from(G.children)].findIndex((ge) => de(ge).top > Te);
3844
+ se.beforeGuide = w.beforeGuide.substring(0, Se), w.beforeGuide = w.beforeGuide.substring(Se);
3845
3845
  } else
3846
3846
  w.beforeGuide = "";
3847
3847
  } else
3848
3848
  w.beforeGuide = "";
3849
- ce.endAnswerLen = pe, w.startAnswerLen = pe, w.chunk += 1;
3849
+ se.endAnswerLen = pe, w.startAnswerLen = pe;
3850
3850
  } else
3851
- ee != null && ee.contains(R.cut) ? (u = Date.now(), R.cut.dataset.cutkey = u, w.chunk += 1, w.beforeArt = "", w.beforeGuide = "", w.startAnswerLen = 1, w.endAnswerLen = -1, w.afterArt = ee.innerHTML) : R.targetEl === $ && (ce.endAnswerLen = -1, ce.beforeGuide = "", ce.afterArt = "", w.beforeArt = "", w.chunk += 1);
3851
+ ee != null && ee.contains(H.cut) ? (u = Date.now(), H.cut.dataset.cutkey = u, w.beforeArt = "", w.beforeGuide = "", w.startAnswerLen = 1, w.endAnswerLen = -1, w.afterArt = ee.innerHTML) : H.targetEl === $ ? (se.endAnswerLen = -1, se.beforeGuide = "", se.afterArt = "", w.beforeArt = "") : ($ == null ? void 0 : $.previousElementSibling) === H.cut && (se.endAnswerLen = -1, se.beforeArt = "", se.beforeGuide = "", se.afterArt = "");
3852
+ w.chunk += 1;
3852
3853
  break;
3853
3854
  }
3854
- B.contains(R.targetEl) && _.push(ce), u && (h[h.length - 1].height = de(R.cut).top - c.top);
3855
+ B.contains(H.targetEl) && _.push(se), u && (h[h.length - 1].height = de(H.cut).top - c.top);
3855
3856
  }
3856
- k = [w, ...H < v.children.length - 1 ? v.children.slice(H + 1) : []];
3857
+ k = [w, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []];
3857
3858
  }
3858
3859
  }
3859
3860
  return !0;
@@ -3943,7 +3944,7 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3943
3944
  ]));
3944
3945
  }
3945
3946
  });
3946
- const Ms = /* @__PURE__ */ re(Es, [["__scopeId", "data-v-1398ac85"]]);
3947
+ const Ms = /* @__PURE__ */ ce(Es, [["__scopeId", "data-v-1398ac85"]]);
3947
3948
  let Ye = (e) => {
3948
3949
  };
3949
3950
  const Ps = {
@@ -3978,7 +3979,7 @@ const Ds = {
3978
3979
  unmounted: () => {
3979
3980
  document.removeEventListener("mousemove", ot);
3980
3981
  }
3981
- }, As = ["onMousedown", "data-block"], Ns = ["src"], Bs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Os = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, zs = ["onMousedown"], Hs = ["onMousedown"], Rs = ["disabled", "onMousedown", "data-block"], Ws = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Gs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Ys = ["onMousedown"], qs = /* @__PURE__ */ Z({
3982
+ }, As = ["onMousedown", "data-block"], Ns = ["src"], Bs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Os = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, zs = ["onMousedown"], Hs = ["onMousedown"], Rs = ["disabled", "onMousedown", "data-block"], Gs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Ws = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Ys = ["onMousedown"], qs = /* @__PURE__ */ Z({
3982
3983
  __name: "absItem",
3983
3984
  props: {
3984
3985
  imgData: {},
@@ -4014,7 +4015,7 @@ const Ds = {
4014
4015
  }, 400);
4015
4016
  }, ne = (L) => {
4016
4017
  F.value = L;
4017
- }, R = () => {
4018
+ }, H = () => {
4018
4019
  const L = D.value, $ = L.left + L.width / 2, T = L.top + L.height / 2, ee = y.value.getBoundingClientRect() || {};
4019
4020
  h.value = { x: $ + ee.left, y: T + ee.top }, y.value.addEventListener("mousemove", _), y.value.addEventListener("mouseleave", k), y.value.addEventListener("mouseup", k);
4020
4021
  }, _ = (L) => {
@@ -4025,13 +4026,13 @@ const Ds = {
4025
4026
  L.stopPropagation(), L.preventDefault(), t("changeAbsImgItem", i.value), y.value.removeEventListener("mousemove", _), y.value.removeEventListener("mouseleave", k), y.value.removeEventListener("mouseup", k);
4026
4027
  }, w = (L, $) => {
4027
4028
  var T;
4028
- L.stopPropagation(), c.value = $, l.value = { x: L.clientX, y: L.clientY, ...D.value }, ((T = D.value) == null ? void 0 : T.key.split("-")[0]) === "img" ? y.value.addEventListener("mousemove", H) : y.value.addEventListener("mousemove", B), y.value.addEventListener("mouseleave", ue), y.value.addEventListener("mouseup", ue);
4029
- }, H = (L) => {
4029
+ L.stopPropagation(), c.value = $, l.value = { x: L.clientX, y: L.clientY, ...D.value }, ((T = D.value) == null ? void 0 : T.key.split("-")[0]) === "img" ? y.value.addEventListener("mousemove", R) : y.value.addEventListener("mousemove", B), y.value.addEventListener("mouseleave", ue), y.value.addEventListener("mouseup", ue);
4030
+ }, R = (L) => {
4030
4031
  const $ = { x: L.clientX - l.value.x, y: L.clientY - l.value.y }, T = { ...D.value }, ee = $.x > $.y ? "width" : "height";
4031
4032
  [
4032
4033
  // 0
4033
4034
  () => {
4034
- const W = {
4035
+ const G = {
4035
4036
  width: l.value.width - $.x,
4036
4037
  height: l.value.width * (1 - $.y / l.value.height)
4037
4038
  }[ee], oe = {
@@ -4040,26 +4041,26 @@ const Ds = {
4040
4041
  }[ee];
4041
4042
  i.value = {
4042
4043
  ...T,
4043
- width: W,
4044
+ width: G,
4044
4045
  height: oe,
4045
- left: l.value.left - (W - l.value.width),
4046
+ left: l.value.left - (G - l.value.width),
4046
4047
  top: l.value.top - (oe - l.value.height)
4047
4048
  };
4048
4049
  },
4049
4050
  // 1
4050
4051
  () => {
4051
- const W = l.value.width * (1 - $.y / l.value.height), oe = l.value.height - $.y;
4052
+ const G = l.value.width * (1 - $.y / l.value.height), oe = l.value.height - $.y;
4052
4053
  i.value = {
4053
4054
  ...T,
4054
- width: W,
4055
+ width: G,
4055
4056
  height: oe,
4056
- left: l.value.left - (W - l.value.width) / 2,
4057
+ left: l.value.left - (G - l.value.width) / 2,
4057
4058
  top: l.value.top - (oe - l.value.height)
4058
4059
  };
4059
4060
  },
4060
4061
  // 2
4061
4062
  () => {
4062
- const W = {
4063
+ const G = {
4063
4064
  width: l.value.height * (1 + $.x / l.value.width),
4064
4065
  height: l.value.height - $.y
4065
4066
  }[ee];
@@ -4069,34 +4070,34 @@ const Ds = {
4069
4070
  width: l.value.width + $.x,
4070
4071
  height: l.value.width * (1 - $.y / l.value.height)
4071
4072
  }[ee],
4072
- height: W,
4073
- top: l.value.top - (W - l.value.height)
4073
+ height: G,
4074
+ top: l.value.top - (G - l.value.height)
4074
4075
  };
4075
4076
  },
4076
4077
  // 3
4077
4078
  () => {
4078
- const W = l.value.width - $.x, oe = l.value.height * (1 - $.x / l.value.width);
4079
+ const G = l.value.width - $.x, oe = l.value.height * (1 - $.x / l.value.width);
4079
4080
  i.value = {
4080
4081
  ...T,
4081
- width: W,
4082
+ width: G,
4082
4083
  height: oe,
4083
- left: l.value.left - (W - l.value.width),
4084
+ left: l.value.left - (G - l.value.width),
4084
4085
  top: l.value.top - (oe - l.value.height) / 2
4085
4086
  };
4086
4087
  },
4087
4088
  // 4
4088
4089
  () => {
4089
- const W = l.value.width + $.x, oe = l.value.height * (1 + $.x / l.value.width);
4090
+ const G = l.value.width + $.x, oe = l.value.height * (1 + $.x / l.value.width);
4090
4091
  i.value = {
4091
4092
  ...T,
4092
- width: W,
4093
+ width: G,
4093
4094
  height: oe,
4094
4095
  top: l.value.top - (oe - l.value.height) / 2
4095
4096
  };
4096
4097
  },
4097
4098
  // 5
4098
4099
  () => {
4099
- const W = {
4100
+ const G = {
4100
4101
  width: l.value.width - $.x,
4101
4102
  height: l.value.width * (1 + $.y / l.value.height)
4102
4103
  }[ee], oe = {
@@ -4105,24 +4106,24 @@ const Ds = {
4105
4106
  }[ee];
4106
4107
  i.value = {
4107
4108
  ...T,
4108
- width: W,
4109
+ width: G,
4109
4110
  height: oe,
4110
- left: l.value.left - (W - l.value.width)
4111
+ left: l.value.left - (G - l.value.width)
4111
4112
  };
4112
4113
  },
4113
4114
  // 6
4114
4115
  () => {
4115
- const W = l.value.width * (1 + $.y / l.value.height), oe = l.value.height + $.y;
4116
+ const G = l.value.width * (1 + $.y / l.value.height), oe = l.value.height + $.y;
4116
4117
  i.value = {
4117
4118
  ...T,
4118
- width: W,
4119
+ width: G,
4119
4120
  height: oe,
4120
- left: l.value.left - (W - l.value.width) / 2
4121
+ left: l.value.left - (G - l.value.width) / 2
4121
4122
  };
4122
4123
  },
4123
4124
  // 7
4124
4125
  () => {
4125
- const W = {
4126
+ const G = {
4126
4127
  width: l.value.width + $.x,
4127
4128
  height: l.value.width * (1 + $.y / l.value.height)
4128
4129
  }[ee], oe = {
@@ -4131,7 +4132,7 @@ const Ds = {
4131
4132
  }[ee];
4132
4133
  i.value = {
4133
4134
  ...T,
4134
- width: W,
4135
+ width: G,
4135
4136
  height: oe
4136
4137
  };
4137
4138
  }
@@ -4184,27 +4185,27 @@ const Ds = {
4184
4185
  i.value = ee[c.value];
4185
4186
  }, ue = () => {
4186
4187
  var L;
4187
- y.value.removeEventListener("mousemove", H), y.value.removeEventListener("mousemove", B), y.value.removeEventListener("mouseleave", ue), y.value.removeEventListener("mouseup", ue), ((L = D.value) == null ? void 0 : L.key.split("-")[0]) === "img" ? t("changeAbsImgItem", i.value) : t("changeAbsTxtItem", i.value), i.value = null;
4188
+ y.value.removeEventListener("mousemove", R), y.value.removeEventListener("mousemove", B), y.value.removeEventListener("mouseleave", ue), y.value.removeEventListener("mouseup", ue), ((L = D.value) == null ? void 0 : L.key.split("-")[0]) === "img" ? t("changeAbsImgItem", i.value) : t("changeAbsTxtItem", i.value), i.value = null;
4188
4189
  }, he = (L) => {
4189
4190
  if (!L || L === D.value.content) {
4190
4191
  u.value++;
4191
4192
  return;
4192
4193
  }
4193
4194
  t("changeAbsTxtItem", { ...D.value, content: L });
4194
- }, ce = (L, $) => {
4195
+ }, se = (L, $) => {
4195
4196
  var ee;
4196
4197
  const T = document.body.querySelector(`.cke_editor_${ht}`);
4197
4198
  !L && ((ee = ($ == null ? void 0 : $.target).dataset) != null && ee.safe || T && window.getComputedStyle(T).display !== "none") || (Y.value = L == null ? void 0 : L.key, i.value = L ? { ...L } : null);
4198
4199
  };
4199
4200
  return (L, $) => (s(), d(M, null, [
4200
4201
  (s(!0), d(M, null, V(J.value, (T) => {
4201
- var ee, pe, W, oe, Te, Se, ge;
4202
+ var ee, pe, G, oe, Te, Se, ge;
4202
4203
  return ft((s(), d("div", {
4203
4204
  key: T.id,
4204
4205
  "data-safe": "true",
4205
4206
  class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === T.key ? "z-8" : "z-7"]),
4206
- style: G({ left: Math.max(((pe = v.value[T.key]) == null ? void 0 : pe.left) || T.left, 0) + "px", top: Math.max(((W = v.value[T.key]) == null ? void 0 : W.top) || T.top, 0) + "px", width: (((oe = v.value[T.key]) == null ? void 0 : oe.width) || T.width) + "px", height: (((Te = v.value[T.key]) == null ? void 0 : Te.height) || T.height) + "px", transform: `rotate(${((Se = v.value[T.key]) == null ? void 0 : Se.rotate) || T.rotate}deg)` }),
4207
- onMousedown: Le((f) => ce(T), ["stop"]),
4207
+ style: W({ left: Math.max(((pe = v.value[T.key]) == null ? void 0 : pe.left) || T.left, 0) + "px", top: Math.max(((G = v.value[T.key]) == null ? void 0 : G.top) || T.top, 0) + "px", width: (((oe = v.value[T.key]) == null ? void 0 : oe.width) || T.width) + "px", height: (((Te = v.value[T.key]) == null ? void 0 : Te.height) || T.height) + "px", transform: `rotate(${((Se = v.value[T.key]) == null ? void 0 : Se.rotate) || T.rotate}deg)` }),
4208
+ onMousedown: Le((f) => se(T), ["stop"]),
4208
4209
  "data-block": x(Ee)
4209
4210
  }, [
4210
4211
  g("img", {
@@ -4223,13 +4224,13 @@ const Ds = {
4223
4224
  (s(), d(M, null, V(8, (f, S) => g("div", {
4224
4225
  key: f,
4225
4226
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4226
- style: G({ ...r[S], transform: "translate(-50%, -50%)" }),
4227
+ style: W({ ...r[S], transform: "translate(-50%, -50%)" }),
4227
4228
  onMousedown: Le((ye) => w(ye, S), ["stop"])
4228
4229
  }, null, 44, zs)), 64))
4229
4230
  ]),
4230
4231
  g("span", {
4231
4232
  class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
4232
- onMousedown: Le(R, ["stop"])
4233
+ onMousedown: Le(H, ["stop"])
4233
4234
  }, [
4234
4235
  K(_e, {
4235
4236
  name: "reset",
@@ -4239,18 +4240,18 @@ const Ds = {
4239
4240
  ], 64)) : P("", !0)
4240
4241
  ], 46, As)), [
4241
4242
  [x(n), z],
4242
- [x(a), (f) => ce(null, f)]
4243
+ [x(a), (f) => se(null, f)]
4243
4244
  ]);
4244
4245
  }), 128)),
4245
4246
  (s(!0), d(M, null, V(E.value, (T) => {
4246
- var ee, pe, W, oe, Te, Se, ge;
4247
+ var ee, pe, G, oe, Te, Se, ge;
4247
4248
  return ft((s(), d("div", {
4248
4249
  key: T.id,
4249
4250
  disabled: F.value,
4250
4251
  "data-safe": "true",
4251
4252
  class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === T.key ? "z-8 bg-white" : "z-7"]),
4252
- style: G({ left: Math.max(((pe = v.value[T.key]) == null ? void 0 : pe.left) || T.left, 0) + "px", top: Math.max(((W = v.value[T.key]) == null ? void 0 : W.top) || T.top, 0) + "px", width: (((oe = v.value[T.key]) == null ? void 0 : oe.width) || T.width) + "px", height: (((Te = v.value[T.key]) == null ? void 0 : Te.height) || T.height) + "px" }),
4253
- onMousedown: Le((f) => ce(T), ["stop"]),
4253
+ style: W({ left: Math.max(((pe = v.value[T.key]) == null ? void 0 : pe.left) || T.left, 0) + "px", top: Math.max(((G = v.value[T.key]) == null ? void 0 : G.top) || T.top, 0) + "px", width: (((oe = v.value[T.key]) == null ? void 0 : oe.width) || T.width) + "px", height: (((Te = v.value[T.key]) == null ? void 0 : Te.height) || T.height) + "px" }),
4254
+ onMousedown: Le((f) => se(T), ["stop"]),
4254
4255
  "data-block": x(Ee)
4255
4256
  }, [
4256
4257
  (s(), U(Ms, {
@@ -4264,7 +4265,7 @@ const Ds = {
4264
4265
  onBlur: $[1] || ($[1] = (f) => ne(!1))
4265
4266
  }, null, 8, ["readonly", "value", "name"])),
4266
4267
  ((ge = D.value) == null ? void 0 : ge.key) === T.key ? (s(), d(M, { key: 0 }, [
4267
- g("span", Ws, [
4268
+ g("span", Gs, [
4268
4269
  K(_e, {
4269
4270
  name: "close",
4270
4271
  width: 2,
@@ -4272,24 +4273,24 @@ const Ds = {
4272
4273
  onClick: (f) => t("delAbsTxtItem", T)
4273
4274
  }, null, 8, ["onClick"])
4274
4275
  ]),
4275
- g("div", Gs, [
4276
+ g("div", Ws, [
4276
4277
  (s(), d(M, null, V(8, (f, S) => g("div", {
4277
4278
  key: f,
4278
4279
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4279
- style: G({ ...r[S], transform: "translate(-50%, -50%)" }),
4280
+ style: W({ ...r[S], transform: "translate(-50%, -50%)" }),
4280
4281
  onMousedown: (ye) => w(ye, S)
4281
4282
  }, null, 44, Ys)), 64))
4282
4283
  ])
4283
4284
  ], 64)) : P("", !0)
4284
4285
  ], 46, Rs)), [
4285
4286
  [x(n), z],
4286
- [x(a), (f) => ce(null, f)]
4287
+ [x(a), (f) => se(null, f)]
4287
4288
  ]);
4288
4289
  }), 128))
4289
4290
  ], 64));
4290
4291
  }
4291
4292
  });
4292
- const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["viewBox"], Ks = {
4293
+ const Qs = /* @__PURE__ */ ce(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["viewBox"], Ks = {
4293
4294
  x: "0",
4294
4295
  y: "0",
4295
4296
  width: "100%",
@@ -4311,7 +4312,7 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4311
4312
  emits: ["changeInfo", "changeExtentInfo", "toggleActive", "dbProblemClick", "dbHeadLineClick", "changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem", "getFinalData", "changeLayoutStatus"],
4312
4313
  setup(e, { emit: t }) {
4313
4314
  const o = e;
4314
- Wt("ckeditorOrigin", o.ckeditorOrigin);
4315
+ Gt("ckeditorOrigin", o.ckeditorOrigin);
4315
4316
  const a = Q([]), n = Q([]), r = Q(2), l = Q(0), i = Q(0), c = Q(), u = Q([]), y = Q([]), O = Q([]), h = Q([]), F = A(() => o.data.map((f) => ({
4316
4317
  ...f,
4317
4318
  __tag__: xt(),
@@ -4323,7 +4324,7 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4323
4324
  }), J = A(() => {
4324
4325
  var f;
4325
4326
  return o.layout.bindFlag && !!((f = Oe.find((S) => S.code === o.layout.paper)) != null && f.isMultCol);
4326
- }), E = A(() => o.isFinal ? 0 : 10), D = A(() => o.isFinal ? 10 : 0), v = A(() => Math.floor(a.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(a.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || r.value || 1), z = A(() => Math.ceil(v.value / 2) * 2), ne = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), R = A(() => ne.value ? ke : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || rt[o.layout.mode][o.layout.paper]), k = A(() => b[o.layout.paper].width - _.value.left - _.value.right), w = A(() => b[o.layout.paper].height - _.value.top - _.value.bottom), H = A(() => (k.value - (i.value ? i.value + pe(0) : 0) + pe(0)) / o.layout.column - pe(0)), B = A(() => ({
4327
+ }), E = A(() => o.isFinal ? 0 : 10), D = A(() => o.isFinal ? 10 : 0), v = A(() => Math.floor(a.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(a.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || r.value || 1), z = A(() => Math.ceil(v.value / 2) * 2), ne = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), H = A(() => ne.value ? ke : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || rt[o.layout.mode][o.layout.paper]), k = A(() => b[o.layout.paper].width - _.value.left - _.value.right), w = A(() => b[o.layout.paper].height - _.value.top - _.value.bottom), R = A(() => (k.value - (i.value ? i.value + pe(0) : 0) + pe(0)) / o.layout.column - pe(0)), B = A(() => ({
4327
4328
  width: `${b[o.layout.paper].width}px`,
4328
4329
  height: `${(b[o.layout.paper].height + E.value) * z.value - E.value}px`
4329
4330
  })), ue = A(() => ({
@@ -4337,7 +4338,7 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4337
4338
  return {
4338
4339
  left: `${_.value.left + (i.value ? i.value + pe(0) : 0)}px`,
4339
4340
  top: `${_.value.top}px`,
4340
- width: f ? `${H.value}px` : `${k.value}px`
4341
+ width: f ? `${R.value}px` : `${k.value}px`
4341
4342
  };
4342
4343
  });
4343
4344
  De(() => [JSON.stringify({ ...o.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1, simpleScoreBarFlag: !1, minusFlag: !1, fillScoreFlag: !1 }), JSON.stringify(o.fontConfig), JSON.stringify(o.info), JSON.stringify(o.data)].join(""), () => {
@@ -4347,28 +4348,28 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4347
4348
  }, { immediate: !0 }), De(() => J.value, () => {
4348
4349
  i.value = J.value ? 100 : 0;
4349
4350
  }, { immediate: !0 });
4350
- const ce = (f) => f % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, L = (f, S) => Math.floor(S / 2) * (o.layout.column + o.layout.backColumn) + S % 2 * o.layout.column + f, $ = (f) => {
4351
+ const se = (f) => f % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, L = (f, S) => Math.floor(S / 2) * (o.layout.column + o.layout.backColumn) + S % 2 * o.layout.column + f, $ = (f) => {
4351
4352
  const S = f % (o.layout.column + o.layout.backColumn);
4352
4353
  return S >= o.layout.column ? S - o.layout.column : S;
4353
4354
  }, T = (f, S) => {
4354
4355
  f ? u.value[S] = f : u.value.splice(S, 1);
4355
4356
  }, ee = (f, S) => {
4356
4357
  f ? y.value[S] = f : y.value.splice(S, 1);
4357
- }, pe = (f) => Et[o.layout.mode][o.layout.paper][ce(f)] || 0, W = (f, S = !1) => (k.value - (i.value ? i.value + pe(f) : 0) + pe(f)) / ce(f) - pe(f) - R.value.left - R.value.right + (S ? R.value.left + R.value.right : 0), oe = (f, S) => {
4358
- var j, se;
4358
+ }, pe = (f) => Et[o.layout.mode][o.layout.paper][se(f)] || 0, G = (f, S = !1) => (k.value - (i.value ? i.value + pe(f) : 0) + pe(f)) / se(f) - pe(f) - H.value.left - H.value.right + (S ? H.value.left + H.value.right : 0), oe = (f, S) => {
4359
+ var j, ie;
4359
4360
  const ye = f % (o.layout.column + o.layout.backColumn) ? 0 : ((j = O.value[Math.min(S, 1)]) == null ? void 0 : j.offsetHeight) || 0;
4360
4361
  return {
4361
- left: `${_.value.left + (S % 2 ? 0 : i.value ? i.value + pe(f) : 0) + R.value.left + $(f) * (W(f) + pe(f) + R.value.left + R.value.right)}px`,
4362
- top: `${ye + _.value.top + (!S && !f ? 0 : R.value.top)}px`,
4363
- width: `${W(f)}px`,
4364
- height: `${w.value - ye - (!S && !f ? 0 : R.value.top) - R.value.bottom}px`,
4365
- contentHeight: `${(se = a.value[f]) == null ? void 0 : se.height}px`
4362
+ left: `${_.value.left + (S % 2 ? 0 : i.value ? i.value + pe(f) : 0) + H.value.left + $(f) * (G(f) + pe(f) + H.value.left + H.value.right)}px`,
4363
+ top: `${ye + _.value.top + (!S && !f ? 0 : H.value.top)}px`,
4364
+ width: `${G(f)}px`,
4365
+ height: `${w.value - ye - (!S && !f ? 0 : H.value.top) - H.value.bottom}px`,
4366
+ contentHeight: `${(ie = a.value[f]) == null ? void 0 : ie.height}px`
4366
4367
  };
4367
4368
  }, Te = (f, S = !1) => {
4368
4369
  n.value = f.map((ye) => ({ ...ye })), S && (a.value = [...f], Ze(() => {
4369
4370
  r.value = Math.ceil(a.value.length / o.layout.column), n.value = [], y.value.forEach((ye, j) => {
4370
- var se, Ce;
4371
- !ye || !ye.col || ((se = a.value[j]) != null && se.top ? ye.col.style.marginTop = `${(Ce = a.value[j]) == null ? void 0 : Ce.top}px` : ye.col.style.marginTop = "");
4371
+ var ie, Ce;
4372
+ !ye || !ye.col || ((ie = a.value[j]) != null && ie.top ? ye.col.style.marginTop = `${(Ce = a.value[j]) == null ? void 0 : Ce.top}px` : ye.col.style.marginTop = "");
4372
4373
  }), o.isFinal && setTimeout(() => {
4373
4374
  const ye = ys({
4374
4375
  config: {
@@ -4421,38 +4422,38 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4421
4422
  ref_key: "rawDom",
4422
4423
  ref: c
4423
4424
  }, [
4424
- n.value.length ? (s(!0), d(M, { key: 0 }, V((ye = n.value[n.value.length - 1]) == null ? void 0 : ye.data, (j, se) => (s(), d(M, null, [
4425
+ n.value.length ? (s(!0), d(M, { key: 0 }, V((ye = n.value[n.value.length - 1]) == null ? void 0 : ye.data, (j, ie) => (s(), d(M, null, [
4425
4426
  j.isHidden ? P("", !0) : (s(), U(Ct, {
4426
4427
  key: 0,
4427
4428
  item: j,
4428
4429
  showColBorder: ne.value,
4429
- isFirst: !se && n.value.length === 1,
4430
+ isFirst: !ie && n.value.length === 1,
4430
4431
  layout: f.layout
4431
4432
  }, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
4432
4433
  ne.value ? (s(), d("div", {
4433
4434
  key: 1,
4434
4435
  class: te([!j.children.length && j.problemType && "p-1 min-h-[2rem]"])
4435
4436
  }, [
4436
- (s(), U(Ge, {
4437
+ (s(), U(We, {
4437
4438
  data: j,
4438
4439
  key: n.value.length,
4439
4440
  layout: f.layout,
4440
4441
  target: f.target,
4441
4442
  noPortrait: "",
4442
- width: W(n.value.length - 1) - 10
4443
+ width: G(n.value.length - 1) - 10
4443
4444
  }, null, 8, ["data", "layout", "target", "width"]))
4444
- ], 2)) : (s(), U(Ge, {
4445
+ ], 2)) : (s(), U(We, {
4445
4446
  data: j,
4446
4447
  key: n.value.length,
4447
4448
  layout: f.layout,
4448
4449
  target: f.target,
4449
- width: W(n.value.length - 1)
4450
+ width: G(n.value.length - 1)
4450
4451
  }, null, 8, ["data", "layout", "target", "width"]))
4451
4452
  ], 64))), 256)) : P("", !0)
4452
4453
  ], 512),
4453
4454
  g("div", {
4454
4455
  class: te(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", f.layout.redFlag && "red_mode", f.readonly && "pointer-events-none"]),
4455
- style: G(B.value)
4456
+ style: W(B.value)
4456
4457
  }, [
4457
4458
  K(Qs, {
4458
4459
  imgData: f.imgData,
@@ -4471,20 +4472,20 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4471
4472
  key: l.value
4472
4473
  }, [
4473
4474
  (s(), d("foreignObject", Ks, [
4474
- (s(!0), d(M, null, V(z.value, (j, se) => (s(), d("div", {
4475
+ (s(!0), d(M, null, V(z.value, (j, ie) => (s(), d("div", {
4475
4476
  key: j,
4476
4477
  class: "bg-white relative flex justify-between overflow-hidden box-border",
4477
4478
  ref_for: !0,
4478
- ref: (Ce) => T(Ce, se),
4479
- style: G(ue.value)
4479
+ ref: (Ce) => T(Ce, ie),
4480
+ style: W(ue.value)
4480
4481
  }, [
4481
- se < v.value ? (s(), d(M, { key: 0 }, [
4482
+ ie < v.value ? (s(), d(M, { key: 0 }, [
4482
4483
  K(wo, {
4483
4484
  layout: f.layout,
4484
- currentPage: se,
4485
+ currentPage: ie,
4485
4486
  totalPage: v.value,
4486
- columnContentWidth: W(se % 2 ? f.layout.column : 0, !0),
4487
- columnMargin: pe(se % 2 ? f.layout.column : 0),
4487
+ columnContentWidth: G(ie % 2 ? f.layout.column : 0, !0),
4488
+ columnMargin: pe(ie % 2 ? f.layout.column : 0),
4488
4489
  bindWidth: i.value,
4489
4490
  padding: _.value
4490
4491
  }, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
@@ -4498,18 +4499,18 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4498
4499
  ref_for: !0,
4499
4500
  ref_key: "bindDom",
4500
4501
  ref: h,
4501
- currentPage: se,
4502
+ currentPage: ie,
4502
4503
  width: i.value,
4503
4504
  height: w.value,
4504
4505
  isBindFlag: J.value
4505
4506
  }, null, 8, ["currentPage", "width", "height", "isBindFlag"]),
4506
- !(se % 2) || se === 1 && v.value < 3 ? (s(), d("div", {
4507
+ !(ie % 2) || ie === 1 && v.value < 3 ? (s(), d("div", {
4507
4508
  key: 1,
4508
4509
  ref_for: !0,
4509
4510
  ref_key: "titleDom",
4510
4511
  ref: O,
4511
- class: te(["absolute text-black", se === 1 && v.value < 3 && "opacity-0 pointer-events-none"]),
4512
- style: G(he.value)
4512
+ class: te(["absolute text-black", ie === 1 && v.value < 3 && "opacity-0 pointer-events-none"]),
4513
+ style: W(he.value)
4513
4514
  }, [
4514
4515
  K(Mo, {
4515
4516
  layout: f.layout,
@@ -4532,36 +4533,36 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4532
4533
  layout: f.layout,
4533
4534
  isBindFlag: J.value
4534
4535
  }, null, 8, ["layout", "isBindFlag"]),
4535
- se ? P("", !0) : (s(), U(Ya, {
4536
+ ie ? P("", !0) : (s(), U(Ya, {
4536
4537
  key: 0,
4537
4538
  layout: f.layout,
4538
4539
  data: f.data
4539
4540
  }, null, 8, ["layout", "data"])),
4540
- f.layout.writeScoreFlag && !se ? (s(), U(_l, {
4541
+ f.layout.writeScoreFlag && !ie ? (s(), U(_l, {
4541
4542
  key: 1,
4542
4543
  info: f.info,
4543
4544
  layout: f.layout
4544
4545
  }, null, 8, ["info", "layout"])) : P("", !0)
4545
4546
  ], 6)) : P("", !0),
4546
- (s(!0), d(M, null, V(se % 2 ? f.layout.backColumn : f.layout.column, (Ce, Me) => (s(), U(Qa, {
4547
+ (s(!0), d(M, null, V(ie % 2 ? f.layout.backColumn : f.layout.column, (Ce, Me) => (s(), U(Qa, {
4547
4548
  ref_for: !0,
4548
- ref: (We) => ee(We, L(Me, se)),
4549
- styleInfo: oe(L(Me, se), se),
4549
+ ref: (Ge) => ee(Ge, L(Me, ie)),
4550
+ styleInfo: oe(L(Me, ie), ie),
4550
4551
  column: f.layout.column,
4551
- currentColumn: L(Me, se),
4552
+ currentColumn: L(Me, ie),
4552
4553
  showColBorder: ne.value
4553
4554
  }, {
4554
4555
  default: Tt(() => {
4555
- var We;
4556
+ var Ge;
4556
4557
  return [
4557
- (s(!0), d(M, null, V(((We = a.value[L(Me, se)]) == null ? void 0 : We.data) || [], (fe, zt) => {
4558
+ (s(!0), d(M, null, V(((Ge = a.value[L(Me, ie)]) == null ? void 0 : Ge.data) || [], (fe, zt) => {
4558
4559
  var pt;
4559
4560
  return s(), d(M, null, [
4560
4561
  fe.isHidden ? P("", !0) : (s(), U(Ct, {
4561
4562
  key: 0,
4562
4563
  item: fe,
4563
4564
  showColBorder: ne.value,
4564
- isFirst: !se && !Me && !zt,
4565
+ isFirst: !ie && !Me && !zt,
4565
4566
  layout: f.layout,
4566
4567
  isActive: ((pt = f.target.value) == null ? void 0 : pt.id) === fe.id,
4567
4568
  onClick: (xe) => ge({ type: fe.problemType ? x(q).headline : x(q).headlineNotarea, value: fe }),
@@ -4573,11 +4574,11 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4573
4574
  onClick: Le((xe) => ge({ type: fe.problemType ? x(q).headline : x(q).headlineNotarea, value: fe }), ["stop"]),
4574
4575
  onDblclick: (xe) => t("dbHeadLineClick", fe)
4575
4576
  }, [
4576
- K(Ge, {
4577
+ K(We, {
4577
4578
  data: fe,
4578
4579
  layout: f.layout,
4579
4580
  target: f.target,
4580
- width: W(L(Me, se)) - 10,
4581
+ width: G(L(Me, ie)) - 10,
4581
4582
  onClick: S[10] || (S[10] = (xe) => ge({ type: xe.problemType ? x(q).problem : x(q).problemNotarea, value: xe })),
4582
4583
  onDbclick: S[11] || (S[11] = (xe) => t("dbProblemClick", xe))
4583
4584
  }, null, 8, ["data", "layout", "target", "width"]),
@@ -4586,12 +4587,12 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4586
4587
  class: "border-t",
4587
4588
  "data-block": x(Ee)
4588
4589
  }, null, 8, Xs)) : P("", !0)
4589
- ], 42, js)) : (s(), U(Ge, {
4590
+ ], 42, js)) : (s(), U(We, {
4590
4591
  key: 2,
4591
4592
  data: fe,
4592
4593
  layout: f.layout,
4593
4594
  target: f.target,
4594
- width: W(L(Me, se)),
4595
+ width: G(L(Me, ie)),
4595
4596
  onClick: S[12] || (S[12] = (xe) => ge({ type: xe.problemType ? x(q).problem : x(q).problemNotarea, value: xe })),
4596
4597
  onDbclick: S[13] || (S[13] = (xe) => t("dbProblemClick", xe))
4597
4598
  }, null, 8, ["data", "layout", "target", "width"]))
@@ -4611,7 +4612,7 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4611
4612
  };
4612
4613
  }
4613
4614
  });
4614
- const ei = /* @__PURE__ */ re(Vs, [["__scopeId", "data-v-4825ba41"]]);
4615
+ const ei = /* @__PURE__ */ ce(Vs, [["__scopeId", "data-v-4825ba41"]]);
4615
4616
  export {
4616
4617
  Js as Config,
4617
4618
  ei as default