@mlightcad/cad-viewer 1.1.10 → 1.1.12

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.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import "./index.css";
2
- import { AcEdCommandStack as W, AcApDocManager as T, eventBus as Y, AcApSettingManager as K, AcApConvertToSvgCmd as Ae, AcApQNewCmd as Fe, AcApOpenCmd as Ie, registerWorkers as Re, AcEdCommand as re } from "@mlightcad/cad-simple-viewer";
2
+ import { AcEdCommandStack as q, AcApDocManager as E, eventBus as X, AcApSettingManager as Q, AcApConvertToSvgCmd as He, AcApQNewCmd as Ge, AcApOpenCmd as We, registerWorkers as Ue, AcEdCommand as ce } from "@mlightcad/cad-simple-viewer";
3
3
  import "element-plus/dist/index.css";
4
- import { reactive as U, computed as k, defineComponent as L, onMounted as H, resolveComponent as M, createBlock as C, openBlock as u, unref as g, withCtx as p, renderSlot as ie, createVNode as v, createTextVNode as F, toDisplayString as D, createElementVNode as d, ref as x, onUnmounted as te, watch as E, createElementBlock as y, Fragment as j, renderList as X, resolveDynamicComponent as ge, mergeProps as Pe, mergeModels as J, useCssVars as Se, useModel as ve, createCommentVNode as q, normalizeStyle as pe, normalizeClass as Ce, pushScopeId as Le, popScopeId as ze, onBeforeUnmount as De, withKeys as Ne, isRef as Oe, markRaw as he } from "vue";
5
- import { AcDbDatabaseConverterManager as He, acdbHostApplicationServices as Be, AcCmPerformanceCollector as Ge } from "@mlightcad/data-model";
6
- import { useDark as We, useToggle as qe, useFullscreen as Ue } from "@vueuse/core";
7
- import je from "element-plus/es/locale/lang/en";
8
- import Ye from "element-plus/es/locale/lang/zh-cn";
9
- import { useI18n as P, createI18n as Ke } from "vue-i18n";
10
- import { ElDialog as Xe, ElButton as _e, ElTable as Qe, ElAutocomplete as Ze, ElProgress as Je, ElLoading as we, ElMessage as Q } from "element-plus";
11
- import { ElIcon as se, ElDropdown as et, ElDropdownMenu as tt, ElDropdownItem as nt, ElButtonGroup as ot, ElTooltip as lt, ElButton as at } from "element-plus/es";
4
+ import { reactive as Y, computed as C, defineComponent as S, onMounted as U, resolveComponent as M, createBlock as L, openBlock as u, unref as d, withCtx as f, renderSlot as re, createVNode as m, createTextVNode as N, toDisplayString as T, createElementVNode as c, ref as k, onUnmounted as te, watch as A, createElementBlock as _, Fragment as j, renderList as K, resolveDynamicComponent as ue, mergeProps as qe, mergeModels as J, useCssVars as $e, useModel as _e, createCommentVNode as H, normalizeStyle as ge, normalizeClass as we, pushScopeId as Ee, popScopeId as Ae, onBeforeUnmount as Ve, withKeys as je, isRef as Ye, markRaw as ke } from "vue";
5
+ import { AcDbDatabaseConverterManager as Ke, acdbHostApplicationServices as Fe, AcCmPerformanceCollector as Xe } from "@mlightcad/data-model";
6
+ import { useDark as Qe, useToggle as Ze, useFullscreen as Je } from "@vueuse/core";
7
+ import et from "element-plus/es/locale/lang/en";
8
+ import tt from "element-plus/es/locale/lang/zh-cn";
9
+ import { useI18n as P, createI18n as nt } from "vue-i18n";
10
+ import { ElDialog as ot, ElButton as Me, ElTable as lt, ElAutocomplete as at, ElProgress as it, ElLoading as Ce, ElMessage as oe } from "element-plus";
11
+ import { ElIcon as de, ElDropdown as st, ElDropdownMenu as rt, ElDropdownItem as ct, ElButtonGroup as ut, ElTooltip as dt, ElButton as mt } from "element-plus/es";
12
12
  import "element-plus/es/components/base/style/css";
13
13
  import "element-plus/es/components/icon/style/css";
14
14
  import "element-plus/es/components/dropdown/style/css";
@@ -17,26 +17,26 @@ import "element-plus/es/components/dropdown-item/style/css";
17
17
  import "element-plus/es/components/tooltip/style/css";
18
18
  import "element-plus/es/components/button/style/css";
19
19
  import "element-plus/es/components/button-group/style/css";
