@fangzhongya/vue-archive 0.0.47 → 0.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,68 +1,68 @@
1
- import { getConfig as A } from "../config.js";
2
- import { getVueTexts as H } from "@fangzhongya/utils/html/getVueText";
3
- import { getRawValue as d, isComprops as K, isCurprops as S, defaultExtensions as O, getComponentsArr as q } from "./common.js";
4
- import { mergeObject as D } from "@fangzhongya/utils/basic/object/mergeObject";
1
+ import { getConfig as $ } from "../config.js";
2
+ import { getVueTexts as q } from "@fangzhongya/utils/html/getVueText";
3
+ import { getRawValue as R, isComprops as S, isCurprops as U, defaultExtensions as E, getComponentsArr as D } from "./common.js";
4
+ import { mergeObject as J } from "@fangzhongya/utils/basic/object/mergeObject";
5
5
  import "@fangzhongya/utils/basic/array/toggleArray";
6
- import { humpToLine as T } from "@fangzhongya/utils/name/humpToLine";
7
- import { lineToLargeHump as I } from "@fangzhongya/utils/name/lineToLargeHump";
6
+ import { humpToLine as C } from "@fangzhongya/utils/name/humpToLine";
7
+ import { lineToLargeHump as V } from "@fangzhongya/utils/name/lineToLargeHump";
8
8
  import "@fangzhongya/utils/basic/string/appearNum";
9
- import { firstLower as V } from "@fangzhongya/utils/basic/string/firstLower";
10
- import { duplicateRemoval as J } from "@fangzhongya/utils/basic/array/duplicateRemoval";
11
- import { asyncMergeArray as U } from "@fangzhongya/utils/basic/array/asyncMergeArray";
9
+ import { firstLower as K } from "@fangzhongya/utils/basic/string/firstLower";
10
+ import { duplicateRemoval as Q } from "@fangzhongya/utils/basic/array/duplicateRemoval";
11
+ import { asyncMergeArray as M } from "@fangzhongya/utils/basic/array/asyncMergeArray";
12
12
  import "@fangzhongya/utils/basic/string/firstUpper";
13
13
  import { getSuffix as h } from "@fangzhongya/utils/urls/getSuffix";
14
14
  import "@fangzhongya/utils/basic/array/replaceAfter";
