@8wave/ai-elements 0.104.0-beta.1 → 0.105.0-beta.1

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 (125) hide show
  1. package/dist/_chunks/{Agent-DG4nPG72.js → Agent-VhugusRf.js} +2 -2
  2. package/dist/_chunks/Agent-VhugusRf.js.map +1 -0
  3. package/dist/_chunks/{Document-DXkvvAnt.js → Document-DjNrISX1.js} +2 -2
  4. package/dist/_chunks/{Document-DXkvvAnt.js.map → Document-DjNrISX1.js.map} +1 -1
  5. package/dist/_chunks/{Media-3Mo4NRj7.js → Media-hjgDyEMr.js} +2 -2
  6. package/dist/_chunks/Media-hjgDyEMr.js.map +1 -0
  7. package/dist/_chunks/{PkStreamingMarkdown-YKd9F3xU.js → PkStreamingMarkdown-B4eMb97I.js} +2 -2
  8. package/dist/_chunks/{PkStreamingMarkdown-YKd9F3xU.js.map → PkStreamingMarkdown-B4eMb97I.js.map} +1 -1
  9. package/dist/_chunks/{PkToolRequestGeolocation-sf6LpUN_.js → PkToolRequestGeolocation-Bp-D2nDb.js} +3 -3
  10. package/{dist-vue/_chunks/PkToolRequestGeolocation-BdX5DzEN.js.map → dist/_chunks/PkToolRequestGeolocation-Bp-D2nDb.js.map} +1 -1
  11. package/dist/_chunks/{PkToolRequestOAuthConnection-BB8mlQit.js → PkToolRequestOAuthConnection-CjjyDj9A.js} +3 -3
  12. package/dist/_chunks/{PkToolRequestOAuthConnection-BB8mlQit.js.map → PkToolRequestOAuthConnection-CjjyDj9A.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowArtifact-54saXXCe.js → PkToolShowArtifact-Dl8f7Q7q.js} +2 -2
  14. package/dist/_chunks/{PkToolShowArtifact-54saXXCe.js.map → PkToolShowArtifact-Dl8f7Q7q.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowCalendarEvent-B_HPVUDk.js → PkToolShowCalendarEvent-B_QmZrlZ.js} +2 -2
  16. package/dist/_chunks/{PkToolShowCalendarEvent-B_HPVUDk.js.map → PkToolShowCalendarEvent-B_QmZrlZ.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowContactForm-BtcNCixq.js → PkToolShowContactForm-CXE0485W.js} +14 -14
  18. package/dist/_chunks/{PkToolShowContactForm-BtcNCixq.js.map → PkToolShowContactForm-CXE0485W.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowDiagram-cA64c2_N.js → PkToolShowDiagram-D-TyCkCB.js} +2 -2
  20. package/dist/_chunks/{PkToolShowDiagram-cA64c2_N.js.map → PkToolShowDiagram-D-TyCkCB.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowForm-DdBAG0Qs.js → PkToolShowForm-BzaibKAz.js} +101 -115
  22. package/dist/_chunks/PkToolShowForm-BzaibKAz.js.map +1 -0
  23. package/dist/_chunks/{PkToolShowSources-0qudS-bu.js → PkToolShowSources-CoTIoupP.js} +3 -3
  24. package/dist/_chunks/{PkToolShowSources-0qudS-bu.js.map → PkToolShowSources-CoTIoupP.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowSuggestedReply-B2IB6ioR.js → PkToolShowSuggestedReply-DA2Bi7k4.js} +2 -2
  26. package/dist/_chunks/{PkToolShowSuggestedReply-B2IB6ioR.js.map → PkToolShowSuggestedReply-DA2Bi7k4.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowWeather-Bl3Yoscl.js → PkToolShowWeather-ChDHtOLz.js} +2 -2
  28. package/dist/_chunks/{PkToolShowWeather-Bl3Yoscl.js.map → PkToolShowWeather-ChDHtOLz.js.map} +1 -1
  29. package/dist/_chunks/{browser-DuzNfJq0.js → browser-BXy4OnXA.js} +804 -779
  30. package/dist/_chunks/browser-BXy4OnXA.js.map +1 -0
  31. package/dist/_chunks/index.es-CnpsLhp_.js +1006 -0
  32. package/dist/_chunks/index.es-CnpsLhp_.js.map +1 -0
  33. package/dist/_chunks/utils-DtJdKlnF.js +185 -0
  34. package/dist/_chunks/utils-DtJdKlnF.js.map +1 -0
  35. package/dist/_chunks/{vue-i18n-_ouwlDGE.js → vue-i18n-C3J36GV4.js} +2 -2
  36. package/dist/_chunks/{vue-i18n-_ouwlDGE.js.map → vue-i18n-C3J36GV4.js.map} +1 -1
  37. package/dist/_chunks/{web-DnPxEADy.js → web-CzR5jWfC.js} +46 -45
  38. package/dist/_chunks/{web-DnPxEADy.js.map → web-CzR5jWfC.js.map} +1 -1
  39. package/dist/ai-elements.es.js +2100 -2159
  40. package/dist/ai-elements.es.js.map +1 -1
  41. package/dist-vue/PkChatbot.js +1 -1
  42. package/dist-vue/PkChatbotMessages.js +1 -1
  43. package/dist-vue/PkChatbotStepPayload.js +1 -1
  44. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  45. package/dist-vue/PkChatbotSteps.js +1 -1
  46. package/dist-vue/PkChatbotViewChat.js +1 -1
  47. package/dist-vue/PkChatbotViewConversations.js +1 -1
  48. package/dist-vue/PkChatbotViewFiles.js +1 -1
  49. package/dist-vue/PkChatbotViewProfile.js +1 -1
  50. package/dist-vue/_chunks/{Agent-gCuDMxHN.js → Agent-CpIgGdU4.js} +2 -2
  51. package/dist-vue/_chunks/Agent-CpIgGdU4.js.map +1 -0
  52. package/dist-vue/_chunks/{Document-iH61Cw06.js → Document-CiaGPYTR.js} +2 -2
  53. package/dist-vue/_chunks/{Document-iH61Cw06.js.map → Document-CiaGPYTR.js.map} +1 -1
  54. package/dist-vue/_chunks/{PkChatbot-Bg9oercD.js → PkChatbot-xmjKbljL.js} +7 -7
  55. package/dist-vue/_chunks/{PkChatbot-Bg9oercD.js.map → PkChatbot-xmjKbljL.js.map} +1 -1
  56. package/dist-vue/_chunks/{PkChatbotMessages-DUQxuYaG.js → PkChatbotMessages-tHQ2JQrb.js} +75 -75
  57. package/dist-vue/_chunks/{PkChatbotMessages-DUQxuYaG.js.map → PkChatbotMessages-tHQ2JQrb.js.map} +1 -1
  58. package/dist-vue/_chunks/{PkChatbotStepPayload-hCmy4XG9.js → PkChatbotStepPayload-BtsnkJIV.js} +2 -2
  59. package/dist-vue/_chunks/{PkChatbotStepPayload-hCmy4XG9.js.map → PkChatbotStepPayload-BtsnkJIV.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkChatbotStepToolDetail-B0WU0HcD.js → PkChatbotStepToolDetail-CCa95eBO.js} +116 -101
  61. package/dist-vue/_chunks/PkChatbotStepToolDetail-CCa95eBO.js.map +1 -0
  62. package/dist-vue/_chunks/PkChatbotSteps-CPBzs7Gi.js +180 -0
  63. package/dist-vue/_chunks/PkChatbotSteps-CPBzs7Gi.js.map +1 -0
  64. package/dist-vue/_chunks/{PkChatbotViewChat-YwjWNoqf.js → PkChatbotViewChat-CdiPjQLq.js} +6 -6
  65. package/dist-vue/_chunks/{PkChatbotViewChat-YwjWNoqf.js.map → PkChatbotViewChat-CdiPjQLq.js.map} +1 -1
  66. package/dist-vue/_chunks/{PkChatbotViewConversations-vo57eSwy.js → PkChatbotViewConversations-BP-NJvlK.js} +2 -2
  67. package/dist-vue/_chunks/{PkChatbotViewConversations-vo57eSwy.js.map → PkChatbotViewConversations-BP-NJvlK.js.map} +1 -1
  68. package/dist-vue/_chunks/{PkChatbotViewFiles-DDPugn7F.js → PkChatbotViewFiles-DRUVmxU5.js} +3 -3
  69. package/dist-vue/_chunks/{PkChatbotViewFiles-DDPugn7F.js.map → PkChatbotViewFiles-DRUVmxU5.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkChatbotViewProfile-Dww5KI21.js → PkChatbotViewProfile-ywvIs6N5.js} +2 -2
  71. package/dist-vue/_chunks/{PkChatbotViewProfile-Dww5KI21.js.map → PkChatbotViewProfile-ywvIs6N5.js.map} +1 -1
  72. package/dist-vue/_chunks/{PkToolRequestGeolocation-BdX5DzEN.js → PkToolRequestGeolocation-BdIyXoPQ.js} +2 -2
  73. package/{dist/_chunks/PkToolRequestGeolocation-sf6LpUN_.js.map → dist-vue/_chunks/PkToolRequestGeolocation-BdIyXoPQ.js.map} +1 -1
  74. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BUmnRgMi.js → PkToolRequestOAuthConnection-Dnch7xAB.js} +2 -2
  75. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BUmnRgMi.js.map → PkToolRequestOAuthConnection-Dnch7xAB.js.map} +1 -1
  76. package/dist-vue/_chunks/{PkToolShowDiagram-YMo-iVWr.js → PkToolShowDiagram-DgLxNNp7.js} +2 -2
  77. package/dist-vue/_chunks/{PkToolShowDiagram-YMo-iVWr.js.map → PkToolShowDiagram-DgLxNNp7.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkToolShowForm-D2n2rA6J.js → PkToolShowForm-6eLi6Wr0.js} +103 -117
  79. package/dist-vue/_chunks/PkToolShowForm-6eLi6Wr0.js.map +1 -0
  80. package/dist-vue/_chunks/{PkToolShowSources-DUAsrrzC.js → PkToolShowSources-DTJgvDiB.js} +2 -2
  81. package/dist-vue/_chunks/{PkToolShowSources-DUAsrrzC.js.map → PkToolShowSources-DTJgvDiB.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkToolShowSuggestedReply-Dm28RIJF.js → PkToolShowSuggestedReply-D9RY2h6Z.js} +2 -2
  83. package/dist-vue/_chunks/{PkToolShowSuggestedReply-Dm28RIJF.js.map → PkToolShowSuggestedReply-D9RY2h6Z.js.map} +1 -1
  84. package/dist-vue/_chunks/{createChatbotApiClient-CAX-3-oK.js → createChatbotApiClient-12eL7hul.js} +2 -2
  85. package/dist-vue/_chunks/{createChatbotApiClient-CAX-3-oK.js.map → createChatbotApiClient-12eL7hul.js.map} +1 -1
  86. package/dist-vue/_chunks/{useChatbotStore-Rj18hAUf.js → useChatbotStore-Chtzi5jc.js} +1086 -1016
  87. package/dist-vue/_chunks/useChatbotStore-Chtzi5jc.js.map +1 -0
  88. package/dist-vue/_chunks/{utils-B0jsOUqd.js → utils-DKNWwMTQ.js} +46 -23
  89. package/dist-vue/_chunks/utils-DKNWwMTQ.js.map +1 -0
  90. package/dist-vue/_chunks/{web-DnPxEADy.js → web-CzR5jWfC.js} +46 -45
  91. package/dist-vue/_chunks/{web-DnPxEADy.js.map → web-CzR5jWfC.js.map} +1 -1
  92. package/dist-vue/api.js +1 -1
  93. package/dist-vue/composables.js +3 -3
  94. package/dist-vue/index.js +261 -261
  95. package/dist-vue/index.js.map +1 -1
  96. package/dist-vue/locales.js +10 -4
  97. package/dist-vue/packages/components/src/PkEditorRepeater.d.ts +1 -1
  98. package/dist-vue/packages/components/src/chat/constants.d.ts +12 -0
  99. package/dist-vue/packages/components/src/chat/utils.d.ts +37 -0
  100. package/dist-vue/packages/models/src/schema/Agent.d.ts +24 -16
  101. package/dist-vue/packages/models/src/schema/AgentChatStatistics.d.ts +1 -1
  102. package/dist-vue/packages/models/src/schema/Chat.d.ts +9 -9
  103. package/dist-vue/packages/models/src/schema/Document.d.ts +6 -6
  104. package/dist-vue/packages/models/src/schema/DocumentFolder.d.ts +0 -1
  105. package/dist-vue/packages/models/src/schema/McpServer.d.ts +2 -2
  106. package/dist-vue/packages/models/src/schema/Member.d.ts +2 -2
  107. package/dist-vue/packages/models/src/schema/Organization.d.ts +4 -4
  108. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +29 -29
  109. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +20 -20
  110. package/dist-vue/packages/models/src/schema/User.d.ts +6 -6
  111. package/dist-vue/packages/models/src/schema/constants.d.ts +2 -0
  112. package/package.json +10 -5
  113. package/dist/_chunks/Agent-DG4nPG72.js.map +0 -1
  114. package/dist/_chunks/Media-3Mo4NRj7.js.map +0 -1
  115. package/dist/_chunks/PkToolShowForm-DdBAG0Qs.js.map +0 -1
  116. package/dist/_chunks/browser-DuzNfJq0.js.map +0 -1
  117. package/dist/_chunks/index.es-DXx8DNKf.js +0 -2986
  118. package/dist/_chunks/index.es-DXx8DNKf.js.map +0 -1
  119. package/dist-vue/_chunks/Agent-gCuDMxHN.js.map +0 -1
  120. package/dist-vue/_chunks/PkChatbotStepToolDetail-B0WU0HcD.js.map +0 -1
  121. package/dist-vue/_chunks/PkChatbotSteps-BrvTsAeZ.js +0 -177
  122. package/dist-vue/_chunks/PkChatbotSteps-BrvTsAeZ.js.map +0 -1
  123. package/dist-vue/_chunks/PkToolShowForm-D2n2rA6J.js.map +0 -1
  124. package/dist-vue/_chunks/useChatbotStore-Rj18hAUf.js.map +0 -1
  125. package/dist-vue/_chunks/utils-B0jsOUqd.js.map +0 -1