20
- const ne = U([]);
21
- function it(t) {
22
- ne.find((n) => n.name === t.name) || ne.push({ ...t, visible: !1 });
20
+ const le = Y([]);
21
+ function pt(t) {
22
+ le.find((n) => n.name === t.name) || le.push({ ...t, visible: !1 });
23
23
  }
24
- function rt(t, e) {
25
- const n = ne.find((i) => i.name === t);
24
+ function ft(t, e) {
25
+ const n = le.find((i) => i.name === t);
26
26
  n && (n.visible = e);
27
27
  }
28
- function st(t) {
29
- return ne.find((e) => e.name === t);
28
+ function vt(t) {
29
+ return le.find((e) => e.name === t);
30
30
  }
31
- function oe() {
31
+ function ae() {
32
32
  return {
33
- dialogs: k(() => ne),
34
- registerDialog: it,
35
- toggleDialog: rt,
36
- getDialogByName: st
33
+ dialogs: C(() => le),
34
+ registerDialog: pt,
35
+ toggleDialog: ft,
36
+ getDialogByName: vt
37
37
  };
38
38
  }
39
- const ct = /* @__PURE__ */ L({
39
+ const gt = /* @__PURE__ */ S({
40
40
  __name: "MlBaseDialog",
41
41
  props: {
42
42
  title: {
@@ -62,64 +62,64 @@ const ct = /* @__PURE__ */ L({
62
62
  },
63
63
  emits: ["update:modelValue", "ok", "cancel"],
64
64
  setup(t, { emit: e }) {
65
- const { t: n } = P(), i = t, l = e, { registerDialog: o } = oe();
65
+ const { t: n } = P(), i = t, o = e, { registerDialog: l } = ae();
66
66
  function a() {
67
- l("ok"), l("update:modelValue", !1);
67
+ o("ok"), o("update:modelValue", !1);
68
68
  }
69
- function s() {
70
- l("cancel"), l("update:modelValue", !1);
69
+ function r() {
70
+ o("cancel"), o("update:modelValue", !1);
71
71
  }
72
- return H(() => {
73
- o({
72
+ return U(() => {
73
+ l({
74
74
  name: i.name,
75
75
  component: "BaseDialog",
76
76
  props: i.props
77
77
  });
78
- }), (r, c) => {
79
- const w = M("el-divider");
80
- return u(), C(g(Xe), {
78
+ }), (s, p) => {
79
+ const g = M("el-divider");
80
+ return u(), L(d(ot), {
81
81
  "model-value": t.modelValue,
82
82
  width: t.width,
83
83
  close: "handleCancel",
84
84
  class: "ml-dialog"
85
85
  }, {
86
- header: p(() => [
87
- d("div", null, D(t.title), 1),
88
- v(w, { class: "ml-dialog-header-bottom-line" })
86
+ header: f(() => [
87
+ c("div", null, T(t.title), 1),
88
+ m(g, { class: "ml-dialog-header-bottom-line" })
89
89
  ]),
90
- footer: p(() => [
91
- v(w, { class: "ml-dialog-footer-top-line" }),
92
- v(g(_e), { onClick: s }, {
93
- default: p(() => [
94
- F(D(g(n)("dialog.baseDialog.cancel")), 1)
90
+ footer: f(() => [
91
+ m(g, { class: "ml-dialog-footer-top-line" }),
92
+ m(d(Me), { onClick: r }, {
93
+ default: f(() => [
94
+ N(T(d(n)("dialog.baseDialog.cancel")), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }),
98
- v(g(_e), {
98
+ m(d(Me), {
99
99
  type: "primary",
100
100
  onClick: a
101
101
  }, {
102
- default: p(() => [
103
- F(D(g(n)("dialog.baseDialog.ok")), 1)
102
+ default: f(() => [
103
+ N(T(d(n)("dialog.baseDialog.ok")), 1)
104
104
  ]),
105
105
  _: 1
106
106
  })
107
107
  ]),
108
- default: p(() => [
109
- ie(r.$slots, "default", {}, void 0, !0)
108
+ default: f(() => [
109
+ re(s.$slots, "default", {}, void 0, !0)
110
110
  ]),
111
111
  _: 3
112
112
  }, 8, ["model-value", "width"]);
113
113
  };
114
114
  }
115
- }), G = (t, e) => {
115
+ }), W = (t, e) => {
116
116
  const n = t.__vccOpts || t;
117
- for (const [i, l] of e)
118
- n[i] = l;
117
+ for (const [i, o] of e)
118
+ n[i] = o;
119
119
  return n;
120
- }, Te = /* @__PURE__ */ G(ct, [["__scopeId", "data-v-8df470d5"]]);
121
- function ut() {
122
- const t = U([]), e = W.instance.iterator();
120
+ }, Ne = /* @__PURE__ */ W(gt, [["__scopeId", "data-v-8df470d5"]]);
121
+ function ht() {
122
+ const t = Y([]), e = q.instance.iterator();
123
123
  for (const n of e)
124
124
  t.push({
125
125
  commandName: n.command.localName,
@@ -129,40 +129,40 @@ function ut() {
129
129
  (n, i) => n.commandName.toLowerCase().localeCompare(i.commandName.toLowerCase())
130
130
  ), t;
131
131
  }
132
- function ye(t, e = "en-US") {
132
+ function Se(t, e = "en-US") {
133
133
  const n = Math.abs(t);
134
134
  if (n !== 0 && (n < 1e-3 || n >= 1e6)) {
135
- const [i, l] = t.toExponential(3).split("e");
135
+ const [i, o] = t.toExponential(3).split("e");
136
136
  return `${new Intl.NumberFormat(e, {
137
137
  maximumFractionDigits: 3
138
- }).format(Number(i))}e${l}`;
138
+ }).format(Number(i))}e${o}`;
139
139
  } else
140
140
  return new Intl.NumberFormat(e, {
141
141
  maximumFractionDigits: 6
142
142
  }).format(t);
143
143
  }
144
- function dt(t) {
145
- const e = x(0), n = x(0);
146
- function i(o) {
147
- e.value = o.x, n.value = o.y;
148
- }
149
- H(() => t.events.mouseMove.addEventListener(i)), te(() => t.events.mouseMove.removeEventListener(i));
150
- const l = k(() => `${ye(e.value)}, ${ye(n.value)}`);
151
- return { x: e, y: n, text: l };
144
+ function _t(t) {
145
+ const e = k(0), n = k(0);
146
+ function i(l) {
147
+ e.value = l.x, n.value = l.y;
148
+ }
149
+ U(() => t.events.mouseMove.addEventListener(i)), te(() => t.events.mouseMove.removeEventListener(i));
150
+ const o = C(() => `${Se(e.value)}, ${Se(n.value)}`);
151
+ return { x: e, y: n, text: o };
152
152
  }
153
- const ae = We(), mt = qe(ae);
154
- function pt() {
155
- const t = x(/* @__PURE__ */ new Set()), e = He.instance;
153
+ const se = Qe(), wt = Ze(se);
154
+ function yt() {
155
+ const t = k(/* @__PURE__ */ new Set()), e = Ke.instance;
156
156
  for (const n of e.fileTypes)
157
157
  t.value.add(n);
158
158
  return e.events.registered.addEventListener((n) => {
159
159
  t.value.add(n.fileType);
160
160
  }), t;
161
161
  }
162
- function gt(t) {
163
- const e = U([]), n = t.curDocument, i = (l) => {
164
- const o = l.tables.layerTable.newIterator();
165
- for (const a of o)
162
+ function bt(t) {
163
+ const e = Y([]), n = t.curDocument, i = (o) => {
164
+ const l = o.tables.layerTable.newIterator();
165
+ for (const a of l)
166
166
  e.push({
167
167
  name: a.name,
168
168
  color: a.color.cssColor,
@@ -176,44 +176,44 @@ function gt(t) {
176
176
  lineWeight: a.lineWeight
177
177
  });
178
178
  };
179
- return i(n.database), n.database.events.layerModified.addEventListener((l) => {
180
- let o = e.find(
181
- (a) => a.name == l.layer.name
179
+ return i(n.database), n.database.events.layerModified.addEventListener((o) => {
180
+ let l = e.find(
181
+ (a) => a.name == o.layer.name
182
182
  );
183
- if (o) {
184
- o = o;
185
- const a = l.changes;
186
- a.color != null && (o.color = a.color.cssColor), a.isLocoked != null && (o.isLocked = a.isLocked), a.isHidden != null && (o.isHidden = a.isHidden), a.isInUse != null && (o.isInUse = a.isInUse), a.isOff != null && (o.isOn = !a.isOff), a.isPlottable != null && (o.isPlottable = a.isPlottable), a.transparency != null && (o.transparency = a.transparency), a.linetype != null && (o.linetype = a.linetype), a.lineWeight != null && (o.lineWeight = a.lineWeight);
183
+ if (l) {
184
+ l = l;
185
+ const a = o.changes;
186
+ a.color != null && (l.color = a.color.cssColor), a.isLocoked != null && (l.isLocked = a.isLocked), a.isHidden != null && (l.isHidden = a.isHidden), a.isInUse != null && (l.isInUse = a.isInUse), a.isOff != null && (l.isOn = !a.isOff), a.isPlottable != null && (l.isPlottable = a.isPlottable), a.transparency != null && (l.transparency = a.transparency), a.linetype != null && (l.linetype = a.linetype), a.lineWeight != null && (l.lineWeight = a.lineWeight);
187
187
  }
188
- }), t.events.documentActivated.addEventListener((l) => {
189
- e.length = 0, i(l.doc.database);
188
+ }), t.events.documentActivated.addEventListener((o) => {
189
+ e.length = 0, i(o.doc.database);
190
190
  }), e;
191
191
  }
192
- function vt(t) {
193
- const e = U([]), n = t.curDocument, i = (l) => {
194
- const o = l.dictionaries.layouts.newIterator();
192
+ function xt(t) {
193
+ const e = Y([]), n = t.curDocument, i = (o) => {
194
+ const l = o.dictionaries.layouts.newIterator();
195
195
  e.length = 0;
196
- for (const a of o)
196
+ for (const a of l)
197
197
  e.push({
198
198
  name: a.layoutName,
199
199
  tabOrder: a.tabOrder,
200
200
  blockTableRecordId: a.blockTableRecordId,
201
- isActive: a.blockTableRecordId == l.currentSpaceId
201
+ isActive: a.blockTableRecordId == o.currentSpaceId
202
202
  });
203
- e.sort((a, s) => a.tabOrder - s.tabOrder);
203
+ e.sort((a, r) => a.tabOrder - r.tabOrder);
204
204
  };
205
- return i(n.database), t.events.documentActivated.addEventListener((l) => {
206
- e.length = 0, i(l.doc.database);
207
- }), Be().layoutManager.events.layoutSwitched.addEventListener(
208
- (l) => {
209
- const o = l.layout;
205
+ return i(n.database), t.events.documentActivated.addEventListener((o) => {
206
+ e.length = 0, i(o.doc.database);
207
+ }), Fe().layoutManager.events.layoutSwitched.addEventListener(
208
+ (o) => {
209
+ const l = o.layout;
210
210
  e.forEach((a) => {
211
- a.name == o.layoutName ? a.isActive = !0 : a.isActive = !1;
211
+ a.name == l.layoutName ? a.isActive = !0 : a.isActive = !1;
212
212
  });
213
213
  }
214
214
  ), e;
215
215
  }
216
- const ft = {
216
+ const kt = {
217
217
  ACAD: {
218
218
  csvg: "Converts current drawing to SVG",
219
219
  la: "Layer properties manager",
@@ -228,7 +228,7 @@ const ft = {
228
228
  zoomw: "Zooms to display an area specified by a rectangular window"
229
229
  },
230
230
  USER: {}
231
- }, ht = {
231
+ }, Mt = {
232
232
  baseDialog: {
233
233
  ok: "OK",
234
234
  cancel: "Cancel"
@@ -247,7 +247,7 @@ const ft = {
247
247
  title: "Point Style",
248
248
  pointSize: "Point Size:"
249
249
  }
250
- }, _t = {
250
+ }, Ct = {
251
251
  entityName: {
252
252
  "3PointAngularDimension": "Three Point Angular Dimension",
253
253
  AlignedDimension: "Aligned Dimension",
@@ -421,7 +421,7 @@ const ft = {
421
421
  yellow: "Yellow",
422
422
  yellowgreen: "Yellow Green"
423
423
  }
424
- }, wt = {
424
+ }, St = {
425
425
  mainMenu: {
426
426
  new: "New Drawing",
427
427
  open: "Open Drawing",
@@ -489,6 +489,9 @@ const ft = {
489
489
  },
490
490
  warning: {
491
491
  font: "The following fonts are not found!"
492
+ },
493
+ notification: {
494
+ tooltip: "Show notifications"
492
495
  }
493
496
  },
494
497
  toolPalette: {
@@ -509,13 +512,33 @@ const ft = {
509
512
  message: {
510
513
  loadingFonts: "Loading fonts ...",
511
514
  loadingDwgConverter: "Loading DWG converter...",
512
- fontNotLoaded: 'Font "{fontName}" can not be loaded from "{url}"!',
515
+ fontsNotFound: 'Fonts "{fonts}" can not be found in font repository!',
516
+ fontsNotLoaded: 'Fonts "{fonts}" can not be loaded!',
513
517
  failedToGetAvaiableFonts: 'Failed to get avaiable fonts from "{url}"!',
514
518
  failedToOpenFile: 'Failed to open file "{fileName}"!',
515
519
  fetchingDrawingFile: "Fetching file ...",
516
520
  unknownEntities: "This drawing contains {count} unknown or unsupported entities! Those entities will not be shown."
521
+ },
522
+ notification: {
523
+ center: {
524
+ title: "Notifications",
525
+ clearAll: "Clear All",
526
+ noNotifications: "No notifications"
527
+ },
528
+ time: {
529
+ justNow: "Just now",
530
+ minutesAgo: "{count} minute ago | {count} minutes ago",
531
+ hoursAgo: "{count} hour ago | {count} hours ago",
532
+ daysAgo: "{count} day ago | {count} days ago"
533
+ },
534
+ title: {
535
+ failedToOpenFile: "Failed to Open File",
536
+ fontNotFound: "Font Not Found",
537
+ fontNotLoaded: "Font Not Loaded",
538
+ parsingWarning: "Issues on Parsing Drawing"
539
+ }
517
540
  }
518
- }, yt = {
541
+ }, Lt = {
519
542
  ACAD: {
520
543
  csvg: "转换当前图纸为SVG格式",
521
544
  la: "图层属性管理器",
@@ -530,7 +553,7 @@ const ft = {
530
553
  zoomw: "缩放以显示矩形窗口内的对象"
531
554
  },
532
555
  USER: {}
533
- }, bt = {
556
+ }, zt = {
534
557
  baseDialog: {
535
558
  ok: "确定",
536
559
  cancel: "取消"
@@ -549,7 +572,7 @@ const ft = {
549
572
  title: "点样式",
550
573
  pointSize: "点大小:"
551
574
  }
552
- }, xt = {
575
+ }, Bt = {
553
576
  entityName: {
554
577
  "3PointAngularDimension": "三点角度标注",
555
578
  AlignedDimension: "线性标注",
@@ -723,7 +746,7 @@ const ft = {
723
746
  yellow: "黄色",
724
747
  yellowgreen: "黄绿色"
725
748
  }
726
- }, kt = {
749
+ }, Dt = {
727
750
  mainMenu: {
728
751
  new: "新建图纸",
729
752
  open: "打开图纸",
@@ -791,6 +814,9 @@ const ft = {
791
814
  },
792
815
  warning: {
793
816
  font: "没有找到如下字体:"
817
+ },
818
+ notification: {
819
+ tooltip: "显示通知"
794
820
  }
795
821
  },
796
822
  toolPalette: {
@@ -811,184 +837,298 @@ const ft = {
811
837
  message: {
812
838
  loadingFonts: "正在加载字体...",
813
839
  loadingDwgConverter: "正在加载DWG转换器...",
814
- fontNotLoaded: '无法从"{url}"加载字体"{fontName}"!',
840
+ fontsNotFound: "在字体库中找不到字体:{fonts}",
841
+ fontsNotLoaded: "无法加载字体:{fonts}。",
815
842
  failedToGetAvaiableFonts: '无法从"{url}"获取可用的字体信息!',
816
843
  failedToOpenFile: '无法打开文件"{fileName}"!',
817
844
  fetchingDrawingFile: "正在加载图纸文件...",
818
845
  unknownEntities: "这张图纸中包含了{count}个未知或不支持的实体,这些实体将无法显示!"
846
+ },
847
+ notification: {
848
+ center: {
849
+ title: "通知",
850
+ clearAll: "清除全部",
851
+ noNotifications: "暂无通知"
852
+ },
853
+ time: {
854
+ justNow: "刚刚",
855
+ minutesAgo: "{count} 分钟前",
856
+ hoursAgo: "{count} 小时前",
857
+ daysAgo: "{count} 天前"
858
+ },
859
+ title: {
860
+ failedToOpenFile: "无法打开文件",
861
+ fontNotFound: "找不到字体",
862
+ fontNotLoaded: "无法加载字体",
863
+ parsingWarning: "解析图纸问题"
864
+ }
819
865
  }
820
- }, Mt = () => {
866
+ }, Tt = () => {
821
867
  const t = localStorage.getItem("preferred_lang");
822
868
  return t === "en" || t === "zh" ? t : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
823
- }, St = {
869
+ }, $t = {
824
870
  en: {
825
- main: wt,
826
- command: ft,
827
- dialog: ht,
828
- entity: _t
871
+ main: St,
872
+ command: kt,
873
+ dialog: Mt,
874
+ entity: Ct
829
875
  },
830
876
  zh: {
831
- main: kt,
832
- command: yt,
833
- dialog: bt,
834
- entity: xt
877
+ main: Dt,
878
+ command: Lt,
879
+ dialog: zt,
880
+ entity: Bt
835
881
  }
836
- }, ee = Ke({
882
+ }, ee = nt({
837
883
  legacy: !1,
838
- messages: St,
839
- locale: Mt(),
884
+ messages: $t,
885
+ locale: Tt(),
840
886
  fallbackLocale: "en",
841
887
  allowComposition: !0,
842
888
  globalInjection: !0
843
- }), fe = (t, e) => {
889
+ }), ye = (t, e) => {
844
890
  const n = ee.global.t, i = `command.${t}.${e}`;
845
891
  return n(i, "");
846
- }, ca = (t) => fe(W.SYSTEMT_COMMAND_GROUP_NAME, t), ua = (t) => fe(W.DEFAUT_COMMAND_GROUP_NAME, t), Ct = (t) => {
892
+ }, Ka = (t) => ye(q.SYSTEMT_COMMAND_GROUP_NAME, t), Xa = (t) => ye(q.DEFAUT_COMMAND_GROUP_NAME, t), Et = (t) => {
847
893
  const e = ee.global.t, n = "entity.entityName." + t.type;
848
894
  return e(n, t.type, { missingWarn: !1 });
849
- }, Lt = (t) => {
895
+ }, At = (t) => {
850
896
  if (t == "ByLayer" || t == "ByBlock")
851
897
  return t;
852
898
  {
853
899
  const e = ee.global.t, n = "entity.color." + t;
854
900
  return e(n, t, { missingWarn: !1 });
855
901
  }
856
- }, zt = (t) => {
902
+ }, Vt = (t) => {
857
903
  const e = ee.global.t, n = "main.progress." + t.replace(/_/g, "").toLowerCase();
858
904
  return e(n, t);
859
- }, me = "preferred_lang";
860
- function Ee(t) {
861
- const { locale: e } = P(), i = x((() => {
862
- const r = localStorage.getItem(me);
863
- return r === "en" || r === "zh" ? r : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
864
- })()), l = k(() => i.value), o = (r) => {
865
- ee.global.locale.value = r, i.value = r, (!t || t === "default") && localStorage.setItem(me, r);
905
+ }, ve = "preferred_lang";
906
+ function Ie(t) {
907
+ const { locale: e } = P(), i = k((() => {
908
+ const s = localStorage.getItem(ve);
909
+ return s === "en" || s === "zh" ? s : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
910
+ })()), o = C(() => i.value), l = (s) => {
911
+ ee.global.locale.value = s, i.value = s, (!t || t === "default") && localStorage.setItem(ve, s);
866
912
  }, a = () => {
867
- localStorage.removeItem(me);
913
+ localStorage.removeItem(ve);
868
914
  };
869
- t && E(
915
+ t && A(
870
916
  () => t,
871
- (r) => {
872
- r && r !== "default" && (i.value = r, ee.global.locale.value = r, a());
917
+ (s) => {
918
+ s && s !== "default" && (i.value = s, ee.global.locale.value = s, a());
873
919
  },
874
920
  { immediate: !0 }
875
- ), E(
921
+ ), A(
876
922
  () => e.value,
877
- (r) => {
923
+ (s) => {
878
924
  if (!t || t === "default") {
879
- const c = r === "zh" ? "zh" : "en";
880
- i.value = c;
925
+ const p = s === "zh" ? "zh" : "en";
926
+ i.value = p;
881
927
  }
882
928
  }
883
929
  );
884
- const s = k(() => l.value === "en" ? je : Ye);
930
+ const r = C(() => o.value === "en" ? et : tt);
885
931
  return {
886
932
  currentLocale: i,
887
- effectiveLocale: l,
888
- elementPlusLocale: s,
889
- setLocale: o,
933
+ effectiveLocale: o,
934
+ elementPlusLocale: r,
935
+ setLocale: l,
890
936
  clearStoragePreference: a,
891
- isControlled: k(() => !!(t && t !== "default"))
937
+ isControlled: C(() => !!(t && t !== "default"))
892
938
  };
893
939
  }
894
- function $e() {
895
- const t = U(/* @__PURE__ */ new Map()), e = U(/* @__PURE__ */ new Map()), n = () => {
896
- const i = T.instance.curView.missedData, l = K.instance.fontMapping;
897
- t.clear(), Object.keys(i.fonts).forEach((o) => {
898
- const a = l[o];
899
- t.set(o, a || "");
900
- }), e.clear(), i.images.forEach((o, a) => {
901
- const s = e.get(o);
902
- s ? s.ids.add(a) : e.set(o, {
903
- fileName: o,
940
+ function Re() {
941
+ const t = Y(/* @__PURE__ */ new Map()), e = Y(/* @__PURE__ */ new Map()), n = () => {
942
+ const i = E.instance.curView.missedData, o = Q.instance.fontMapping;
943
+ t.clear(), Object.keys(i.fonts).forEach((l) => {
944
+ const a = o[l];
945
+ t.set(l, a || "");
946
+ }), e.clear(), i.images.forEach((l, a) => {
947
+ const r = e.get(l);
948
+ r ? r.ids.add(a) : e.set(l, {
949
+ fileName: l,
904
950
  ids: /* @__PURE__ */ new Set([a])
905
951
  });
906
952
  });
907
953
  };
908
- return T.instance.events.documentActivated.addEventListener(() => {
954
+ return E.instance.events.documentActivated.addEventListener(() => {
909
955
  n();
910
- }), Y.on("font-not-found", (i) => {
956
+ }), X.on("font-not-found", (i) => {
911
957
  n();
912
958
  }), {
913
959
  fonts: t,
914
960
  images: e
915
961
  };
916
962
  }
917
- function ce() {
918
- const t = U(
919
- K.instance.settings
963
+ class Ft {
964
+ constructor() {
965
+ this.notifications = k([]), this.nextId = 1;
966
+ }
967
+ get allNotifications() {
968
+ return C(() => this.notifications.value);
969
+ }
970
+ get unreadCount() {
971
+ return C(() => this.notifications.value.length);
972
+ }
973
+ get hasNotifications() {
974
+ return C(() => this.notifications.value.length > 0);
975
+ }
976
+ add(e) {
977
+ const n = {
978
+ ...e,
979
+ id: `notification-${this.nextId++}`,
980
+ timestamp: /* @__PURE__ */ new Date()
981
+ };
982
+ return this.notifications.value.unshift(n), n.id;
983
+ }
984
+ remove(e) {
985
+ const n = this.notifications.value.findIndex((i) => i.id === e);
986
+ n > -1 && this.notifications.value.splice(n, 1);
987
+ }
988
+ clear() {
989
+ this.notifications.value = [];
990
+ }
991
+ clearAll() {
992
+ this.clear();
993
+ }
994
+ // Convenience methods for different notification types
995
+ info(e, n, i) {
996
+ return this.add({
997
+ type: "info",
998
+ title: e,
999
+ message: n,
1000
+ ...i
1001
+ });
1002
+ }
1003
+ warning(e, n, i) {
1004
+ return this.add({
1005
+ type: "warning",
1006
+ title: e,
1007
+ message: n,
1008
+ ...i
1009
+ });
1010
+ }
1011
+ error(e, n, i) {
1012
+ return this.add({
1013
+ type: "error",
1014
+ title: e,
1015
+ message: n,
1016
+ persistent: !0,
1017
+ // Errors are persistent by default
1018
+ ...i
1019
+ });
1020
+ }
1021
+ success(e, n, i) {
1022
+ return this.add({
1023
+ type: "success",
1024
+ title: e,
1025
+ message: n,
1026
+ ...i
1027
+ });
1028
+ }
1029
+ }
1030
+ const I = new Ft();
1031
+ function me() {
1032
+ return {
1033
+ /** Reactive list of all notifications */
1034
+ notifications: I.allNotifications,
1035
+ /** Reactive count of unread notifications */
1036
+ unreadCount: I.unreadCount,
1037
+ /** Reactive boolean indicating if there are any notifications */
1038
+ hasNotifications: I.hasNotifications,
1039
+ /** Add a custom notification */
1040
+ add: I.add.bind(I),
1041
+ /** Remove a notification by ID */
1042
+ remove: I.remove.bind(I),
1043
+ /** Clear all notifications */
1044
+ clear: I.clear.bind(I),
1045
+ /** Clear all notifications (alias for clear) */
1046
+ clearAll: I.clearAll.bind(I),
1047
+ /** Add an info notification */
1048
+ info: I.info.bind(I),
1049
+ /** Add a warning notification */
1050
+ warning: I.warning.bind(I),
1051
+ /** Add an error notification */
1052
+ error: I.error.bind(I),
1053
+ /** Add a success notification */
1054
+ success: I.success.bind(I)
1055
+ };
1056
+ }
1057
+ function pe() {
1058
+ const t = Y(
1059
+ Q.instance.settings
920
1060
  );
921
- return K.instance.events.modified.addEventListener((e) => {
1061
+ return Q.instance.events.modified.addEventListener((e) => {
922
1062
  t[e.key] = e.value;
923
1063
  }), t;
924
1064
  }
925
- function Dt(t) {
926
- const e = U({}), n = t.curDocument, i = (l) => {
927
- e.pdmode = l.pdmode, e.pdmode = l.pdsize;
1065
+ function Nt(t) {
1066
+ const e = Y({}), n = t.curDocument, i = (o) => {
1067
+ e.pdmode = o.pdmode, e.pdmode = o.pdsize;
928
1068
  };
929
- return i(n.database), n.database.events.headerSysVarChanged.addEventListener((l) => {
930
- e[l.name] = l.database[l.name];
931
- }), t.events.documentActivated.addEventListener((l) => {
932
- i(l.doc.database);
1069
+ return i(n.database), n.database.events.headerSysVarChanged.addEventListener((o) => {
1070
+ e[o.name] = o.database[o.name];
1071
+ }), t.events.documentActivated.addEventListener((o) => {
1072
+ i(o.doc.database);
933
1073
  }), e;
934
1074
  }
935
- const Bt = /* @__PURE__ */ L({
1075
+ const It = /* @__PURE__ */ S({
936
1076
  __name: "MlDialogManager",
937
1077
  setup(t, { expose: e }) {
938
- const { dialogs: n, toggleDialog: i, registerDialog: l } = oe();
1078
+ const { dialogs: n, toggleDialog: i, registerDialog: o } = ae();
939
1079
  return e({
940
1080
  toggleDialog: i,
941
- registerDialog: l
942
- }), (o, a) => (u(!0), y(j, null, X(g(n), (s) => (u(), y("div", {
943
- key: s.name
1081
+ registerDialog: o
1082
+ }), (l, a) => (u(!0), _(j, null, K(d(n), (r) => (u(), _("div", {
1083
+ key: r.name
944
1084
  }, [
945
- (u(), C(ge(s.component), Pe({
946
- modelValue: s.visible,
947
- "onUpdate:modelValue": (r) => s.visible = r
948
- }, { ref_for: !0 }, s.props), null, 16, ["modelValue", "onUpdate:modelValue"]))
1085
+ (u(), L(ue(r.component), qe({
1086
+ modelValue: r.visible,
1087
+ "onUpdate:modelValue": (s) => r.visible = s
1088
+ }, { ref_for: !0 }, r.props), null, 16, ["modelValue", "onUpdate:modelValue"]))
949
1089
  ]))), 128));
950
1090
  }
951
- }), Tt = ["accept"], Et = /* @__PURE__ */ L({
1091
+ }), Rt = ["accept"], Ot = /* @__PURE__ */ S({
952
1092
  __name: "MlFileReader",
953
1093
  emits: ["file-read"],
954
1094
  setup(t, { emit: e }) {
955
- const n = e, i = x(null), l = pt(), o = k(() => {
956
- const s = Array.from(l.value);
957
- let r = "";
958
- for (let c = 0, w = s.length; c < w; ++c)
959
- c == w - 1 ? r += `.${s[c]}` : r += `.${s[c]}, `;
960
- return r;
1095
+ const n = e, i = k(null), o = yt(), l = C(() => {
1096
+ const r = Array.from(o.value);
1097
+ let s = "";
1098
+ for (let p = 0, g = r.length; p < g; ++p)
1099
+ p == g - 1 ? s += `.${r[p]}` : s += `.${r[p]}, `;
1100
+ return s;
961
1101
  });
962
- H(() => {
963
- Y.on("open-file", () => {
964
- var s;
965
- (s = i.value) == null || s.click();
1102
+ U(() => {
1103
+ X.on("open-file", () => {
1104
+ var r;
1105
+ (r = i.value) == null || r.click();
966
1106
  });
967
1107
  });
968
- const a = (s) => {
969
- var w, f;
970
- const c = (w = s.target.files) == null ? void 0 : w[0];
971
- if (c && c.name) {
972
- const m = (f = c.name.split(".").pop()) == null ? void 0 : f.toLocaleLowerCase(), h = new FileReader();
973
- m == "dxf" ? h.readAsText(c) : m == "dwg" && h.readAsArrayBuffer(c), h.onload = (_) => {
974
- var S;
975
- const b = (S = _.target) == null ? void 0 : S.result;
976
- b && n("file-read", c.name, b);
1108
+ const a = (r) => {
1109
+ var g, b;
1110
+ const p = (g = r.target.files) == null ? void 0 : g[0];
1111
+ if (p && p.name) {
1112
+ const v = (b = p.name.split(".").pop()) == null ? void 0 : b.toLocaleLowerCase(), h = new FileReader();
1113
+ v == "dxf" ? h.readAsText(p) : v == "dwg" && h.readAsArrayBuffer(p), h.onload = (w) => {
1114
+ var D;
1115
+ const x = (D = w.target) == null ? void 0 : D.result;
1116
+ x && n("file-read", p.name, x);
977
1117
  }, h.onerror = () => {
978
1118
  console.error("Failed to read the file.");
979
1119
  };
980
1120
  }
981
1121
  };
982
- return (s, r) => (u(), y("input", {
1122
+ return (r, s) => (u(), _("input", {
983
1123
  type: "file",
984
1124
  ref_key: "fileInput",
985
1125
  ref: i,
986
- accept: o.value,
1126
+ accept: l.value,
987
1127
  style: { display: "none" },
988
1128
  onChange: a
989
- }, null, 40, Tt));
1129
+ }, null, 40, Rt));
990
1130
  }
991
- }), $t = /* @__PURE__ */ L({
1131
+ }), Pt = /* @__PURE__ */ S({
992
1132
  __name: "MlToggleButton",
993
1133
  props: /* @__PURE__ */ J({
994
1134
  size: { default: 30 },
@@ -999,121 +1139,121 @@ const Bt = /* @__PURE__ */ L({
999
1139
  }),
1000
1140
  emits: /* @__PURE__ */ J(["click"], ["update:modelValue"]),
1001
1141
  setup(t, { emit: e }) {
1002
- Se((c) => ({
1142
+ $e((p) => ({
1003
1143
  a97b120a: a.value
1004
1144
  }));
1005
- const n = t, i = ve(t, "modelValue"), l = e, o = k(() => i.value ? n.data.onIcon : n.data.offIcon), a = k(() => n.size + "px"), s = k(() => i.value ? n.data.onTooltip : n.data.offTooltip), r = () => {
1006
- l("click", i.value);
1145
+ const n = t, i = _e(t, "modelValue"), o = e, l = C(() => i.value ? n.data.onIcon : n.data.offIcon), a = C(() => n.size + "px"), r = C(() => i.value ? n.data.onTooltip : n.data.offTooltip), s = () => {
1146
+ o("click", i.value);
1007
1147
  };
1008
- return (c, w) => {
1009
- const f = M("el-button"), m = M("el-tooltip");
1010
- return u(), C(m, {
1011
- content: s.value,
1148
+ return (p, g) => {
1149
+ const b = M("el-button"), v = M("el-tooltip");
1150
+ return u(), L(v, {
1151
+ content: r.value,
1012
1152
  "hide-after": 0
1013
1153
  }, {
1014
- default: p(() => [
1015
- v(f, {
1154
+ default: f(() => [
1155
+ m(b, {
1016
1156
  class: "ml-toggle-button",
1017
- icon: o.value,
1018
- onClick: r
1157
+ icon: l.value,
1158
+ onClick: s
1019
1159
  }, null, 8, ["icon"])
1020
1160
  ]),
1021
1161
  _: 1
1022
1162
  }, 8, ["content"]);
1023
1163
  };
1024
1164
  }
1025
- }), Ve = /* @__PURE__ */ G($t, [["__scopeId", "data-v-48d6b055"]]), Vt = /* @__PURE__ */ L({
1165
+ }), Oe = /* @__PURE__ */ W(Pt, [["__scopeId", "data-v-48d6b055"]]), Ht = /* @__PURE__ */ S({
1026
1166
  __name: "MlReplacementDlg",
1027
1167
  setup(t) {
1028
- const { t: e } = P(), { fonts: n, images: i } = $e(), l = x(!0), o = k(() => n.size > 0 ? "font" : "image"), a = x(null), s = k(() => T.instance.avaiableFonts.map((h) => h.name[0])), r = () => {
1029
- const m = T.instance.curDocument.database;
1030
- i.forEach((_) => {
1031
- _.file && _.ids.forEach((b) => {
1032
- const S = m.tables.blockTable.modelSpace.getIdAt(
1033
- b
1168
+ const { t: e } = P(), { fonts: n, images: i } = Re(), o = k(!0), l = C(() => n.size > 0 ? "font" : "image"), a = k(null), r = C(() => E.instance.avaiableFonts.map((h) => h.name[0])), s = () => {
1169
+ const v = E.instance.curDocument.database;
1170
+ i.forEach((w) => {
1171
+ w.file && w.ids.forEach((x) => {
1172
+ const D = v.tables.blockTable.modelSpace.getIdAt(
1173
+ x
1034
1174
  );
1035
- S.image = _.file, S.triggerModifiedEvent();
1175
+ D.image = w.file, D.triggerModifiedEvent();
1036
1176
  });
1037
1177
  });
1038
- const h = K.instance;
1039
- n.forEach((_, b) => {
1040
- b && _ && h.setFontMapping(b, _);
1178
+ const h = Q.instance;
1179
+ n.forEach((w, x) => {
1180
+ x && w && h.setFontMapping(x, w);
1041
1181
  });
1042
- }, c = (m) => {
1182
+ }, p = (v) => {
1043
1183
  a.value && (a.value.click(), a.value.onchange = () => {
1044
- w(m);
1184
+ g(v);
1045
1185
  });
1046
- }, w = (m) => {
1047
- var _, b;
1048
- const h = (b = (_ = a.value) == null ? void 0 : _.files) == null ? void 0 : b[0];
1049
- h && (m.file = h);
1050
- }, f = (m, h) => {
1051
- n.set(m, h);
1186
+ }, g = (v) => {
1187
+ var w, x;
1188
+ const h = (x = (w = a.value) == null ? void 0 : w.files) == null ? void 0 : x[0];
1189
+ h && (v.file = h);
1190
+ }, b = (v, h) => {
1191
+ n.set(v, h);
1052
1192
  };
1053
- return (m, h) => {
1054
- const _ = M("el-col"), b = M("el-row"), S = M("el-option"), $ = M("el-select"), I = M("el-tab-pane"), V = M("el-table-column"), B = M("el-button"), N = M("el-table"), R = M("el-tabs");
1055
- return u(), C(Te, {
1056
- title: g(e)("dialog.replacementDlg.title"),
1057
- modelValue: l.value,
1058
- "onUpdate:modelValue": h[1] || (h[1] = (z) => l.value = z),
1193
+ return (v, h) => {
1194
+ const w = M("el-col"), x = M("el-row"), D = M("el-option"), V = M("el-select"), y = M("el-tab-pane"), z = M("el-table-column"), B = M("el-button"), R = M("el-table"), O = M("el-tabs");
1195
+ return u(), L(Ne, {
1196
+ title: d(e)("dialog.replacementDlg.title"),
1197
+ modelValue: o.value,
1198
+ "onUpdate:modelValue": h[1] || (h[1] = ($) => o.value = $),
1059
1199
  name: "ReplacementDlg",
1060
- onOk: r
1200
+ onOk: s
1061
1201
  }, {
1062
- default: p(() => [
1063
- v(R, {
1202
+ default: f(() => [
1203
+ m(O, {
1064
1204
  type: "card",
1065
- modelValue: o.value,
1066
- "onUpdate:modelValue": h[0] || (h[0] = (z) => o.value = z)
1205
+ modelValue: l.value,
1206
+ "onUpdate:modelValue": h[0] || (h[0] = ($) => l.value = $)
1067
1207
  }, {
1068
- default: p(() => [
1069
- g(n).size > 0 ? (u(), C(I, {
1208
+ default: f(() => [
1209
+ d(n).size > 0 ? (u(), L(y, {
1070
1210
  key: 0,
1071
- label: g(e)("dialog.replacementDlg.fontTabName"),
1211
+ label: d(e)("dialog.replacementDlg.fontTabName"),
1072
1212
  name: "font"
1073
1213
  }, {
1074
- default: p(() => [
1075
- d("div", null, [
1076
- v(b, null, {
1077
- default: p(() => [
1078
- v(_, { span: 12 }, {
1079
- default: p(() => [
1080
- d("span", null, D(g(e)("dialog.replacementDlg.missedFont")), 1)
1214
+ default: f(() => [
1215
+ c("div", null, [
1216
+ m(x, null, {
1217
+ default: f(() => [
1218
+ m(w, { span: 12 }, {
1219
+ default: f(() => [
1220
+ c("span", null, T(d(e)("dialog.replacementDlg.missedFont")), 1)
1081
1221
  ]),
1082
1222
  _: 1
1083
1223
  }),
1084
- v(_, { span: 12 }, {
1085
- default: p(() => [
1086
- d("span", null, D(g(e)("dialog.replacementDlg.replacedFont")), 1)
1224
+ m(w, { span: 12 }, {
1225
+ default: f(() => [
1226
+ c("span", null, T(d(e)("dialog.replacementDlg.replacedFont")), 1)
1087
1227
  ]),
1088
1228
  _: 1
1089
1229
  })
1090
1230
  ]),
1091
1231
  _: 1
1092
1232
  }),
1093
- (u(!0), y(j, null, X(g(n), ([z, A]) => (u(), C(b, {
1094
- key: z,
1233
+ (u(!0), _(j, null, K(d(n), ([$, F]) => (u(), L(x, {
1234
+ key: $,
1095
1235
  style: { "margin-top": "10px" }
1096
1236
  }, {
1097
- default: p(() => [
1098
- v(_, { span: 12 }, {
1099
- default: p(() => [
1100
- d("span", null, D(z), 1)
1237
+ default: f(() => [
1238
+ m(w, { span: 12 }, {
1239
+ default: f(() => [
1240
+ c("span", null, T($), 1)
1101
1241
  ]),
1102
1242
  _: 2
1103
1243
  }, 1024),
1104
- v(_, { span: 12 }, {
1105
- default: p(() => [
1106
- v($, {
1107
- "model-value": A,
1108
- placeholder: g(e)("dialog.replacementDlg.selectFont"),
1109
- "onUpdate:modelValue": (O) => f(z, O),
1244
+ m(w, { span: 12 }, {
1245
+ default: f(() => [
1246
+ m(V, {
1247
+ "model-value": F,
1248
+ placeholder: d(e)("dialog.replacementDlg.selectFont"),
1249
+ "onUpdate:modelValue": (G) => b($, G),
1110
1250
  style: { width: "100%" }
1111
1251
  }, {
1112
- default: p(() => [
1113
- (u(!0), y(j, null, X(s.value, (O, de) => (u(), C(S, {
1114
- key: de,
1115
- label: O,
1116
- value: O
1252
+ default: f(() => [
1253
+ (u(!0), _(j, null, K(r.value, (G, ne) => (u(), L(D, {
1254
+ key: ne,
1255
+ label: G,
1256
+ value: G
1117
1257
  }, null, 8, ["label", "value"]))), 128))
1118
1258
  ]),
1119
1259
  _: 2
@@ -1127,39 +1267,39 @@ const Bt = /* @__PURE__ */ L({
1127
1267
  ])
1128
1268
  ]),
1129
1269
  _: 1
1130
- }, 8, ["label"])) : q("", !0),
1131
- g(i).size > 0 ? (u(), C(I, {
1270
+ }, 8, ["label"])) : H("", !0),
1271
+ d(i).size > 0 ? (u(), L(y, {
1132
1272
  key: 1,
1133
- label: g(e)("dialog.replacementDlg.imageTabName"),
1273
+ label: d(e)("dialog.replacementDlg.imageTabName"),
1134
1274
  name: "image"
1135
1275
  }, {
1136
- default: p(() => [
1137
- v(N, {
1138
- data: Array.from(g(i).values()),
1276
+ default: f(() => [
1277
+ m(R, {
1278
+ data: Array.from(d(i).values()),
1139
1279
  style: { width: "100%" },
1140
1280
  "v-show": !1
1141
1281
  }, {
1142
- default: p(() => [
1143
- v(V, {
1144
- label: g(e)("dialog.replacementDlg.file"),
1282
+ default: f(() => [
1283
+ m(z, {
1284
+ label: d(e)("dialog.replacementDlg.file"),
1145
1285
  prop: "fileName",
1146
1286
  "min-width": 0,
1147
1287
  flex: 1
1148
1288
  }, null, 8, ["label"]),
1149
- v(V, {
1150
- label: g(e)("dialog.replacementDlg.replace"),
1289
+ m(z, {
1290
+ label: d(e)("dialog.replacementDlg.replace"),
1151
1291
  fixed: "right",
1152
1292
  width: "60"
1153
1293
  }, {
1154
- default: p(({ row: z }) => [
1155
- v(B, {
1294
+ default: f(({ row: $ }) => [
1295
+ m(B, {
1156
1296
  link: "",
1157
1297
  type: "primary",
1158
1298
  size: "small",
1159
- onClick: (A) => c(z)
1299
+ onClick: (F) => p($)
1160
1300
  }, {
1161
- default: p(() => h[2] || (h[2] = [
1162
- F(" ... ", -1)
1301
+ default: f(() => h[2] || (h[2] = [
1302
+ N(" ... ", -1)
1163
1303
  ])),
1164
1304
  _: 2,
1165
1305
  __: [2]
@@ -1170,17 +1310,17 @@ const Bt = /* @__PURE__ */ L({
1170
1310
  ]),
1171
1311
  _: 1
1172
1312
  }, 8, ["data"]),
1173
- d("input", {
1313
+ c("input", {
1174
1314
  type: "file",
1175
1315
  ref_key: "fileInput",
1176
1316
  ref: a,
1177
1317
  accept: ".png,.jpg,.jpeg",
1178
- onChange: w,
1318
+ onChange: g,
1179
1319
  style: { display: "none" }
1180
1320
  }, null, 544)
1181
1321
  ]),
1182
1322
  _: 1
1183
- }, 8, ["label"])) : q("", !0)
1323
+ }, 8, ["label"])) : H("", !0)
1184
1324
  ]),
1185
1325
  _: 1
1186
1326
  }, 8, ["modelValue"])
@@ -1189,29 +1329,29 @@ const Bt = /* @__PURE__ */ L({
1189
1329
  }, 8, ["title", "modelValue"]);
1190
1330
  };
1191
1331
  }
1192
- }), At = {
1332
+ }), Gt = {
1193
1333
  xmlns: "http://www.w3.org/2000/svg",
1194
1334
  width: "1em",
1195
1335
  height: "1em",
1196
1336
  viewBox: "0 0 15 15"
1197
1337
  };
1198
- function Ft(t, e) {
1199
- return u(), y("svg", At, e[0] || (e[0] = [
1200
- d("path", {
1338
+ function Wt(t, e) {
1339
+ return u(), _("svg", Gt, e[0] || (e[0] = [
1340
+ c("path", {
1201
1341
  fill: "currentColor",
1202
1342
  d: "M1.417 11.667h1.916v.833H0V9.167h.833v1.916l2.5-2.5.584.584zm9.666 0-2.5-2.5.584-.584 2.5 2.5V9.167h.833V12.5H9.167v-.833zM1.417.833l2.5 2.5-.584.584-2.5-2.5v1.916H0V0h3.333v.833zm9.666 0H9.167V0H12.5v3.333h-.833V1.417l-2.5 2.5-.584-.584z"
1203
1343
  }, null, -1)
1204
1344
  ]));
1205
1345
  }
1206
- const be = { render: Ft }, It = {
1346
+ const Le = { render: Wt }, Ut = {
1207
1347
  xmlns: "http://www.w3.org/2000/svg",
1208
1348
  width: "1em",
1209
1349
  height: "1em",
1210
1350
  viewBox: "0 0 512 512"
1211
1351
  };
1212
- function Rt(t, e) {
1213
- return u(), y("svg", It, e[0] || (e[0] = [
1214
- d("path", {
1352
+ function qt(t, e) {
1353
+ return u(), _("svg", Ut, e[0] || (e[0] = [
1354
+ c("path", {
1215
1355
  fill: "none",
1216
1356
  stroke: "currentColor",
1217
1357
  "stroke-linecap": "round",
@@ -1219,7 +1359,7 @@ function Rt(t, e) {
1219
1359
  "stroke-width": "32",
1220
1360
  d: "m434.8 137.65-149.36-68.1c-16.19-7.4-42.69-7.4-58.88 0L77.3 137.65c-17.6 8-17.6 21.09 0 29.09l148 67.5c16.89 7.7 44.69 7.7 61.58 0l148-67.5c17.52-8 17.52-21.1-.08-29.09M160 308.52l-82.7 37.11c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.89 7.69 44.69 7.69 61.58 0l148-67.5c17.6-8 17.6-21.1 0-29.1l-79.94-38.47"
1221
1361
  }, null, -1),
1222
- d("path", {
1362
+ c("path", {
1223
1363
  fill: "none",
1224
1364
  stroke: "currentColor",
1225
1365
  "stroke-linecap": "round",
@@ -1229,373 +1369,373 @@ function Rt(t, e) {
1229
1369
  }, null, -1)
1230
1370
  ]));
1231
1371
  }
1232
- const Pt = { render: Rt }, Nt = {
1372
+ const jt = { render: qt }, Yt = {
1233
1373
  xmlns: "http://www.w3.org/2000/svg",
1234
1374
  width: "1em",
1235
1375
  height: "1em",
1236
1376
  viewBox: "0 0 20 20"
1237
1377
  };
1238
- function Ot(t, e) {
1239
- return u(), y("svg", Nt, e[0] || (e[0] = [
1240
- d("path", { d: "m15.08 12.854.002-.002V5.59c0-.422-.652-.414-.652 0v3.466c0 .938-1.482.95-1.482 0v-4.83c0-.414-.638-.414-.638 0h-.014v4.83c.014.95-1.482.95-1.482 0V3.444c0-.42-.638-.414-.638 0v5.612c0 .95-1.494.95-1.494 0V4.232c0-.408-.64-.42-.64 0v6.756c0 .802-1.094 1.088-1.494.388q-.39-.669-.776-1.338c-.338-.482-1.1-.15-.794.38l.978 1.698.02.04q.829 1.418 1.658 2.834c.19.3.422.578.666.802h-.006c.672.61 1.528.964 2.418 1.052.888.06 1.792-.124 2.56-.612q.45-.285.816-.68a4 4 0 0 0 .734-1.204c.176-.482.258-.97.258-1.494m-.91-8.608-.004-.002c.958-.38 2.058.244 2.058 1.346v7.266c0 .652-.108 1.29-.332 1.894a4.8 4.8 0 0 1-.964 1.576 5.9 5.9 0 0 1-1.046.884c-.978.612-2.146.862-3.26.774a5.34 5.34 0 0 1-3.098-1.352 5.4 5.4 0 0 1-.87-1.034l-1.672-2.88-.012-.028-.978-1.706c-.59-1.018.068-2.186 1.156-2.336.536-.074 1.126.116 1.562.72.026.028.04.062.054.096q.061.11.122.218V4.234c0-1.176 1.244-1.788 2.202-1.278.42-1.278 2.378-1.264 2.792-.014.972-.51 2.222.102 2.222 1.284v.06z" }, null, -1)
1378
+ function Kt(t, e) {
1379
+ return u(), _("svg", Yt, e[0] || (e[0] = [
1380
+ c("path", { d: "m15.08 12.854.002-.002V5.59c0-.422-.652-.414-.652 0v3.466c0 .938-1.482.95-1.482 0v-4.83c0-.414-.638-.414-.638 0h-.014v4.83c.014.95-1.482.95-1.482 0V3.444c0-.42-.638-.414-.638 0v5.612c0 .95-1.494.95-1.494 0V4.232c0-.408-.64-.42-.64 0v6.756c0 .802-1.094 1.088-1.494.388q-.39-.669-.776-1.338c-.338-.482-1.1-.15-.794.38l.978 1.698.02.04q.829 1.418 1.658 2.834c.19.3.422.578.666.802h-.006c.672.61 1.528.964 2.418 1.052.888.06 1.792-.124 2.56-.612q.45-.285.816-.68a4 4 0 0 0 .734-1.204c.176-.482.258-.97.258-1.494m-.91-8.608-.004-.002c.958-.38 2.058.244 2.058 1.346v7.266c0 .652-.108 1.29-.332 1.894a4.8 4.8 0 0 1-.964 1.576 5.9 5.9 0 0 1-1.046.884c-.978.612-2.146.862-3.26.774a5.34 5.34 0 0 1-3.098-1.352 5.4 5.4 0 0 1-.87-1.034l-1.672-2.88-.012-.028-.978-1.706c-.59-1.018.068-2.186 1.156-2.336.536-.074 1.126.116 1.562.72.026.028.04.062.054.096q.061.11.122.218V4.234c0-1.176 1.244-1.788 2.202-1.278.42-1.278 2.378-1.264 2.792-.014.972-.51 2.222.102 2.222 1.284v.06z" }, null, -1)
1241
1381
  ]));
1242
1382
  }
1243
- const Ht = { render: Ot }, Gt = {
1383
+ const Xt = { render: Kt }, Qt = {
1244
1384
  xmlns: "http://www.w3.org/2000/svg",
1245
1385
  width: "1em",
1246
1386
  height: "1em",
1247
1387
  viewBox: "0 0 20 20"
1248
1388
  };
1249
- function Wt(t, e) {
1250
- return u(), y("svg", Gt, e[0] || (e[0] = [
1251
- d("path", {
1389
+ function Zt(t, e) {
1390
+ return u(), _("svg", Qt, e[0] || (e[0] = [
1391
+ c("path", {
1252
1392
  fill: "currentColor",
1253
1393
  d: "M10.438 15.298h.002l4.86-4.86-9.722-4.86zM18 10l-3.434 3.434 3.2 3.2-1.132 1.132-3.2-3.2L10 18 2.4 2.4z"
1254
1394
  }, null, -1)
1255
1395
  ]));
1256
1396
  }
1257
- const qt = { render: Wt }, Ut = {
1397
+ const Jt = { render: Zt }, en = {
1258
1398
  xmlns: "http://www.w3.org/2000/svg",
1259
1399
  width: "1em",
1260
1400
  height: "1em",
1261
1401
  viewBox: "0 0 20 20"
1262
1402
  };
1263
- function jt(t, e) {
1264
- return u(), y("svg", Ut, e[0] || (e[0] = [
1265
- d("path", {
1403
+ function tn(t, e) {
1404
+ return u(), _("svg", en, e[0] || (e[0] = [
1405
+ c("path", {
1266
1406
  fill: "currentColor",
1267
1407
  d: "M15.083 14.808a7 7 0 0 0 1.909-4.825 7.001 7.001 0 1 0-2.167 5.083c.092-.083.175-.174.258-.258m1.259.592 2.575 2.575-.942.942-2.575-2.575a8.334 8.334 0 0 1-11.525-.692 8.326 8.326 0 0 1 .233-11.542C7.267.942 12.367.842 15.65 3.875s3.592 8.117.692 11.525m-3.55-2.608V7.208H7.208v5.584zM5.875 5.875h8.25v8.25h-8.25z"
1268
1408
  }, null, -1)
1269
1409
  ]));
1270
1410
  }
1271
- const Yt = { render: jt }, Kt = {
1411
+ const nn = { render: tn }, on = {
1272
1412
  xmlns: "http://www.w3.org/2000/svg",
1273
1413
  width: "1em",
1274
1414
  height: "1em",
1275
1415
  viewBox: "0 0 20 20"
1276
1416
  };
1277
- function Xt(t, e) {
1278
- return u(), y("svg", Kt, e[0] || (e[0] = [
1279
- d("path", {
1417
+ function ln(t, e) {
1418
+ return u(), _("svg", on, e[0] || (e[0] = [
1419
+ c("path", {
1280
1420
  fill: "currentColor",
1281
1421
  d: "m9.333 14.125-3.458-3.458v3.458zm4.792-3.458-3.458 3.458h3.458zm-3.458-4.792 3.458 3.458V5.875zM5.875 9.333l3.458-3.458H5.875zm9.208 5.475a7 7 0 0 0 1.909-4.825 7.001 7.001 0 1 0-2.167 5.083c.092-.083.175-.174.258-.258m1.259.592 2.575 2.575-.942.942-2.575-2.575c-3.408 2.9-8.492 2.591-11.525-.692S.942 7.275 4.108 4.108C7.267.942 12.367.842 15.65 3.875s3.592 8.117.692 11.525"
1282
1422
  }, null, -1)
1283
1423
  ]));
1284
1424
  }
1285
- const Qt = { render: Xt }, Zt = {
1425
+ const an = { render: ln }, sn = {
1286
1426
  xmlns: "http://www.w3.org/2000/svg",
1287
1427
  width: "1em",
1288
1428
  height: "1em",
1289
1429
  viewBox: "0 0 20 20"
1290
1430
  };
1291
- function Jt(t, e) {
1292
- return u(), y("svg", Zt, e[0] || (e[0] = [
1293
- d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1)
1431
+ function rn(t, e) {
1432
+ return u(), _("svg", sn, e[0] || (e[0] = [
1433
+ c("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1)
1294
1434
  ]));
1295
1435
  }
1296
- const en = { render: Jt }, tn = {
1436
+ const cn = { render: rn }, un = {
1297
1437
  xmlns: "http://www.w3.org/2000/svg",
1298
1438
  width: "1em",
1299
1439
  height: "1em",
1300
1440
  viewBox: "0 0 20 20"
1301
1441
  };
1302
- function nn(t, e) {
1303
- return u(), y("svg", tn);
1442
+ function dn(t, e) {
1443
+ return u(), _("svg", un);
1304
1444
  }
1305
- const on = { render: nn }, ln = {
1445
+ const mn = { render: dn }, pn = {
1306
1446
  xmlns: "http://www.w3.org/2000/svg",
1307
1447
  width: "1em",
1308
1448
  height: "1em",
1309
1449
  viewBox: "0 0 20 20"
1310
1450
  };
1311
- function an(t, e) {
1312
- return u(), y("svg", ln, e[0] || (e[0] = [
1313
- d("path", { d: "M2 9.5h16v1H2z" }, null, -1),
1314
- d("path", { d: "M9.5 2h1v16h-1z" }, null, -1)
1451
+ function fn(t, e) {
1452
+ return u(), _("svg", pn, e[0] || (e[0] = [
1453
+ c("path", { d: "M2 9.5h16v1H2z" }, null, -1),
1454
+ c("path", { d: "M9.5 2h1v16h-1z" }, null, -1)
1315
1455
  ]));
1316
1456
  }
1317
- const rn = { render: an }, sn = {
1457
+ const vn = { render: fn }, gn = {
1318
1458
  xmlns: "http://www.w3.org/2000/svg",
1319
1459
  width: "1em",
1320
1460
  height: "1em",
1321
1461
  viewBox: "0 0 20 20"
1322
1462
  };
1323
- function cn(t, e) {
1324
- return u(), y("svg", sn, e[0] || (e[0] = [
1325
- d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
1326
- d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
1463
+ function hn(t, e) {
1464
+ return u(), _("svg", gn, e[0] || (e[0] = [
1465
+ c("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
1466
+ c("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
1327
1467
  ]));
1328
1468
  }
1329
- const un = { render: cn }, dn = {
1469
+ const _n = { render: hn }, wn = {
1330
1470
  xmlns: "http://www.w3.org/2000/svg",
1331
1471
  width: "1em",
1332
1472
  height: "1em",
1333
1473
  viewBox: "0 0 20 20"
1334
1474
  };
1335
- function mn(t, e) {
1336
- return u(), y("svg", dn, e[0] || (e[0] = [
1337
- d("path", { d: "M9.5 2.04h1v8h-1z" }, null, -1)
1475
+ function yn(t, e) {
1476
+ return u(), _("svg", wn, e[0] || (e[0] = [
1477
+ c("path", { d: "M9.5 2.04h1v8h-1z" }, null, -1)
1338
1478
  ]));
1339
1479
  }
1340
- const pn = { render: mn }, gn = {
1480
+ const bn = { render: yn }, xn = {
1341
1481
  xmlns: "http://www.w3.org/2000/svg",
1342
1482
  width: "1em",
1343
1483
  height: "1em",
1344
1484
  viewBox: "0 0 20 20"
1345
1485
  };
1346
- function vn(t, e) {
1347
- return u(), y("svg", gn, e[0] || (e[0] = [
1348
- d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
1349
- d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
1486
+ function kn(t, e) {
1487
+ return u(), _("svg", xn, e[0] || (e[0] = [
1488
+ c("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
1489
+ c("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
1350
1490
  ]));
1351
1491
  }
1352
- const fn = { render: vn }, hn = {
1492
+ const Mn = { render: kn }, Cn = {
1353
1493
  xmlns: "http://www.w3.org/2000/svg",
1354
1494
  width: "1em",
1355
1495
  height: "1em",
1356
1496
  viewBox: "0 0 20 20"
1357
1497
  };
1358
- function _n(t, e) {
1359
- return u(), y("svg", hn, e[0] || (e[0] = [
1360
- d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
1498
+ function Sn(t, e) {
1499
+ return u(), _("svg", Cn, e[0] || (e[0] = [
1500
+ c("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
1361
1501
  ]));
1362
1502
  }
1363
- const wn = { render: _n }, yn = {
1503
+ const Ln = { render: Sn }, zn = {
1364
1504
  xmlns: "http://www.w3.org/2000/svg",
1365
1505
  width: "1em",
1366
1506
  height: "1em",
1367
1507
  viewBox: "0 0 20 20"
1368
1508
  };
1369
- function bn(t, e) {
1370
- return u(), y("svg", yn, e[0] || (e[0] = [
1371
- d("path", { d: "M3 9.5h14v1H3z" }, null, -1),
1372
- d("path", { d: "M9.5 3h1v14h-1z" }, null, -1),
1373
- d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
1509
+ function Bn(t, e) {
1510
+ return u(), _("svg", zn, e[0] || (e[0] = [
1511
+ c("path", { d: "M3 9.5h14v1H3z" }, null, -1),
1512
+ c("path", { d: "M9.5 3h1v14h-1z" }, null, -1),
1513
+ c("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
1374
1514
  ]));
1375
1515
  }
1376
- const xn = { render: bn }, kn = {
1516
+ const Dn = { render: Bn }, Tn = {
1377
1517
  xmlns: "http://www.w3.org/2000/svg",
1378
1518
  width: "1em",
1379
1519
  height: "1em",
1380
1520
  viewBox: "0 0 20 20"
1381
1521
  };
1382
- function Mn(t, e) {
1383
- return u(), y("svg", kn, e[0] || (e[0] = [
1384
- d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
1385
- d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
1386
- d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
1522
+ function $n(t, e) {
1523
+ return u(), _("svg", Tn, e[0] || (e[0] = [
1524
+ c("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
1525
+ c("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
1526
+ c("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
1387
1527
  ]));
1388
1528
  }
1389
- const Sn = { render: Mn }, Cn = {
1529
+ const En = { render: $n }, An = {
1390
1530
  xmlns: "http://www.w3.org/2000/svg",
1391
1531
  width: "1em",
1392
1532
  height: "1em",
1393
1533
  viewBox: "0 0 20 20"
1394
1534
  };
1395
- function Ln(t, e) {
1396
- return u(), y("svg", Cn, e[0] || (e[0] = [
1397
- d("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
1398
- d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
1535
+ function Vn(t, e) {
1536
+ return u(), _("svg", An, e[0] || (e[0] = [
1537
+ c("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
1538
+ c("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
1399
1539
  ]));
1400
1540
  }
1401
- const zn = { render: Ln }, Dn = {
1541
+ const Fn = { render: Vn }, Nn = {
1402
1542
  xmlns: "http://www.w3.org/2000/svg",
1403
1543
  width: "1em",
1404
1544
  height: "1em",
1405
1545
  viewBox: "0 0 20 20"
1406
1546
  };
1407
- function Bn(t, e) {
1408
- return u(), y("svg", Dn, e[0] || (e[0] = [
1409
- d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
1410
- d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
1547
+ function In(t, e) {
1548
+ return u(), _("svg", Nn, e[0] || (e[0] = [
1549
+ c("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
1550
+ c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
1411
1551
  ]));
1412
1552
  }
1413
- const Tn = { render: Bn }, En = {
1553
+ const Rn = { render: In }, On = {
1414
1554
  xmlns: "http://www.w3.org/2000/svg",
1415
1555
  width: "1em",
1416
1556
  height: "1em",
1417
1557
  viewBox: "0 0 20 20"
1418
1558
  };
1419
- function $n(t, e) {
1420
- return u(), y("svg", En, e[0] || (e[0] = [
1421
- d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
1559
+ function Pn(t, e) {
1560
+ return u(), _("svg", On, e[0] || (e[0] = [
1561
+ c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
1422
1562
  ]));
1423
1563
  }
1424
- const Vn = { render: $n }, An = {
1564
+ const Hn = { render: Pn }, Gn = {
1425
1565
  xmlns: "http://www.w3.org/2000/svg",
1426
1566
  width: "1em",
1427
1567
  height: "1em",
1428
1568
  viewBox: "0 0 20 20"
1429
1569
  };
1430
- function Fn(t, e) {
1431
- return u(), y("svg", An, e[0] || (e[0] = [
1432
- d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
1433
- d("path", { d: "M3 9.58h14v1H3z" }, null, -1),
1434
- d("path", { d: "M9.5 3.08h1v14h-1z" }, null, -1)
1570
+ function Wn(t, e) {
1571
+ return u(), _("svg", Gn, e[0] || (e[0] = [
1572
+ c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
1573
+ c("path", { d: "M3 9.58h14v1H3z" }, null, -1),
1574
+ c("path", { d: "M9.5 3.08h1v14h-1z" }, null, -1)
1435
1575
  ]));
1436
1576
  }
1437
- const In = { render: Fn }, Rn = {
1577
+ const Un = { render: Wn }, qn = {
1438
1578
  xmlns: "http://www.w3.org/2000/svg",
1439
1579
  width: "1em",
1440
1580
  height: "1em",
1441
1581
  viewBox: "0 0 20 20"
1442
1582
  };
1443
- function Pn(t, e) {
1444
- return u(), y("svg", Rn, e[0] || (e[0] = [
1445
- d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
1446
- d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
1447
- d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
1583
+ function jn(t, e) {
1584
+ return u(), _("svg", qn, e[0] || (e[0] = [
1585
+ c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
1586
+ c("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
1587
+ c("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
1448
1588
  ]));
1449
1589
  }
1450
- const Nn = { render: Pn }, On = {
1590
+ const Yn = { render: jn }, Kn = {
1451
1591
  xmlns: "http://www.w3.org/2000/svg",
1452
1592
  width: "1em",
1453
1593
  height: "1em",
1454
1594
  viewBox: "0 0 20 20"
1455
1595
  };
1456
- function Hn(t, e) {
1457
- return u(), y("svg", On, e[0] || (e[0] = [
1458
- d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
1459
- d("path", { d: "M9.5 6.04h1v5h-1z" }, null, -1)
1596
+ function Xn(t, e) {
1597
+ return u(), _("svg", Kn, e[0] || (e[0] = [
1598
+ c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
1599
+ c("path", { d: "M9.5 6.04h1v5h-1z" }, null, -1)
1460
1600
  ]));
1461
1601
  }
1462
- const Gn = { render: Hn }, Wn = {
1602
+ const Qn = { render: Xn }, Zn = {
1463
1603
  xmlns: "http://www.w3.org/2000/svg",
1464
1604
  width: "1em",
1465
1605
  height: "1em",
1466
1606
  viewBox: "0 0 20 20"
1467
1607
  };
1468
- function qn(t, e) {
1469
- return u(), y("svg", Wn, e[0] || (e[0] = [
1470
- d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
1471
- d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
1472
- d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
1608
+ function Jn(t, e) {
1609
+ return u(), _("svg", Zn, e[0] || (e[0] = [
1610
+ c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
1611
+ c("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
1612
+ c("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
1473
1613
  ]));
1474
1614
  }
1475
- const Un = { render: qn }, jn = {
1615
+ const eo = { render: Jn }, to = {
1476
1616
  xmlns: "http://www.w3.org/2000/svg",
1477
1617
  width: "1em",
1478
1618
  height: "1em",
1479
1619
  viewBox: "0 0 20 20"
1480
1620
  };
1481
- function Yn(t, e) {
1482
- return u(), y("svg", jn, e[0] || (e[0] = [
1483
- d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
1484
- d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
1621
+ function no(t, e) {
1622
+ return u(), _("svg", to, e[0] || (e[0] = [
1623
+ c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
1624
+ c("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
1485
1625
  ]));
1486
1626
  }
1487
- const Kn = { render: Yn }, Xn = {
1627
+ const oo = { render: no }, lo = {
1488
1628
  xmlns: "http://www.w3.org/2000/svg",
1489
1629
  width: "1em",
1490
1630
  height: "1em",
1491
1631
  viewBox: "0 0 20 20"
1492
1632
  };
1493
- function Qn(t, e) {
1494
- return u(), y("svg", Xn, e[0] || (e[0] = [
1495
- d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
1496
- d("path", { d: "M3.88 9.6h12.25v.88H3.88z" }, null, -1),
1497
- d("path", { d: "M9.56 3.91h.88v12.25h-.88z" }, null, -1),
1498
- d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
1633
+ function ao(t, e) {
1634
+ return u(), _("svg", lo, e[0] || (e[0] = [
1635
+ c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
1636
+ c("path", { d: "M3.88 9.6h12.25v.88H3.88z" }, null, -1),
1637
+ c("path", { d: "M9.56 3.91h.88v12.25h-.88z" }, null, -1),
1638
+ c("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
1499
1639
  ]));
1500
1640
  }
1501
- const Zn = { render: Qn }, Jn = {
1641
+ const io = { render: ao }, so = {
1502
1642
  xmlns: "http://www.w3.org/2000/svg",
1503
1643
  width: "1em",
1504
1644
  height: "1em",
1505
1645
  viewBox: "0 0 20 20"
1506
1646
  };
1507
- function eo(t, e) {
1508
- return u(), y("svg", Jn, e[0] || (e[0] = [
1509
- d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
1510
- d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
1511
- d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
1512
- d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
1647
+ function ro(t, e) {
1648
+ return u(), _("svg", so, e[0] || (e[0] = [
1649
+ c("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
1650
+ c("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
1651
+ c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
1652
+ c("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
1513
1653
  ]));
1514
1654
  }
1515
- const to = { render: eo }, no = {
1655
+ const co = { render: ro }, uo = {
1516
1656
  xmlns: "http://www.w3.org/2000/svg",
1517
1657
  width: "1em",
1518
1658
  height: "1em",
1519
1659
  viewBox: "0 0 20 20"
1520
1660
  };
1521
- function oo(t, e) {
1522
- return u(), y("svg", no, e[0] || (e[0] = [
1523
- d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
1524
- d("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
1525
- d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
1661
+ function mo(t, e) {
1662
+ return u(), _("svg", uo, e[0] || (e[0] = [
1663
+ c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
1664
+ c("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
1665
+ c("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
1526
1666
  ]));
1527
1667
  }
1528
- const lo = { render: oo }, ao = /* @__PURE__ */ L({
1668
+ const po = { render: mo }, fo = /* @__PURE__ */ S({
1529
1669
  __name: "MlPointStyleDlg",
1530
1670
  setup(t) {
1531
- const { t: e } = P(), n = Dt(T.instance), i = x(!0), l = x(0), o = [
1671
+ const { t: e } = P(), n = Nt(E.instance), i = k(!0), o = k(0), l = [
1532
1672
  [
1533
- { id: 0, icon: en },
1534
- { id: 1, icon: on },
1535
- { id: 2, icon: rn },
1536
- { id: 3, icon: un },
1537
- { id: 4, icon: pn }
1673
+ { id: 0, icon: cn },
1674
+ { id: 1, icon: mn },
1675
+ { id: 2, icon: vn },
1676
+ { id: 3, icon: _n },
1677
+ { id: 4, icon: bn }
1538
1678
  ],
1539
1679
  [
1540
- { id: 32, icon: fn },
1541
- { id: 33, icon: wn },
1542
- { id: 34, icon: xn },
1543
- { id: 35, icon: Sn },
1544
- { id: 36, icon: zn }
1680
+ { id: 32, icon: Mn },
1681
+ { id: 33, icon: Ln },
1682
+ { id: 34, icon: Dn },
1683
+ { id: 35, icon: En },
1684
+ { id: 36, icon: Fn }
1545
1685
  ],
1546
1686
  [
1547
- { id: 64, icon: Tn },
1548
- { id: 65, icon: Vn },
1549
- { id: 66, icon: In },
1550
- { id: 67, icon: Nn },
1551
- { id: 68, icon: Gn }
1687
+ { id: 64, icon: Rn },
1688
+ { id: 65, icon: Hn },
1689
+ { id: 66, icon: Un },
1690
+ { id: 67, icon: Yn },
1691
+ { id: 68, icon: Qn }
1552
1692
  ],
1553
1693
  [
1554
- { id: 96, icon: Un },
1555
- { id: 97, icon: Kn },
1556
- { id: 98, icon: Zn },
1557
- { id: 99, icon: to },
1558
- { id: 100, icon: lo }
1694
+ { id: 96, icon: eo },
1695
+ { id: 97, icon: oo },
1696
+ { id: 98, icon: io },
1697
+ { id: 99, icon: co },
1698
+ { id: 100, icon: po }
1559
1699
  ]
1560
1700
  ], a = () => {
1561
- n.pdmode && (l.value = n.pdmode);
1701
+ n.pdmode && (o.value = n.pdmode);
1562
1702
  };
1563
1703
  a();
1564
- const s = (f, m) => o[f][m].id == l.value ? "primary" : null, r = (f, m) => {
1565
- l.value = o[f][m].id;
1566
- }, c = () => {
1567
- T.instance.curDocument.database.pdmode = l.value;
1568
- }, w = () => {
1704
+ const r = (b, v) => l[b][v].id == o.value ? "primary" : null, s = (b, v) => {
1705
+ o.value = l[b][v].id;
1706
+ }, p = () => {
1707
+ E.instance.curDocument.database.pdmode = o.value;
1708
+ }, g = () => {
1569
1709
  a();
1570
1710
  };
1571
- return (f, m) => {
1572
- const h = M("el-button"), _ = M("el-col"), b = M("el-row");
1573
- return u(), C(Te, {
1574
- title: g(e)("dialog.pointStyleDlg.title"),
1711
+ return (b, v) => {
1712
+ const h = M("el-button"), w = M("el-col"), x = M("el-row");
1713
+ return u(), L(Ne, {
1714
+ title: d(e)("dialog.pointStyleDlg.title"),
1575
1715
  width: 400,
1576
1716
  modelValue: i.value,
1577
- "onUpdate:modelValue": m[0] || (m[0] = (S) => i.value = S),
1717
+ "onUpdate:modelValue": v[0] || (v[0] = (D) => i.value = D),
1578
1718
  name: "PointStyleDlg",
1579
- onOk: c,
1580
- onCancel: w
1719
+ onOk: p,
1720
+ onCancel: g
1581
1721
  }, {
1582
- default: p(() => [
1583
- (u(), y(j, null, X(o, (S, $) => v(b, {
1584
- key: $,
1722
+ default: f(() => [
1723
+ (u(), _(j, null, K(l, (D, V) => m(x, {
1724
+ key: V,
1585
1725
  style: { "margin-top": "10px" },
1586
1726
  gutter: 6,
1587
1727
  justify: "space-between"
1588
1728
  }, {
1589
- default: p(() => [
1590
- (u(!0), y(j, null, X(S, (I, V) => (u(), C(_, {
1591
- key: V,
1729
+ default: f(() => [
1730
+ (u(!0), _(j, null, K(D, (y, z) => (u(), L(w, {
1731
+ key: z,
1592
1732
  span: 4
1593
1733
  }, {
1594
- default: p(() => [
1595
- v(h, {
1596
- icon: I.icon,
1597
- type: s($, V),
1598
- onClick: (B) => r($, V),
1734
+ default: f(() => [
1735
+ m(h, {
1736
+ icon: y.icon,
1737
+ type: r(V, z),
1738
+ onClick: (B) => s(V, z),
1599
1739
  style: { "font-size": "25px" }
1600
1740
  }, null, 8, ["icon", "type", "onClick"])
1601
1741
  ]),
@@ -1620,35 +1760,35 @@ const lo = { render: oo }, ao = /* @__PURE__ */ L({
1620
1760
  console.error("vite-plugin-css-injected-by-js", e);
1621
1761
  }
1622
1762
  })();
1623
- const io = {
1763
+ const vo = {
1624
1764
  xmlns: "http://www.w3.org/2000/svg",
1625
1765
  width: "1em",
1626
1766
  height: "1em",
1627
1767
  viewBox: "0 0 1024 1024"
1628
- }, ro = /* @__PURE__ */ d("path", {
1768
+ }, go = /* @__PURE__ */ c("path", {
1629
1769
  fill: "currentColor",
1630
1770
  d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"
1631
- }, null, -1), so = [
1632
- ro
1771
+ }, null, -1), ho = [
1772
+ go
1633
1773
  ];
1634
- function co(t, e) {
1635
- return u(), y("svg", io, [...so]);
1774
+ function _o(t, e) {
1775
+ return u(), _("svg", vo, [...ho]);
1636
1776
  }
1637
- const xe = { render: co }, uo = {
1777
+ const ze = { render: _o }, wo = {
1638
1778
  xmlns: "http://www.w3.org/2000/svg",
1639
1779
  width: "1em",
1640
1780
  height: "1em",
1641
1781
  viewBox: "0 0 1024 1024"
1642
- }, mo = /* @__PURE__ */ d("path", {
1782
+ }, yo = /* @__PURE__ */ c("path", {
1643
1783
  fill: "currentColor",
1644
1784
  d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
1645
- }, null, -1), po = [
1646
- mo
1785
+ }, null, -1), bo = [
1786
+ yo
1647
1787
  ];
1648
- function go(t, e) {
1649
- return u(), y("svg", uo, [...po]);
1788
+ function xo(t, e) {
1789
+ return u(), _("svg", wo, [...bo]);
1650
1790
  }
1651
- const ke = { render: go }, vo = /* @__PURE__ */ L({
1791
+ const Be = { render: xo }, ko = /* @__PURE__ */ S({
1652
1792
  __name: "MlCollapse",
1653
1793
  props: /* @__PURE__ */ J({
1654
1794
  size: { default: 18 },
@@ -1659,34 +1799,34 @@ const ke = { render: go }, vo = /* @__PURE__ */ L({
1659
1799
  }),
1660
1800
  emits: /* @__PURE__ */ J(["change"], ["update:modelValue"]),
1661
1801
  setup(t, { emit: e }) {
1662
- const n = t, i = ve(t, "modelValue"), l = e, o = k(() => n.reverse ? i.value ? xe : ke : i.value ? ke : xe), a = k(() => `${n.size}px`), s = () => {
1663
- l("change", i.value), i.value = !i.value;
1802
+ const n = t, i = _e(t, "modelValue"), o = e, l = C(() => n.reverse ? i.value ? ze : Be : i.value ? Be : ze), a = C(() => `${n.size}px`), r = () => {
1803
+ o("change", i.value), i.value = !i.value;
1664
1804
  };
1665
- return (r, c) => {
1666
- const w = se;
1667
- return u(), C(w, {
1805
+ return (s, p) => {
1806
+ const g = de;
1807
+ return u(), L(g, {
1668
1808
  size: a.value,
1669
- onClick: s
1809
+ onClick: r
1670
1810
  }, {
1671
- default: p(() => [
1672
- (u(), C(ge(o.value)))
1811
+ default: f(() => [
1812
+ (u(), L(ue(l.value)))
1673
1813
  ]),
1674
1814
  _: 1
1675
1815
  }, 8, ["size"]);
1676
1816
  };
1677
1817
  }
1678
- }), fo = (t) => (Le("data-v-3fc33b5d"), t = t(), ze(), t), ho = /* @__PURE__ */ fo(() => /* @__PURE__ */ d("svg", {
1818
+ }), Mo = (t) => (Ee("data-v-3fc33b5d"), t = t(), Ae(), t), Co = /* @__PURE__ */ Mo(() => /* @__PURE__ */ c("svg", {
1679
1819
  preserveAspectRatio: "xMidYMid meet",
1680
1820
  viewBox: "0 0 24 24",
1681
1821
  width: "1.2em",
1682
1822
  height: "1.2em",
1683
1823
  "data-v-63d067da": ""
1684
1824
  }, [
1685
- /* @__PURE__ */ d("path", {
1825
+ /* @__PURE__ */ c("path", {
1686
1826
  fill: "currentColor",
1687
1827
  d: "m18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301a14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"
1688
1828
  })
1689
- ], -1)), _o = /* @__PURE__ */ L({
1829
+ ], -1)), So = /* @__PURE__ */ S({
1690
1830
  __name: "MlDropdown",
1691
1831
  props: {
1692
1832
  icon: {},
@@ -1697,21 +1837,21 @@ const ke = { render: go }, vo = /* @__PURE__ */ L({
1697
1837
  click: null
1698
1838
  },
1699
1839
  setup(t, { emit: e }) {
1700
- const n = t, i = e, l = k(() => n.items.filter((a) => a.name !== n.current)), o = (a) => {
1840
+ const n = t, i = e, o = C(() => n.items.filter((a) => a.name !== n.current)), l = (a) => {
1701
1841
  i("click", a);
1702
1842
  };
1703
- return (a, s) => {
1704
- const r = se, c = nt, w = tt, f = et;
1705
- return u(), C(f, { onCommand: o }, {
1706
- dropdown: p(() => [
1707
- v(w, null, {
1708
- default: p(() => [
1709
- (u(!0), y(j, null, X(l.value, (m) => (u(), C(c, {
1710
- key: m.text,
1711
- command: m.name
1843
+ return (a, r) => {
1844
+ const s = de, p = ct, g = rt, b = st;
1845
+ return u(), L(b, { onCommand: l }, {
1846
+ dropdown: f(() => [
1847
+ m(g, null, {
1848
+ default: f(() => [
1849
+ (u(!0), _(j, null, K(o.value, (v) => (u(), L(p, {
1850
+ key: v.text,
1851
+ command: v.name
1712
1852
  }, {
1713
- default: p(() => [
1714
- F(D(m.text), 1)
1853
+ default: f(() => [
1854
+ N(T(v.text), 1)
1715
1855
  ]),
1716
1856
  _: 2
1717
1857
  }, 1032, ["command"]))), 128))
@@ -1719,13 +1859,13 @@ const ke = { render: go }, vo = /* @__PURE__ */ L({
1719
1859
  _: 1
1720
1860
  })
1721
1861
  ]),
1722
- default: p(() => [
1723
- v(r, {
1862
+ default: f(() => [
1863
+ m(s, {
1724
1864
  size: "30",
1725
1865
  class: "ml-dropdown-icon"
1726
1866
  }, {
1727
- default: p(() => [
1728
- ho
1867
+ default: f(() => [
1868
+ Co
1729
1869
  ]),
1730
1870
  _: 1
1731
1871
  })
@@ -1734,12 +1874,12 @@ const ke = { render: go }, vo = /* @__PURE__ */ L({
1734
1874
  });
1735
1875
  };
1736
1876
  }
1737
- }), ue = (t, e) => {
1877
+ }), fe = (t, e) => {
1738
1878
  const n = t.__vccOpts || t;
1739
- for (const [i, l] of e)
1740
- n[i] = l;
1879
+ for (const [i, o] of e)
1880
+ n[i] = o;
1741
1881
  return n;
1742
- }, wo = /* @__PURE__ */ ue(_o, [["__scopeId", "data-v-3fc33b5d"]]), yo = '<svg preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" width="1.2em" height="1.2em" data-v-63d067da=""><path fill="currentColor" d="m18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301a14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"></path></svg>', bo = /* @__PURE__ */ L({
1882
+ }, Lo = /* @__PURE__ */ fe(So, [["__scopeId", "data-v-3fc33b5d"]]), zo = '<svg preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" width="1.2em" height="1.2em" data-v-63d067da=""><path fill="currentColor" d="m18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301a14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"></path></svg>', Bo = /* @__PURE__ */ S({
1743
1883
  __name: "MlLanguage",
1744
1884
  props: {
1745
1885
  languages: {},
@@ -1749,31 +1889,31 @@ const ke = { render: go }, vo = /* @__PURE__ */ L({
1749
1889
  click: null
1750
1890
  },
1751
1891
  setup(t, { emit: e }) {
1752
- const n = t, i = e, l = (o) => {
1753
- i("click", o);
1892
+ const n = t, i = e, o = (l) => {
1893
+ i("click", l);
1754
1894
  };
1755
- return (o, a) => (u(), C(wo, {
1756
- icon: yo,
1895
+ return (l, a) => (u(), L(Lo, {
1896
+ icon: zo,
1757
1897
  items: n.languages,
1758
1898
  current: n.current,
1759
- onClick: l
1899
+ onClick: o
1760
1900
  }, null, 8, ["items", "current"]));
1761
1901
  }
1762
- }), xo = {}, ko = { class: "ml-status-bar" }, Mo = { class: "ml-status-bar-left" }, So = { class: "ml-status-bar-right" };
1763
- function Co(t, e) {
1764
- return u(), y("div", ko, [
1765
- d("div", Mo, [
1766
- ie(t.$slots, "left", {}, void 0, !0)
1902
+ }), Do = {}, To = { class: "ml-status-bar" }, $o = { class: "ml-status-bar-left" }, Eo = { class: "ml-status-bar-right" };
1903
+ function Ao(t, e) {
1904
+ return u(), _("div", To, [
1905
+ c("div", $o, [
1906
+ re(t.$slots, "left", {}, void 0, !0)
1767
1907
  ]),
1768
- d("div", So, [
1769
- ie(t.$slots, "right", {}, void 0, !0)
1908
+ c("div", Eo, [
1909
+ re(t.$slots, "right", {}, void 0, !0)
1770
1910
  ])
1771
1911
  ]);
1772
1912
  }
1773
- const Lo = /* @__PURE__ */ ue(xo, [["render", Co], ["__scopeId", "data-v-d6a59cf0"]]), zo = {
1913
+ const Vo = /* @__PURE__ */ fe(Do, [["render", Ao], ["__scopeId", "data-v-d6a59cf0"]]), Fo = {
1774
1914
  key: 0,
1775
1915
  class: "ml-toolbar-button-text"
1776
- }, Do = /* @__PURE__ */ L({
1916
+ }, No = /* @__PURE__ */ S({
1777
1917
  __name: "MlToolBar",
1778
1918
  props: {
1779
1919
  items: {},
@@ -1784,7 +1924,7 @@ const Lo = /* @__PURE__ */ ue(xo, [["render", Co], ["__scopeId", "data-v-d6a59cf
1784
1924
  click: null
1785
1925
  },
1786
1926
  setup(t, { emit: e }) {
1787
- const n = t, i = e, l = k(() => n.direction === "vertical" ? "ml-vertical-toolbar-button-group" : "ml-horizontal-toolbar-button-group"), o = k(() => n.size === "small" ? 20 : 30), a = k(() => {
1927
+ const n = t, i = e, o = C(() => n.direction === "vertical" ? "ml-vertical-toolbar-button-group" : "ml-horizontal-toolbar-button-group"), l = C(() => n.size === "small" ? 20 : 30), a = C(() => {
1788
1928
  switch (n.size) {
1789
1929
  case "small":
1790
1930
  return 30;
@@ -1792,36 +1932,36 @@ const Lo = /* @__PURE__ */ ue(xo, [["render", Co], ["__scopeId", "data-v-d6a59cf
1792
1932
  return 50;
1793
1933
  }
1794
1934
  return 70;
1795
- }), s = (w) => w.description ? w.description : w.text, r = k(() => n.size === "large"), c = (w) => {
1796
- i("click", w);
1935
+ }), r = (g) => g.description ? g.description : g.text, s = C(() => n.size === "large"), p = (g) => {
1936
+ i("click", g);
1797
1937
  };
1798
- return (w, f) => {
1799
- const m = se, h = at, _ = lt, b = ot;
1800
- return u(), C(b, {
1801
- class: Ce(l.value)
1938
+ return (g, b) => {
1939
+ const v = de, h = mt, w = dt, x = ut;
1940
+ return u(), L(x, {
1941
+ class: we(o.value)
1802
1942
  }, {
1803
- default: p(() => [
1804
- (u(!0), y(j, null, X(w.items, (S, $) => (u(), C(_, {
1805
- key: S.text,
1806
- content: s(S),
1943
+ default: f(() => [
1944
+ (u(!0), _(j, null, K(g.items, (D, V) => (u(), L(w, {
1945
+ key: D.text,
1946
+ content: r(D),
1807
1947
  "hide-after": 0
1808
1948
  }, {
1809
- default: p(() => [
1810
- (u(), C(h, {
1949
+ default: f(() => [
1950
+ (u(), L(h, {
1811
1951
  class: "ml-toolbar-button",
1812
- style: pe({ width: a.value + "px", height: a.value + "px" }),
1813
- key: $,
1814
- onClick: (I) => c(S.command)
1952
+ style: ge({ width: a.value + "px", height: a.value + "px" }),
1953
+ key: V,
1954
+ onClick: (y) => p(D.command)
1815
1955
  }, {
1816
- default: p(() => [
1817
- d("div", null, [
1818
- v(m, { size: o.value }, {
1819
- default: p(() => [
1820
- (u(), C(ge(S.icon)))
1956
+ default: f(() => [
1957
+ c("div", null, [
1958
+ m(v, { size: l.value }, {
1959
+ default: f(() => [
1960
+ (u(), L(ue(D.icon)))
1821
1961
  ]),
1822
1962
  _: 2
1823
1963
  }, 1032, ["size"]),
1824
- r.value ? (u(), y("div", zo, D(S.text), 1)) : q("", !0)
1964
+ s.value ? (u(), _("div", Fo, T(D.text), 1)) : H("", !0)
1825
1965
  ])
1826
1966
  ]),
1827
1967
  _: 2
@@ -1834,292 +1974,292 @@ const Lo = /* @__PURE__ */ ue(xo, [["render", Co], ["__scopeId", "data-v-d6a59cf
1834
1974
  }, 8, ["class"]);
1835
1975
  };
1836
1976
  }
1837
- }), Bo = /* @__PURE__ */ ue(Do, [["__scopeId", "data-v-5261c686"]]), Me = 20;
1838
- function To(t, e, n) {
1839
- const i = x(!1), l = (r) => {
1977
+ }), Io = /* @__PURE__ */ fe(No, [["__scopeId", "data-v-5261c686"]]), De = 20;
1978
+ function Ro(t, e, n) {
1979
+ const i = k(!1), o = (s) => {
1840
1980
  if (n.value && t.value) {
1841
- const c = t.value.getBoundingClientRect(), w = r.clientX < c.left || r.clientX > c.right || r.clientY < c.top || r.clientY > c.bottom;
1842
- i.value = !w;
1981
+ const p = t.value.getBoundingClientRect(), g = s.clientX < p.left || s.clientX > p.right || s.clientY < p.top || s.clientY > p.bottom;
1982
+ i.value = !g;
1843
1983
  }
1844
- }, o = () => {
1984
+ }, l = () => {
1845
1985
  n.value && (i.value = !0);
1846
1986
  }, a = () => {
1847
- e.value && e.value.addEventListener("mousemove", o), t.value && t.value.addEventListener("mousemove", o);
1848
- }, s = () => {
1849
- e.value && e.value.removeEventListener("mousemove", o), t.value && t.value.removeEventListener("mousemove", o);
1987
+ e.value && e.value.addEventListener("mousemove", l), t.value && t.value.addEventListener("mousemove", l);
1988
+ }, r = () => {
1989
+ e.value && e.value.removeEventListener("mousemove", l), t.value && t.value.removeEventListener("mousemove", l);
1850
1990
  };
1851
- return H(() => {
1852
- window.addEventListener("mousemove", l);
1991
+ return U(() => {
1992
+ window.addEventListener("mousemove", o);
1853
1993
  }), te(() => {
1854
- window.removeEventListener("mousemove", l);
1855
- }), E(n, (r) => {
1856
- r && (i.value = !1);
1857
- }), E(t, (r) => {
1858
- r ? a() : s();
1994
+ window.removeEventListener("mousemove", o);
1995
+ }), A(n, (s) => {
1996
+ s && (i.value = !1);
1997
+ }), A(t, (s) => {
1998
+ s ? a() : r();
1859
1999
  }), { autoOpened: i };
1860
2000
  }
1861
- function Eo(t, e, n) {
1862
- const i = x(!1), l = x(null), o = x(null), a = { x: 0, y: 0 }, s = k(() => l.value == null || o.value == null ? { x: 0, y: 0 } : {
1863
- x: l.value.x - o.value.x,
1864
- y: l.value.y - o.value.y
1865
- }), r = () => {
2001
+ function Oo(t, e, n) {
2002
+ const i = k(!1), o = k(null), l = k(null), a = { x: 0, y: 0 }, r = C(() => o.value == null || l.value == null ? { x: 0, y: 0 } : {
2003
+ x: o.value.x - l.value.x,
2004
+ y: o.value.y - l.value.y
2005
+ }), s = () => {
1866
2006
  if (t.value) {
1867
- const _ = t.value.getBoundingClientRect();
1868
- o.value = {
1869
- x: _.left,
1870
- y: _.top
1871
- }, l.value = {
1872
- x: _.left,
1873
- y: _.top
2007
+ const w = t.value.getBoundingClientRect();
2008
+ l.value = {
2009
+ x: w.left,
2010
+ y: w.top
2011
+ }, o.value = {
2012
+ x: w.left,
2013
+ y: w.top
1874
2014
  };
1875
2015
  }
1876
- }, c = () => {
1877
- t.value && t.value.addEventListener("mousedown", f);
1878
- }, w = () => {
1879
- t.value && t.value.removeEventListener("mousedown", f);
1880
- }, f = (_) => {
2016
+ }, p = () => {
2017
+ t.value && t.value.addEventListener("mousedown", b);
2018
+ }, g = () => {
2019
+ t.value && t.value.removeEventListener("mousedown", b);
2020
+ }, b = (w) => {
1881
2021
  if (t.value != null) {
1882
2022
  if (e && e.value) {
1883
- const b = e.value.getBoundingClientRect();
1884
- if (_.clientX < b.left || _.clientX > b.right || _.clientY < b.top || _.clientY > b.bottom) return;
2023
+ const x = e.value.getBoundingClientRect();
2024
+ if (w.clientX < x.left || w.clientX > x.right || w.clientY < x.top || w.clientY > x.bottom) return;
1885
2025
  }
1886
- i.value = !0, a.x = _.clientX, a.y = _.clientY, r(), document.addEventListener("mousemove", m), document.addEventListener("mouseup", h);
2026
+ i.value = !0, a.x = w.clientX, a.y = w.clientY, s(), document.addEventListener("mousemove", v), document.addEventListener("mouseup", h);
1887
2027
  }
1888
- }, m = (_) => {
1889
- if (i.value && o.value && l.value) {
1890
- const b = window.innerWidth, S = window.innerHeight, $ = t.value, I = $.getBoundingClientRect(), V = I.width, B = I.height, N = o.value.x + (_.clientX - a.x), R = o.value.y + (_.clientY - a.y);
1891
- l.value.x = Math.max(
2028
+ }, v = (w) => {
2029
+ if (i.value && l.value && o.value) {
2030
+ const x = window.innerWidth, D = window.innerHeight, V = t.value, y = V.getBoundingClientRect(), z = y.width, B = y.height, R = l.value.x + (w.clientX - a.x), O = l.value.y + (w.clientY - a.y);
2031
+ o.value.x = Math.max(
1892
2032
  n ? n.value.offset.value.left : 0,
1893
- N
2033
+ R
1894
2034
  );
1895
- const z = b - V;
1896
- l.value.x = Math.min(
1897
- n ? z - n.value.offset.value.right : z,
1898
- l.value.x
1899
- ), l.value.y = Math.max(
2035
+ const $ = x - z;
2036
+ o.value.x = Math.min(
2037
+ n ? $ - n.value.offset.value.right : $,
2038
+ o.value.x
2039
+ ), o.value.y = Math.max(
1900
2040
  n ? n.value.offset.value.top : 0,
1901
- Math.min(R, S - B)
2041
+ Math.min(O, D - B)
1902
2042
  );
1903
- const A = S - B;
1904
- l.value.y = Math.min(
1905
- n ? A - n.value.offset.value.bottom : A,
1906
- l.value.y
1907
- ), $.style.left = l.value.x + "px", $.style.top = l.value.y + "px";
2043
+ const F = D - B;
2044
+ o.value.y = Math.min(
2045
+ n ? F - n.value.offset.value.bottom : F,
2046
+ o.value.y
2047
+ ), V.style.left = o.value.x + "px", V.style.top = o.value.y + "px";
1908
2048
  }
1909
2049
  }, h = () => {
1910
- i.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", h);
2050
+ i.value = !1, document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", h);
1911
2051
  };
1912
- return H(() => {
1913
- t.value && (r(), c());
2052
+ return U(() => {
2053
+ t.value && (s(), p());
1914
2054
  }), te(() => {
1915
- t.value && t.value.removeEventListener("mousedown", f);
1916
- }), E(t, (_) => {
1917
- _ ? (r(), c()) : w();
2055
+ t.value && t.value.removeEventListener("mousedown", b);
2056
+ }), A(t, (w) => {
2057
+ w ? (s(), p()) : g();
1918
2058
  }), {
1919
2059
  isDragging: i,
1920
- movement: s,
1921
- position: l
2060
+ movement: r,
2061
+ position: o
1922
2062
  };
1923
2063
  }
1924
- function $o(t, e, n) {
1925
- const i = x(!1), l = x("left"), { isDragging: o, movement: a, position: s } = Eo(
2064
+ function Po(t, e, n) {
2065
+ const i = k(!1), o = k("left"), { isDragging: l, movement: a, position: r } = Oo(
1926
2066
  t,
1927
2067
  e,
1928
2068
  n
1929
2069
  );
1930
- return E(a, (r) => {
1931
- if (r && t.value) {
1932
- const c = t.value.getBoundingClientRect();
1933
- c.left <= n.value.offset.value.left ? (l.value = "left", i.value = !0) : window.innerWidth - c.left - c.width <= n.value.offset.value.right ? (l.value = "right", i.value = !0) : i.value = !1;
2070
+ return A(a, (s) => {
2071
+ if (s && t.value) {
2072
+ const p = t.value.getBoundingClientRect();
2073
+ p.left <= n.value.offset.value.left ? (o.value = "left", i.value = !0) : window.innerWidth - p.left - p.width <= n.value.offset.value.right ? (o.value = "right", i.value = !0) : i.value = !1;
1934
2074
  }
1935
2075
  }), {
1936
2076
  docked: i,
1937
- orientation: l,
1938
- isDragging: o,
2077
+ orientation: o,
2078
+ isDragging: l,
1939
2079
  movement: a,
1940
- position: s
2080
+ position: r
1941
2081
  };
1942
2082
  }
1943
- function Vo(t, e, n, i) {
1944
- const l = x(null), o = x(null), a = x(null), s = x(null);
1945
- return E(t, (r, c) => {
1946
- l.value = c;
1947
- }), E(e, (r, c) => {
1948
- o.value = c;
1949
- }), E(n, (r, c) => {
1950
- a.value = c;
1951
- }), E(i, (r, c) => {
1952
- s.value = c;
2083
+ function Ho(t, e, n, i) {
2084
+ const o = k(null), l = k(null), a = k(null), r = k(null);
2085
+ return A(t, (s, p) => {
2086
+ o.value = p;
2087
+ }), A(e, (s, p) => {
2088
+ l.value = p;
2089
+ }), A(n, (s, p) => {
2090
+ a.value = p;
2091
+ }), A(i, (s, p) => {
2092
+ r.value = p;
1953
2093
  }), {
1954
- lastLeft: l,
1955
- lastTop: o,
2094
+ lastLeft: o,
2095
+ lastTop: l,
1956
2096
  lastWidth: a,
1957
- lastHeight: s
2097
+ lastHeight: r
1958
2098
  };
1959
2099
  }
1960
- function Ao(t, e, n, i) {
1961
- const l = x(t.value.width), o = x(t.value.left), a = k(() => t.value.width), s = k(() => t.value.left), r = k(() => n.value ? n.value.x : null);
1962
- return E([a, s], ([c, w]) => {
1963
- (l.value == null || o.value == null || e.value) && (l.value = c, o.value = w);
1964
- }), E(r, (c) => {
1965
- i.value && n.value && (o.value = c);
1966
- }), { left: o, width: l };
2100
+ function Go(t, e, n, i) {
2101
+ const o = k(t.value.width), l = k(t.value.left), a = C(() => t.value.width), r = C(() => t.value.left), s = C(() => n.value ? n.value.x : null);
2102
+ return A([a, r], ([p, g]) => {
2103
+ (o.value == null || l.value == null || e.value) && (o.value = p, l.value = g);
2104
+ }), A(s, (p) => {
2105
+ i.value && n.value && (l.value = p);
2106
+ }), { left: l, width: o };
1967
2107
  }
1968
- function Fo(t, e = x({ left: 0, right: 0, top: 0, bottom: 0 })) {
1969
- const n = x({});
2108
+ function Wo(t, e = k({ left: 0, right: 0, top: 0, bottom: 0 })) {
2109
+ const n = k({});
1970
2110
  let i = !1;
1971
- const l = () => {
2111
+ const o = () => {
1972
2112
  if (!i && t.value) {
1973
- const o = t.value.getBoundingClientRect();
1974
- n.value.left = Math.max(o.left, e.value.left), n.value.top = Math.max(o.top, e.value.top), n.value.width = o.width, n.value.height = o.height, i = !0;
2113
+ const l = t.value.getBoundingClientRect();
2114
+ n.value.left = Math.max(l.left, e.value.left), n.value.top = Math.max(l.top, e.value.top), n.value.width = l.width, n.value.height = l.height, i = !0;
1975
2115
  }
1976
2116
  };
1977
- return H(() => {
1978
- t.value && l();
1979
- }), E(t, (o) => {
1980
- o && l();
2117
+ return U(() => {
2118
+ t.value && o();
2119
+ }), A(t, (l) => {
2120
+ l && o();
1981
2121
  }), {
1982
2122
  isIntialized: i,
1983
2123
  initialRect: n
1984
2124
  };
1985
2125
  }
1986
- function Io(t, e = x(!1), n = x(!1), i = x({ left: 0, right: 0, top: 0, bottom: 0 }), l = { width: 20, height: 40 }) {
1987
- const { initialRect: o } = Fo(t, i), a = x(!1);
1988
- let s = 0, r = 0, c = 0, w = 0, f = 0;
1989
- const m = 5, h = x(null), _ = (V) => {
2126
+ function Uo(t, e = k(!1), n = k(!1), i = k({ left: 0, right: 0, top: 0, bottom: 0 }), o = { width: 20, height: 40 }) {
2127
+ const { initialRect: l } = Wo(t, i), a = k(!1);
2128
+ let r = 0, s = 0, p = 0, g = 0, b = 0;
2129
+ const v = 5, h = k(null), w = (z) => {
1990
2130
  if (!(!t.value || e.value))
1991
2131
  if (a.value) {
1992
- const B = V.clientX - w, N = V.clientY - f;
2132
+ const B = z.clientX - g, R = z.clientY - b;
1993
2133
  if (h.value === "left" || h.value === "left-bottom-corner") {
1994
- const R = r - B;
1995
- R > l.width && (o.value.width = R, o.value.left = s + B, t.value.style.left = o.value.left + "px", t.value.style.width = o.value.width + "px");
2134
+ const O = s - B;
2135
+ O > o.width && (l.value.width = O, l.value.left = r + B, t.value.style.left = l.value.left + "px", t.value.style.width = l.value.width + "px");
1996
2136
  }
1997
2137
  if (h.value === "right" || h.value === "right-bottom-corner") {
1998
- const R = r + B;
1999
- R > l.width && (o.value.width = R, t.value.style.width = o.value.width + "px");
2138
+ const O = s + B;
2139
+ O > o.width && (l.value.width = O, t.value.style.width = l.value.width + "px");
2000
2140
  }
2001
2141
  if (h.value === "bottom" || h.value === "left-bottom-corner" || h.value === "right-bottom-corner") {
2002
- const R = c + N;
2003
- R > l.height && (o.value.height = R, t.value.style.height = o.value.height + "px");
2142
+ const O = p + R;
2143
+ O > o.height && (l.value.height = O, t.value.style.height = l.value.height + "px");
2004
2144
  }
2005
2145
  } else {
2006
- const B = t.value.getBoundingClientRect(), N = V.clientX - B.left, R = V.clientY - B.top, z = N <= m, A = N >= B.width - m, O = R >= B.height - m;
2007
- z && O && n.value ? (t.value.style.cursor = "nesw-resize", h.value = "left-bottom-corner") : A && O && !n.value ? (t.value.style.cursor = "nwse-resize", h.value = "right-bottom-corner") : z && n.value ? (t.value.style.cursor = "ew-resize", h.value = "left") : A && !n.value ? (t.value.style.cursor = "ew-resize", h.value = "right") : O ? (t.value.style.cursor = "ns-resize", h.value = "bottom") : (t.value.style.cursor = "", h.value = null);
2146
+ const B = t.value.getBoundingClientRect(), R = z.clientX - B.left, O = z.clientY - B.top, $ = R <= v, F = R >= B.width - v, G = O >= B.height - v;
2147
+ $ && G && n.value ? (t.value.style.cursor = "nesw-resize", h.value = "left-bottom-corner") : F && G && !n.value ? (t.value.style.cursor = "nwse-resize", h.value = "right-bottom-corner") : $ && n.value ? (t.value.style.cursor = "ew-resize", h.value = "left") : F && !n.value ? (t.value.style.cursor = "ew-resize", h.value = "right") : G ? (t.value.style.cursor = "ns-resize", h.value = "bottom") : (t.value.style.cursor = "", h.value = null);
2008
2148
  }
2009
- }, b = (V) => {
2149
+ }, x = (z) => {
2010
2150
  if (!t.value || !h.value) return;
2011
2151
  const B = t.value.getBoundingClientRect();
2012
- w = V.clientX, f = V.clientY, r = B.width, c = B.height, s = B.left, o.value.width = r, o.value.height = c, o.value.left = B.left, o.value.top = B.top, a.value = !0, document.addEventListener("mousemove", _), document.addEventListener("mouseup", S);
2013
- }, S = () => {
2014
- a.value = !1, h.value = null, t.value && (t.value.style.cursor = ""), document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", S);
2015
- }, $ = () => {
2016
- t.value && (t.value.removeEventListener("mousedown", b), t.value.removeEventListener("mousemove", _)), document.removeEventListener("mouseup", S);
2017
- }, I = () => {
2018
- t.value && (t.value.addEventListener("mousedown", b), t.value.addEventListener("mousemove", _));
2152
+ g = z.clientX, b = z.clientY, s = B.width, p = B.height, r = B.left, l.value.width = s, l.value.height = p, l.value.left = B.left, l.value.top = B.top, a.value = !0, document.addEventListener("mousemove", w), document.addEventListener("mouseup", D);
2153
+ }, D = () => {
2154
+ a.value = !1, h.value = null, t.value && (t.value.style.cursor = ""), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", D);
2155
+ }, V = () => {
2156
+ t.value && (t.value.removeEventListener("mousedown", x), t.value.removeEventListener("mousemove", w)), document.removeEventListener("mouseup", D);
2157
+ }, y = () => {
2158
+ t.value && (t.value.addEventListener("mousedown", x), t.value.addEventListener("mousemove", w));
2019
2159
  };
2020
- return H(() => {
2021
- t.value && I();
2022
- }), De(() => {
2023
- $();
2024
- }), E(t, (V) => {
2025
- V ? I() : $();
2026
- }), { rect: o, isResizing: a };
2160
+ return U(() => {
2161
+ t.value && y();
2162
+ }), Ve(() => {
2163
+ V();
2164
+ }), A(t, (z) => {
2165
+ z ? y() : V();
2166
+ }), { rect: l, isResizing: a };
2027
2167
  }
2028
- function Ro(t, e, n, i) {
2029
- const l = () => {
2168
+ function qo(t, e, n, i) {
2169
+ const o = () => {
2030
2170
  if (t.value) {
2031
- const r = t.value;
2032
- e.value ? r.style.transition = "width 0.3s ease-out, left 0.3s ease-out" : r.style.transition = "width 0.3s ease";
2171
+ const s = t.value;
2172
+ e.value ? s.style.transition = "width 0.3s ease-out, left 0.3s ease-out" : s.style.transition = "width 0.3s ease";
2033
2173
  }
2034
- }, o = () => {
2174
+ }, l = () => {
2035
2175
  t.value && (t.value.style.transition = "");
2036
2176
  }, a = () => {
2037
- t.value && t.value.removeEventListener("transitionend", o);
2038
- }, s = () => {
2039
- t.value && t.value.addEventListener("transitionend", o);
2177
+ t.value && t.value.removeEventListener("transitionend", l);
2178
+ }, r = () => {
2179
+ t.value && t.value.addEventListener("transitionend", l);
2040
2180
  };
2041
- H(() => {
2042
- t.value && t.value.addEventListener("transitionend", o);
2043
- }), De(() => {
2044
- t.value && t.value.removeEventListener("transitionend", o);
2045
- }), E(t, (r) => {
2046
- r ? s() : a();
2047
- }), E(n, () => {
2048
- l();
2049
- }), E(i, () => {
2050
- l();
2181
+ U(() => {
2182
+ t.value && t.value.addEventListener("transitionend", l);
2183
+ }), Ve(() => {
2184
+ t.value && t.value.removeEventListener("transitionend", l);
2185
+ }), A(t, (s) => {
2186
+ s ? r() : a();
2187
+ }), A(n, () => {
2188
+ o();
2189
+ }), A(i, () => {
2190
+ o();
2051
2191
  });
2052
2192
  }
2053
- function Po(t, e, n, i) {
2054
- const l = x(window.innerWidth), o = x(window.innerHeight), { docked: a, orientation: s, movement: r, position: c, isDragging: w } = $o(
2193
+ function jo(t, e, n, i) {
2194
+ const o = k(window.innerWidth), l = k(window.innerHeight), { docked: a, orientation: r, movement: s, position: p, isDragging: g } = Po(
2055
2195
  t,
2056
2196
  e,
2057
2197
  i
2058
- ), f = k(() => s.value === "right"), { rect: m, isResizing: h } = Io(
2198
+ ), b = C(() => r.value === "right"), { rect: v, isResizing: h } = Uo(
2059
2199
  t,
2060
2200
  n,
2061
- f,
2201
+ b,
2062
2202
  i.value.offset
2063
- ), { width: _, left: b } = Ao(
2064
- m,
2203
+ ), { width: w, left: x } = Go(
2204
+ v,
2065
2205
  h,
2066
- c,
2067
- w
2068
- ), { lastTop: S, lastHeight: $ } = Vo(
2069
- k(() => m.value.left),
2070
- k(() => m.value.top),
2071
- k(() => m.value.width),
2072
- k(() => m.value.height)
2073
- ), { autoOpened: I } = To(t, e, n);
2074
- Ro(t, f, n, I);
2075
- const V = (z) => {
2206
+ p,
2207
+ g
2208
+ ), { lastTop: D, lastHeight: V } = Ho(
2209
+ C(() => v.value.left),
2210
+ C(() => v.value.top),
2211
+ C(() => v.value.width),
2212
+ C(() => v.value.height)
2213
+ ), { autoOpened: y } = Ro(t, e, n);
2214
+ qo(t, b, n, y);
2215
+ const z = ($) => {
2076
2216
  if (t.value) {
2077
- const A = t.value.getBoundingClientRect(), O = A.left + z;
2078
- if (f.value) {
2079
- m.value.left = O;
2080
- const de = window.innerWidth - A.width - A.left;
2081
- A.left <= 0 && de >= 0 && z < 0 && (m.value.left = Math.max(0, O)), window.innerWidth - A.width <= 0 && (m.value.left = window.innerWidth - A.width);
2217
+ const F = t.value.getBoundingClientRect(), G = F.left + $;
2218
+ if (b.value) {
2219
+ v.value.left = G;
2220
+ const ne = window.innerWidth - F.width - F.left;
2221
+ F.left <= 0 && ne >= 0 && $ < 0 && (v.value.left = Math.max(0, G)), window.innerWidth - F.width <= 0 && (v.value.left = window.innerWidth - F.width);
2082
2222
  } else
2083
- A.left + A.width >= window.innerWidth && z < 0 && (m.value.left = Math.max(0, O));
2223
+ F.left + F.width >= window.innerWidth && $ < 0 && (v.value.left = Math.max(0, G));
2084
2224
  }
2085
2225
  }, B = () => {
2086
- const z = window.innerWidth - l.value;
2087
- l.value = window.innerWidth, o.value = window.innerHeight, V(z);
2226
+ const $ = window.innerWidth - o.value;
2227
+ o.value = window.innerWidth, l.value = window.innerHeight, z($);
2088
2228
  };
2089
- H(() => {
2229
+ U(() => {
2090
2230
  window.addEventListener("resize", B);
2091
2231
  }), te(() => {
2092
2232
  window.removeEventListener("resize", B);
2093
2233
  });
2094
- const N = (z) => {
2095
- z ? (m.value.width = Me, f.value && b.value && _.value && (m.value.left = b.value + _.value - Me)) : (m.value.width = _.value, f.value && b.value && _.value && (m.value.left = b.value));
2096
- }, R = () => {
2097
- a.value ? (m.value.top = i.value.offset.value.top, m.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (m.value.top = S.value, m.value.height = $.value);
2234
+ const R = ($) => {
2235
+ $ ? (v.value.width = De, b.value && x.value && w.value && (v.value.left = x.value + w.value - De)) : (v.value.width = w.value, b.value && x.value && w.value && (v.value.left = x.value));
2236
+ }, O = () => {
2237
+ a.value ? (v.value.top = i.value.offset.value.top, v.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (v.value.top = D.value, v.value.height = V.value);
2098
2238
  };
2099
- return E(a, () => {
2100
- R();
2101
- }), E(n, (z) => {
2102
- N(z);
2103
- }), E(I, (z) => {
2104
- n.value && !w.value && N(!z);
2105
- }), E(r, (z) => {
2106
- if (z && t.value) {
2107
- const A = t.value.getBoundingClientRect();
2108
- m.value.left = A.left, m.value.top = A.top;
2239
+ return A(a, () => {
2240
+ O();
2241
+ }), A(n, ($) => {
2242
+ R($);
2243
+ }), A(y, ($) => {
2244
+ n.value && !g.value && R(!$);
2245
+ }), A(s, ($) => {
2246
+ if ($ && t.value) {
2247
+ const F = t.value.getBoundingClientRect();
2248
+ v.value.left = F.left, v.value.top = F.top;
2109
2249
  }
2110
- }), { rect: m, orientation: s, reversed: f };
2250
+ }), { rect: v, orientation: r, reversed: b };
2111
2251
  }
2112
- const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ */ No(() => /* @__PURE__ */ d("svg", {
2252
+ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ */ Yo(() => /* @__PURE__ */ c("svg", {
2113
2253
  xmlns: "http://www.w3.org/2000/svg",
2114
2254
  width: "1em",
2115
2255
  height: "1em",
2116
2256
  viewBox: "0 0 1024 1024"
2117
2257
  }, [
2118
- /* @__PURE__ */ d("path", {
2258
+ /* @__PURE__ */ c("path", {
2119
2259
  fill: "currentColor",
2120
2260
  d: "M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
2121
2261
  })
2122
- ], -1)), Ho = { class: "ml-tool-palette-title" }, Go = { class: "ml-tool-palette-content" }, Wo = /* @__PURE__ */ L({
2262
+ ], -1)), Xo = { class: "ml-tool-palette-title" }, Qo = { class: "ml-tool-palette-content" }, Zo = /* @__PURE__ */ S({
2123
2263
  __name: "MlToolPalette",
2124
2264
  props: /* @__PURE__ */ J({
2125
2265
  title: { default: "" },
@@ -2133,134 +2273,134 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
2133
2273
  }),
2134
2274
  emits: /* @__PURE__ */ J(["close"], ["update:modelValue"]),
2135
2275
  setup(t, { emit: e }) {
2136
- const n = t, i = ve(t, "modelValue"), l = e, o = x(!1), a = x(null), s = x(null), r = k(() => ({
2137
- offset: x({
2276
+ const n = t, i = _e(t, "modelValue"), o = e, l = k(!1), a = k(null), r = k(null), s = C(() => ({
2277
+ offset: k({
2138
2278
  left: n.leftOffset,
2139
2279
  right: n.rightOffset,
2140
2280
  top: n.topOffset,
2141
2281
  bottom: n.bottomOffset
2142
2282
  })
2143
2283
  })), {
2144
- rect: c,
2145
- orientation: w,
2146
- reversed: f
2147
- } = Po(s, a, o, r), m = k(() => ({
2148
- left: `${c.value.left}px`,
2149
- top: `${c.value.top}px`,
2150
- width: `${c.value.width}px`,
2151
- height: `${c.value.height}px`
2152
- })), h = k(() => f.value ? {
2284
+ rect: p,
2285
+ orientation: g,
2286
+ reversed: b
2287
+ } = jo(r, a, l, s), v = C(() => ({
2288
+ left: `${p.value.left}px`,
2289
+ top: `${p.value.top}px`,
2290
+ width: `${p.value.width}px`,
2291
+ height: `${p.value.height}px`
2292
+ })), h = C(() => b.value ? {
2153
2293
  borderLeft: "1px solid var(--el-border-color)",
2154
2294
  borderRight: null
2155
2295
  } : {
2156
2296
  borderLeft: null,
2157
2297
  borderRight: "1px solid var(--el-border-color)"
2158
- }), _ = () => {
2298
+ }), w = () => {
2159
2299
  i.value = !1;
2160
- const b = s.value;
2161
- l("close", {
2162
- x: b ? b.clientLeft : 0,
2163
- y: b ? b.clientTop : 0
2300
+ const x = r.value;
2301
+ o("close", {
2302
+ x: x ? x.clientLeft : 0,
2303
+ y: x ? x.clientTop : 0
2164
2304
  });
2165
2305
  };
2166
- return (b, S) => {
2167
- const $ = se;
2168
- return i.value ? (u(), y("div", {
2306
+ return (x, D) => {
2307
+ const V = de;
2308
+ return i.value ? (u(), _("div", {
2169
2309
  key: 0,
2170
2310
  ref_key: "toolPaletteElement",
2171
- ref: s,
2172
- style: pe([m.value]),
2311
+ ref: r,
2312
+ style: ge([v.value]),
2173
2313
  class: "ml-tool-palette-dialog"
2174
2314
  }, [
2175
- d("div", {
2176
- class: Ce(["ml-tool-palette-dialog-layout", g(w)])
2315
+ c("div", {
2316
+ class: we(["ml-tool-palette-dialog-layout", d(g)])
2177
2317
  }, [
2178
- d("div", {
2318
+ c("div", {
2179
2319
  ref_key: "titleBarElement",
2180
2320
  ref: a,
2181
2321
  class: "ml-tool-palette-title-bar",
2182
- style: pe(h.value)
2322
+ style: ge(h.value)
2183
2323
  }, [
2184
- v($, {
2324
+ m(V, {
2185
2325
  size: 18,
2186
2326
  class: "ml-tool-palette-dialog-icon",
2187
- onClick: _
2327
+ onClick: w
2188
2328
  }, {
2189
- default: p(() => [
2190
- Oo
2329
+ default: f(() => [
2330
+ Ko
2191
2331
  ]),
2192
2332
  _: 1
2193
2333
  }),
2194
- v(vo, {
2334
+ m(ko, {
2195
2335
  class: "ml-tool-palette-dialog-icon",
2196
- modelValue: o.value,
2197
- "onUpdate:modelValue": S[0] || (S[0] = (I) => o.value = I),
2198
- reverse: g(f)
2336
+ modelValue: l.value,
2337
+ "onUpdate:modelValue": D[0] || (D[0] = (y) => l.value = y),
2338
+ reverse: d(b)
2199
2339
  }, null, 8, ["modelValue", "reverse"]),
2200
- d("span", Ho, D(n.title), 1)
2340
+ c("span", Xo, T(n.title), 1)
2201
2341
  ], 4),
2202
- d("div", Go, [
2203
- ie(b.$slots, "default", {}, void 0, !0)
2342
+ c("div", Qo, [
2343
+ re(x.$slots, "default", {}, void 0, !0)
2204
2344
  ])
2205
2345
  ], 2)
2206
- ], 4)) : q("", !0);
2346
+ ], 4)) : H("", !0);
2207
2347
  };
2208
2348
  }
2209
- }), qo = /* @__PURE__ */ ue(Wo, [["__scopeId", "data-v-8645db4f"]]), Uo = { class: "ml-layer-list-cell" }, jo = { class: "ml-layer-list-cell" }, Yo = /* @__PURE__ */ L({
2349
+ }), Jo = /* @__PURE__ */ fe(Zo, [["__scopeId", "data-v-8645db4f"]]), el = { class: "ml-layer-list-cell" }, tl = { class: "ml-layer-list-cell" }, nl = /* @__PURE__ */ S({
2210
2350
  __name: "MlLayerList",
2211
2351
  props: {
2212
2352
  editor: {}
2213
2353
  },
2214
2354
  setup(t) {
2215
- const { t: e } = P(), n = t, i = gt(n.editor), l = x(), o = x([]), a = (r) => {
2216
- o.value = r;
2217
- }, s = (r) => {
2218
- const c = n.editor.curDocument.database.tables.layerTable.getAt(
2219
- r.name
2355
+ const { t: e } = P(), n = t, i = bt(n.editor), o = k(), l = k([]), a = (s) => {
2356
+ l.value = s;
2357
+ }, r = (s) => {
2358
+ const p = n.editor.curDocument.database.tables.layerTable.getAt(
2359
+ s.name
2220
2360
  );
2221
- c && (c.isOff = !r.isOn);
2361
+ p && (p.isOff = !s.isOn);
2222
2362
  };
2223
- return (r, c) => {
2224
- const w = M("el-table-column"), f = M("el-checkbox"), m = M("el-tag");
2225
- return u(), C(g(Qe), {
2363
+ return (s, p) => {
2364
+ const g = M("el-table-column"), b = M("el-checkbox"), v = M("el-tag");
2365
+ return u(), L(d(lt), {
2226
2366
  ref_key: "multipleTableRef",
2227
- ref: l,
2228
- data: g(i),
2367
+ ref: o,
2368
+ data: d(i),
2229
2369
  class: "ml-layer-list",
2230
2370
  onSelectionChange: a
2231
2371
  }, {
2232
- default: p(() => [
2233
- v(w, {
2372
+ default: f(() => [
2373
+ m(g, {
2234
2374
  property: "name",
2235
- label: g(e)("main.toolPalette.layerManager.layerList.name"),
2375
+ label: d(e)("main.toolPalette.layerManager.layerList.name"),
2236
2376
  "min-width": "120",
2237
2377
  sortable: "",
2238
2378
  "show-overflow-tooltip": ""
2239
2379
  }, null, 8, ["label"]),
2240
- v(w, {
2380
+ m(g, {
2241
2381
  property: "isOn",
2242
- label: g(e)("main.toolPalette.layerManager.layerList.on"),
2382
+ label: d(e)("main.toolPalette.layerManager.layerList.on"),
2243
2383
  width: "50"
2244
2384
  }, {
2245
- default: p((h) => [
2246
- d("div", Uo, [
2247
- v(f, {
2385
+ default: f((h) => [
2386
+ c("div", el, [
2387
+ m(b, {
2248
2388
  modelValue: h.row.isOn,
2249
- "onUpdate:modelValue": (_) => h.row.isOn = _,
2250
- onChange: (_) => s(h.row)
2389
+ "onUpdate:modelValue": (w) => h.row.isOn = w,
2390
+ onChange: (w) => r(h.row)
2251
2391
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
2252
2392
  ])
2253
2393
  ]),
2254
2394
  _: 1
2255
2395
  }, 8, ["label"]),
2256
- v(w, {
2396
+ m(g, {
2257
2397
  property: "color",
2258
- label: g(e)("main.toolPalette.layerManager.layerList.color"),
2398
+ label: d(e)("main.toolPalette.layerManager.layerList.color"),
2259
2399
  width: "70"
2260
2400
  }, {
2261
- default: p((h) => [
2262
- d("div", jo, [
2263
- v(m, {
2401
+ default: f((h) => [
2402
+ c("div", tl, [
2403
+ m(v, {
2264
2404
  color: h.row.color,
2265
2405
  class: "ml-layer-list-color"
2266
2406
  }, null, 8, ["color"])
@@ -2273,23 +2413,23 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
2273
2413
  }, 8, ["data"]);
2274
2414
  };
2275
2415
  }
2276
- }), Ko = { class: "ml-layer-list-wrapper" }, Xo = /* @__PURE__ */ L({
2416
+ }), ol = { class: "ml-layer-list-wrapper" }, ll = /* @__PURE__ */ S({
2277
2417
  __name: "MlLayerManager",
2278
2418
  props: {
2279
2419
  editor: {}
2280
2420
  },
2281
2421
  setup(t) {
2282
2422
  const e = t;
2283
- return (n, i) => (u(), C(g(qo), {
2423
+ return (n, i) => (u(), L(d(Jo), {
2284
2424
  class: "ml-layer-manager",
2285
- modelValue: g(Z).dialogs.layerManager,
2286
- "onUpdate:modelValue": i[0] || (i[0] = (l) => g(Z).dialogs.layerManager = l),
2425
+ modelValue: d(Z).dialogs.layerManager,
2426
+ "onUpdate:modelValue": i[0] || (i[0] = (o) => d(Z).dialogs.layerManager = o),
2287
2427
  title: "Layers",
2288
2428
  "bottom-offset": 30
2289
2429
  }, {
2290
- default: p(() => [
2291
- d("div", Ko, [
2292
- v(Yo, {
2430
+ default: f(() => [
2431
+ c("div", ol, [
2432
+ m(nl, {
2293
2433
  editor: e.editor
2294
2434
  }, null, 8, ["editor"])
2295
2435
  ])
@@ -2297,58 +2437,58 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
2297
2437
  _: 1
2298
2438
  }, 8, ["modelValue"]));
2299
2439
  }
2300
- }), Qo = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d49ba2cb"]]), Zo = { class: "autocomplete-container" }, Jo = /* @__PURE__ */ L({
2440
+ }), al = /* @__PURE__ */ W(ll, [["__scopeId", "data-v-d49ba2cb"]]), il = { class: "autocomplete-container" }, sl = /* @__PURE__ */ S({
2301
2441
  __name: "MlCommandLine",
2302
2442
  setup(t) {
2303
- const { t: e } = P(), n = ce(), i = ut(), l = x(""), o = x(""), a = (c, w) => {
2304
- const f = c ? i.filter(
2305
- (m) => m.commandName.startsWith(c.toLowerCase())
2443
+ const { t: e } = P(), n = pe(), i = ht(), o = k(""), l = k(""), a = (p, g) => {
2444
+ const b = p ? i.filter(
2445
+ (v) => v.commandName.startsWith(p.toLowerCase())
2306
2446
  ) : i;
2307
- w(f);
2308
- }, s = () => {
2309
- l.value && (T.instance.sendStringToExecute(l.value), o.value = l.value, l.value = "");
2310
- }, r = (c, w) => `${w}: ${fe(c, w)}`;
2311
- return (c, w) => (u(), y("div", Zo, [
2312
- g(n).isShowCommandLine ? (u(), C(g(Ze), {
2447
+ g(b);
2448
+ }, r = () => {
2449
+ o.value && (E.instance.sendStringToExecute(o.value), l.value = o.value, o.value = "");
2450
+ }, s = (p, g) => `${g}: ${ye(p, g)}`;
2451
+ return (p, g) => (u(), _("div", il, [
2452
+ d(n).isShowCommandLine ? (u(), L(d(at), {
2313
2453
  key: 0,
2314
- modelValue: l.value,
2315
- "onUpdate:modelValue": w[0] || (w[0] = (f) => l.value = f),
2454
+ modelValue: o.value,
2455
+ "onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b),
2316
2456
  "value-key": "commandName",
2317
2457
  clearable: "",
2318
2458
  "fetch-suggestions": a,
2319
- placeholder: g(e)("main.commandLine.prompt"),
2459
+ placeholder: d(e)("main.commandLine.prompt"),
2320
2460
  debounce: 300,
2321
2461
  "trigger-on-focus": "",
2322
2462
  "fit-input-width": !1,
2323
- onSelect: s,
2324
- onKeydown: Ne(s, ["enter"]),
2463
+ onSelect: r,
2464
+ onKeydown: je(r, ["enter"]),
2325
2465
  class: "autocomplete-input"
2326
2466
  }, {
2327
- default: p(({ item: f }) => [
2328
- d("div", null, D(r(f.groupName, f.commandName)), 1)
2467
+ default: f(({ item: b }) => [
2468
+ c("div", null, T(s(b.groupName, b.commandName)), 1)
2329
2469
  ]),
2330
- prepend: p(() => [
2331
- F(D(`> ${o.value}`), 1)
2470
+ prepend: f(() => [
2471
+ N(T(`> ${l.value}`), 1)
2332
2472
  ]),
2333
2473
  _: 1
2334
- }, 8, ["modelValue", "placeholder"])) : q("", !0)
2474
+ }, 8, ["modelValue", "placeholder"])) : H("", !0)
2335
2475
  ]));
2336
2476
  }
2337
- }), el = /* @__PURE__ */ G(Jo, [["__scopeId", "data-v-082845cb"]]), tl = /* @__PURE__ */ L({
2477
+ }), rl = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-082845cb"]]), cl = /* @__PURE__ */ S({
2338
2478
  __name: "MlEntityInfo",
2339
2479
  setup(t) {
2340
- Se((m) => ({
2480
+ $e((v) => ({
2341
2481
  "2d5cc4ca": a.value,
2342
- "11fa7d7e": s.value
2482
+ "11fa7d7e": r.value
2343
2483
  }));
2344
- const { t: e } = P(), n = x(!1), i = x(-1), l = x(-1), o = x(null), a = k(() => i.value + "px"), s = k(() => l.value + "px"), r = k(() => {
2345
- const m = T.instance.curDocument.database;
2346
- if (o.value) {
2347
- const h = m.tables.blockTable.modelSpace.getIdAt(o.value);
2484
+ const { t: e } = P(), n = k(!1), i = k(-1), o = k(-1), l = k(null), a = C(() => i.value + "px"), r = C(() => o.value + "px"), s = C(() => {
2485
+ const v = E.instance.curDocument.database;
2486
+ if (l.value) {
2487
+ const h = v.tables.blockTable.modelSpace.getIdAt(l.value);
2348
2488
  if (h)
2349
2489
  return {
2350
- type: Ct(h),
2351
- color: Lt(h.color.toString()),
2490
+ type: Et(h),
2491
+ color: At(h.color.toString()),
2352
2492
  layer: h.layer,
2353
2493
  lineType: h.lineType
2354
2494
  };
@@ -2359,34 +2499,34 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
2359
2499
  layer: "",
2360
2500
  lineType: ""
2361
2501
  };
2362
- }), c = k(() => n.value && r.value.type != ""), w = (m) => {
2363
- o.value = m.id, i.value = m.x, l.value = m.y, n.value = !0;
2364
- }, f = () => {
2502
+ }), p = C(() => n.value && s.value.type != ""), g = (v) => {
2503
+ l.value = v.id, i.value = v.x, o.value = v.y, n.value = !0;
2504
+ }, b = () => {
2365
2505
  n.value = !1;
2366
2506
  };
2367
- return H(() => {
2368
- const m = T.instance.curView.events;
2369
- m.hover.addEventListener(w), m.unhover.addEventListener(f);
2507
+ return U(() => {
2508
+ const v = E.instance.curView.events;
2509
+ v.hover.addEventListener(g), v.unhover.addEventListener(b);
2370
2510
  }), te(() => {
2371
- const m = T.instance.curView.events;
2372
- m.hover.removeEventListener(w), m.unhover.removeEventListener(f);
2373
- }), (m, h) => {
2374
- const _ = M("el-text"), b = M("el-col"), S = M("el-row"), $ = M("el-card");
2375
- return c.value ? (u(), C($, {
2511
+ const v = E.instance.curView.events;
2512
+ v.hover.removeEventListener(g), v.unhover.removeEventListener(b);
2513
+ }), (v, h) => {
2514
+ const w = M("el-text"), x = M("el-col"), D = M("el-row"), V = M("el-card");
2515
+ return p.value ? (u(), L(V, {
2376
2516
  key: 0,
2377
2517
  class: "ml-entity-info"
2378
2518
  }, {
2379
- default: p(() => [
2380
- v(S, { class: "ml-entity-info-text" }, {
2381
- default: p(() => [
2382
- v(b, { span: 24 }, {
2383
- default: p(() => [
2384
- v(_, {
2519
+ default: f(() => [
2520
+ m(D, { class: "ml-entity-info-text" }, {
2521
+ default: f(() => [
2522
+ m(x, { span: 24 }, {
2523
+ default: f(() => [
2524
+ m(w, {
2385
2525
  size: "small",
2386
2526
  class: "ml-entity-info-title"
2387
2527
  }, {
2388
- default: p(() => [
2389
- F(D(r.value.type), 1)
2528
+ default: f(() => [
2529
+ N(T(s.value.type), 1)
2390
2530
  ]),
2391
2531
  _: 1
2392
2532
  })
@@ -2396,24 +2536,24 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
2396
2536
  ]),
2397
2537
  _: 1
2398
2538
  }),
2399
- v(S, { class: "ml-entity-info-text" }, {
2400
- default: p(() => [
2401
- v(b, { span: 10 }, {
2402
- default: p(() => [
2403
- v(_, { size: "small" }, {
2404
- default: p(() => [
2405
- F(D(g(e)("main.entityInfo.color")), 1)
2539
+ m(D, { class: "ml-entity-info-text" }, {
2540
+ default: f(() => [
2541
+ m(x, { span: 10 }, {
2542
+ default: f(() => [
2543
+ m(w, { size: "small" }, {
2544
+ default: f(() => [
2545
+ N(T(d(e)("main.entityInfo.color")), 1)
2406
2546
  ]),
2407
2547
  _: 1
2408
2548
  })
2409
2549
  ]),
2410
2550
  _: 1
2411
2551
  }),
2412
- v(b, { span: 14 }, {
2413
- default: p(() => [
2414
- v(_, { size: "small" }, {
2415
- default: p(() => [
2416
- F(D(r.value.color), 1)
2552
+ m(x, { span: 14 }, {
2553
+ default: f(() => [
2554
+ m(w, { size: "small" }, {
2555
+ default: f(() => [
2556
+ N(T(s.value.color), 1)
2417
2557
  ]),
2418
2558
  _: 1
2419
2559
  })
@@ -2423,24 +2563,24 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
2423
2563
  ]),
2424
2564
  _: 1
2425
2565
  }),
2426
- v(S, { class: "ml-entity-info-text" }, {
2427
- default: p(() => [
2428
- v(b, { span: 10 }, {
2429
- default: p(() => [
2430
- v(_, { size: "small" }, {
2431
- default: p(() => [
2432
- F(D(g(e)("main.entityInfo.layer")), 1)
2566
+ m(D, { class: "ml-entity-info-text" }, {
2567
+ default: f(() => [
2568
+ m(x, { span: 10 }, {
2569
+ default: f(() => [
2570
+ m(w, { size: "small" }, {
2571
+ default: f(() => [
2572
+ N(T(d(e)("main.entityInfo.layer")), 1)
2433
2573
  ]),
2434
2574
  _: 1
2435
2575
  })
2436
2576
  ]),
2437
2577
  _: 1
2438
2578
  }),
2439
- v(b, { span: 14 }, {
2440
- default: p(() => [
2441
- v(_, { size: "small" }, {
2442
- default: p(() => [
2443
- F(D(r.value.layer), 1)
2579
+ m(x, { span: 14 }, {
2580
+ default: f(() => [
2581
+ m(w, { size: "small" }, {
2582
+ default: f(() => [
2583
+ N(T(s.value.layer), 1)
2444
2584
  ]),
2445
2585
  _: 1
2446
2586
  })
@@ -2450,24 +2590,24 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
2450
2590
  ]),
2451
2591
  _: 1
2452
2592
  }),
2453
- v(S, { class: "ml-entity-info-text" }, {
2454
- default: p(() => [
2455
- v(b, { span: 10 }, {
2456
- default: p(() => [
2457
- v(_, { size: "small" }, {
2458
- default: p(() => [
2459
- F(D(g(e)("main.entityInfo.lineType")), 1)
2593
+ m(D, { class: "ml-entity-info-text" }, {
2594
+ default: f(() => [
2595
+ m(x, { span: 10 }, {
2596
+ default: f(() => [
2597
+ m(w, { size: "small" }, {
2598
+ default: f(() => [
2599
+ N(T(d(e)("main.entityInfo.lineType")), 1)
2460
2600
  ]),
2461
2601
  _: 1
2462
2602
  })
2463
2603
  ]),
2464
2604
  _: 1
2465
2605
  }),
2466
- v(b, { span: 14 }, {
2467
- default: p(() => [
2468
- v(_, { size: "small" }, {
2469
- default: p(() => [
2470
- F(D(r.value.lineType), 1)
2606
+ m(x, { span: 14 }, {
2607
+ default: f(() => [
2608
+ m(w, { size: "small" }, {
2609
+ default: f(() => [
2610
+ N(T(s.value.lineType), 1)
2471
2611
  ]),
2472
2612
  _: 1
2473
2613
  })
@@ -2479,16 +2619,16 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
2479
2619
  })
2480
2620
  ]),
2481
2621
  _: 1
2482
- })) : q("", !0);
2622
+ })) : H("", !0);
2483
2623
  };
2484
2624
  }
2485
- }), nl = /* @__PURE__ */ G(tl, [["__scopeId", "data-v-6a67bbe7"]]), ol = /* @__PURE__ */ L({
2625
+ }), ul = /* @__PURE__ */ W(cl, [["__scopeId", "data-v-6a67bbe7"]]), dl = /* @__PURE__ */ S({
2486
2626
  __name: "MlLanguageSelector",
2487
2627
  props: {
2488
2628
  currentLocale: { default: void 0 }
2489
2629
  },
2490
2630
  setup(t) {
2491
- const e = t, { effectiveLocale: n, setLocale: i } = Ee(e.currentLocale), l = U([
2631
+ const e = t, { effectiveLocale: n, setLocale: i } = Ie(e.currentLocale), o = Y([
2492
2632
  {
2493
2633
  name: "en",
2494
2634
  text: "English"
@@ -2497,142 +2637,248 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
2497
2637
  name: "zh",
2498
2638
  text: "简体中文"
2499
2639
  }
2500
- ]), o = (a) => {
2640
+ ]), l = (a) => {
2501
2641
  (a === "en" || a === "zh") && i(a);
2502
2642
  };
2503
- return (a, s) => (u(), C(g(bo), {
2643
+ return (a, r) => (u(), L(d(Bo), {
2504
2644
  class: "ml-language-selector",
2505
- languages: l,
2506
- current: g(n),
2507
- onClick: o
2645
+ languages: o,
2646
+ current: d(n),
2647
+ onClick: l
2508
2648
  }, null, 8, ["languages", "current"]));
2509
2649
  }
2510
- }), ll = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-1b9f7bc0"]]);
2650
+ }), ml = /* @__PURE__ */ W(dl, [["__scopeId", "data-v-1b9f7bc0"]]);
2511
2651
  /*! Element Plus Icons Vue v2.3.1 */
2512
- var al = /* @__PURE__ */ L({
2652
+ var pl = /* @__PURE__ */ S({
2653
+ name: "Bell",
2654
+ __name: "bell",
2655
+ setup(t) {
2656
+ return (e, n) => (u(), _("svg", {
2657
+ xmlns: "http://www.w3.org/2000/svg",
2658
+ viewBox: "0 0 1024 1024"
2659
+ }, [
2660
+ c("path", {
2661
+ fill: "currentColor",
2662
+ d: "M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"
2663
+ }),
2664
+ c("path", {
2665
+ fill: "currentColor",
2666
+ d: "M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"
2667
+ }),
2668
+ c("path", {
2669
+ fill: "currentColor",
2670
+ d: "M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"
2671
+ })
2672
+ ]));
2673
+ }
2674
+ }), he = pl, fl = /* @__PURE__ */ S({
2513
2675
  name: "Check",
2514
2676
  __name: "check",
2515
2677
  setup(t) {
2516
- return (e, n) => (u(), y("svg", {
2678
+ return (e, n) => (u(), _("svg", {
2517
2679
  xmlns: "http://www.w3.org/2000/svg",
2518
2680
  viewBox: "0 0 1024 1024"
2519
2681
  }, [
2520
- d("path", {
2682
+ c("path", {
2521
2683
  fill: "currentColor",
2522
2684
  d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
2523
2685
  })
2524
2686
  ]));
2525
2687
  }
2526
- }), le = al, il = /* @__PURE__ */ L({
2688
+ }), ie = fl, vl = /* @__PURE__ */ S({
2689
+ name: "CircleCloseFilled",
2690
+ __name: "circle-close-filled",
2691
+ setup(t) {
2692
+ return (e, n) => (u(), _("svg", {
2693
+ xmlns: "http://www.w3.org/2000/svg",
2694
+ viewBox: "0 0 1024 1024"
2695
+ }, [
2696
+ c("path", {
2697
+ fill: "currentColor",
2698
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
2699
+ })
2700
+ ]));
2701
+ }
2702
+ }), gl = vl, hl = /* @__PURE__ */ S({
2703
+ name: "Close",
2704
+ __name: "close",
2705
+ setup(t) {
2706
+ return (e, n) => (u(), _("svg", {
2707
+ xmlns: "http://www.w3.org/2000/svg",
2708
+ viewBox: "0 0 1024 1024"
2709
+ }, [
2710
+ c("path", {
2711
+ fill: "currentColor",
2712
+ d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
2713
+ })
2714
+ ]));
2715
+ }
2716
+ }), Pe = hl, _l = /* @__PURE__ */ S({
2717
+ name: "Delete",
2718
+ __name: "delete",
2719
+ setup(t) {
2720
+ return (e, n) => (u(), _("svg", {
2721
+ xmlns: "http://www.w3.org/2000/svg",
2722
+ viewBox: "0 0 1024 1024"
2723
+ }, [
2724
+ c("path", {
2725
+ fill: "currentColor",
2726
+ d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
2727
+ })
2728
+ ]));
2729
+ }
2730
+ }), wl = _l, yl = /* @__PURE__ */ S({
2731
+ name: "InfoFilled",
2732
+ __name: "info-filled",
2733
+ setup(t) {
2734
+ return (e, n) => (u(), _("svg", {
2735
+ xmlns: "http://www.w3.org/2000/svg",
2736
+ viewBox: "0 0 1024 1024"
2737
+ }, [
2738
+ c("path", {
2739
+ fill: "currentColor",
2740
+ d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
2741
+ })
2742
+ ]));
2743
+ }
2744
+ }), Te = yl, bl = /* @__PURE__ */ S({
2527
2745
  name: "Menu",
2528
2746
  __name: "menu",
2529
2747
  setup(t) {
2530
- return (e, n) => (u(), y("svg", {
2748
+ return (e, n) => (u(), _("svg", {
2531
2749
  xmlns: "http://www.w3.org/2000/svg",
2532
2750
  viewBox: "0 0 1024 1024"
2533
2751
  }, [
2534
- d("path", {
2752
+ c("path", {
2535
2753
  fill: "currentColor",
2536
2754
  d: "M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"
2537
2755
  })
2538
2756
  ]));
2539
2757
  }
2540
- }), rl = il, sl = /* @__PURE__ */ L({
2758
+ }), xl = bl, kl = /* @__PURE__ */ S({
2541
2759
  name: "Moon",
2542
2760
  __name: "moon",
2543
2761
  setup(t) {
2544
- return (e, n) => (u(), y("svg", {
2762
+ return (e, n) => (u(), _("svg", {
2545
2763
  xmlns: "http://www.w3.org/2000/svg",
2546
2764
  viewBox: "0 0 1024 1024"
2547
2765
  }, [
2548
- d("path", {
2766
+ c("path", {
2549
2767
  fill: "currentColor",
2550
2768
  d: "M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"
2551
2769
  })
2552
2770
  ]));
2553
2771
  }
2554
- }), cl = sl, ul = /* @__PURE__ */ L({
2772
+ }), Ml = kl, Cl = /* @__PURE__ */ S({
2555
2773
  name: "Operation",
2556
2774
  __name: "operation",
2557
2775
  setup(t) {
2558
- return (e, n) => (u(), y("svg", {
2776
+ return (e, n) => (u(), _("svg", {
2559
2777
  xmlns: "http://www.w3.org/2000/svg",
2560
2778
  viewBox: "0 0 1024 1024"
2561
2779
  }, [
2562
- d("path", {
2780
+ c("path", {
2563
2781
  fill: "currentColor",
2564
2782
  d: "M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"
2565
2783
  })
2566
2784
  ]));
2567
2785
  }
2568
- }), dl = ul, ml = /* @__PURE__ */ L({
2786
+ }), Sl = Cl, Ll = /* @__PURE__ */ S({
2569
2787
  name: "Setting",
2570
2788
  __name: "setting",
2571
2789
  setup(t) {
2572
- return (e, n) => (u(), y("svg", {
2790
+ return (e, n) => (u(), _("svg", {
2573
2791
  xmlns: "http://www.w3.org/2000/svg",
2574
2792
  viewBox: "0 0 1024 1024"
2575
2793
  }, [
2576
- d("path", {
2794
+ c("path", {
2577
2795
  fill: "currentColor",
2578
2796
  d: "M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"
2579
2797
  })
2580
2798
  ]));
2581
2799
  }
2582
- }), pl = ml, gl = /* @__PURE__ */ L({
2800
+ }), zl = Ll, Bl = /* @__PURE__ */ S({
2801
+ name: "SuccessFilled",
2802
+ __name: "success-filled",
2803
+ setup(t) {
2804
+ return (e, n) => (u(), _("svg", {
2805
+ xmlns: "http://www.w3.org/2000/svg",
2806
+ viewBox: "0 0 1024 1024"
2807
+ }, [
2808
+ c("path", {
2809
+ fill: "currentColor",
2810
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
2811
+ })
2812
+ ]));
2813
+ }
2814
+ }), Dl = Bl, Tl = /* @__PURE__ */ S({
2583
2815
  name: "Sunny",
2584
2816
  __name: "sunny",
2585
2817
  setup(t) {
2586
- return (e, n) => (u(), y("svg", {
2818
+ return (e, n) => (u(), _("svg", {
2587
2819
  xmlns: "http://www.w3.org/2000/svg",
2588
2820
  viewBox: "0 0 1024 1024"
2589
2821
  }, [
2590
- d("path", {
2822
+ c("path", {
2591
2823
  fill: "currentColor",
2592
2824
  d: "M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"
2593
2825
  })
2594
2826
  ]));
2595
2827
  }
2596
- }), vl = gl, fl = /* @__PURE__ */ L({
2828
+ }), $l = Tl, El = /* @__PURE__ */ S({
2829
+ name: "WarningFilled",
2830
+ __name: "warning-filled",
2831
+ setup(t) {
2832
+ return (e, n) => (u(), _("svg", {
2833
+ xmlns: "http://www.w3.org/2000/svg",
2834
+ viewBox: "0 0 1024 1024"
2835
+ }, [
2836
+ c("path", {
2837
+ fill: "currentColor",
2838
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
2839
+ })
2840
+ ]));
2841
+ }
2842
+ }), Al = El, Vl = /* @__PURE__ */ S({
2597
2843
  name: "Warning",
2598
2844
  __name: "warning",
2599
2845
  setup(t) {
2600
- return (e, n) => (u(), y("svg", {
2846
+ return (e, n) => (u(), _("svg", {
2601
2847
  xmlns: "http://www.w3.org/2000/svg",
2602
2848
  viewBox: "0 0 1024 1024"
2603
2849
  }, [
2604
- d("path", {
2850
+ c("path", {
2605
2851
  fill: "currentColor",
2606
2852
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"
2607
2853
  })
2608
2854
  ]));
2609
2855
  }
2610
- }), hl = fl;
2611
- const _l = /* @__PURE__ */ L({
2856
+ }), Fl = Vl;
2857
+ const Nl = /* @__PURE__ */ S({
2612
2858
  __name: "MlMainMenu",
2613
2859
  setup(t) {
2614
2860
  const { t: e } = P(), n = (i) => {
2615
- i === "Convert" ? new Ae().tirgger(T.instance.context) : i === "QNew" ? new Fe().tirgger(T.instance.context) : i === "Open" && new Ie().tirgger(T.instance.context);
2861
+ i === "Convert" ? new He().tirgger(E.instance.context) : i === "QNew" ? new Ge().tirgger(E.instance.context) : i === "Open" && new We().tirgger(E.instance.context);
2616
2862
  };
2617
- return (i, l) => {
2618
- const o = M("el-icon"), a = M("el-dropdown-item"), s = M("el-dropdown-menu"), r = M("el-dropdown");
2619
- return u(), C(r, {
2863
+ return (i, o) => {
2864
+ const l = M("el-icon"), a = M("el-dropdown-item"), r = M("el-dropdown-menu"), s = M("el-dropdown");
2865
+ return u(), L(s, {
2620
2866
  "aria-hidden": "false",
2621
2867
  class: "ml-main-menu-container",
2622
2868
  onCommand: n
2623
2869
  }, {
2624
- dropdown: p(() => [
2625
- v(s, null, {
2626
- default: p(() => [
2627
- v(a, { command: "QNew" }, {
2628
- default: p(() => [
2629
- F(D(g(e)("main.mainMenu.new")), 1)
2870
+ dropdown: f(() => [
2871
+ m(r, null, {
2872
+ default: f(() => [
2873
+ m(a, { command: "QNew" }, {
2874
+ default: f(() => [
2875
+ N(T(d(e)("main.mainMenu.new")), 1)
2630
2876
  ]),
2631
2877
  _: 1
2632
2878
  }),
2633
- v(a, { command: "Open" }, {
2634
- default: p(() => [
2635
- F(D(g(e)("main.mainMenu.open")), 1)
2879
+ m(a, { command: "Open" }, {
2880
+ default: f(() => [
2881
+ N(T(d(e)("main.mainMenu.open")), 1)
2636
2882
  ]),
2637
2883
  _: 1
2638
2884
  })
@@ -2640,13 +2886,13 @@ const _l = /* @__PURE__ */ L({
2640
2886
  _: 1
2641
2887
  })
2642
2888
  ]),
2643
- default: p(() => [
2644
- v(o, {
2889
+ default: f(() => [
2890
+ m(l, {
2645
2891
  class: "ml-main-menu-icon",
2646
2892
  size: "30"
2647
2893
  }, {
2648
- default: p(() => [
2649
- v(g(rl))
2894
+ default: f(() => [
2895
+ m(d(xl))
2650
2896
  ]),
2651
2897
  _: 1
2652
2898
  })
@@ -2655,193 +2901,404 @@ const _l = /* @__PURE__ */ L({
2655
2901
  });
2656
2902
  };
2657
2903
  }
2658
- }), wl = /* @__PURE__ */ G(_l, [["__scopeId", "data-v-8c0c738e"]]), yl = {
2904
+ }), Il = /* @__PURE__ */ W(Nl, [["__scopeId", "data-v-8c0c738e"]]), Rl = {
2659
2905
  key: 0,
2660
2906
  class: "ml-vertical-toolbar-container"
2661
- }, bl = /* @__PURE__ */ L({
2907
+ }, Ol = /* @__PURE__ */ S({
2662
2908
  __name: "MlToolBars",
2663
2909
  setup(t) {
2664
- const { t: e } = P(), n = ce(), i = k(() => [
2910
+ const { t: e } = P(), n = pe(), i = C(() => [
2665
2911
  {
2666
- icon: qt,
2912
+ icon: Jt,
2667
2913
  text: e("main.verticalToolbar.select.text"),
2668
2914
  command: "select",
2669
2915
  description: e("main.verticalToolbar.select.description")
2670
2916
  },
2671
2917
  {
2672
- icon: Ht,
2918
+ icon: Xt,
2673
2919
  text: e("main.verticalToolbar.pan.text"),
2674
2920
  command: "pan",
2675
2921
  description: e("main.verticalToolbar.pan.description")
2676
2922
  },
2677
2923
  {
2678
- icon: Qt,
2924
+ icon: an,
2679
2925
  text: e("main.verticalToolbar.zoomToExtent.text"),
2680
2926
  command: "zoom",
2681
2927
  description: e("main.verticalToolbar.zoomToExtent.description")
2682
2928
  },
2683
2929
  {
2684
- icon: Yt,
2930
+ icon: nn,
2685
2931
  text: e("main.verticalToolbar.zoomToBox.text"),
2686
2932
  command: "zoomw",
2687
2933
  description: e("main.verticalToolbar.zoomToBox.description")
2688
2934
  },
2689
2935
  {
2690
- icon: Pt,
2936
+ icon: jt,
2691
2937
  text: e("main.verticalToolbar.layer.text"),
2692
2938
  command: "la",
2693
2939
  description: e("main.verticalToolbar.layer.description")
2694
2940
  }
2695
- ]), l = (o) => {
2696
- T.instance.sendStringToExecute(o);
2941
+ ]), o = (l) => {
2942
+ E.instance.sendStringToExecute(l);
2697
2943
  };
2698
- return (o, a) => g(n).isShowToolbar ? (u(), y("div", yl, [
2699
- v(g(Bo), {
2944
+ return (l, a) => d(n).isShowToolbar ? (u(), _("div", Rl, [
2945
+ m(d(Io), {
2700
2946
  items: i.value,
2701
2947
  size: "small",
2702
2948
  direction: "vertical",
2703
- onClick: l
2949
+ onClick: o
2704
2950
  }, null, 8, ["items"])
2705
- ])) : q("", !0);
2951
+ ])) : H("", !0);
2706
2952
  }
2707
- }), xl = /* @__PURE__ */ L({
2953
+ }), Pl = { class: "ml-notification-item-icon" }, Hl = { class: "ml-notification-item-content" }, Gl = { class: "ml-notification-item-header" }, Wl = { class: "ml-notification-item-title" }, Ul = { class: "ml-notification-item-actions" }, ql = {
2954
+ key: 0,
2955
+ class: "ml-notification-item-message"
2956
+ }, jl = { class: "ml-notification-item-footer" }, Yl = { class: "ml-notification-item-time" }, Kl = /* @__PURE__ */ S({
2957
+ __name: "MlNotificationItem",
2958
+ props: {
2959
+ notification: {}
2960
+ },
2961
+ emits: ["close", "action"],
2962
+ setup(t) {
2963
+ const e = t, { t: n } = P(), i = C(() => {
2964
+ switch (e.notification.type) {
2965
+ case "info":
2966
+ return Te;
2967
+ case "warning":
2968
+ return Al;
2969
+ case "error":
2970
+ return gl;
2971
+ case "success":
2972
+ return Dl;
2973
+ default:
2974
+ return Te;
2975
+ }
2976
+ }), o = (a) => {
2977
+ a.action();
2978
+ }, l = (a) => {
2979
+ const s = (/* @__PURE__ */ new Date()).getTime() - a.getTime(), p = Math.floor(s / 6e4), g = Math.floor(s / 36e5), b = Math.floor(s / 864e5);
2980
+ return b > 0 ? n("main.notification.time.daysAgo", { count: b }) : g > 0 ? n("main.notification.time.hoursAgo", { count: g }) : p > 0 ? n("main.notification.time.minutesAgo", { count: p }) : n("main.notification.time.justNow");
2981
+ };
2982
+ return (a, r) => {
2983
+ const s = M("el-icon"), p = M("el-button");
2984
+ return u(), _("div", {
2985
+ class: we(["ml-notification-item", `ml-notification-item--${a.notification.type}`])
2986
+ }, [
2987
+ c("div", Pl, [
2988
+ m(s, null, {
2989
+ default: f(() => [
2990
+ (u(), L(ue(i.value)))
2991
+ ]),
2992
+ _: 1
2993
+ })
2994
+ ]),
2995
+ c("div", Hl, [
2996
+ c("div", Gl, [
2997
+ c("h4", Wl, T(a.notification.title), 1),
2998
+ c("div", Ul, [
2999
+ a.notification.actions && a.notification.actions.length > 0 ? (u(!0), _(j, { key: 0 }, K(a.notification.actions, (g) => (u(), L(p, {
3000
+ key: g.label,
3001
+ type: g.primary ? "primary" : "default",
3002
+ size: "small",
3003
+ onClick: (b) => o(g)
3004
+ }, {
3005
+ default: f(() => [
3006
+ N(T(g.label), 1)
3007
+ ]),
3008
+ _: 2
3009
+ }, 1032, ["type", "onClick"]))), 128)) : H("", !0),
3010
+ m(p, {
3011
+ text: "",
3012
+ size: "small",
3013
+ onClick: r[0] || (r[0] = (g) => a.$emit("close"))
3014
+ }, {
3015
+ default: f(() => [
3016
+ m(s, null, {
3017
+ default: f(() => [
3018
+ m(d(Pe))
3019
+ ]),
3020
+ _: 1
3021
+ })
3022
+ ]),
3023
+ _: 1
3024
+ })
3025
+ ])
3026
+ ]),
3027
+ a.notification.message ? (u(), _("p", ql, T(a.notification.message), 1)) : H("", !0),
3028
+ c("div", jl, [
3029
+ c("span", Yl, T(l(a.notification.timestamp)), 1)
3030
+ ])
3031
+ ])
3032
+ ], 2);
3033
+ };
3034
+ }
3035
+ }), Xl = /* @__PURE__ */ W(Kl, [["__scopeId", "data-v-e1dde915"]]), Ql = { class: "ml-notification-center" }, Zl = { class: "ml-notification-center-header" }, Jl = { class: "ml-notification-center-title" }, ea = { class: "ml-notification-center-actions" }, ta = { class: "ml-notification-center-content" }, na = {
3036
+ key: 0,
3037
+ class: "ml-notification-center-empty"
3038
+ }, oa = {
3039
+ key: 1,
3040
+ class: "ml-notification-list"
3041
+ }, la = /* @__PURE__ */ S({
3042
+ __name: "MlNotificationCenter",
3043
+ props: {
3044
+ title: {}
3045
+ },
3046
+ emits: ["close"],
3047
+ setup(t) {
3048
+ const { t: e } = P(), n = t, i = C(
3049
+ () => n.title ?? e("main.notification.center.title")
3050
+ ), { notifications: o, remove: l, clearAll: a } = me(), r = (s) => {
3051
+ s.action();
3052
+ };
3053
+ return (s, p) => {
3054
+ const g = M("el-icon"), b = M("el-button"), v = M("el-tooltip");
3055
+ return u(), _("div", Ql, [
3056
+ c("div", Zl, [
3057
+ c("div", Jl, [
3058
+ m(g, { class: "ml-notification-center-icon" }, {
3059
+ default: f(() => [
3060
+ m(d(he))
3061
+ ]),
3062
+ _: 1
3063
+ }),
3064
+ c("span", null, T(i.value), 1)
3065
+ ]),
3066
+ c("div", ea, [
3067
+ d(o).length > 0 ? (u(), L(v, {
3068
+ key: 0,
3069
+ content: d(e)("main.notification.center.clearAll"),
3070
+ "hide-after": 0
3071
+ }, {
3072
+ default: f(() => [
3073
+ m(b, {
3074
+ text: "",
3075
+ circle: "",
3076
+ size: "small",
3077
+ class: "ml-notification-center-clear",
3078
+ onClick: d(a)
3079
+ }, {
3080
+ default: f(() => [
3081
+ m(g, null, {
3082
+ default: f(() => [
3083
+ m(d(wl))
3084
+ ]),
3085
+ _: 1
3086
+ })
3087
+ ]),
3088
+ _: 1
3089
+ }, 8, ["onClick"])
3090
+ ]),
3091
+ _: 1
3092
+ }, 8, ["content"])) : H("", !0),
3093
+ m(b, {
3094
+ text: "",
3095
+ size: "small",
3096
+ class: "ml-notification-center-close",
3097
+ onClick: p[0] || (p[0] = (h) => s.$emit("close"))
3098
+ }, {
3099
+ default: f(() => [
3100
+ m(g, null, {
3101
+ default: f(() => [
3102
+ m(d(Pe))
3103
+ ]),
3104
+ _: 1
3105
+ })
3106
+ ]),
3107
+ _: 1
3108
+ })
3109
+ ])
3110
+ ]),
3111
+ c("div", ta, [
3112
+ d(o).length === 0 ? (u(), _("div", na, [
3113
+ m(g, { class: "ml-notification-center-empty-icon" }, {
3114
+ default: f(() => [
3115
+ m(d(he))
3116
+ ]),
3117
+ _: 1
3118
+ }),
3119
+ c("p", null, T(d(e)("main.notification.center.noNotifications")), 1)
3120
+ ])) : (u(), _("div", oa, [
3121
+ (u(!0), _(j, null, K(d(o), (h) => (u(), L(Xl, {
3122
+ key: h.id,
3123
+ notification: h,
3124
+ onClose: (w) => d(l)(h.id),
3125
+ onAction: r
3126
+ }, null, 8, ["notification", "onClose"]))), 128))
3127
+ ]))
3128
+ ])
3129
+ ]);
3130
+ };
3131
+ }
3132
+ }), aa = /* @__PURE__ */ W(la, [["__scopeId", "data-v-2e5353ed"]]), ia = /* @__PURE__ */ S({
2708
3133
  __name: "MlFullScreenButton",
2709
3134
  setup(t) {
2710
- const { t: e } = P(), { isFullscreen: n, toggle: i } = Ue(), l = k(() => ({
2711
- onIcon: be,
2712
- offIcon: be,
3135
+ const { t: e } = P(), { isFullscreen: n, toggle: i } = Je(), o = C(() => ({
3136
+ onIcon: Le,
3137
+ offIcon: Le,
2713
3138
  onTooltip: e("main.statusBar.fullScreen.on"),
2714
3139
  offTooltip: e("main.statusBar.fullScreen.off")
2715
- })), o = k(() => !n.value);
2716
- return (a, s) => (u(), C(g(Ve), {
2717
- modelValue: o.value,
2718
- "onUpdate:modelValue": s[0] || (s[0] = (r) => o.value = r),
2719
- data: l.value,
2720
- onClick: g(i)
3140
+ })), l = C(() => !n.value);
3141
+ return (a, r) => (u(), L(d(Oe), {
3142
+ modelValue: l.value,
3143
+ "onUpdate:modelValue": r[0] || (r[0] = (s) => l.value = s),
3144
+ data: o.value,
3145
+ onClick: d(i)
2721
3146
  }, null, 8, ["modelValue", "data", "onClick"]));
2722
3147
  }
2723
- }), kl = /* @__PURE__ */ L({
3148
+ }), sa = /* @__PURE__ */ S({
3149
+ __name: "MlNotificationButton",
3150
+ emits: ["click"],
3151
+ setup(t, { emit: e }) {
3152
+ const { t: n } = P(), { unreadCount: i } = me(), o = e, l = () => {
3153
+ o("click");
3154
+ };
3155
+ return (a, r) => {
3156
+ const s = M("el-badge"), p = M("el-button"), g = M("el-tooltip");
3157
+ return u(), L(g, {
3158
+ content: d(n)("main.statusBar.notification.tooltip"),
3159
+ "hide-after": 0
3160
+ }, {
3161
+ default: f(() => [
3162
+ m(p, {
3163
+ class: "ml-notification-button",
3164
+ icon: d(he),
3165
+ onClick: l
3166
+ }, {
3167
+ default: f(() => [
3168
+ d(i) > 0 ? (u(), L(s, {
3169
+ key: 0,
3170
+ value: d(i),
3171
+ max: 99,
3172
+ class: "ml-notification-badge"
3173
+ }, null, 8, ["value"])) : H("", !0)
3174
+ ]),
3175
+ _: 1
3176
+ }, 8, ["icon"])
3177
+ ]),
3178
+ _: 1
3179
+ }, 8, ["content"]);
3180
+ };
3181
+ }
3182
+ }), ra = /* @__PURE__ */ W(sa, [["__scopeId", "data-v-48c740b7"]]), ca = /* @__PURE__ */ S({
2724
3183
  __name: "MlPointStyleButton",
2725
3184
  setup(t) {
2726
3185
  const { t: e } = P(), n = () => {
2727
- T.instance.sendStringToExecute("pttype");
3186
+ E.instance.sendStringToExecute("pttype");
2728
3187
  };
2729
- return (i, l) => {
2730
- const o = M("el-button"), a = M("el-tooltip");
2731
- return u(), C(a, {
2732
- content: g(e)("main.statusBar.pointStyle.tooltip"),
3188
+ return (i, o) => {
3189
+ const l = M("el-button"), a = M("el-tooltip");
3190
+ return u(), L(a, {
3191
+ content: d(e)("main.statusBar.pointStyle.tooltip"),
2733
3192
  "hide-after": 0
2734
3193
  }, {
2735
- default: p(() => [
2736
- v(o, {
3194
+ default: f(() => [
3195
+ m(l, {
2737
3196
  class: "ml-point-style-button",
2738
- icon: g(dl),
2739
- onClick: l[0] || (l[0] = (s) => n())
3197
+ icon: d(Sl),
3198
+ onClick: o[0] || (o[0] = (r) => n())
2740
3199
  }, null, 8, ["icon"])
2741
3200
  ]),
2742
3201
  _: 1
2743
3202
  }, 8, ["content"]);
2744
3203
  };
2745
3204
  }
2746
- }), Ml = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-29692d7d"]]), Sl = {
3205
+ }), ua = /* @__PURE__ */ W(ca, [["__scopeId", "data-v-29692d7d"]]), da = {
2747
3206
  key: 0,
2748
3207
  class: "ml-progress"
2749
- }, Cl = /* @__PURE__ */ L({
3208
+ }, ma = /* @__PURE__ */ S({
2750
3209
  __name: "MlProgress",
2751
3210
  setup(t) {
2752
- const { t: e } = P(), n = x(0), i = x(!1), l = (a) => {
2753
- if (a.stage === "CONVERSION") {
2754
- const s = we.service({
3211
+ const { t: e } = P(), n = k(0), i = k(!1), { warning: o } = me(), l = (r) => {
3212
+ if (r.stage === "CONVERSION") {
3213
+ const s = Ce.service({
2755
3214
  lock: !0
2756
3215
  });
2757
- if (a.subStage) {
2758
- const r = zt(a.subStage);
2759
- if (s.setText(r), a.subStage === "PARSE" && a.subStageStatus === "END" && a.data) {
2760
- const c = a.data;
2761
- c.unknownEntityCount > 0 && Q({
2762
- showClose: !0,
2763
- message: e("main.message.unknownEntities", {
2764
- count: c.unknownEntityCount
2765
- }),
2766
- grouping: !0,
2767
- type: "warning"
2768
- });
3216
+ if (r.subStage) {
3217
+ const p = Vt(r.subStage);
3218
+ if (s.setText(p), r.subStage === "PARSE" && r.subStageStatus === "END" && r.data) {
3219
+ const g = r.data;
3220
+ g.unknownEntityCount > 0 && o(
3221
+ e("main.notification.title.parsingWarning"),
3222
+ e("main.message.unknownEntities", {
3223
+ count: g.unknownEntityCount
3224
+ })
3225
+ );
2769
3226
  }
2770
3227
  }
2771
- n.value = a.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
2772
- } else if (a.stage === "FETCH_FILE") {
2773
- const s = we.service({
3228
+ n.value = r.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
3229
+ } else if (r.stage === "FETCH_FILE") {
3230
+ const s = Ce.service({
2774
3231
  lock: !0
2775
3232
  });
2776
- s.setText(e("main.message.fetchingDrawingFile")), n.value = a.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
3233
+ s.setText(e("main.message.fetchingDrawingFile")), n.value = r.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
2777
3234
  }
2778
- }, o = (a) => `${a.toFixed(0)}%`;
2779
- return H(() => {
2780
- Y.on("open-file-progress", l);
3235
+ }, a = (r) => `${r.toFixed(0)}%`;
3236
+ return U(() => {
3237
+ X.on("open-file-progress", l);
2781
3238
  }), te(() => {
2782
- Y.off("open-file-progress", l);
2783
- }), (a, s) => i.value ? (u(), y("div", Sl, [
2784
- v(g(Je), {
3239
+ X.off("open-file-progress", l);
3240
+ }), (r, s) => i.value ? (u(), _("div", da, [
3241
+ m(d(it), {
2785
3242
  "text-inside": !0,
2786
3243
  "stroke-width": 20,
2787
3244
  percentage: n.value,
2788
- format: o
3245
+ format: a
2789
3246
  }, null, 8, ["percentage"])
2790
- ])) : q("", !0);
3247
+ ])) : H("", !0);
2791
3248
  }
2792
- }), Ll = /* @__PURE__ */ G(Cl, [["__scopeId", "data-v-fe8fa18d"]]), zl = /* @__PURE__ */ L({
3249
+ }), pa = /* @__PURE__ */ W(ma, [["__scopeId", "data-v-35ad24b9"]]), fa = /* @__PURE__ */ S({
2793
3250
  __name: "MlSettingButton",
2794
3251
  setup(t) {
2795
- const { t: e } = P(), n = ce(), i = (l) => {
2796
- l == "isShowCoordinate" ? (n.isShowCoordinate = !n.isShowCoordinate, K.instance.isShowCoordinate = n.isShowCoordinate) : l == "isShowCommandLine" ? (n.isShowCommandLine = !n.isShowCommandLine, K.instance.isShowCommandLine = n.isShowCommandLine) : l == "isShowToolbar" ? (n.isShowToolbar = !n.isShowToolbar, K.instance.isShowToolbar = n.isShowToolbar) : l == "isShowStats" && (n.isShowStats = !n.isShowStats, K.instance.isShowStats = n.isShowStats);
3252
+ const { t: e } = P(), n = pe(), i = (o) => {
3253
+ o == "isShowCoordinate" ? (n.isShowCoordinate = !n.isShowCoordinate, Q.instance.isShowCoordinate = n.isShowCoordinate) : o == "isShowCommandLine" ? (n.isShowCommandLine = !n.isShowCommandLine, Q.instance.isShowCommandLine = n.isShowCommandLine) : o == "isShowToolbar" ? (n.isShowToolbar = !n.isShowToolbar, Q.instance.isShowToolbar = n.isShowToolbar) : o == "isShowStats" && (n.isShowStats = !n.isShowStats, Q.instance.isShowStats = n.isShowStats);
2797
3254
  };
2798
- return (l, o) => {
2799
- const a = M("el-button"), s = M("el-dropdown-item"), r = M("el-dropdown-menu"), c = M("el-dropdown"), w = M("el-tooltip");
2800
- return u(), C(w, {
2801
- content: g(e)("main.statusBar.setting.tooltip"),
3255
+ return (o, l) => {
3256
+ const a = M("el-button"), r = M("el-dropdown-item"), s = M("el-dropdown-menu"), p = M("el-dropdown"), g = M("el-tooltip");
3257
+ return u(), L(g, {
3258
+ content: d(e)("main.statusBar.setting.tooltip"),
2802
3259
  "hide-after": 0
2803
3260
  }, {
2804
- default: p(() => [
2805
- v(c, {
3261
+ default: f(() => [
3262
+ m(p, {
2806
3263
  trigger: "click",
2807
3264
  onCommand: i
2808
3265
  }, {
2809
- dropdown: p(() => [
2810
- v(r, null, {
2811
- default: p(() => [
2812
- v(s, {
2813
- icon: g(n).isShowStats ? g(le) : "",
3266
+ dropdown: f(() => [
3267
+ m(s, null, {
3268
+ default: f(() => [
3269
+ m(r, {
3270
+ icon: d(n).isShowStats ? d(ie) : "",
2814
3271
  command: "isShowStats"
2815
3272
  }, {
2816
- default: p(() => [
2817
- F(D(g(e)("main.statusBar.setting.stats")), 1)
3273
+ default: f(() => [
3274
+ N(T(d(e)("main.statusBar.setting.stats")), 1)
2818
3275
  ]),
2819
3276
  _: 1
2820
3277
  }, 8, ["icon"]),
2821
- v(s, {
2822
- icon: g(n).isShowCommandLine ? g(le) : "",
3278
+ m(r, {
3279
+ icon: d(n).isShowCommandLine ? d(ie) : "",
2823
3280
  command: "isShowCommandLine"
2824
3281
  }, {
2825
- default: p(() => [
2826
- F(D(g(e)("main.statusBar.setting.commandLine")), 1)
3282
+ default: f(() => [
3283
+ N(T(d(e)("main.statusBar.setting.commandLine")), 1)
2827
3284
  ]),
2828
3285
  _: 1
2829
3286
  }, 8, ["icon"]),
2830
- v(s, {
2831
- icon: g(n).isShowCoordinate ? g(le) : "",
3287
+ m(r, {
3288
+ icon: d(n).isShowCoordinate ? d(ie) : "",
2832
3289
  command: "isShowCoordinate"
2833
3290
  }, {
2834
- default: p(() => [
2835
- F(D(g(e)("main.statusBar.setting.coordinate")), 1)
3291
+ default: f(() => [
3292
+ N(T(d(e)("main.statusBar.setting.coordinate")), 1)
2836
3293
  ]),
2837
3294
  _: 1
2838
3295
  }, 8, ["icon"]),
2839
- v(s, {
2840
- icon: g(n).isShowToolbar ? g(le) : "",
3296
+ m(r, {
3297
+ icon: d(n).isShowToolbar ? d(ie) : "",
2841
3298
  command: "isShowToolbar"
2842
3299
  }, {
2843
- default: p(() => [
2844
- F(D(g(e)("main.statusBar.setting.toolbar")), 1)
3300
+ default: f(() => [
3301
+ N(T(d(e)("main.statusBar.setting.toolbar")), 1)
2845
3302
  ]),
2846
3303
  _: 1
2847
3304
  }, 8, ["icon"])
@@ -2849,10 +3306,10 @@ const _l = /* @__PURE__ */ L({
2849
3306
  _: 1
2850
3307
  })
2851
3308
  ]),
2852
- default: p(() => [
2853
- v(a, {
3309
+ default: f(() => [
3310
+ m(a, {
2854
3311
  class: "ml-setting-button",
2855
- icon: g(pl)
3312
+ icon: d(zl)
2856
3313
  }, null, 8, ["icon"])
2857
3314
  ]),
2858
3315
  _: 1
@@ -2862,61 +3319,64 @@ const _l = /* @__PURE__ */ L({
2862
3319
  }, 8, ["content"]);
2863
3320
  };
2864
3321
  }
2865
- }), Dl = /* @__PURE__ */ G(zl, [["__scopeId", "data-v-666f03a3"]]), Bl = /* @__PURE__ */ L({
3322
+ }), va = /* @__PURE__ */ W(fa, [["__scopeId", "data-v-666f03a3"]]), ga = /* @__PURE__ */ S({
2866
3323
  __name: "MlThemeButton",
2867
3324
  setup(t) {
2868
- const { t: e } = P(), n = k(() => ({
2869
- onIcon: vl,
2870
- offIcon: cl,
3325
+ const { t: e } = P(), n = C(() => ({
3326
+ onIcon: $l,
3327
+ offIcon: Ml,
2871
3328
  onTooltip: e("main.statusBar.theme.light"),
2872
3329
  offTooltip: e("main.statusBar.theme.dark")
2873
3330
  }));
2874
- return (i, l) => (u(), C(g(Ve), {
2875
- modelValue: g(ae),
2876
- "onUpdate:modelValue": l[0] || (l[0] = (o) => Oe(ae) ? ae.value = o : null),
3331
+ return (i, o) => (u(), L(d(Oe), {
3332
+ modelValue: d(se),
3333
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => Ye(se) ? se.value = l : null),
2877
3334
  data: n.value,
2878
- onClick: l[1] || (l[1] = (o) => g(mt)())
3335
+ onClick: o[1] || (o[1] = (l) => d(wt)())
2879
3336
  }, null, 8, ["modelValue", "data"]));
2880
3337
  }
2881
- }), Tl = /* @__PURE__ */ L({
3338
+ }), ha = /* @__PURE__ */ S({
2882
3339
  __name: "MlWarningButton",
2883
3340
  setup(t) {
2884
3341
  const e = () => {
2885
- T.instance.sendStringToExecute("md");
2886
- }, { fonts: n, images: i } = $e(), l = k(() => i.size > 0 || n.size > 0);
2887
- return (o, a) => {
2888
- const s = M("el-button");
2889
- return l.value ? (u(), C(s, {
3342
+ E.instance.sendStringToExecute("md");
3343
+ }, { fonts: n, images: i } = Re(), o = C(() => i.size > 0 || n.size > 0);
3344
+ return (l, a) => {
3345
+ const r = M("el-button");
3346
+ return o.value ? (u(), L(r, {
2890
3347
  key: 0,
2891
3348
  class: "ml-warning-button",
2892
3349
  type: "warning",
2893
- icon: g(hl),
2894
- onClick: a[0] || (a[0] = (r) => e())
2895
- }, null, 8, ["icon"])) : q("", !0);
3350
+ icon: d(Fl),
3351
+ onClick: a[0] || (a[0] = (s) => e())
3352
+ }, null, 8, ["icon"])) : H("", !0);
2896
3353
  };
2897
3354
  }
2898
- }), El = /* @__PURE__ */ G(Tl, [["__scopeId", "data-v-3411a3ec"]]), $l = /* @__PURE__ */ L({
3355
+ }), _a = /* @__PURE__ */ W(ha, [["__scopeId", "data-v-3411a3ec"]]), wa = /* @__PURE__ */ S({
2899
3356
  __name: "MlStatusBar",
2900
- setup(t) {
2901
- const { text: e } = dt(T.instance.curView), n = vt(T.instance), i = ce(), l = (o) => {
2902
- Be().layoutManager.setCurrentLayoutBtrId(
2903
- o.blockTableRecordId
3357
+ emits: ["toggleNotificationCenter"],
3358
+ setup(t, { emit: e }) {
3359
+ const { text: n } = _t(E.instance.curView), i = xt(E.instance), o = pe(), l = (s) => {
3360
+ Fe().layoutManager.setCurrentLayoutBtrId(
3361
+ s.blockTableRecordId
2904
3362
  );
3363
+ }, a = e, r = () => {
3364
+ a("toggleNotificationCenter");
2905
3365
  };
2906
- return (o, a) => {
2907
- const s = M("el-button"), r = M("el-button-group");
2908
- return u(), C(g(Lo), { class: "ml-status-bar" }, {
2909
- left: p(() => [
2910
- v(r, { class: "ml-status-bar-left-button-group" }, {
2911
- default: p(() => [
2912
- (u(!0), y(j, null, X(g(n), (c) => (u(), C(s, {
3366
+ return (s, p) => {
3367
+ const g = M("el-button"), b = M("el-button-group");
3368
+ return u(), L(d(Vo), { class: "ml-status-bar" }, {
3369
+ left: f(() => [
3370
+ m(b, { class: "ml-status-bar-left-button-group" }, {
3371
+ default: f(() => [
3372
+ (u(!0), _(j, null, K(d(i), (v) => (u(), L(g, {
2913
3373
  class: "ml-status-bar-layout-button",
2914
- key: c.name,
2915
- type: c.isActive ? "primary" : "",
2916
- onClick: (w) => l(c)
3374
+ key: v.name,
3375
+ type: v.isActive ? "primary" : "",
3376
+ onClick: (h) => l(v)
2917
3377
  }, {
2918
- default: p(() => [
2919
- F(D(c.name), 1)
3378
+ default: f(() => [
3379
+ N(T(v.name), 1)
2920
3380
  ]),
2921
3381
  _: 2
2922
3382
  }, 1032, ["type", "onClick"]))), 128))
@@ -2924,24 +3384,25 @@ const _l = /* @__PURE__ */ L({
2924
3384
  _: 1
2925
3385
  })
2926
3386
  ]),
2927
- right: p(() => [
2928
- v(Ll),
2929
- v(r, { class: "ml-status-bar-right-button-group" }, {
2930
- default: p(() => [
2931
- g(i).isShowCoordinate ? (u(), C(s, {
3387
+ right: f(() => [
3388
+ m(pa),
3389
+ m(b, { class: "ml-status-bar-right-button-group" }, {
3390
+ default: f(() => [
3391
+ d(o).isShowCoordinate ? (u(), L(g, {
2932
3392
  key: 0,
2933
3393
  class: "ml-status-bar-current-pos"
2934
3394
  }, {
2935
- default: p(() => [
2936
- F(D(g(e)), 1)
3395
+ default: f(() => [
3396
+ N(T(d(n)), 1)
2937
3397
  ]),
2938
3398
  _: 1
2939
- })) : q("", !0),
2940
- v(El),
2941
- v(Bl),
2942
- v(xl),
2943
- v(Ml),
2944
- v(Dl)
3399
+ })) : H("", !0),
3400
+ m(_a),
3401
+ m(ra, { onClick: r }),
3402
+ m(ga),
3403
+ m(ia),
3404
+ m(ua),
3405
+ m(va)
2945
3406
  ]),
2946
3407
  _: 1
2947
3408
  })
@@ -2950,201 +3411,231 @@ const _l = /* @__PURE__ */ L({
2950
3411
  });
2951
3412
  };
2952
3413
  }
2953
- }), Vl = /* @__PURE__ */ G($l, [["__scopeId", "data-v-ee6f13c4"]]), Al = {
3414
+ }), ya = /* @__PURE__ */ W(wa, [["__scopeId", "data-v-0d51ad75"]]), ba = {
2954
3415
  key: 0,
2955
3416
  class: "ml-cad-viewer-container"
2956
- }, Fl = { class: "ml-file-name" }, da = /* @__PURE__ */ L({
3417
+ }, xa = { class: "ml-file-name" }, Qa = /* @__PURE__ */ S({
2957
3418
  __name: "MlCadViewer",
2958
3419
  props: {
2959
3420
  locale: { default: "default" },
2960
3421
  url: { default: void 0 },
2961
3422
  localFile: { default: void 0 },
2962
- background: { default: void 0 }
3423
+ background: { default: void 0 },
3424
+ baseUrl: { default: void 0 }
2963
3425
  },
2964
3426
  setup(t) {
2965
- const e = t, { t: n } = P(), { effectiveLocale: i, elementPlusLocale: l } = Ee(e.locale), o = x(), a = x(null), s = k(() => a.value), r = async (f, m) => {
2966
- const h = { minimumChunkSize: 1e3 };
2967
- await T.instance.openDocument(f, m, h), Z.fileName = f;
2968
- }, c = async (f) => {
3427
+ const e = t, { t: n } = P(), { effectiveLocale: i, elementPlusLocale: o } = Ie(e.locale), { info: l, warning: a, error: r, success: s } = me(), p = k(), g = k(null), b = C(() => g.value), v = k(!1), h = async (y, z) => {
3428
+ const B = { minimumChunkSize: 1e3 };
3429
+ await E.instance.openDocument(y, z, B), Z.fileName = y;
3430
+ }, w = async (y) => {
2969
3431
  try {
2970
- const m = { minimumChunkSize: 1e3 };
2971
- await T.instance.openUrl(f, m);
2972
- const h = f.split("/").pop();
2973
- Z.fileName = h ?? "";
2974
- } catch (m) {
2975
- console.error("Failed to open file from URL:", m), Q({
2976
- message: n("main.message.failedToOpenFile", { fileName: f }),
3432
+ const z = { minimumChunkSize: 1e3 };
3433
+ await E.instance.openUrl(y, z);
3434
+ const B = y.split("/").pop();
3435
+ Z.fileName = B ?? "";
3436
+ } catch (z) {
3437
+ console.error("Failed to open file from URL:", z), oe({
3438
+ message: n("main.message.failedToOpenFile", { fileName: y }),
2977
3439
  grouping: !0,
2978
3440
  type: "error",
2979
3441
  showClose: !0
2980
3442
  });
2981
3443
  }
2982
- }, w = async (f) => {
2983
- var m;
3444
+ }, x = async (y) => {
3445
+ var z;
2984
3446
  try {
2985
- const h = (m = f.name.split(".").pop()) == null ? void 0 : m.toLowerCase(), _ = new FileReader();
2986
- if (h === "dxf")
2987
- _.readAsText(f);
2988
- else if (h === "dwg")
2989
- _.readAsArrayBuffer(f);
3447
+ const B = (z = y.name.split(".").pop()) == null ? void 0 : z.toLowerCase(), R = new FileReader();
3448
+ if (B === "dxf")
3449
+ R.readAsText(y);
3450
+ else if (B === "dwg")
3451
+ R.readAsArrayBuffer(y);
2990
3452
  else
2991
- throw new Error(`Unsupported file type: ${h}`);
2992
- const b = await new Promise(
2993
- ($, I) => {
2994
- _.onload = (V) => {
2995
- var N;
2996
- const B = (N = V.target) == null ? void 0 : N.result;
2997
- B ? $(B) : I(new Error("Failed to read file content"));
2998
- }, _.onerror = () => I(new Error("Failed to read file"));
3453
+ throw new Error(`Unsupported file type: ${B}`);
3454
+ const O = await new Promise(
3455
+ (F, G) => {
3456
+ R.onload = (ne) => {
3457
+ var xe;
3458
+ const be = (xe = ne.target) == null ? void 0 : xe.result;
3459
+ be ? F(be) : G(new Error("Failed to read file content"));
3460
+ }, R.onerror = () => G(new Error("Failed to read file"));
2999
3461
  }
3000
- ), S = { minimumChunkSize: 1e3 };
3001
- await T.instance.openDocument(f.name, b, S), Z.fileName = f.name;
3002
- } catch (h) {
3003
- console.error("Failed to open local file:", h), Q({
3004
- message: n("main.message.failedToOpenFile", { fileName: f.name }),
3462
+ ), $ = { minimumChunkSize: 1e3 };
3463
+ await E.instance.openDocument(y.name, O, $), Z.fileName = y.name;
3464
+ } catch (B) {
3465
+ console.error("Failed to open local file:", B), oe({
3466
+ message: n("main.message.failedToOpenFile", { fileName: y.name }),
3005
3467
  grouping: !0,
3006
3468
  type: "error",
3007
3469
  showClose: !0
3008
3470
  });
3009
3471
  }
3010
3472
  };
3011
- return E(
3473
+ A(
3012
3474
  () => e.url,
3013
- async (f) => {
3014
- f && c(f);
3475
+ async (y) => {
3476
+ y && w(y);
3015
3477
  }
3016
- ), E(
3478
+ ), A(
3017
3479
  () => e.localFile,
3018
- async (f) => {
3019
- f && w(f);
3480
+ async (y) => {
3481
+ y && x(y);
3020
3482
  }
3021
- ), E(
3483
+ ), A(
3022
3484
  () => e.background,
3023
- (f) => {
3024
- f != null && (T.instance.curView.backgroundColor = f);
3485
+ (y) => {
3486
+ y != null && (E.instance.curView.backgroundColor = y);
3487
+ }
3488
+ ), A(
3489
+ () => e.baseUrl,
3490
+ (y) => {
3491
+ y && (E.instance.baseUrl = y);
3025
3492
  }
3026
- ), H(async () => {
3027
- o.value && (Pl(o.value), Rl(), a.value = T.instance), e.url ? c(e.url) : e.localFile && w(e.localFile), e.background != null && (T.instance.curView.backgroundColor = e.background);
3028
- }), Y.on("message", (f) => {
3029
- Q({
3030
- message: f.message,
3493
+ ), U(async () => {
3494
+ p.value && (Ca(p.value), Ma(), g.value = E.instance), e.url ? w(e.url) : e.localFile && x(e.localFile), e.background != null && (E.instance.curView.backgroundColor = e.background), e.baseUrl && (E.instance.baseUrl = e.baseUrl);
3495
+ }), X.on("message", (y) => {
3496
+ switch (oe({
3497
+ message: y.message,
3031
3498
  grouping: !0,
3032
- type: f.type,
3499
+ type: y.type,
3033
3500
  showClose: !0
3501
+ }), y.type) {
3502
+ case "success":
3503
+ s("System Message", y.message);
3504
+ break;
3505
+ case "warning":
3506
+ a("System Warning", y.message);
3507
+ break;
3508
+ case "error":
3509
+ r("System Error", y.message);
3510
+ break;
3511
+ default:
3512
+ l("System Info", y.message);
3513
+ break;
3514
+ }
3515
+ }), X.on("fonts-not-loaded", (y) => {
3516
+ const z = y.fonts.map((R) => R.fontName).join(", "), B = n("main.message.fontsNotLoaded", { fonts: z });
3517
+ r(n("main.notification.title.fontNotFound"), B);
3518
+ }), X.on("fonts-not-found", (y) => {
3519
+ const z = n("main.message.fontsNotFound", {
3520
+ fonts: y.fonts.join(", ")
3034
3521
  });
3035
- }), Y.on("font-not-loaded", (f) => {
3036
- Q({
3037
- message: n("main.message.fontNotLoaded", {
3038
- fontName: f.fontName,
3039
- url: f.url
3040
- }),
3522
+ a(n("main.notification.title.fontNotFound"), z);
3523
+ }), X.on("failed-to-get-avaiable-fonts", (y) => {
3524
+ oe({
3525
+ message: n("main.message.failedToGetAvaiableFonts", { url: y.url }),
3041
3526
  grouping: !0,
3042
3527
  type: "error",
3043
3528
  showClose: !0
3044
3529
  });
3045
- }), Y.on("failed-to-get-avaiable-fonts", (f) => {
3046
- Q({
3047
- message: n("main.message.failedToGetAvaiableFonts", { url: f.url }),
3048
- grouping: !0,
3049
- type: "error",
3050
- showClose: !0
3530
+ }), X.on("failed-to-open-file", (y) => {
3531
+ const z = n("main.message.failedToOpenFile", {
3532
+ fileName: y.fileName
3051
3533
  });
3052
- }), Y.on("failed-to-open-file", (f) => {
3053
- Q({
3054
- message: n("main.message.failedToOpenFile", { fileName: f.fileName }),
3534
+ oe({
3535
+ message: z,
3055
3536
  grouping: !0,
3056
3537
  type: "error",
3057
3538
  showClose: !0
3058
- });
3059
- }), (f, m) => {
3060
- const h = M("el-config-provider");
3061
- return u(), y(j, null, [
3062
- d("canvas", {
3539
+ }), r("File Opening Failed", z);
3540
+ });
3541
+ const D = () => {
3542
+ v.value = !v.value;
3543
+ }, V = () => {
3544
+ v.value = !1;
3545
+ };
3546
+ return (y, z) => {
3547
+ const B = M("el-config-provider");
3548
+ return u(), _(j, null, [
3549
+ c("canvas", {
3063
3550
  ref_key: "canvasRef",
3064
- ref: o,
3551
+ ref: p,
3065
3552
  class: "ml-cad-canvas"
3066
3553
  }, null, 512),
3067
- a.value ? (u(), y("div", Al, [
3068
- v(h, { locale: g(l) }, {
3069
- default: p(() => [
3070
- d("header", null, [
3071
- v(g(wl)),
3072
- v(g(ll), { "current-locale": g(i) }, null, 8, ["current-locale"])
3554
+ g.value ? (u(), _("div", ba, [
3555
+ m(B, { locale: d(o) }, {
3556
+ default: f(() => [
3557
+ c("header", null, [
3558
+ m(d(Il)),
3559
+ m(d(ml), { "current-locale": d(i) }, null, 8, ["current-locale"])
3073
3560
  ]),
3074
- d("main", null, [
3075
- d("div", Fl, D(g(Z).fileName), 1),
3076
- v(g(bl)),
3077
- v(g(Qo), { editor: s.value }, null, 8, ["editor"]),
3078
- v(g(Bt))
3561
+ c("main", null, [
3562
+ c("div", xa, T(d(Z).fileName), 1),
3563
+ m(d(Ol)),
3564
+ m(d(al), { editor: b.value }, null, 8, ["editor"]),
3565
+ m(d(It))
3079
3566
  ]),
3080
- d("footer", null, [
3081
- v(g(el)),
3082
- v(g(Vl))
3567
+ c("footer", null, [
3568
+ m(d(rl)),
3569
+ m(d(ya), { onToggleNotificationCenter: D })
3083
3570
  ]),
3084
- v(g(Et), { onFileRead: r }),
3085
- v(g(nl))
3571
+ m(d(Ot), { onFileRead: h }),
3572
+ m(d(ul)),
3573
+ v.value ? (u(), L(d(aa), {
3574
+ key: 0,
3575
+ onClose: V
3576
+ })) : H("", !0)
3086
3577
  ]),
3087
3578
  _: 1
3088
3579
  }, 8, ["locale"])
3089
- ])) : q("", !0)
3580
+ ])) : H("", !0)
3090
3581
  ], 64);
3091
3582
  };
3092
3583
  }
3093
- }), Il = () => {
3094
- W.instance.addCommand(
3095
- W.SYSTEMT_COMMAND_GROUP_NAME,
3584
+ }), ka = () => {
3585
+ q.instance.addCommand(
3586
+ q.SYSTEMT_COMMAND_GROUP_NAME,
3096
3587
  "log",
3097
3588
  "log",
3098
- new Ol()
3099
- ), W.instance.addCommand(
3100
- W.SYSTEMT_COMMAND_GROUP_NAME,
3589
+ new La()
3590
+ ), q.instance.addCommand(
3591
+ q.SYSTEMT_COMMAND_GROUP_NAME,
3101
3592
  "la",
3102
3593
  "la",
3103
- new Nl()
3104
- ), W.instance.addCommand(
3105
- W.SYSTEMT_COMMAND_GROUP_NAME,
3594
+ new Sa()
3595
+ ), q.instance.addCommand(
3596
+ q.SYSTEMT_COMMAND_GROUP_NAME,
3106
3597
  "md",
3107
3598
  "md",
3108
- new Hl()
3109
- ), W.instance.addCommand(
3110
- W.SYSTEMT_COMMAND_GROUP_NAME,
3599
+ new za()
3600
+ ), q.instance.addCommand(
3601
+ q.SYSTEMT_COMMAND_GROUP_NAME,
3111
3602
  "pttype",
3112
3603
  "pttype",
3113
- new Gl()
3604
+ new Ba()
3114
3605
  );
3115
- }, Rl = () => {
3116
- const { registerDialog: t } = oe();
3606
+ }, Ma = () => {
3607
+ const { registerDialog: t } = ae();
3117
3608
  t({
3118
3609
  name: "ReplacementDlg",
3119
- component: he(Vt),
3610
+ component: ke(Ht),
3120
3611
  props: {}
3121
3612
  }), t({
3122
3613
  name: "PointStyleDlg",
3123
- component: he(ao),
3614
+ component: ke(fo),
3124
3615
  props: {}
3125
3616
  });
3126
- }, Pl = (t) => {
3127
- T.createInstance(t), Re(), Il(), T.instance.loadDefaultFonts();
3128
- }, Z = U({
3617
+ }, Ca = (t) => {
3618
+ E.createInstance(t), Ue(), ka(), E.instance.loadDefaultFonts();
3619
+ }, Z = Y({
3129
3620
  fileName: "",
3130
3621
  dialogs: {
3131
3622
  layerManager: !1
3132
3623
  }
3133
3624
  });
3134
- class Nl extends re {
3625
+ class Sa extends ce {
3135
3626
  execute(e) {
3136
3627
  Z.dialogs.layerManager = !0;
3137
3628
  }
3138
3629
  }
3139
- class Ol extends re {
3630
+ class La extends ce {
3140
3631
  execute(e) {
3141
3632
  this.printSelectionSet(e), this.printStats(e), this.printPerformanceData();
3142
3633
  }
3143
3634
  printSelectionSet(e) {
3144
3635
  const n = e.doc.database.tables.blockTable.modelSpace;
3145
3636
  e.view.selectionSet.ids.forEach((i) => {
3146
- const l = n.getIdAt(i);
3147
- l && console.log(l);
3637
+ const o = n.getIdAt(i);
3638
+ o && console.log(o);
3148
3639
  });
3149
3640
  }
3150
3641
  printStats(e) {
@@ -3152,20 +3643,20 @@ class Ol extends re {
3152
3643
  console.log("Geometry information in current drawing:");
3153
3644
  for (let i = 0; i < n.length; ++i) {
3154
3645
  console.group(`Layout: ${i}`);
3155
- const l = n[i], o = [0, 0, 0, 0, 0, 0], a = [0, 0, 0, 0, 0, 0], s = l.layers.map((r) => (o[0] = r.line.indexed.geometrySize / 1024, o[1] = r.line.nonIndexed.geometrySize / 1024, o[2] = r.mesh.indexed.geometrySize / 1024, o[3] = r.mesh.nonIndexed.geometrySize / 1024, o[4] = r.point.indexed.geometrySize / 1024, o[5] = r.point.nonIndexed.geometrySize / 1024, a[0] += o[0], a[1] += o[1], a[2] += o[2], a[3] += o[3], a[4] += o[4], a[5] += o[5], {
3156
- name: r.name,
3157
- "idx line (KB)": o[0].toFixed(1),
3158
- "line (KB)": o[1].toFixed(1),
3159
- "idx mesh (KB)": o[2].toFixed(1),
3160
- "mesh (KB)": o[3].toFixed(1),
3161
- "idx point (KB)": o[4].toFixed(1),
3162
- "point (KB)": o[5].toFixed(1),
3163
- "total geo (KB)": (r.summary.totalGeometrySize / 1024).toFixed(1),
3164
- "total mapping (KB)": (r.summary.totalMappingSize / 1024).toFixed(
3646
+ const o = n[i], l = [0, 0, 0, 0, 0, 0], a = [0, 0, 0, 0, 0, 0], r = o.layers.map((s) => (l[0] = s.line.indexed.geometrySize / 1024, l[1] = s.line.nonIndexed.geometrySize / 1024, l[2] = s.mesh.indexed.geometrySize / 1024, l[3] = s.mesh.nonIndexed.geometrySize / 1024, l[4] = s.point.indexed.geometrySize / 1024, l[5] = s.point.nonIndexed.geometrySize / 1024, a[0] += l[0], a[1] += l[1], a[2] += l[2], a[3] += l[3], a[4] += l[4], a[5] += l[5], {
3647
+ name: s.name,
3648
+ "idx line (KB)": l[0].toFixed(1),
3649
+ "line (KB)": l[1].toFixed(1),
3650
+ "idx mesh (KB)": l[2].toFixed(1),
3651
+ "mesh (KB)": l[3].toFixed(1),
3652
+ "idx point (KB)": l[4].toFixed(1),
3653
+ "point (KB)": l[5].toFixed(1),
3654
+ "total geo (KB)": (s.summary.totalGeometrySize / 1024).toFixed(1),
3655
+ "total mapping (KB)": (s.summary.totalMappingSize / 1024).toFixed(
3165
3656
  1
3166
3657
  )
3167
3658
  }));
3168
- s.push({
3659
+ r.push({
3169
3660
  name: "total",
3170
3661
  "idx line (KB)": a[0].toFixed(1),
3171
3662
  "line (KB)": a[1].toFixed(1),
@@ -3173,65 +3664,68 @@ class Ol extends re {
3173
3664
  "mesh (KB)": a[3].toFixed(1),
3174
3665
  "idx point (KB)": a[4].toFixed(1),
3175
3666
  "point (KB)": a[5].toFixed(1),
3176
- "total geo (KB)": (l.summary.totalSize.geometry / 1024).toFixed(1),
3177
- "total mapping (KB)": (l.summary.totalSize.mapping / 1024).toFixed(
3667
+ "total geo (KB)": (o.summary.totalSize.geometry / 1024).toFixed(1),
3668
+ "total mapping (KB)": (o.summary.totalSize.mapping / 1024).toFixed(
3178
3669
  1
3179
3670
  )
3180
- }), console.table(s), console.groupEnd();
3671
+ }), console.table(r), console.groupEnd();
3181
3672
  }
3182
3673
  }
3183
3674
  printPerformanceData() {
3184
- Ge.getInstance().printAll();
3675
+ Xe.getInstance().printAll();
3185
3676
  }
3186
3677
  }
3187
- class Hl extends re {
3678
+ class za extends ce {
3188
3679
  execute(e) {
3189
- const { toggleDialog: n } = oe();
3680
+ const { toggleDialog: n } = ae();
3190
3681
  n("ReplacementDlg", !0);
3191
3682
  }
3192
3683
  }
3193
- class Gl extends re {
3684
+ class Ba extends ce {
3194
3685
  execute(e) {
3195
- const { toggleDialog: n } = oe();
3686
+ const { toggleDialog: n } = ae();
3196
3687
  n("PointStyleDlg", !0);
3197
3688
  }
3198
3689
  }
3199
3690
  export {
3200
- Nl as AcApLayerStateCmd,
3201
- Ol as AcApLogCmd,
3202
- Hl as AcApMissedDataCmd,
3203
- Gl as AcApPointStyleCmd,
3204
- Te as MlBaseDialog,
3205
- da as MlCadViewer,
3206
- el as MlCommandLine,
3207
- Bt as MlDialogManager,
3208
- nl as MlEntityInfo,
3209
- Et as MlFileReader,
3210
- ll as MlLanguageSelector,
3211
- Qo as MlLayerManager,
3212
- wl as MlMainMenu,
3213
- ao as MlPointStyleDlg,
3214
- Vt as MlReplacementDlg,
3215
- Vl as MlStatusBar,
3216
- Ve as MlToggleButton,
3217
- bl as MlToolBars,
3218
- fe as cmdDescription,
3219
- Lt as colorName,
3220
- zt as conversionSubStageName,
3221
- Ct as entityName,
3691
+ Sa as AcApLayerStateCmd,
3692
+ La as AcApLogCmd,
3693
+ za as AcApMissedDataCmd,
3694
+ Ba as AcApPointStyleCmd,
3695
+ Ne as MlBaseDialog,
3696
+ Qa as MlCadViewer,
3697
+ rl as MlCommandLine,
3698
+ It as MlDialogManager,
3699
+ ul as MlEntityInfo,
3700
+ Ot as MlFileReader,
3701
+ ml as MlLanguageSelector,
3702
+ al as MlLayerManager,
3703
+ Il as MlMainMenu,
3704
+ aa as MlNotificationCenter,
3705
+ Xl as MlNotificationItem,
3706
+ fo as MlPointStyleDlg,
3707
+ Ht as MlReplacementDlg,
3708
+ ya as MlStatusBar,
3709
+ Oe as MlToggleButton,
3710
+ Ol as MlToolBars,
3711
+ ye as cmdDescription,
3712
+ At as colorName,
3713
+ Vt as conversionSubStageName,
3714
+ Et as entityName,
3222
3715
  ee as i18n,
3223
- ae as isDark,
3224
- ca as sysCmdDescription,
3225
- mt as toggleDark,
3226
- ut as useCommands,
3227
- dt as useCurrentPos,
3228
- oe as useDialogManager,
3229
- pt as useFileTypes,
3230
- gt as useLayers,
3231
- vt as useLayouts,
3232
- Ee as useLocale,
3233
- $e as useMissedData,
3234
- ce as useSettings,
3235
- Dt as useSystemVars,
3236
- ua as userCmdDescription
3716
+ se as isDark,
3717
+ Ka as sysCmdDescription,
3718
+ wt as toggleDark,
3719
+ ht as useCommands,
3720
+ _t as useCurrentPos,
3721
+ ae as useDialogManager,
3722
+ yt as useFileTypes,
3723
+ bt as useLayers,
3724
+ xt as useLayouts,
3725
+ Ie as useLocale,
3726
+ Re as useMissedData,
3727
+ me as useNotificationCenter,
3728
+ pe as useSettings,
3729
+ Nt as useSystemVars,
3730
+ Xa as userCmdDescription
3237
3731
  };