template-designer 0.9.1 → 0.9.2

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.
@@ -1,4 +1,4 @@
1
- import { watch as Ye, nextTick as Xt, ref as jA, computed as GA, openBlock as NA, createElementBlock as OA, normalizeStyle as Se, createElementVNode as UA, toDisplayString as Zn, getCurrentInstance as _i, inject as Zi, unref as MA, getCurrentScope as um, onScopeDispose as fm, readonly as hm, onMounted as Ui, isRef as dm, warn as pm, provide as Np, defineComponent as jn, mergeProps as gm, renderSlot as Es, normalizeClass as on, createVNode as ee, Transition as Sp, withCtx as fe, withDirectives as Di, createTextVNode as dr, vShow as Rp, shallowReactive as xp, createBlock as ft, createCommentVNode as Le, resolveDynamicComponent as Qs, Fragment as Ot, withModifiers as Ne, isVNode as Tp, render as md, onUnmounted as Bm, resolveComponent as tt, renderList as fi, vModelText as wd, vModelCheckbox as mm, vModelDynamic as wm, toRefs as vm, onBeforeUnmount as Vs, reactive as vd, resolveDirective as Um, h as Oh, createApp as Ip } from "vue";
1
+ import { watch as Ye, nextTick as Xt, ref as jA, computed as GA, openBlock as NA, createElementBlock as OA, normalizeStyle as be, createElementVNode as UA, toDisplayString as Zn, getCurrentInstance as _i, inject as Zi, unref as MA, getCurrentScope as um, onScopeDispose as fm, readonly as hm, onMounted as Ui, isRef as dm, warn as pm, provide as Np, defineComponent as jn, mergeProps as gm, renderSlot as Es, normalizeClass as on, createVNode as ee, Transition as Sp, withCtx as fe, withDirectives as Di, createTextVNode as dr, vShow as Rp, shallowReactive as xp, createBlock as ft, createCommentVNode as Le, resolveDynamicComponent as Qs, Fragment as Ot, withModifiers as Se, isVNode as Tp, render as md, onUnmounted as Bm, resolveComponent as tt, renderList as fi, vModelText as wd, vModelCheckbox as mm, vModelDynamic as wm, toRefs as vm, onBeforeUnmount as Vs, reactive as vd, resolveDirective as Um, h as Oh, createApp as Ip } from "vue";
2
2
  const ym = (e, A) => {
3
3
  const t = e[A];
4
4
  return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((n, r) => {
@@ -145,11 +145,11 @@ const Fm = {
145
145
  };
146
146
  return i(), r(), Ye(() => t.propsConfig, () => v(), { deep: !0, immediate: !0 }), (F, B) => (NA(), OA("div", {
147
147
  class: "td-text-component",
148
- style: Se(f.value)
148
+ style: be(f.value)
149
149
  }, [
150
150
  UA("div", {
151
151
  class: "td-text-content",
152
- style: Se(U.value)
152
+ style: be(U.value)
153
153
  }, Zn(l.value), 5)
154
154
  ], 4));
155
155
  }
@@ -1137,7 +1137,7 @@ const j5 = dn([
1137
1137
  MA(n).is("hide-zero", !a.showZero && t.value === 0),
1138
1138
  a.badgeClass
1139
1139
  ]),
1140
- style: Se(MA(i))
1140
+ style: be(MA(i))
1141
1141
  }, [
1142
1142
  Es(a.$slots, "content", { value: MA(r) }, () => [
1143
1143
  dr(Zn(MA(r)), 1)
@@ -1153,7 +1153,7 @@ const j5 = dn([
1153
1153
  });
1154
1154
  var q5 = /* @__PURE__ */ _h(X5, [["__file", "badge.vue"]]);
1155
1155
  const $5 = Xp(q5);
1156
- var IV = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1156
+ var TV = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1157
1157
  function Av(e) {
1158
1158
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1159
1159
  }
@@ -1378,7 +1378,7 @@ const eg = [
1378
1378
  MA(I),
1379
1379
  C.customClass
1380
1380
  ]),
1381
- style: Se(MA(L)),
1381
+ style: be(MA(L)),
1382
1382
  role: "alert",
1383
1383
  onMouseenter: P,
1384
1384
  onMouseleave: H
@@ -1413,7 +1413,7 @@ const eg = [
1413
1413
  C.showClose ? (NA(), ft(MA(Ld), {
1414
1414
  key: 2,
1415
1415
  class: on(MA(a).e("closeBtn")),
1416
- onClick: Ne(W, ["stop"])
1416
+ onClick: Se(W, ["stop"])
1417
1417
  }, {
1418
1418
  default: fe(() => [
1419
1419
  ee(MA(r))
@@ -1773,7 +1773,7 @@ const Mt = (e, A) => {
1773
1773
  min: e.min,
1774
1774
  max: e.max,
1775
1775
  step: e.step,
1776
- onWheel: w[5] || (w[5] = Ne(() => {
1776
+ onWheel: w[5] || (w[5] = Se(() => {
1777
1777
  }, ["prevent"]))
1778
1778
  }, null, 40, Cv)), [
1779
1779
  [wm, f.value]
@@ -4662,7 +4662,7 @@ const LE = {
4662
4662
  f(), i(), r();
4663
4663
  }), Ye(() => t.modelValue, () => p(), { deep: !0 }), Ye(() => t.propsConfig, () => p(), { deep: !0 }), (m, d) => (NA(), OA("div", {
4664
4664
  class: "barcode-component",
4665
- style: Se(o.value)
4665
+ style: be(o.value)
4666
4666
  }, [
4667
4667
  (NA(), OA("svg", {
4668
4668
  ref_key: "barcodeRef",
@@ -6270,9 +6270,9 @@ const SQ = { class: "qrcode-canvas-fixed" }, RQ = ["src", "alt"], xQ = 200, TQ =
6270
6270
  var Q;
6271
6271
  return NA(), OA("div", {
6272
6272
  class: "qrcode-component",
6273
- onDragstart: w[0] || (w[0] = Ne(() => {
6273
+ onDragstart: w[0] || (w[0] = Se(() => {
6274
6274
  }, ["prevent"])),
6275
- style: Se(m.value)
6275
+ style: be(m.value)
6276
6276
  }, [
6277
6277
  UA("div", SQ, [
6278
6278
  UA("img", {
@@ -6446,17 +6446,17 @@ const DQ = {
6446
6446
  const T = tt("el-icon-picture-filled"), I = tt("el-icon"), k = tt("el-icon-loading");
6447
6447
  return NA(), OA("div", {
6448
6448
  class: "image-component",
6449
- style: Se(m.value)
6449
+ style: be(m.value)
6450
6450
  }, [
6451
6451
  a.value ? (NA(), OA("img", {
6452
6452
  key: 1,
6453
6453
  src: a.value,
6454
6454
  alt: "Image: " + B(),
6455
6455
  class: "image-content",
6456
- style: Se(d.value),
6456
+ style: be(d.value),
6457
6457
  onLoad: U,
6458
6458
  onError: v,
6459
- onDragstart: Q[0] || (Q[0] = Ne(() => {
6459
+ onDragstart: Q[0] || (Q[0] = Se(() => {
6460
6460
  }, ["prevent"]))
6461
6461
  }, null, 44, WQ)) : (NA(), OA("div", DQ, [
6462
6462
  ee(I, {
@@ -6633,7 +6633,7 @@ const _g = {
6633
6633
  AUTO_RESET: !1
6634
6634
  // 自动重置统计
6635
6635
  }
6636
- }, VV = [
6636
+ }, IV = [
6637
6637
  { label: "0°", value: 0 },
6638
6638
  { label: "90°", value: 90 },
6639
6639
  { label: "180°", value: 180 },
@@ -6824,28 +6824,28 @@ const Ab = {
6824
6824
  r.value = {};
6825
6825
  }), (w, Q) => (NA(), OA("div", {
6826
6826
  class: "rectangle-component",
6827
- style: Se(l.value)
6827
+ style: be(l.value)
6828
6828
  }, [
6829
6829
  UA("div", {
6830
6830
  class: "rectangle-content",
6831
- style: Se(m.value)
6831
+ style: be(m.value)
6832
6832
  }, [
6833
6833
  p.value ? (NA(), OA(Ot, { key: 0 }, [
6834
6834
  UA("div", {
6835
6835
  class: "hairline-edge top",
6836
- style: Se(U.value)
6836
+ style: be(U.value)
6837
6837
  }, null, 4),
6838
6838
  UA("div", {
6839
6839
  class: "hairline-edge right",
6840
- style: Se(B.value)
6840
+ style: be(B.value)
6841
6841
  }, null, 4),
6842
6842
  UA("div", {
6843
6843
  class: "hairline-edge bottom",
6844
- style: Se(v.value)
6844
+ style: be(v.value)
6845
6845
  }, null, 4),
6846
6846
  UA("div", {
6847
6847
  class: "hairline-edge left",
6848
- style: Se(F.value)
6848
+ style: be(F.value)
6849
6849
  }, null, 4)
6850
6850
  ], 64)) : Le("", !0)
6851
6851
  ], 4)
@@ -6988,7 +6988,7 @@ const sb = ["width", "height"], lb = ["y1", "x2", "y2", "stroke-width", "stroke-
6988
6988
  }
6989
6989
  }, { immediate: !0 }), (U, v) => (NA(), OA("div", {
6990
6990
  class: "line-component",
6991
- style: Se(m.value)
6991
+ style: be(m.value)
6992
6992
  }, [
6993
6993
  (NA(), OA("svg", {
6994
6994
  width: a.value,
@@ -7084,9 +7084,9 @@ const pb = /* @__PURE__ */ Mt(fb, [["render", db]]), Xg = [
7084
7084
  ], qg = Xg.flatMap((e) => e.components);
7085
7085
  async function gb(e) {
7086
7086
  try {
7087
- return (await ym(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-63931bbf.mjs"), "./props/rfid.js": () => import("./rfid-da84f2e4.mjs") }), `./props/${e}.js`)).default;
7087
+ return (await ym(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-976262ab.mjs"), "./props/rfid.js": () => import("./rfid-3b6811bf.mjs") }), `./props/${e}.js`)).default;
7088
7088
  } catch {
7089
- return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-63931bbf.mjs")).default;
7089
+ return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-976262ab.mjs")).default;
7090
7090
  }
7091
7091
  }
7092
7092
  function Bb(e = {}, A = {}) {
@@ -7273,11 +7273,11 @@ const Qb = {
7273
7273
  (NA(!0), OA(Ot, null, fi(t.value, (o) => (NA(), OA("div", {
7274
7274
  key: o,
7275
7275
  class: "ruler-unit",
7276
- style: Se(n(o))
7276
+ style: be(n(o))
7277
7277
  }, [
7278
7278
  UA("span", {
7279
7279
  class: "ruler-mark",
7280
- style: Se(r(o))
7280
+ style: be(r(o))
7281
7281
  }, null, 4),
7282
7282
  o % 10 === 0 ? (NA(), OA("span", Qb, Zn(o), 1)) : Le("", !0)
7283
7283
  ], 4))), 128))
@@ -8063,8 +8063,8 @@ function Xb(e, A, t, n, r) {
8063
8063
  eA,
8064
8064
  kA,
8065
8065
  C
8066
- ), be = d.value.x - At.x, $t = d.value.y - At.y;
8067
- TA += be, zA += $t;
8066
+ ), Ne = d.value.x - At.x, $t = d.value.y - At.y;
8067
+ TA += Ne, zA += $t;
8068
8068
  const Te = a.value.type === "line" ? lineWidthMm : cA;
8069
8069
  if (w(TA, zA, eA, Te, C, gA, G).isOutOfBounds)
8070
8070
  return;
@@ -13708,28 +13708,28 @@ const iB = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13708
13708
  const TT = { class: "label-designer" }, IT = { class: "toolbar" }, VT = { class: "center-container" }, MT = {
13709
13709
  key: 0,
13710
13710
  class: "loader-container"
13711
- }, LT = { class: "center-toolbar" }, kT = { class: "zoom-controls" }, HT = ["disabled"], OT = ["disabled"], DT = { class: "ruler-horizontal" }, WT = { class: "ruler-vertical" }, ZT = {
13711
+ }, LT = { class: "zoom-controls" }, kT = ["disabled"], HT = ["disabled"], OT = { class: "ruler-horizontal" }, DT = { class: "ruler-vertical" }, WT = {
13712
13712
  key: 0,
13713
13713
  class: "drag-extend-lines"
13714
- }, PT = {
13714
+ }, ZT = {
13715
13715
  key: 1,
13716
13716
  class: "alignment-guides"
13717
- }, JT = ["data-item-id", "onMousedown"], jT = ["onMousedown"], KT = ["onMousedown"], _T = ["onMousedown"], GT = ["onMousedown"], zT = ["onMousedown"], YT = ["onMousedown"], XT = ["onMousedown"], qT = ["onMousedown"], $T = ["onMousedown"], AI = {
13717
+ }, PT = ["data-item-id", "onMousedown"], JT = ["onMousedown"], jT = ["onMousedown"], KT = ["onMousedown"], _T = ["onMousedown"], GT = ["onMousedown"], zT = ["onMousedown"], YT = ["onMousedown"], XT = ["onMousedown"], qT = ["onMousedown"], $T = {
13718
13718
  class: "property-panel",
13719
13719
  tabindex: "0"
13720
- }, eI = { class: "property-panel-operate" }, tI = { class: "property-panel-title" }, nI = ["innerHTML"], rI = { class: "position-controls" }, iI = { class: "control-group" }, aI = { class: "number-input" }, oI = ["value"], sI = { class: "control-group" }, lI = { class: "number-input" }, cI = ["value"], uI = {
13720
+ }, AI = { class: "property-panel-operate" }, eI = { class: "property-panel-title" }, tI = ["innerHTML"], nI = { class: "position-controls" }, rI = { class: "control-group" }, iI = { class: "number-input" }, aI = ["value"], oI = { class: "control-group" }, sI = { class: "number-input" }, lI = ["value"], cI = {
13721
13721
  key: 0,
13722
13722
  class: "control-group"
13723
- }, fI = { class: "number-input" }, hI = ["value"], dI = {
13723
+ }, uI = { class: "number-input" }, fI = ["value"], hI = {
13724
13724
  key: 1,
13725
13725
  class: "control-group"
13726
- }, pI = { class: "number-input" }, gI = ["value"], BI = {
13726
+ }, dI = { class: "number-input" }, pI = ["value"], gI = {
13727
13727
  key: 2,
13728
13728
  class: "control-group"
13729
- }, mI = { class: "number-input" }, wI = { class: "rotation-display" }, vI = {
13729
+ }, BI = { class: "number-input" }, mI = { class: "rotation-display" }, wI = {
13730
13730
  key: 3,
13731
13731
  class: "control-group"
13732
- }, UI = { class: "switch-input" }, uc = 0.05, yI = {
13732
+ }, vI = { class: "switch-input" }, uc = 0.05, UI = {
13733
13733
  __name: "panels",
13734
13734
  props: {
13735
13735
  templateInfo: {
@@ -14191,7 +14191,7 @@ const TT = { class: "label-designer" }, IT = { class: "toolbar" }, VT = { class:
14191
14191
  Ye(() => t.templateInfo, (AA, $) => {
14192
14192
  AA && $ && AA.id !== $.id ? (n.value = AA || {}, a.value = (AA == null ? void 0 : AA.items) || []) : AA && !$ ? (n.value = AA || {}, a.value = (AA == null ? void 0 : AA.items) || []) : AA && (n.value = AA || {});
14193
14193
  }, { deep: !0, immediate: !0 });
14194
- const { handleCopy: ne, handlePaste: ve } = i3(a, F, u, f, q), kA = jA({}), At = jA(!1), be = async (AA) => {
14194
+ const { handleCopy: ne, handlePaste: ve } = i3(a, F, u, f, q), kA = jA({}), At = jA(!1), Ne = async (AA) => {
14195
14195
  try {
14196
14196
  At.value = !1, kA.value = await gb(AA), At.value = !0;
14197
14197
  } catch {
@@ -14200,11 +14200,11 @@ const TT = { class: "label-designer" }, IT = { class: "toolbar" }, VT = { class:
14200
14200
  };
14201
14201
  Ye(() => t.templateType, async (AA) => {
14202
14202
  try {
14203
- await be(AA), Q(), d.clear(), U.clear();
14203
+ await Ne(AA), Q(), d.clear(), U.clear();
14204
14204
  } catch {
14205
14205
  }
14206
14206
  }, { immediate: !0 }), Ui(async () => {
14207
- At.value || await be(t.templateType), window.addEventListener("resize", Ee), window.addEventListener("keydown", ae), window.addEventListener("keydown", ne), window.addEventListener("keydown", ve), window.addEventListener("keydown", G);
14207
+ At.value || await Ne(t.templateType), window.addEventListener("resize", Ee), window.addEventListener("keydown", ae), window.addEventListener("keydown", ne), window.addEventListener("keydown", ve), window.addEventListener("keydown", G);
14208
14208
  const AA = document.querySelector(".canvas-wrapper");
14209
14209
  AA && AA.addEventListener("contextmenu", PA), Ee(), or();
14210
14210
  }), Vs(() => {
@@ -14347,7 +14347,10 @@ const TT = { class: "label-designer" }, IT = { class: "toolbar" }, VT = { class:
14347
14347
  UA("div", { class: "loader-circle" }, null, -1),
14348
14348
  UA("p", null, "设计画板加载中...", -1)
14349
14349
  ])])) : Le("", !0),
14350
- UA("div", LT, [
14350
+ UA("div", {
14351
+ class: "center-toolbar",
14352
+ style: be(`background: ${e.config.designBackground || "rgba(0, 0, 0, .05)"}`)
14353
+ }, [
14351
14354
  e.showGraphConfig ? (NA(), OA(Ot, { key: 0 }, [
14352
14355
  ee(Kb, {
14353
14356
  "graph-data": (QA = n.value) == null ? void 0 : QA.graphData,
@@ -14355,35 +14358,35 @@ const TT = { class: "label-designer" }, IT = { class: "toolbar" }, VT = { class:
14355
14358
  }, null, 8, ["graph-data"]),
14356
14359
  $[34] || ($[34] = UA("div", { style: { width: "30px" } }, null, -1))
14357
14360
  ], 64)) : Le("", !0),
14358
- UA("div", kT, [
14361
+ UA("div", LT, [
14359
14362
  UA("button", {
14360
14363
  onClick: VA,
14361
14364
  disabled: o.value <= 0.8
14362
- }, "-", 8, HT),
14365
+ }, "-", 8, kT),
14363
14366
  UA("span", null, Zn(Math.round(o.value * 100)) + "%", 1),
14364
14367
  UA("button", {
14365
14368
  onClick: pA,
14366
14369
  disabled: o.value >= 4
14367
- }, "+", 8, OT)
14370
+ }, "+", 8, HT)
14368
14371
  ])
14369
- ]),
14372
+ ], 4),
14370
14373
  UA("div", {
14371
14374
  class: "canvas-container",
14372
- style: Se(`--scale: ${Math.max(0, 1 / (o.value || 1))}`),
14375
+ style: be(`--scale: ${Math.max(0, 1 / (o.value || 1))};background: ${e.config.designBackground || "rgba(0, 0, 0, .05)"}`),
14373
14376
  onClick: SA
14374
14377
  }, [
14375
14378
  UA("div", {
14376
14379
  class: "canvas-wrapper",
14377
- style: Se(`transform: scale(${o.value});opacity: ${r.value};`)
14380
+ style: be(`transform: scale(${o.value});opacity: ${r.value};`)
14378
14381
  }, [
14379
14382
  u.value && f.value ? (NA(), OA(Ot, { key: 0 }, [
14380
- UA("div", DT, [
14383
+ UA("div", OT, [
14381
14384
  ee(r1, {
14382
14385
  direction: "horizontal",
14383
14386
  length: u.value
14384
14387
  }, null, 8, ["length"])
14385
14388
  ]),
14386
- UA("div", WT, [
14389
+ UA("div", DT, [
14387
14390
  ee(r1, {
14388
14391
  direction: "vertical",
14389
14392
  length: f.value
@@ -14393,37 +14396,37 @@ const TT = { class: "label-designer" }, IT = { class: "toolbar" }, VT = { class:
14393
14396
  UA("div", {
14394
14397
  id: "design",
14395
14398
  class: "canvas",
14396
- style: Se(`width: ${u.value}mm; height: ${f.value}mm;`),
14399
+ style: be(`width: ${u.value}mm; height: ${f.value}mm;`),
14397
14400
  onDrop: $A,
14398
- onDragover: $[0] || ($[0] = Ne(() => {
14401
+ onDragover: $[0] || ($[0] = Se(() => {
14399
14402
  }, ["prevent"])),
14400
14403
  onPointerdown: IA,
14401
- onContextmenu: $[1] || ($[1] = Ne(() => {
14404
+ onContextmenu: $[1] || ($[1] = Se(() => {
14402
14405
  }, ["prevent"]))
14403
14406
  }, [
14404
- MA(T) && MA(I) ? (NA(), OA("div", ZT, [
14407
+ MA(T) && MA(I) ? (NA(), OA("div", WT, [
14405
14408
  UA("div", {
14406
14409
  class: "drag-extend-line vertical",
14407
- style: Se(E(MA(I), "left"))
14410
+ style: be(E(MA(I), "left"))
14408
14411
  }, null, 4),
14409
14412
  UA("div", {
14410
14413
  class: "drag-extend-line vertical",
14411
- style: Se(E(MA(I), "right"))
14414
+ style: be(E(MA(I), "right"))
14412
14415
  }, null, 4),
14413
14416
  UA("div", {
14414
14417
  class: "drag-extend-line horizontal",
14415
- style: Se(E(MA(I), "top"))
14418
+ style: be(E(MA(I), "top"))
14416
14419
  }, null, 4),
14417
14420
  UA("div", {
14418
14421
  class: "drag-extend-line horizontal",
14419
- style: Se(E(MA(I), "bottom"))
14422
+ style: be(E(MA(I), "bottom"))
14420
14423
  }, null, 4)
14421
14424
  ])) : Le("", !0),
14422
- MA(C) ? (NA(), OA("div", PT, [
14425
+ MA(C) ? (NA(), OA("div", ZT, [
14423
14426
  (NA(!0), OA(Ot, null, fi(MA(b).horizontal, (wA, Ue) => (NA(), OA("div", {
14424
14427
  key: `h-${Ue}`,
14425
14428
  class: on(["alignment-guide horizontal", `guide-${wA.type}`]),
14426
- style: Se({
14429
+ style: be({
14427
14430
  top: `${wA.y}mm`,
14428
14431
  left: "0",
14429
14432
  right: "0"
@@ -14432,7 +14435,7 @@ const TT = { class: "label-designer" }, IT = { class: "toolbar" }, VT = { class:
14432
14435
  (NA(!0), OA(Ot, null, fi(MA(b).vertical, (wA, Ue) => (NA(), OA("div", {
14433
14436
  key: `v-${Ue}`,
14434
14437
  class: on(["alignment-guide vertical", `guide-${wA.type}`]),
14435
- style: Se({
14438
+ style: be({
14436
14439
  left: `${wA.x}mm`,
14437
14440
  top: "0",
14438
14441
  bottom: "0"
@@ -14444,7 +14447,7 @@ const TT = { class: "label-designer" }, IT = { class: "toolbar" }, VT = { class:
14444
14447
  return NA(), OA("div", {
14445
14448
  key: wA.id,
14446
14449
  class: on(["canvas-item", oA(wA)]),
14447
- style: Se(tA(wA)),
14450
+ style: be(tA(wA)),
14448
14451
  "data-item-id": wA.id,
14449
14452
  onMousedown: (ie) => se(ie, wA)
14450
14453
  }, [
@@ -14453,58 +14456,58 @@ const TT = { class: "label-designer" }, IT = { class: "toolbar" }, VT = { class:
14453
14456
  wA.type !== "line" ? (NA(), OA("div", {
14454
14457
  key: 0,
14455
14458
  class: "resize-handle top",
14456
- style: Se(fA(wA, "top")),
14457
- onMousedown: Ne((ie) => MA(L)(ie, wA, "top"), ["stop"])
14458
- }, null, 44, jT)) : Le("", !0),
14459
+ style: be(fA(wA, "top")),
14460
+ onMousedown: Se((ie) => MA(L)(ie, wA, "top"), ["stop"])
14461
+ }, null, 44, JT)) : Le("", !0),
14459
14462
  wA.type !== "line" ? (NA(), OA("div", {
14460
14463
  key: 1,
14461
14464
  class: "resize-handle right",
14462
- style: Se(fA(wA, "right")),
14463
- onMousedown: Ne((ie) => MA(L)(ie, wA, "right"), ["stop"])
14464
- }, null, 44, KT)) : Le("", !0),
14465
+ style: be(fA(wA, "right")),
14466
+ onMousedown: Se((ie) => MA(L)(ie, wA, "right"), ["stop"])
14467
+ }, null, 44, jT)) : Le("", !0),
14465
14468
  wA.type !== "line" ? (NA(), OA("div", {
14466
14469
  key: 2,
14467
14470
  class: "resize-handle bottom",
14468
- style: Se(fA(wA, "bottom")),
14469
- onMousedown: Ne((ie) => MA(L)(ie, wA, "bottom"), ["stop"])
14470
- }, null, 44, _T)) : Le("", !0),
14471
+ style: be(fA(wA, "bottom")),
14472
+ onMousedown: Se((ie) => MA(L)(ie, wA, "bottom"), ["stop"])
14473
+ }, null, 44, KT)) : Le("", !0),
14471
14474
  wA.type !== "verline" ? (NA(), OA("div", {
14472
14475
  key: 3,
14473
14476
  class: on(["resize-handle left", { "line-anchor": wA.type === "line" }]),
14474
- style: Se(fA(wA, "left")),
14475
- onMousedown: Ne((ie) => MA(L)(ie, wA, "left"), ["stop"])
14476
- }, null, 46, GT)) : Le("", !0),
14477
+ style: be(fA(wA, "left")),
14478
+ onMousedown: Se((ie) => MA(L)(ie, wA, "left"), ["stop"])
14479
+ }, null, 46, _T)) : Le("", !0),
14477
14480
  wA.type === "line" ? (NA(), OA("div", {
14478
14481
  key: 4,
14479
14482
  class: "resize-handle right line-anchor",
14480
- style: Se(fA(wA, "right")),
14481
- onMousedown: Ne((ie) => MA(L)(ie, wA, "right"), ["stop"])
14482
- }, null, 44, zT)) : Le("", !0)
14483
+ style: be(fA(wA, "right")),
14484
+ onMousedown: Se((ie) => MA(L)(ie, wA, "right"), ["stop"])
14485
+ }, null, 44, GT)) : Le("", !0)
14483
14486
  ], 64)),
14484
14487
  wA.type !== "line" && wA.type !== "verline" ? (NA(), OA("div", {
14485
14488
  key: 1,
14486
14489
  class: "resize-handle top-left",
14487
- style: Se(fA(wA, "top-left")),
14488
- onMousedown: Ne((ie) => MA(L)(ie, wA, "top-left"), ["stop"])
14489
- }, null, 44, YT)) : Le("", !0),
14490
+ style: be(fA(wA, "top-left")),
14491
+ onMousedown: Se((ie) => MA(L)(ie, wA, "top-left"), ["stop"])
14492
+ }, null, 44, zT)) : Le("", !0),
14490
14493
  wA.type !== "line" && wA.type !== "verline" ? (NA(), OA("div", {
14491
14494
  key: 2,
14492
14495
  class: "resize-handle top-right",
14493
- style: Se(fA(wA, "top-right")),
14494
- onMousedown: Ne((ie) => MA(L)(ie, wA, "top-right"), ["stop"])
14495
- }, null, 44, XT)) : Le("", !0),
14496
+ style: be(fA(wA, "top-right")),
14497
+ onMousedown: Se((ie) => MA(L)(ie, wA, "top-right"), ["stop"])
14498
+ }, null, 44, YT)) : Le("", !0),
14496
14499
  wA.type !== "line" && wA.type !== "verline" ? (NA(), OA("div", {
14497
14500
  key: 3,
14498
14501
  class: "resize-handle bottom-right",
14499
- style: Se(fA(wA, "bottom-right")),
14500
- onMousedown: Ne((ie) => MA(L)(ie, wA, "bottom-right"), ["stop"])
14501
- }, null, 44, qT)) : Le("", !0),
14502
+ style: be(fA(wA, "bottom-right")),
14503
+ onMousedown: Se((ie) => MA(L)(ie, wA, "bottom-right"), ["stop"])
14504
+ }, null, 44, XT)) : Le("", !0),
14502
14505
  wA.type !== "line" && wA.type !== "verline" ? (NA(), OA("div", {
14503
14506
  key: 4,
14504
14507
  class: "resize-handle bottom-left",
14505
- style: Se(fA(wA, "bottom-left")),
14506
- onMousedown: Ne((ie) => MA(L)(ie, wA, "bottom-left"), ["stop"])
14507
- }, null, 44, $T)) : Le("", !0)
14508
+ style: be(fA(wA, "bottom-left")),
14509
+ onMousedown: Se((ie) => MA(L)(ie, wA, "bottom-left"), ["stop"])
14510
+ }, null, 44, qT)) : Le("", !0)
14508
14511
  ], 64)) : Le("", !0),
14509
14512
  wA.props && At.value ? (NA(), ft(Qs(((Ue = X(wA.type)) == null ? void 0 : Ue.component) || null), {
14510
14513
  key: `${wA.id}-${wA.type}`,
@@ -14517,15 +14520,15 @@ const TT = { class: "label-designer" }, IT = { class: "toolbar" }, VT = { class:
14517
14520
  });
14518
14521
  }
14519
14522
  }, null, 8, ["modelValue", "propsConfig", "onUpdate:modelValue"])) : Le("", !0)
14520
- ], 46, JT);
14523
+ ], 46, PT);
14521
14524
  }), 128))
14522
14525
  ], 36)
14523
14526
  ], 4)
14524
14527
  ], 4)
14525
14528
  ]),
14526
- UA("div", AI, [
14529
+ UA("div", $T, [
14527
14530
  MA(F).length > 0 ? (NA(), OA(Ot, { key: 0 }, [
14528
- UA("div", eI, [
14531
+ UA("div", AI, [
14529
14532
  ee(BA, {
14530
14533
  type: "danger",
14531
14534
  onClick: $[2] || ($[2] = (wA) => ce(MA(w)().id))
@@ -14536,7 +14539,7 @@ const TT = { class: "label-designer" }, IT = { class: "toolbar" }, VT = { class:
14536
14539
  _: 1
14537
14540
  })
14538
14541
  ]),
14539
- UA("h3", tI, [
14542
+ UA("h3", eI, [
14540
14543
  $[36] || ($[36] = dr(" 属性设置 ", -1)),
14541
14544
  (Be = Te(MA(w)().type)) != null && Be.desc ? (NA(), ft(qA, {
14542
14545
  key: 0,
@@ -14548,7 +14551,7 @@ const TT = { class: "label-designer" }, IT = { class: "toolbar" }, VT = { class:
14548
14551
  UA("p", {
14549
14552
  style: { "max-width": "400px", margin: "0", "white-space": "pre-line" },
14550
14553
  innerHTML: Te(MA(w)().type).desc
14551
- }, null, 8, nI)
14554
+ }, null, 8, tI)
14552
14555
  ]),
14553
14556
  default: fe(() => [
14554
14557
  ee(re, { class: "help-icon" }, {
@@ -14561,112 +14564,112 @@ const TT = { class: "label-designer" }, IT = { class: "toolbar" }, VT = { class:
14561
14564
  _: 1
14562
14565
  })) : Le("", !0)
14563
14566
  ]),
14564
- UA("div", rI, [
14565
- UA("div", iI, [
14567
+ UA("div", nI, [
14568
+ UA("div", rI, [
14566
14569
  UA("label", null, Zn(MA(w)().type === "line" ? "起点X:" : "X坐标:"), 1),
14567
- UA("div", aI, [
14570
+ UA("div", iI, [
14568
14571
  UA("button", {
14569
- onClick: $[3] || ($[3] = Ne((wA) => MA(K)(wA, "x", -0.5), ["stop"]))
14572
+ onClick: $[3] || ($[3] = Se((wA) => MA(K)(wA, "x", -0.5), ["stop"]))
14570
14573
  }, "-"),
14571
14574
  UA("input", {
14572
14575
  type: "number",
14573
14576
  value: xA(),
14574
14577
  onInput: $[4] || ($[4] = (wA) => gA("x", wA.target.value)),
14575
- onClick: $[5] || ($[5] = Ne(() => {
14578
+ onClick: $[5] || ($[5] = Se(() => {
14576
14579
  }, ["stop"])),
14577
- onMousedown: $[6] || ($[6] = Ne(() => {
14580
+ onMousedown: $[6] || ($[6] = Se(() => {
14578
14581
  }, ["stop"])),
14579
- onWheel: $[7] || ($[7] = Ne(() => {
14582
+ onWheel: $[7] || ($[7] = Se(() => {
14580
14583
  }, ["prevent"]))
14581
- }, null, 40, oI),
14584
+ }, null, 40, aI),
14582
14585
  UA("button", {
14583
- onClick: $[8] || ($[8] = Ne((wA) => MA(K)(wA, "x", 0.5), ["stop"]))
14586
+ onClick: $[8] || ($[8] = Se((wA) => MA(K)(wA, "x", 0.5), ["stop"]))
14584
14587
  }, "+")
14585
14588
  ])
14586
14589
  ]),
14587
- UA("div", sI, [
14590
+ UA("div", oI, [
14588
14591
  UA("label", null, Zn(MA(w)().type === "line" ? "起点Y:" : "Y坐标:"), 1),
14589
- UA("div", lI, [
14592
+ UA("div", sI, [
14590
14593
  UA("button", {
14591
- onClick: $[9] || ($[9] = Ne((wA) => MA(K)(wA, "y", -0.5), ["stop"]))
14594
+ onClick: $[9] || ($[9] = Se((wA) => MA(K)(wA, "y", -0.5), ["stop"]))
14592
14595
  }, "-"),
14593
14596
  UA("input", {
14594
14597
  type: "number",
14595
14598
  value: DA(),
14596
14599
  onInput: $[10] || ($[10] = (wA) => gA("y", wA.target.value)),
14597
- onClick: $[11] || ($[11] = Ne(() => {
14600
+ onClick: $[11] || ($[11] = Se(() => {
14598
14601
  }, ["stop"])),
14599
- onMousedown: $[12] || ($[12] = Ne(() => {
14602
+ onMousedown: $[12] || ($[12] = Se(() => {
14600
14603
  }, ["stop"])),
14601
- onWheel: $[13] || ($[13] = Ne(() => {
14604
+ onWheel: $[13] || ($[13] = Se(() => {
14602
14605
  }, ["prevent"]))
14603
- }, null, 40, cI),
14606
+ }, null, 40, lI),
14604
14607
  UA("button", {
14605
- onClick: $[14] || ($[14] = Ne((wA) => MA(K)(wA, "y", 0.5), ["stop"]))
14608
+ onClick: $[14] || ($[14] = Se((wA) => MA(K)(wA, "y", 0.5), ["stop"]))
14606
14609
  }, "+")
14607
14610
  ])
14608
14611
  ]),
14609
- MA(w)().type !== "verline" ? (NA(), OA("div", uI, [
14612
+ MA(w)().type !== "verline" ? (NA(), OA("div", cI, [
14610
14613
  $[37] || ($[37] = UA("label", null, "宽度:", -1)),
14611
- UA("div", fI, [
14614
+ UA("div", uI, [
14612
14615
  UA("button", {
14613
- onClick: $[15] || ($[15] = Ne((wA) => MA(K)(wA, "width", -0.5, 1), ["stop"]))
14616
+ onClick: $[15] || ($[15] = Se((wA) => MA(K)(wA, "width", -0.5, 1), ["stop"]))
14614
14617
  }, "-"),
14615
14618
  UA("input", {
14616
14619
  type: "number",
14617
14620
  value: TA(),
14618
14621
  onInput: $[16] || ($[16] = (wA) => gA("width", wA.target.value)),
14619
- onClick: $[17] || ($[17] = Ne(() => {
14622
+ onClick: $[17] || ($[17] = Se(() => {
14620
14623
  }, ["stop"])),
14621
- onMousedown: $[18] || ($[18] = Ne(() => {
14624
+ onMousedown: $[18] || ($[18] = Se(() => {
14622
14625
  }, ["stop"])),
14623
14626
  onBlur: $[19] || ($[19] = (wA) => nA("width", wA.target.value)),
14624
- onWheel: $[20] || ($[20] = Ne(() => {
14627
+ onWheel: $[20] || ($[20] = Se(() => {
14625
14628
  }, ["prevent"]))
14626
- }, null, 40, hI),
14629
+ }, null, 40, fI),
14627
14630
  UA("button", {
14628
- onClick: $[21] || ($[21] = Ne((wA) => MA(K)(wA, "width", 0.5, 1), ["stop"]))
14631
+ onClick: $[21] || ($[21] = Se((wA) => MA(K)(wA, "width", 0.5, 1), ["stop"]))
14629
14632
  }, "+")
14630
14633
  ])
14631
14634
  ])) : Le("", !0),
14632
- MA(w)().type !== "line" ? (NA(), OA("div", dI, [
14635
+ MA(w)().type !== "line" ? (NA(), OA("div", hI, [
14633
14636
  $[38] || ($[38] = UA("label", null, "高度:", -1)),
14634
- UA("div", pI, [
14637
+ UA("div", dI, [
14635
14638
  UA("button", {
14636
- onClick: $[22] || ($[22] = Ne((wA) => MA(K)(wA, "height", -0.5, 1), ["stop"]))
14639
+ onClick: $[22] || ($[22] = Se((wA) => MA(K)(wA, "height", -0.5, 1), ["stop"]))
14637
14640
  }, "-"),
14638
14641
  UA("input", {
14639
14642
  type: "number",
14640
14643
  value: zA(),
14641
14644
  onInput: $[23] || ($[23] = (wA) => gA("height", wA.target.value)),
14642
- onClick: $[24] || ($[24] = Ne(() => {
14645
+ onClick: $[24] || ($[24] = Se(() => {
14643
14646
  }, ["stop"])),
14644
- onMousedown: $[25] || ($[25] = Ne(() => {
14647
+ onMousedown: $[25] || ($[25] = Se(() => {
14645
14648
  }, ["stop"])),
14646
14649
  onBlur: $[26] || ($[26] = (wA) => nA("height", wA.target.value)),
14647
- onWheel: $[27] || ($[27] = Ne(() => {
14650
+ onWheel: $[27] || ($[27] = Se(() => {
14648
14651
  }, ["prevent"]))
14649
- }, null, 40, gI),
14652
+ }, null, 40, pI),
14650
14653
  UA("button", {
14651
- onClick: $[28] || ($[28] = Ne((wA) => MA(K)(wA, "height", 0.5, 1), ["stop"]))
14654
+ onClick: $[28] || ($[28] = Se((wA) => MA(K)(wA, "height", 0.5, 1), ["stop"]))
14652
14655
  }, "+")
14653
14656
  ])
14654
14657
  ])) : Le("", !0),
14655
- Ke(MA(w)().type) ? (NA(), OA("div", BI, [
14658
+ Ke(MA(w)().type) ? (NA(), OA("div", gI, [
14656
14659
  $[39] || ($[39] = UA("label", null, "旋转:", -1)),
14657
- UA("div", mI, [
14660
+ UA("div", BI, [
14658
14661
  UA("button", {
14659
- onClick: $[29] || ($[29] = Ne((wA) => MA(z)(-1), ["stop"]))
14662
+ onClick: $[29] || ($[29] = Se((wA) => MA(z)(-1), ["stop"]))
14660
14663
  }, "-"),
14661
- UA("span", wI, Zn(MA(w)().props.rotation) + "°", 1),
14664
+ UA("span", mI, Zn(MA(w)().props.rotation) + "°", 1),
14662
14665
  UA("button", {
14663
- onClick: $[30] || ($[30] = Ne((wA) => MA(z)(1), ["stop"]))
14666
+ onClick: $[30] || ($[30] = Se((wA) => MA(z)(1), ["stop"]))
14664
14667
  }, "+")
14665
14668
  ])
14666
14669
  ])) : Le("", !0),
14667
- MA(w)().type !== "line" ? (NA(), OA("div", vI, [
14670
+ MA(w)().type !== "line" ? (NA(), OA("div", wI, [
14668
14671
  $[40] || ($[40] = UA("label", null, "锁定宽高比:", -1)),
14669
- UA("div", UI, [
14672
+ UA("div", vI, [
14670
14673
  ee(le, {
14671
14674
  modelValue: MA(w)().props.lockAspectRatio,
14672
14675
  "onUpdate:modelValue": $[31] || ($[31] = (wA) => MA(w)().props.lockAspectRatio = wA),
@@ -14688,8 +14691,8 @@ const TT = { class: "label-designer" }, IT = { class: "toolbar" }, VT = { class:
14688
14691
  ]);
14689
14692
  };
14690
14693
  }
14691
- }, FI = /* @__PURE__ */ Mt(yI, [["__scopeId", "data-v-4fc09dd3"]]);
14692
- const CI = {
14694
+ }, yI = /* @__PURE__ */ Mt(UI, [["__scopeId", "data-v-141dd6ea"]]);
14695
+ const FI = {
14693
14696
  __name: "index",
14694
14697
  props: {
14695
14698
  templateData: {
@@ -14799,9 +14802,9 @@ const CI = {
14799
14802
  ref_key: "templateDesignerRef",
14800
14803
  ref: i,
14801
14804
  class: on(["template-designer", { "template-designer-border-top": o.value }]),
14802
- style: Se({ height: "calc(100vh - " + (a.value + 1) + "px)" })
14805
+ style: be({ height: "calc(100vh - " + (a.value + 1) + "px)" })
14803
14806
  }, [
14804
- n.value ? (NA(), ft(Qs(Oh(FI, { ...F.$attrs, ...t, ref: v }, F.$slots)), {
14807
+ n.value ? (NA(), ft(Qs(Oh(yI, { ...F.$attrs, ...t, ref: v }, F.$slots)), {
14805
14808
  key: 0,
14806
14809
  "template-info": r.value
14807
14810
  }, null, 8, ["template-info"])) : Le("", !0)
@@ -14810,7 +14813,7 @@ const CI = {
14810
14813
  ]);
14811
14814
  };
14812
14815
  }
14813
- }, ys = /* @__PURE__ */ Mt(CI, [["__scopeId", "data-v-a3d9b11f"]]);
14816
+ }, ys = /* @__PURE__ */ Mt(FI, [["__scopeId", "data-v-a3d9b11f"]]);
14814
14817
  function Ze(e) {
14815
14818
  "@babel/helpers - typeof";
14816
14819
  return Ze = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(A) {
@@ -14897,7 +14900,7 @@ var qt = Uint8Array, bn = Uint16Array, W0 = Int32Array, du = new qt([
14897
14900
  return { b: t, r };
14898
14901
  }, oB = aB(du, 2), sB = oB.b, Sh = oB.r;
14899
14902
  sB[28] = 258, Sh[258] = 28;
14900
- var lB = aB(pu, 0), EI = lB.b, op = lB.r, Rh = new bn(32768);
14903
+ var lB = aB(pu, 0), CI = lB.b, op = lB.r, Rh = new bn(32768);
14901
14904
  for (var nt = 0; nt < 32768; ++nt) {
14902
14905
  var ei = (nt & 43690) >> 1 | (nt & 21845) << 1;
14903
14906
  ei = (ei & 52428) >> 2 | (ei & 13107) << 2, ei = (ei & 61680) >> 4 | (ei & 3855) << 4, Rh[nt] = ((ei & 65280) >> 8 | (ei & 255) << 8) >> 1;
@@ -14932,7 +14935,7 @@ for (var nt = 280; nt < 288; ++nt)
14932
14935
  var Is = new qt(32);
14933
14936
  for (var nt = 0; nt < 32; ++nt)
14934
14937
  Is[nt] = 5;
14935
- var QI = /* @__PURE__ */ Br(wi, 9, 0), bI = /* @__PURE__ */ Br(wi, 9, 1), NI = /* @__PURE__ */ Br(Is, 5, 0), SI = /* @__PURE__ */ Br(Is, 5, 1), Hf = function(e) {
14938
+ var EI = /* @__PURE__ */ Br(wi, 9, 0), QI = /* @__PURE__ */ Br(wi, 9, 1), bI = /* @__PURE__ */ Br(Is, 5, 0), NI = /* @__PURE__ */ Br(Is, 5, 1), Hf = function(e) {
14936
14939
  for (var A = e[0], t = 1; t < e.length; ++t)
14937
14940
  e[t] > A && (A = e[t]);
14938
14941
  return A;
@@ -14946,7 +14949,7 @@ var QI = /* @__PURE__ */ Br(wi, 9, 0), bI = /* @__PURE__ */ Br(wi, 9, 1), NI = /
14946
14949
  return (e + 7) / 8 | 0;
14947
14950
  }, cB = function(e, A, t) {
14948
14951
  return (A == null || A < 0) && (A = 0), (t == null || t > e.length) && (t = e.length), new qt(e.subarray(A, t));
14949
- }, RI = [
14952
+ }, SI = [
14950
14953
  "unexpected EOF",
14951
14954
  "invalid block type",
14952
14955
  "invalid length/literal",
@@ -14963,11 +14966,11 @@ var QI = /* @__PURE__ */ Br(wi, 9, 0), bI = /* @__PURE__ */ Br(wi, 9, 1), NI = /
14963
14966
  "invalid zip data"
14964
14967
  // determined by unknown compression method
14965
14968
  ], tr = function(e, A, t) {
14966
- var n = new Error(A || RI[e]);
14969
+ var n = new Error(A || SI[e]);
14967
14970
  if (n.code = e, Error.captureStackTrace && Error.captureStackTrace(n, tr), !t)
14968
14971
  throw n;
14969
14972
  return n;
14970
- }, xI = function(e, A, t, n) {
14973
+ }, RI = function(e, A, t, n) {
14971
14974
  var r = e.length, i = n ? n.length : 0;
14972
14975
  if (!r || A.f && !A.l)
14973
14976
  return t || new qt(0);
@@ -14986,7 +14989,7 @@ var QI = /* @__PURE__ */ Br(wi, 9, 0), bI = /* @__PURE__ */ Br(wi, 9, 1), NI = /
14986
14989
  var w = $n(e, p + 1, 3);
14987
14990
  if (p += 3, w)
14988
14991
  if (w == 1)
14989
- d = bI, U = SI, v = 9, F = 5;
14992
+ d = QI, U = NI, v = 9, F = 5;
14990
14993
  else if (w == 2) {
14991
14994
  var k = $n(e, p, 31) + 257, L = $n(e, p + 10, 15) + 4, H = k + $n(e, p + 5, 31) + 1;
14992
14995
  p += 14;
@@ -15043,7 +15046,7 @@ var QI = /* @__PURE__ */ Br(wi, 9, 0), bI = /* @__PURE__ */ Br(wi, 9, 1), NI = /
15043
15046
  }
15044
15047
  var tA = U[Of(e, p) & cA], oA = tA >> 4;
15045
15048
  tA || tr(3), p += tA & 15;
15046
- var nA = EI[oA];
15049
+ var nA = CI[oA];
15047
15050
  if (oA > 3) {
15048
15051
  var X = pu[oA];
15049
15052
  nA += Of(e, p) & (1 << X) - 1, p += X;
@@ -15175,7 +15178,7 @@ var QI = /* @__PURE__ */ Br(wi, 9, 0), bI = /* @__PURE__ */ Br(wi, 9, 1), NI = /
15175
15178
  Vr(A, f, eA[j]), f += W[j], j > 15 && (Vr(A, f, Z[H] >> 5 & 127), f += Z[H] >> 12);
15176
15179
  }
15177
15180
  } else
15178
- z = QI, q = wi, Y = NI, nA = Is;
15181
+ z = EI, q = wi, Y = bI, nA = Is;
15179
15182
  for (var H = 0; H < o; ++H) {
15180
15183
  var X = n[H];
15181
15184
  if (X > 255) {
@@ -15187,11 +15190,11 @@ var QI = /* @__PURE__ */ Br(wi, 9, 0), bI = /* @__PURE__ */ Br(wi, 9, 1), NI = /
15187
15190
  is(A, f, z[X]), f += q[X];
15188
15191
  }
15189
15192
  return is(A, f, z[256]), f + q[256];
15190
- }, TI = /* @__PURE__ */ new W0([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), fB = /* @__PURE__ */ new qt(0), II = function(e, A, t, n, r, i) {
15193
+ }, xI = /* @__PURE__ */ new W0([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), fB = /* @__PURE__ */ new qt(0), TI = function(e, A, t, n, r, i) {
15191
15194
  var a = i.z || e.length, o = new qt(n + a + 5 * (1 + Math.ceil(a / 7e3)) + r), l = o.subarray(n, o.length - r), u = i.l, f = (i.r || 0) & 7;
15192
15195
  if (A) {
15193
15196
  f && (l[0] = i.r >> 3);
15194
- for (var p = TI[A - 1], m = p >> 13, d = p & 8191, U = (1 << t) - 1, v = i.p || new bn(32768), F = i.h || new bn(U + 1), B = Math.ceil(t / 3), w = 2 * B, Q = function(zA) {
15197
+ for (var p = xI[A - 1], m = p >> 13, d = p & 8191, U = (1 << t) - 1, v = i.p || new bn(32768), F = i.h || new bn(U + 1), B = Math.ceil(t / 3), w = 2 * B, Q = function(zA) {
15195
15198
  return (e[zA] ^ e[zA + 1] << B ^ e[zA + 2] << w) & U;
15196
15199
  }, T = new W0(25e3), I = new bn(288), k = new bn(32), L = 0, H = 0, P = i.i || 0, W = 0, b = i.w || 0, C = 0; P + 2 < a; ++P) {
15197
15200
  var V = Q(P), O = P & 32767, K = F[V];
@@ -15255,37 +15258,37 @@ var QI = /* @__PURE__ */ Br(wi, 9, 0), bI = /* @__PURE__ */ Br(wi, 9, 1), NI = /
15255
15258
  return e %= 65521, A %= 65521, (e & 255) << 24 | (e & 65280) << 8 | (A & 255) << 8 | A >> 8;
15256
15259
  }
15257
15260
  };
15258
- }, VI = function(e, A, t, n, r) {
15261
+ }, II = function(e, A, t, n, r) {
15259
15262
  if (!r && (r = { l: 1 }, A.dictionary)) {
15260
15263
  var i = A.dictionary.subarray(-32768), a = new qt(i.length + e.length);
15261
15264
  a.set(i), a.set(e, i.length), e = a, r.w = i.length;
15262
15265
  }
15263
- return II(e, A.level == null ? 6 : A.level, A.mem == null ? r.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(e.length))) * 1.5) : 20 : 12 + A.mem, t, n, r);
15266
+ return TI(e, A.level == null ? 6 : A.level, A.mem == null ? r.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(e.length))) * 1.5) : 20 : 12 + A.mem, t, n, r);
15264
15267
  }, dB = function(e, A, t) {
15265
15268
  for (; t; ++A)
15266
15269
  e[A] = t, t >>>= 8;
15267
- }, MI = function(e, A) {
15270
+ }, VI = function(e, A) {
15268
15271
  var t = A.level, n = t == 0 ? 0 : t < 6 ? 1 : t == 9 ? 3 : 2;
15269
15272
  if (e[0] = 120, e[1] = n << 6 | (A.dictionary && 32), e[1] |= 31 - (e[0] << 8 | e[1]) % 31, A.dictionary) {
15270
15273
  var r = hB();
15271
15274
  r.p(A.dictionary), dB(e, 2, r.d());
15272
15275
  }
15273
- }, LI = function(e, A) {
15276
+ }, MI = function(e, A) {
15274
15277
  return ((e[0] & 15) != 8 || e[0] >> 4 > 7 || (e[0] << 8 | e[1]) % 31) && tr(6, "invalid zlib data"), (e[1] >> 5 & 1) == +!A && tr(6, "invalid zlib data: " + (e[1] & 32 ? "need" : "unexpected") + " dictionary"), (e[1] >> 3 & 4) + 2;
15275
15278
  };
15276
15279
  function Th(e, A) {
15277
15280
  A || (A = {});
15278
15281
  var t = hB();
15279
15282
  t.p(e);
15280
- var n = VI(e, A, A.dictionary ? 6 : 2, 4);
15281
- return MI(n, A), dB(n, n.length - 4, t.d()), n;
15283
+ var n = II(e, A, A.dictionary ? 6 : 2, 4);
15284
+ return VI(n, A), dB(n, n.length - 4, t.d()), n;
15282
15285
  }
15283
- function kI(e, A) {
15284
- return xI(e.subarray(LI(e, A && A.dictionary), -4), { i: 2 }, A && A.out, A && A.dictionary);
15286
+ function LI(e, A) {
15287
+ return RI(e.subarray(MI(e, A && A.dictionary), -4), { i: 2 }, A && A.out, A && A.dictionary);
15285
15288
  }
15286
- var HI = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), OI = 0;
15289
+ var kI = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), HI = 0;
15287
15290
  try {
15288
- HI.decode(fB, { stream: !0 }), OI = 1;
15291
+ kI.decode(fB, { stream: !0 }), HI = 1;
15289
15292
  } catch {
15290
15293
  }
15291
15294
  /** @license
@@ -15469,7 +15472,7 @@ function Kt(e, A, t, n, r, i, a) {
15469
15472
  function gB(e) {
15470
15473
  var A, t = e.length, n = [1732584193, -271733879, -1732584194, 271733878];
15471
15474
  for (A = 64; A <= e.length; A += 64)
15472
- Pf(n, DI(e.substring(A - 64, A)));
15475
+ Pf(n, OI(e.substring(A - 64, A)));
15473
15476
  e = e.substring(A - 64);
15474
15477
  var r = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
15475
15478
  for (A = 0; A < e.length; A++)
@@ -15479,7 +15482,7 @@ function gB(e) {
15479
15482
  r[A] = 0;
15480
15483
  return r[14] = 8 * t, Pf(n, r), n;
15481
15484
  }
15482
- function DI(e) {
15485
+ function OI(e) {
15483
15486
  var A, t = [];
15484
15487
  for (A = 0; A < 64; A += 4)
15485
15488
  t[A >> 2] = e.charCodeAt(A) + (e.charCodeAt(A + 1) << 8) + (e.charCodeAt(A + 2) << 16) + (e.charCodeAt(A + 3) << 24);
@@ -15487,24 +15490,24 @@ function DI(e) {
15487
15490
  }
15488
15491
  Fs = de.atob.bind(de), Ih = de.btoa.bind(de);
15489
15492
  var up = "0123456789abcdef".split("");
15490
- function WI(e) {
15493
+ function DI(e) {
15491
15494
  for (var A = "", t = 0; t < 4; t++)
15492
15495
  A += up[e >> 8 * t + 4 & 15] + up[e >> 8 * t & 15];
15493
15496
  return A;
15494
15497
  }
15495
- function ZI(e) {
15498
+ function WI(e) {
15496
15499
  return String.fromCharCode((255 & e) >> 0, (65280 & e) >> 8, (16711680 & e) >> 16, (4278190080 & e) >> 24);
15497
15500
  }
15498
15501
  function Vh(e) {
15499
- return gB(e).map(ZI).join("");
15502
+ return gB(e).map(WI).join("");
15500
15503
  }
15501
- var PI = function(e) {
15504
+ var ZI = function(e) {
15502
15505
  for (var A = 0; A < e.length; A++)
15503
- e[A] = WI(e[A]);
15506
+ e[A] = DI(e[A]);
15504
15507
  return e.join("");
15505
15508
  }(gB("hello")) != "5d41402abc4b2a76b9719d911017c592";
15506
15509
  function ci(e, A) {
15507
- if (PI) {
15510
+ if (ZI) {
15508
15511
  var t = (65535 & e) + (65535 & A);
15509
15512
  return (e >> 16) + (A >> 16) + (t >> 16) << 16 | 65535 & t;
15510
15513
  }
@@ -15829,7 +15832,7 @@ function he(e) {
15829
15832
  throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");
15830
15833
  return ne[h] = S;
15831
15834
  };
15832
- var ve, kA, At, be, $t, Te = {}, Ke = {}, An = [], Ie = {}, or = {}, it = {}, mn = {}, Sn = null, AA = 0, $ = [], BA = new hp(d), Ae = e.hotfixes || [], re = {}, qA = {}, le = [], QA = function h(S, _, rA, uA, vA, RA) {
15835
+ var ve, kA, At, Ne, $t, Te = {}, Ke = {}, An = [], Ie = {}, or = {}, it = {}, mn = {}, Sn = null, AA = 0, $ = [], BA = new hp(d), Ae = e.hotfixes || [], re = {}, qA = {}, le = [], QA = function h(S, _, rA, uA, vA, RA) {
15833
15836
  if (!(this instanceof h))
15834
15837
  return new h(S, _, rA, uA, vA, RA);
15835
15838
  isNaN(S) && (S = 1), isNaN(_) && (_ = 0), isNaN(rA) && (rA = 0), isNaN(uA) && (uA = 1), isNaN(vA) && (vA = 0), isNaN(RA) && (RA = 0), this._matrix = [S, _, rA, uA, vA, RA];
@@ -16902,13 +16905,13 @@ T* `) : h.join(` Tj
16902
16905
  isNaN(RA) || (vA = parseFloat(RA));
16903
16906
  } }), this;
16904
16907
  }, To = function() {
16905
- this.page = AA, this.currentPage = Z, this.pages = xA.slice(0), this.pagesContext = $.slice(0), this.x = At, this.y = be, this.matrix = $t, this.width = Ni(Z), this.height = Pr(Z), this.outputDestination = TA, this.id = "", this.objectNumber = -1;
16908
+ this.page = AA, this.currentPage = Z, this.pages = xA.slice(0), this.pagesContext = $.slice(0), this.x = At, this.y = Ne, this.matrix = $t, this.width = Ni(Z), this.height = Pr(Z), this.outputDestination = TA, this.id = "", this.objectNumber = -1;
16906
16909
  };
16907
16910
  To.prototype.restore = function() {
16908
- AA = this.page, Z = this.currentPage, $ = this.pagesContext, xA = this.pages, At = this.x, be = this.y, $t = this.matrix, Io(Z, this.width), Vo(Z, this.height), TA = this.outputDestination;
16911
+ AA = this.page, Z = this.currentPage, $ = this.pagesContext, xA = this.pages, At = this.x, Ne = this.y, $t = this.matrix, Io(Z, this.width), Vo(Z, this.height), TA = this.outputDestination;
16909
16912
  };
16910
16913
  var ll = function(h, S, _, rA, uA) {
16911
- le.push(new To()), AA = Z = 0, xA = [], At = h, be = S, $t = uA, Fo([_, rA]);
16914
+ le.push(new To()), AA = Z = 0, xA = [], At = h, Ne = S, $t = uA, Fo([_, rA]);
16912
16915
  }, ku = function(h) {
16913
16916
  if (qA[h])
16914
16917
  le.pop().restore();
@@ -17018,34 +17021,34 @@ var Bn = function(e, A) {
17018
17021
  }, hr = function(e) {
17019
17022
  var A = new wB(), t = te.internal.getHeight(e) || 0, n = te.internal.getWidth(e) || 0;
17020
17023
  return A.BBox = [0, 0, Number(we(n)), Number(we(t))], A;
17021
- }, JI = ut.__acroform__.setBit = function(e, A) {
17024
+ }, PI = ut.__acroform__.setBit = function(e, A) {
17022
17025
  if (e = e || 0, A = A || 0, isNaN(e) || isNaN(A))
17023
17026
  throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");
17024
17027
  return e |= 1 << A;
17025
- }, jI = ut.__acroform__.clearBit = function(e, A) {
17028
+ }, JI = ut.__acroform__.clearBit = function(e, A) {
17026
17029
  if (e = e || 0, A = A || 0, isNaN(e) || isNaN(A))
17027
17030
  throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");
17028
17031
  return e &= ~(1 << A);
17029
- }, KI = ut.__acroform__.getBit = function(e, A) {
17032
+ }, jI = ut.__acroform__.getBit = function(e, A) {
17030
17033
  if (isNaN(e) || isNaN(A))
17031
17034
  throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");
17032
17035
  return e & 1 << A ? 1 : 0;
17033
17036
  }, wt = ut.__acroform__.getBitForPdf = function(e, A) {
17034
17037
  if (isNaN(e) || isNaN(A))
17035
17038
  throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");
17036
- return KI(e, A - 1);
17039
+ return jI(e, A - 1);
17037
17040
  }, vt = ut.__acroform__.setBitForPdf = function(e, A) {
17038
17041
  if (isNaN(e) || isNaN(A))
17039
17042
  throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");
17040
- return JI(e, A - 1);
17043
+ return PI(e, A - 1);
17041
17044
  }, Ut = ut.__acroform__.clearBitForPdf = function(e, A) {
17042
17045
  if (isNaN(e) || isNaN(A))
17043
17046
  throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");
17044
- return jI(e, A - 1);
17045
- }, _I = ut.__acroform__.calculateCoordinates = function(e, A) {
17047
+ return JI(e, A - 1);
17048
+ }, KI = ut.__acroform__.calculateCoordinates = function(e, A) {
17046
17049
  var t = A.internal.getHorizontalCoordinate, n = A.internal.getVerticalCoordinate, r = e[0], i = e[1], a = e[2], o = e[3], l = {};
17047
17050
  return l.lowerLeft_X = t(r) || 0, l.lowerLeft_Y = n(i + o) || 0, l.upperRight_X = t(r + a) || 0, l.upperRight_Y = n(i) || 0, [Number(we(l.lowerLeft_X)), Number(we(l.lowerLeft_Y)), Number(we(l.upperRight_X)), Number(we(l.upperRight_Y))];
17048
- }, GI = function(e) {
17051
+ }, _I = function(e) {
17049
17052
  if (e.appearanceStreamContent)
17050
17053
  return e.appearanceStreamContent;
17051
17054
  if (e.V || e.DV) {
@@ -17146,20 +17149,20 @@ var Bn = function(e, A) {
17146
17149
  }, hc = function(e, A, t) {
17147
17150
  var n = A.scope.internal.getFont(A.fontName, A.fontStyle), r = A.scope.getStringUnitWidth(e, { font: n, fontSize: parseFloat(t), charSpace: 0 }) * parseFloat(t);
17148
17151
  return { height: A.scope.getStringUnitWidth("3", { font: n, fontSize: parseFloat(t), charSpace: 0 }) * parseFloat(t) * 1.5, width: r };
17149
- }, zI = { fields: [], xForms: [], acroFormDictionaryRoot: null, printedOut: !1, internal: null, isInitialized: !1 }, YI = function(e, A) {
17152
+ }, GI = { fields: [], xForms: [], acroFormDictionaryRoot: null, printedOut: !1, internal: null, isInitialized: !1 }, zI = function(e, A) {
17150
17153
  var t = { type: "reference", object: e };
17151
17154
  A.internal.getPageInfo(e.page).pageContext.annotations.find(function(n) {
17152
17155
  return n.type === t.type && n.object === t.object;
17153
17156
  }) === void 0 && A.internal.getPageInfo(e.page).pageContext.annotations.push(t);
17154
- }, XI = function(e, A) {
17157
+ }, YI = function(e, A) {
17155
17158
  for (var t in e)
17156
17159
  if (e.hasOwnProperty(t)) {
17157
17160
  var n = t, r = e[t];
17158
17161
  A.internal.newObjectDeferredBegin(r.objId, !0), Ze(r) === "object" && typeof r.putStream == "function" && r.putStream(), delete e[n];
17159
17162
  }
17160
- }, qI = function(e, A) {
17163
+ }, XI = function(e, A) {
17161
17164
  if (A.scope = e, e.internal !== void 0 && (e.internal.acroformPlugin === void 0 || e.internal.acroformPlugin.isInitialized === !1)) {
17162
- if (ir.FieldNum = 0, e.internal.acroformPlugin = JSON.parse(JSON.stringify(zI)), e.internal.acroformPlugin.acroFormDictionaryRoot)
17165
+ if (ir.FieldNum = 0, e.internal.acroformPlugin = JSON.parse(JSON.stringify(GI)), e.internal.acroformPlugin.acroFormDictionaryRoot)
17163
17166
  throw new Error("Exception while creating AcroformDictionary");
17164
17167
  P0 = e.internal.scaleFactor, e.internal.acroformPlugin.acroFormDictionaryRoot = new vB(), e.internal.acroformPlugin.acroFormDictionaryRoot.scope = e, e.internal.acroformPlugin.acroFormDictionaryRoot._eventID = e.internal.events.subscribe("postPutResources", function() {
17165
17168
  (function(t) {
@@ -17172,7 +17175,7 @@ var Bn = function(e, A) {
17172
17175
  for (var r in n)
17173
17176
  if (n.hasOwnProperty(r)) {
17174
17177
  var i = n[r];
17175
- i.objId = void 0, i.hasAnnotation && YI(i, t);
17178
+ i.objId = void 0, i.hasAnnotation && zI(i, t);
17176
17179
  }
17177
17180
  })(e);
17178
17181
  }), e.internal.events.subscribe("putCatalog", function() {
@@ -17187,8 +17190,8 @@ var Bn = function(e, A) {
17187
17190
  for (var a in n || (r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId, !0), r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()), n = n || r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)
17188
17191
  if (n.hasOwnProperty(a)) {
17189
17192
  var o = n[a], l = [], u = o.Rect;
17190
- if (o.Rect && (o.Rect = _I(o.Rect, r)), r.internal.newObjectDeferredBegin(o.objId, !0), o.DA = te.createDefaultAppearanceStream(o), Ze(o) === "object" && typeof o.getKeyValueListForStream == "function" && (l = o.getKeyValueListForStream()), o.Rect = u, o.hasAppearanceStream && !o.appearanceStreamContent) {
17191
- var f = GI(o);
17193
+ if (o.Rect && (o.Rect = KI(o.Rect, r)), r.internal.newObjectDeferredBegin(o.objId, !0), o.DA = te.createDefaultAppearanceStream(o), Ze(o) === "object" && typeof o.getKeyValueListForStream == "function" && (l = o.getKeyValueListForStream()), o.Rect = u, o.hasAppearanceStream && !o.appearanceStreamContent) {
17194
+ var f = _I(o);
17192
17195
  l.push({ key: "AP", value: "<</N " + f + ">>" }), r.internal.acroformPlugin.xForms.push(f);
17193
17196
  }
17194
17197
  if (o.appearanceStreamContent) {
@@ -17211,7 +17214,7 @@ var Bn = function(e, A) {
17211
17214
  }
17212
17215
  r.internal.putStream({ additionalKeyValues: l, objectId: o.objId }), r.internal.out("endobj");
17213
17216
  }
17214
- i && XI(r.internal.acroformPlugin.xForms, r);
17217
+ i && YI(r.internal.acroformPlugin.xForms, r);
17215
17218
  })(t, e);
17216
17219
  }), e.internal.acroformPlugin.isInitialized = !0;
17217
17220
  }
@@ -17690,7 +17693,7 @@ Bn(Dc, ir), no.prototype.setAppearance = function(e) {
17690
17693
  }
17691
17694
  }, no.prototype.createOption = function(e) {
17692
17695
  var A = new Dc();
17693
- return A.Parent = this, A.optionName = e, this.Kids.push(A), $I.call(this.scope, A), A;
17696
+ return A.Parent = this, A.optionName = e, this.Kids.push(A), qI.call(this.scope, A), A;
17694
17697
  };
17695
17698
  var Fc = function() {
17696
17699
  Vt.call(this), this.fontName = "zapfdingbats", this.caption = "3", this.appearanceState = "On", this.value = "On", this.textAlign = "center", this.appearanceStreamContent = te.CheckBox.createAppearanceStream();
@@ -17830,8 +17833,8 @@ te.internal = { Bezier_C: 0.551915024494, calculateCross: function(e) {
17830
17833
  var A = 0;
17831
17834
  return Ze(e) === "object" && (A = dp(e.Rect[3])), A;
17832
17835
  };
17833
- var $I = ut.addField = function(e) {
17834
- if (qI(this, e), !(e instanceof ir))
17836
+ var qI = ut.addField = function(e) {
17837
+ if (XI(this, e), !(e instanceof ir))
17835
17838
  throw new Error("Invalid argument passed to jsPDF.addField.");
17836
17839
  var A;
17837
17840
  return (A = e).scope.internal.acroformPlugin.printedOut && (A.scope.internal.acroformPlugin.printedOut = !1, A.scope.internal.acroformPlugin.acroFormDictionaryRoot = null), A.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A), e.page = e.scope.internal.getCurrentPageInfo().pageNumber, this;
@@ -18440,7 +18443,7 @@ function(e) {
18440
18443
  m.length > 0 && this.setTableHeaderRow(m), this.setFont(void 0, "normal"), t = !1;
18441
18444
  };
18442
18445
  }(he.API);
18443
- var yB = { italic: ["italic", "oblique", "normal"], oblique: ["oblique", "italic", "normal"], normal: ["normal", "oblique", "italic"] }, FB = ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"], kh = UB(FB), CB = [100, 200, 300, 400, 500, 600, 700, 800, 900], AV = UB(CB);
18446
+ var yB = { italic: ["italic", "oblique", "normal"], oblique: ["oblique", "italic", "normal"], normal: ["normal", "oblique", "italic"] }, FB = ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"], kh = UB(FB), CB = [100, 200, 300, 400, 500, 600, 700, 800, 900], $I = UB(CB);
18444
18447
  function Hh(e) {
18445
18448
  var A = e.family.replace(/"|'/g, "").toLowerCase(), t = function(i) {
18446
18449
  return yB[i = i || "normal"] ? i : "normal";
@@ -18472,12 +18475,12 @@ function pp(e, A, t, n) {
18472
18475
  if (e[A[r]])
18473
18476
  return e[A[r]];
18474
18477
  }
18475
- var eV = { "sans-serif": "helvetica", fixed: "courier", monospace: "courier", terminal: "courier", cursive: "times", fantasy: "times", serif: "times" }, gp = { caption: "times", icon: "times", menu: "times", "message-box": "times", "small-caption": "times", "status-bar": "times" };
18478
+ var AV = { "sans-serif": "helvetica", fixed: "courier", monospace: "courier", terminal: "courier", cursive: "times", fantasy: "times", serif: "times" }, gp = { caption: "times", icon: "times", menu: "times", "message-box": "times", "small-caption": "times", "status-bar": "times" };
18476
18479
  function Bp(e) {
18477
18480
  return [e.stretch, e.style, e.weight, e.family].join(" ");
18478
18481
  }
18479
- function tV(e, A, t) {
18480
- for (var n = (t = t || {}).defaultFontFamily || "times", r = Object.assign({}, eV, t.genericFontFamilies || {}), i = null, a = null, o = 0; o < A.length; ++o)
18482
+ function eV(e, A, t) {
18483
+ for (var n = (t = t || {}).defaultFontFamily || "times", r = Object.assign({}, AV, t.genericFontFamilies || {}), i = null, a = null, o = 0; o < A.length; ++o)
18481
18484
  if (r[(i = Hh(A[o])).family] && (i.family = r[i.family]), e.hasOwnProperty(i.family)) {
18482
18485
  a = e[i.family];
18483
18486
  break;
@@ -18505,7 +18508,7 @@ function tV(e, A, t) {
18505
18508
  return u[500];
18506
18509
  if (l === 500 && u[400])
18507
18510
  return u[400];
18508
- var f = AV[l], p = pp(u, CB, f, l < 400 ? -1 : 1);
18511
+ var f = $I[l], p = pp(u, CB, f, l < 400 ? -1 : 1);
18509
18512
  if (!p)
18510
18513
  throw new Error("Could not find a matching font-weight for value " + l);
18511
18514
  return p;
@@ -18516,7 +18519,7 @@ function tV(e, A, t) {
18516
18519
  function mp(e) {
18517
18520
  return e.trimLeft();
18518
18521
  }
18519
- function nV(e, A) {
18522
+ function tV(e, A) {
18520
18523
  for (var t = 0; t < e.length; ) {
18521
18524
  if (e.charAt(t) === A)
18522
18525
  return [e.substring(0, t), e.substring(t + 1)];
@@ -18524,7 +18527,7 @@ function nV(e, A) {
18524
18527
  }
18525
18528
  return null;
18526
18529
  }
18527
- function rV(e) {
18530
+ function nV(e) {
18528
18531
  var A = e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);
18529
18532
  return A === null ? null : [A[0], e.substring(A[0].length)];
18530
18533
  }
@@ -18688,28 +18691,28 @@ var dc, wp, vp, jf = ["times"];
18688
18691
  var pe = G[1], $A = (G[2], G[3]), SA = G[4], IA = (G[5], G[6]), HA = /^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(SA)[2];
18689
18692
  SA = Math.floor(HA === "px" ? parseFloat(SA) * this.pdf.internal.scaleFactor : HA === "em" ? parseFloat(SA) * this.pdf.getFontSize() : parseFloat(SA) * this.pdf.internal.scaleFactor), this.pdf.setFontSize(SA);
18690
18693
  var LA = function(ne) {
18691
- var ve, kA, At = [], be = ne.trim();
18692
- if (be === "")
18694
+ var ve, kA, At = [], Ne = ne.trim();
18695
+ if (Ne === "")
18693
18696
  return jf;
18694
- if (be in gp)
18695
- return [gp[be]];
18696
- for (; be !== ""; ) {
18697
- switch (kA = null, ve = (be = mp(be)).charAt(0)) {
18697
+ if (Ne in gp)
18698
+ return [gp[Ne]];
18699
+ for (; Ne !== ""; ) {
18700
+ switch (kA = null, ve = (Ne = mp(Ne)).charAt(0)) {
18698
18701
  case '"':
18699
18702
  case "'":
18700
- kA = nV(be.substring(1), ve);
18703
+ kA = tV(Ne.substring(1), ve);
18701
18704
  break;
18702
18705
  default:
18703
- kA = rV(be);
18706
+ kA = nV(Ne);
18704
18707
  }
18705
- if (kA === null || (At.push(kA[0]), (be = mp(kA[1])) !== "" && be.charAt(0) !== ","))
18708
+ if (kA === null || (At.push(kA[0]), (Ne = mp(kA[1])) !== "" && Ne.charAt(0) !== ","))
18706
18709
  return jf;
18707
- be = be.replace(/^,/, "");
18710
+ Ne = Ne.replace(/^,/, "");
18708
18711
  }
18709
18712
  return At;
18710
18713
  }(IA);
18711
18714
  if (this.fontFaces) {
18712
- var PA = tV(TA(this.pdf, this.fontFaces), LA.map(function(ne) {
18715
+ var PA = eV(TA(this.pdf, this.fontFaces), LA.map(function(ne) {
18713
18716
  return { family: ne, stretch: "normal", weight: $A, style: pe };
18714
18717
  }));
18715
18718
  this.pdf.setFont(PA.ref.name, PA.ref.style);
@@ -18938,10 +18941,10 @@ var dc, wp, vp, jf = ["times"];
18938
18941
  var At = this.path;
18939
18942
  G = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = w(G, this.posX + this.margin[3], -kA + Ee + this.ctx.prevPageLastElemOffset), I.call(this, "fill", !0), this.path = At;
18940
18943
  }
18941
- var be = JSON.parse(JSON.stringify(IA));
18942
- be = w([be], this.posX + this.margin[3], -kA + Ee + this.ctx.prevPageLastElemOffset)[0];
18944
+ var Ne = JSON.parse(JSON.stringify(IA));
18945
+ Ne = w([Ne], this.posX + this.margin[3], -kA + Ee + this.ctx.prevPageLastElemOffset)[0];
18943
18946
  var $t = (ae > se || ae < ce) && v.call(this);
18944
- $t && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], Fe, ve, null).clip().discardPath()), this.pdf.addImage(E, "JPEG", be.x, be.y, be.w, be.h, null, null, $A), $t && this.pdf.restoreGraphicsState();
18947
+ $t && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], Fe, ve, null).clip().discardPath()), this.pdf.addImage(E, "JPEG", Ne.x, Ne.y, Ne.w, Ne.h, null, null, $A), $t && this.pdf.restoreGraphicsState();
18945
18948
  }
18946
18949
  else
18947
18950
  this.pdf.addImage(E, "JPEG", IA.x, IA.y, IA.w, IA.h, null, null, $A);
@@ -19153,8 +19156,8 @@ var dc, wp, vp, jf = ["times"];
19153
19156
  var ve = this.autoPaging !== "text";
19154
19157
  if (ve || ne.y + ne.h <= PA) {
19155
19158
  if (ve || ne.y >= HA && ne.x <= ce) {
19156
- var kA = ve ? E.text : this.pdf.splitTextToSize(E.text, E.maxWidth || ce - ne.x)[0], At = w([JSON.parse(JSON.stringify(TA))], this.posX + this.margin[3], -Fe + HA + this.ctx.prevPageLastElemOffset)[0], be = ve && (IA > $A || IA < SA) && v.call(this);
19157
- be && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], ae, se, null).clip().discardPath()), this.pdf.text(kA, At.x, At.y, { angle: E.angle, align: Z, renderingMode: E.renderingMode }), be && this.pdf.restoreGraphicsState();
19159
+ var kA = ve ? E.text : this.pdf.splitTextToSize(E.text, E.maxWidth || ce - ne.x)[0], At = w([JSON.parse(JSON.stringify(TA))], this.posX + this.margin[3], -Fe + HA + this.ctx.prevPageLastElemOffset)[0], Ne = ve && (IA > $A || IA < SA) && v.call(this);
19160
+ Ne && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], ae, se, null).clip().discardPath()), this.pdf.text(kA, At.x, At.y, { angle: E.angle, align: Z, renderingMode: E.renderingMode }), Ne && this.pdf.restoreGraphicsState();
19158
19161
  }
19159
19162
  } else
19160
19163
  ne.y < PA && (this.ctx.prevPageLastElemOffset += PA - ne.y);
@@ -19728,7 +19731,7 @@ function(e) {
19728
19731
  return f;
19729
19732
  };
19730
19733
  }(he.API);
19731
- var Za, pc, Up, yp, Fp, iV = function() {
19734
+ var Za, pc, Up, yp, Fp, rV = function() {
19732
19735
  var e, A, t;
19733
19736
  function n(i) {
19734
19737
  var a, o, l, u, f, p, m, d, U, v, F, B, w, Q;
@@ -19852,7 +19855,7 @@ var Za, pc, Up, yp, Fp, iV = function() {
19852
19855
  b++;
19853
19856
  }
19854
19857
  }
19855
- return i = kI(i), u.interlaceMethod == 1 ? (f(0, 0, 8, 8), f(4, 0, 8, 8), f(0, 4, 4, 8), f(2, 0, 4, 4), f(0, 2, 2, 4), f(1, 0, 2, 2), f(0, 1, 1, 2)) : f(0, 0, 1, 1), o;
19858
+ return i = LI(i), u.interlaceMethod == 1 ? (f(0, 0, 8, 8), f(4, 0, 8, 8), f(0, 4, 4, 8), f(2, 0, 4, 4), f(0, 2, 2, 4), f(1, 0, 2, 2), f(0, 1, 1, 2)) : f(0, 0, 1, 1), o;
19856
19859
  }, n.prototype.decodePalette = function() {
19857
19860
  var i, a, o, l, u, f, p, m, d;
19858
19861
  for (o = this.palette, f = this.transparency.indexed || [], u = new Uint8Array((f.length || 0) + o.length), l = 0, i = 0, a = p = 0, m = o.length; p < m; a = p += 3)
@@ -19964,7 +19967,7 @@ var Za, pc, Up, yp, Fp, iV = function() {
19964
19967
  * including animation and compression. It does not rely on any specific
19965
19968
  * underlying system, so should run in the browser, Node, or Plask.
19966
19969
  */
19967
- function aV(e) {
19970
+ function iV(e) {
19968
19971
  var A = 0;
19969
19972
  if (e[A++] !== 71 || e[A++] !== 73 || e[A++] !== 70 || e[A++] !== 56 || (e[A++] + 1 & 253) != 56 || e[A++] !== 97)
19970
19973
  throw new Error("Invalid GIF 87a/89a header.");
@@ -20154,11 +20157,11 @@ function Kf(e) {
20154
20157
  var HA, LA, PA, se, ce, ae, Fe, Ee, ne, ve, kA = 0;
20155
20158
  for (ne = 0; ne < 8; ++ne) {
20156
20159
  HA = SA[kA], LA = SA[kA + 1], PA = SA[kA + 2], se = SA[kA + 3], ce = SA[kA + 4], ae = SA[kA + 5], Fe = SA[kA + 6];
20157
- var At = HA + (Ee = SA[kA + 7]), be = HA - Ee, $t = LA + Fe, Te = LA - Fe, Ke = PA + ae, An = PA - ae, Ie = se + ce, or = se - ce, it = At + Ie, mn = At - Ie, Sn = $t + Ke, AA = $t - Ke;
20160
+ var At = HA + (Ee = SA[kA + 7]), Ne = HA - Ee, $t = LA + Fe, Te = LA - Fe, Ke = PA + ae, An = PA - ae, Ie = se + ce, or = se - ce, it = At + Ie, mn = At - Ie, Sn = $t + Ke, AA = $t - Ke;
20158
20161
  SA[kA] = it + Sn, SA[kA + 4] = it - Sn;
20159
20162
  var $ = 0.707106781 * (AA + mn);
20160
20163
  SA[kA + 2] = mn + $, SA[kA + 6] = mn - $;
20161
- var BA = 0.382683433 * ((it = or + An) - (AA = Te + be)), Ae = 0.5411961 * it + BA, re = 1.306562965 * AA + BA, qA = 0.707106781 * (Sn = An + Te), le = be + qA, QA = be - qA;
20164
+ var BA = 0.382683433 * ((it = or + An) - (AA = Te + Ne)), Ae = 0.5411961 * it + BA, re = 1.306562965 * AA + BA, qA = 0.707106781 * (Sn = An + Te), le = Ne + qA, QA = Ne - qA;
20162
20165
  SA[kA + 5] = QA + Ae, SA[kA + 3] = QA - Ae, SA[kA + 1] = le + re, SA[kA + 7] = le - re, kA += 8;
20163
20166
  }
20164
20167
  for (kA = 0, ne = 0; ne < 8; ++ne) {
@@ -20555,7 +20558,7 @@ function Ep(e) {
20555
20558
  y[N++] = R >> 16 & 255, y[N++] = R >> 8 & 255, y[N++] = R >> 0 & 255, y[N++] = R >> 24 & 255;
20556
20559
  }
20557
20560
  }
20558
- function be(s, c, g, y, N) {
20561
+ function Ne(s, c, g, y, N) {
20559
20562
  for (g = c + g; c < g; ) {
20560
20563
  var R = (x = s[c++]) >> 16 & 240 | x >> 12 & 15, x = x >> 0 & 240 | x >> 28 & 15;
20561
20564
  y[N++] = R, y[N++] = x;
@@ -20884,7 +20887,7 @@ function Ep(e) {
20884
20887
  }
20885
20888
  function et() {
20886
20889
  var s = new ku();
20887
- return s == null ? null : (s.a = 0, s.xb = G0, An("Predictor", "VP8LPredictors"), An("Predictor", "VP8LPredictors_C"), An("PredictorAdd", "VP8LPredictorsAdd"), An("PredictorAdd", "VP8LPredictorsAdd_C"), ul = Fe, Si = ne, un = kA, tn = At, jr = be, Er = $t, Qr = Te, H.VP8LMapColor32b = Ua, H.VP8LMapColor8b = hl, s);
20890
+ return s == null ? null : (s.a = 0, s.xb = G0, An("Predictor", "VP8LPredictors"), An("Predictor", "VP8LPredictors_C"), An("PredictorAdd", "VP8LPredictorsAdd"), An("PredictorAdd", "VP8LPredictorsAdd_C"), ul = Fe, Si = ne, un = kA, tn = At, jr = Ne, Er = $t, Qr = Te, H.VP8LMapColor32b = Ua, H.VP8LMapColor8b = hl, s);
20888
20891
  }
20889
20892
  function Qt(s, c, g, y, N) {
20890
20893
  var R = 1, x = [s], M = [c], D = y.m, J = y.s, iA = null, hA = 0;
@@ -22470,7 +22473,7 @@ function Ep(e) {
22470
22473
  e.processPNG = function(m, d, U, v) {
22471
22474
  var F, B, w, Q, T, I, k, L, H, P, W, b, C, V, O, K = this.decode.FLATE_DECODE, z = "";
22472
22475
  if (this.__addimage__.isArrayBuffer(m) && (m = new Uint8Array(m)), this.__addimage__.isArrayBufferView(m)) {
22473
- if (m = (w = new iV(m)).imgData, B = w.bits, F = w.colorSpace, T = w.colors, [4, 6].indexOf(w.colorType) !== -1) {
22476
+ if (m = (w = new rV(m)).imgData, B = w.bits, F = w.colorSpace, T = w.colors, [4, 6].indexOf(w.colorType) !== -1) {
22474
22477
  if (w.bits === 8) {
22475
22478
  H = (L = w.pixelBitlength == 32 ? new Uint32Array(w.decodePixels().buffer) : w.pixelBitlength == 16 ? new Uint16Array(w.decodePixels().buffer) : new Uint8Array(w.decodePixels().buffer)).length, W = new Uint8Array(H * w.colors), P = new Uint8Array(H);
22476
22479
  var q, Y = w.pixelBitlength - w.bits;
@@ -22522,7 +22525,7 @@ function Ep(e) {
22522
22525
  };
22523
22526
  })(he.API), function(e) {
22524
22527
  e.processGIF89A = function(A, t, n, r) {
22525
- var i = new aV(A), a = i.width, o = i.height, l = [];
22528
+ var i = new iV(A), a = i.width, o = i.height, l = [];
22526
22529
  i.decodeAndBlitFrameRGBA(0, l);
22527
22530
  var u = { data: l, width: a, height: o }, f = new Kf(100).encode(u, 100);
22528
22531
  return e.processJPEG.call(this, f, t, n, r);
@@ -22797,7 +22800,7 @@ function(e) {
22797
22800
  */
22798
22801
  function(e) {
22799
22802
  function A() {
22800
- return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-8d4b893b.mjs")).catch(function(t) {
22803
+ return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-67cf3367.mjs")).catch(function(t) {
22801
22804
  return Promise.reject(new Error("Could not load canvg: " + t));
22802
22805
  }).then(function(t) {
22803
22806
  return t.default ? t.default : t;
@@ -23217,12 +23220,12 @@ function(e) {
23217
23220
  var t;
23218
23221
  if (this.rawData = A, t = this.contents = new vi(A), this.contents.pos = 4, t.readString(4) === "ttcf")
23219
23222
  throw new Error("TTCF not supported.");
23220
- t.pos = 0, this.parse(), this.subset = new UV(this), this.registerTTF();
23223
+ t.pos = 0, this.parse(), this.subset = new vV(this), this.registerTTF();
23221
23224
  }
23222
23225
  return e.open = function(A) {
23223
23226
  return new e(A);
23224
23227
  }, e.prototype.parse = function() {
23225
- return this.directory = new oV(this.contents), this.head = new lV(this), this.name = new dV(this), this.cmap = new EB(this), this.toUnicode = {}, this.hhea = new cV(this), this.maxp = new pV(this), this.hmtx = new gV(this), this.post = new fV(this), this.os2 = new uV(this), this.loca = new vV(this), this.glyf = new BV(this), this.ascender = this.os2.exists && this.os2.ascender || this.hhea.ascender, this.decender = this.os2.exists && this.os2.decender || this.hhea.decender, this.lineGap = this.os2.exists && this.os2.lineGap || this.hhea.lineGap, this.bbox = [this.head.xMin, this.head.yMin, this.head.xMax, this.head.yMax];
23228
+ return this.directory = new aV(this.contents), this.head = new sV(this), this.name = new hV(this), this.cmap = new EB(this), this.toUnicode = {}, this.hhea = new lV(this), this.maxp = new dV(this), this.hmtx = new pV(this), this.post = new uV(this), this.os2 = new cV(this), this.loca = new wV(this), this.glyf = new gV(this), this.ascender = this.os2.exists && this.os2.ascender || this.hhea.ascender, this.decender = this.os2.exists && this.os2.decender || this.hhea.decender, this.lineGap = this.os2.exists && this.os2.lineGap || this.hhea.lineGap, this.bbox = [this.head.xMin, this.head.yMin, this.head.xMax, this.head.yMax];
23226
23229
  }, e.prototype.registerTTF = function() {
23227
23230
  var A, t, n, r, i;
23228
23231
  if (this.scaleFactor = 1e3 / this.head.unitsPerEm, this.bbox = (function() {
@@ -23309,7 +23312,7 @@ var ar, vi = function() {
23309
23312
  t = A[n], i.push(this.writeByte(t));
23310
23313
  return i;
23311
23314
  }, e;
23312
- }(), oV = function() {
23315
+ }(), aV = function() {
23313
23316
  var e;
23314
23317
  function A(t) {
23315
23318
  var n, r, i;
@@ -23330,9 +23333,9 @@ var ar, vi = function() {
23330
23333
  r += i.readUInt32();
23331
23334
  return 4294967295 & r;
23332
23335
  }, A;
23333
- }(), sV = {}.hasOwnProperty, Ur = function(e, A) {
23336
+ }(), oV = {}.hasOwnProperty, Ur = function(e, A) {
23334
23337
  for (var t in A)
23335
- sV.call(A, t) && (e[t] = A[t]);
23338
+ oV.call(A, t) && (e[t] = A[t]);
23336
23339
  function n() {
23337
23340
  this.constructor = e;
23338
23341
  }
@@ -23349,7 +23352,7 @@ ar = function() {
23349
23352
  return this.exists ? (this.file.contents.pos = this.offset, this.file.contents.read(this.length)) : null;
23350
23353
  }, e;
23351
23354
  }();
23352
- var lV = function(e) {
23355
+ var sV = function(e) {
23353
23356
  function A() {
23354
23357
  return A.__super__.constructor.apply(this, arguments);
23355
23358
  }
@@ -23453,14 +23456,14 @@ var lV = function(e) {
23453
23456
  var r, i;
23454
23457
  return n == null && (n = "macroman"), r = Qp.encode(t, n), (i = new vi()).writeUInt16(0), i.writeUInt16(1), r.table = i.data.concat(r.subtable), r;
23455
23458
  }, A;
23456
- }(), cV = function(e) {
23459
+ }(), lV = function(e) {
23457
23460
  function A() {
23458
23461
  return A.__super__.constructor.apply(this, arguments);
23459
23462
  }
23460
23463
  return Ur(A, ar), A.prototype.tag = "hhea", A.prototype.parse = function(t) {
23461
23464
  return t.pos = this.offset, this.version = t.readInt(), this.ascender = t.readShort(), this.decender = t.readShort(), this.lineGap = t.readShort(), this.advanceWidthMax = t.readShort(), this.minLeftSideBearing = t.readShort(), this.minRightSideBearing = t.readShort(), this.xMaxExtent = t.readShort(), this.caretSlopeRise = t.readShort(), this.caretSlopeRun = t.readShort(), this.caretOffset = t.readShort(), t.pos += 8, this.metricDataFormat = t.readShort(), this.numberOfMetrics = t.readUInt16();
23462
23465
  }, A;
23463
- }(), uV = function(e) {
23466
+ }(), cV = function(e) {
23464
23467
  function A() {
23465
23468
  return A.__super__.constructor.apply(this, arguments);
23466
23469
  }
@@ -23483,7 +23486,7 @@ var lV = function(e) {
23483
23486
  }(), this.version > 1))
23484
23487
  return this.xHeight = t.readShort(), this.capHeight = t.readShort(), this.defaultChar = t.readShort(), this.breakChar = t.readShort(), this.maxContext = t.readShort();
23485
23488
  }, A;
23486
- }(), fV = function(e) {
23489
+ }(), uV = function(e) {
23487
23490
  function A() {
23488
23491
  return A.__super__.constructor.apply(this, arguments);
23489
23492
  }
@@ -23512,9 +23515,9 @@ var lV = function(e) {
23512
23515
  }).call(this);
23513
23516
  }
23514
23517
  }, A;
23515
- }(), hV = function(e, A) {
23518
+ }(), fV = function(e, A) {
23516
23519
  this.raw = e, this.length = e.length, this.platformID = A.platformID, this.encodingID = A.encodingID, this.languageID = A.languageID;
23517
- }, dV = function(e) {
23520
+ }, hV = function(e) {
23518
23521
  function A() {
23519
23522
  return A.__super__.constructor.apply(this, arguments);
23520
23523
  }
@@ -23523,7 +23526,7 @@ var lV = function(e) {
23523
23526
  for (t.pos = this.offset, t.readShort(), n = t.readShort(), l = t.readShort(), r = [], a = 0; 0 <= n ? a < n : a > n; a = 0 <= n ? ++a : --a)
23524
23527
  r.push({ platformID: t.readShort(), encodingID: t.readShort(), languageID: t.readShort(), nameID: t.readShort(), length: t.readShort(), offset: this.offset + l + t.readShort() });
23525
23528
  for (u = {}, a = p = 0, m = r.length; p < m; a = ++p)
23526
- i = r[a], t.pos = i.offset, f = t.readString(i.length), o = new hV(f, i), u[d = i.nameID] == null && (u[d] = []), u[i.nameID].push(o);
23529
+ i = r[a], t.pos = i.offset, f = t.readString(i.length), o = new fV(f, i), u[d = i.nameID] == null && (u[d] = []), u[i.nameID].push(o);
23527
23530
  this.strings = u, this.copyright = u[0], this.fontFamily = u[1], this.fontSubfamily = u[2], this.uniqueSubfamily = u[3], this.fontName = u[4], this.version = u[5];
23528
23531
  try {
23529
23532
  this.postscriptName = u[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g, "");
@@ -23532,14 +23535,14 @@ var lV = function(e) {
23532
23535
  }
23533
23536
  return this.trademark = u[7], this.manufacturer = u[8], this.designer = u[9], this.description = u[10], this.vendorUrl = u[11], this.designerUrl = u[12], this.license = u[13], this.licenseUrl = u[14], this.preferredFamily = u[15], this.preferredSubfamily = u[17], this.compatibleFull = u[18], this.sampleText = u[19];
23534
23537
  }, A;
23535
- }(), pV = function(e) {
23538
+ }(), dV = function(e) {
23536
23539
  function A() {
23537
23540
  return A.__super__.constructor.apply(this, arguments);
23538
23541
  }
23539
23542
  return Ur(A, ar), A.prototype.tag = "maxp", A.prototype.parse = function(t) {
23540
23543
  return t.pos = this.offset, this.version = t.readInt(), this.numGlyphs = t.readUInt16(), this.maxPoints = t.readUInt16(), this.maxContours = t.readUInt16(), this.maxCompositePoints = t.readUInt16(), this.maxComponentContours = t.readUInt16(), this.maxZones = t.readUInt16(), this.maxTwilightPoints = t.readUInt16(), this.maxStorage = t.readUInt16(), this.maxFunctionDefs = t.readUInt16(), this.maxInstructionDefs = t.readUInt16(), this.maxStackElements = t.readUInt16(), this.maxSizeOfInstructions = t.readUInt16(), this.maxComponentElements = t.readUInt16(), this.maxComponentDepth = t.readUInt16();
23541
23544
  }, A;
23542
- }(), gV = function(e) {
23545
+ }(), pV = function(e) {
23543
23546
  function A() {
23544
23547
  return A.__super__.constructor.apply(this, arguments);
23545
23548
  }
@@ -23563,7 +23566,7 @@ var lV = function(e) {
23563
23566
  }, A.prototype.forGlyph = function(t) {
23564
23567
  return t in this.metrics ? this.metrics[t] : { advance: this.metrics[this.metrics.length - 1].advance, lsb: this.leftSideBearings[t - this.metrics.length] };
23565
23568
  }, A;
23566
- }(), QB = [].slice, BV = function(e) {
23569
+ }(), QB = [].slice, gV = function(e) {
23567
23570
  function A() {
23568
23571
  return A.__super__.constructor.apply(this, arguments);
23569
23572
  }
@@ -23571,21 +23574,21 @@ var lV = function(e) {
23571
23574
  return this.cache = {};
23572
23575
  }, A.prototype.glyphFor = function(t) {
23573
23576
  var n, r, i, a, o, l, u, f, p, m;
23574
- return t in this.cache ? this.cache[t] : (a = this.file.loca, n = this.file.contents, r = a.indexOf(t), (i = a.lengthOf(t)) === 0 ? this.cache[t] = null : (n.pos = this.offset + r, o = (l = new vi(n.read(i))).readShort(), f = l.readShort(), m = l.readShort(), u = l.readShort(), p = l.readShort(), this.cache[t] = o === -1 ? new wV(l, f, m, u, p) : new mV(l, o, f, m, u, p), this.cache[t]));
23577
+ return t in this.cache ? this.cache[t] : (a = this.file.loca, n = this.file.contents, r = a.indexOf(t), (i = a.lengthOf(t)) === 0 ? this.cache[t] = null : (n.pos = this.offset + r, o = (l = new vi(n.read(i))).readShort(), f = l.readShort(), m = l.readShort(), u = l.readShort(), p = l.readShort(), this.cache[t] = o === -1 ? new mV(l, f, m, u, p) : new BV(l, o, f, m, u, p), this.cache[t]));
23575
23578
  }, A.prototype.encode = function(t, n, r) {
23576
23579
  var i, a, o, l, u;
23577
23580
  for (o = [], a = [], l = 0, u = n.length; l < u; l++)
23578
23581
  i = t[n[l]], a.push(o.length), i && (o = o.concat(i.encode(r)));
23579
23582
  return a.push(o.length), { table: o, offsets: a };
23580
23583
  }, A;
23581
- }(), mV = function() {
23584
+ }(), BV = function() {
23582
23585
  function e(A, t, n, r, i, a) {
23583
23586
  this.raw = A, this.numberOfContours = t, this.xMin = n, this.yMin = r, this.xMax = i, this.yMax = a, this.compound = !1;
23584
23587
  }
23585
23588
  return e.prototype.encode = function() {
23586
23589
  return this.raw.data;
23587
23590
  }, e;
23588
- }(), wV = function() {
23591
+ }(), mV = function() {
23589
23592
  function e(A, t, n, r, i) {
23590
23593
  var a, o;
23591
23594
  for (this.raw = A, this.xMin = t, this.yMin = n, this.xMax = r, this.yMax = i, this.compound = !0, this.glyphIDs = [], this.glyphOffsets = [], a = this.raw; o = a.readShort(), this.glyphOffsets.push(a.pos), this.glyphIDs.push(a.readUInt16()), 32 & o; )
@@ -23597,7 +23600,7 @@ var lV = function(e) {
23597
23600
  t.pos = this.glyphOffsets[A];
23598
23601
  return t.data;
23599
23602
  }, e;
23600
- }(), vV = function(e) {
23603
+ }(), wV = function(e) {
23601
23604
  function A() {
23602
23605
  return A.__super__.constructor.apply(this, arguments);
23603
23606
  }
@@ -23629,7 +23632,7 @@ var lV = function(e) {
23629
23632
  f[4 * p + 3] = 255 & r[p], f[4 * p + 2] = (65280 & r[p]) >> 8, f[4 * p + 1] = (16711680 & r[p]) >> 16, f[4 * p] = (4278190080 & r[p]) >> 24;
23630
23633
  return f;
23631
23634
  }, A;
23632
- }(), UV = function() {
23635
+ }(), vV = function() {
23633
23636
  function e(A) {
23634
23637
  this.font = A, this.subset = {}, this.unicodes = {}, this.next = 33;
23635
23638
  }
@@ -23699,12 +23702,12 @@ he.API.PDFObject = function() {
23699
23702
  return "" + t;
23700
23703
  }, A;
23701
23704
  }();
23702
- const yV = (e) => {
23705
+ const UV = (e) => {
23703
23706
  const A = (e == null ? void 0 : e.querySelectorAll("img")) || [], t = Array.from(A).map((n) => n.complete ? Promise.resolve() : new Promise((r) => {
23704
23707
  n.onload = n.onerror = r;
23705
23708
  }));
23706
23709
  return Promise.all(t);
23707
- }, FV = (e, A) => {
23710
+ }, yV = (e, A) => {
23708
23711
  const t = JSON.parse(JSON.stringify(e || {})), n = t.items || [], r = (i, a) => {
23709
23712
  if (Array.isArray(i)) {
23710
23713
  const l = typeof a == "string" ? a : " ";
@@ -23733,7 +23736,7 @@ const yV = (e) => {
23733
23736
  }
23734
23737
  }), t.items = n, t.printWidth = t.print_width || t.printWidth || 0, t.printHeight = t.print_height || t.printHeight || 0, t;
23735
23738
  };
23736
- async function MV(e, A, t = {}) {
23739
+ async function VV(e, A, t = {}) {
23737
23740
  const {
23738
23741
  page: n,
23739
23742
  scale: r,
@@ -23743,7 +23746,7 @@ async function MV(e, A, t = {}) {
23743
23746
  // 'pdf' | 'png'(png 支持透明背景)
23744
23747
  cacheInstance: l = !0
23745
23748
  // 可选:复用隐藏实例以提速(默认关闭)
23746
- } = t, u = FV(e, A), { default: f } = await Promise.resolve().then(() => iB), p = (n == null ? void 0 : n.widthMm) || u.printWidth || u.width || 100, m = (n == null ? void 0 : n.heightMm) || u.printHeight || u.height || 100, d = Math.max(1, Math.floor(gi(p))), U = Math.max(1, Math.floor(gi(m)));
23749
+ } = t, u = yV(e, A), { default: f } = await Promise.resolve().then(() => iB), p = (n == null ? void 0 : n.widthMm) || u.printWidth || u.width || 100, m = (n == null ? void 0 : n.heightMm) || u.printHeight || u.height || 100, d = Math.max(1, Math.floor(gi(p))), U = Math.max(1, Math.floor(gi(m)));
23747
23750
  let v, F;
23748
23751
  const B = "__td_renderer_singleton__";
23749
23752
  if (l && window[B]) {
@@ -23763,7 +23766,7 @@ async function MV(e, A, t = {}) {
23763
23766
  const w = v.querySelector("#design") || v;
23764
23767
  if (!w)
23765
23768
  throw new Error("未找到设计画布元素 #design");
23766
- await yV(w);
23769
+ await UV(w);
23767
23770
  const Q = Math.max(window.devicePixelRatio || 1, 2), T = Number(r) > 0 ? Number(r) : (i == null ? void 0 : i.scale) || Q * 2, I = Math.min(2.5, Math.max(1.5, T)), k = !!(i != null && i.transparent), L = await f(w, {
23768
23771
  scale: I,
23769
23772
  useCORS: !0,
@@ -23793,14 +23796,14 @@ async function MV(e, A, t = {}) {
23793
23796
  }
23794
23797
  }
23795
23798
  }
23796
- const CV = (e, A, t) => {
23799
+ const FV = (e, A, t) => {
23797
23800
  if (Array.isArray(e)) {
23798
23801
  const r = typeof A == "string" ? A : " ";
23799
23802
  return e.map((a) => t && t[a] != null ? String(t[a]) : "").filter((a) => a !== "").join(r);
23800
23803
  }
23801
23804
  const n = e;
23802
23805
  return n && t && t[n] != null ? String(t[n]) : "";
23803
- }, EV = (e) => {
23806
+ }, CV = (e) => {
23804
23807
  const A = e.querySelectorAll("*"), t = [
23805
23808
  "position",
23806
23809
  "left",
@@ -23891,7 +23894,7 @@ const CV = (e, A, t) => {
23891
23894
  const l = r.getPropertyValue(o);
23892
23895
  l && l !== "initial" && l !== "inherit" && l !== "normal" && l !== "auto" && l !== "0px" && (a += `${o}: ${l}; `);
23893
23896
  }), a && (e.style.cssText = n ? n + " " + a : a);
23894
- }, QV = (e) => {
23897
+ }, EV = (e) => {
23895
23898
  const A = e.querySelectorAll("*"), t = [
23896
23899
  "data-v-",
23897
23900
  "data-v-html",
@@ -23925,7 +23928,7 @@ const CV = (e, A, t) => {
23925
23928
  const l = o.getAttribute("style");
23926
23929
  l && (l.includes("javascript:") || l.includes("expression(")) && o.removeAttribute("style");
23927
23930
  });
23928
- }, bV = async (e) => {
23931
+ }, QV = async (e) => {
23929
23932
  const A = (e == null ? void 0 : e.querySelectorAll("img")) || [], t = (e == null ? void 0 : e.querySelectorAll(".qrcode-component")) || [], n = Array.from(A).map((i) => i.complete && i.naturalWidth > 0 ? Promise.resolve() : new Promise((a) => {
23930
23933
  const o = setTimeout(a, 3e3);
23931
23934
  i.onload = () => {
@@ -23954,13 +23957,13 @@ const CV = (e, A, t) => {
23954
23957
  }, e.onerror = () => {
23955
23958
  clearTimeout(t), A();
23956
23959
  };
23957
- }, NV = (e, A) => {
23960
+ }, bV = (e, A) => {
23958
23961
  const t = JSON.parse(JSON.stringify(e || {})), n = t.items || [];
23959
23962
  return n.forEach((r) => {
23960
23963
  const i = r.props || {}, a = i.FieldName, o = i.FieldConnector;
23961
23964
  if (!a)
23962
23965
  return;
23963
- const l = CV(a, o, A);
23966
+ const l = FV(a, o, A);
23964
23967
  switch (r.type) {
23965
23968
  case "text":
23966
23969
  i.Text = l;
@@ -23974,13 +23977,13 @@ const CV = (e, A, t) => {
23974
23977
  }
23975
23978
  }), t.items = n, t.printWidth = t.print_width || t.printWidth || 0, t.printHeight = t.print_height || t.printHeight || 0, t;
23976
23979
  };
23977
- async function LV(e, A = {}, t = {}) {
23980
+ async function MV(e, A = {}, t = {}) {
23978
23981
  const {
23979
23982
  scale: n = 1,
23980
23983
  width: r,
23981
23984
  height: i,
23982
23985
  cacheInstance: a = !0
23983
- } = t, o = A && Object.keys(A).length > 0 ? NV(e, A) : e, l = r || o.printWidth || o.width || 100, u = i || o.printHeight || o.height || 100, f = Math.max(1, Math.floor(gi(l) * n)), p = Math.max(1, Math.floor(gi(u) * n));
23986
+ } = t, o = A && Object.keys(A).length > 0 ? bV(e, A) : e, l = r || o.printWidth || o.width || 100, u = i || o.printHeight || o.height || 100, f = Math.max(1, Math.floor(gi(l) * n)), p = Math.max(1, Math.floor(gi(u) * n));
23984
23987
  let m, d;
23985
23988
  const U = "__td_html_renderer_singleton__";
23986
23989
  try {
@@ -24019,9 +24022,9 @@ async function LV(e, A = {}, t = {}) {
24019
24022
  const v = m.querySelector("#design");
24020
24023
  if (!v || v.children.length === 0)
24021
24024
  throw new Error("未找到设计画布元素 #design");
24022
- await bV(v), await new Promise((Q) => setTimeout(Q, 200));
24025
+ await QV(v), await new Promise((Q) => setTimeout(Q, 200));
24023
24026
  const F = v.cloneNode(!0);
24024
- if (QV(F), F.querySelectorAll(".resize-handle, .rotate-handle, .delete-btn, .component-selected, .component-current").forEach((Q) => {
24027
+ if (EV(F), F.querySelectorAll(".resize-handle, .rotate-handle, .delete-btn, .component-selected, .component-current").forEach((Q) => {
24025
24028
  Q.classList.contains("component-selected") || Q.classList.contains("component-current") ? Q.classList.remove("component-selected", "component-current") : Q.remove();
24026
24029
  }), F.querySelectorAll(".canvas-item").forEach((Q) => {
24027
24030
  const I = window.getComputedStyle(Q).transform;
@@ -24029,7 +24032,7 @@ async function LV(e, A = {}, t = {}) {
24029
24032
  const k = Q.style.cssText || "";
24030
24033
  Q.style.cssText = k + `; transform: ${I};`;
24031
24034
  }
24032
- }), EV(F), F.style.cssText = `
24035
+ }), CV(F), F.style.cssText = `
24033
24036
  width: ${f}px; height: ${p}px; position: relative;
24034
24037
  overflow: hidden; background: white; margin: 0; padding: 0;
24035
24038
  font-family: Arial, sans-serif; text-rendering: geometricPrecision;
@@ -24058,7 +24061,7 @@ async function LV(e, A = {}, t = {}) {
24058
24061
  function Cs(e, A = 96) {
24059
24062
  return Math.round(e * A / 25.4);
24060
24063
  }
24061
- async function SV(e, A = {}) {
24064
+ async function NV(e, A = {}) {
24062
24065
  if (!e || typeof e != "string")
24063
24066
  throw new Error("文本内容不能为空且必须是字符串");
24064
24067
  const n = { ...{
@@ -24127,19 +24130,19 @@ async function SV(e, A = {}) {
24127
24130
  throw new Error(`二维码生成失败: ${o.message}`);
24128
24131
  }
24129
24132
  }
24130
- async function kV(e, A = {}) {
24133
+ async function LV(e, A = {}) {
24131
24134
  if (!Array.isArray(e))
24132
24135
  throw new Error("文本参数必须是数组");
24133
24136
  if (e.length === 0)
24134
24137
  return [];
24135
- const t = e.map((n) => SV(n, A));
24138
+ const t = e.map((n) => NV(n, A));
24136
24139
  try {
24137
24140
  return await Promise.all(t);
24138
24141
  } catch (n) {
24139
24142
  throw new Error(`批量生成二维码失败: ${n.message}`);
24140
24143
  }
24141
24144
  }
24142
- async function HV(e, A = {}) {
24145
+ async function kV(e, A = {}) {
24143
24146
  if (!e || typeof e != "string")
24144
24147
  throw new Error("文本内容不能为空且必须是字符串");
24145
24148
  const n = { ...{
@@ -24189,7 +24192,7 @@ function bB(e, A, t) {
24189
24192
  }[t] || 1, o = Math.max(a, r);
24190
24193
  return o % 2 === 0 ? o + 1 : o;
24191
24194
  }
24192
- async function RV(e, A = {}) {
24195
+ async function SV(e, A = {}) {
24193
24196
  if (!e || typeof e != "string")
24194
24197
  throw new Error("文本内容不能为空且必须是字符串");
24195
24198
  const n = { ...{
@@ -24255,7 +24258,7 @@ async function RV(e, A = {}) {
24255
24258
  const p = new XMLSerializer().serializeToString(u);
24256
24259
  return n.returnDataUrl ? `data:image/svg+xml;base64,${btoa(decodeURIComponent(encodeURIComponent(p)))}` : p;
24257
24260
  } else {
24258
- const p = await xV(u, i, a, n.dpi), m = n.outputFormat === "jpeg" ? "image/jpeg" : "image/png", d = p.toDataURL(m, n.outputFormat === "jpeg" ? n.quality : void 0);
24261
+ const p = await RV(u, i, a, n.dpi), m = n.outputFormat === "jpeg" ? "image/jpeg" : "image/png", d = p.toDataURL(m, n.outputFormat === "jpeg" ? n.quality : void 0);
24259
24262
  if (n.returnDataUrl)
24260
24263
  return d;
24261
24264
  {
@@ -24267,7 +24270,7 @@ async function RV(e, A = {}) {
24267
24270
  throw new Error(`条形码生成失败: ${u.message}`);
24268
24271
  }
24269
24272
  }
24270
- async function xV(e, A, t, n = 300) {
24273
+ async function RV(e, A, t, n = 300) {
24271
24274
  return new Promise((r, i) => {
24272
24275
  const a = Math.max(2, n / 96), o = document.createElement("canvas"), l = o.getContext("2d");
24273
24276
  o.width = A * a, o.height = t * a, o.style.width = A + "px", o.style.height = t + "px", l.imageSmoothingEnabled = !0, l.imageSmoothingQuality = "high", l.translate(0.5, 0.5), l.textRenderingOptimization = "optimizeQuality", l.textBaseline = "middle";
@@ -24283,19 +24286,19 @@ async function xV(e, A, t, n = 300) {
24283
24286
  }, u.src = m;
24284
24287
  });
24285
24288
  }
24286
- async function OV(e, A = {}) {
24289
+ async function HV(e, A = {}) {
24287
24290
  if (!Array.isArray(e))
24288
24291
  throw new Error("文本参数必须是数组");
24289
24292
  if (e.length === 0)
24290
24293
  return [];
24291
- const t = e.map((n) => RV(n, A));
24294
+ const t = e.map((n) => SV(n, A));
24292
24295
  try {
24293
24296
  return await Promise.all(t);
24294
24297
  } catch (n) {
24295
24298
  throw new Error(`批量生成条形码失败: ${n.message}`);
24296
24299
  }
24297
24300
  }
24298
- function DV(e, A = {}) {
24301
+ function OV(e, A = {}) {
24299
24302
  if (!e || typeof e != "string")
24300
24303
  throw new Error("文本内容不能为空且必须是字符串");
24301
24304
  const n = { ...{
@@ -24345,17 +24348,17 @@ ys.install = (e) => {
24345
24348
  e.component(ys.name || "TemplateDesigner", ys);
24346
24349
  };
24347
24350
  export {
24348
- VV as R,
24351
+ IV as R,
24349
24352
  ys as T,
24350
24353
  Ze as _,
24351
- LV as a,
24352
- SV as b,
24353
- IV as c,
24354
- kV as d,
24355
- HV as e,
24356
- RV as f,
24354
+ MV as a,
24355
+ NV as b,
24356
+ TV as c,
24357
+ LV as d,
24358
+ kV as e,
24359
+ SV as f,
24357
24360
  Av as g,
24358
- OV as h,
24359
- DV as i,
24360
- MV as r
24361
+ HV as h,
24362
+ OV as i,
24363
+ VV as r
24361
24364
  };