@layers-app/editor 0.5.4-optimization → 0.5.6-optimization

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.
Files changed (138) hide show
  1. package/README.md +19 -0
  2. package/dist/index.cjs +2 -0
  3. package/dist/index.js +12 -10
  4. package/dist/layers.7jmq6tBR.js +2227 -0
  5. package/dist/layers.B90YwJga.js +4 -0
  6. package/dist/layers.C03OvlLb.js +6 -0
  7. package/dist/layers.CJiIq6YQ.js +1 -0
  8. package/dist/layers.CXffIp2y.js +864 -0
  9. package/dist/layers.CZPeYQ9g.js +3 -0
  10. package/dist/layers.CZ_Lt7IL.js +7 -0
  11. package/dist/layers.Ci1-qkbn.js +341 -0
  12. package/dist/layers.Cnm-pECN.js +2 -0
  13. package/dist/layers.D6d62qQ_.js +6774 -0
  14. package/dist/layers.DNCgFYS7.js +27 -0
  15. package/dist/layers.Dev6Yrwi.js +530 -0
  16. package/dist/layers.Dgok89qX.js +1 -0
  17. package/dist/layers.Dq3o7sh3.js +7723 -0
  18. package/dist/layers.Duy8YzsH.js +2511 -0
  19. package/dist/layers.QjAkD17S.js +3677 -0
  20. package/package.json +73 -17
  21. package/dist/layers.0EAb8Ajx.js +0 -65
  22. package/dist/layers.1Mvzm38Y.js +0 -501
  23. package/dist/layers.2wIERhxO.js +0 -41
  24. package/dist/layers.694DrE1_.js +0 -931
  25. package/dist/layers.7JqFgE4-.js +0 -15
  26. package/dist/layers.B-5aeeDH.js +0 -1359
  27. package/dist/layers.B0winug5.js +0 -59
  28. package/dist/layers.B1S8ufDn.js +0 -40
  29. package/dist/layers.B3JNY9Km.js +0 -42
  30. package/dist/layers.B6W2tqC0.js +0 -40
  31. package/dist/layers.B7Olyhe8.js +0 -1089
  32. package/dist/layers.BCuuRSaf.js +0 -37
  33. package/dist/layers.BESPlBGC.js +0 -32
  34. package/dist/layers.BJDrjORS.js +0 -244
  35. package/dist/layers.BJTh7mUo.js +0 -1265
  36. package/dist/layers.BLL-019k.js +0 -39
  37. package/dist/layers.BNJiP8Pw.js +0 -2966
  38. package/dist/layers.BNvAl5dS.js +0 -14
  39. package/dist/layers.BThP74aw.js +0 -32
  40. package/dist/layers.BZ4laUeR.js +0 -40
  41. package/dist/layers.BZByPNdY.js +0 -37
  42. package/dist/layers.B_5zMrI3.js +0 -38
  43. package/dist/layers.B_7N5yjX.js +0 -32
  44. package/dist/layers.BbCfEXyj.js +0 -55
  45. package/dist/layers.BdvfoI4U.js +0 -44
  46. package/dist/layers.BiJ8hfRt.js +0 -1510
  47. package/dist/layers.BiJBOHr0.js +0 -84
  48. package/dist/layers.Bk3_8qR9.js +0 -48146
  49. package/dist/layers.BkPPOKBy.js +0 -32
  50. package/dist/layers.BnZcjRLr.js +0 -32
  51. package/dist/layers.BpilXLfW.js +0 -6
  52. package/dist/layers.BqpcWKH6.js +0 -2479
  53. package/dist/layers.Br7D0wMN.js +0 -39
  54. package/dist/layers.BsAu1GXs.js +0 -42
  55. package/dist/layers.Bv5sK47C.js +0 -769
  56. package/dist/layers.BxEdkUpI.js +0 -1088
  57. package/dist/layers.BxUBbVsO.js +0 -41
  58. package/dist/layers.Bzalhqz_.js +0 -39
  59. package/dist/layers.C-dS7ntQ.js +0 -41
  60. package/dist/layers.C0Lgw_Sx.js +0 -11688
  61. package/dist/layers.C5BFsvzI.js +0 -803
  62. package/dist/layers.C5WLg9ed.js +0 -21763
  63. package/dist/layers.C6lAFlKZ.js +0 -186
  64. package/dist/layers.C8_lu5UH.js +0 -23
  65. package/dist/layers.CGwNL7dH.js +0 -791
  66. package/dist/layers.CI739wqN.js +0 -39
  67. package/dist/layers.CKaj4dG4.js +0 -41
  68. package/dist/layers.CLRiSwgi.js +0 -904
  69. package/dist/layers.CN1QkD6D.js +0 -38
  70. package/dist/layers.CPY6U3g-.js +0 -1034
  71. package/dist/layers.CRSjdIG6.js +0 -1619
  72. package/dist/layers.CUHkTCid.js +0 -6
  73. package/dist/layers.CUPMw0sy.js +0 -40
  74. package/dist/layers.CWb6LiAY.js +0 -40
  75. package/dist/layers.C_XsSNQo.js +0 -42
  76. package/dist/layers.CbmlFoXt.js +0 -33
  77. package/dist/layers.CfGeHh-g.js +0 -36
  78. package/dist/layers.CiJxVu9b.js +0 -36
  79. package/dist/layers.Cj4ezyVr.js +0 -33
  80. package/dist/layers.Cpb-MRZn.js +0 -960
  81. package/dist/layers.CqVTtuYm.js +0 -6
  82. package/dist/layers.CskURloi.js +0 -39
  83. package/dist/layers.CtTD47i4.js +0 -41
  84. package/dist/layers.CxcvEfKe.js +0 -36
  85. package/dist/layers.D-U9uIsP.js +0 -40
  86. package/dist/layers.D10WeKck.js +0 -2235
  87. package/dist/layers.D4T8fTcj.js +0 -1223
  88. package/dist/layers.D4jK2Tet.js +0 -39
  89. package/dist/layers.D7jGxypv.js +0 -8
  90. package/dist/layers.DBosqi2D.js +0 -19
  91. package/dist/layers.DGtETOVJ.js +0 -304
  92. package/dist/layers.DKENAsMv.js +0 -220
  93. package/dist/layers.DLwuMfdd.js +0 -84
  94. package/dist/layers.DN9HoVxI.js +0 -18
  95. package/dist/layers.DOBSfaUM.js +0 -35
  96. package/dist/layers.DOKLQ6A3.js +0 -373
  97. package/dist/layers.DPuVWH3L.js +0 -40
  98. package/dist/layers.DQVXh43C.js +0 -42
  99. package/dist/layers.DSTh89J8.js +0 -42
  100. package/dist/layers.DUsIfvNt.js +0 -46859
  101. package/dist/layers.DVfpGIrv.js +0 -41
  102. package/dist/layers.DWSkLlGf.js +0 -41
  103. package/dist/layers.DX1RI3m3.js +0 -32
  104. package/dist/layers.DdMwmP4m.js +0 -37
  105. package/dist/layers.DhkyREpW.js +0 -793
  106. package/dist/layers.Dj-f1_6N.js +0 -34
  107. package/dist/layers.DjUOC4st.js +0 -16
  108. package/dist/layers.DjhJT1nZ.js +0 -21938
  109. package/dist/layers.Djl9Gz6s.js +0 -282
  110. package/dist/layers.Dn2AP7iE.js +0 -1283
  111. package/dist/layers.Dqbek_0L.js +0 -40
  112. package/dist/layers.DsDjOLHs.js +0 -437
  113. package/dist/layers.DsOaqGXW.js +0 -8
  114. package/dist/layers.DuE1l7lR.js +0 -41
  115. package/dist/layers.DxA6ocdw.js +0 -70
  116. package/dist/layers.DxHlP7Pb.js +0 -39
  117. package/dist/layers.Dy1naDTQ.js +0 -14
  118. package/dist/layers.DyZ5R-vS.js +0 -37
  119. package/dist/layers.H2Kl_PC2.js +0 -40
  120. package/dist/layers.IW4NBP9k.js +0 -39
  121. package/dist/layers.LGx1jmqd.js +0 -40
  122. package/dist/layers.NABwYdw5.js +0 -35
  123. package/dist/layers.NtwvbkGN.js +0 -1580
  124. package/dist/layers.O-bFTk-n.js +0 -268
  125. package/dist/layers.R_udKe_N.js +0 -38
  126. package/dist/layers.TdTDbIzb.js +0 -1126
  127. package/dist/layers.WLeJl9el.js +0 -202
  128. package/dist/layers.b0h5ZBmD.js +0 -61
  129. package/dist/layers.dEHKcy8J.js +0 -320
  130. package/dist/layers.eTredPK_.js +0 -36
  131. package/dist/layers.gIdzfQAa.js +0 -5
  132. package/dist/layers.huV95Ipe.js +0 -295
  133. package/dist/layers.jU4W5PG5.js +0 -9166
  134. package/dist/layers.lCpg7dOn.js +0 -21
  135. package/dist/layers.mQcENPPW.js +0 -802
  136. package/dist/layers.nPQCmYXI.js +0 -423
  137. package/dist/layers.ntC1foLT.js +0 -39
  138. package/dist/layers.uHy1yMbq.js +0 -6