@@ -1,2986 +0,0 @@
1
- import { C as e, E as t, F as n, G as r, I as i, O as a, P as o, R as s, S as c, V as l, X as u, at as d, bt as f, ft as p, gt as m, ht as h, it as g, k as _, m as v, p as y, pt as b, r as x, rt as S, u as C, ut as w, vt as T, w as E, x as D, yt as O } from "./vue.runtime.esm-bundler-D6KKITU0.js";
2
- import { t as k } from "./src-Co0-iQeD.js";
3
- import { _ as ee, g as te, u as ne } from "./dist-vbhhaYbZ.js";
4
- import { n as re, t as ie } from "./dot-prop-BEIkPL0b.js";
5
- import { D as ae, E as oe, O as se, k as A } from "./schemas-U769m8P5.js";
6
- //#region ../../node_modules/.pnpm/@intlify+shared@11.4.9/node_modules/@intlify/shared/dist/shared.mjs
7
- var ce = typeof window < "u", j = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), le = (e, t, n) => ue({
8
- l: e,
9
- k: t,
10
- s: n
11
- }), ue = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), M = (e) => typeof e == "number" && isFinite(e), de = (e) => ye(e) === "[object Date]", fe = (e) => ye(e) === "[object RegExp]", pe = (e) => H(e) && Object.keys(e).length === 0, N = Object.assign, me = Object.create, P = (e = null) => me(e), he, F = () => he ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : P(), ge = Object.prototype.hasOwnProperty;
12
- function I(e, t) {
13
- return ge.call(e, t);
14
- }
15
- var L = Array.isArray, R = (e) => typeof e == "function", z = (e) => typeof e == "string", B = (e) => typeof e == "boolean", V = (e) => typeof e == "object" && !!e, _e = (e) => V(e) && R(e.then) && R(e.catch), ve = Object.prototype.toString, ye = (e) => ve.call(e), H = (e) => ye(e) === "[object Object]", be = (e) => e == null ? "" : L(e) || H(e) && e.toString === ve ? JSON.stringify(e, null, 2) : String(e);
16
- function xe(e, t = "") {
17
- return e.reduce((e, n, r) => r === 0 ? e + n : e + t + n, "");
18
- }
19
- function Se(e, t) {
20
- typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
21
- }
22
- function Ce(e) {
23
- return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
24
- }
25
- function we(e) {
26
- return e.replace(/&(?![a-z0-9#]{2,6};)/gi, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
27
- }
28
- var Te = /^javascript:/i, Ee = /^(?:href|src|action|formaction)$/i, De = /&#(?:x([0-9a-f]+)|(\d+));?/gi, Oe = /&(?:Tab|NewLine);/g, U = /&colon;?/gi, ke = /[\u0000-\u0020\u007f-\u009f]/g, Ae = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i, je = /(^|[\s"'<>/])on(\w+\s*=)/gi, Me = /(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
29
- function Ne(e, t, n) {
30
- let r = t || n;
31
- if (!r) return e;
32
- let i = Number.parseInt(r, t ? 16 : 10);
33
- return i <= 127 ? String.fromCharCode(i) : e;
34
- }
35
- function Pe(e) {
36
- let t = e.replace(De, Ne).replace(Oe, "").replace(U, ":").replace(ke, "");
37
- return Te.test(t);
38
- }
39
- function Fe(e) {
40
- let t = /url\s*\(/gi, n = "", r = 0, i;
41
- for (; (i = t.exec(e)) !== null;) {
42
- let a = i.index, o = t.lastIndex - 1, s = o + 1, c = 1, l = null;
43
- for (; s < e.length; s++) {
44
- let t = e[s];
45
- if (l) {
46
- t === l && (l = null);
47
- continue;
48
- }
49
- if (t === "\"" || t === "'") l = t;
50
- else if (t === "(") c++;
51
- else if (t === ")" && (c--, c === 0)) break;
52
- }
53
- if (c !== 0) break;
54
- let u = e.slice(o + 1, s).trim(), d = u.startsWith("\"") && u.endsWith("\"") || u.startsWith("'") && u.endsWith("'") ? u.slice(1, -1).trim() : u;
55
- n += e.slice(r, a), n += Pe(d) ? "url(about:blank)" : e.slice(a, s + 1), r = s + 1;
56
- }
57
- return n + e.slice(r);
58
- }
59
- function Ie(e, t) {
60
- return Ee.test(e) && Pe(t) ? "about:blank" : we(e.toLowerCase() === "style" ? Fe(t) : t);
61
- }
62
- function Le(e) {
63
- return e = e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${Ie(t, n)}"`), e = e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (e, t, n) => `${t}='${Ie(t, n)}'`), Ae.test(e) && (e = e.replace(je, "$1&#111;n$2")), e = e.replace(Me, (e, t, n, r) => Pe(r) ? `${t}${n}about:blank` : e), e;
64
- }
65
- var Re = (e) => !V(e) || L(e);
66
- function ze(e, t) {
67
- if (Re(e) || Re(t)) throw Error("Invalid value");
68
- let n = [{
69
- src: e,
70
- des: t
71
- }];
72
- for (; n.length;) {
73
- let { src: e, des: t } = n.pop();
74
- Object.keys(e).forEach((r) => {
75
- if (r === "__proto__") return;
76
- let i = e[r];
77
- if (L(i)) {
78
- let e = [];
79
- e.length = i.length, t[r] = e, n.push({
80
- src: i,
81
- des: e
82
- });
83
- } else V(i) ? ((!V(t[r]) || L(t[r])) && (t[r] = P()), n.push({
84
- src: i,
85
- des: t[r]
86
- })) : t[r] = i;
87
- });
88
- }
89
- }
90
- //#endregion
91
- //#region ../../node_modules/.pnpm/@intlify+message-compiler@11.4.9/node_modules/@intlify/message-compiler/dist/message-compiler.mjs
92
- function Be(e, t, n) {
93
- return {
94
- line: e,
95
- column: t,
96
- offset: n
97
- };
98
- }
99
- function Ve(e, t, n) {
100
- let r = {
101
- start: e,
102
- end: t
103
- };
104
- return n != null && (r.source = n), r;
105
- }
106
- var W = {
107
- EXPECTED_TOKEN: 1,
108
- INVALID_TOKEN_IN_PLACEHOLDER: 2,
109
- UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
110
- UNKNOWN_ESCAPE_SEQUENCE: 4,
111
- INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
112
- UNBALANCED_CLOSING_BRACE: 6,
113
- UNTERMINATED_CLOSING_BRACE: 7,
114
- EMPTY_PLACEHOLDER: 8,
115
- NOT_ALLOW_NEST_PLACEHOLDER: 9,
116
- INVALID_LINKED_FORMAT: 10,
117
- MUST_HAVE_MESSAGES_IN_PLURAL: 11,
118
- UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
119
- UNEXPECTED_EMPTY_LINKED_KEY: 13,
120
- UNEXPECTED_LEXICAL_ANALYSIS: 14,
121
- UNHANDLED_CODEGEN_NODE_TYPE: 15,
122
- UNHANDLED_MINIFIER_NODE_TYPE: 16
123
- };
124
- W.EXPECTED_TOKEN, W.INVALID_TOKEN_IN_PLACEHOLDER, W.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, W.UNKNOWN_ESCAPE_SEQUENCE, W.INVALID_UNICODE_ESCAPE_SEQUENCE, W.UNBALANCED_CLOSING_BRACE, W.UNTERMINATED_CLOSING_BRACE, W.EMPTY_PLACEHOLDER, W.NOT_ALLOW_NEST_PLACEHOLDER, W.INVALID_LINKED_FORMAT, W.MUST_HAVE_MESSAGES_IN_PLURAL, W.UNEXPECTED_EMPTY_LINKED_MODIFIER, W.UNEXPECTED_EMPTY_LINKED_KEY, W.UNEXPECTED_LEXICAL_ANALYSIS, W.UNHANDLED_CODEGEN_NODE_TYPE, W.UNHANDLED_MINIFIER_NODE_TYPE;
125
- function He(e, t, n = {}) {
126
- let { domain: r, messages: i, args: a } = n, o = SyntaxError(String(e));
127
- return o.code = e, t && (o.location = t), o.domain = r, o;
128
- }
129
- function Ue(e) {
130
- throw e;
131
- }
132
- var G = " ", We = "\r", K = "\n", Ge = "\u2028", Ke = "\u2029";
133
- function qe(e) {
134
- let t = e, n = 0, r = 1, i = 1, a = 0, o = (e) => t[e] === We && t[e + 1] === K, s = (e) => t[e] === K, c = (e) => t[e] === Ke, l = (e) => t[e] === Ge, u = (e) => o(e) || s(e) || c(e) || l(e), d = () => n, f = () => r, p = () => i, m = () => a, h = (e) => o(e) || c(e) || l(e) ? K : t[e], g = () => h(n), _ = () => h(n + a);
135
- function v() {
136
- return a = 0, u(n) && (r++, i = 0), o(n) && n++, n++, i++, t[n];
137
- }
138
- function y() {
139
- return o(n + a) && a++, a++, t[n + a];
140
- }
141
- function b() {
142
- n = 0, r = 1, i = 1, a = 0;
143
- }
144
- function x(e = 0) {
145
- a = e;
146
- }
147
- function S() {
148
- let e = n + a;
149
- for (; e !== n;) v();
150
- a = 0;
151
- }
152
- return {
153
- index: d,
154
- line: f,
155
- column: p,
156
- peekOffset: m,
157
- charAt: h,
158
- currentChar: g,
159
- currentPeek: _,
160
- next: v,
161
- peek: y,
162
- reset: b,
163
- resetPeek: x,
164
- skipToPeek: S
165
- };
166
- }
167
- var Je = void 0, Ye = "'", Xe = "tokenizer";
168
- function Ze(e, t = {}) {
169
- let n = t.location !== !1, r = qe(e), i = () => r.index(), a = () => Be(r.line(), r.column(), r.index()), o = a(), s = i(), c = {
170
- currentType: 13,
171
- offset: s,
172
- startLoc: o,
173
- endLoc: o,
174
- lastType: 13,
175
- lastOffset: s,
176
- lastStartLoc: o,
177
- lastEndLoc: o,
178
- braceNest: 0,
179
- inLinked: !1,
180
- text: ""
181
- }, l = () => c, { onError: u } = t;
182
- function d(e, t, r, ...i) {
183
- let a = l();
184
- if (t.column += r, t.offset += r, u) {
185
- let r = He(e, n ? Ve(a.startLoc, t) : null, {
186
- domain: Xe,
187
- args: i
188
- });
189
- u(r);
190
- }
191
- }
192
- function f(e, t, r) {
193
- e.endLoc = a(), e.currentType = t;
194
- let i = { type: t };
195
- return n && (i.loc = Ve(e.startLoc, e.endLoc)), r != null && (i.value = r), i;
196
- }
197
- let p = (e) => f(e, 13);
198
- function m(e, t) {
199
- return e.currentChar() === t ? (e.next(), t) : (d(W.EXPECTED_TOKEN, a(), 0, t), "");
200
- }
201
- function h(e) {
202
- let t = "";
203
- for (; e.currentPeek() === G || e.currentPeek() === K;) t += e.currentPeek(), e.peek();
204
- return t;
205
- }
206
- function g(e) {
207
- let t = h(e);
208
- return e.skipToPeek(), t;
209
- }
210
- function _(e) {
211
- if (e === Je) return !1;
212
- let t = e.charCodeAt(0);
213
- return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t === 95;
214
- }
215
- function v(e) {
216
- if (e === Je) return !1;
217
- let t = e.charCodeAt(0);
218
- return t >= 48 && t <= 57;
219
- }
220
- function y(e, t) {
221
- let { currentType: n } = t;
222
- if (n !== 2) return !1;
223
- h(e);
224
- let r = _(e.currentPeek());
225
- return e.resetPeek(), r;
226
- }
227
- function b(e, t) {
228
- let { currentType: n } = t;
229
- if (n !== 2) return !1;
230
- h(e);
231
- let r = v(e.currentPeek() === "-" ? e.peek() : e.currentPeek());
232
- return e.resetPeek(), r;
233
- }
234
- function x(e, t) {
235
- let { currentType: n } = t;
236
- if (n !== 2) return !1;
237
- h(e);
238
- let r = e.currentPeek() === Ye;
239
- return e.resetPeek(), r;
240
- }
241
- function S(e, t) {
242
- let { currentType: n } = t;
243
- if (n !== 7) return !1;
244
- h(e);
245
- let r = e.currentPeek() === ".";
246
- return e.resetPeek(), r;
247
- }
248
- function C(e, t) {
249
- let { currentType: n } = t;
250
- if (n !== 8) return !1;
251
- h(e);
252
- let r = _(e.currentPeek());
253
- return e.resetPeek(), r;
254
- }
255
- function w(e, t) {
256
- let { currentType: n } = t;
257
- if (n !== 7 && n !== 11) return !1;
258
- h(e);
259
- let r = e.currentPeek() === ":";
260
- return e.resetPeek(), r;
261
- }
262
- function T(e, t) {
263
- let { currentType: n } = t;
264
- if (n !== 9) return !1;
265
- let r = () => {
266
- let t = e.currentPeek();
267
- return t === "{" ? _(e.peek()) : t === "@" || t === "|" || t === ":" || t === "." || t === G || !t ? !1 : t === K ? (e.peek(), r()) : D(e, !1);
268
- }, i = r();
269
- return e.resetPeek(), i;
270
- }
271
- function E(e) {
272
- h(e);
273
- let t = e.currentPeek() === "|";
274
- return e.resetPeek(), t;
275
- }
276
- function D(e, t = !0) {
277
- let n = (t = !1, r = "") => {
278
- let i = e.currentPeek();
279
- return i === "{" || i === "@" || !i ? t : i === "|" ? r !== G && r !== K : i === G ? (e.peek(), n(!0, G)) : i !== K || (e.peek(), n(!0, K));
280
- }, r = n();
281
- return t && e.resetPeek(), r;
282
- }
283
- function O(e, t) {
284
- let n = e.currentChar();
285
- if (n !== Je) return t(n) ? (e.next(), n) : null;
286
- }
287
- function k(e) {
288
- let t = e.charCodeAt(0);
289
- return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36;
290
- }
291
- function ee(e) {
292
- return O(e, k);
293
- }
294
- function te(e) {
295
- let t = e.charCodeAt(0);
296
- return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36 || t === 45;
297
- }
298
- function ne(e) {
299
- return O(e, te);
300
- }
301
- function re(e) {
302
- let t = e.charCodeAt(0);
303
- return t >= 48 && t <= 57;
304
- }
305
- function ie(e) {
306
- return O(e, re);
307
- }
308
- function ae(e) {
309
- let t = e.charCodeAt(0);
310
- return t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102;
311
- }
312
- function oe(e) {
313
- return O(e, ae);
314
- }
315
- function se(e) {
316
- let t = "", n = "";
317
- for (; t = ie(e);) n += t;
318
- return n;
319
- }
320
- function A(e) {
321
- let t = "";
322
- for (;;) {
323
- let n = e.currentChar();
324
- if (n === "\\") {
325
- let r = e.peek();
326
- r === "{" || r === "}" || r === "@" || r === "|" || r === "\\" ? (t += n + r, e.next(), e.next()) : (e.resetPeek(), t += n, e.next());
327
- } else if (n === "{" || n === "}" || n === "@" || n === "|" || !n) break;
328
- else if (n === G || n === K) {
329
- if (D(e)) t += n, e.next();
330
- else if (E(e)) break;
331
- else t += n, e.next();
332
- } else t += n, e.next();
333
- }
334
- return t;
335
- }
336
- function ce(e) {
337
- g(e);
338
- let t = "", n = "";
339
- for (; t = ne(e);) n += t;
340
- let r = e.currentChar();
341
- if (r && r !== "}" && r !== Je && r !== G && r !== K && r !== " ") {
342
- let t = pe(e);
343
- return d(W.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n + t), n + t;
344
- }
345
- return e.currentChar() === Je && d(W.UNTERMINATED_CLOSING_BRACE, a(), 0), n;
346
- }
347
- function j(e) {
348
- g(e);
349
- let t = "";
350
- return e.currentChar() === "-" ? (e.next(), t += `-${se(e)}`) : t += se(e), e.currentChar() === Je && d(W.UNTERMINATED_CLOSING_BRACE, a(), 0), t;
351
- }
352
- function le(e) {
353
- return e !== Ye && e !== K;
354
- }
355
- function ue(e) {
356
- g(e), m(e, "'");
357
- let t = "", n = "";
358
- for (; t = O(e, le);) n += t === "\\" ? M(e) : t;
359
- let r = e.currentChar();
360
- return r === K || r === Je ? (d(W.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), r === K && (e.next(), m(e, "'")), n) : (m(e, "'"), n);
361
- }
362
- function M(e) {
363
- let t = e.currentChar();
364
- switch (t) {
365
- case "\\":
366
- case "'": return e.next(), `\\${t}`;
367
- case "u": return de(e, t, 4);
368
- case "U": return de(e, t, 6);
369
- default: return d(W.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, t), "";
370
- }
371
- }
372
- function de(e, t, n) {
373
- m(e, t);
374
- let r = "";
375
- for (let i = 0; i < n; i++) {
376
- let n = oe(e);
377
- if (!n) {
378
- d(W.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${t}${r}${e.currentChar()}`);
379
- break;
380
- }
381
- r += n;
382
- }
383
- return `\\${t}${r}`;
384
- }
385
- function fe(e) {
386
- return e !== "{" && e !== "}" && e !== G && e !== K;
387
- }
388
- function pe(e) {
389
- g(e);
390
- let t = "", n = "";
391
- for (; t = O(e, fe);) n += t;
392
- return n;
393
- }
394
- function N(e) {
395
- let t = "", n = "";
396
- for (; t = ee(e);) n += t;
397
- return n;
398
- }
399
- function me(e) {
400
- let t = (n) => {
401
- let r = e.currentChar();
402
- return r === "{" || r === "@" || r === "|" || r === "(" || r === ")" || !r || r === G ? n : (n += r, e.next(), t(n));
403
- };
404
- return t("");
405
- }
406
- function P(e) {
407
- g(e);
408
- let t = m(e, "|");
409
- return g(e), t;
410
- }
411
- function he(e, t) {
412
- let n = null;
413
- switch (e.currentChar()) {
414
- case "{": return t.braceNest >= 1 && d(W.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), e.next(), n = f(t, 2, "{"), g(e), t.braceNest++, n;
415
- case "}": return t.braceNest > 0 && t.currentType === 2 && d(W.EMPTY_PLACEHOLDER, a(), 0), e.next(), n = f(t, 3, "}"), t.braceNest--, t.braceNest > 0 && g(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), n;
416
- case "@": return t.braceNest > 0 && d(W.UNTERMINATED_CLOSING_BRACE, a(), 0), n = F(e, t) || p(t), t.braceNest = 0, n;
417
- default: {
418
- let r = !0, i = !0, o = !0;
419
- if (E(e)) return t.braceNest > 0 && d(W.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, P(e)), t.braceNest = 0, t.inLinked = !1, n;
420
- if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d(W.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, ge(e, t);
421
- if (r = y(e, t)) return n = f(t, 4, ce(e)), g(e), n;
422
- if (i = b(e, t)) return n = f(t, 5, j(e)), g(e), n;
423
- if (o = x(e, t)) return n = f(t, 6, ue(e)), g(e), n;
424
- if (!r && !i && !o) return n = f(t, 12, pe(e)), d(W.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), g(e), n;
425
- break;
426
- }
427
- }
428
- return n;
429
- }
430
- function F(e, t) {
431
- let { currentType: n } = t, r = null, i = e.currentChar();
432
- switch ((n === 7 || n === 8 || n === 11 || n === 9) && (i === K || i === G) && d(W.INVALID_LINKED_FORMAT, a(), 0), i) {
433
- case "@": return e.next(), r = f(t, 7, "@"), t.inLinked = !0, r;
434
- case ".": return g(e), e.next(), f(t, 8, ".");
435
- case ":": return g(e), e.next(), f(t, 9, ":");
436
- default: return E(e) ? (r = f(t, 1, P(e)), t.braceNest = 0, t.inLinked = !1, r) : S(e, t) || w(e, t) ? (g(e), F(e, t)) : C(e, t) ? (g(e), f(t, 11, N(e))) : T(e, t) ? (g(e), i === "{" ? he(e, t) || r : f(t, 10, me(e))) : (n === 7 && d(W.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, ge(e, t));
437
- }
438
- }
439
- function ge(e, t) {
440
- let n = { type: 13 };
441
- if (t.braceNest > 0) return he(e, t) || p(t);
442
- if (t.inLinked) return F(e, t) || p(t);
443
- switch (e.currentChar()) {
444
- case "{": return he(e, t) || p(t);
445
- case "}": return d(W.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), f(t, 3, "}");
446
- case "@": return F(e, t) || p(t);
447
- default:
448
- if (E(e)) return n = f(t, 1, P(e)), t.braceNest = 0, t.inLinked = !1, n;
449
- if (D(e)) return f(t, 0, A(e));
450
- }
451
- return n;
452
- }
453
- function I() {
454
- let { currentType: e, offset: t, startLoc: n, endLoc: o } = c;
455
- return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === Je ? f(c, 13) : ge(r, c);
456
- }
457
- return {
458
- nextToken: I,
459
- currentOffset: i,
460
- currentPosition: a,
461
- context: l
462
- };
463
- }
464
- var Qe = "parser", $e = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g, et = /\\([\\@{}|])/g;
465
- function tt(e, t) {
466
- return t;
467
- }
468
- function nt(e, t, n) {
469
- switch (e) {
470
- case "\\\\": return "\\";
471
- case "\\'": return "'";
472
- default: {
473
- let e = parseInt(t || n, 16);
474
- return e <= 55295 || e >= 57344 ? String.fromCodePoint(e) : "�";
475
- }
476
- }
477
- }
478
- function rt(e = {}) {
479
- let t = e.location !== !1, { onError: n } = e;
480
- function r(e, r, i, a, ...o) {
481
- let s = e.currentPosition();
482
- if (s.offset += a, s.column += a, n) {
483
- let e = He(r, t ? Ve(i, s) : null, {
484
- domain: Qe,
485
- args: o
486
- });
487
- n(e);
488
- }
489
- }
490
- function i(e, n, r) {
491
- let i = { type: e };
492
- return t && (i.start = n, i.end = n, i.loc = {
493
- start: r,
494
- end: r
495
- }), i;
496
- }
497
- function a(e, n, r, i) {
498
- t && (e.end = n, e.loc && (e.loc.end = r));
499
- }
500
- function o(e, t) {
501
- let n = e.context(), r = i(3, n.offset, n.startLoc);
502
- return r.value = t.replace(et, tt), a(r, e.currentOffset(), e.currentPosition()), r;
503
- }
504
- function s(e, t) {
505
- let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(5, n, r);
506
- return o.index = parseInt(t, 10), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
507
- }
508
- function c(e, t) {
509
- let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(4, n, r);
510
- return o.key = t, e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
511
- }
512
- function l(e, t) {
513
- let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(9, n, r);
514
- return o.value = t.replace($e, nt), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
515
- }
516
- function u(e) {
517
- let t = e.nextToken(), n = e.context(), { lastOffset: o, lastStartLoc: s } = n, c = i(8, o, s);
518
- return t.type === 11 ? (t.value ?? r(e, W.UNEXPECTED_LEXICAL_ANALYSIS, n.lastStartLoc, 0, q(t)), c.value = t.value || "", a(c, e.currentOffset(), e.currentPosition()), { node: c }) : (r(e, W.UNEXPECTED_EMPTY_LINKED_MODIFIER, n.lastStartLoc, 0), c.value = "", a(c, o, s), {
519
- nextConsumeToken: t,
520
- node: c
521
- });
522
- }
523
- function d(e, t) {
524
- let n = e.context(), r = i(7, n.offset, n.startLoc);
525
- return r.value = t, a(r, e.currentOffset(), e.currentPosition()), r;
526
- }
527
- function f(e) {
528
- let t = e.context(), n = i(6, t.offset, t.startLoc), o = e.nextToken();
529
- if (o.type === 8) {
530
- let t = u(e);
531
- n.modifier = t.node, o = t.nextConsumeToken || e.nextToken();
532
- }
533
- switch (o.type !== 9 && r(e, W.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, q(o)), o = e.nextToken(), o.type === 2 && (o = e.nextToken()), o.type) {
534
- case 10:
535
- o.value ?? r(e, W.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, q(o)), n.key = d(e, o.value || "");
536
- break;
537
- case 4:
538
- o.value ?? r(e, W.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, q(o)), n.key = c(e, o.value || "");
539
- break;
540
- case 5:
541
- o.value ?? r(e, W.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, q(o)), n.key = s(e, o.value || "");
542
- break;
543
- case 6:
544
- o.value ?? r(e, W.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, q(o)), n.key = l(e, o.value || "");
545
- break;
546
- default: {
547
- r(e, W.UNEXPECTED_EMPTY_LINKED_KEY, t.lastStartLoc, 0);
548
- let s = e.context(), c = i(7, s.offset, s.startLoc);
549
- return c.value = "", a(c, s.offset, s.startLoc), n.key = c, a(n, s.offset, s.startLoc), {
550
- nextConsumeToken: o,
551
- node: n
552
- };
553
- }
554
- }
555
- return a(n, e.currentOffset(), e.currentPosition()), { node: n };
556
- }
557
- function p(e) {
558
- let t = e.context(), n = i(2, t.currentType === 1 ? e.currentOffset() : t.offset, t.currentType === 1 ? t.endLoc : t.startLoc);
559
- n.items = [];
560
- let u = null;
561
- do {
562
- let i = u || e.nextToken();
563
- switch (u = null, i.type) {
564
- case 0:
565
- i.value ?? r(e, W.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, q(i)), n.items.push(o(e, i.value || ""));
566
- break;
567
- case 5:
568
- i.value ?? r(e, W.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, q(i)), n.items.push(s(e, i.value || ""));
569
- break;
570
- case 4:
571
- i.value ?? r(e, W.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, q(i)), n.items.push(c(e, i.value || ""));
572
- break;
573
- case 6:
574
- i.value ?? r(e, W.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, q(i)), n.items.push(l(e, i.value || ""));
575
- break;
576
- case 7: {
577
- let t = f(e);
578
- n.items.push(t.node), u = t.nextConsumeToken || null;
579
- break;
580
- }
581
- }
582
- } while (t.currentType !== 13 && t.currentType !== 1);
583
- return a(n, t.currentType === 1 ? t.lastOffset : e.currentOffset(), t.currentType === 1 ? t.lastEndLoc : e.currentPosition()), n;
584
- }
585
- function m(e, t, n, o) {
586
- let s = e.context(), c = o.items.length === 0, l = i(1, t, n);
587
- l.cases = [], l.cases.push(o);
588
- do {
589
- let t = p(e);
590
- c ||= t.items.length === 0, l.cases.push(t);
591
- } while (s.currentType !== 13);
592
- return c && r(e, W.MUST_HAVE_MESSAGES_IN_PLURAL, n, 0), a(l, e.currentOffset(), e.currentPosition()), l;
593
- }
594
- function h(e) {
595
- let t = e.context(), { offset: n, startLoc: r } = t, i = p(e);
596
- return t.currentType === 13 ? i : m(e, n, r, i);
597
- }
598
- function g(n) {
599
- let o = Ze(n, N({}, e)), s = o.context(), c = i(0, s.offset, s.startLoc);
600
- return t && c.loc && (c.loc.source = n), c.body = h(o), e.onCacheKey && (c.cacheKey = e.onCacheKey(n)), s.currentType !== 13 && r(o, W.UNEXPECTED_LEXICAL_ANALYSIS, s.lastStartLoc, 0, n[s.offset] || ""), a(c, o.currentOffset(), o.currentPosition()), c;
601
- }
602
- return { parse: g };
603
- }
604
- function q(e) {
605
- if (e.type === 13) return "EOF";
606
- let t = (e.value || "").replace(/\r?\n/gu, "\\n");
607
- return t.length > 10 ? t.slice(0, 9) + "…" : t;
608
- }
609
- function it(e, t = {}) {
610
- let n = {
611
- ast: e,
612
- helpers: /* @__PURE__ */ new Set()
613
- };
614
- return {
615
- context: () => n,
616
- helper: (e) => (n.helpers.add(e), e)
617
- };
618
- }
619
- function at(e, t) {
620
- for (let n = 0; n < e.length; n++) ot(e[n], t);
621
- }
622
- function ot(e, t) {
623
- switch (e.type) {
624
- case 1:
625
- at(e.cases, t), t.helper("plural");
626
- break;
627
- case 2:
628
- at(e.items, t);
629
- break;
630
- case 6:
631
- ot(e.key, t), t.helper("linked"), t.helper("type");
632
- break;
633
- case 5:
634
- t.helper("interpolate"), t.helper("list");
635
- break;
636
- case 4: t.helper("interpolate"), t.helper("named");
637
- }
638
- }
639
- function st(e, t = {}) {
640
- let n = it(e);
641
- n.helper("normalize"), e.body && ot(e.body, n);
642
- let r = n.context();
643
- e.helpers = Array.from(r.helpers);
644
- }
645
- function ct(e) {
646
- let t = e.body;
647
- return t.type === 2 ? lt(t) : t.cases.forEach((e) => lt(e)), e;
648
- }
649
- function lt(e) {
650
- if (e.items.length === 1) {
651
- let t = e.items[0];
652
- (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
653
- } else {
654
- let t = [];
655
- for (let n = 0; n < e.items.length; n++) {
656
- let r = e.items[n];
657
- if (r.type !== 3 && r.type !== 9 || r.value == null) break;
658
- t.push(r.value);
659
- }
660
- if (t.length === e.items.length) {
661
- e.static = xe(t);
662
- for (let t = 0; t < e.items.length; t++) {
663
- let n = e.items[t];
664
- (n.type === 3 || n.type === 9) && delete n.value;
665
- }
666
- }
667
- }
668
- }
669
- function ut(e) {
670
- switch (e.t = e.type, e.type) {
671
- case 0: {
672
- let t = e;
673
- ut(t.body), t.b = t.body, delete t.body;
674
- break;
675
- }
676
- case 1: {
677
- let t = e, n = t.cases;
678
- for (let e = 0; e < n.length; e++) ut(n[e]);
679
- t.c = n, delete t.cases;
680
- break;
681
- }
682
- case 2: {
683
- let t = e, n = t.items;
684
- for (let e = 0; e < n.length; e++) ut(n[e]);
685
- t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
686
- break;
687
- }
688
- case 3:
689
- case 9:
690
- case 8:
691
- case 7: {
692
- let t = e;
693
- t.value && (t.v = t.value, delete t.value);
694
- break;
695
- }
696
- case 6: {
697
- let t = e;
698
- ut(t.key), t.k = t.key, delete t.key, t.modifier && (ut(t.modifier), t.m = t.modifier, delete t.modifier);
699
- break;
700
- }
701
- case 5: {
702
- let t = e;
703
- t.i = t.index, delete t.index;
704
- break;
705
- }
706
- case 4: {
707
- let t = e;
708
- t.k = t.key, delete t.key;
709
- break;
710
- }
711
- }
712
- delete e.type;
713
- }
714
- function dt(e, t) {
715
- let { filename: n, breakLineCode: r, needIndent: i } = t, a = t.location !== !1, o = {
716
- filename: n,
717
- code: "",
718
- column: 1,
719
- line: 1,
720
- offset: 0,
721
- map: void 0,
722
- breakLineCode: r,
723
- needIndent: i,
724
- indentLevel: 0
725
- };
726
- a && e.loc && (o.source = e.loc.source);
727
- let s = () => o;
728
- function c(e, t) {
729
- o.code += e;
730
- }
731
- function l(e, t = !0) {
732
- let n = t ? r : "";
733
- c(i ? n + " ".repeat(e) : n);
734
- }
735
- function u(e = !0) {
736
- let t = ++o.indentLevel;
737
- e && l(t);
738
- }
739
- function d(e = !0) {
740
- let t = --o.indentLevel;
741
- e && l(t);
742
- }
743
- function f() {
744
- l(o.indentLevel);
745
- }
746
- return {
747
- context: s,
748
- push: c,
749
- indent: u,
750
- deindent: d,
751
- newline: f,
752
- helper: (e) => `_${e}`,
753
- needIndent: () => o.needIndent
754
- };
755
- }
756
- function ft(e, t) {
757
- let { helper: n } = e;
758
- e.push(`${n("linked")}(`), gt(e, t.key), t.modifier ? (e.push(", "), gt(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
759
- }
760
- function pt(e, t) {
761
- let { helper: n, needIndent: r } = e;
762
- e.push(`${n("normalize")}([`), e.indent(r());
763
- let i = t.items.length;
764
- for (let n = 0; n < i && (gt(e, t.items[n]), n !== i - 1); n++) e.push(", ");
765
- e.deindent(r()), e.push("])");
766
- }
767
- function mt(e, t) {
768
- let { helper: n, needIndent: r } = e;
769
- if (t.cases.length > 1) {
770
- e.push(`${n("plural")}([`), e.indent(r());
771
- let i = t.cases.length;
772
- for (let n = 0; n < i && (gt(e, t.cases[n]), n !== i - 1); n++) e.push(", ");
773
- e.deindent(r()), e.push("])");
774
- }
775
- }
776
- function ht(e, t) {
777
- t.body ? gt(e, t.body) : e.push("null");
778
- }
779
- function gt(e, t) {
780
- let { helper: n } = e;
781
- switch (t.type) {
782
- case 0:
783
- ht(e, t);
784
- break;
785
- case 1:
786
- mt(e, t);
787
- break;
788
- case 2:
789
- pt(e, t);
790
- break;
791
- case 6:
792
- ft(e, t);
793
- break;
794
- case 8:
795
- e.push(JSON.stringify(t.value), t);
796
- break;
797
- case 7:
798
- e.push(JSON.stringify(t.value), t);
799
- break;
800
- case 5:
801
- e.push(`${n("interpolate")}(${n("list")}(${t.index}))`, t);
802
- break;
803
- case 4:
804
- e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`, t);
805
- break;
806
- case 9:
807
- e.push(JSON.stringify(t.value), t);
808
- break;
809
- case 3: e.push(JSON.stringify(t.value), t);
810
- }
811
- }
812
- var _t = (e, t = {}) => {
813
- let n = z(t.mode) ? t.mode : "normal", r = z(t.filename) ? t.filename : "message.intl";
814
- t.sourceMap;
815
- let i = t.breakLineCode == null ? n === "arrow" ? ";" : "\n" : t.breakLineCode, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], s = dt(e, {
816
- filename: r,
817
- breakLineCode: i,
818
- needIndent: a
819
- });
820
- s.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), s.indent(a), o.length > 0 && (s.push(`const { ${xe(o.map((e) => `${e}: _${e}`), ", ")} } = ctx`), s.newline()), s.push("return "), gt(s, e), s.deindent(a), s.push("}"), delete e.helpers;
821
- let { code: c, map: l } = s.context();
822
- return {
823
- ast: e,
824
- code: c,
825
- map: l ? l.toJSON() : void 0
826
- };
827
- };
828
- function vt(e, t = {}) {
829
- let n = N({}, t), r = !!n.jit, i = !!n.minify, a = n.optimize == null || n.optimize, o = rt(n).parse(e);
830
- return r ? (a && ct(o), i && ut(o), {
831
- ast: o,
832
- code: ""
833
- }) : (st(o, n), _t(o, n));
834
- }
835
- //#endregion
836
- //#region ../../node_modules/.pnpm/@intlify+core-base@11.4.9/node_modules/@intlify/core-base/dist/core-base.mjs
837
- function yt() {
838
- typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (F().__INTLIFY_PROD_DEVTOOLS__ = !1);
839
- }
840
- function J(e) {
841
- return V(e) && kt(e) === 0 && (I(e, "b") || I(e, "body"));
842
- }
843
- var bt = ["b", "body"];
844
- function xt(e) {
845
- return It(e, bt);
846
- }
847
- var St = ["c", "cases"];
848
- function Ct(e) {
849
- return It(e, St, []);
850
- }
851
- var wt = ["s", "static"];
852
- function Tt(e) {
853
- return It(e, wt);
854
- }
855
- var Et = ["i", "items"];
856
- function Dt(e) {
857
- return It(e, Et, []);
858
- }
859
- var Ot = ["t", "type"];
860
- function kt(e) {
861
- return It(e, Ot);
862
- }
863
- var At = ["v", "value"];
864
- function jt(e, t) {
865
- let n = It(e, At);
866
- if (n != null) return n;
867
- throw Rt(t);
868
- }
869
- var Mt = ["m", "modifier"];
870
- function Nt(e) {
871
- return It(e, Mt);
872
- }
873
- var Pt = ["k", "key"];
874
- function Ft(e) {
875
- let t = It(e, Pt);
876
- if (t) return t;
877
- throw Rt(6);
878
- }
879
- function It(e, t, n) {
880
- for (let n = 0; n < t.length; n++) {
881
- let r = t[n];
882
- if (I(e, r) && e[r] != null) return e[r];
883
- }
884
- return n;
885
- }
886
- var Lt = [
887
- ...bt,
888
- ...St,
889
- ...wt,
890
- ...Et,
891
- ...Pt,
892
- ...Mt,
893
- ...At,
894
- ...Ot
895
- ];
896
- function Rt(e) {
897
- return /* @__PURE__ */ Error(`unhandled node type: ${e}`);
898
- }
899
- function zt(e) {
900
- return (t) => Bt(t, e);
901
- }
902
- function Bt(e, t) {
903
- let n = xt(t);
904
- if (n == null) throw Rt(0);
905
- if (kt(n) === 1) {
906
- let t = Ct(n);
907
- return e.plural(t.reduce((t, n) => [...t, Vt(e, n)], []));
908
- }
909
- return Vt(e, n);
910
- }
911
- function Vt(e, t) {
912
- let n = Tt(t);
913
- if (n != null) return e.type === "text" ? n : e.normalize([n]);
914
- {
915
- let n = Dt(t).reduce((t, n) => [...t, Ht(e, n)], []);
916
- return e.normalize(n);
917
- }
918
- }
919
- function Ht(e, t) {
920
- let n = kt(t);
921
- switch (n) {
922
- case 3: return jt(t, n);
923
- case 9: return jt(t, n);
924
- case 4: {
925
- let r = t;
926
- if (I(r, "k") && r.k) return e.interpolate(e.named(r.k));
927
- if (I(r, "key") && r.key) return e.interpolate(e.named(r.key));
928
- throw Rt(n);
929
- }
930
- case 5: {
931
- let r = t;
932
- if (I(r, "i") && M(r.i)) return e.interpolate(e.list(r.i));
933
- if (I(r, "index") && M(r.index)) return e.interpolate(e.list(r.index));
934
- throw Rt(n);
935
- }
936
- case 6: {
937
- let n = t, r = Nt(n), i = Ft(n);
938
- return e.linked(Ht(e, i), r ? Ht(e, r) : void 0, e.type);
939
- }
940
- case 7: return jt(t, n);
941
- case 8: return jt(t, n);
942
- default: throw Error(`unhandled node on format message part: ${n}`);
943
- }
944
- }
945
- var Ut = (e) => e, Wt = P();
946
- function Gt(e, t = {}) {
947
- let n = !1, r = t.onError || Ue;
948
- return t.onError = (e) => {
949
- n = !0, r(e);
950
- }, {
951
- ...vt(e, t),
952
- detectError: n
953
- };
954
- }
955
- /* #__NO_SIDE_EFFECTS__ */
956
- function Kt(e, t) {
957
- if (z(e)) {
958
- B(t.warnHtmlMessage) && t.warnHtmlMessage;
959
- let n = (t.onCacheKey || Ut)(e), r = Wt[n];
960
- if (r) return r;
961
- let { ast: i, detectError: a } = Gt(e, {
962
- ...t,
963
- location: !1,
964
- jit: !0
965
- }), o = zt(i);
966
- return a ? o : Wt[n] = o;
967
- }
968
- {
969
- let t = e.cacheKey;
970
- return t ? Wt[t] || (Wt[t] = zt(e)) : zt(e);
971
- }
972
- }
973
- var qt = null;
974
- function Jt(e) {
975
- qt = e;
976
- }
977
- function Yt(e, t, n) {
978
- qt && qt.emit("i18n:init", {
979
- timestamp: Date.now(),
980
- i18n: e,
981
- version: t,
982
- meta: n
983
- });
984
- }
985
- var Xt = /* #__PURE__*/ Zt("function:translate");
986
- function Zt(e) {
987
- return (t) => qt && qt.emit(e, t);
988
- }
989
- var Y = {
990
- INVALID_ARGUMENT: 17,
991
- INVALID_DATE_ARGUMENT: 18,
992
- INVALID_ISO_DATE_ARGUMENT: 19,
993
- NOT_SUPPORT_NON_STRING_MESSAGE: 20,
994
- NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
995
- NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
996
- NOT_SUPPORT_LOCALE_TYPE: 23
997
- };
998
- function Qt(e) {
999
- return He(e, null, void 0);
1000
- }
1001
- Y.INVALID_ARGUMENT, Y.INVALID_DATE_ARGUMENT, Y.INVALID_ISO_DATE_ARGUMENT, Y.NOT_SUPPORT_NON_STRING_MESSAGE, Y.NOT_SUPPORT_LOCALE_PROMISE_VALUE, Y.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION, Y.NOT_SUPPORT_LOCALE_TYPE;
1002
- function $t(e, t) {
1003
- return t.locale == null ? tn(e.locale) : tn(t.locale);
1004
- }
1005
- var en;
1006
- function tn(e) {
1007
- if (z(e)) return e;
1008
- if (R(e)) {
1009
- if (e.resolvedOnce && en != null) return en;
1010
- if (e.constructor.name === "Function") {
1011
- let t = e();
1012
- if (_e(t)) throw Qt(Y.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1013
- return en = t;
1014
- }
1015
- throw Qt(Y.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1016
- }
1017
- throw Qt(Y.NOT_SUPPORT_LOCALE_TYPE);
1018
- }
1019
- function nn(e, t, n) {
1020
- return [.../* @__PURE__ */ new Set([n, ...L(t) ? t : V(t) ? Object.keys(t).filter((e) => e !== "default") : z(t) ? [t] : [n]])];
1021
- }
1022
- function rn(e, t, n) {
1023
- let r = z(n) ? n : bn, i = e;
1024
- i.__localeChainCache ||= /* @__PURE__ */ new Map();
1025
- let a = ue(t), o = i.__localeChainCache.get(r);
1026
- o || (o = /* @__PURE__ */ new Map(), i.__localeChainCache.set(r, o));
1027
- let s = o.get(a);
1028
- if (s) return s;
1029
- let c = [], l = [n];
1030
- for (; L(l);) l = an(c, l, t);
1031
- let u = L(t) || !H(t) ? t : t.default ? t.default : null;
1032
- return l = z(u) ? [u] : u, L(l) && an(c, l, !1), o.set(a, c), c;
1033
- }
1034
- function an(e, t, n) {
1035
- let r = !0;
1036
- for (let i = 0; i < t.length && B(r); i++) {
1037
- let a = t[i];
1038
- z(a) && (r = on(e, t[i], n));
1039
- }
1040
- return r;
1041
- }
1042
- function on(e, t, n) {
1043
- let r, i = t.split("-");
1044
- do
1045
- r = sn(e, i.join("-"), n), i.splice(-1, 1);
1046
- while (i.length && r === !0);
1047
- return r;
1048
- }
1049
- function sn(e, t, n) {
1050
- let r = !1;
1051
- if (!e.includes(t) && (r = !0, t)) {
1052
- r = t[t.length - 1] !== "!";
1053
- let i = t.replace(/!/g, "");
1054
- e.push(i), (L(n) || H(n)) && n[i] && (r = n[i]);
1055
- }
1056
- return r;
1057
- }
1058
- var cn = [];
1059
- cn[0] = {
1060
- w: [0],
1061
- i: [3, 0],
1062
- "[": [4],
1063
- o: [7]
1064
- }, cn[1] = {
1065
- w: [1],
1066
- ".": [2],
1067
- "[": [4],
1068
- o: [7]
1069
- }, cn[2] = {
1070
- w: [2],
1071
- i: [3, 0],
1072
- 0: [3, 0]
1073
- }, cn[3] = {
1074
- i: [3, 0],
1075
- 0: [3, 0],
1076
- w: [1, 1],
1077
- ".": [2, 1],
1078
- "[": [4, 1],
1079
- o: [7, 1]
1080
- }, cn[4] = {
1081
- "'": [5, 0],
1082
- "\"": [6, 0],
1083
- "[": [4, 2],
1084
- "]": [1, 3],
1085
- o: 8,
1086
- l: [4, 0]
1087
- }, cn[5] = {
1088
- "'": [4, 0],
1089
- o: 8,
1090
- l: [5, 0]
1091
- }, cn[6] = {
1092
- "\"": [4, 0],
1093
- o: 8,
1094
- l: [6, 0]
1095
- };
1096
- var ln = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1097
- function un(e) {
1098
- return ln.test(e);
1099
- }
1100
- function dn(e) {
1101
- let t = e.charCodeAt(0);
1102
- return t === e.charCodeAt(e.length - 1) && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1103
- }
1104
- function fn(e) {
1105
- if (e == null) return "o";
1106
- switch (e.charCodeAt(0)) {
1107
- case 91:
1108
- case 93:
1109
- case 46:
1110
- case 34:
1111
- case 39: return e;
1112
- case 95:
1113
- case 36:
1114
- case 45: return "i";
1115
- case 9:
1116
- case 10:
1117
- case 13:
1118
- case 160:
1119
- case 65279:
1120
- case 8232:
1121
- case 8233: return "w";
1122
- }
1123
- return "i";
1124
- }
1125
- function pn(e) {
1126
- let t = e.trim();
1127
- return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : un(t) ? dn(t) : "*" + t;
1128
- }
1129
- function mn(e) {
1130
- let t = [], n = -1, r = 0, i = 0, a, o, s, c, l, u, d, f = [];
1131
- f[0] = () => {
1132
- o === void 0 ? o = s : o += s;
1133
- }, f[1] = () => {
1134
- o !== void 0 && (t.push(o), o = void 0);
1135
- }, f[2] = () => {
1136
- f[0](), i++;
1137
- }, f[3] = () => {
1138
- if (i > 0) i--, r = 4, f[0]();
1139
- else {
1140
- if (i = 0, o === void 0 || (o = pn(o), o === !1)) return !1;
1141
- f[1]();
1142
- }
1143
- };
1144
- function p() {
1145
- let t = e[n + 1];
1146
- if (r === 5 && t === "'" || r === 6 && t === "\"") return n++, s = "\\" + t, f[0](), !0;
1147
- }
1148
- for (; r !== null;) if (n++, a = e[n], !(a === "\\" && p())) {
1149
- if (c = fn(a), d = cn[r], l = d[c] || d.l || 8, l === 8 || (r = l[0], l[1] !== void 0 && (u = f[l[1]], u && (s = a, u() === !1)))) return;
1150
- if (r === 7) return t;
1151
- }
1152
- }
1153
- var hn = /* @__PURE__ */ new Map();
1154
- function gn(e, t) {
1155
- return V(e) ? e[t] : null;
1156
- }
1157
- function _n(e, t) {
1158
- if (!V(e)) return null;
1159
- let n = hn.get(t);
1160
- if (n || (n = mn(t), n && hn.set(t, n)), !n) return null;
1161
- let r = n.length, i = e, a = 0;
1162
- for (; a < r;) {
1163
- let e = n[a];
1164
- if (Lt.includes(e) && J(i) || !V(i) || !I(i, e)) return null;
1165
- let t = i[e];
1166
- if (t === void 0 || R(i)) return null;
1167
- i = t, a++;
1168
- }
1169
- return i;
1170
- }
1171
- var vn = {
1172
- NOT_FOUND_KEY: 1,
1173
- FALLBACK_TO_TRANSLATE: 2,
1174
- CANNOT_FORMAT_NUMBER: 3,
1175
- FALLBACK_TO_NUMBER_FORMAT: 4,
1176
- CANNOT_FORMAT_DATE: 5,
1177
- FALLBACK_TO_DATE_FORMAT: 6,
1178
- EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7,
1179
- INVALID_NUMBER_ARGUMENT: 8,
1180
- INVALID_DATE_ARGUMENT: 9
1181
- };
1182
- vn.NOT_FOUND_KEY, vn.FALLBACK_TO_TRANSLATE, vn.CANNOT_FORMAT_NUMBER, vn.FALLBACK_TO_NUMBER_FORMAT, vn.CANNOT_FORMAT_DATE, vn.FALLBACK_TO_DATE_FORMAT, vn.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER, vn.INVALID_NUMBER_ARGUMENT, vn.INVALID_DATE_ARGUMENT;
1183
- var yn = "11.4.9", bn = "en-US", xn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1184
- function Sn() {
1185
- return {
1186
- upper: (e, t) => t === "text" && z(e) ? e.toUpperCase() : t === "vnode" && V(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1187
- lower: (e, t) => t === "text" && z(e) ? e.toLowerCase() : t === "vnode" && V(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1188
- capitalize: (e, t) => t === "text" && z(e) ? xn(e) : t === "vnode" && V(e) && "__v_isVNode" in e ? xn(e.children) : e
1189
- };
1190
- }
1191
- var Cn;
1192
- function wn(e) {
1193
- Cn = e;
1194
- }
1195
- var Tn;
1196
- function En(e) {
1197
- Tn = e;
1198
- }
1199
- var Dn;
1200
- function On(e) {
1201
- Dn = e;
1202
- }
1203
- var kn = null, An = /* @__NO_SIDE_EFFECTS__ */ () => kn, jn = null, Mn = (e) => {
1204
- jn = e;
1205
- }, Nn = () => jn, Pn = 0;
1206
- function Fn(e = {}) {
1207
- let t = R(e.onWarn) ? e.onWarn : Se, n = z(e.version) ? e.version : yn, r = z(e.locale) || R(e.locale) ? e.locale : bn, i = R(r) ? bn : r, a = L(e.fallbackLocale) || H(e.fallbackLocale) || z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, o = H(e.messages) ? e.messages : In(i), s = H(e.datetimeFormats) ? e.datetimeFormats : In(i), c = H(e.numberFormats) ? e.numberFormats : In(i), l = N(P(), e.modifiers, Sn()), u = e.pluralRules || P(), d = R(e.missing) ? e.missing : null, f = B(e.missingWarn) || fe(e.missingWarn) ? e.missingWarn : !0, p = B(e.fallbackWarn) || fe(e.fallbackWarn) ? e.fallbackWarn : !0, m = !!e.fallbackFormat, h = !!e.unresolving, g = R(e.postTranslation) ? e.postTranslation : null, _ = H(e.processor) ? e.processor : null, v = !B(e.warnHtmlMessage) || e.warnHtmlMessage, y = !!e.escapeParameter, b = R(e.messageCompiler) ? e.messageCompiler : Cn, x = R(e.messageResolver) ? e.messageResolver : Tn || gn, S = R(e.localeFallbacker) ? e.localeFallbacker : Dn || nn, C = V(e.fallbackContext) ? e.fallbackContext : void 0, w = e, T = V(w.__datetimeFormatters) ? w.__datetimeFormatters : /* @__PURE__ */ new Map(), E = V(w.__numberFormatters) ? w.__numberFormatters : /* @__PURE__ */ new Map(), D = V(w.__meta) ? w.__meta : {};
1208
- Pn++;
1209
- let O = {
1210
- version: n,
1211
- cid: Pn,
1212
- locale: r,
1213
- fallbackLocale: a,
1214
- messages: o,
1215
- modifiers: l,
1216
- pluralRules: u,
1217
- missing: d,
1218
- missingWarn: f,
1219
- fallbackWarn: p,
1220
- fallbackFormat: m,
1221
- unresolving: h,
1222
- postTranslation: g,
1223
- processor: _,
1224
- warnHtmlMessage: v,
1225
- escapeParameter: y,
1226
- messageCompiler: b,
1227
- messageResolver: x,
1228
- localeFallbacker: S,
1229
- fallbackContext: C,
1230
- onWarn: t,
1231
- __meta: D
1232
- };
1233
- return O.datetimeFormats = s, O.numberFormats = c, O.__datetimeFormatters = T, O.__numberFormatters = E, __INTLIFY_PROD_DEVTOOLS__ && Yt(O, n, D), O;
1234
- }
1235
- var In = (e) => ({ [e]: P() });
1236
- function Ln(e, t, n, r, i) {
1237
- let { missing: a, onWarn: o } = e;
1238
- if (a !== null) {
1239
- let r = a(e, n, t, i);
1240
- return z(r) ? r : t;
1241
- }
1242
- return t;
1243
- }
1244
- function Rn(e, t, n) {
1245
- let r = e;
1246
- r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
1247
- }
1248
- function zn(e, t) {
1249
- return e !== t && e.split("-")[0] === t.split("-")[0];
1250
- }
1251
- function Bn(e, t) {
1252
- let n = t.indexOf(e);
1253
- if (n === -1) return !1;
1254
- for (let r = n + 1; r < t.length; r++) if (zn(e, t[r])) return !0;
1255
- return !1;
1256
- }
1257
- function Vn(e, t, n, r, i, a, o) {
1258
- let { fallbackLocale: s, localeFallbacker: c, onWarn: l } = e, u = c(e, s, n);
1259
- for (let n = 0; n < u.length; n++) {
1260
- let a = u[n], s = (r[a] || {})[t];
1261
- if (H(s) && z(a)) return a;
1262
- Ln(e, t, a, i, o);
1263
- }
1264
- return null;
1265
- }
1266
- function Hn(e, t, n) {
1267
- let r = `${e}__${t}`;
1268
- return H(n) && !pe(n) && (r = `${r}__${JSON.stringify(n)}`), r;
1269
- }
1270
- function Un(e, t, n) {
1271
- for (let r in n) {
1272
- let n = `${t}__${r}`;
1273
- for (let t of e.keys()) (t === n || t.startsWith(`${n}__`)) && e.delete(t);
1274
- }
1275
- }
1276
- function Wn(e, t, n, r) {
1277
- let [, i, a, o] = e, s = n;
1278
- return z(i) ? t.key = i : H(i) && Object.keys(i).forEach((e) => {
1279
- r.includes(e) ? s[e] = i[e] : t[e] = i[e];
1280
- }), z(a) ? t.locale = a : H(a) && (s = a), H(o) && (s = o), s;
1281
- }
1282
- var Gn = typeof Intl < "u";
1283
- Gn && Intl.DateTimeFormat, Gn && Intl.NumberFormat;
1284
- function Kn(e, ...t) {
1285
- let { datetimeFormats: n, unresolving: r, onWarn: i } = e, { __datetimeFormatters: a } = e;
1286
- if (!z(t[0]) && !de(t[0]) && !M(t[0])) return "";
1287
- let [o, s, c, l] = Jn(...t), u = B(c.missingWarn) ? c.missingWarn : e.missingWarn, d = B(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, f = !!c.part, p = $t(e, c);
1288
- if (!z(o) || o === "") {
1289
- let e = new Intl.DateTimeFormat(p.replace(/!/g, ""), l);
1290
- return f ? e.formatToParts(s) : e.format(s);
1291
- }
1292
- let m = Vn(e, o, p, n, u, d, "datetime format");
1293
- if (!z(m)) return r ? -1 : o;
1294
- let h = n[m][o], g = Hn(m, o, l), _ = a.get(g);
1295
- return _ || (_ = new Intl.DateTimeFormat(m, N({}, h, l)), a.set(g, _)), f ? _.formatToParts(s) : _.format(s);
1296
- }
1297
- var qn = [
1298
- "localeMatcher",
1299
- "weekday",
1300
- "era",
1301
- "year",
1302
- "month",
1303
- "day",
1304
- "hour",
1305
- "minute",
1306
- "second",
1307
- "timeZoneName",
1308
- "formatMatcher",
1309
- "hour12",
1310
- "timeZone",
1311
- "dateStyle",
1312
- "timeStyle",
1313
- "calendar",
1314
- "dayPeriod",
1315
- "numberingSystem",
1316
- "hourCycle",
1317
- "fractionalSecondDigits"
1318
- ];
1319
- function Jn(...e) {
1320
- let [t] = e, n = P(), r = P(), i;
1321
- if (z(t)) {
1322
- let e = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
1323
- if (!e) throw Qt(Y.INVALID_ISO_DATE_ARGUMENT);
1324
- let n = e[3] ? e[3].trim().startsWith("T") ? `${e[1].trim()}${e[3].trim()}` : `${e[1].trim()}T${e[3].trim()}` : e[1].trim();
1325
- i = new Date(n);
1326
- try {
1327
- i.toISOString();
1328
- } catch {
1329
- throw Qt(Y.INVALID_ISO_DATE_ARGUMENT);
1330
- }
1331
- } else if (de(t)) {
1332
- if (isNaN(t.getTime())) throw Qt(Y.INVALID_DATE_ARGUMENT);
1333
- i = t;
1334
- } else if (M(t)) i = t;
1335
- else throw Qt(Y.INVALID_ARGUMENT);
1336
- let a = Wn(e, n, r, qn);
1337
- return [
1338
- n.key || "",
1339
- i,
1340
- n,
1341
- a
1342
- ];
1343
- }
1344
- function Yn(e, t, n) {
1345
- Un(e.__datetimeFormatters, t, n);
1346
- }
1347
- function Xn(e, ...t) {
1348
- let { numberFormats: n, unresolving: r, onWarn: i } = e, { __numberFormatters: a } = e;
1349
- if (!M(t[0])) return "";
1350
- let [o, s, c, l] = Qn(...t), u = B(c.missingWarn) ? c.missingWarn : e.missingWarn, d = B(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, f = !!c.part, p = $t(e, c);
1351
- if (!z(o) || o === "") {
1352
- let e = new Intl.NumberFormat(p.replace(/!/g, ""), l);
1353
- return f ? e.formatToParts(s) : e.format(s);
1354
- }
1355
- let m = Vn(e, o, p, n, u, d, "number format");
1356
- if (!z(m)) return r ? -1 : o;
1357
- let h = n[m][o], g = Hn(m, o, l), _ = a.get(g);
1358
- return _ || (_ = new Intl.NumberFormat(m, N({}, h, l)), a.set(g, _)), f ? _.formatToParts(s) : _.format(s);
1359
- }
1360
- var Zn = [
1361
- "localeMatcher",
1362
- "style",
1363
- "currency",
1364
- "currencyDisplay",
1365
- "currencySign",
1366
- "useGrouping",
1367
- "minimumIntegerDigits",
1368
- "minimumFractionDigits",
1369
- "maximumFractionDigits",
1370
- "minimumSignificantDigits",
1371
- "maximumSignificantDigits",
1372
- "compactDisplay",
1373
- "notation",
1374
- "signDisplay",
1375
- "unit",
1376
- "unitDisplay",
1377
- "roundingMode",
1378
- "roundingPriority",
1379
- "roundingIncrement",
1380
- "trailingZeroDisplay"
1381
- ];
1382
- function Qn(...e) {
1383
- let [t] = e, n = P(), r = P();
1384
- if (!M(t)) throw Qt(Y.INVALID_ARGUMENT);
1385
- let i = t, a = Wn(e, n, r, Zn);
1386
- return [
1387
- n.key || "",
1388
- i,
1389
- n,
1390
- a
1391
- ];
1392
- }
1393
- function $n(e, t, n) {
1394
- Un(e.__numberFormatters, t, n);
1395
- }
1396
- var er = (e) => e, tr = (e) => "", nr = "text", rr = (e) => e.length === 0 ? "" : xe(e), ir = be;
1397
- function ar(e, t) {
1398
- return e = Math.abs(e), t === 2 ? e === 1 ? 0 : 1 : Math.min(e, 2);
1399
- }
1400
- function or(e) {
1401
- let t = M(e.pluralIndex) ? e.pluralIndex : -1;
1402
- return M(e.named?.count) ? e.named.count : M(e.named?.n) ? e.named.n : t;
1403
- }
1404
- function sr(e = {}) {
1405
- let t = e.locale, n = or(e), r = z(t) && R(e.pluralRules?.[t]) ? e.pluralRules[t] : ar, i = r === ar ? void 0 : ar, a = (e) => e[r(n, e.length, i)], o = e.list || [], s = (e) => o[e], c = e.named || P();
1406
- M(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
1407
- let l = (e) => c[e];
1408
- function u(t, n) {
1409
- return (R(e.messages) ? e.messages(t, !!n) : V(e.messages) ? e.messages[t] : !1) || (e.parent ? e.parent.message(t) : tr);
1410
- }
1411
- let d = (t) => e.modifiers ? e.modifiers[t] : er, f = R(e.processor?.normalize) ? e.processor.normalize : rr, p = R(e.processor?.interpolate) ? e.processor.interpolate : ir, m = {
1412
- list: s,
1413
- named: l,
1414
- plural: a,
1415
- linked: (e, ...t) => {
1416
- let [n, r] = t, i = "text", a = "";
1417
- t.length === 1 ? V(n) ? (a = n.modifier || a, i = n.type || i) : z(n) && (a = n || a) : t.length === 2 && (z(n) && (a = n || a), z(r) && (i = r || i));
1418
- let o = u(e, !0)(m), s = o === "" || o === void 0 ? e : o, c = i === "vnode" && L(s) && a ? s[0] : s;
1419
- return a ? d(a)(c, i) : c;
1420
- },
1421
- message: u,
1422
- type: z(e.processor?.type) ? e.processor.type : nr,
1423
- interpolate: p,
1424
- normalize: f,
1425
- values: N(P(), o, c)
1426
- };
1427
- return m;
1428
- }
1429
- var cr = () => "", X = (e) => R(e);
1430
- function lr(e, ...t) {
1431
- let { fallbackFormat: n, postTranslation: r, unresolving: i, messageCompiler: a, fallbackLocale: o, messages: s } = e, [c, l] = mr(...t), u = B(l.missingWarn) ? l.missingWarn : e.missingWarn, d = B(l.fallbackWarn) ? l.fallbackWarn : e.fallbackWarn, f = B(l.escapeParameter) ? l.escapeParameter : e.escapeParameter, p = !!l.resolvedMessage, m = z(l.default) || B(l.default) ? B(l.default) ? a ? c : () => c : l.default : n ? a ? c : () => c : null, h = n || m != null && (z(m) || R(m)), g = $t(e, l);
1432
- f && ur(l);
1433
- let [_, v, y] = p ? [
1434
- c,
1435
- g,
1436
- s[g] || P()
1437
- ] : dr(e, c, g, o, d, u), b = _, x = c;
1438
- if (!p && !(z(b) || J(b) || X(b)) && h && (b = m, x = b), !p && (!(z(b) || J(b) || X(b)) || !z(v))) return i ? -1 : c;
1439
- let S = !1, C = X(b) ? b : fr(e, c, v, b, x, () => {
1440
- S = !0;
1441
- });
1442
- if (S) return b;
1443
- let w = pr(e, C, sr(gr(e, v, y, l))), T = r ? r(w, c) : w;
1444
- if (f && z(T) && (T = Le(T)), __INTLIFY_PROD_DEVTOOLS__) {
1445
- let t = {
1446
- timestamp: Date.now(),
1447
- key: z(c) ? c : X(b) ? b.key : "",
1448
- locale: v || (X(b) ? b.locale : ""),
1449
- format: z(b) ? b : X(b) ? b.source : "",
1450
- message: T
1451
- };
1452
- t.meta = N({}, e.__meta, /* @__PURE__ */ An() || {}), Xt(t);
1453
- }
1454
- return T;
1455
- }
1456
- function ur(e) {
1457
- L(e.list) ? e.list = e.list.map((e) => z(e) ? Ce(e) : e) : V(e.named) && Object.keys(e.named).forEach((t) => {
1458
- z(e.named[t]) && (e.named[t] = Ce(e.named[t]));
1459
- });
1460
- }
1461
- function dr(e, t, n, r, i, a) {
1462
- let { messages: o, onWarn: s, messageResolver: c, localeFallbacker: l } = e, u = l(e, r, n), d = P(), f, p = null;
1463
- for (let n = 0; n < u.length && (f = u[n], d = o[f] || P(), (p = c(d, t)) === null && (p = d[t]), !(z(p) || J(p) || X(p))); n++) if (!Bn(f, u)) {
1464
- let n = Ln(e, t, f, a, "translate");
1465
- n !== t && (p = n);
1466
- }
1467
- return [
1468
- p,
1469
- f,
1470
- d
1471
- ];
1472
- }
1473
- function fr(e, t, n, r, i, a) {
1474
- let { messageCompiler: o, warnHtmlMessage: s } = e;
1475
- if (X(r)) {
1476
- let e = r;
1477
- return e.locale = e.locale || n, e.key = e.key || t, e;
1478
- }
1479
- if (o == null) {
1480
- let e = (() => r);
1481
- return e.locale = n, e.key = t, e;
1482
- }
1483
- let c = o(r, hr(e, n, i, r, s, a));
1484
- return c.locale = n, c.key = t, c.source = r, c;
1485
- }
1486
- function pr(e, t, n) {
1487
- return t(n);
1488
- }
1489
- function mr(...e) {
1490
- let [t, n, r] = e, i = P();
1491
- if (!z(t) && !M(t) && !X(t) && !J(t)) throw Qt(Y.INVALID_ARGUMENT);
1492
- let a = M(t) ? String(t) : (X(t), t);
1493
- return M(n) ? i.plural = n : z(n) ? i.default = n : H(n) && !pe(n) ? i.named = n : L(n) && (i.list = n), M(r) ? i.plural = r : z(r) ? i.default = r : H(r) && N(i, r), [a, i];
1494
- }
1495
- function hr(e, t, n, r, i, a) {
1496
- return {
1497
- locale: t,
1498
- key: n,
1499
- warnHtmlMessage: i,
1500
- onError: (e) => {
1501
- throw a && a(e), e;
1502
- },
1503
- onCacheKey: (e) => le(t, n, e)
1504
- };
1505
- }
1506
- function gr(e, t, n, r) {
1507
- let { modifiers: i, pluralRules: a, messageResolver: o, fallbackLocale: s, fallbackWarn: c, missingWarn: l, fallbackContext: u } = e, d = {
1508
- locale: t,
1509
- modifiers: i,
1510
- pluralRules: a,
1511
- messages: (r, i) => {
1512
- let a = o(n, r);
1513
- if (a == null && (u || i)) {
1514
- let [n, , i] = dr(u || e, r, t, s, c, l);
1515
- a = n ?? o(i, r);
1516
- }
1517
- if (z(a) || J(a)) {
1518
- let n = !1, i = fr(e, r, t, a, r, () => {
1519
- n = !0;
1520
- });
1521
- return n ? cr : i;
1522
- }
1523
- return X(a) ? a : cr;
1524
- }
1525
- };
1526
- return e.processor && (d.processor = e.processor), r.list && (d.list = r.list), r.named && (d.named = r.named), M(r.plural) && (d.pluralIndex = r.plural), d;
1527
- }
1528
- //#endregion
1529
- //#region ../../node_modules/.pnpm/vue-i18n@11.4.9_vue@3.5.42_typescript@6.0.3_/node_modules/vue-i18n/dist/vue-i18n.mjs
1530
- yt(), a(), g();
1531
- var _r = "11.4.9";
1532
- function vr() {
1533
- typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (F().__INTLIFY_PROD_DEVTOOLS__ = !1);
1534
- }
1535
- var Z = {
1536
- UNEXPECTED_RETURN_TYPE: 24,
1537
- INVALID_ARGUMENT: 25,
1538
- MUST_BE_CALL_SETUP_TOP: 26,
1539
- NOT_INSTALLED: 27,
1540
- REQUIRED_VALUE: 28,
1541
- INVALID_VALUE: 29,
1542
- CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
1543
- NOT_INSTALLED_WITH_PROVIDE: 31,
1544
- UNEXPECTED_ERROR: 32,
1545
- NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
1546
- NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
1547
- };
1548
- function yr(e, ...t) {
1549
- return He(e, null, void 0);
1550
- }
1551
- Z.UNEXPECTED_RETURN_TYPE, Z.INVALID_ARGUMENT, Z.MUST_BE_CALL_SETUP_TOP, Z.NOT_INSTALLED, Z.UNEXPECTED_ERROR, Z.REQUIRED_VALUE, Z.INVALID_VALUE, Z.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN, Z.NOT_INSTALLED_WITH_PROVIDE, Z.NOT_COMPATIBLE_LEGACY_VUE_I18N, Z.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;
1552
- var br = /* #__PURE__*/ j("__translateVNode"), xr = /* #__PURE__*/ j("__datetimeParts"), Sr = /* #__PURE__*/ j("__numberParts"), Cr = j("__setPluralRules");
1553
- j("__intlifyMeta");
1554
- var wr = /* #__PURE__*/ j("__injectWithOption"), Tr = /* #__PURE__*/ j("__dispose"), Er = {
1555
- FALLBACK_TO_ROOT: 10,
1556
- NOT_FOUND_PARENT_SCOPE: 11,
1557
- IGNORE_OBJ_FLATTEN: 12,
1558
- DEPRECATE_LEGACY_MODE: 13,
1559
- DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 14,
1560
- DUPLICATE_USE_I18N_CALLING: 15
1561
- };
1562
- Er.FALLBACK_TO_ROOT, Er.NOT_FOUND_PARENT_SCOPE, Er.IGNORE_OBJ_FLATTEN, Er.DEPRECATE_LEGACY_MODE, Er.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE, Er.DUPLICATE_USE_I18N_CALLING;
1563
- var Dr = null;
1564
- {
1565
- let e = F().__VUE_INSTANCE_SETTERS__;
1566
- L(e) && e.push((e) => {
1567
- Dr = e;
1568
- });
1569
- }
1570
- function Or(e) {
1571
- if (!V(e) || J(e)) return e;
1572
- for (let t in e) if (I(e, t)) {
1573
- if (!t.includes(".")) V(e[t]) && Or(e[t]);
1574
- else {
1575
- let n = t.split("."), r = n.length - 1, i = e, a = !1;
1576
- for (let e = 0; e < r; e++) {
1577
- if (n[e] === "__proto__") throw Error(`unsafe key: ${n[e]}`);
1578
- if (n[e] in i || (i[n[e]] = P()), !V(i[n[e]])) {
1579
- a = !0;
1580
- break;
1581
- }
1582
- i = i[n[e]];
1583
- }
1584
- if (a || (J(i) ? Lt.includes(n[r]) || delete e[t] : (i[n[r]] = e[t], delete e[t])), !J(i)) {
1585
- let e = i[n[r]];
1586
- V(e) && Or(e);
1587
- }
1588
- }
1589
- }
1590
- return e;
1591
- }
1592
- function kr(e, t) {
1593
- let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = H(n) ? n : L(r) ? P() : { [e]: P() };
1594
- if (L(r) && r.forEach((e) => {
1595
- if ("locale" in e && "resource" in e) {
1596
- let { locale: t, resource: n } = e;
1597
- t ? (o[t] = o[t] || P(), ze(n, o[t])) : ze(n, o);
1598
- } else z(e) && ze(JSON.parse(e), o);
1599
- }), i == null && a) for (let e in o) I(o, e) && Or(o[e]);
1600
- return o;
1601
- }
1602
- function Ar(e) {
1603
- return e.type;
1604
- }
1605
- function jr(e, t, n) {
1606
- let r = V(t.messages) ? t.messages : P();
1607
- "__i18nGlobal" in n && (r = kr(e.locale.value, {
1608
- messages: r,
1609
- __i18n: n.__i18nGlobal
1610
- }));
1611
- let i = Object.keys(r);
1612
- if (i.length && i.forEach((t) => {
1613
- e.mergeLocaleMessage(t, r[t]);
1614
- }), V(t.datetimeFormats)) {
1615
- let n = Object.keys(t.datetimeFormats);
1616
- n.length && n.forEach((n) => {
1617
- e.mergeDateTimeFormat(n, t.datetimeFormats[n]);
1618
- });
1619
- }
1620
- if (V(t.numberFormats)) {
1621
- let n = Object.keys(t.numberFormats);
1622
- n.length && n.forEach((n) => {
1623
- e.mergeNumberFormat(n, t.numberFormats[n]);
1624
- });
1625
- }
1626
- }
1627
- function Mr(e) {
1628
- return D(y, null, e, 0);
1629
- }
1630
- function Nr() {
1631
- return Dr ?? E();
1632
- }
1633
- var Pr = () => [], Fr = () => !1, Ir = 0;
1634
- function Lr(e) {
1635
- return ((t, n, r, i) => e(n, r, Nr() || void 0, i));
1636
- }
1637
- function Rr(e = {}) {
1638
- let { __root: t, __injectWithOption: n } = e, r = t === void 0, i = e.flatJson, a = ce ? b : h, o = !B(e.inheritLocale) || e.inheritLocale, s = a(t && o ? t.locale.value : z(e.locale) ? e.locale : bn), c = a(t && o ? t.fallbackLocale.value : z(e.fallbackLocale) || L(e.fallbackLocale) || H(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s.value), l = a(kr(s.value, e)), d = a(H(e.datetimeFormats) ? e.datetimeFormats : { [s.value]: {} }), f = a(H(e.numberFormats) ? e.numberFormats : { [s.value]: {} }), p = t ? t.missingWarn : B(e.missingWarn) || fe(e.missingWarn) ? e.missingWarn : !0, m = t ? t.fallbackWarn : B(e.fallbackWarn) || fe(e.fallbackWarn) ? e.fallbackWarn : !0, g = t ? t.fallbackRoot : !B(e.fallbackRoot) || e.fallbackRoot, _ = !!e.fallbackFormat, y = R(e.missing) ? e.missing : null, x = R(e.missing) ? Lr(e.missing) : null, S = R(e.postTranslation) ? e.postTranslation : null, C = t ? t.warnHtmlMessage : !B(e.warnHtmlMessage) || e.warnHtmlMessage, w = !!e.escapeParameter, T = t ? t.modifiers : H(e.modifiers) ? e.modifiers : {}, E = e.pluralRules || t && t.pluralRules, D;
1639
- D = (() => {
1640
- r && Mn(null);
1641
- let t = {
1642
- version: _r,
1643
- locale: s.value,
1644
- fallbackLocale: c.value,
1645
- messages: l.value,
1646
- modifiers: T,
1647
- pluralRules: E,
1648
- missing: x === null ? void 0 : x,
1649
- missingWarn: p,
1650
- fallbackWarn: m,
1651
- fallbackFormat: _,
1652
- unresolving: !0,
1653
- postTranslation: S === null ? void 0 : S,
1654
- warnHtmlMessage: C,
1655
- escapeParameter: w,
1656
- messageResolver: e.messageResolver,
1657
- messageCompiler: e.messageCompiler,
1658
- __meta: { framework: "vue" }
1659
- };
1660
- t.datetimeFormats = d.value, t.numberFormats = f.value, t.__datetimeFormatters = H(D) ? D.__datetimeFormatters : void 0, t.__numberFormatters = H(D) ? D.__numberFormatters : void 0;
1661
- let n = Fn(t);
1662
- return r && Mn(n), n;
1663
- })(), Rn(D, s.value, c.value);
1664
- function O() {
1665
- return [
1666
- s.value,
1667
- c.value,
1668
- l.value,
1669
- d.value,
1670
- f.value
1671
- ];
1672
- }
1673
- let k = v({
1674
- get: () => s.value,
1675
- set: (e) => {
1676
- D.locale = e, s.value = e;
1677
- }
1678
- }), ee = v({
1679
- get: () => c.value,
1680
- set: (e) => {
1681
- D.fallbackLocale = e, c.value = e, Rn(D, s.value, e);
1682
- }
1683
- }), te = v(() => l.value), ne = /* #__PURE__*/ v(() => d.value), re = /* #__PURE__*/ v(() => f.value);
1684
- function ie() {
1685
- return R(S) ? S : null;
1686
- }
1687
- function ae(e) {
1688
- S = e, D.postTranslation = e;
1689
- }
1690
- function oe() {
1691
- return y;
1692
- }
1693
- function se(e) {
1694
- e !== null && (x = Lr(e)), y = e, D.missing = x;
1695
- }
1696
- let A = (e, n, i, a, o, s) => {
1697
- O();
1698
- let c;
1699
- try {
1700
- __INTLIFY_PROD_DEVTOOLS__, r || (D.fallbackContext = t ? Nn() : void 0), c = e(D);
1701
- } finally {
1702
- __INTLIFY_PROD_DEVTOOLS__, r || (D.fallbackContext = void 0);
1703
- }
1704
- if (i !== "translate exists" && M(c) && c === -1 || i === "translate exists" && !c) {
1705
- let [e, r] = n();
1706
- return t && g ? a(t) : o(e);
1707
- }
1708
- if (s(c)) return c;
1709
- /* istanbul ignore next */
1710
- throw yr(Z.UNEXPECTED_RETURN_TYPE);
1711
- };
1712
- function j(...e) {
1713
- return A((t) => Reflect.apply(lr, null, [t, ...e]), () => mr(...e), "translate", (t) => Reflect.apply(t.t, t, [...e]), (e) => e, (e) => z(e));
1714
- }
1715
- function le(...e) {
1716
- let [t, n, r] = e;
1717
- if (r && !V(r)) throw yr(Z.INVALID_ARGUMENT);
1718
- return j(t, n, N({ resolvedMessage: !0 }, r || {}));
1719
- }
1720
- function ue(...e) {
1721
- return A((t) => Reflect.apply(Kn, null, [t, ...e]), () => Jn(...e), "datetime format", (t) => Reflect.apply(t.d, t, [...e]), () => "", (e) => z(e) || L(e));
1722
- }
1723
- function de(...e) {
1724
- return A((t) => Reflect.apply(Xn, null, [t, ...e]), () => Qn(...e), "number format", (t) => Reflect.apply(t.n, t, [...e]), () => "", (e) => z(e) || L(e));
1725
- }
1726
- function pe(e) {
1727
- return e.map((e) => z(e) || M(e) || B(e) ? Mr(String(e)) : e);
1728
- }
1729
- let me = {
1730
- normalize: pe,
1731
- interpolate: (e) => e,
1732
- type: "vnode"
1733
- };
1734
- function P(...e) {
1735
- return A((t) => {
1736
- let n, r = t;
1737
- try {
1738
- r.processor = me, n = Reflect.apply(lr, null, [r, ...e]);
1739
- } finally {
1740
- r.processor = null;
1741
- }
1742
- return n;
1743
- }, () => mr(...e), "translate", (t) => t[br](...e), (e) => [Mr(e)], (e) => L(e));
1744
- }
1745
- function he(...e) {
1746
- return A((t) => Reflect.apply(Xn, null, [t, ...e]), () => Qn(...e), "number format", (t) => t[Sr](...e), Pr, (e) => z(e) || L(e));
1747
- }
1748
- function F(...e) {
1749
- return A((t) => Reflect.apply(Kn, null, [t, ...e]), () => Jn(...e), "datetime format", (t) => t[xr](...e), Pr, (e) => z(e) || L(e));
1750
- }
1751
- function ge(e) {
1752
- E = e, D.pluralRules = E;
1753
- }
1754
- function _e(e, t) {
1755
- return A(() => {
1756
- if (!e) return !1;
1757
- let n = z(t) ? t : s.value, r = z(t) ? [n] : rn(D, c.value, n);
1758
- for (let t = 0; t < r.length; t++) {
1759
- let n = be(r[t]), i = D.messageResolver(n, e);
1760
- if (i === null && (i = n[e]), J(i) || X(i) || z(i)) return !0;
1761
- }
1762
- return !1;
1763
- }, () => [e], "translate exists", (n) => Reflect.apply(n.te, n, [e, t]), Fr, (e) => B(e));
1764
- }
1765
- function ve(e) {
1766
- let t = null, n = rn(D, c.value, s.value);
1767
- for (let r = 0; r < n.length; r++) {
1768
- let i = l.value[n[r]] || {}, a = D.messageResolver(i, e);
1769
- if (a != null) {
1770
- t = a;
1771
- break;
1772
- }
1773
- }
1774
- return t;
1775
- }
1776
- function ye(e) {
1777
- return ve(e) ?? (t && t.tm(e) || {});
1778
- }
1779
- function be(e) {
1780
- return l.value[e] || {};
1781
- }
1782
- function xe(e, t) {
1783
- if (i) {
1784
- let n = { [e]: t };
1785
- for (let e in n) I(n, e) && Or(n[e]);
1786
- t = n[e];
1787
- }
1788
- l.value[e] = t, D.messages = l.value;
1789
- }
1790
- function Se(e, t) {
1791
- l.value[e] = l.value[e] || {};
1792
- let n = { [e]: t };
1793
- if (i) for (let e in n) I(n, e) && Or(n[e]);
1794
- t = n[e], ze(t, l.value[e]), D.messages = l.value;
1795
- }
1796
- function Ce(e) {
1797
- return d.value[e] || {};
1798
- }
1799
- function we(e, t) {
1800
- d.value[e] = t, D.datetimeFormats = d.value, Yn(D, e, t);
1801
- }
1802
- function Te(e, t) {
1803
- d.value[e] = N(d.value[e] || {}, t), D.datetimeFormats = d.value, Yn(D, e, t);
1804
- }
1805
- function Ee(e) {
1806
- return f.value[e] || {};
1807
- }
1808
- function De(e, t) {
1809
- f.value[e] = t, D.numberFormats = f.value, $n(D, e, t);
1810
- }
1811
- function Oe(e, t) {
1812
- f.value[e] = N(f.value[e] || {}, t), D.numberFormats = f.value, $n(D, e, t);
1813
- }
1814
- Ir++, t && ce && (u(t.locale, (e) => {
1815
- o && (s.value = e, D.locale = e, Rn(D, s.value, c.value));
1816
- }), u(t.fallbackLocale, (e) => {
1817
- o && (c.value = e, D.fallbackLocale = e, Rn(D, s.value, c.value));
1818
- }));
1819
- let U = {
1820
- id: Ir,
1821
- locale: k,
1822
- fallbackLocale: ee,
1823
- get inheritLocale() {
1824
- return o;
1825
- },
1826
- set inheritLocale(e) {
1827
- o = e, e && t && (s.value = t.locale.value, c.value = t.fallbackLocale.value, Rn(D, s.value, c.value));
1828
- },
1829
- get availableLocales() {
1830
- return Object.keys(l.value).sort();
1831
- },
1832
- messages: te,
1833
- get modifiers() {
1834
- return T;
1835
- },
1836
- get pluralRules() {
1837
- return E || {};
1838
- },
1839
- get isGlobal() {
1840
- return r;
1841
- },
1842
- get missingWarn() {
1843
- return p;
1844
- },
1845
- set missingWarn(e) {
1846
- p = e, D.missingWarn = p;
1847
- },
1848
- get fallbackWarn() {
1849
- return m;
1850
- },
1851
- set fallbackWarn(e) {
1852
- m = e, D.fallbackWarn = m;
1853
- },
1854
- get fallbackRoot() {
1855
- return g;
1856
- },
1857
- set fallbackRoot(e) {
1858
- g = e;
1859
- },
1860
- get fallbackFormat() {
1861
- return _;
1862
- },
1863
- set fallbackFormat(e) {
1864
- _ = e, D.fallbackFormat = _;
1865
- },
1866
- get warnHtmlMessage() {
1867
- return C;
1868
- },
1869
- set warnHtmlMessage(e) {
1870
- C = e, D.warnHtmlMessage = e;
1871
- },
1872
- get escapeParameter() {
1873
- return w;
1874
- },
1875
- set escapeParameter(e) {
1876
- w = e, D.escapeParameter = e;
1877
- },
1878
- t: j,
1879
- getLocaleMessage: be,
1880
- setLocaleMessage: xe,
1881
- mergeLocaleMessage: Se,
1882
- getPostTranslationHandler: ie,
1883
- setPostTranslationHandler: ae,
1884
- getMissingHandler: oe,
1885
- setMissingHandler: se,
1886
- [Cr]: ge
1887
- };
1888
- return U.datetimeFormats = ne, U.numberFormats = re, U.rt = le, U.te = _e, U.tm = ye, U.d = ue, U.n = de, U.getDateTimeFormat = Ce, U.setDateTimeFormat = we, U.mergeDateTimeFormat = Te, U.getNumberFormat = Ee, U.setNumberFormat = De, U.mergeNumberFormat = Oe, U[wr] = n, U[br] = P, U[xr] = F, U[Sr] = he, U;
1889
- }
1890
- var zr = {
1891
- tag: { type: [String, Object] },
1892
- locale: { type: String },
1893
- scope: {
1894
- type: String,
1895
- validator: (e) => e === "parent" || e === "global",
1896
- default: "parent"
1897
- },
1898
- i18n: { type: Object }
1899
- };
1900
- N({
1901
- keypath: {
1902
- type: String,
1903
- required: !0
1904
- },
1905
- plural: {
1906
- type: [Number, String],
1907
- validator: (e) => M(e) || !isNaN(e)
1908
- }
1909
- }, zr), N({
1910
- value: {
1911
- type: Number,
1912
- required: !0
1913
- },
1914
- format: { type: [String, Object] }
1915
- }, zr);
1916
- var Br = /* #__PURE__*/ j("global-vue-i18n");
1917
- function Vr(e = {}) {
1918
- let t = Nr();
1919
- if (t == null) throw yr(Z.MUST_BE_CALL_SETUP_TOP);
1920
- if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__) throw yr(Z.NOT_INSTALLED);
1921
- let n = Hr(t), r = Wr(n), i = Ar(t), a = Ur(e, i);
1922
- if (a === "global") return jr(r, e, i), r;
1923
- if (a === "parent") {
1924
- let i = Gr(n, t, e.__useComponent);
1925
- return i ??= r, i;
1926
- }
1927
- if (a === "isolated") {
1928
- if (n.mode !== "composition") throw yr(Z.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
1929
- let i = n, a = N({}, e);
1930
- a.__root = Gr(n, t) || r;
1931
- let o = Rr(a);
1932
- return i.__composerExtend && (o[Tr] = i.__composerExtend(o)), S() && w(() => {
1933
- let e = o[Tr];
1934
- e && (e(), delete o[Tr]);
1935
- }), o;
1936
- }
1937
- let o = n, s = o.__getInstance(t);
1938
- if (s == null) {
1939
- let n = N({}, e);
1940
- "__i18n" in i && (n.__i18n = i.__i18n), r && (n.__root = r), s = Rr(n), o.__composerExtend && (s[Tr] = o.__composerExtend(s)), qr(o, t, s), o.__setInstance(t, s);
1941
- }
1942
- return s;
1943
- }
1944
- function Hr(e) {
1945
- let t = _(e.isCE ? Br : e.appContext.app.__VUE_I18N_SYMBOL__);
1946
- /* istanbul ignore if */
1947
- if (!t) throw yr(e.isCE ? Z.NOT_INSTALLED_WITH_PROVIDE : Z.UNEXPECTED_ERROR);
1948
- return t;
1949
- }
1950
- function Ur(e, t) {
1951
- return pe(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
1952
- }
1953
- function Wr(e) {
1954
- return e.mode === "composition" ? e.global : e.global.__composer;
1955
- }
1956
- function Gr(e, t, n = !1) {
1957
- let r = null, i = t.root, a = Kr(t, n);
1958
- for (; a != null;) {
1959
- let t = e;
1960
- if (e.mode === "composition" && (r = t.__getInstance(a)), r != null || i === a) break;
1961
- a = a.parent;
1962
- }
1963
- return r;
1964
- }
1965
- function Kr(e, t = !1) {
1966
- return e == null ? null : t && e.vnode.ctx || e.parent;
1967
- }
1968
- function qr(e, t, r) {
1969
- n(() => {}, t), i(() => {
1970
- let n = r;
1971
- e.__deleteInstance(t);
1972
- let i = n[Tr];
1973
- i && (i(), delete n[Tr]);
1974
- }, t);
1975
- }
1976
- if (N({
1977
- value: {
1978
- type: [Number, Date],
1979
- required: !0
1980
- },
1981
- format: { type: [String, Object] }
1982
- }, zr), vr(), wn(Kt), En(_n), On(rn), __INTLIFY_PROD_DEVTOOLS__) {
1983
- let e = F();
1984
- e.__INTLIFY__ = !0, Jt(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
1985
- }
1986
- //#endregion
1987
- //#region ../../packages/composable/src/useSafeLocalStorage.ts
1988
- g();
1989
- function Jr(e, t) {
1990
- try {
1991
- return window.localStorage.getItem(""), ne(e, t);
1992
- } catch (e) {
1993
- return k.warn("[useSafeLocalStorage] localStorage blocked, falling back to in-memory ref", e), b(t);
1994
- }
1995
- }
1996
- //#endregion
1997
- //#region ../../packages/composable/src/useLocalizedString.ts
1998
- a(), g();
1999
- function Yr(e, t) {
2000
- let { locale: n, t: r, te: i } = Vr({ useScope: "global" });
2001
- return v(() => {
2002
- let a = O(e), o = t !== void 0 && i(t) ? r(t) : void 0;
2003
- return a && a[n.value] || o;
2004
- });
2005
- }
2006
- //#endregion
2007
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v3/helpers/util.js
2008
- var Xr;
2009
- (function(e) {
2010
- e.assertEqual = (e) => {};
2011
- function t(e) {}
2012
- e.assertIs = t;
2013
- function n(e) {
2014
- throw Error();
2015
- }
2016
- e.assertNever = n, e.arrayToEnum = (e) => {
2017
- let t = {};
2018
- for (let n of e) t[n] = n;
2019
- return t;
2020
- }, e.getValidEnumValues = (t) => {
2021
- let n = e.objectKeys(t).filter((e) => typeof t[t[e]] != "number"), r = {};
2022
- for (let e of n) r[e] = t[e];
2023
- return e.objectValues(r);
2024
- }, e.objectValues = (t) => e.objectKeys(t).map(function(e) {
2025
- return t[e];
2026
- }), e.objectKeys = typeof Object.keys == "function" ? (e) => Object.keys(e) : (e) => {
2027
- let t = [];
2028
- for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && t.push(n);
2029
- return t;
2030
- }, e.find = (e, t) => {
2031
- for (let n of e) if (t(n)) return n;
2032
- }, e.isInteger = typeof Number.isInteger == "function" ? (e) => Number.isInteger(e) : (e) => typeof e == "number" && Number.isFinite(e) && Math.floor(e) === e;
2033
- function r(e, t = " | ") {
2034
- return e.map((e) => typeof e == "string" ? `'${e}'` : e).join(t);
2035
- }
2036
- e.joinValues = r, e.jsonStringifyReplacer = (e, t) => typeof t == "bigint" ? t.toString() : t;
2037
- })(Xr ||= {});
2038
- var Zr;
2039
- (function(e) {
2040
- e.mergeShapes = (e, t) => ({
2041
- ...e,
2042
- ...t
2043
- });
2044
- })(Zr ||= {}), Xr.arrayToEnum([
2045
- "string",
2046
- "nan",
2047
- "number",
2048
- "integer",
2049
- "float",
2050
- "boolean",
2051
- "date",
2052
- "bigint",
2053
- "symbol",
2054
- "function",
2055
- "undefined",
2056
- "null",
2057
- "array",
2058
- "object",
2059
- "unknown",
2060
- "promise",
2061
- "void",
2062
- "never",
2063
- "map",
2064
- "set"
2065
- ]), Xr.arrayToEnum([
2066
- "invalid_type",
2067
- "invalid_literal",
2068
- "custom",
2069
- "invalid_union",
2070
- "invalid_union_discriminator",
2071
- "invalid_enum_value",
2072
- "unrecognized_keys",
2073
- "invalid_arguments",
2074
- "invalid_return_type",
2075
- "invalid_date",
2076
- "invalid_string",
2077
- "too_small",
2078
- "too_big",
2079
- "invalid_intersection_types",
2080
- "not_multiple_of",
2081
- "not_finite"
2082
- ]);
2083
- var Qr = class e extends Error {
2084
- get errors() {
2085
- return this.issues;
2086
- }
2087
- constructor(e) {
2088
- super(), this.issues = [], this.addIssue = (e) => {
2089
- this.issues = [...this.issues, e];
2090
- }, this.addIssues = (e = []) => {
2091
- this.issues = [...this.issues, ...e];
2092
- };
2093
- let t = new.target.prototype;
2094
- Object.setPrototypeOf ? Object.setPrototypeOf(this, t) : this.__proto__ = t, this.name = "ZodError", this.issues = e;
2095
- }
2096
- format(e) {
2097
- let t = e || function(e) {
2098
- return e.message;
2099
- }, n = { _errors: [] }, r = (e) => {
2100
- for (let i of e.issues) if (i.code === "invalid_union") i.unionErrors.map(r);
2101
- else if (i.code === "invalid_return_type") r(i.returnTypeError);
2102
- else if (i.code === "invalid_arguments") r(i.argumentsError);
2103
- else if (i.path.length === 0) n._errors.push(t(i));
2104
- else {
2105
- let e = n, r = 0;
2106
- for (; r < i.path.length;) {
2107
- let n = i.path[r], a = r === i.path.length - 1;
2108
- if (n === "_errors") {
2109
- a && e._errors.push(t(i)), r++;
2110
- continue;
2111
- }
2112
- Object.prototype.hasOwnProperty.call(e, n) || (n === "__proto__" ? Object.defineProperty(e, n, {
2113
- value: { _errors: [] },
2114
- writable: !0,
2115
- enumerable: !0,
2116
- configurable: !0
2117
- }) : e[n] = { _errors: [] }), e = e[n], a && e._errors.push(t(i)), r++;
2118
- }
2119
- }
2120
- };
2121
- return r(this), n;
2122
- }
2123
- static assert(t) {
2124
- if (!(t instanceof e)) throw Error(`Not a ZodError: ${t}`);
2125
- }
2126
- toString() {
2127
- return this.message;
2128
- }
2129
- get message() {
2130
- return JSON.stringify(this.issues, Xr.jsonStringifyReplacer, 2);
2131
- }
2132
- get isEmpty() {
2133
- return this.issues.length === 0;
2134
- }
2135
- flatten(e = (e) => e.message) {
2136
- let t = Object.create(null), n = [];
2137
- for (let r of this.issues) if (r.path.length > 0) {
2138
- let n = r.path[0];
2139
- t[n] = t[n] || [], t[n].push(e(r));
2140
- } else n.push(e(r));
2141
- return {
2142
- formErrors: n,
2143
- fieldErrors: t
2144
- };
2145
- }
2146
- get formErrors() {
2147
- return this.flatten();
2148
- }
2149
- };
2150
- //#endregion
2151
- //#region ../../node_modules/.pnpm/@volverjs+form-vue@1.1.5_@volverjs+ui-vue@0.0.18_@json-render+core@0.19.0_zod@4.5.4__@v_edf01ce1f50ea1c1fdfa716abcb63f61/node_modules/@volverjs/form-vue/dist/index.es.js
2152
- Qr.create = (e) => new Qr(e), a(), g(), x();
2153
- var Q = /* @__PURE__ */ function(e) {
2154
- return e.text = "text", e.number = "number", e.email = "email", e.password = "password", e.tel = "tel", e.url = "url", e.search = "search", e.date = "date", e.time = "time", e.datetimeLocal = "datetime-local", e.month = "month", e.week = "week", e.color = "color", e.select = "select", e.checkbox = "checkbox", e.radio = "radio", e.textarea = "textarea", e.radioGroup = "radioGroup", e.checkboxGroup = "checkboxGroup", e.combobox = "combobox", e.custom = "custom", e;
2155
- }({}), $ = /* @__PURE__ */ function(e) {
2156
- return e.invalid = "invalid", e.valid = "valid", e.submitting = "submitting", e.reset = "reset", e.updated = "updated", e.unknown = "unknown", e;
2157
- }({}), $r = (e) => e._def.typeName === "ZodObject", ei = (e) => e._zod.def.type === "object", ti = (e) => e._def.typeName === "ZodDefault", ni = (e) => e._zod.def.type === "default", ri = (e) => e._def.typeName === "ZodNullable", ii = (e) => e._zod.def.type === "nullable", ai = (e) => e._def.typeName === "ZodRecord", oi = (e) => e._zod.def.type === "record", si = (e) => e._def.typeName === "ZodArray", ci = (e) => e._zod.def.type === "array", li = (e) => e._def.typeName === "ZodEffects", ui = (e) => e._def.typeName === "ZodOptional", di = (e) => e._zod.def.type === "optional", fi = (e) => e._zod.def.type === "pipe", pi = (e) => e._zod.def.type === "transform";
2158
- function mi(e) {
2159
- let t = e;
2160
- for (; li(t);) t = t.innerType();
2161
- return t;
2162
- }
2163
- function hi(e) {
2164
- let t = e;
2165
- for (; fi(t);) t = pi(t._zod.def.out) ? t._zod.def.in : t._zod.def.out;
2166
- return t;
2167
- }
2168
- var gi = (e) => {
2169
- let t = mi(e);
2170
- return ui(t) && (t = t._def.innerType), t;
2171
- }, _i = (e) => {
2172
- let t = hi(e);
2173
- return di(t) && (t = t._zod.def.innerType), t;
2174
- }, vi = (e) => !!ui(mi(e)), yi = (e) => !!di(hi(e)), bi = (e) => "_zod" in e, xi = {
2175
- getInnerType: gi,
2176
- isObject: $r,
2177
- hasUnknownKeys: (e) => e._def.unknownKeys === "passthrough",
2178
- getShapeEntries: (e) => "shape" in e ? Object.entries(e.shape) : [],
2179
- isOptional: vi,
2180
- isDefault: ti,
2181
- getDefaultValue: (e) => e._def.defaultValue(),
2182
- getDefaultInnerType: (e) => e._def.innerType,
2183
- isNullable: ri,
2184
- safeParse: (e, t) => e.safeParse(t),
2185
- isArray: si,
2186
- getArrayElement: (e) => e._def.type,
2187
- isRecord: ai,
2188
- getRecordValue: (e) => e._def.valueType
2189
- }, Si = {
2190
- getInnerType: _i,
2191
- isObject: ei,
2192
- hasUnknownKeys: (e) => !!(e._zod.def.catchall && e._zod.def.catchall._zod.def.type !== "never"),
2193
- getShapeEntries: (e) => "shape" in e._zod.def ? Object.entries(e._zod.def.shape) : [],
2194
- isOptional: yi,
2195
- isDefault: ni,
2196
- getDefaultValue: (e) => e._zod.def.defaultValue,
2197
- getDefaultInnerType: (e) => e._zod.def.innerType,
2198
- isNullable: ii,
2199
- safeParse: (e, t) => oe(e, t),
2200
- isArray: ci,
2201
- getArrayElement: (e) => e._zod.def.element,
2202
- isRecord: oi,
2203
- getRecordValue: (e) => e._zod.def.valueType
2204
- };
2205
- function Ci(e, t, n) {
2206
- let r = e.getInnerType(e.getArrayElement(t));
2207
- return e.isObject(r) ? n.map((t) => Ei(e, r, t)) : n;
2208
- }
2209
- function wi(e, t, n) {
2210
- let r = e.getInnerType(e.getRecordValue(t));
2211
- return e.isObject(r) ? Object.keys(n).reduce((t, i) => (t[i] = Ei(e, r, n[i]), t), {}) : n;
2212
- }
2213
- function Ti(e, t, n, r) {
2214
- let i = e.isOptional(n), a = e.getInnerType(n), o;
2215
- if (e.isDefault(a) && (o = e.getDefaultValue(a), a = e.getDefaultInnerType(a)), r === null && e.isNullable(a)) return [t, r];
2216
- if (r == null && i) return [t, o];
2217
- if (a && r !== void 0) {
2218
- let i = e.safeParse(n, r);
2219
- if (i.success) return [t, i.data ?? o];
2220
- }
2221
- return e.isArray(a) && Array.isArray(r) ? [t, Ci(e, a, r)] : e.isRecord(a) && r ? [t, wi(e, a, r)] : e.isObject(a) ? [t, Ei(e, a, r && typeof r == "object" ? r : o)] : [t, o];
2222
- }
2223
- function Ei(e, t, n) {
2224
- let r = n && typeof n == "object" && !Array.isArray(n) ? n : {};
2225
- return {
2226
- ...e.hasUnknownKeys(t) ? r : {},
2227
- ...Object.fromEntries(e.getShapeEntries(t).map(([t, n]) => Ti(e, t, n, r[t])))
2228
- };
2229
- }
2230
- function Di(e, t = {}) {
2231
- let n = bi(e) ? Si : xi, r = n.getInnerType(e);
2232
- return n.isObject(r) ? Ei(n, r, t) : t;
2233
- }
2234
- var Oi = (e, t) => bi(e) ? ae(e, t) : e.safeParseAsync(t), ki = (e, t) => bi(e) ? A(t) : t.format(), Ai = (e, t) => bi(e) ? A(new se(t)) : new Qr(t).format();
2235
- function ji(r, i, a, o, c) {
2236
- let l = b(), f = b(), h = v(() => f.value === $.invalid), g = b(), _ = b(!1), y, x = (e) => {
2237
- let t = Di(r, e);
2238
- if (a?.class) {
2239
- let e = a.class;
2240
- return new e(t);
2241
- }
2242
- return t;
2243
- }, S = async (e = g.value, t) => {
2244
- if (y = t?.fields, _.value) return !0;
2245
- let n = await Oi(r, e);
2246
- if (!n.success) {
2247
- if (f.value = $.invalid, !y?.size) return l.value = ki(r, n.error), !1;
2248
- let e = n.error.issues.filter((e) => y?.has(e.path.join(".")));
2249
- return e.length ? (l.value = Ai(r, e), !1) : (l.value = void 0, !0);
2250
- }
2251
- return l.value = void 0, f.value = $.valid, g.value = x(n.data), !0;
2252
- }, w = () => {
2253
- l.value = void 0, f.value = void 0, y = void 0;
2254
- }, { ignoreUpdates: T, stop: E } = ee(g, () => {
2255
- f.value = $.updated;
2256
- }, {
2257
- deep: !0,
2258
- eventFilter: te(a?.updateThrottle ?? 500)
2259
- }), D = () => {
2260
- T(() => {
2261
- g.value = x();
2262
- }), w(), f.value = $.reset;
2263
- }, O = async (e) => _.value || !await S(void 0, e) ? !1 : (f.value = $.submitting, !0), k = p(l), ne = p(f);
2264
- return {
2265
- clear: w,
2266
- errors: l,
2267
- formData: g,
2268
- ignoreUpdates: T,
2269
- invalid: h,
2270
- readonly: _,
2271
- reset: D,
2272
- status: f,
2273
- wrappers: c,
2274
- stopUpdatesWatch: E,
2275
- submit: O,
2276
- validate: S,
2277
- VvForm: e({
2278
- name: "VvForm",
2279
- props: {
2280
- continuousValidation: {
2281
- type: Boolean,
2282
- default: !1
2283
- },
2284
- modelValue: {
2285
- type: Object,
2286
- default: () => ({})
2287
- },
2288
- readonly: {
2289
- type: Boolean,
2290
- default: a?.readonly
2291
- },
2292
- tag: {
2293
- type: String,
2294
- default: "form"
2295
- },
2296
- template: {
2297
- type: [Array, Function],
2298
- default: void 0
2299
- },
2300
- superRefine: {
2301
- type: Function,
2302
- default: void 0
2303
- },
2304
- validateFields: {
2305
- type: Array,
2306
- default: void 0
2307
- }
2308
- },
2309
- emits: [
2310
- "invalid",
2311
- "submit",
2312
- "update:modelValue",
2313
- "update:readonly",
2314
- "valid",
2315
- "reset"
2316
- ],
2317
- expose: [
2318
- "errors",
2319
- "invalid",
2320
- "readonly",
2321
- "status",
2322
- "submit",
2323
- "tag",
2324
- "template",
2325
- "valid",
2326
- "validate",
2327
- "clear",
2328
- "reset"
2329
- ],
2330
- slots: Object,
2331
- setup(e, { emit: t }) {
2332
- return g.value = x(m(e.modelValue)), u(() => e.modelValue, (e) => {
2333
- if (e) {
2334
- let t = d(e) ? m(e) : e;
2335
- if (JSON.stringify(t) === JSON.stringify(m(g.value))) return;
2336
- g.value = x(t);
2337
- }
2338
- }, { deep: !0 }), u(f, async (n) => {
2339
- if (n === $.invalid) {
2340
- let e = m(l.value);
2341
- t("invalid", e), a?.onInvalid?.(e);
2342
- return;
2343
- }
2344
- if (n === $.valid) {
2345
- let e = m(g.value);
2346
- t("valid", e), a?.onValid?.(e), t("update:modelValue", e), a?.onUpdate?.(e);
2347
- return;
2348
- }
2349
- if (n === $.submitting) {
2350
- let e = m(g.value);
2351
- t("submit", e), a?.onSubmit?.(e);
2352
- return;
2353
- }
2354
- if (n === $.reset) {
2355
- let e = m(g.value);
2356
- t("reset", e), a?.onReset?.(e);
2357
- return;
2358
- }
2359
- if (n === $.updated) {
2360
- if ((l.value || a?.continuousValidation || e.continuousValidation) && await S(void 0, {
2361
- superRefine: e.superRefine,
2362
- fields: y ?? new Set(e.validateFields)
2363
- }), !g.value || !e.modelValue || JSON.stringify(g.value) !== JSON.stringify(e.modelValue)) {
2364
- let e = m(g.value);
2365
- t("update:modelValue", e), a?.onUpdate?.(e);
2366
- }
2367
- f.value === $.updated && (f.value = $.unknown);
2368
- }
2369
- }), n(() => {
2370
- e.readonly !== void 0 && (_.value = e.readonly);
2371
- }), u(() => e.readonly, (e) => {
2372
- _.value = e;
2373
- }), u(_, (n) => {
2374
- n !== e.readonly && t("update:readonly", _.value);
2375
- }), s(i, {
2376
- clear: w,
2377
- errors: k,
2378
- formData: g,
2379
- ignoreUpdates: T,
2380
- invalid: h,
2381
- readonly: _,
2382
- reset: D,
2383
- status: ne,
2384
- stopUpdatesWatch: E,
2385
- submit: O,
2386
- validate: S,
2387
- wrappers: c
2388
- }), {
2389
- clear: w,
2390
- errors: k,
2391
- formData: g,
2392
- ignoreUpdates: T,
2393
- invalid: h,
2394
- isReadonly: _,
2395
- reset: D,
2396
- status: ne,
2397
- stopUpdatesWatch: E,
2398
- submit: () => O({
2399
- superRefine: e.superRefine,
2400
- fields: new Set(e.validateFields)
2401
- }),
2402
- validate: S,
2403
- wrappers: c
2404
- };
2405
- },
2406
- render() {
2407
- let e = () => this.$slots?.default?.({
2408
- errors: k.value,
2409
- formData: g.value,
2410
- invalid: h.value,
2411
- readonly: _.value,
2412
- status: ne.value,
2413
- wrappers: c,
2414
- clear: w,
2415
- ignoreUpdates: T,
2416
- reset: D,
2417
- stopUpdatesWatch: E,
2418
- submit: O,
2419
- validate: S
2420
- }) ?? this.$slots.default;
2421
- return t(this.tag, {
2422
- onSubmit: C(this.submit, ["prevent"]),
2423
- onReset: C(this.reset, ["prevent"])
2424
- }, (this.template ?? a?.template) && o ? [t(o, { schema: this.template ?? a?.template }, { default: e })] : { default: e });
2425
- }
2426
- })
2427
- };
2428
- }
2429
- function Mi(i, a, d, m) {
2430
- return e({
2431
- name: "VvFormField",
2432
- props: {
2433
- type: {
2434
- type: String,
2435
- validator: (e) => Object.values(Q).includes(e),
2436
- default: Q.custom
2437
- },
2438
- is: {
2439
- type: [Object, String],
2440
- default: void 0
2441
- },
2442
- name: {
2443
- type: [
2444
- String,
2445
- Number,
2446
- Boolean,
2447
- Symbol
2448
- ],
2449
- required: !0
2450
- },
2451
- props: {
2452
- type: [Object, Function],
2453
- default: () => ({})
2454
- },
2455
- showValid: {
2456
- type: Boolean,
2457
- default: !1
2458
- },
2459
- defaultValue: {
2460
- type: [
2461
- String,
2462
- Number,
2463
- Boolean,
2464
- Array,
2465
- Object
2466
- ],
2467
- default: void 0
2468
- },
2469
- lazyLoad: {
2470
- type: Boolean,
2471
- default: !1
2472
- },
2473
- readonly: {
2474
- type: Boolean,
2475
- default: void 0
2476
- }
2477
- },
2478
- emits: [
2479
- "invalid",
2480
- "update:formData",
2481
- "update:modelValue",
2482
- "valid"
2483
- ],
2484
- expose: [
2485
- "component",
2486
- "errors",
2487
- "hasProps",
2488
- "invalid",
2489
- "invalidLabel",
2490
- "is",
2491
- "type"
2492
- ],
2493
- slots: Object,
2494
- setup(e, { slots: t, emit: h }) {
2495
- let { props: g, name: y } = T(e), b = r(), x = _(a, void 0);
2496
- x && x.fields.value.set(b, e.name);
2497
- let S = _(i), C = v({
2498
- get() {
2499
- if (S?.formData) return ie(new Object(S.formData.value), String(e.name));
2500
- },
2501
- set(t) {
2502
- S?.formData && (re(new Object(S.formData.value), String(e.name), t), h("update:modelValue", {
2503
- newValue: C.value,
2504
- formData: S?.formData
2505
- }));
2506
- }
2507
- });
2508
- n(() => {
2509
- C.value === void 0 && e.defaultValue !== void 0 && (C.value = e.defaultValue);
2510
- }), o(() => {
2511
- x && x.fields.value.delete(b);
2512
- });
2513
- let w = v(() => {
2514
- if (S?.errors.value) return ie(S.errors.value, String(e.name));
2515
- }), E = v(() => w.value?._errors), D = v(() => w.value !== void 0), O = u(D, (t) => {
2516
- if (t) {
2517
- h("invalid", w.value), x && x.errors.value.set(String(e.name), w.value);
2518
- return;
2519
- }
2520
- h("valid", C.value), x && x.errors.value.delete(e.name);
2521
- }), k = u(() => S?.formData, () => {
2522
- h("update:formData", S?.formData);
2523
- }, { deep: !0 });
2524
- o(() => {
2525
- O(), k();
2526
- });
2527
- let ee = (e) => {
2528
- e instanceof InputEvent && (e = e.target.value), C.value = e;
2529
- }, te = v(() => {
2530
- let e = g.value;
2531
- return typeof e == "function" && (e = e(S?.formData)), Object.keys(e).reduce((t, n) => (t[n] = f(e[n]), t), {});
2532
- }), ne = v(() => S?.readonly.value || x?.readonly.value ? !0 : te.value.readonly ?? e.readonly), ae = v(() => ({
2533
- ...te.value,
2534
- name: te.value.name ?? e.name,
2535
- invalid: D.value,
2536
- valid: e.showValid ? !!(!D.value && C.value) : void 0,
2537
- type: ((e) => {
2538
- if ([
2539
- Q.color,
2540
- Q.date,
2541
- Q.datetimeLocal,
2542
- Q.email,
2543
- Q.month,
2544
- Q.number,
2545
- Q.password,
2546
- Q.search,
2547
- Q.tel,
2548
- Q.text,
2549
- Q.time,
2550
- Q.url,
2551
- Q.week
2552
- ].includes(e)) return e;
2553
- })(e.type),
2554
- invalidLabel: E.value,
2555
- modelValue: C.value,
2556
- readonly: ne.value,
2557
- "onUpdate:modelValue": ee
2558
- }));
2559
- return s(d, {
2560
- name: p(y),
2561
- errors: p(w)
2562
- }), {
2563
- component: v(() => {
2564
- if (e.type === Q.custom) return { render() {
2565
- return t.default?.({
2566
- errors: p(w).value,
2567
- formData: S?.formData.value,
2568
- formErrors: S?.errors.value,
2569
- invalid: D.value,
2570
- invalidLabel: E.value,
2571
- modelValue: C.value,
2572
- readonly: ne.value,
2573
- onUpdate: ee,
2574
- submit: S?.submit,
2575
- validate: S?.validate
2576
- }) ?? t.default;
2577
- } };
2578
- if (!(m?.lazyLoad ?? e.lazyLoad)) {
2579
- let t;
2580
- switch (e.type) {
2581
- case Q.select:
2582
- t = l("VvSelect");
2583
- break;
2584
- case Q.checkbox:
2585
- t = l("VvCheckbox");
2586
- break;
2587
- case Q.radio:
2588
- t = l("VvRadio");
2589
- break;
2590
- case Q.textarea:
2591
- t = l("VvTextarea");
2592
- break;
2593
- case Q.radioGroup:
2594
- t = l("VvRadioGroup");
2595
- break;
2596
- case Q.checkboxGroup:
2597
- t = l("VvCheckboxGroup");
2598
- break;
2599
- case Q.combobox:
2600
- t = l("VvCombobox");
2601
- break;
2602
- default: t = l("VvInputText");
2603
- }
2604
- if (typeof t != "string") return t;
2605
- console.warn(`[@volverjs/form-vue]: ${t} not found, the component will be loaded asynchronously. To avoid this warning, please set "lazyLoad" option.`);
2606
- }
2607
- return c(async () => {
2608
- switch (m?.sideEffects && await Promise.resolve(m.sideEffects(e.type)), e.type) {
2609
- case Q.textarea: return import("./VvTextarea.es-DBXLtc0A.js");
2610
- case Q.radio: return import("./VvRadio.es-DlQppq3w.js");
2611
- case Q.radioGroup: return import("./VvRadioGroup.es-CQgfwKsS.js");
2612
- case Q.checkbox: return import("./VvCheckbox.es-BifV6dIp.js");
2613
- case Q.checkboxGroup: return import("./VvCheckboxGroup.es-BPTV2McU.js");
2614
- case Q.select: return import("./VvSelect.es-D-U8Eya6.js");
2615
- case Q.combobox: return import("./VvCombobox.es-DCOcQU3R.js");
2616
- }
2617
- return import("./VvInputText.es-D-hc8C2_.js");
2618
- });
2619
- }),
2620
- hasProps: ae,
2621
- invalid: D
2622
- };
2623
- },
2624
- render() {
2625
- return this.is ? t(this.is, this.hasProps, this.$slots) : this.type === Q.custom ? t(this.component, null, this.$slots) : t(this.component, this.hasProps, this.$slots);
2626
- }
2627
- });
2628
- }
2629
- function Ni(i, a, c) {
2630
- return e({
2631
- name: "VvFormFieldsGroup",
2632
- props: {
2633
- is: {
2634
- type: [Object, String],
2635
- default: void 0
2636
- },
2637
- names: {
2638
- type: [Array, Object],
2639
- required: !0
2640
- },
2641
- props: {
2642
- type: [Object, Function],
2643
- default: () => ({})
2644
- },
2645
- showValid: {
2646
- type: Boolean,
2647
- default: !1
2648
- },
2649
- defaultValues: {
2650
- type: [Object],
2651
- default: void 0
2652
- },
2653
- readonly: {
2654
- type: Boolean,
2655
- default: void 0
2656
- }
2657
- },
2658
- emits: [
2659
- "invalid",
2660
- "update:formData",
2661
- "update:modelValue",
2662
- "valid"
2663
- ],
2664
- expose: [
2665
- "component",
2666
- "errors",
2667
- "hasProps",
2668
- "invalid",
2669
- "invalidLabels",
2670
- "is"
2671
- ],
2672
- slots: Object,
2673
- setup(e, { slots: t, emit: l }) {
2674
- let { props: d, names: m, defaultValues: h } = T(e), g = r(), y = v(() => Array.isArray(m.value) ? m.value : Object.values(m.value)), b = v(() => Array.isArray(m.value) ? m.value : Object.keys(m.value)), x = v(() => Array.isArray(m.value) ? m.value.reduce((e, t) => (e[String(t)] = t, e), {}) : m.value), S = v(() => Object.keys(x.value).reduce((e, t) => (e[String(x.value[t])] = t, e), {})), C = _(a, void 0);
2675
- C && y.value.forEach((e) => {
2676
- C.fields.value.set(`${g}-${e}`, e);
2677
- });
2678
- let w = _(i), E = v({
2679
- get() {
2680
- return w?.formData ? b.value.reduce((e, t) => (e[t] = ie(new Object(w.formData.value), x.value[t]), e), {}) : {};
2681
- },
2682
- set(e) {
2683
- w?.formData && (b.value.forEach((t) => {
2684
- re(new Object(w.formData.value), x.value[t], e?.[t]);
2685
- }), l("update:modelValue", {
2686
- newValue: E.value,
2687
- formData: w?.formData
2688
- }));
2689
- }
2690
- });
2691
- n(() => {
2692
- h.value && y.value.forEach((e) => {
2693
- h.value?.[e] !== void 0 && E.value[e] === void 0 && (E.value = {
2694
- ...E.value,
2695
- [e]: h.value?.[e]
2696
- });
2697
- });
2698
- }), o(() => {
2699
- C && y.value.forEach((e) => {
2700
- C.fields.value.delete(`${g}-${e}`);
2701
- });
2702
- });
2703
- let D = v(() => {
2704
- if (!w?.errors.value) return;
2705
- let e = y.value.reduce((e, t) => {
2706
- if (!w.errors.value) return e;
2707
- let n = ie(w.errors.value, String(t));
2708
- return n === void 0 || (e[String(t)] = n), e;
2709
- }, {});
2710
- if (Object.keys(e).length !== 0) return e;
2711
- }), O = v(() => {
2712
- if (!D.value) return;
2713
- let e = Object.keys(D.value).reduce((e, t) => (D.value?.[t] && (e[S.value[t]] = D.value[t]._errors), e), {});
2714
- if (Object.keys(e).length !== 0) return e;
2715
- }), k = v(() => D.value !== void 0), ee = v(() => b.value.reduce((e, t) => (e[t] = !!D.value?.[x.value[t]], e), {})), te = u(k, () => {
2716
- if (k.value) {
2717
- l("invalid", D.value), C && y.value.forEach((e) => {
2718
- if (!D.value?.[e]) {
2719
- C.errors.value.delete(e);
2720
- return;
2721
- }
2722
- C.errors.value.set(e, D.value?.[e]);
2723
- });
2724
- return;
2725
- }
2726
- l("valid", E.value), C && y.value.forEach((e) => {
2727
- C.errors.value.delete(e);
2728
- });
2729
- }), ne = u(() => w?.formData, () => {
2730
- l("update:formData", w?.formData);
2731
- }, { deep: !0 });
2732
- o(() => {
2733
- te(), ne();
2734
- });
2735
- let ae = (e) => {
2736
- E.value = e;
2737
- }, oe = (e, t) => {
2738
- t instanceof InputEvent && (t = t.target.value), b.value.includes(e) && (E.value = {
2739
- ...E.value,
2740
- [e]: t
2741
- });
2742
- }, se = v(() => {
2743
- let e = d.value;
2744
- return typeof e == "function" && (e = e(w?.formData)), Object.keys(e).reduce((t, n) => (t[n] = f(e[n]), t), {});
2745
- }), A = v(() => w?.readonly.value ? !0 : se.value.readonly ?? e.readonly), ce = v(() => b.value.reduce((e, t) => (e[`onUpdate:${t}`] = (e) => {
2746
- oe(t, e);
2747
- }, e), { "onUpdate:modelValue": ae })), j = v(() => ({
2748
- ...ce.value,
2749
- ...se.value,
2750
- ...E.value,
2751
- modelValue: E.value,
2752
- names: se.value.name ?? y.value,
2753
- invalid: k.value,
2754
- invalids: ee.value,
2755
- valid: e.showValid ? !!(!k.value && E.value) : void 0,
2756
- invalidLabels: O.value,
2757
- readonly: A.value
2758
- }));
2759
- return s(c, {
2760
- names: p(m),
2761
- errors: p(D)
2762
- }), {
2763
- component: v(() => ({ render() {
2764
- return t.default?.({
2765
- errors: D.value,
2766
- formData: w?.formData.value,
2767
- formErrors: w?.errors.value,
2768
- invalid: k.value,
2769
- invalids: ee.value,
2770
- invalidLabels: O.value,
2771
- modelValue: E.value,
2772
- onUpdate: ae,
2773
- onUpdateField: oe,
2774
- readonly: A.value,
2775
- submit: w?.submit,
2776
- validate: w?.validate
2777
- }) ?? t.default;
2778
- } })),
2779
- hasProps: j,
2780
- invalid: k
2781
- };
2782
- },
2783
- render() {
2784
- return this.is ? t(this.is, this.hasProps, this.$slots) : t(this.component, null, this.$slots);
2785
- }
2786
- });
2787
- }
2788
- function Pi(r, i) {
2789
- return e({
2790
- name: "VvFormWrapper",
2791
- props: {
2792
- name: {
2793
- type: String,
2794
- required: !0
2795
- },
2796
- tag: {
2797
- type: String,
2798
- default: void 0
2799
- },
2800
- readonly: {
2801
- type: Boolean,
2802
- default: !1
2803
- }
2804
- },
2805
- emits: ["invalid", "valid"],
2806
- expose: [
2807
- "clear",
2808
- "errors",
2809
- "fields",
2810
- "fieldsErrors",
2811
- "formData",
2812
- "invalid",
2813
- "readonly",
2814
- "reset",
2815
- "submit",
2816
- "tag",
2817
- "validate",
2818
- "validateWrapper"
2819
- ],
2820
- slots: Object,
2821
- setup(e, { emit: t }) {
2822
- let a = _(r), c = _(i, void 0), l = b(/* @__PURE__ */ new Map()), d = b(/* @__PURE__ */ new Map()), { name: f } = T(e), m = v(() => a?.invalid.value ? d.value.size > 0 : !1);
2823
- u(m, (e) => {
2824
- if (e) {
2825
- t("invalid");
2826
- return;
2827
- }
2828
- t("valid");
2829
- });
2830
- let h = v(() => a?.readonly.value || e.readonly), g = {
2831
- name: p(f),
2832
- errors: d,
2833
- invalid: p(m),
2834
- readonly: p(h),
2835
- fields: l
2836
- };
2837
- return s(i, g), u(v(() => new Map(l.value)), (e, t) => {
2838
- c?.fields && (t.forEach((t, n) => {
2839
- e.has(n) || c?.fields.value.delete(n);
2840
- }), e.forEach((e, t) => {
2841
- c?.fields.value.has(t) || c?.fields.value.set(t, e);
2842
- }));
2843
- }, { deep: !0 }), u(d, (e) => {
2844
- c?.errors && l.value.forEach((t) => {
2845
- if (e.has(t) || c.errors.value.delete(t), e.has(t)) {
2846
- let n = e.get(t);
2847
- n && c.errors.value.set(t, n);
2848
- }
2849
- });
2850
- }, { deep: !0 }), n(() => {
2851
- if (!a?.wrappers || !f.value) {
2852
- console.warn("[@volverjs/form-vue]: Invalid wrapper registration state");
2853
- return;
2854
- }
2855
- if (a.wrappers.has(f.value)) {
2856
- console.warn(`[@volverjs/form-vue]: wrapper name "${f.value}" is already used`);
2857
- return;
2858
- }
2859
- a.wrappers.set(f.value, g);
2860
- }), o(() => {
2861
- a?.wrappers && f.value && a.wrappers.delete(f.value);
2862
- }), {
2863
- errors: a?.errors,
2864
- fields: l,
2865
- fieldsErrors: d,
2866
- formData: a?.formData,
2867
- invalid: m,
2868
- readonly: h,
2869
- clear: a?.clear,
2870
- reset: a?.reset,
2871
- submit: a?.submit,
2872
- validate: a?.validate,
2873
- validateWrapper: () => a?.validate(void 0, { fields: new Set(l.value.values()) }) ?? Promise.resolve(!0)
2874
- };
2875
- },
2876
- render() {
2877
- let e = () => this.$slots.default?.({
2878
- errors: this.errors,
2879
- fieldsErrors: this.fieldsErrors,
2880
- formData: this.formData,
2881
- invalid: this.invalid,
2882
- readonly: this.readonly,
2883
- clear: this.clear,
2884
- reset: this.reset,
2885
- submit: this.submit,
2886
- validate: this.validate,
2887
- validateWrapper: this.validateWrapper
2888
- });
2889
- return this.tag ? t(this.tag, null, { default: e }) : e();
2890
- }
2891
- });
2892
- }
2893
- function Fi(n, r) {
2894
- let i = e({
2895
- name: "VvFormTemplate",
2896
- props: {
2897
- schema: {
2898
- type: [Array, Function],
2899
- required: !0
2900
- },
2901
- scope: {
2902
- type: Object,
2903
- default: () => ({})
2904
- }
2905
- },
2906
- slots: Object,
2907
- setup(e, { slots: a }) {
2908
- let o = _(n);
2909
- if (o?.formData) return () => {
2910
- let n = typeof e.schema == "function" ? e.schema(o, e.scope) : e.schema, s, c = n.reduce((n, a) => {
2911
- let { vvIs: c, vvName: l, vvSlots: u, vvChildren: d, vvIf: p, vvElseIf: m, vvType: h, vvDefaultValue: g, vvShowValid: _, vvContent: v, ...y } = typeof a == "function" ? a(o, e.scope) : a;
2912
- if (p !== void 0) {
2913
- if (s = typeof p == "string" ? !!ie(new Object(o.formData.value), p) : f(typeof p == "function" ? p(o) : p), !s) return n;
2914
- } else if (m !== void 0 && s !== void 0) {
2915
- if (s || (s = typeof m == "string" ? !!ie(new Object(o.formData.value), m) : f(typeof m == "function" ? m(o) : m), !s)) return n;
2916
- } else s = void 0;
2917
- let b;
2918
- return d && (b = typeof c == "string" ? t(i, { schema: d }) : { default: (e) => t(i, {
2919
- schema: d,
2920
- scope: e
2921
- }) }), l ? (n.push(t(r, {
2922
- name: l,
2923
- is: c,
2924
- type: h,
2925
- defaultValue: g,
2926
- showValid: _,
2927
- props: y
2928
- }, u ?? b ?? v)), n) : c ? (n.push(t(c, y, u ?? b ?? v)), n) : (b && ("default" in b ? n.push(b.default(e.scope)) : n.push(b)), n);
2929
- }, []);
2930
- return c.push(a?.default?.({
2931
- errors: o?.errors.value,
2932
- formData: o?.formData.value,
2933
- invalid: o?.invalid.value,
2934
- status: o?.status.value,
2935
- submit: o?.submit,
2936
- validate: o?.validate,
2937
- clear: o?.clear,
2938
- reset: o?.reset
2939
- })), c;
2940
- };
2941
- }
2942
- });
2943
- return i;
2944
- }
2945
- function Ii(e, t = {}) {
2946
- let n = Symbol("formInjectionKey"), r = Symbol("formWrapperInjectionKey"), i = Symbol("formFieldInjectionKey"), a = Symbol("formFieldsGroupInjectionKey"), o = Pi(n, r), s = Mi(n, r, i, t), c = Ni(n, r, a), l = Fi(n, s), u = /* @__PURE__ */ new Map(), { clear: d, errors: f, formData: p, ignoreUpdates: m, invalid: h, readonly: g, reset: _, status: v, stopUpdatesWatch: y, submit: b, validate: x, VvForm: S } = ji(e, n, t, l, u);
2947
- return {
2948
- clear: d,
2949
- errors: f,
2950
- formData: p,
2951
- formFieldInjectionKey: i,
2952
- formInjectionKey: n,
2953
- formWrapperInjectionKey: r,
2954
- ignoreUpdates: m,
2955
- invalid: h,
2956
- readonly: g,
2957
- reset: _,
2958
- status: v,
2959
- stopUpdatesWatch: y,
2960
- submit: b,
2961
- validate: x,
2962
- wrappers: u,
2963
- VvForm: S,
2964
- VvFormField: s,
2965
- VvFormFieldsGroup: c,
2966
- VvFormTemplate: l,
2967
- VvFormWrapper: o
2968
- };
2969
- }
2970
- var Li = Symbol("pluginInjectionKey"), Ri = /* @__PURE__ */ new Map();
2971
- function zi(e, t = {}) {
2972
- if (t.scope && Ri.has(t.scope)) return Ri.get(t.scope);
2973
- if (!E()) {
2974
- let n = Ii(e, t);
2975
- return t.scope && Ri.set(t.scope, n), n;
2976
- }
2977
- let n = Ii(e, {
2978
- ..._(Li, {}),
2979
- ...t
2980
- });
2981
- return t.scope && Ri.set(t.scope, n), n;
2982
- }
2983
- //#endregion
2984
- export { Vr as a, Br as i, Yr as n, Jr as r, zi as t };
2985
-
2986
- //# sourceMappingURL=index.es-DXx8DNKf.js.map