15
- import { getTextImport as Q } from "./index.js";
16
- const g = {}, x = {}, v = [], M = {}, P = {}, m = {};
17
- function X() {
18
- return A("example");
15
+ import { getTextImport as X } from "./index.js";
16
+ const g = {}, x = {}, v = [], B = {}, b = {}, m = {};
17
+ function Y() {
18
+ return $("example");
19
19
  }
20
- function Y(t, e, n, r) {
21
- const a = D(e, n || {}, 3, !0);
20
+ function Z(t, e, n, r) {
21
+ const a = J(e, n || {}, 3, !0);
22
22
  a.exampless = a.exampless || [], a.examplessRaw = a.examplessRaw || [];
23
23
  const s = [], i = a.examples;
24
- i && Object.keys(i).forEach((o) => {
25
- s.push(o), P[o] = i[o];
24
+ i && Object.keys(i).forEach((f) => {
25
+ s.push(f), b[f] = i[f];
26
26
  });
27
- const f = a.examplesRaw, l = [];
28
- if (a.urls && a.urls.length > 0 ? (a.exampless = a.urls, a.urls.forEach((o) => {
29
- l.push(o), f && (m[o] = N(f, o));
30
- })) : (a.exampless = s, f && Object.keys(f).forEach((o) => {
31
- l.push(o), m[o] = N(f, o);
27
+ const l = a.examplesRaw, o = [];
28
+ if (a.urls && a.urls.length > 0 ? (a.exampless = a.urls, a.urls.forEach((f) => {
29
+ o.push(f), l && (m[f] = j(l, f));
30
+ })) : (a.exampless = s, l && Object.keys(l).forEach((f) => {
31
+ o.push(f), m[f] = j(l, f);
32
32
  })), a.examples = void 0, e.tests && r) {
33
- const o = e.testsNanme || "/tests/";
34
- typeof o == "string" ? Object.keys(r).forEach((u) => {
35
- u.includes(o) && (a.exampless.push(u), l.push(u), m[u] = N(r, u));
36
- }) : Object.keys(r).forEach((u) => {
37
- o.test(u) && (a.exampless.push(u), l.push(u), m[u] = N(r, u));
33
+ const f = e.testsNanme || "/tests/";
34
+ typeof f == "string" ? Object.keys(r).forEach((c) => {
35
+ c.includes(f) && (a.exampless.push(c), o.push(c), m[c] = j(r, c));
36
+ }) : Object.keys(r).forEach((c) => {
37
+ f.test(c) && (a.exampless.push(c), o.push(c), m[c] = j(r, c));
38
38
  });
39
39
  }
40
- a.exampless = [...new Set(a.exampless)], a.examplessRaw = [...new Set(l)], a.examplesRaw = void 0, M[t] = a;
40
+ a.exampless = [...new Set(a.exampless)], a.examplessRaw = [...new Set(o)], a.examplesRaw = void 0, B[t] = a;
41
41
  }
42
- function N(t, e) {
42
+ function j(t, e) {
43
43
  return typeof t == "function" ? t : t && (t[e] || t);
44
44
  }
45
- const L = {};
46
- function Z(t) {
47
- const e = A("resolve");
48
- if (L[t])
49
- return L[t];
45
+ const A = {};
46
+ function _(t) {
47
+ const e = $("resolve");
48
+ if (A[t])
49
+ return A[t];
50
50
  for (let n of e)
51
51
  if (t.startsWith(n.find + "/")) {
52
52
  const a = n.replacement.replaceAll("\\", "/") + t.replace(n.find + "/", "/");
53
- return L[t] = a, a;
53
+ return A[t] = a, a;
54
54
  }
55
55
  }
56
- async function _(t, e) {
56
+ async function z(t, e) {
57
57
  let n = "";
58
- if (e == "vue" ? n = H(t).script : (e == "js" || e == "ts" || e == "") && (n = t), n) {
59
- const r = await Q(n), a = [];
58
+ if (e == "vue" ? n = q(t).script : (e == "js" || e == "ts" || e == "") && (n = t), n) {
59
+ const r = await X(n), a = [];
60
60
  return r && r.length > 0 && r.forEach((s) => {
61
61
  if (s)
62
62
  if (s.startsWith("./") || s.startsWith("../"))
63
63
  a.push(s);
64
64
  else {
65
- const i = Z(s);
65
+ const i = _(s);
66
66
  i && a.push(i);
67
67
  }
68
68
  }), a;
@@ -76,7 +76,7 @@ function We(t) {
76
76
  }) : e("") : e("");
77
77
  });
78
78
  }
79
- function z(t, e) {
79
+ function y(t, e) {
80
80
  t = (t || "") + "";
81
81
  let n = "";
82
82
  switch (t) {
@@ -92,109 +92,112 @@ function z(t, e) {
92
92
  }
93
93
  return n;
94
94
  }
95
- function y(t, e, n) {
95
+ function k(t, e, n) {
96
96
  t = (t || "") + "", n = (n || "") + "";
97
- let r = T(e.name), a = [];
97
+ let r = C(e.name), a = [];
98
98
  const s = Object.values(e.aliass || {});
99
99
  if (t === "1")
100
100
  e.alias && a.push(e.alias + "-" + r);
101
101
  else if (t === "2")
102
- s && s.length > 0 && s.forEach((f) => {
103
- a.push(f + "-" + r);
102
+ s && s.length > 0 && s.forEach((l) => {
103
+ a.push(l + "-" + r);
104
104
  });
105
105
  else if (t === "3") {
106
- let f = "";
107
- e.alias && (f = e.alias + "-"), s?.forEach((l) => {
108
- a.push(f + l + "-" + r);
106
+ let l = "";
107
+ e.alias && (l = e.alias + "-"), s?.forEach((o) => {
108
+ a.push(l + o + "-" + r);
109
109
  });
110
- } else t === "4" ? e.aliasNames?.forEach((f) => {
111
- a.push(T(f));
112
- }) : t == "9" && (a.push(r), e.aliasNames?.forEach((f) => {
113
- a.push(T(f));
110
+ } else t === "4" ? e.aliasNames?.forEach((l) => {
111
+ a.push(C(l));
112
+ }) : t == "9" && (a.push(r), e.aliasNames?.forEach((l) => {
113
+ a.push(C(l));
114
114
  }));
115
115
  a.length == 0 && a.push(r);
116
116
  let i = [];
117
- return n === "1" ? a.forEach((f) => {
118
- let l = I(f);
119
- i.push(l, V(l));
120
- }) : n === "2" ? a.forEach((f) => {
121
- let l = I(f);
122
- i.push(f, l, V(l));
117
+ return n === "1" ? a.forEach((l) => {
118
+ let o = V(l);
119
+ i.push(o, K(o));
120
+ }) : n === "2" ? a.forEach((l) => {
121
+ let o = V(l);
122
+ i.push(l, o, K(o));
123
123
  }) : i = [...a], i = [...new Set(i)], i;
124
124
  }
125
- function k(t, e, n, r) {
125
+ function ee(t, e, n, r) {
126
126
  const a = [];
127
127
  return n.examplessRaw.forEach((s) => {
128
128
  for (let i = 0; i < e.length; i++) {
129
- const f = e[i];
130
- if (s == t + f + n.md + ".md") {
129
+ const l = e[i];
130
+ if (s == t + l + n.md + ".md") {
131
131
  a.push({
132
+ cwd: n.cwd || r.cwd,
132
133
  topurl: t,
133
134
  comkey: r.key,
134
135
  suffix: h(s),
135
136
  name: r.name,
136
- value: f,
137
+ value: l,
137
138
  key: s,
138
139
  raw: "",
139
- getRaw: d(m, s)
140
+ getRaw: R(m, s)
140
141
  });
141
142
  break;
142
143
  }
143
144
  }
144
145
  }), a;
145
146
  }
146
- function $(t) {
147
- E();
147
+ function I(t) {
148
+ T();
148
149
  const e = g[t];
149
150
  if (e.tests && Object.keys(e.tests).length > 0)
150
151
  return e.tests;
151
152
  {
152
- const n = M[e.dir], r = n.dir + z(n.level || 0, e), a = y(
153
+ const n = B[e.dir], r = n.dir + y(n.level || 0, e), a = k(
153
154
  n.aliaslevel || 0,
154
155
  e,
155
156
  n.componentName || 0
156
157
  );
157
- e.mds = k(r, a, n, e);
158
+ e.mds = ee(r, a, n, e);
158
159
  const s = {};
159
160
  return n.exampless.forEach((i) => {
160
- for (let f = 0; f < a.length; f++) {
161
- const l = a[f];
162
- if (i.startsWith(r + l + "/")) {
163
- const o = new RegExp(
164
- "/([^/]+)/index\\." + O.join("|") + "$"
165
- ), u = new RegExp(
166
- "/([^/]+)\\." + O.join("|") + "$"
161
+ for (let l = 0; l < a.length; l++) {
162
+ const o = a[l];
163
+ if (i.startsWith(r + o + "/")) {
164
+ const f = new RegExp(
165
+ "/([^/]+)/index\\." + E.join("|") + "$"
166
+ ), c = new RegExp(
167
+ "/([^/]+)\\." + E.join("|") + "$"
167
168
  );
168
- let c = i.match(o) || i.match(u);
169
- if (c && c.length > 0) {
169
+ let u = i.match(f) || i.match(c);
170
+ if (u && u.length > 0) {
170
171
  let p = "";
171
- c && c.length > 1 && (p = c[1]), s[i] = {
172
+ u && u.length > 1 && (p = u[1]), s[i] = {
172
173
  topurl: r,
173
- name: l,
174
+ name: o,
174
175
  value: p,
175
176
  suffix: h(i),
176
177
  comname: e.name,
177
178
  comkey: e.key,
179
+ cwd: n.cwd || e.cwd,
178
180
  key: i,
179
181
  dir: e.dir,
180
182
  url: i,
181
- component: P[i],
183
+ component: b[i],
182
184
  raw: "",
183
- getRaw: d(m, i)
185
+ getRaw: R(m, i)
184
186
  };
185
187
  break;
186
188
  }
187
189
  }
188
190
  }
189
- }), n.tests && ee(s, e, n), e.tests = s, s;
191
+ }), n.tests && te(s, e, n), e.tests = s, s;
190
192
  }
191
193
  }
192
- function ee(t, e, n) {
194
+ function te(t, e, n) {
193
195
  const r = e.url.substring(0, e.url.lastIndexOf("/" + e.value + "/")) + "/" + e.value, a = n.testsNanme || "/tests/";
194
196
  typeof a == "string" ? n.examplessRaw.forEach((s) => {
195
197
  if (s.startsWith(r + "/")) {
196
198
  if (s == r + n.md + ".md")
197
199
  e.mds = e.mds || [], e.mds.push({
200
+ cwd: e.cwd,
198
201
  topurl: r,
199
202
  comkey: e.key,
200
203
  suffix: h(s),
@@ -202,30 +205,31 @@ function ee(t, e, n) {
202
205
  value: e.value,
203
206
  key: s,
204
207
  raw: "",
205
- getRaw: d(m, s)
208
+ getRaw: R(m, s)
206
209
  });
207
210
  else if (s.startsWith(r + a)) {
208
211
  const i = new RegExp(
209
- "/([^/]+)/index\\." + O.join("|") + "$"
210
- ), f = new RegExp(
211
- "/([^/]+)\\." + O.join("|") + "$"
212
+ "/([^/]+)/index\\." + E.join("|") + "$"
213
+ ), l = new RegExp(
214
+ "/([^/]+)\\." + E.join("|") + "$"
212
215
  );
213
- let l = s.match(i) || s.match(f);
214
- if (l && l.length > 0) {
215
- let o = "";
216
- l && l.length > 1 && (o = l[1]), t[s] = {
216
+ let o = s.match(i) || s.match(l);
217
+ if (o && o.length > 0) {
218
+ let f = "";
219
+ o && o.length > 1 && (f = o[1]), t[s] = {
217
220
  topurl: r,
218
221
  name: e.value,
219
- value: o,
222
+ value: f,
220
223
  suffix: h(s),
221
224
  comname: e.name,
222
225
  comkey: e.key,
226
+ cwd: n.cwd || e.cwd,
223
227
  key: s,
224
228
  dir: e.dir,
225
229
  url: s,
226
- component: P[s],
230
+ component: b[s],
227
231
  raw: "",
228
- getRaw: d(m, s)
232
+ getRaw: R(m, s)
229
233
  };
230
234
  }
231
235
  }
@@ -234,6 +238,7 @@ function ee(t, e, n) {
234
238
  if (s.startsWith(r + "/")) {
235
239
  if (s == r + n.md + ".md")
236
240
  e.mds = e.mds || [], e.mds.push({
241
+ cwd: e.cwd,
237
242
  topurl: r,
238
243
  comkey: e.key,
239
244
  suffix: h(s),
@@ -241,46 +246,47 @@ function ee(t, e, n) {
241
246
  value: e.value,
242
247
  key: s,
243
248
  raw: "",
244
- getRaw: d(m, s)
249
+ getRaw: R(m, s)
245
250
  });
246
251
  else if (a.test(s)) {
247
252
  const i = new RegExp(
248
- "/([^/]+)/index\\." + O.join("|") + "$"
249
- ), f = new RegExp(
250
- "/([^/]+)\\." + O.join("|") + "$"
253
+ "/([^/]+)/index\\." + E.join("|") + "$"
254
+ ), l = new RegExp(
255
+ "/([^/]+)\\." + E.join("|") + "$"
251
256
  );
252
- let l = s.match(i) || s.match(f);
253
- if (l && l.length > 0) {
254
- let o = "";
255
- l && l.length > 1 && (o = l[1]), t[s] = {
257
+ let o = s.match(i) || s.match(l);
258
+ if (o && o.length > 0) {
259
+ let f = "";
260
+ o && o.length > 1 && (f = o[1]), t[s] = {
261
+ cwd: n.cwd || e.cwd,
256
262
  topurl: r,
257
263
  name: e.value,
258
- value: o,
264
+ value: f,
259
265
  suffix: h(s),
260
266
  comname: e.name,
261
267
  comkey: e.key,
262
268
  key: s,
263
269
  dir: e.dir,
264
270
  url: s,
265
- component: P[s],
271
+ component: b[s],
266
272
  raw: "",
267
- getRaw: d(m, s)
273
+ getRaw: R(m, s)
268
274
  };
269
275
  }
270
276
  }
271
277
  }
272
278
  });
273
279
  }
274
- function be(t) {
280
+ function Le(t) {
275
281
  if (t) {
276
- const e = $(t);
282
+ const e = I(t);
277
283
  return Object.values(e);
278
284
  } else
279
285
  return [];
280
286
  }
281
- function Le(t, e, n) {
282
- E();
283
- const r = $(n), a = [];
287
+ function Ae(t, e, n) {
288
+ T();
289
+ const r = I(n), a = [];
284
290
  if (e) {
285
291
  let s = r[e];
286
292
  if (s)
@@ -290,80 +296,81 @@ function Le(t, e, n) {
290
296
  s.name + "/" + s.value == t && a.push(s);
291
297
  }), a;
292
298
  }
293
- function Ae(t) {
294
- return $(t), g[t].mds;
299
+ function $e(t) {
300
+ return I(t), g[t].mds;
295
301
  }
296
- async function B(t, e, n, r, a, s, i) {
297
- let f = await _(e, n) || [], l = a.split("/");
298
- return f.map((o) => {
299
- if (o.startsWith("./")) {
300
- let u = l.slice(0, l.length - 1).join("/"), c = o.substring(2);
301
- const p = u.replace(/^\.\/|((\.\.\/)+)/, "/");
302
- let w = t.indexOf(p) + p.length;
302
+ async function F(t, e, n) {
303
+ let r = t.key, a = t.dir, s = t.url, i = t.comprops, l = t.curprops, o = await z(e, n || t.suffix) || [], f = s.split("/");
304
+ return o.map((c) => {
305
+ if (c.startsWith("./")) {
306
+ let u = f.slice(0, f.length - 1).join("/"), p = c.substring(2);
307
+ const w = u.replace(/^\.\/|((\.\.\/)+)/, "/");
308
+ let d = r.indexOf(w) + w.length;
303
309
  return {
304
- key: t.substring(0, w) + "/" + c,
305
- name: o,
306
- comprops: s || "",
307
- curprops: i || "",
308
- value: c,
309
- suffix: h(o),
310
+ key: r.substring(0, d) + "/" + p,
311
+ name: c,
312
+ cwd: t.cwd,
313
+ comprops: i || "",
314
+ curprops: l || "",
315
+ value: p,
316
+ suffix: h(c),
310
317
  head: u,
311
- dir: r,
312
- url: u + "/" + c
318
+ dir: a,
319
+ url: u + "/" + p
313
320
  };
314
- } else if (o.startsWith("../")) {
315
- let u = o.split("/"), c = 0;
316
- for (let C = 0; C < u.length; C++)
317
- if (u[C] != "..") {
318
- c = C;
321
+ } else if (c.startsWith("../")) {
322
+ let u = c.split("/"), p = 0;
323
+ for (let N = 0; N < u.length; N++)
324
+ if (u[N] != "..") {
325
+ p = N;
319
326
  break;
320
327
  }
321
- let p = u.slice(c, u.length), w = l.slice(0, l.length - c - 1).join("/"), R = p.join("/");
322
- const b = w.replace(/^\.\/|((\.\.\/)+)/, "/");
323
- let G = t.indexOf(b) + b.length;
328
+ let w = u.slice(p, u.length), d = f.slice(0, f.length - p - 1).join("/"), O = w.join("/");
329
+ const L = d.replace(/^\.\/|((\.\.\/)+)/, "/");
330
+ let H = r.indexOf(L) + L.length;
324
331
  return {
325
- key: t.substring(0, G) + "/" + R,
326
- name: R,
327
- comprops: s || "",
328
- curprops: i || "",
329
- value: R,
330
- suffix: h(o),
331
- head: w,
332
- dir: r,
333
- url: w + "/" + R
332
+ key: r.substring(0, H) + "/" + O,
333
+ name: O,
334
+ cwd: t.cwd,
335
+ comprops: i || "",
336
+ curprops: l || "",
337
+ value: O,
338
+ suffix: h(c),
339
+ head: d,
340
+ dir: a,
341
+ url: d + "/" + O
334
342
  };
335
343
  } else {
336
- const u = r.replace(/^\.\/|((\.\.\/)+)/, "/");
337
- let c = o.indexOf(u) + u.length, p = o.substring(c), w = r.substring(0, r.length - 1);
344
+ const u = a.replace(/^\.\/|((\.\.\/)+)/, "/");
345
+ let p = c.indexOf(u) + u.length, w = c.substring(p), d = a.substring(0, a.length - 1);
338
346
  return {
339
- key: o,
340
- name: p,
341
- comprops: s || "",
342
- curprops: i || "",
343
- value: p,
344
- suffix: h(o),
345
- head: w,
346
- dir: r,
347
- url: w + "/" + p
347
+ key: c,
348
+ name: w,
349
+ comprops: i || "",
350
+ curprops: l || "",
351
+ value: w,
352
+ suffix: h(c),
353
+ head: d,
354
+ dir: a,
355
+ cwd: t.cwd,
356
+ url: d + "/" + w
348
357
  };
349
358
  }
350
359
  });
351
360
  }
352
- function $e(t) {
361
+ function Ie(t) {
353
362
  return new Promise((e) => {
354
363
  if (t && t.length > 0) {
355
364
  let n = t.map((r) => ({
365
+ ...r,
356
366
  raw: "",
357
- name: r.name,
358
- value: r.value,
359
367
  suffix: h(r.key),
360
- key: r.key,
361
- getRaw: d(m, r.key)
368
+ getRaw: R(m, r.key)
362
369
  }));
363
- U(n, (r, a, s, i) => {
364
- s.raw ? r() : s.getRaw ? s.getRaw(s).then((f) => {
365
- const l = W(f);
366
- s.raw = l, s.getRaw = null, r();
370
+ M(n, (r, a, s, i) => {
371
+ s.raw ? r() : s.getRaw ? s.getRaw(s).then((l) => {
372
+ const o = W(l);
373
+ s.raw = o, s.getRaw = null, r();
367
374
  }) : r();
368
375
  }).then(() => {
369
376
  e(n);
@@ -372,17 +379,17 @@ function $e(t) {
372
379
  e([]);
373
380
  });
374
381
  }
375
- function te() {
376
- const t = X();
377
- A("components")?.forEach((n) => {
378
- const r = re(n);
382
+ function se() {
383
+ const t = Y();
384
+ $("components")?.forEach((n) => {
385
+ const r = ae(n);
379
386
  let a = n.dir || "";
380
- Y(a, t, n.example, r);
387
+ Z(a, t, n.example, r);
381
388
  });
382
389
  }
383
- const j = "default";
384
- function se(t) {
385
- let e = T(t.name), n = [...t.aliasNames];
390
+ const P = "default";
391
+ function ne(t) {
392
+ let e = C(t.name), n = [...t.aliasNames];
386
393
  n.push(e), n.forEach((r) => {
387
394
  v.push({
388
395
  name: r,
@@ -390,78 +397,70 @@ function se(t) {
390
397
  });
391
398
  });
392
399
  }
393
- function ne(t, e) {
400
+ function re(t, e) {
394
401
  const n = {};
395
402
  e?.forEach((r) => {
396
- g[r.key] = r, se(r);
403
+ g[r.key] = r, ne(r);
397
404
  const a = Object.values(r.aliass || {});
398
405
  a && a.length ? a.forEach((s) => {
399
406
  n[s] = n[s] || [], n[s].push(r.key);
400
- }) : (n[j] = n[j] || [], n[j].push(r.key));
407
+ }) : (n[P] = n[P] || [], n[P].push(r.key));
401
408
  });
402
409
  }
403
- function re(t) {
410
+ function ae(t) {
404
411
  let e, n;
405
412
  const r = t.resolver;
406
413
  r && Object.keys(r).forEach((s) => {
407
414
  typeof t[s] > "u" && (t[s] = r[s]);
408
- }), e = t.alias || j;
415
+ }), e = t.alias || P;
409
416
  let a = t?.urls || Object.keys(t.componentsRaw);
410
- return n = q(a, t, t.componentsRaw, t.components, t), n && n?.props && n.props.forEach((s) => {
417
+ return n = D(a, t, t.componentsRaw, t.components, t), n && n?.props && n.props.forEach((s) => {
411
418
  x[s.url] = s;
412
- }), ne(e, n.components), t.componentsRaw;
419
+ }), re(e, n.components), t.componentsRaw;
413
420
  }
414
- function Ie(t) {
415
- return E(), g[t];
421
+ function Ve(t) {
422
+ return T(), g[t];
416
423
  }
417
- function E() {
418
- return Object.keys(g).length == 0 && te(), Object.values(g);
424
+ function T() {
425
+ return Object.keys(g).length == 0 && se(), Object.values(g);
419
426
  }
420
- function Ve() {
421
- return E(), x;
427
+ function Ke() {
428
+ return T(), x;
422
429
  }
423
- function Ke(t, e, n) {
424
- E();
430
+ function Se(t, e, n) {
431
+ T();
425
432
  const r = [];
426
433
  if (n) {
427
434
  let s = g[n];
428
435
  if (s && s.key)
429
436
  return [s];
430
437
  }
431
- let a = T(t);
438
+ let a = C(t);
432
439
  return v.forEach((s) => {
433
440
  e ? s.name.includes(a) && r.push(g[s.value]) : s.name == a && r.push(g[s.value]);
434
- }), J(r, "key");
441
+ }), Q(r, "key");
435
442
  }
436
- async function ae(t, e) {
443
+ async function ie(t, e) {
437
444
  let n = t;
438
445
  if (t) {
439
- let r = (await B(
440
- e.key,
441
- t,
442
- e.suffix,
443
- e.dir,
444
- e.url,
445
- e.comprops,
446
- e.curprops
447
- )).filter((a) => K(a.key, e.comprops || "") || S(a.key, e.curprops || ""));
448
- n = await F(r) + n;
446
+ let r = (await F(e, t)).filter((a) => S(a.key, e.comprops || "") || U(a.key, e.curprops || ""));
447
+ n = await G(r) + n;
449
448
  }
450
449
  return n;
451
450
  }
452
- function ie(t) {
451
+ function le(t) {
453
452
  const e = t.url, n = t.key;
454
453
  return x[e] || x[e + ".js"] || x[e + ".ts"] || x[n] || x[n + ".js"] || x[n + ".ts"];
455
454
  }
456
- function le(t) {
455
+ function oe(t) {
457
456
  return new Promise((e) => {
458
457
  if (t && t.length > 0) {
459
- let n = t.map((r) => ie(r)).filter((r) => !!r);
460
- U(n, (r, a, s, i) => {
461
- s.raw ? r() : s.getRaw ? s.getRaw(s).then(async (f) => {
462
- const l = W(f);
463
- let o = await ae(l, t[i]);
464
- s.raw = o, s.getRaw = null, r();
458
+ let n = t.map((r) => le(r)).filter((r) => !!r);
459
+ M(n, (r, a, s, i) => {
460
+ s.raw ? r() : s.getRaw ? s.getRaw(s).then(async (l) => {
461
+ const o = W(l);
462
+ let f = await ie(o, t[i]);
463
+ s.raw = f, s.getRaw = null, r();
465
464
  }) : r();
466
465
  }).then(() => {
467
466
  e(n);
@@ -470,37 +469,29 @@ function le(t) {
470
469
  e([]);
471
470
  });
472
471
  }
473
- async function F(t) {
474
- return ((await le(t))?.map((r) => r.raw) || []).join(`
472
+ async function G(t) {
473
+ return ((await oe(t))?.map((r) => r.raw) || []).join(`
475
474
  `);
476
475
  }
477
- async function oe(t, e) {
476
+ async function fe(t, e) {
478
477
  let n = t;
479
478
  if (t && (e.comprops || e.curprops)) {
480
- let r = (await B(
481
- e.key,
482
- t,
483
- e.suffix,
484
- e.dir,
485
- e.url,
486
- e.comprops || "",
487
- e.curprops
488
- )).filter((s) => K(s.key, e.comprops || "") || S(s.key, e.curprops || ""));
489
- n = await F(r) + n;
479
+ let r = (await F(e, t)).filter((s) => S(s.key, e.comprops || "") || U(s.key, e.curprops || ""));
480
+ n = await G(r) + n;
490
481
  }
491
482
  return n;
492
483
  }
493
484
  function W(t) {
494
485
  return t && typeof t == "object" ? t.default || "" : (t || "") + "";
495
486
  }
496
- function Se(t) {
487
+ function Ue(t) {
497
488
  return new Promise((e) => {
498
489
  if (t) {
499
- E();
490
+ T();
500
491
  const n = g[t];
501
492
  n ? n.raw ? e(n.raw) : n.getRaw ? n.getRaw(n).then((r) => {
502
493
  const a = W(r);
503
- oe(a, n).then((s) => {
494
+ fe(a, n).then((s) => {
504
495
  n.raw = s, n.getRaw = null, e(s);
505
496
  });
506
497
  }) : e("") : e("");
@@ -509,19 +500,19 @@ function Se(t) {
509
500
  });
510
501
  }
511
502
  export {
512
- j as defaultName,
513
- Ke as getCompoName,
514
- Ie as getCompoNameKey,
515
- E as getCompoNameObj,
516
- Ve as getComponentPropsObjs,
503
+ P as defaultName,
504
+ Se as getCompoName,
505
+ Ve as getCompoNameKey,
506
+ T as getCompoNameObj,
507
+ Ke as getComponentPropsObjs,
517
508
  W as getGetRawValue,
518
- Ae as getKeyMds,
519
- z as getLevelUrl,
520
- $e as getLocalTextArr,
521
- Se as getLocalTextComponents,
509
+ $e as getKeyMds,
510
+ y as getLevelUrl,
511
+ Ie as getLocalTextArr,
512
+ Ue as getLocalTextComponents,
522
513
  We as getLocalTextTests,
523
- le as getPropsRaws,
524
- B as getTestImportUrl,
525
- be as getTestName,
526
- Le as getTestNameObj
514
+ oe as getPropsRaws,
515
+ F as getTestImportUrl,
516
+ Le as getTestName,
517
+ Ae as getTestNameObj
527
518
  };