@@ -1,202 +0,0 @@
1
- import { s as M, d as _, p as R } from "./layers.B7Olyhe8.js";
2
- import { l as d, g as c, d as w, u as B, Y as G, j as D, _ as E, $ as C, a0 as $ } from "./layers.jU4W5PG5.js";
3
- import { G as z } from "./layers.BJDrjORS.js";
4
- import { r as P } from "./layers.DOKLQ6A3.js";
5
- import "./layers.C5WLg9ed.js";
6
- import "lodash-es";
7
- import "./layers.D4T8fTcj.js";
8
- const S = (s) => D.sanitizeText(s, c());
9
- let k = {
10
- dividerMargin: 10,
11
- padding: 5,
12
- textHeight: 10,
13
- curve: void 0
14
- };
15
- const q = function(s, t, y, a) {
16
- const e = Object.keys(s);
17
- d.info("keys:", e), d.info(s), e.forEach(function(i) {
18
- var o, r;
19
- const l = s[i], p = {
20
- shape: "rect",
21
- id: l.id,
22
- domId: l.domId,
23
- labelText: S(l.id),
24
- labelStyle: "",
25
- style: "fill: none; stroke: black",
26
- // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
27
- padding: ((o = c().flowchart) == null ? void 0 : o.padding) ?? ((r = c().class) == null ? void 0 : r.padding)
28
- };
29
- t.setNode(l.id, p), A(l.classes, t, y, a, l.id), d.info("setNode", p);
30
- });
31
- }, A = function(s, t, y, a, e) {
32
- const i = Object.keys(s);
33
- d.info("keys:", i), d.info(s), i.filter((o) => s[o].parent == e).forEach(function(o) {
34
- var r, l;
35
- const n = s[o], p = n.cssClasses.join(" "), f = E(n.styles), h = n.label ?? n.id, u = 0, b = {
36
- labelStyle: f.labelStyle,
37
- shape: "class_box",
38
- labelText: S(h),
39
- classData: n,
40
- rx: u,
41
- ry: u,
42
- class: p,
43
- style: f.style,
44
- id: n.id,
45
- domId: n.domId,
46
- tooltip: a.db.getTooltip(n.id, e) || "",
47
- haveCallback: n.haveCallback,
48
- link: n.link,
49
- width: n.type === "group" ? 500 : void 0,
50
- type: n.type,
51
- // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
52
- padding: ((r = c().flowchart) == null ? void 0 : r.padding) ?? ((l = c().class) == null ? void 0 : l.padding)
53
- };
54
- t.setNode(n.id, b), e && t.setParent(n.id, e), d.info("setNode", b);
55
- });
56
- }, F = function(s, t, y, a) {
57
- d.info(s), s.forEach(function(e, i) {
58
- var o, r;
59
- const l = e, n = "", p = { labelStyle: "", style: "" }, f = l.text, h = 0, v = {
60
- labelStyle: p.labelStyle,
61
- shape: "note",
62
- labelText: S(f),
63
- noteData: l,
64
- rx: h,
65
- ry: h,
66
- class: n,
67
- style: p.style,
68
- id: l.id,
69
- domId: l.id,
70
- tooltip: "",
71
- type: "note",
72
- // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
73
- padding: ((o = c().flowchart) == null ? void 0 : o.padding) ?? ((r = c().class) == null ? void 0 : r.padding)
74
- };
75
- if (t.setNode(l.id, v), d.info("setNode", v), !l.class || !(l.class in a))
76
- return;
77
- const b = y + i, x = {
78
- id: `edgeNote${b}`,
79
- //Set relationship style and line type
80
- classes: "relation",
81
- pattern: "dotted",
82
- // Set link type for rendering
83
- arrowhead: "none",
84
- //Set edge extra labels
85
- startLabelRight: "",
86
- endLabelLeft: "",
87
- //Set relation arrow types
88
- arrowTypeStart: "none",
89
- arrowTypeEnd: "none",
90
- style: "fill:none",
91
- labelStyle: "",
92
- curve: C(k.curve, $)
93
- };
94
- t.setEdge(l.id, l.class, x, b);
95
- });
96
- }, H = function(s, t) {
97
- const y = c().flowchart;
98
- let a = 0;
99
- s.forEach(function(e) {
100
- var i;
101
- a++;
102
- const o = {
103
- //Set relationship style and line type
104
- classes: "relation",
105
- pattern: e.relation.lineType == 1 ? "dashed" : "solid",
106
- id: `id_${e.id1}_${e.id2}_${a}`,
107
- // Set link type for rendering
108
- arrowhead: e.type === "arrow_open" ? "none" : "normal",
109
- //Set edge extra labels
110
- startLabelRight: e.relationTitle1 === "none" ? "" : e.relationTitle1,
111
- endLabelLeft: e.relationTitle2 === "none" ? "" : e.relationTitle2,
112
- //Set relation arrow types
113
- arrowTypeStart: N(e.relation.type1),
114
- arrowTypeEnd: N(e.relation.type2),
115
- style: "fill:none",
116
- labelStyle: "",
117
- curve: C(y == null ? void 0 : y.curve, $)
118
- };
119
- if (d.info(o, e), e.style !== void 0) {
120
- const r = E(e.style);
121
- o.style = r.style, o.labelStyle = r.labelStyle;
122
- }
123
- e.text = e.title, e.text === void 0 ? e.style !== void 0 && (o.arrowheadStyle = "fill: #333") : (o.arrowheadStyle = "fill: #333", o.labelpos = "c", ((i = c().flowchart) == null ? void 0 : i.htmlLabels) ?? c().htmlLabels ? (o.labelType = "html", o.label = '<span class="edgeLabel">' + e.text + "</span>") : (o.labelType = "text", o.label = e.text.replace(D.lineBreakRegex, `
124
- `), e.style === void 0 && (o.style = o.style || "stroke: #333; stroke-width: 1.5px;fill:none"), o.labelStyle = o.labelStyle.replace("color:", "fill:"))), t.setEdge(e.id1, e.id2, o, a);
125
- });
126
- }, V = function(s) {
127
- k = {
128
- ...k,
129
- ...s
130
- };
131
- }, W = async function(s, t, y, a) {
132
- d.info("Drawing class - ", t);
133
- const e = c().flowchart ?? c().class, i = c().securityLevel;
134
- d.info("config:", e);
135
- const o = (e == null ? void 0 : e.nodeSpacing) ?? 50, r = (e == null ? void 0 : e.rankSpacing) ?? 50, l = new z({
136
- multigraph: !0,
137
- compound: !0
138
- }).setGraph({
139
- rankdir: a.db.getDirection(),
140
- nodesep: o,
141
- ranksep: r,
142
- marginx: 8,
143
- marginy: 8
144
- }).setDefaultEdgeLabel(function() {
145
- return {};
146
- }), n = a.db.getNamespaces(), p = a.db.getClasses(), f = a.db.getRelations(), h = a.db.getNotes();
147
- d.info(f), q(n, l, t, a), A(p, l, t, a), H(f, l), F(h, l, f.length + 1, p);
148
- let u;
149
- i === "sandbox" && (u = w("#i" + t));
150
- const v = i === "sandbox" ? w(u.nodes()[0].contentDocument.body) : w("body"), b = v.select(`[id="${t}"]`), x = v.select("#" + t + " g");
151
- if (await P(
152
- x,
153
- l,
154
- ["aggregation", "extension", "composition", "dependency", "lollipop"],
155
- "classDiagram",
156
- t
157
- ), B.insertTitle(b, "classTitleText", (e == null ? void 0 : e.titleTopMargin) ?? 5, a.db.getDiagramTitle()), G(l, b, e == null ? void 0 : e.diagramPadding, e == null ? void 0 : e.useMaxWidth), !(e != null && e.htmlLabels)) {
158
- const T = i === "sandbox" ? u.nodes()[0].contentDocument : document, I = T.querySelectorAll('[id="' + t + '"] .edgeLabel .label');
159
- for (const g of I) {
160
- const L = g.getBBox(), m = T.createElementNS("http://www.w3.org/2000/svg", "rect");
161
- m.setAttribute("rx", 0), m.setAttribute("ry", 0), m.setAttribute("width", L.width), m.setAttribute("height", L.height), g.insertBefore(m, g.firstChild);
162
- }
163
- }
164
- };
165
- function N(s) {
166
- let t;
167
- switch (s) {
168
- case 0:
169
- t = "aggregation";
170
- break;
171
- case 1:
172
- t = "extension";
173
- break;
174
- case 2:
175
- t = "composition";
176
- break;
177
- case 3:
178
- t = "dependency";
179
- break;
180
- case 4:
181
- t = "lollipop";
182
- break;
183
- default:
184
- t = "none";
185
- }
186
- return t;
187
- }
188
- const Y = {
189
- setConf: V,
190
- draw: W
191
- }, O = {
192
- parser: R,
193
- db: _,
194
- renderer: Y,
195
- styles: M,
196
- init: (s) => {
197
- s.class || (s.class = {}), s.class.arrowMarkerAbsolute = s.arrowMarkerAbsolute, _.clear();
198
- }
199
- };
200
- export {
201
- O as diagram
202
- };
@@ -1,61 +0,0 @@
1
- import { i as a } from "./layers.DjUOC4st.js";
2
- class o extends Map {
3
- constructor(n, t = g) {
4
- if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: t } }), n != null) for (const [r, s] of n) this.set(r, s);
5
- }
6
- get(n) {
7
- return super.get(c(this, n));
8
- }
9
- has(n) {
10
- return super.has(c(this, n));
11
- }
12
- set(n, t) {
13
- return super.set(l(this, n), t);
14
- }
15
- delete(n) {
16
- return super.delete(p(this, n));
17
- }
18
- }
19
- function c({ _intern: e, _key: n }, t) {
20
- const r = n(t);
21
- return e.has(r) ? e.get(r) : t;
22
- }
23
- function l({ _intern: e, _key: n }, t) {
24
- const r = n(t);
25
- return e.has(r) ? e.get(r) : (e.set(r, t), t);
26
- }
27
- function p({ _intern: e, _key: n }, t) {
28
- const r = n(t);
29
- return e.has(r) && (t = e.get(r), e.delete(r)), t;
30
- }
31
- function g(e) {
32
- return e !== null && typeof e == "object" ? e.valueOf() : e;
33
- }
34
- const f = Symbol("implicit");
35
- function h() {
36
- var e = new o(), n = [], t = [], r = f;
37
- function s(u) {
38
- let i = e.get(u);
39
- if (i === void 0) {
40
- if (r !== f) return r;
41
- e.set(u, i = n.push(u) - 1);
42
- }
43
- return t[i % t.length];
44
- }
45
- return s.domain = function(u) {
46
- if (!arguments.length) return n.slice();
47
- n = [], e = new o();
48
- for (const i of u)
49
- e.has(i) || e.set(i, n.push(i) - 1);
50
- return s;
51
- }, s.range = function(u) {
52
- return arguments.length ? (t = Array.from(u), s) : t.slice();
53
- }, s.unknown = function(u) {
54
- return arguments.length ? (r = u, s) : r;
55
- }, s.copy = function() {
56
- return h(n, t).unknown(r);
57
- }, a.apply(s, arguments), s;
58
- }
59
- export {
60
- h as o
61
- };
@@ -1,320 +0,0 @@
1
- import { l as Y, A as D, e as M } from "./layers.jU4W5PG5.js";
2
- import "./layers.C5WLg9ed.js";
3
- var O = (function() {
4
- var a = function(u, t, e, n) {
5
- for (e = e || {}, n = u.length; n--; e[u[n]] = t)
6
- ;
7
- return e;
8
- }, f = [6, 9, 10], m = {
9
- trace: function() {
10
- },
11
- yy: {},
12
- symbols_: { error: 2, start: 3, info: 4, document: 5, EOF: 6, line: 7, statement: 8, NL: 9, showInfo: 10, $accept: 0, $end: 1 },
13
- terminals_: { 2: "error", 4: "info", 6: "EOF", 9: "NL", 10: "showInfo" },
14
- productions_: [0, [3, 3], [5, 0], [5, 2], [7, 1], [7, 1], [8, 1]],
15
- performAction: function(t, e, n, s, r, i, d) {
16
- switch (i.length - 1, r) {
17
- case 1:
18
- return s;
19
- case 4:
20
- break;
21
- case 6:
22
- s.setInfo(!0);
23
- break;
24
- }
25
- },
26
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, a(f, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: 6, 9: [1, 7], 10: [1, 8] }, { 1: [2, 1] }, a(f, [2, 3]), a(f, [2, 4]), a(f, [2, 5]), a(f, [2, 6])],
27
- defaultActions: { 4: [2, 1] },
28
- parseError: function(t, e) {
29
- if (e.recoverable)
30
- this.trace(t);
31
- else {
32
- var n = new Error(t);
33
- throw n.hash = e, n;
34
- }
35
- },
36
- parse: function(t) {
37
- var e = this, n = [0], s = [], r = [null], i = [], d = this.table, P = "", v = 0, L = 0, N = 2, T = 1, R = i.slice.call(arguments, 1), o = Object.create(this.lexer), p = { yy: {} };
38
- for (var E in this.yy)
39
- Object.prototype.hasOwnProperty.call(this.yy, E) && (p.yy[E] = this.yy[E]);
40
- o.setInput(t, p.yy), p.yy.lexer = o, p.yy.parser = this, typeof o.yylloc > "u" && (o.yylloc = {});
41
- var I = o.yylloc;
42
- i.push(I);
43
- var z = o.options && o.options.ranges;
44
- typeof p.yy.parseError == "function" ? this.parseError = p.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
45
- function U() {
46
- var y;
47
- return y = s.pop() || o.lex() || T, typeof y != "number" && (y instanceof Array && (s = y, y = s.pop()), y = e.symbols_[y] || y), y;
48
- }
49
- for (var l, g, h, w, _ = {}, b, c, F, S; ; ) {
50
- if (g = n[n.length - 1], this.defaultActions[g] ? h = this.defaultActions[g] : ((l === null || typeof l > "u") && (l = U()), h = d[g] && d[g][l]), typeof h > "u" || !h.length || !h[0]) {
51
- var A = "";
52
- S = [];
53
- for (b in d[g])
54
- this.terminals_[b] && b > N && S.push("'" + this.terminals_[b] + "'");
55
- o.showPosition ? A = "Parse error on line " + (v + 1) + `:
56
- ` + o.showPosition() + `
57
- Expecting ` + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "Parse error on line " + (v + 1) + ": Unexpected " + (l == T ? "end of input" : "'" + (this.terminals_[l] || l) + "'"), this.parseError(A, {
58
- text: o.match,
59
- token: this.terminals_[l] || l,
60
- line: o.yylineno,
61
- loc: I,
62
- expected: S
63
- });
64
- }
65
- if (h[0] instanceof Array && h.length > 1)
66
- throw new Error("Parse Error: multiple actions possible at state: " + g + ", token: " + l);
67
- switch (h[0]) {
68
- case 1:
69
- n.push(l), r.push(o.yytext), i.push(o.yylloc), n.push(h[1]), l = null, L = o.yyleng, P = o.yytext, v = o.yylineno, I = o.yylloc;
70
- break;
71
- case 2:
72
- if (c = this.productions_[h[1]][1], _.$ = r[r.length - c], _._$ = {
73
- first_line: i[i.length - (c || 1)].first_line,
74
- last_line: i[i.length - 1].last_line,
75
- first_column: i[i.length - (c || 1)].first_column,
76
- last_column: i[i.length - 1].last_column
77
- }, z && (_._$.range = [
78
- i[i.length - (c || 1)].range[0],
79
- i[i.length - 1].range[1]
80
- ]), w = this.performAction.apply(_, [
81
- P,
82
- L,
83
- v,
84
- p.yy,
85
- h[1],
86
- r,
87
- i
88
- ].concat(R)), typeof w < "u")
89
- return w;
90
- c && (n = n.slice(0, -1 * c * 2), r = r.slice(0, -1 * c), i = i.slice(0, -1 * c)), n.push(this.productions_[h[1]][0]), r.push(_.$), i.push(_._$), F = d[n[n.length - 2]][n[n.length - 1]], n.push(F);
91
- break;
92
- case 3:
93
- return !0;
94
- }
95
- }
96
- return !0;
97
- }
98
- }, k = /* @__PURE__ */ (function() {
99
- var u = {
100
- EOF: 1,
101
- parseError: function(e, n) {
102
- if (this.yy.parser)
103
- this.yy.parser.parseError(e, n);
104
- else
105
- throw new Error(e);
106
- },
107
- // resets the lexer, sets new input
108
- setInput: function(t, e) {
109
- return this.yy = e || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
110
- first_line: 1,
111
- first_column: 0,
112
- last_line: 1,
113
- last_column: 0
114
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
115
- },
116
- // consumes and returns one char from the input
117
- input: function() {
118
- var t = this._input[0];
119
- this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
120
- var e = t.match(/(?:\r\n?|\n).*/g);
121
- return e ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
122
- },
123
- // unshifts one char (or a string) into the input
124
- unput: function(t) {
125
- var e = t.length, n = t.split(/(?:\r\n?|\n)/g);
126
- this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - e), this.offset -= e;
127
- var s = this.match.split(/(?:\r\n?|\n)/g);
128
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
129
- var r = this.yylloc.range;
130
- return this.yylloc = {
131
- first_line: this.yylloc.first_line,
132
- last_line: this.yylineno + 1,
133
- first_column: this.yylloc.first_column,
134
- last_column: n ? (n.length === s.length ? this.yylloc.first_column : 0) + s[s.length - n.length].length - n[0].length : this.yylloc.first_column - e
135
- }, this.options.ranges && (this.yylloc.range = [r[0], r[0] + this.yyleng - e]), this.yyleng = this.yytext.length, this;
136
- },
137
- // When called from action, caches matched text and appends it on next action
138
- more: function() {
139
- return this._more = !0, this;
140
- },
141
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
142
- reject: function() {
143
- if (this.options.backtrack_lexer)
144
- this._backtrack = !0;
145
- else
146
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
147
- ` + this.showPosition(), {
148
- text: "",
149
- token: null,
150
- line: this.yylineno
151
- });
152
- return this;
153
- },
154
- // retain first n characters of the match
155
- less: function(t) {
156
- this.unput(this.match.slice(t));
157
- },
158
- // displays already matched input, i.e. for error messages
159
- pastInput: function() {
160
- var t = this.matched.substr(0, this.matched.length - this.match.length);
161
- return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
162
- },
163
- // displays upcoming input, i.e. for error messages
164
- upcomingInput: function() {
165
- var t = this.match;
166
- return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
167
- },
168
- // displays the character position where the lexing error occurred, i.e. for error messages
169
- showPosition: function() {
170
- var t = this.pastInput(), e = new Array(t.length + 1).join("-");
171
- return t + this.upcomingInput() + `
172
- ` + e + "^";
173
- },
174
- // test the lexed token: return FALSE when not a match, otherwise return token
175
- test_match: function(t, e) {
176
- var n, s, r;
177
- if (this.options.backtrack_lexer && (r = {
178
- yylineno: this.yylineno,
179
- yylloc: {
180
- first_line: this.yylloc.first_line,
181
- last_line: this.last_line,
182
- first_column: this.yylloc.first_column,
183
- last_column: this.yylloc.last_column
184
- },
185
- yytext: this.yytext,
186
- match: this.match,
187
- matches: this.matches,
188
- matched: this.matched,
189
- yyleng: this.yyleng,
190
- offset: this.offset,
191
- _more: this._more,
192
- _input: this._input,
193
- yy: this.yy,
194
- conditionStack: this.conditionStack.slice(0),
195
- done: this.done
196
- }, this.options.ranges && (r.yylloc.range = this.yylloc.range.slice(0))), s = t[0].match(/(?:\r\n?|\n).*/g), s && (this.yylineno += s.length), this.yylloc = {
197
- first_line: this.yylloc.last_line,
198
- last_line: this.yylineno + 1,
199
- first_column: this.yylloc.last_column,
200
- last_column: s ? s[s.length - 1].length - s[s.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
201
- }, this.yytext += t[0], this.match += t[0], this.matches = t, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(t[0].length), this.matched += t[0], n = this.performAction.call(this, this.yy, this, e, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
202
- return n;
203
- if (this._backtrack) {
204
- for (var i in r)
205
- this[i] = r[i];
206
- return !1;
207
- }
208
- return !1;
209
- },
210
- // return next match in input
211
- next: function() {
212
- if (this.done)
213
- return this.EOF;
214
- this._input || (this.done = !0);
215
- var t, e, n, s;
216
- this._more || (this.yytext = "", this.match = "");
217
- for (var r = this._currentRules(), i = 0; i < r.length; i++)
218
- if (n = this._input.match(this.rules[r[i]]), n && (!e || n[0].length > e[0].length)) {
219
- if (e = n, s = i, this.options.backtrack_lexer) {
220
- if (t = this.test_match(n, r[i]), t !== !1)
221
- return t;
222
- if (this._backtrack) {
223
- e = !1;
224
- continue;
225
- } else
226
- return !1;
227
- } else if (!this.options.flex)
228
- break;
229
- }
230
- return e ? (t = this.test_match(e, r[s]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
231
- ` + this.showPosition(), {
232
- text: "",
233
- token: null,
234
- line: this.yylineno
235
- });
236
- },
237
- // return next match that has a token
238
- lex: function() {
239
- var e = this.next();
240
- return e || this.lex();
241
- },
242
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
243
- begin: function(e) {
244
- this.conditionStack.push(e);
245
- },
246
- // pop the previously active lexer condition state off the condition stack
247
- popState: function() {
248
- var e = this.conditionStack.length - 1;
249
- return e > 0 ? this.conditionStack.pop() : this.conditionStack[0];
250
- },
251
- // produce the lexer rule set which is active for the currently active lexer condition state
252
- _currentRules: function() {
253
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
254
- },
255
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
256
- topState: function(e) {
257
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
258
- },
259
- // alias for begin(condition)
260
- pushState: function(e) {
261
- this.begin(e);
262
- },
263
- // return the number of states currently on the stack
264
- stateStackSize: function() {
265
- return this.conditionStack.length;
266
- },
267
- options: { "case-insensitive": !0 },
268
- performAction: function(e, n, s, r) {
269
- switch (s) {
270
- case 0:
271
- return 4;
272
- case 1:
273
- return 9;
274
- case 2:
275
- return "space";
276
- case 3:
277
- return 10;
278
- case 4:
279
- return 6;
280
- case 5:
281
- return "TXT";
282
- }
283
- },
284
- rules: [/^(?:info\b)/i, /^(?:[\s\n\r]+)/i, /^(?:[\s]+)/i, /^(?:showInfo\b)/i, /^(?:$)/i, /^(?:.)/i],
285
- conditions: { INITIAL: { rules: [0, 1, 2, 3, 4, 5], inclusive: !0 } }
286
- };
287
- return u;
288
- })();
289
- m.lexer = k;
290
- function x() {
291
- this.yy = {};
292
- }
293
- return x.prototype = m, m.Parser = x, new x();
294
- })();
295
- O.parser = O;
296
- const B = O, j = {
297
- info: !1
298
- };
299
- let $ = j.info;
300
- const V = (a) => {
301
- $ = a;
302
- }, X = () => $, q = () => {
303
- $ = j.info;
304
- }, C = {
305
- clear: q,
306
- setInfo: V,
307
- getInfo: X
308
- }, G = (a, f, m) => {
309
- Y.debug(`rendering info diagram
310
- ` + a);
311
- const k = D(f);
312
- M(k, 100, 400, !0), k.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${m}`);
313
- }, H = { draw: G }, Q = {
314
- parser: B,
315
- db: C,
316
- renderer: H
317
- };
318
- export {
319
- Q as diagram
320
- };
@@ -1,36 +0,0 @@
1
- import "./layers.C5WLg9ed.js";
2
- var u = { paste: "Dán", pasteAsPlaintext: "Dán kiểu văn bản thuần", pasteCharts: "Dán biểu đồ", selectAll: "Chọn tất cả", multiSelect: "Thêm mới vào Select", moveCanvas: "Di chuyển canvas", cut: "Cắt", copy: "Sao chép", copyAsPng: "Sao chép vào bộ nhớ tạm dưới dạng PNG", copyAsSvg: "Sao chép vào bộ nhớ tạm dưới dạng SVG", copyText: "Sao chép vào bộ nhớ tạm dưới dạng chữ", copySource: "", convertToCode: "", bringForward: "Đưa ra trước", sendToBack: "Hạ xuống dưới", bringToFront: "Đưa ra đầu tiên", sendBackward: "Hạ xuống cuối", delete: "Xóa", copyStyles: "Sao chép định dạng", pasteStyles: "Dán định dạng", stroke: "Nét", background: "Nền", fill: "Fill", strokeWidth: "Độ dày nét", strokeStyle: "Kiểu nét", strokeStyle_solid: "Khối", strokeStyle_dashed: "Gạch ngang", strokeStyle_dotted: "Nhiều chấm", sloppiness: "Hoa văn nét", opacity: "Độ trong suốt", textAlign: "Căn chỉnh văn bản", edges: "Cạnh", sharp: "Nhọn", round: "Tròn", arrowheads: "Đầu mũi tên", arrowhead_none: "Không", arrowhead_arrow: "Mũi tên", arrowhead_bar: "Thanh", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "Tam giác", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "Cỡ chữ", fontFamily: "Phông chữ", addWatermark: 'Làm với Excalidraw"', handDrawn: "Vẽ tay", normal: "Bình thường", code: "Mã", small: "Nhỏ", medium: "Vừa", large: "Lớn", veryLarge: "Rất lớn", solid: "Đặc", hachure: "Nét gạch gạch", zigzag: "Zigzag", crossHatch: "Nét gạch chéo", thin: "Mỏng", bold: "In đậm", left: "Trái", center: "Giữa", right: "Phải", extraBold: "Nét siêu đậm", architect: "Kiến trúc sư", artist: "Nghệ sỹ", cartoonist: "Hoạt hình", fileTitle: "Tên tập tin", colorPicker: "Chọn màu", canvasColors: "Đã dùng trên canvas", canvasBackground: "Nền canvas", drawingCanvas: "Canvas vẽ", layers: "Lớp", actions: "Chức năng", language: "Ngôn ngữ", liveCollaboration: "Hợp tác trực tiếp...", duplicateSelection: "Tạo bản sao", untitled: "Không có tiêu đề", name: "Tên", yourName: "Tên của bạn", madeWithExcalidraw: "Làm với Excalidraw", group: "Gộp nhóm lại lựa chọn", ungroup: "Tách nhóm lựa chọn", collaborators: "Cộng tác viên", showGrid: "Hiển thị lưới", addToLibrary: "Thêm vào thư viện", removeFromLibrary: "Xóa khỏi thư viện", libraryLoadingMessage: "Đang tải thư viện…", libraries: "Xem thư viện", loadingScene: "Đang tải về…", align: "Căn chỉnh", alignTop: "Căn trên", alignBottom: "Căn dưới", alignLeft: "Canh trái", alignRight: "Canh phải", centerVertically: "Giữa theo chiều dọc", centerHorizontally: "Giữa theo chiều ngang", distributeHorizontally: "Phân bố theo chiều ngang", distributeVertically: "Phân bố theo chiều dọc", flipHorizontal: "Lật ngang", flipVertical: "Lật dọc", viewMode: "Chế độ xem", share: "Chia sẻ", showStroke: "Hiển thị chọn màu", showBackground: "Hiện thị chọn màu nền", toggleTheme: "", personalLib: "Thư viện cá nhân", excalidrawLib: "Thư viện Excalidraw", decreaseFontSize: "Giảm cỡ chữ", increaseFontSize: "Tăng cỡ chữ", unbindText: "", bindText: "", createContainerFromText: "", link: { edit: "Sửa liên kết", editEmbed: "", create: "Tạo liên kết", createEmbed: "", label: "Liên kết", labelEmbed: "", empty: "" }, lineEditor: { edit: "Điều chỉnh nét", exit: "Thoát chỉnh nét" }, elementLock: { lock: "Khoá", unlock: "Mở khoá", lockAll: "Khóa tất cả", unlockAll: "Mở khóa tất cả" }, statusPublished: "Đã đăng tải", sidebarLock: "Giữ thanh bên luôn mở", selectAllElementsInFrame: "", removeAllElementsFromFrame: "", eyeDropper: "", textToDiagram: "", prompt: "" }, E = { noItems: "Chưa có món nào...", hint_emptyLibrary: "Chọn một món trên canvas để thêm nó vào đây, hoặc cài đặt thư viện từ kho lưu trữ công cộng, ở bên dưới.", hint_emptyPrivateLibrary: "Chọn một món trên canvas để thêm nó vào đây." }, n = { clearReset: "Reset canvas", exportJSON: "Xuất ra tập tin", exportImage: "Xuất file ảnh...", export: "Lưu vào...", copyToClipboard: "Sao chép vào bộ nhớ tạm", save: "Lưu vào tập tin hiện tại", saveAs: "Lưu thành", load: "Mở", getShareableLink: "Tạo liên kết để chia sẻ", close: "Đóng", selectLanguage: "Chọn ngôn ngữ", scrollBackToContent: "Cuộn về nội dung chính", zoomIn: "Phóng to", zoomOut: "Thu nhỏ", resetZoom: "Đặt lại thu phóng", menu: "Bảng chọn", done: "Xong", edit: "Chỉnh sửa", undo: "Hoàn tác", redo: "Làm lại", resetLibrary: "", createNewRoom: "Tạo phòng mới", fullScreen: "Toàn màn hình", darkMode: "Chế độ tối", lightMode: "Chế độ sáng", zenMode: "Chế độ zen", objectsSnapMode: "", exitZenMode: "Thoát chể độ zen", cancel: "Hủy", clear: "Làm sạch", remove: "Xóa", embed: "", publishLibrary: "Đăng tải", submit: "Gửi", confirm: "Xác nhận", embeddableInteractionButton: "" }, e = { clearReset: "Điều này sẽ dọn hết canvas. Bạn có chắc không?", couldNotCreateShareableLink: "Không thể tạo đường dẫn chia sẻ.", couldNotCreateShareableLinkTooBig: "Không thể tạo đường dẫn chia sẻ: bản vẽ quá lớn", couldNotLoadInvalidFile: "Không thể load tập tin không hợp lệ", importBackendFailed: "", cannotExportEmptyCanvas: "Không thể xuất canvas trống.", couldNotCopyToClipboard: "", decryptFailed: "Không thể giải mã dữ liệu.", uploadedSecurly: "", loadSceneOverridePrompt: "", collabStopOverridePrompt: `Dừng phiên sẽ ghi đè lên bản vẽ được lưu trữ cục bộ trước đó của bạn. Bạn có chắc không?
3
-
4
- (Nếu bạn muốn giữ bản vẽ cục bộ của mình, chỉ cần đóng tab trình duyệt.)`, errorAddingToLibrary: "Không thể thêm món vào thư viện", errorRemovingFromLibrary: "Không thể xoá món khỏi thư viện", confirmAddLibrary: "Hình {{numShapes}} sẽ được thêm vào thư viện. Bạn chắc chứ?", imageDoesNotContainScene: "Hình ảnh này dường như không chứa bất kỳ dữ liệu cảnh nào. Bạn đã bật tính năng nhúng cảnh khi xuất chưa?", cannotRestoreFromImage: "", invalidSceneUrl: "", resetLibrary: "", removeItemsFromsLibrary: "Xoá {{count}} món từ thư viện?", invalidEncryptionKey: "Khóa mã hóa phải có 22 ký tự. Hợp tác trực tiếp bị vô hiệu hóa.", collabOfflineWarning: `Không có kết nối internet.
5
- Thay đổi của bạn sẽ không được lưu!` }, t = { unsupportedFileType: "Loại tập tin không được hỗ trợ.", imageInsertError: "Không thể thêm ảnh. Hãy thử lại sau...", fileTooBig: "Tệp tin quá lớn. Dung lượng tối đa cho phép là {{maxSize}}.", svgImageInsertError: "Không thể thêm ảnh SVG. Mã SVG có vẻ sai.", failedToFetchImage: "", invalidSVGString: "SVG không hợp lệ.", cannotResolveCollabServer: "Không thể kết nối với máy chủ hợp tác. Hãy tải lại trang và thử lại.", importLibraryError: "Không thể tải thư viện", collabSaveFailed: "Không thể lưu vào cơ sở dữ liệu. Nếu vấn đề tiếp tục xảy ra, bạn nên lưu tệp vào máy để đảm bảo bạn không bị mất công việc.", collabSaveFailed_sizeExceeded: "Không thể lưu vào cơ sở dữ liệu, canvas có vẻ quá lớn. Bạn nên lưu tệp cục bộ để đảm bảo bạn không bị mất công việc.", imageToolNotSupported: "", brave_measure_text_error: { line1: "", line2: "", line3: "", line4: "" }, libraryElementTypeError: { embeddable: "", iframe: "", image: "" }, asyncPasteFailedOnRead: "", asyncPasteFailedOnParse: "", copyToSystemClipboardFailed: "" }, a = { selection: "Lựa chọn", image: "Chèn ảnh", rectangle: "Hình chữ nhật", diamond: "Kim cương", ellipse: "Hình elíp", arrow: "Mũi tên", line: "Đường kẻ", freedraw: "Vẽ", text: "Văn bản", library: "Thư viện", lock: "Giữ dụng cũ hiện tại sau khi vẽ", penMode: "Chế độ bút vẽ - ngăn ngừa chạm nhầm", link: "Thêm/ Chỉnh sửa liên kết cho hình được chọn", eraser: "Xóa", frame: "", magicframe: "", embeddable: "", laser: "", hand: "Tay kéo", extraTools: "", mermaidToExcalidraw: "", magicSettings: "" }, i = { canvasActions: "Hành động canvas", selectedShapeActions: "Các hành động cho hình dạng đã chọn", shapes: "Các hình khối" }, o = { canvasPanning: "Để di chuyển canvas, giữ con lăn chuột hoặc phím cách trong khi kéo, hoặc sử dụng công cụ cầm tay", linearElement: "Ấn để bắt đầu nhiểm điểm vẽ, kéo để vẽ một đường thẳng", freeDraw: "Ấn bà kéo, thả khi bạn xong", text: "Mẹo: bạn có thể thêm văn bản tại bất cứ đâu bằng cách ấn hai lần bằng tool lựa chọn", embeddable: "", text_selected: "Ấn 2 lần hoặc nhấn ENTER để chỉnh văn bản", text_editing: "Nhấn Escape hoặc Ctrl/Cmd+ENTER để hoàn thành chỉnh sửa", linearElementMulti: "Nhấn vào điểm cuối hoặc nhấn Escape hoặc Enter để kết thúc", lockAngle: "Bạn có thể chỉnh lại góc bằng cách giữ phím SHIFT", resize: `Bạn có thể chỉnh tỷ lệ bằng cách giữ SHIFT khi chỉnh kích cỡ,
6
- giữ ALT để chỉnh kích cỡ từ trung tâm`, resizeImage: "", rotate: "", lineEditor_info: "", lineEditor_pointSelected: "", lineEditor_nothingSelected: "", placeImage: "", publishLibrary: "", bindTextToElement: "", deepBoxSelect: "", eraserRevert: "", firefox_clipboard_write: 'Tính năng này có thể được bật bằng cách đặt cờ "dom.events.asyncClipboard.clipboardItem" thành "true". Để thay đổi cờ trình duyệt trong Firefox, hãy truy cập trang "about:config".', disableSnapping: "" }, r = { cannotShowPreview: "Không thể xem trước", canvasTooBig: "Canvas này có thể hơi lớn.", canvasTooBigTip: "Mẹo: hãy thử di chuyển các elements nhất lại gần nhau hơn một chút." }, h = { headingMain: "", clearCanvasMessage: "Nếu không tải lại được, hãy thử <button>dọn canvas.</button>", clearCanvasCaveat: " Điều này sẽ dẫn đến mất dữ liệu bạn đã làm ", trackedToSentry: "", openIssueMessage: "", sceneContent: "" }, c = { desc_intro: "", desc_privacy: "", button_startSession: "", button_stopSession: "", desc_inProgressIntro: "", desc_shareLink: "", desc_exitSession: "", shareTitle: "" }, l = { title: "" }, x = { disk_title: "", disk_details: "", disk_button: "", link_title: "", link_details: "", link_button: "", excalidrawplus_description: "", excalidrawplus_button: "", excalidrawplus_exportError: "" }, s = { blog: "", click: "", deepSelect: "", deepBoxSelect: "", curvedArrow: "", curvedLine: "", documentation: "", doubleClick: "", drag: "", editor: "", editLineArrowPoints: "", editText: "", github: "", howto: "", or: "", preventBinding: "", tools: "", shortcuts: "", textFinish: "", textNewLine: "", title: "", view: "", zoomToFit: "", zoomToSelection: "", toggleElementLock: "", movePageUpDown: "", movePageLeftRight: "" }, d = { title: "Dọn canvas" }, g = { title: "", itemName: "Tên món", authorName: "", githubUsername: "", twitterUsername: "", libraryName: "", libraryDesc: "", website: "", placeholder: { authorName: "", libraryName: "", libraryDesc: "", githubHandle: "", twitterHandle: "", website: "" }, errors: { required: "", website: "" }, noteDescription: "", noteGuidelines: "", noteLicense: "", noteItems: "Từng món trong thư viện phải có tên riêng để có thể lọc. Các món thư viện sau đây sẽ thêm:", atleastOneLibItem: "Vui lòng chọn ít nhất một món thư viện để bắt đầu", republishWarning: "Lưu ý: một số món đã chọn được đánh dấu là đã xuất bản/đã gửi. Bạn chỉ nên gửi lại các món khi cập nhật thư viện hiện có hoặc gửi." }, A = { title: "", content: "" }, C = { resetLibrary: "", removeItemsFromLib: "Xóa món đã chọn khỏi thư viện" }, m = { header: "", label: { withBackground: "", onlySelected: "", darkMode: "", embedScene: "", scale: "", padding: "" }, tooltip: { embedScene: "" }, title: { exportToPng: "", exportToSvg: "", copyPngToClipboard: "" }, button: { exportToPng: "", exportToSvg: "", copyPngToClipboard: "" } }, D = { tooltip: "", link: "" }, B = { angle: "", element: "", elements: "", height: "", scene: "", selected: "", storage: "", title: "", total: "", version: "", versionCopy: "", versionNotAvailable: "", width: "" }, F = { addedToLibrary: "", copyStyles: "", copyToClipboard: "", copyToClipboardAsPng: "", fileSaved: "", fileSavedToFilename: "", canvas: "canvas", selection: "", pasteAsSingleElement: "", unableToEmbed: "", unrecognizedLinkFormat: "" }, b = { transparent: "", black: "", white: "", red: "", pink: "", grape: "", violet: "", gray: "", blue: "", cyan: "", teal: "", green: "", yellow: "", orange: "", bronze: "" }, p = { app: { center_heading: "", center_heading_plus: "", menuHint: "" }, defaults: { menuHint: "", center_heading: "", toolbarHint: "", helpHint: "" } }, v = { mostUsedCustomColors: "", colors: "", shades: "", hexCode: "", noShades: "" }, y = { action: { exportToImage: { title: "", button: "", description: "" }, saveToDisk: { title: "", button: "", description: "" }, excalidrawPlus: { title: "", button: "", description: "" } }, modal: { loadFromFile: { title: "", button: "", description: "" }, shareableLink: { title: "", button: "", description: "" } } }, k = { title: "", button: "", description: "", syntax: "", preview: "" }, S = { labels: u, library: E, buttons: n, alerts: e, errors: t, toolBar: a, headings: i, hints: o, canvasError: r, errorSplash: h, roomDialog: c, errorDialog: l, exportDialog: x, helpDialog: s, clearCanvasDialog: d, publishDialog: g, publishSuccessDialog: A, confirmDialog: C, imageExportDialog: m, encrypted: D, stats: B, toast: F, colors: b, welcomeScreen: p, colorPicker: v, overwriteConfirm: y, mermaid: k };
7
- export {
8
- e as alerts,
9
- n as buttons,
10
- r as canvasError,
11
- d as clearCanvasDialog,
12
- v as colorPicker,
13
- b as colors,
14
- C as confirmDialog,
15
- S as default,
16
- D as encrypted,
17
- l as errorDialog,
18
- h as errorSplash,
19
- t as errors,
20
- x as exportDialog,
21
- i as headings,
22
- s as helpDialog,
23
- o as hints,
24
- m as imageExportDialog,
25
- u as labels,
26
- E as library,
27
- k as mermaid,
28
- y as overwriteConfirm,
29
- g as publishDialog,
30
- A as publishSuccessDialog,
31
- c as roomDialog,
32
- B as stats,
33
- F as toast,
34
- a as toolBar,
35
- p as welcomeScreen
36
- };
@@ -1,5 +0,0 @@
1
- import { U as a, C as n } from "./layers.jU4W5PG5.js";
2
- const t = (r, o) => a.lang.round(n.parse(r)[o]);
3
- export {
4
- t as c
5
- };